Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. /***
  2. *sys\utime.h - definitions/declarations for utime()
  3. *
  4. * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file defines the structure used by the utime routine to set
  8. * new file access and modification times. NOTE - MS-DOS
  9. * does not recognize access time, so this field will
  10. * always be ignored and the modification time field will be
  11. * used to set the new time.
  12. *
  13. ****/
  14. #ifndef _INC_UTIME
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #if (_MSC_VER <= 600)
  19. #define __cdecl _cdecl
  20. #define __far _far
  21. #endif
  22. #ifndef _TIME_T_DEFINED
  23. typedef long time_t;
  24. #define _TIME_T_DEFINED
  25. #endif
  26. /* define struct used by utime() function */
  27. #ifndef _UTIMBUF_DEFINED
  28. struct _utimbuf {
  29. time_t actime; /* access time */
  30. time_t modtime; /* modification time */
  31. };
  32. #ifndef __STDC__
  33. /* Non-ANSI name for compatibility */
  34. struct utimbuf {
  35. time_t actime; /* access time */
  36. time_t modtime; /* modification time */
  37. };
  38. #endif
  39. #define _UTIMBUF_DEFINED
  40. #endif
  41. /* function prototypes */
  42. int __cdecl _utime(const char *, struct _utimbuf *);
  43. #ifndef __STDC__
  44. /* Non-ANSI name for compatibility */
  45. int __cdecl utime(const char *, struct utimbuf *);
  46. #endif
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #define _INC_UTIME
  51. #endif