home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / incla / fcntl.h__ / FCNTL.H
Encoding:
C/C++ Source or Header  |  1992-09-30  |  2.3 KB  |  54 lines

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