home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / libc / direct.h < prev    next >
Text File  |  1999-03-15  |  3KB  |  93 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 __direct_h
  10.    #define __direct_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.    /*  <direct.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(__EXTENDED__)
  42.  
  43.       int    _IMPORT _LNK_CONV _chdir( char * );
  44.       char * _IMPORT _LNK_CONV _getcwd( char *, int );
  45.       int    _IMPORT _LNK_CONV _mkdir( char * );
  46.       int    _IMPORT _LNK_CONV _rmdir( char * );
  47.  
  48.       int    _IMPORT _LNK_CONV chdir( char * );
  49.       char * _IMPORT _LNK_CONV getcwd( char *, int );
  50.       int    _IMPORT _LNK_CONV mkdir( char * );
  51.       int    _IMPORT _LNK_CONV rmdir( char * );
  52.  
  53.       #if __IBMC__ || __IBMCPP__
  54.          #if __WINDOWS__ && __THW_INTEL__
  55.             #pragma map( chdir , "?_chdir"  )
  56.             #pragma map( getcwd, "?_getcwd" )
  57.             #pragma map( mkdir , "?_mkdir"  )
  58.             #pragma map( rmdir , "?_rmdir"  )
  59.          #else
  60.             #pragma map( chdir , "_chdir"  )
  61.             #pragma map( getcwd, "_getcwd" )
  62.             #pragma map( mkdir , "_mkdir"  )
  63.             #pragma map( rmdir , "_rmdir"  )
  64.          #endif
  65.       #else
  66.          #define chdir _chdir
  67.          #define getcwd _getcwd
  68.          #define mkdir _mkdir
  69.          #define rmdir _rmdir
  70.       #endif
  71.  
  72.       int    _IMPORT _LNK_CONV _chdrive( int );
  73.       char * _IMPORT _LNK_CONV _getdcwd( int , char *, int );
  74.       int    _IMPORT _LNK_CONV _getdrive( void );
  75.  
  76.  
  77.    #endif
  78.  
  79.    #ifdef __cplusplus
  80.       }
  81.    #endif
  82.  
  83. #endif
  84.  
  85. #if __IBMC__ || __IBMCPP__
  86. #pragma info( none )
  87. #ifndef __CHKHDR__
  88.    #pragma info( restore )
  89. #endif
  90. #pragma info( restore )
  91. #endif
  92.  
  93.