fcntl.h 381 B

123456789101112131415161718192021222324
  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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. int open(const char* filename, int flags, ...);
  15. #ifdef __cplusplus
  16. }
  17. #endif
  18. #endif