diff options
Diffstat (limited to 'src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys')
6 files changed, 500 insertions, 0 deletions
diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/locking.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/locking.h new file mode 100644 index 00000000..223cb969 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/locking.h @@ -0,0 +1,42 @@ +/* + * _locking constants + * + * Copyright 2002 Bill Medland + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle 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_LOCKING_H__ +#define __WINE_SYS_LOCKING_H__ +#ifndef __WINE_USE_MSVCRT +#define __WINE_USE_MSVCRT +#endif + +#define _LK_UNLCK 0 +#define _LK_LOCK 1 +#define _LK_NBLCK 2 +#define _LK_RLCK 3 +#define _LK_NBRLCK 4 + +#endif /* __WINE_SYS_LOCKING_H__ : Do not place anything after this #endif */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/stat.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/stat.h new file mode 100644 index 00000000..6509e04b --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/stat.h @@ -0,0 +1,201 @@ +/* + * _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. + */ +#ifndef __WINE_SYS_STAT_H +#define __WINE_SYS_STAT_H + +#include <crtdefs.h> +#include <sys/types.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 +# if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS) +# define DECLSPEC_ALIGN(x) __declspec(align(x)) +# elif defined(__GNUC__) +# define DECLSPEC_ALIGN(x) __attribute__((aligned(x))) +# else +# define DECLSPEC_ALIGN(x) +# endif +#endif + +#define _S_IEXEC 0x0040 +#define _S_IWRITE 0x0080 +#define _S_IREAD 0x0100 +#define _S_IFIFO 0x1000 +#define _S_IFCHR 0x2000 +#define _S_IFDIR 0x4000 +#define _S_IFREG 0x8000 +#define _S_IFMT 0xF000 + +/* for FreeBSD */ +#undef st_atime +#undef st_ctime +#undef st_mtime + +#ifndef _STAT_DEFINED +#define _STAT_DEFINED + +struct _stat { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +}; + +struct stat { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +}; + +struct _stat32 { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + __time32_t st_atime; + __time32_t st_mtime; + __time32_t st_ctime; +}; + +struct _stat32i64 { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + __int64 DECLSPEC_ALIGN(8) st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +}; + +struct _stat64i32 { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + _off_t st_size; + __time64_t st_atime; + __time64_t st_mtime; + __time64_t st_ctime; +}; + +struct _stati64 { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + __int64 DECLSPEC_ALIGN(8) st_size; + time_t st_atime; + time_t st_mtime; + time_t st_ctime; +}; + +struct _stat64 { + _dev_t st_dev; + _ino_t st_ino; + unsigned short st_mode; + short st_nlink; + short st_uid; + short st_gid; + _dev_t st_rdev; + __int64 DECLSPEC_ALIGN(8) st_size; + __time64_t st_atime; + __time64_t st_mtime; + __time64_t st_ctime; +}; +#endif /* _STAT_DEFINED */ + +#ifdef __cplusplus +extern "C" { +#endif + +int __cdecl _fstat(int,struct _stat*); +int __cdecl _stat(const char*,struct _stat*); +int __cdecl _fstat32(int, struct _stat32*); +int __cdecl _stat32(const char*, struct _stat32*); +int __cdecl _fstati64(int,struct _stati64*); +int __cdecl _stati64(const char*,struct _stati64*); +int __cdecl _fstat64(int,struct _stat64*); +int __cdecl _stat64(const char*,struct _stat64*); +int __cdecl _umask(int); + +#ifndef _WSTAT_DEFINED +#define _WSTAT_DEFINED +int __cdecl _wstat(const wchar_t*,struct _stat*); +int __cdecl _wstat32(const wchar_t*, struct _stat32*); +int __cdecl _wstati64(const wchar_t*,struct _stati64*); +int __cdecl _wstat64(const wchar_t*,struct _stat64*); +#endif /* _WSTAT_DEFINED */ + +#ifdef __cplusplus +} +#endif + + +#define S_IFMT _S_IFMT +#define S_IFDIR _S_IFDIR +#define S_IFCHR _S_IFCHR +#define S_IFREG _S_IFREG +#define S_IREAD _S_IREAD +#define S_IWRITE _S_IWRITE +#define S_IEXEC _S_IEXEC + +static inline int fstat(int fd, struct stat* ptr) { return _fstat(fd, (struct _stat*)ptr); } +static inline int stat(const char* path, struct stat* ptr) { return _stat(path, (struct _stat*)ptr); } +#ifndef _UMASK_DEFINED +static inline int umask(int fd) { return _umask(fd); } +#define _UMASK_DEFINED +#endif + +#include <poppack.h> + +#endif /* __WINE_SYS_STAT_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/timeb.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/timeb.h new file mode 100644 index 00000000..07c32b97 --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/timeb.h @@ -0,0 +1,86 @@ +/* + * Path and directory definitions + * + * Copyright 2000 Francois Gouget. + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle 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_TIMEB_H +#define __WINE_SYS_TIMEB_H + +#include <crtdefs.h> + +#include <pshpack8.h> + +#ifndef _TIMEB_DEFINED +#define _TIMEB_DEFINED +struct _timeb +{ + time_t time; + unsigned short millitm; + short timezone; + short dstflag; +}; +struct __timeb32 +{ + __time32_t time; + unsigned short millitm; + short timezone; + short dstflag; +}; +struct __timeb64 +{ + __time64_t time; + unsigned short millitm; + short timezone; + short dstflag; +}; +#endif /* _TIMEB_DEFINED */ + + +#ifdef __cplusplus +extern "C" { +#endif + +void __cdecl _ftime32(struct __timeb32*); +void __cdecl _ftime64(struct __timeb64*); + +#ifdef __cplusplus +} +#endif + +#ifdef _USE_32BIT_TIME_T +static inline void __cdecl _ftime(struct _timeb *tb) { return _ftime32((struct __timeb32*)tb); } +#else +static inline void __cdecl _ftime(struct _timeb *tb) { return _ftime64((struct __timeb64*)tb); } +#endif + +#define timeb _timeb + +static inline void ftime(struct _timeb* ptr) { return _ftime(ptr); } + +#include <poppack.h> + +#endif /* __WINE_SYS_TIMEB_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/types.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/types.h new file mode 100644 index 00000000..db90547c --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/types.h @@ -0,0 +1,82 @@ +/* + * _stat() definitions + * + * Copyright 2000 Francois Gouget. + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle 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_TYPES_H +#define __WINE_SYS_TYPES_H + +#include <crtdefs.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 _MODE_T_DEFINED +typedef unsigned short _mode_t; +#define _MODE_T_DEFINED +#endif + +#ifndef _OFF_T_DEFINED +typedef int _off_t; +#define _OFF_T_DEFINED +#endif + +#ifndef _BSDTYPES_DEFINED +typedef unsigned char u_char; +typedef unsigned short u_short; +typedef unsigned int u_int; +typedef __msvcrt_ulong u_long; +#define _BSDTYPES_DEFINED +#endif + +#define dev_t _dev_t +#define ino_t _ino_t +#define mode_t _mode_t +#define off_t _off_t + +#ifndef _PID_T_DEFINED +typedef int pid_t; +#define _PID_T_DEFINED +#endif + +#ifndef _SSIZE_T_DEFINED +#ifdef _WIN64 +typedef __int64 ssize_t; +#else +typedef int ssize_t; +#endif +#define _SSIZE_T_DEFINED +#endif + +#endif /* __WINE_SYS_TYPES_H */ diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/unistd.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/unistd.h new file mode 100644 index 00000000..1e823fbd --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/unistd.h @@ -0,0 +1 @@ +#include <unistd.h> diff --git a/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/utime.h b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/utime.h new file mode 100644 index 00000000..4b250fca --- /dev/null +++ b/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/sys/utime.h @@ -0,0 +1,88 @@ +/* + * Path and directory definitions + * + * Copyright 2000 Francois Gouget. + * + * 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 + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +/* + * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice + * other than GPL or LGPL is available it will apply instead, Oracle 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_UTIME_H +#define __WINE_SYS_UTIME_H + +#include <crtdefs.h> + +#include <pshpack8.h> + +#ifndef _UTIMBUF_DEFINED +#define _UTIMBUF_DEFINED +struct _utimbuf +{ + time_t actime; + time_t modtime; +}; +struct __utimbuf32 +{ + __time32_t actime; + __time32_t modtime; +}; +struct __utimbuf64 +{ + __time64_t actime; + __time64_t modtime; +}; +#endif /* _UTIMBUF_DEFINED */ + +#ifdef __cplusplus +extern "C" { +#endif + +int __cdecl _futime32(int,struct __utimbuf32*); +int __cdecl _futime64(int,struct __utimbuf64*); +int __cdecl _utime32(const char*,struct __utimbuf32*); +int __cdecl _utime64(const char*,struct __utimbuf64*); +int __cdecl _wutime32(const wchar_t*,struct __utimbuf32*); +int __cdecl _wutime64(const wchar_t*,struct __utimbuf64*); + +#ifdef _USE_32BIT_TIME_T +static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); } +static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime32(s, (struct __utimbuf32*)buf); } +static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime32(s, (struct __utimbuf32*)buf); } +#else +static inline int _futime(int fd, struct _utimbuf *buf) { return _futime64(fd, (struct __utimbuf64*)buf); } +static inline int _utime(const char *s, struct _utimbuf *buf) { return _utime64(s, (struct __utimbuf64*)buf); } +static inline int _wutime(const wchar_t *s, struct _utimbuf *buf) { return _wutime64(s, (struct __utimbuf64*)buf); } +#endif + +#ifdef __cplusplus +} +#endif + + +#define utimbuf _utimbuf + +static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); } + +#include <poppack.h> + +#endif /* __WINE_SYS_UTIME_H */ |