home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / UTIME.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-30  |  1.3 KB  |  80 lines

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