home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / fcntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  2.3 KB  |  63 lines

  1. #if (defined(__IBMC__) || defined(__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.    #ifndef  _LNK_CONV
  17.      #ifdef _M_I386
  18.        #define  _LNK_CONV   _Optlink
  19.      #else
  20.        #define  _LNK_CONV
  21.      #endif
  22.    #endif
  23.  
  24.    /********************************************************************/
  25.    /*  <fcntl.h> header file                                           */
  26.    /*                                                                  */
  27.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  28.    /*    Licensed Material - Property of IBM                           */
  29.    /*                                                                  */
  30.    /*  5801-ARR and Other Materials                                    */
  31.    /*                                                                  */
  32.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  33.    /*                                                                  */
  34.    /********************************************************************/
  35.  
  36.    #if (defined( __SPC__ ) ||  defined(__EXTENDED__))
  37.       #define O_RDONLY        0x00000004  /* open for read only */
  38.       #define O_WRONLY        0x00000001  /* open for write only */
  39.       #define O_RDWR          0x00000002  /* open for read and write */
  40.       #define O_APPEND        0x00000008  /* writes done at eof */
  41.       #define O_CREAT         0x00000100  /* create and open file */
  42.       #define O_TRUNC         0x00000200  /* open and truncate    */
  43.       #define O_EXCL          0x00000400  /* open only if file doesn't already exist */
  44.       #define O_TEXT          0x00004000  /* file mode is text (translated) */
  45.       #define O_BINARY        0x00008000  /* file mode is binary (untranslated) */
  46.       #define O_NOINHERIT     0x00000080  /* child process doesn't inherit file */
  47.       #define O_RAW           O_BINARY
  48.    #endif
  49.  
  50.    #ifdef __cplusplus
  51.       }
  52.    #endif
  53.  
  54. #endif
  55.  
  56. #if (defined(__IBMC__) || defined(__IBMCPP__))
  57. #pragma info( none )
  58. #ifndef __CHKHDR__
  59.    #pragma info( restore )
  60. #endif
  61. #pragma info( restore )
  62. #endif
  63.