2001-04-11 01:21:43 +02:00
|
|
|
/*
|
|
|
|
* Path and directory definitions
|
|
|
|
*
|
|
|
|
* Copyright 2000 Francois Gouget.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-04-11 01:21:43 +02:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_SYS_UTIME_H
|
|
|
|
#define __WINE_SYS_UTIME_H
|
2003-07-19 00:57:15 +02:00
|
|
|
#ifndef __WINE_USE_MSVCRT
|
2001-10-22 20:59:23 +02:00
|
|
|
#define __WINE_USE_MSVCRT
|
2003-07-19 00:57:15 +02:00
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _WCHAR_T_DEFINED
|
|
|
|
#define _WCHAR_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#ifndef __cplusplus
|
2004-06-25 03:19:15 +02:00
|
|
|
typedef unsigned short wchar_t;
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _TIME_T_DEFINED
|
|
|
|
typedef long time_t;
|
|
|
|
#define _TIME_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _UTIMBUF_DEFINED
|
|
|
|
#define _UTIMBUF_DEFINED
|
2001-04-11 01:21:43 +02:00
|
|
|
struct _utimbuf
|
|
|
|
{
|
2004-06-25 03:19:15 +02:00
|
|
|
time_t actime;
|
|
|
|
time_t modtime;
|
2001-04-11 01:21:43 +02:00
|
|
|
};
|
2004-06-25 03:19:15 +02:00
|
|
|
#endif /* _UTIMBUF_DEFINED */
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int _futime(int,struct _utimbuf*);
|
|
|
|
int _utime(const char*,struct _utimbuf*);
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
int _wutime(const wchar_t*,struct _utimbuf*);
|
2001-04-11 01:21:43 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define utimbuf _utimbuf
|
|
|
|
|
2003-01-11 23:49:54 +01:00
|
|
|
static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); }
|
2001-04-11 01:21:43 +02:00
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#endif /* __WINE_SYS_UTIME_H */
|