diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-08 02:38:21 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-08 02:38:21 +0100 |
commit | 736e8525259e0f562dc5dda3f7756ea738667b74 (patch) | |
tree | e3465c379fd8192672d8346063810c6d1d4311fc /LibC/fcntl.h | |
parent | 5158bee08cab9b6484ed5d455f1b6b7023e65ecd (diff) | |
download | serenity-736e8525259e0f562dc5dda3f7756ea738667b74.zip |
LibC: Implement enough missing stuff to get bash-5.0 running. :^)
Diffstat (limited to 'LibC/fcntl.h')
-rw-r--r-- | LibC/fcntl.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/LibC/fcntl.h b/LibC/fcntl.h index 5181ff22df..fd6b710823 100644 --- a/LibC/fcntl.h +++ b/LibC/fcntl.h @@ -25,6 +25,31 @@ __BEGIN_DECLS #define O_NOFOLLOW 00400000 #define O_CLOEXEC 02000000 +#define S_IFMT 0170000 +#define S_IFDIR 0040000 +#define S_IFCHR 0020000 +#define S_IFBLK 0060000 +#define S_IFREG 0100000 +#define S_IFIFO 0010000 +#define S_IFLNK 0120000 +#define S_IFSOCK 0140000 + +#define S_ISUID 04000 +#define S_ISGID 02000 +#define S_ISVTX 01000 +#define S_IRUSR 0400 +#define S_IWUSR 0200 +#define S_IXUSR 0100 +#define S_IRGRP 0040 +#define S_IWGRP 0020 +#define S_IXGRP 0010 +#define S_IROTH 0004 +#define S_IWOTH 0002 +#define S_IXOTH 0001 + +#define S_IRWXG (S_IRWXU >> 3) +#define S_IRWXO (S_IRWXG >> 3) + int fcntl(int fd, int cmd, ...); __END_DECLS |