home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / INC.PAK / UTIME.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  1KB  |  83 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.5
  9.  *
  10.  *      Copyright (c) 1991, 1994 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #ifndef __UTIME_H
  16. #define __UTIME_H
  17.  
  18. #if !defined(___DEFS_H)
  19. #include <_defs.h>
  20. #endif
  21.  
  22.  
  23. #if !defined(RC_INVOKED)
  24.  
  25. #if defined(__STDC__)
  26. #pragma warn -nak
  27. #endif
  28.  
  29. #if defined(__FLAT__)
  30. #pragma option -a-
  31. #endif
  32.  
  33. #endif  /* !RC_INVOKED */
  34.  
  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(const char _FAR *__path,
  60.                              const struct utimbuf _FAR *__times);
  61. #endif
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67.  
  68. #if !defined(RC_INVOKED)
  69.  
  70. #if defined(__FLAT__)
  71. #pragma option -a.  /* restore default packing */
  72. #endif
  73.  
  74. #if defined(__STDC__)
  75. #pragma warn .nak
  76. #endif
  77.  
  78. #endif  /* !RC_INVOKED */
  79.  
  80.  
  81. #endif  /* __UTIME_H */
  82.  
  83.