diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-11-16 17:08:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-16 17:29:09 +0100 |
commit | fbcab844de177b7ba3a136f4943ea5af805afaf4 (patch) | |
tree | dd8a7e16337e3fbd26f3a30686c325b20268d77c /Libraries/LibC/fcntl.h | |
parent | 8d4d63d9b62169bec7deb963116436efb96f6539 (diff) | |
download | serenity-fbcab844de177b7ba3a136f4943ea5af805afaf4.zip |
LibC: Move the creat() and open() families to <fcntl.h>
Since POSIX says that's where they belong :^)
Diffstat (limited to 'Libraries/LibC/fcntl.h')
-rw-r--r-- | Libraries/LibC/fcntl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibC/fcntl.h b/Libraries/LibC/fcntl.h index 381667e364..b42fa93097 100644 --- a/Libraries/LibC/fcntl.h +++ b/Libraries/LibC/fcntl.h @@ -54,6 +54,14 @@ __BEGIN_DECLS #define S_IRWXG (S_IRWXU >> 3) #define S_IRWXO (S_IRWXG >> 3) +int creat(const char* path, mode_t); +int open(const char* path, int options, ...); +int creat_with_path_length(const char* path, size_t path_length, mode_t); +int open_with_path_length(const char* path, size_t path_length, int options, mode_t); +#define AT_FDCWD -100 +int openat(int dirfd, const char* path, int options, ...); +int openat_with_path_length(int dirfd, const char* path, size_t path_length, int options, mode_t); + int fcntl(int fd, int cmd, ...); int watch_file(const char* path, int path_length); |