home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / FCNTL.H < prev    next >
Text File  |  1993-09-17  |  2KB  |  54 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __fcntl_h
  8.    #define __fcntl_h
  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/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  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. #endif
  48.  
  49. #pragma info( none )
  50. #ifndef __CHKHDR__
  51.    #pragma info( restore )
  52. #endif
  53. #pragma info( restore )
  54.