ReactOS 0.4.16-dev-2104-gb84fa49
utime.h
Go to the documentation of this file.
1/*
2 * Path and directory definitions
3 *
4 * Copyright 2000 Francois Gouget.
5 *
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.
10 *
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.
15 *
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
19 */
20#ifndef __WINE_SYS_UTIME_H
21#define __WINE_SYS_UTIME_H
22
23#include <corecrt.h>
24
25#include <pshpack8.h>
26
27#ifndef _UTIMBUF_DEFINED
28#define _UTIMBUF_DEFINED
30{
33};
35{
38};
40{
43};
44#endif /* _UTIMBUF_DEFINED */
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
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*);
56
57#ifdef _USE_32BIT_TIME_T
58static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); }
59static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); }
60static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); }
61#else
62static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); }
63static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); }
64static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime64(s, (struct __utimbuf64*)buf); }
65#endif
66
67#ifdef __cplusplus
68}
69#endif
70
71
72#define utimbuf _utimbuf
73
74static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); }
75
76#include <poppack.h>
77
78#endif /* __WINE_SYS_UTIME_H */
__msvcrt_long __time32_t
Definition: corecrt.h:209
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
__time32_t time_t
Definition: corecrt.h:228
_ACRTIMP int __cdecl _utime64(const char *, struct __utimbuf64 *)
Definition: file.c:3497
_ACRTIMP int __cdecl _wutime64(const wchar_t *, struct __utimbuf64 *)
Definition: file.c:3529
static int _wutime(const wchar_t *s, struct _utimbuf *buf)
Definition: utime.h:64
_ACRTIMP int __cdecl _futime32(int, struct __utimbuf32 *)
Definition: file.c:2101
_ACRTIMP int __cdecl _wutime32(const wchar_t *, struct __utimbuf32 *)
Definition: file.c:3545
static int _futime(int fd, struct _utimbuf *buf)
Definition: utime.h:62
static int _utime(const char *s, struct _utimbuf *buf)
Definition: utime.h:63
_ACRTIMP int __cdecl _futime64(int, struct __utimbuf64 *)
Definition: file.c:2072
_ACRTIMP int __cdecl _utime32(const char *, struct __utimbuf32 *)
Definition: file.c:3513
#define utime
Definition: getline.c:47
GLdouble s
Definition: gl.h:2039
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
__int64 __time64_t
Definition: corecrt.h:619
static int fd
Definition: io.c:51
__time32_t actime
Definition: utime.h:36
__time32_t modtime
Definition: utime.h:37
__time64_t modtime
Definition: utime.h:42
__time64_t actime
Definition: utime.h:41
Definition: utime.h:30
time_t modtime
Definition: utime.h:32
time_t actime
Definition: utime.h:31