home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c220 / 4.ddi / INC / FCNTL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-16  |  849 b   |  47 lines

  1. /*
  2.  *   fcntl.h -- non-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. #define _O_RDONLY 0
  13. #define _O_WRONLY 1
  14. #define _O_RDWR   2
  15. #define _O_APPEND 8
  16.  
  17. #define _O_NOINHERIT 128
  18.  
  19. #define _O_CREAT 256
  20. #define _O_TRUNC 512
  21. #define _O_EXCL 1024
  22.  
  23. #define _O_TEXT   0x4000
  24. #define _O_BINARY 0x8000
  25. #define _O_RAW    0x8000
  26.  
  27. #ifdef __HIGHC__
  28.  
  29. #define O_RDONLY     _O_RDONLY 
  30. #define O_WRONLY     _O_WRONLY 
  31. #define O_RDWR     _O_RDWR 
  32. #define O_APPEND     _O_APPEND 
  33.  
  34. #define O_NOINHERIT     _O_NOINHERIT 
  35.  
  36. #define O_CREAT     _O_CREAT 
  37. #define O_TRUNC     _O_TRUNC 
  38. #define O_EXCL     _O_EXCL 
  39.  
  40. #define O_TEXT     _O_TEXT 
  41. #define O_BINARY     _O_BINARY 
  42. #define O_RAW     _O_RAW 
  43.  
  44. #endif
  45.  
  46. #endif /* _FCNTL_H */
  47.