1 /****************************************************************************
2  ****************************************************************************
3  ***
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.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_STAT_H
20 #define _UAPI_LINUX_STAT_H
21 #if !defined(__GLIBC__) || __GLIBC__ < 2
22 #define S_IFMT 00170000
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define S_IFSOCK 0140000
25 #define S_IFLNK 0120000
26 #define S_IFREG 0100000
27 #define S_IFBLK 0060000
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define S_IFDIR 0040000
30 #define S_IFCHR 0020000
31 #define S_IFIFO 0010000
32 #define S_ISUID 0004000
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define S_ISGID 0002000
35 #define S_ISVTX 0001000
36 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
37 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
40 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
41 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
42 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
45 #define S_IRWXU 00700
46 #define S_IRUSR 00400
47 #define S_IWUSR 00200
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define S_IXUSR 00100
50 #define S_IRWXG 00070
51 #define S_IRGRP 00040
52 #define S_IWGRP 00020
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define S_IXGRP 00010
55 #define S_IRWXO 00007
56 #define S_IROTH 00004
57 #define S_IWOTH 00002
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define S_IXOTH 00001
60 #endif
61 #endif
62