This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / include / crtdll / 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  *  DISCLAMED. 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 <crtdll/stddef.h>
35 #include <crtdll/sys/types.h>
36
37 #ifdef  __cplusplus
38 extern "C" {
39 #endif
40
41 /*
42  * Structure used by _utime function.
43  */
44 struct _utimbuf
45 {
46         time_t  actime;         /* Access time */
47         time_t  modtime;        /* Modification time */
48 };
49
50 int     _utime (const char* szFileName, struct _utimbuf* pTimes);
51 int     _futime (int nHandle, struct _utimbuf *pTimes);
52
53 /* Wide character version */
54 int     _wutime (const wchar_t *szFileName, struct _utimbuf *times);
55
56 #ifndef _NO_OLDNAMES
57
58 /* NOTE: Must be the same as _utimbuf above. */
59 struct utimbuf
60 {
61         time_t  actime;
62         time_t  modtime;
63 };
64
65 int     utime (const char* szFileName, struct utimbuf* pTimes);
66
67 #endif  /* Not _NO_OLDNAMES */
68
69
70 #ifdef  __cplusplus
71 }
72 #endif
73
74 #endif  /* Not _UTIME_H_ */
75 #endif  /* Not __STRICT_ANSI__ */