home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / 8 < prev    next >
Encoding:
Text File  |  1992-12-09  |  925 b   |  53 lines

  1. /*
  2.  *   fcntl.h -- extra-ANSI 
  3.  *
  4.  *   Constants to control file opening and operations on file handles.
  5.  *
  6.  *           Copyright (c) 1990, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _FCNTL_H
  10. #define _FCNTL_H
  11.  
  12. #ifdef __CPLUSPLUS__
  13. extern "C" {
  14. #endif
  15.  
  16. #define _O_RDONLY 0
  17. #define _O_WRONLY 1
  18. #define _O_RDWR   2
  19. #define _O_APPEND 8
  20.  
  21. #define _O_NOINHERIT 128
  22.  
  23. #define _O_CREAT 256
  24. #define _O_TRUNC 512
  25. #define _O_EXCL 1024
  26.  
  27. #define _O_TEXT   0x4000
  28. #define _O_BINARY 0x8000
  29. #define _O_RAW    0x8000
  30.  
  31. #if __HIGHC__
  32.  
  33. #define O_RDONLY     _O_RDONLY 
  34. #define O_WRONLY     _O_WRONLY 
  35. #define O_RDWR     _O_RDWR 
  36. #define O_APPEND     _O_APPEND 
  37.  
  38. #define O_NOINHERIT     _O_NOINHERIT 
  39.  
  40. #define O_CREAT     _O_CREAT 
  41. #define O_TRUNC     _O_TRUNC 
  42. #define O_EXCL     _O_EXCL 
  43.  
  44. #define O_TEXT     _O_TEXT 
  45. #define O_BINARY     _O_BINARY 
  46. #define O_RAW     _O_RAW 
  47.  
  48. #endif
  49. #ifdef __CPLUSPLUS__
  50. }
  51. #endif
  52. #endif /* _FCNTL_H */
  53.