home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / libc / io.h < prev    next >
Text File  |  1999-03-15  |  7KB  |  174 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 __io_h
  10.    #define __io_h
  11.  
  12.    #ifdef __cplusplus
  13.       extern "C" {
  14.    #endif
  15.  
  16.    #ifndef  _LNK_CONV
  17.       #if __IBMC__ || __IBMCPP__ || defined(_OPTLINK_SUPPORTED)
  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.    /*  (C) Copyright IBM Corp. 1991, 1995.                             */
  36.    /*  - Licensed Material - Program-Property of IBM                   */
  37.    /*  - All rights reserved                                           */
  38.    /*                                                                  */
  39.    /********************************************************************/
  40.  
  41.    #if ( defined(__SPC__) || defined(__EXTENDED__) )
  42.  
  43.       int  _IMPORT _LNK_CONV _access( const char *, int );
  44.       int  _IMPORT _LNK_CONV _chmod( const char *, int );
  45.       int  _IMPORT _LNK_CONV _chsize( int, long );
  46.       int  _IMPORT _LNK_CONV _close( int );
  47.       int  _IMPORT _LNK_CONV _creat( const char *, int );
  48.       int  _IMPORT _LNK_CONV _dup( int );
  49.       int  _IMPORT _LNK_CONV _dup2( int, int );
  50.       int  _IMPORT _LNK_CONV __eof( int );
  51.       long _IMPORT _LNK_CONV _filelength( int );
  52.       int  _IMPORT _LNK_CONV _isatty( int );
  53.       long _IMPORT _LNK_CONV _lseek( int, long, int );
  54.       int  _IMPORT _LNK_CONV _open( const char *, int, ... );
  55.       int  _IMPORT _LNK_CONV _read( int, void *, unsigned int );
  56.       int  _IMPORT _LNK_CONV remove( const char * );
  57.       int  _IMPORT _LNK_CONV rename( const char *, const char * );
  58.       int  _IMPORT _LNK_CONV _sopen( const char *, int, int, ... );
  59.       long _IMPORT _LNK_CONV _tell( int );
  60.       int  _IMPORT _LNK_CONV _umask( int );
  61.       int  _IMPORT _LNK_CONV _unlink( const char * );
  62.       int  _IMPORT _LNK_CONV _write( int, const void *, unsigned int );
  63.       int  _IMPORT _LNK_CONV _setmode(int handle, int mode);
  64.  
  65.       int  _IMPORT _LNK_CONV  access( const char *, int );
  66.       int  _IMPORT _LNK_CONV  chmod( const char *, int );
  67.       int  _IMPORT _LNK_CONV  chsize( int, long );
  68.       int  _IMPORT _LNK_CONV  close( int );
  69.       int  _IMPORT _LNK_CONV  creat( const char *, int );
  70.       int  _IMPORT _LNK_CONV  dup( int );
  71.       int  _IMPORT _LNK_CONV  dup2( int, int );
  72.       int  _IMPORT _LNK_CONV  eof( int );
  73.       long _IMPORT _LNK_CONV  filelength( int );
  74.       int  _IMPORT _LNK_CONV  isatty( int );
  75.       long _IMPORT _LNK_CONV  lseek( int, long, int );
  76.       int  _IMPORT _LNK_CONV  open( const char *, int, ... );
  77.       int  _IMPORT _LNK_CONV  read( int, void *, unsigned int );
  78.       int  _IMPORT _LNK_CONV  sopen( const char *, int, int, ... );
  79.       long _IMPORT _LNK_CONV  tell( int );
  80.       int  _IMPORT _LNK_CONV  umask( int );
  81.       int  _IMPORT _LNK_CONV  unlink( const char * );
  82.       int  _IMPORT _LNK_CONV  write( int, const void *, unsigned int );
  83.       int  _IMPORT _LNK_CONV  setmode(int handle, int mode);
  84.  
  85.       #if __IBMC__ || __IBMCPP__
  86.          #if __WINDOWS__ && __THW_INTEL__
  87.             #pragma map( access    , "?_access"     )
  88.             #pragma map( chmod     , "?_chmod"      )
  89.             #pragma map( chsize    , "?_chsize"     )
  90.             #pragma map( close     , "?_close"      )
  91.             #pragma map( creat     , "?_creat"      )
  92.             #pragma map( dup       , "?_dup"        )
  93.             #pragma map( dup2      , "?_dup2"       )
  94.             #pragma map( eof       , "?__eof"       )
  95.             #pragma map( filelength, "?_filelength" )
  96.             #pragma map( isatty    , "?_isatty"     )
  97.             #pragma map( lseek     , "?_lseek"      )
  98.             #pragma map( open      , "?_open"       )
  99.             #pragma map( read      , "?_read"       )
  100.             #pragma map( sopen     , "?_sopen"      )
  101.             #pragma map( tell      , "?_tell"       )
  102.             #pragma map( umask     , "?_umask"      )
  103.             #ifndef __unlink
  104.                #define __unlink
  105.                #pragma map( unlink    , "?_unlink"     )
  106.             #endif
  107.             #pragma map( write     , "?_write"      )
  108.             #pragma map( setmode   , "?_setmode"    )
  109.          #else
  110.             #pragma map( access    , "_access"     )
  111.             #pragma map( chmod     , "_chmod"      )
  112.             #pragma map( chsize    , "_chsize"     )
  113.             #pragma map( close     , "_close"      )
  114.             #pragma map( creat     , "_creat"      )
  115.             #pragma map( dup       , "_dup"        )
  116.             #pragma map( dup2      , "_dup2"       )
  117.             #pragma map( eof       , "__eof"       )
  118.             #pragma map( filelength, "_filelength" )
  119.             #pragma map( isatty    , "_isatty"     )
  120.             #pragma map( lseek     , "_lseek"      )
  121.             #pragma map( open      , "_open"       )
  122.             #pragma map( read      , "_read"       )
  123.             #pragma map( sopen     , "_sopen"      )
  124.             #pragma map( tell      , "_tell"       )
  125.             #pragma map( umask     , "_umask"      )
  126.             #ifndef __unlink
  127.                #define __unlink
  128.                #pragma map( unlink , "_unlink"     )
  129.             #endif
  130.             #pragma map( write     , "_write"      )
  131.             #pragma map( setmode   , "_setmode"    )
  132.          #endif
  133.       #else
  134.          #define access _access
  135.          #define chmod _chmod
  136.          #define chsize _chsize
  137.          #define close _close
  138.          #define creat _creat
  139.          #define dup _dup
  140.          #define dup2 _dup2
  141.          #define eof __eof
  142.          #define filelength _filelength
  143.          #define isatty _isatty
  144.          #define lseek _lseek
  145.          #define open _open
  146.          #define read _read
  147.          #define sopen _sopen
  148.          #define tell _tell
  149.          #define umask _umask
  150.          #ifndef __unlink
  151.             #define __unlink
  152.             #define unlink _unlink
  153.          #endif
  154.          #define write _write
  155.          #define setmode _setmode
  156.       #endif
  157.  
  158.    #endif
  159.  
  160.    #ifdef __cplusplus
  161.       }
  162.    #endif
  163.  
  164. #endif
  165.  
  166. #if __IBMC__ || __IBMCPP__
  167. #pragma info( none )
  168. #ifndef __CHKHDR__
  169.    #pragma info( restore )
  170. #endif
  171. #pragma info( restore )
  172. #endif
  173.  
  174.