8 #include <klibc/extern.h>
10 #include <sys/time.h> /* For struct timespec */
11 #include <klibc/archstat.h>
12 #include <linux/stat.h>
14 #ifdef _STATBUF_ST_NSEC
15 /* struct stat has struct timespec instead of time_t */
16 # define st_atime st_atim.tv_sec
17 # define st_mtime st_mtim.tv_sec
18 # define st_ctime st_ctim.tv_sec
21 __extern int stat(const char *, struct stat *);
22 __extern int fstat(int, struct stat *);
23 __extern int lstat(const char *, struct stat *);
24 __extern mode_t umask(mode_t);
25 __extern int mknod(const char *, mode_t, dev_t);
26 static __inline__ int mkfifo(const char *__p, mode_t __m)
28 return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t)0);
31 #endif /* _SYS_STAT_H */