mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:02:59 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
17
sdk/include/crt/sys/cdefs.h
Normal file
17
sdk/include/crt/sys/cdefs.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _SYS_CDEFS_H
|
||||
#define _SYS_CDEFS_H
|
||||
#ifdef __cplusplus
|
||||
#define __BEGIN_DECLS extern "C" {
|
||||
#define __END_DECLS }
|
||||
#else
|
||||
#define __BEGIN_DECLS
|
||||
#define __END_DECLS
|
||||
#endif
|
||||
#define __P(protos) protos /* full-blown ANSI C */
|
||||
#endif
|
||||
|
13
sdk/include/crt/sys/fcntl.h
Normal file
13
sdk/include/crt/sys/fcntl.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
/*
|
||||
* This file is part of the Mingw32 package.
|
||||
*
|
||||
* This fcntl.h maps to the root fcntl.h
|
||||
*/
|
||||
#ifndef __STRICT_ANSI__
|
||||
#include <fcntl.h>
|
||||
#endif
|
14
sdk/include/crt/sys/file.h
Normal file
14
sdk/include/crt/sys/file.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
/*
|
||||
* This file is part of the Mingw32 package.
|
||||
*
|
||||
* This file.h maps to the root fcntl.h
|
||||
* TODO?
|
||||
*/
|
||||
#ifndef __STRICT_ANSI__
|
||||
#include <fcntl.h>
|
||||
#endif
|
21
sdk/include/crt/sys/ioctl.h
Normal file
21
sdk/include/crt/sys/ioctl.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _SYS_IOCTL_H
|
||||
#define _SYS_IOCTL_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#define WINDOWS_POST 0 /* Set write() behavior to PostMessage() */
|
||||
#define WINDOWS_SEND 1 /* Set write() behavior to SendMessage() */
|
||||
#define WINDOWS_HWND 2 /* Set hWnd for read() calls */
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int ioctl (int __fd, int __cmd, ...);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
29
sdk/include/crt/sys/locking.h
Normal file
29
sdk/include/crt/sys/locking.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_LOCKING
|
||||
#define _INC_LOCKING
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#define _LK_UNLCK 0
|
||||
#define _LK_LOCK 1
|
||||
#define _LK_NBLCK 2
|
||||
#define _LK_RLCK 3
|
||||
#define _LK_NBRLCK 4
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
#define LK_UNLCK _LK_UNLCK
|
||||
#define LK_LOCK _LK_LOCK
|
||||
#define LK_NBLCK _LK_NBLCK
|
||||
#define LK_RLCK _LK_RLCK
|
||||
#define LK_NBRLCK _LK_NBRLCK
|
||||
#endif
|
||||
|
||||
#endif
|
46
sdk/include/crt/sys/param.h
Normal file
46
sdk/include/crt/sys/param.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
/*
|
||||
* param.h
|
||||
*
|
||||
* This file is part of the Mingw32 package.
|
||||
*
|
||||
* Contributors:
|
||||
* Created by Earnie Boyd <earnie@users.sf.net>
|
||||
*
|
||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||
*
|
||||
* This source code is offered for use in the public domain. You may
|
||||
* use, modify or distribute it freely.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAIMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Author: earnie $
|
||||
* $Date: 2003/05/03 13:48:47 $
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _SYS_PARAM_H
|
||||
#define _SYS_PARAM_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
/* These are useful for cross-compiling */
|
||||
#define BIG_ENDIAN 4321
|
||||
#define LITTLE_ENDIAN 1234
|
||||
#define BYTE_ORDER LITTLE_ENDIAN
|
||||
|
||||
#define MAXPATHLEN PATH_MAX
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
363
sdk/include/crt/sys/stat.h
Normal file
363
sdk/include/crt/sys/stat.h
Normal file
|
@ -0,0 +1,363 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_STAT
|
||||
#define _INC_STAT
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef _STAT_DEFINED
|
||||
#define _STAT_DEFINED
|
||||
|
||||
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 _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;
|
||||
};
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
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;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
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 st_size;
|
||||
__time32_t st_atime;
|
||||
__time32_t st_mtime;
|
||||
__time32_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 _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 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 st_size;
|
||||
time_t st_atime;
|
||||
time_t st_mtime;
|
||||
time_t st_ctime;
|
||||
};
|
||||
|
||||
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
||||
|
||||
#define __stat64 _stat64
|
||||
|
||||
#endif /* !_STAT_DEFINED */
|
||||
|
||||
#define _S_IFMT 0xF000
|
||||
#define _S_IFDIR 0x4000
|
||||
#define _S_IFCHR 0x2000
|
||||
#define _S_IFIFO 0x1000
|
||||
#define _S_IFREG 0x8000
|
||||
#define _S_IREAD 0x0100
|
||||
#define _S_IWRITE 0x0080
|
||||
#define _S_IEXEC 0x0040
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_fstat(
|
||||
_In_ int _FileDes,
|
||||
_Out_ struct _stat *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_fstat32(
|
||||
_In_ int _FileDes,
|
||||
_Out_ struct _stat32 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_stat(
|
||||
_In_z_ const char *_Name,
|
||||
_Out_ struct _stat *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_stat32(
|
||||
_In_z_ const char *_Name,
|
||||
_Out_ struct _stat32 *_Stat);
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_fstat64(
|
||||
_In_ int _FileDes,
|
||||
_Out_ struct _stat64 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_fstat32i64(
|
||||
_In_ int _FileDes,
|
||||
_Out_ struct _stat32i64 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_fstat64i32(
|
||||
_In_ int _FileDes,
|
||||
_Out_ struct _stat64i32 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_stat64(
|
||||
_In_z_ const char *_Name,
|
||||
_Out_ struct _stat64 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_stat32i64(
|
||||
_In_z_ const char *_Name,
|
||||
_Out_ struct _stat32i64 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_stat64i32(
|
||||
_In_z_ const char *_Name,
|
||||
_Out_ struct _stat64i32 *_Stat);
|
||||
|
||||
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
||||
|
||||
#ifndef _WSTAT_DEFINED
|
||||
#define _WSTAT_DEFINED
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wstat(
|
||||
_In_z_ const wchar_t *_Name,
|
||||
_Out_ struct _stat *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wstat32(
|
||||
_In_z_ const wchar_t *_Name,
|
||||
_Out_ struct _stat32 *_Stat);
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wstat32i64(
|
||||
_In_z_ const wchar_t *_Name,
|
||||
_Out_ struct _stat32i64 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wstat64i32(
|
||||
_In_z_ const wchar_t *_Name,
|
||||
_Out_ struct _stat64i32 *_Stat);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wstat64(
|
||||
_In_z_ const wchar_t *_Name,
|
||||
_Out_ struct _stat64 *_Stat);
|
||||
|
||||
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
||||
|
||||
#endif /* _WSTAT_DEFINED */
|
||||
|
||||
|
||||
/** Compatibility definitons *************************************************/
|
||||
|
||||
#if !defined(RC_INVOKED)
|
||||
|
||||
#ifdef _USE_32BIT_TIME_T
|
||||
#define _fstat32 _fstat
|
||||
#define _fstat32i64 _fstati64
|
||||
#define _fstat64i32 _fstat64
|
||||
#else
|
||||
#define _fstat64i32 _fstat
|
||||
__CRT_INLINE int __cdecl _fstat32(int _FileDes, struct _stat32 *_Stat)
|
||||
{
|
||||
struct _stat _Stat64;
|
||||
int ret = _fstat(_FileDes, &_Stat64);
|
||||
_Stat->st_dev = _Stat64.st_dev;
|
||||
_Stat->st_ino = _Stat64.st_ino;
|
||||
_Stat->st_mode = _Stat64.st_mode;
|
||||
_Stat->st_nlink = _Stat64.st_nlink;
|
||||
_Stat->st_uid = _Stat64.st_uid;
|
||||
_Stat->st_gid = _Stat64.st_gid;
|
||||
_Stat->st_rdev = _Stat64.st_rdev;
|
||||
_Stat->st_size = _Stat64.st_size;
|
||||
_Stat->st_atime = (__time32_t)_Stat64.st_atime;
|
||||
_Stat->st_mtime = (__time32_t)_Stat64.st_mtime;
|
||||
_Stat->st_ctime = (__time32_t)_Stat64.st_ctime;
|
||||
return ret;
|
||||
}
|
||||
__CRT_INLINE int __cdecl _fstat32i64(int _FileDes, struct _stat32i64 *_Stat)
|
||||
{
|
||||
struct _stat64 _Stat64;
|
||||
int ret = _fstat64(_FileDes, &_Stat64);
|
||||
_Stat->st_dev = _Stat64.st_dev;
|
||||
_Stat->st_ino = _Stat64.st_ino;
|
||||
_Stat->st_mode = _Stat64.st_mode;
|
||||
_Stat->st_nlink = _Stat64.st_nlink;
|
||||
_Stat->st_uid = _Stat64.st_uid;
|
||||
_Stat->st_gid = _Stat64.st_gid;
|
||||
_Stat->st_rdev = _Stat64.st_rdev;
|
||||
_Stat->st_size = _Stat64.st_size;
|
||||
_Stat->st_atime = (__time32_t)_Stat64.st_atime;
|
||||
_Stat->st_mtime = (__time32_t)_Stat64.st_mtime;
|
||||
_Stat->st_ctime = (__time32_t)_Stat64.st_ctime;
|
||||
return ret;
|
||||
}
|
||||
#endif /* _USE_32BIT_TIME_T */
|
||||
|
||||
#endif /* !defined(RC_INVOKED) */
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
#define _S_IFBLK 0x3000 /* Block: Is this ever set under w32? */
|
||||
|
||||
#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
|
||||
#define S_IFIFO _S_IFIFO
|
||||
#define S_IFBLK _S_IFBLK
|
||||
|
||||
#define _S_IRWXU (_S_IREAD | _S_IWRITE | _S_IEXEC)
|
||||
#define _S_IXUSR _S_IEXEC
|
||||
#define _S_IWUSR _S_IWRITE
|
||||
|
||||
#define S_IRWXU _S_IRWXU
|
||||
#define S_IXUSR _S_IXUSR
|
||||
#define S_IWUSR _S_IWUSR
|
||||
#define S_IRUSR _S_IRUSR
|
||||
#define _S_IRUSR _S_IREAD
|
||||
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
||||
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
||||
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
|
||||
#if !defined (RC_INVOKED)
|
||||
_CRTIMP int __cdecl stat(const char *_Filename,struct stat *_Stat);
|
||||
_CRTIMP int __cdecl fstat(int _Desc,struct stat *_Stat);
|
||||
_CRTIMP int __cdecl wstat(const wchar_t *_Filename,struct stat *_Stat);
|
||||
__CRT_INLINE int __cdecl fstat(int _Desc,struct stat *_Stat) {
|
||||
return _fstat(_Desc,(struct _stat *)_Stat);
|
||||
}
|
||||
|
||||
__CRT_INLINE int __cdecl stat(const char *_Filename,struct stat *_Stat) {
|
||||
return _stat(_Filename,(struct _stat *)_Stat);
|
||||
}
|
||||
|
||||
__CRT_INLINE int __cdecl wstat(const wchar_t *_Filename,struct stat *_Stat) {
|
||||
return _wstat(_Filename,(struct _stat *)_Stat);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* !NO_OLDNAMES */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
#endif
|
69
sdk/include/crt/sys/time.h
Normal file
69
sdk/include/crt/sys/time.h
Normal file
|
@ -0,0 +1,69 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_TIME_H_
|
||||
#define _SYS_TIME_H_
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
#ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */
|
||||
#define _TIMEVAL_DEFINED
|
||||
struct timeval {
|
||||
long tv_sec;
|
||||
long tv_usec;
|
||||
};
|
||||
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
||||
#define timercmp(tvp, uvp, cmp) \
|
||||
(((tvp)->tv_sec != (uvp)->tv_sec) ? \
|
||||
((tvp)->tv_sec cmp (uvp)->tv_sec) : \
|
||||
((tvp)->tv_usec cmp (uvp)->tv_usec))
|
||||
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
||||
#endif /* _TIMEVAL_DEFINED */
|
||||
|
||||
#ifndef _TIMEZONE_DEFINED /* also in sys/time.h */
|
||||
#define _TIMEZONE_DEFINED
|
||||
/* Provided for compatibility with code that assumes that
|
||||
the presence of gettimeofday function implies a definition
|
||||
of struct timezone. */
|
||||
struct timezone
|
||||
{
|
||||
int tz_minuteswest; /* of Greenwich */
|
||||
int tz_dsttime; /* type of dst correction to apply */
|
||||
};
|
||||
|
||||
extern int __cdecl mingw_gettimeofday (struct timeval *p, struct timezone *z);
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
Implementation as per:
|
||||
The Open Group Base Specifications, Issue 6
|
||||
IEEE Std 1003.1, 2004 Edition
|
||||
|
||||
The timezone pointer arg is ignored. Errors are ignored.
|
||||
*/
|
||||
#ifndef _GETTIMEOFDAY_DEFINED
|
||||
#define _GETTIMEOFDAY_DEFINED
|
||||
int __cdecl gettimeofday(struct timeval *__restrict__,
|
||||
void *__restrict__ /* tzp (unused) */);
|
||||
#endif
|
||||
|
||||
#endif /* __STRICT_ANSI__ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Adding timespec definition. */
|
||||
#include <sys/timeb.h>
|
||||
|
||||
|
||||
#endif /* _SYS_TIME_H_ */
|
110
sdk/include/crt/sys/timeb.h
Normal file
110
sdk/include/crt/sys/timeb.h
Normal file
|
@ -0,0 +1,110 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_TIMEB
|
||||
#define _INC_TIMEB
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#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;
|
||||
};
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
struct timeb {
|
||||
time_t time;
|
||||
unsigned short millitm;
|
||||
short timezone;
|
||||
short dstflag;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
struct __timeb64 {
|
||||
__time64_t time;
|
||||
unsigned short millitm;
|
||||
short timezone;
|
||||
short dstflag;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* !_TIMEB_DEFINED */
|
||||
|
||||
_CRTIMP
|
||||
void
|
||||
__cdecl
|
||||
_ftime(
|
||||
_Out_ struct _timeb *_Time);
|
||||
|
||||
_CRT_INSECURE_DEPRECATE(_ftime32_s)
|
||||
_CRTIMP
|
||||
void
|
||||
__cdecl
|
||||
_ftime32(
|
||||
_Out_ struct __timeb32 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
errno_t
|
||||
__cdecl
|
||||
_ftime32_s(
|
||||
_Out_ struct __timeb32 *_Time);
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
|
||||
_CRT_INSECURE_DEPRECATE(_ftime64_s)
|
||||
_CRTIMP
|
||||
void
|
||||
__cdecl
|
||||
_ftime64(
|
||||
_Out_ struct __timeb64 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
errno_t
|
||||
__cdecl
|
||||
_ftime64_s(
|
||||
_Out_ struct __timeb64 *_Time);
|
||||
|
||||
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
#if !defined (RC_INVOKED)
|
||||
__CRT_INLINE void __cdecl ftime(struct timeb *_Tmb) {
|
||||
_ftime((struct _timeb *)_Tmb);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#include <sec_api/sys/timeb_s.h>
|
||||
|
||||
#endif /* !_INC_TIMEB */
|
52
sdk/include/crt/sys/types.h
Normal file
52
sdk/include/crt/sys/types.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_TYPES
|
||||
#define _INC_TYPES
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#ifndef _INO_T_DEFINED
|
||||
#define _INO_T_DEFINED
|
||||
typedef unsigned short _ino_t;
|
||||
#ifndef NO_OLDNAMES
|
||||
typedef unsigned short ino_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _DEV_T_DEFINED
|
||||
#define _DEV_T_DEFINED
|
||||
typedef unsigned int _dev_t;
|
||||
#ifndef NO_OLDNAMES
|
||||
typedef unsigned int dev_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _OFF_T_DEFINED
|
||||
#define _OFF_T_DEFINED
|
||||
typedef long _off_t;
|
||||
# ifndef NO_OLDNAMES
|
||||
typedef long off_t;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef _PID_T_
|
||||
#define _PID_T_
|
||||
#ifndef _WIN64
|
||||
typedef int _pid_t;
|
||||
#else
|
||||
typedef __int64 _pid_t;
|
||||
#endif
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
typedef _pid_t pid_t;
|
||||
#endif
|
||||
#endif /* Not _PID_T_ */
|
||||
|
||||
#endif /* !_INC_TYPES */
|
14
sdk/include/crt/sys/unistd.h
Normal file
14
sdk/include/crt/sys/unistd.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
/*
|
||||
* This file is part of the Mingw32 package.
|
||||
*
|
||||
* unistd.h maps (roughly) to io.h
|
||||
*/
|
||||
#ifndef __STRICT_ANSI__
|
||||
#include <io.h>
|
||||
#endif
|
||||
|
147
sdk/include/crt/sys/utime.h
Normal file
147
sdk/include/crt/sys/utime.h
Normal file
|
@ -0,0 +1,147 @@
|
|||
/**
|
||||
* This file has no copyright assigned and is placed in the Public Domain.
|
||||
* This file is part of the w64 mingw-runtime package.
|
||||
* No warranty is given; refer to the file DISCLAIMER within this package.
|
||||
*/
|
||||
#ifndef _INC_UTIME
|
||||
#define _INC_UTIME
|
||||
|
||||
#ifndef _WIN32
|
||||
#error Only Win32 target is supported!
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef _UTIMBUF_DEFINED
|
||||
#define _UTIMBUF_DEFINED
|
||||
|
||||
struct _utimbuf {
|
||||
time_t actime;
|
||||
time_t modtime;
|
||||
};
|
||||
|
||||
struct __utimbuf32 {
|
||||
__time32_t actime;
|
||||
__time32_t modtime;
|
||||
};
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
struct __utimbuf64 {
|
||||
__time64_t actime;
|
||||
__time64_t modtime;
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
struct utimbuf {
|
||||
time_t actime;
|
||||
time_t modtime;
|
||||
};
|
||||
|
||||
struct utimbuf32 {
|
||||
__time32_t actime;
|
||||
__time32_t modtime;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* !_UTIMBUF_DEFINED */
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_utime(
|
||||
_In_z_ const char *_Filename,
|
||||
_In_opt_ struct _utimbuf *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_utime32(
|
||||
_In_z_ const char *_Filename,
|
||||
_In_opt_ struct __utimbuf32 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_futime(
|
||||
_In_ int _FileDes,
|
||||
_In_opt_ struct _utimbuf *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_futime32(
|
||||
_In_ int _FileDes,
|
||||
_In_opt_ struct __utimbuf32 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wutime(
|
||||
_In_z_ const wchar_t *_Filename,
|
||||
_In_opt_ struct _utimbuf *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wutime32(
|
||||
_In_z_ const wchar_t *_Filename,
|
||||
_In_opt_ struct __utimbuf32 *_Time);
|
||||
|
||||
#if _INTEGRAL_MAX_BITS >= 64
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_utime64(
|
||||
_In_z_ const char *_Filename,
|
||||
_In_opt_ struct __utimbuf64 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_futime64(
|
||||
_In_ int _FileDes,
|
||||
_In_opt_ struct __utimbuf64 *_Time);
|
||||
|
||||
_CRTIMP
|
||||
int
|
||||
__cdecl
|
||||
_wutime64(
|
||||
_In_z_ const wchar_t *_Filename,
|
||||
_In_opt_ struct __utimbuf64 *_Time);
|
||||
|
||||
#endif /* _INTEGRAL_MAX_BITS >= 64 */
|
||||
|
||||
#ifndef RC_INVOKED
|
||||
#ifdef _USE_32BIT_TIME_T
|
||||
__CRT_INLINE int __cdecl _utime32(const char *_Filename,struct __utimbuf32 *_Utimbuf) {
|
||||
return _utime(_Filename,(struct _utimbuf *)_Utimbuf);
|
||||
}
|
||||
__CRT_INLINE int __cdecl _futime32(int _Desc,struct __utimbuf32 *_Utimbuf) {
|
||||
return _futime(_Desc,(struct _utimbuf *)_Utimbuf);
|
||||
}
|
||||
__CRT_INLINE int __cdecl _wutime32(const wchar_t *_Filename,struct __utimbuf32 *_Utimbuf) {
|
||||
return _wutime(_Filename,(struct _utimbuf *)_Utimbuf);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NO_OLDNAMES
|
||||
__CRT_INLINE int __cdecl utime(const char *_Filename,struct utimbuf *_Utimbuf) {
|
||||
return _utime(_Filename,(struct _utimbuf *)_Utimbuf);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue