fcntl.h 556 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-09-02 Meco Man First version
  9. */
  10. #ifndef __FCNTL_H__
  11. #define __FCNTL_H__
  12. #include <sys/_default_fcntl.h>
  13. #ifndef O_EXEC
  14. #define O_EXEC 0x400000
  15. #endif
  16. #ifndef O_TMPFILE
  17. #define O_TMPFILE 0x800000
  18. #endif
  19. #ifndef O_BINARY
  20. #define O_BINARY 0x10000
  21. #endif
  22. #ifndef O_NOFOLLOW
  23. #define O_NOFOLLOW 0x100000
  24. #endif
  25. #ifndef O_DIRECTORY
  26. #define O_DIRECTORY 0x200000
  27. #endif
  28. #endif