io-defs.inc 506 B

123456789101112131415161718192021222324
  1. %ifndef __IO_DEFS_INC__
  2. %define __IO_DEFS_INC__
  3. ; std i/o file descriptors
  4. %define STDOUT 0x1
  5. %define STDIN 0x0
  6. %define STDERR 0x2
  7. ; _open flags
  8. %define O_READ_ONLY 0x0
  9. %define O_WRITE_ONLY 0x1
  10. %define O_READ_WRITE 0x2
  11. %define O_APPEND 0x2000
  12. %define O_TRUNCATE 0x1000
  13. %define O_CREATE 0x100
  14. %define O_DIRECT 0x40000
  15. %define O_NOATIME 0x1000000
  16. ; _lseek modes
  17. %define SEEK_SET 0x0
  18. %define SEEK_CUR 0x1
  19. %define SEEK_END 0x2
  20. %endif ; __IO_DEFS_INC__