chiark / gitweb /
[PATCH] added klibc version 0.82 (cvs tree) to the udev tree.
[elogind.git] / klibc / 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 <asm/stat.h>
11 #include <linux/stat.h>
12
13 __extern int stat(const char *, struct stat *);
14 __extern int fstat(int, struct stat *);
15 __extern int lstat(const char *, struct stat *);
16 __extern mode_t umask(mode_t);
17 __extern int mknod(const char *, mode_t, dev_t);
18 static __inline__ int mkfifo(const char *__p, mode_t __m)
19 {
20   return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t)0);
21 }
22
23 #endif /* _SYS_STAT_H */