fcntl.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the w64 mingw-runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER within this package.
  5. */
  6. #include <_mingw.h>
  7. #include <io.h>
  8. #ifndef _INC_FCNTL
  9. #define _INC_FCNTL
  10. #define _O_RDONLY 0x0000
  11. #define _O_WRONLY 0x0001
  12. #define _O_RDWR 0x0002
  13. #define _O_APPEND 0x0008
  14. #define _O_CREAT 0x0100
  15. #define _O_TRUNC 0x0200
  16. #define _O_EXCL 0x0400
  17. #define _O_TEXT 0x4000
  18. #define _O_BINARY 0x8000
  19. #define _O_WTEXT 0x10000
  20. #define _O_U16TEXT 0x20000
  21. #define _O_U8TEXT 0x40000
  22. #define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
  23. #define _O_RAW _O_BINARY
  24. #define _O_NOINHERIT 0x0080
  25. #define _O_TEMPORARY 0x0040
  26. #define _O_SHORT_LIVED 0x1000
  27. #define _O_SEQUENTIAL 0x0020
  28. #define _O_RANDOM 0x0010
  29. #if !defined(NO_OLDNAMES) || defined(_POSIX)
  30. #define O_RDONLY _O_RDONLY
  31. #define O_WRONLY _O_WRONLY
  32. #define O_RDWR _O_RDWR
  33. #define O_APPEND _O_APPEND
  34. #define O_CREAT _O_CREAT
  35. #define O_TRUNC _O_TRUNC
  36. #define O_EXCL _O_EXCL
  37. #define O_TEXT _O_TEXT
  38. #define O_BINARY _O_BINARY
  39. #define O_RAW _O_BINARY
  40. #define O_TEMPORARY _O_TEMPORARY
  41. #define O_NOINHERIT _O_NOINHERIT
  42. #define O_SEQUENTIAL _O_SEQUENTIAL
  43. #define O_RANDOM _O_RANDOM
  44. #define O_ACCMODE _O_ACCMODE
  45. #endif
  46. #endif