ntdll: Allow NtQueryVolumeInformationFile to make async volume information queries.
[wine.git] / include / msvcrt / sys / utime.h
blob79a9474cae0792779c891eff1eda0b4f36c1c8b0
1 /*
2 * Path and directory definitions
4 * Copyright 2000 Francois Gouget.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_SYS_UTIME_H
21 #define __WINE_SYS_UTIME_H
23 #include <corecrt.h>
25 #include <pshpack8.h>
27 #ifndef _UTIMBUF_DEFINED
28 #define _UTIMBUF_DEFINED
29 struct _utimbuf
31 time_t actime;
32 time_t modtime;
34 struct __utimbuf32
36 __time32_t actime;
37 __time32_t modtime;
39 struct __utimbuf64
41 __time64_t actime;
42 __time64_t modtime;
44 #endif /* _UTIMBUF_DEFINED */
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
50 _ACRTIMP int __cdecl _futime32(int,struct __utimbuf32*);
51 _ACRTIMP int __cdecl _futime64(int,struct __utimbuf64*);
52 _ACRTIMP int __cdecl _utime32(const char*,struct __utimbuf32*);
53 _ACRTIMP int __cdecl _utime64(const char*,struct __utimbuf64*);
54 _ACRTIMP int __cdecl _wutime32(const wchar_t*,struct __utimbuf32*);
55 _ACRTIMP int __cdecl _wutime64(const wchar_t*,struct __utimbuf64*);
57 #ifdef _USE_32BIT_TIME_T
58 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); }
59 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); }
60 static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); }
61 #else
62 static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); }
63 static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); }
64 static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime64(s, (struct __utimbuf64*)buf); }
65 #endif
67 #ifdef __cplusplus
69 #endif
72 #define utimbuf _utimbuf
74 static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); }
76 #include <poppack.h>
78 #endif /* __WINE_SYS_UTIME_H */