/*
* _stat() definitions
*
* Derived from the mingw header written by Colin Peters.
* Modified for Wine use by Jon Griffiths and Francois Gouget.
* This file is in the public domain.
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_SYS_STAT_H
#define __WINE_SYS_STAT_H
#include <crtdefs.h>
#include <pshpack8.h>
#ifndef _DEV_T_DEFINED
typedef unsigned int _dev_t;
#define _DEV_T_DEFINED
#endif
#ifndef _INO_T_DEFINED
typedef unsigned short _ino_t;
#define _INO_T_DEFINED
#endif
#ifndef _OFF_T_DEFINED
typedef int _off_t;
#define _OFF_T_DEFINED
#endif
#ifndef DECLSPEC_ALIGN
# else
# define DECLSPEC_ALIGN(x)
# endif
#endif
/* for FreeBSD */
#ifndef _STAT_DEFINED
#define _STAT_DEFINED
struct _stat {
unsigned short st_mode;
short st_nlink;
short st_uid;
short st_gid;
};
struct stat {
unsigned short st_mode;
short st_nlink;
short st_uid;
short st_gid;
};
struct _stati64 {
unsigned short st_mode;
short st_nlink;
short st_uid;
short st_gid;
};
struct _stat64 {
unsigned short st_mode;
short st_nlink;
short st_uid;
short st_gid;
};
#endif /* _STAT_DEFINED */
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _WSTAT_DEFINED
#define _WSTAT_DEFINED
#endif /* _WSTAT_DEFINED */
#ifdef __cplusplus
}
#endif
static inline int stat(const char* path, struct stat* ptr) { return _stat(path, (struct _stat*)ptr); }
#ifndef _UMASK_DEFINED
#define _UMASK_DEFINED
#endif
#include <poppack.h>
#endif /* __WINE_SYS_STAT_H */