chiark / gitweb /
Make run_directory.c stat the place it is going to try to run.
[elogind.git] / klibc / include / sys / stat.h
1 /*
2  * sys/stat.h
3  */
4
5 #ifndef _SYS_STAT_H
6 #define _SYS_STAT_H
7
8 #include <klibc/extern.h>
9 #include <sys/types.h>
10 #include <sys/time.h>           /* For struct timespec */
11 #include <klibc/archstat.h>
12 #include <linux/stat.h>
13
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
19 #endif
20
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)
27 {
28   return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t)0);
29 }
30
31 #endif /* _SYS_STAT_H */