home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc B) / Acorn User China CD-ROM (UK) (Disc B).bin / STUTTGART / FROMUTS / UNIXLIB37B / clib_h_fcntl < prev    next >
Encoding:
Text File  |  1991-03-05  |  651 b   |  38 lines

  1. /* fcntl.h (c) Copyright 1990 H.Rogers */
  2.  
  3. #ifndef __FCNTL_H
  4. #define __FCNTL_H
  5.  
  6. #define O_OMASK     3
  7.  
  8. #define O_RDONLY    0
  9. #define O_WRONLY    1
  10. #define O_RDWR        2
  11.  
  12. #define O_APPEND    0000004
  13. #define O_CREAT     0000010
  14. #define O_TRUNC     0000020
  15. #define O_EXCL        0000040
  16. #define O_NDELAY    0000100
  17.  
  18. #define O_EXECCL    0000400 /* close on exec() flag - must be bit 8 */
  19.  
  20. #define O_BINARY    0002000
  21. #define O_TEXT        0001000
  22.  
  23. #define O_PIPE        0004000 /* UnixLib specific */
  24.  
  25. #ifndef S_IEXEC
  26. #define S_IEXEC     0000100
  27. #define S_IWRITE    0000200
  28. #define S_IREAD     0000400
  29. #endif
  30.  
  31. #define F_DUPFD     1
  32. #define F_GETFD     2
  33. #define F_SETFD     3
  34. #define F_GETFL     4
  35. #define F_SETFL     5
  36.  
  37. #endif
  38.