home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / libc / sys / utime.h < prev   
Text File  |  1999-03-15  |  2KB  |  78 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 __utime_h
  10.    #define __utime_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.    /*  <sys\utime.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.       #ifndef  __time_t
  44.          #define __time_t
  45.          typedef long time_t;
  46.       #endif
  47.  
  48.       /* define struct used by _utime() function */
  49.  
  50.       struct utimbuf
  51.          {
  52.          time_t actime;          /* access time */
  53.          time_t modtime;         /* modification time */
  54.          };
  55.  
  56.       /* function prototypes */
  57.  
  58.       extern int _IMPORT _LNK_CONV _utime( char *, struct utimbuf * );
  59.  
  60.       #define utime(a,b) _utime((a),(b))
  61.  
  62.    #endif
  63.  
  64.    #ifdef __cplusplus
  65.       }
  66.    #endif
  67.  
  68. #endif
  69.  
  70. #if __IBMC__ || __IBMCPP__
  71. #pragma info( none )
  72. #ifndef __CHKHDR__
  73.    #pragma info( restore )
  74. #endif
  75. #pragma info( restore )
  76. #endif
  77.  
  78.