mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
LibC: Move the creat() and open() families to <fcntl.h>
Since POSIX says that's where they belong :^)
This commit is contained in:
parent
8d4d63d9b6
commit
fbcab844de
4 changed files with 66 additions and 66 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue