home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / UTIME.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  2KB  |  98 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 8.0
  9.  *
  10.  *      Copyright (c) 1991, 1997 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   8.4  $ */
  15.  
  16. #ifndef __UTIME_H
  17. #define __UTIME_H
  18.  
  19. #if !defined(___DEFS_H)
  20. #include <_defs.h>
  21. #endif
  22.  
  23. #ifndef __cplusplus
  24. #if !defined(_WCHAR_T) && !defined(_WCHAR_T_DEFINED)
  25. #define _WCHAR_T
  26. #define _WCHAR_T_DEFINED  /* For WINDOWS.H */
  27. typedef unsigned short wchar_t;
  28. #endif
  29. #endif
  30.  
  31. #if !defined(RC_INVOKED)
  32.  
  33. #if defined(__STDC__)
  34. #pragma warn -nak
  35. #endif
  36.  
  37. #if defined(__FLAT__)
  38. #pragma pack(push, 1)
  39. #endif
  40.  
  41. #endif  /* !RC_INVOKED */
  42.  
  43.  
  44. #ifndef  _TIME_T
  45. #define  _TIME_T
  46. typedef long time_t;
  47. #endif
  48.  
  49. /* Structure passed to utime containing file times
  50.  */
  51. struct utimbuf
  52. {
  53.         time_t  actime;         /* access time (not used on DOS) */
  54.         time_t  modtime;        /* modification time */
  55. };
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. #if defined(__FLAT__)
  62.  
  63. int    _RTLENTRY _EXPFUNC _utime(const char * __path,
  64.                                  const struct utimbuf *__times);
  65. int    _RTLENTRY _EXPFUNC _wutime(const wchar_t * __path,
  66.                                   const struct utimbuf *__times);
  67.  
  68. #if !defined(__STDC__)
  69. int    _RTLENTRY _EXPFUNC utime(const char * __path,
  70.                                 const struct utimbuf *__times);
  71. #endif
  72.  
  73. #else  /* __FLAT__  */
  74. int    _Cdecl _FARFUNC utime(const char _FAR *__path,
  75.                              const struct utimbuf _FAR *__times);
  76. #endif
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82.  
  83. #if !defined(RC_INVOKED)
  84.  
  85. #if defined(__FLAT__)
  86. #pragma pack(pop)       /* restore default packing */
  87. #endif
  88.  
  89. #if defined(__STDC__)
  90. #pragma warn .nak
  91. #endif
  92.  
  93. #endif  /* !RC_INVOKED */
  94.  
  95.  
  96. #endif  /* __UTIME_H */
  97.  
  98.