diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 22:57:45 +0100 |
| commit | 2ce58c995946f85666e793c4f06efff683e76ae4 (patch) | |
| tree | fbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /src/libc/include/fcntl.h | |
| parent | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff) | |
fixesHEADhelloworldmaster
Diffstat (limited to 'src/libc/include/fcntl.h')
| -rw-r--r-- | src/libc/include/fcntl.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libc/include/fcntl.h b/src/libc/include/fcntl.h index 282ced8..1edf2fc 100644 --- a/src/libc/include/fcntl.h +++ b/src/libc/include/fcntl.h @@ -19,11 +19,12 @@ #ifndef _FCNTL_H #define _FCNTL_H -enum -{ - O_RDONLY = 1, - O_WRONLY = 1 << 1, - O_RDWR = O_RDONLY | O_WRONLY -}; +#define O_RDONLY 1 +#define O_WRONLY (1 << 1) +#define O_CREAT (1 << 2) +#define O_APPEND (1 << 3) +#define O_RDWR (O_RDONLY | O_WRONLY) + +int open(const char *__path, int __flags, ...); #endif |
