Merge branch 'master' of github.com:sylware/cinitramfs
[cinitramfs.git] / ulinux / stat.h
blob82b47ba77a508377ca5164356bbcaa3d3141413a
1 #ifndef ULINUX_STAT_H
2 #define ULINUX_STAT_H
3 /*******************************************************************************
4 this code is protected by the GNU affero GPLv3
5 author:Sylvain BERTRAND (sylvain.bertrand AT gmail dot com)
6 *******************************************************************************/
7 #include <ulinux/arch/stat.h>
9 #define ULINUX_S_IFSOCK 0140000
10 #define ULINUX_S_IFLNK 0120000
11 #define ULINUX_S_IFREG 0100000
12 #define ULINUX_S_IFBLK 0060000
13 #define ULINUX_S_IFDIR 0040000
14 #define ULINUX_S_IFCHR 0020000
15 #define ULINUX_S_IFIFO 0010000
16 #define ULINUX_S_ISUID 0004000
17 #define ULINUX_S_ISGID 0002000
18 #define ULINUX_S_ISVTX 0001000
20 #define ULINUX_S_IRWXU 00700
21 #define ULINUX_S_IRUSR 00400
22 #define ULINUX_S_IWUSR 00200
23 #define ULINUX_S_IXUSR 00100
25 #define ULINUX_S_IRWXG 00070
26 #define ULINUX_S_IRGRP 00040
27 #define ULINUX_S_IWGRP 00020
28 #define ULINUX_S_IXGRP 00010
30 #define ULINUX_S_IRWXO 00007
31 #define ULINUX_S_IROTH 00004
32 #define ULINUX_S_IWOTH 00002
33 #define ULINUX_S_IXOTH 00001
35 #define ULINUX_S_IRWXUGO (ULINUX_S_IRWXU|ULINUX_S_IRWXG|ULINUX_S_IRWXO)
36 #define ULINUX_S_IALLUGO (ULINUX_S_ISUID|ULINUX_S_ISGID|ULINUX_S_ISVTX\
37 |ULINUX_S_IRWXUGO)
38 #define ULINUX_S_IRUGO (ULINUX_S_IRUSR|ULINUX_S_IRGRP|ULINUX_S_IROTH)
39 #define ULINUX_S_IWUGO (ULINUX_S_IWUSR|ULINUX_S_IWGRP|ULINUX_S_IWOTH)
40 #define ULINUX_S_IXUGO (ULINUX_S_IXUSR|ULINUX_S_IXGRP|ULINUX_S_IXOTH)
41 #endif