update for HEAD-2003021201
[reactos.git] / include / msvcrt / sys / utime.h
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 <colin@bird.fu.is.saga-u.ac.jp>
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$
22  * $Author$
23  * $Date$
24  *
25  */
26
27 #ifndef __STRICT_ANSI__
28
29 #ifndef _UTIME_H_
30 #define _UTIME_H_
31
32 #define __need_wchar_t
33 #define __need_size_t
34 #include <msvcrt/stddef.h>
35 #include <msvcrt/sys/types.h>
36
37
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
47
48 #ifndef _NO_OLDNAMES
49
50 /* NOTE: Must be the same as _utimbuf above. */
51 struct utimbuf
52 {
53     time_t actime;
54     time_t modtime;
55 };
56 #endif  /* Not _NO_OLDNAMES */
57
58
59 #ifdef  __cplusplus
60 extern "C" {
61 #endif
62
63 int _utime(const char*, struct _utimbuf*);
64 int _futime(int, struct _utimbuf*);
65
66 /* The wide character version, only available for MSVCRT versions of the
67  * C runtime library. */
68 int _wutime(const wchar_t*, struct _utimbuf*);
69
70 #ifndef _NO_OLDNAMES
71 int utime(const char*, struct utimbuf*);
72 #endif  /* Not _NO_OLDNAMES */
73
74
75 #ifdef  __cplusplus
76 }
77 #endif
78
79 #endif  /* Not _UTIME_H_ */
80 #endif  /* Not __STRICT_ANSI__ */