home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / utime.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.5 KB  |  82 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 10.0
  9.  *
  10.  *      Copyright (c) 1991, 2000 by Inprise Corporation
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. /* $Revision:   9.3  $ */
  16.  
  17. #ifndef __UTIME_H
  18. #define __UTIME_H
  19.  
  20. #ifndef ___STDDEF_H
  21. #include <_stddef.h>
  22. #endif
  23.  
  24. #if !defined(RC_INVOKED)
  25.  
  26. #if defined(__STDC__)
  27. #pragma warn -nak
  28. #endif
  29.  
  30. #pragma pack(push, 1)
  31.  
  32. #endif  /* !RC_INVOKED */
  33.  
  34.  
  35. #ifndef  _TIME_T
  36. #define  _TIME_T
  37. typedef long time_t;
  38. #endif
  39.  
  40. /* Structure passed to utime containing file times
  41.  */
  42. struct utimbuf
  43. {
  44.         time_t  actime;         /* access time (used on NTFS) */
  45.         time_t  modtime;        /* modification time */
  46. };
  47.  
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51.  
  52. int    _RTLENTRY _EXPFUNC _utime(const char * __path,
  53.                                  const struct utimbuf *__times);
  54. int    _RTLENTRY _EXPFUNC _wutime(const wchar_t * __path,
  55.                                   const struct utimbuf *__times);
  56.  
  57. #if !defined(__STDC__)
  58. int    _RTLENTRY _EXPFUNC utime(const char * __path,
  59.                                 const struct utimbuf *__times);
  60. #endif
  61.  
  62. int _RTLENTRY _EXPFUNC _futime(int __fd, const struct utimbuf *__times);
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68.  
  69. #if !defined(RC_INVOKED)
  70.  
  71. #pragma pack(pop)       /* 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.