utime.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * utime.h
  3. *
  4. * Support for the utime function.
  5. *
  6. * This file is part of the Mingw32 package.
  7. *
  8. * Contributors:
  9. * Created by Colin Peters <[email protected]>
  10. *
  11. * THIS SOFTWARE IS NOT COPYRIGHTED
  12. *
  13. * This source code is offered for use in the public domain. You may
  14. * use, modify or distribute it freely.
  15. *
  16. * This code is distributed in the hope that it will be useful but
  17. * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18. * DISCLAIMED. This includes but is not limited to warranties of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. *
  21. * $Revision: 1.2 $
  22. * $Author: bellard $
  23. * $Date: 2005/04/17 13:14:29 $
  24. *
  25. */
  26. #ifndef __STRICT_ANSI__
  27. #ifndef _UTIME_H_
  28. #define _UTIME_H_
  29. /* All the headers include this file. */
  30. #include <_mingw.h>
  31. #define __need_wchar_t
  32. #define __need_size_t
  33. #ifndef RC_INVOKED
  34. #include <stddef.h>
  35. #endif /* Not RC_INVOKED */
  36. #include <sys/types.h>
  37. #ifndef RC_INVOKED
  38. /*
  39. * Structure used by _utime function.
  40. */
  41. struct _utimbuf
  42. {
  43. time_t actime; /* Access time */
  44. time_t modtime; /* Modification time */
  45. };
  46. #ifndef _NO_OLDNAMES
  47. /* NOTE: Must be the same as _utimbuf above. */
  48. struct utimbuf
  49. {
  50. time_t actime;
  51. time_t modtime;
  52. };
  53. #endif /* Not _NO_OLDNAMES */
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. int _utime (const char*, struct _utimbuf*);
  58. int _futime (int, struct _utimbuf*);
  59. /* The wide character version, only available for MSVCRT versions of the
  60. * C runtime library. */
  61. #ifdef __MSVCRT__
  62. int _wutime (const wchar_t*, struct _utimbuf*);
  63. #endif /* MSVCRT runtime */
  64. #ifndef _NO_OLDNAMES
  65. int utime (const char*, struct utimbuf*);
  66. #endif /* Not _NO_OLDNAMES */
  67. #ifdef __cplusplus
  68. }
  69. #endif
  70. #endif /* Not RC_INVOKED */
  71. #endif /* Not _UTIME_H_ */
  72. #endif /* Not __STRICT_ANSI__ */