#ifndef __GBLIBC_FCNTL_H_ #define __GBLIBC_FCNTL_H_ #include #define O_RDONLY 00 #define O_WRONLY 01 #define O_RDWR 02 #define O_CREAT 0100 #define O_TRUNC 01000 #define O_APPEND 02000 #define O_DIRECTORY 0200000 #define O_CLOEXEC 02000000 #define F_DUPFD 0 #define F_GETFD 1 #define F_SETFD 2 // TODO: more flags #define FD_CLOEXEC 1 #define AT_FDCWD (-100) #define AT_STATX_SYNC_TYPE 0x6000 #ifdef __cplusplus extern "C" { #endif int open(const char* filename, int flags, ...); #ifdef __cplusplus } #endif #endif