home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / FCNTL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  1010 b   |  28 lines

  1. /* fcntl.h - file control options for the open function
  2.  * $Version: 1.1 $
  3.  * Copyright (c) 1988-91 Intel Corporation, ALL RIGHTS RESERVED.
  4.  */
  5.  
  6. #ifndef _fcntlh
  7. #define _fcntlh
  8. /*lint -library */
  9.  
  10. #define  O_RDONLY   0x0000  /* read only */
  11. #define  O_WRONLY   0x0001  /* write only */
  12. #define  O_RDWR     0x0002  /* read/write, update mode */
  13. #define  O_APPEND   0x0008  /* append mode */
  14.  
  15. #define  O_CREAT    0x0100  /* create and open file */
  16. #define  O_TRUNC    0x0200  /* length is truncated to 0 */
  17. #define  O_EXCL     0x0400  /* exclusive open, used with O_CREAT */
  18.  
  19. #define  O_NOCTTY   0x1000  /* the open of a terminal device shall not become
  20.                 the controling terminal for the process */
  21. #define  O_NONBLOCK 0x2000  /* the open function shall return without waiting
  22.                 for the device to be ready or available */
  23.  
  24. #define  O_TEXT     0x4000  /* ascii mode, <cr><lf> xlates, CNTL-Z */
  25. #define  O_BINARY   0x8000  /* mode is binary (no translation) */
  26.  
  27. #endif /* _fcntlh */
  28.