home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / UTIME.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  1KB  |  82 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 1.5
  9.  *
  10.  *      Copyright (c) 1991, 1994 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.  
  31. #if !defined(RC_INVOKED)
  32.  
  33. #if defined(__STDC__)
  34. #pragma warn -nak
  35. #endif
  36.  
  37. #pragma option -a-
  38.  
  39. #endif  /* !RC_INVOKED */
  40.  
  41.  
  42. #ifndef  _TIME_T
  43. #define  _TIME_T
  44. typedef long time_t;
  45. #endif
  46.  
  47. /* Structure passed to utime containing file times
  48.  */
  49. struct utimbuf
  50. {
  51.         time_t  actime;         /* access time (not used on DOS) */
  52.         time_t  modtime;        /* modification time */
  53. };
  54.  
  55. #ifdef __cplusplus
  56. extern "C" {
  57. #endif
  58.  
  59.  
  60. int    _RTLENTRY _EXPFUNC utime(const char _FAR * __path,
  61.                                 const struct utimbuf _FAR *__times);
  62.  
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68.  
  69. #if !defined(RC_INVOKED)
  70.  
  71. #pragma option -a.  /* restore default packing */
  72.  
  73. #if defined(__STDC__)
  74. #pragma warn .nak
  75. #endif
  76.  
  77. #endif  /* !RC_INVOKED */
  78.  
  79.  
  80. #endif  /* __UTIME_H */
  81.  
  82.