home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / libc / fcntl.h < prev    next >
Text File  |  1999-03-15  |  2KB  |  53 lines

  1. #if __IBMC__ || __IBMCPP__
  2. #pragma info( none )
  3. #ifndef __CHKHDR__
  4.    #pragma info( none )
  5. #endif
  6. #pragma info( restore )
  7. #endif
  8.  
  9. #ifndef __fcntl_h
  10.    #define __fcntl_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    /********************************************************************/
  17.    /*  <fcntl.h> header file                                           */
  18.    /*                                                                  */
  19.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  20.    /*  - Licensed Material - Program-Property of IBM                   */
  21.    /*  - All rights reserved                                           */
  22.    /*                                                                  */
  23.    /********************************************************************/
  24.  
  25.    #if (defined( __SPC__ ) ||  defined(__EXTENDED__))
  26.       #define O_RDONLY        0x00000004  /* open for read only */
  27.       #define O_WRONLY        0x00000001  /* open for write only */
  28.       #define O_RDWR          0x00000002  /* open for read and write */
  29.       #define O_APPEND        0x00000008  /* writes done at eof */
  30.       #define O_CREAT         0x00000100  /* create and open file */
  31.       #define O_TRUNC         0x00000200  /* open and truncate    */
  32.       #define O_EXCL          0x00000400  /* open only if file doesn't already exist */
  33.       #define O_TEXT          0x00004000  /* file mode is text (translated) */
  34.       #define O_BINARY        0x00008000  /* file mode is binary (untranslated) */
  35.       #define O_NOINHERIT     0x00000080  /* child process doesn't inherit file */
  36.       #define O_RAW           O_BINARY
  37.    #endif
  38.  
  39.    #ifdef __cplusplus
  40.       }
  41.    #endif
  42.  
  43. #endif
  44.  
  45. #if __IBMC__ || __IBMCPP__
  46. #pragma info( none )
  47. #ifndef __CHKHDR__
  48.    #pragma info( restore )
  49. #endif
  50. #pragma info( restore )
  51. #endif
  52.  
  53.