fcntl.h 441 B

12345678910111213141516171819202122232425262728
  1. #ifndef __GBLIBC_FCNTL_H_
  2. #define __GBLIBC_FCNTL_H_
  3. #include <stdint.h>
  4. #define O_CREAT (1 << 0)
  5. #define O_RDONLY (1 << 1)
  6. #define O_WRONLY (1 << 2)
  7. #define O_RDWR (1 << 3)
  8. #define O_DIRECTORY (1 << 4)
  9. #define O_APPEND (1 << 5)
  10. #define O_TRUNC (1 << 6)
  11. #define AT_FDCWD (-100)
  12. #define AT_STATX_SYNC_TYPE 0x6000
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. int open(const char* filename, int flags, ...);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif