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
27 #ifndef _UTIMBUF_DEFINED
28 #define _UTIMBUF_DEFINED
44 #endif /* _UTIMBUF_DEFINED */
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
); }
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
); }
72 #define utimbuf _utimbuf
74 static inline int utime(const char* path
, struct _utimbuf
* buf
) { return _utime(path
, buf
); }
78 #endif /* __WINE_SYS_UTIME_H */