1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #if !defined(__GLIBC__) || __GLIBC__ < 2
17 #define S_IFMT 00170000
18 #define S_IFSOCK 0140000
19 #define S_IFLNK 0120000
20 #define S_IFREG 0100000
21 #define S_IFBLK 0060000
22 #define S_IFDIR 0040000
23 #define S_IFCHR 0020000
24 #define S_IFIFO 0010000
25 #define S_ISUID 0004000
26 #define S_ISGID 0002000
27 #define S_ISVTX 0001000
29 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
30 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
31 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
32 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
33 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
34 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
35 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)