2001-04-11 01:21:43 +02:00
|
|
|
/*
|
|
|
|
* _stat() 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_TYPES_H
|
|
|
|
#define __WINE_SYS_TYPES_H
|
2006-10-16 21:29:23 +02:00
|
|
|
|
2019-08-09 17:32:04 +02:00
|
|
|
#include <corecrt.h>
|
2007-06-06 13:12:57 +02:00
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _DEV_T_DEFINED
|
2001-11-23 19:25:34 +01:00
|
|
|
typedef unsigned int _dev_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _DEV_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _INO_T_DEFINED
|
2001-04-11 01:21:43 +02:00
|
|
|
typedef unsigned short _ino_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _INO_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _MODE_T_DEFINED
|
2003-01-11 23:49:54 +01:00
|
|
|
typedef unsigned short _mode_t;
|
2004-06-25 03:19:15 +02:00
|
|
|
#define _MODE_T_DEFINED
|
2003-01-11 23:49:54 +01:00
|
|
|
#endif
|
|
|
|
|
2004-06-25 03:19:15 +02:00
|
|
|
#ifndef _OFF_T_DEFINED
|
|
|
|
typedef int _off_t;
|
|
|
|
#define _OFF_T_DEFINED
|
2002-12-18 21:17:20 +01:00
|
|
|
#endif
|
|
|
|
|
2006-09-20 22:26:44 +02:00
|
|
|
#ifndef _BSDTYPES_DEFINED
|
2003-03-17 22:22:34 +01:00
|
|
|
typedef unsigned char u_char;
|
|
|
|
typedef unsigned short u_short;
|
|
|
|
typedef unsigned int u_int;
|
2009-05-23 11:38:59 +02:00
|
|
|
typedef __msvcrt_ulong u_long;
|
2006-09-20 22:26:44 +02:00
|
|
|
#define _BSDTYPES_DEFINED
|
2003-03-17 22:22:34 +01:00
|
|
|
#endif
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#define dev_t _dev_t
|
|
|
|
#define ino_t _ino_t
|
2003-01-11 23:49:54 +01:00
|
|
|
#define mode_t _mode_t
|
2001-04-11 01:21:43 +02:00
|
|
|
#define off_t _off_t
|
|
|
|
|
2004-10-11 22:53:50 +02:00
|
|
|
#ifndef _PID_T_DEFINED
|
|
|
|
typedef int pid_t;
|
|
|
|
#define _PID_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SSIZE_T_DEFINED
|
2006-07-10 12:28:25 +02:00
|
|
|
#ifdef _WIN64
|
|
|
|
typedef __int64 ssize_t;
|
|
|
|
#else
|
2004-10-11 22:53:50 +02:00
|
|
|
typedef int ssize_t;
|
2006-07-10 12:28:25 +02:00
|
|
|
#endif
|
2004-10-11 22:53:50 +02:00
|
|
|
#define _SSIZE_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
2001-04-11 01:21:43 +02:00
|
|
|
#endif /* __WINE_SYS_TYPES_H */
|