home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hsys.z / utime.h < prev   
C/C++ Source or Header  |  1996-11-06  |  1KB  |  59 lines

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