home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hsys.z / utime.h < prev   
C/C++ Source or Header  |  1996-07-24  |  1KB  |  56 lines

  1. /*
  2.  *  sys/utime.h utimbuf structure and prototypes
  3.  *
  4.  *  Copyright by WATCOM International Corp. 1988-1995.  All rights reserved.
  5.  */
  6. #ifndef _UTIME_H_INCLUDED
  7. #define _UTIME_H_INCLUDED
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11.  
  12. #ifndef _COMDEF_H_INCLUDED
  13.  #include <_comdef.h>
  14. #endif
  15.  
  16. #if defined(_M_IX86)
  17.   #pragma pack(__push,1);
  18. #else
  19.   #pragma pack(__push,8);
  20. #endif
  21.  
  22. #ifndef _TIME_T_DEFINED
  23. #define _TIME_T_DEFINED
  24. #define _TIME_T_DEFINED_
  25. typedef unsigned long time_t; /* time value */
  26. #endif
  27.  
  28. #ifndef _WCHAR_T_DEFINED
  29. #define _WCHAR_T_DEFINED
  30. #define _WCHAR_T_DEFINED_
  31. #ifdef __cplusplus
  32. typedef long char wchar_t;
  33. #else
  34. typedef unsigned short wchar_t;
  35. #endif
  36. #endif
  37.  
  38. struct utimbuf {
  39.     time_t    actime;     /* access time */
  40.     time_t    modtime;    /* modification time */
  41. };
  42. #define _utimbuf    utimbuf
  43.  
  44. /*
  45.  *  POSIX 1003.1 Prototype
  46.  */
  47. _WCRTLINK extern int utime( const char *__path, const struct utimbuf * __times );
  48. _WCRTLINK extern int _utime( const char *__path, const struct utimbuf * __times );
  49. _WCRTLINK extern int _wutime( const wchar_t *__path, const struct utimbuf * __times );
  50.  
  51. #pragma pack(__pop);
  52. #ifdef __cplusplus
  53. };
  54. #endif
  55. #endif
  56.