home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 14.ddi / GENINC.PAK / UTIME.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  1.3 KB  |  74 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.0
  9.  *
  10.  *      Copyright (c) 1991, 1993 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. /*
  16.  *      C/C++ Run Time Library - Version 6.0
  17.  *
  18.  *      Copyright (c) 1991, 1993 by Borland International
  19.  *      All Rights Reserved.
  20.  *
  21.  */
  22.  
  23. #ifndef __UTIME_H
  24. #define __UTIME_H
  25.  
  26. #if !defined(___DEFS_H)
  27. #include <_defs.h>
  28. #endif
  29.  
  30. #if defined(__FLAT__)
  31. #if !defined(_RC_INVOKED)
  32. #pragma option -a-
  33. #endif
  34. #endif
  35.  
  36. #ifndef  _TIME_T
  37. #define  _TIME_T
  38. typedef long time_t;
  39. #endif
  40.  
  41. /* Structure passed to utime containing file times
  42.  */
  43. struct utimbuf
  44. {
  45.         time_t  actime;         /* access time (not used on DOS) */
  46.         time_t  modtime;        /* modification time */
  47. };
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52.  
  53. #if defined(__FLAT__)
  54.  
  55. int    _RTLENTRY _EXPFUNC utime(const char _FAR * __path,
  56.                                 const struct utimbuf _FAR *__times);
  57.  
  58. #else
  59. int    _Cdecl _FARFUNC utime(char _FAR *__path, struct utimbuf _FAR *__times);
  60. #endif
  61.  
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #if defined(__FLAT__)
  67. #if !defined(_RC_INVOKED)
  68. #pragma option -a.  /* restore default packing */
  69. #endif
  70. #endif
  71.  
  72. #endif  /* __UTIME_H */
  73.  
  74.