home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / io.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-20  |  6.8 KB  |  177 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 __io_h
  10.    #define __io_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.    #ifndef _IMPORT
  25.       #ifdef __IMPORTLIB__
  26.          #define _IMPORT _Import
  27.       #else
  28.          #define _IMPORT
  29.       #endif
  30.    #endif
  31.  
  32.    /********************************************************************/
  33.    /*  <io.h> header file                                              */
  34.    /*                                                                  */
  35.    /*  VisualAge for C++ for Windows, Version 3.5                      */
  36.    /*    Licensed Material - Property of IBM                           */
  37.    /*                                                                  */
  38.    /*  5801-ARR and Other Materials                                    */
  39.    /*                                                                  */
  40.    /*  (c) Copyright IBM Corp 1991, 1996. All rights reserved.         */
  41.    /*                                                                  */
  42.    /********************************************************************/
  43.  
  44.    #if ( defined(__SPC__) || defined(__EXTENDED__) )
  45.  
  46.       int  _IMPORT _LNK_CONV _access( const char *, int );
  47.       int  _IMPORT _LNK_CONV _chmod( const char *, int );
  48.       int  _IMPORT _LNK_CONV _chsize( int, long );
  49.       int  _IMPORT _LNK_CONV _close( int );
  50.       int  _IMPORT _LNK_CONV _creat( const char *, int );
  51.       int  _IMPORT _LNK_CONV _dup( int );
  52.       int  _IMPORT _LNK_CONV _dup2( int, int );
  53.       int  _IMPORT _LNK_CONV __eof( int );
  54.       long _IMPORT _LNK_CONV _filelength( int );
  55.       int  _IMPORT _LNK_CONV _isatty( int );
  56.       long _IMPORT _LNK_CONV _lseek( int, long, int );
  57.       int  _IMPORT _LNK_CONV _open( const char *, int, ... );
  58.       int  _IMPORT _LNK_CONV _read( int, void *, unsigned int );
  59.       int  _IMPORT _LNK_CONV remove( const char * );
  60.       int  _IMPORT _LNK_CONV rename( const char *, const char * );
  61.       int  _IMPORT _LNK_CONV _sopen( const char *, int, int, ... );
  62.       long _IMPORT _LNK_CONV _tell( int );
  63.       int  _IMPORT _LNK_CONV _umask( int );
  64.       int  _IMPORT _LNK_CONV _unlink( const char * );
  65.       int  _IMPORT _LNK_CONV _write( int, const void *, unsigned int );
  66.       int  _IMPORT _LNK_CONV _setmode(int handle, int mode);
  67.  
  68.       int  _IMPORT _LNK_CONV  access( const char *, int );
  69.       int  _IMPORT _LNK_CONV  chmod( const char *, int );
  70.       int  _IMPORT _LNK_CONV  chsize( int, long );
  71.       int  _IMPORT _LNK_CONV  close( int );
  72.       int  _IMPORT _LNK_CONV  creat( const char *, int );
  73.       int  _IMPORT _LNK_CONV  dup( int );
  74.       int  _IMPORT _LNK_CONV  dup2( int, int );
  75.       int  _IMPORT _LNK_CONV  eof( int );
  76.       long _IMPORT _LNK_CONV  filelength( int );
  77.       int  _IMPORT _LNK_CONV  isatty( int );
  78.       long _IMPORT _LNK_CONV  lseek( int, long, int );
  79.       int  _IMPORT _LNK_CONV  open( const char *, int, ... );
  80.       int  _IMPORT _LNK_CONV  read( int, void *, unsigned int );
  81.       int  _IMPORT _LNK_CONV  sopen( const char *, int, int, ... );
  82.       long _IMPORT _LNK_CONV  tell( int );
  83.       int  _IMPORT _LNK_CONV  umask( int );
  84.       int  _IMPORT _LNK_CONV  unlink( const char * );
  85.       int  _IMPORT _LNK_CONV  write( int, const void *, unsigned int );
  86.       int  _IMPORT _LNK_CONV  setmode(int handle, int mode);
  87.  
  88.     #if (defined(__IBMC__) || defined(__IBMCPP__))
  89.       #ifdef __OS2__
  90.       #pragma map( access    , "_access"     )
  91.       #pragma map( chmod     , "_chmod"      )
  92.       #pragma map( chsize    , "_chsize"     )
  93.       #pragma map( close     , "_close"      )
  94.       #pragma map( creat     , "_creat"      )
  95.       #pragma map( dup       , "_dup"        )
  96.       #pragma map( dup2      , "_dup2"       )
  97.       #pragma map( eof       , "__eof"       )
  98.       #pragma map( filelength, "_filelength" )
  99.       #pragma map( isatty    , "_isatty"     )
  100.       #pragma map( lseek     , "_lseek"      )
  101.       #pragma map( open      , "_open"       )
  102.       #pragma map( read      , "_read"       )
  103.       #pragma map( sopen     , "_sopen"      )
  104.       #pragma map( tell      , "_tell"       )
  105.       #pragma map( umask     , "_umask"      )
  106.       #ifndef __unlink
  107.          #define __unlink
  108.          #pragma map( unlink , "_unlink"     )
  109.       #endif
  110.       #pragma map( write     , "_write"      )
  111.       #pragma map( setmode   , "_setmode"    )
  112.       #else
  113.       #pragma map( access    , "?_access"     )
  114.       #pragma map( chmod     , "?_chmod"      )
  115.       #pragma map( chsize    , "?_chsize"     )
  116.       #pragma map( close     , "?_close"      )
  117.       #pragma map( creat     , "?_creat"      )
  118.       #pragma map( dup       , "?_dup"        )
  119.       #pragma map( dup2      , "?_dup2"       )
  120.       #pragma map( eof       , "?__eof"       )
  121.       #pragma map( filelength, "?_filelength" )
  122.       #pragma map( isatty    , "?_isatty"     )
  123.       #pragma map( lseek     , "?_lseek"      )
  124.       #pragma map( open      , "?_open"       )
  125.       #pragma map( read      , "?_read"       )
  126.       #pragma map( sopen     , "?_sopen"      )
  127.       #pragma map( tell      , "?_tell"       )
  128.       #pragma map( umask     , "?_umask"      )
  129.       #ifndef __unlink
  130.          #define __unlink
  131.          #pragma map( unlink    , "?_unlink"     )
  132.       #endif
  133.       #pragma map( write     , "?_write"      )
  134.       #pragma map( setmode   , "?_setmode"    )
  135.       #endif
  136.     #else
  137.       #pragma Alias( access    , "_access"     )
  138.       #pragma Alias( chmod     , "_chmod"      )
  139.       #pragma Alias( chsize    , "_chsize"     )
  140.       #pragma Alias( close     , "_close"      )
  141.       #pragma Alias( creat     , "_creat"      )
  142.       #pragma Alias( dup       , "_dup"        )
  143.       #pragma Alias( dup2      , "_dup2"       )
  144.       #pragma Alias( eof       , "__eof"       )
  145.       #pragma Alias( filelength, "_filelength" )
  146.       #pragma Alias( isatty    , "_isatty"     )
  147.       #pragma Alias( lseek     , "_lseek"      )
  148.       #pragma Alias( open      , "_open"       )
  149.       #pragma Alias( read      , "_read"       )
  150.       #pragma Alias( sopen     , "_sopen"      )
  151.       #pragma Alias( tell      , "_tell"       )
  152.       #pragma Alias( umask     , "_umask"      )
  153.       #ifndef __unlink
  154.          #define __unlink
  155.          #pragma Alias( unlink    , "_unlink"     )
  156.       #endif
  157.       #pragma Alias( write     , "_write"      )
  158.       #pragma Alias( setmode   , "_setmode"    )
  159.     #endif
  160.  
  161.    #endif
  162.  
  163.    #ifdef __cplusplus
  164.       }
  165.    #endif
  166.  
  167. #endif
  168.  
  169. #if (defined(__IBMC__) || defined(__IBMCPP__))
  170. #pragma info( none )
  171. #ifndef __CHKDHR__
  172.    #pragma info( restore )
  173. #endif
  174. #pragma info( restore )
  175. #endif
  176.  
  177.