diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-17 15:56:09 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-17 15:56:09 +0100 |
commit | 303577df16cf990d1c0cb2c83cd8a954258809ba (patch) | |
tree | 44465262dd4225bb6e4ea01173bc58e072891818 /LibC/fcntl.h | |
parent | e440c3fa87d69d77c6af390d33f535c67c91f8b9 (diff) | |
download | serenity-303577df16cf990d1c0cb2c83cd8a954258809ba.zip |
Various stubs while trying to get an old coreutils to build.
Diffstat (limited to 'LibC/fcntl.h')
-rw-r--r-- | LibC/fcntl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/LibC/fcntl.h b/LibC/fcntl.h index c717acdc1a..5181ff22df 100644 --- a/LibC/fcntl.h +++ b/LibC/fcntl.h @@ -12,6 +12,19 @@ __BEGIN_DECLS #define FD_CLOEXEC 1 +#define O_RDONLY 0 +#define O_WRONLY 1 +#define O_RDWR 2 +#define O_CREAT 0100 +#define O_EXCL 0200 +#define O_NOCTTY 0400 +#define O_TRUNC 01000 +#define O_APPEND 02000 +#define O_NONBLOCK 04000 +#define O_DIRECTORY 00200000 +#define O_NOFOLLOW 00400000 +#define O_CLOEXEC 02000000 + int fcntl(int fd, int cmd, ...); __END_DECLS |