home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / sys / utime.h < prev   
Encoding:
C/C++ Source or Header  |  1996-02-20  |  2.1 KB  |  81 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 __utime_h
  10.    #define __utime_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.    /*  <sys\utime.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(__EXTENDED__)
  45.  
  46.       #ifndef  __time_t
  47.          #define __time_t
  48.          typedef long time_t;
  49.       #endif
  50.  
  51.       /* define struct used by _utime() function */
  52.  
  53.       struct utimbuf
  54.          {
  55.          time_t actime;          /* access time */
  56.          time_t modtime;         /* modification time */
  57.          };
  58.  
  59.       /* function prototypes */
  60.  
  61.       extern int _IMPORT _LNK_CONV _utime( char *, struct utimbuf * );
  62.  
  63.       #define utime(a,b) _utime((a),(b))
  64.  
  65.    #endif
  66.  
  67.    #ifdef __cplusplus
  68.       }
  69.    #endif
  70.  
  71. #endif
  72.  
  73. #if (defined(__IBMC__) || defined(__IBMCPP__))
  74. #pragma info( none )
  75. #ifndef __CHKHDR__
  76.    #pragma info( restore )
  77. #endif
  78. #pragma info( restore )
  79. #endif
  80.  
  81.