13#pragma pack(push,_CRT_PACKING)
30#ifndef _FSIZE_T_DEFINED
32#define _FSIZE_T_DEFINED
35#ifndef _FINDDATA_T_DEFINED
55#if _INTEGRAL_MAX_BITS >= 64
94#define _FINDDATA_T_DEFINED
97#ifndef _WFINDDATA_T_DEFINED
117#if _INTEGRAL_MAX_BITS >= 64
156#define _WFINDDATA_T_DEFINED
159#define _A_NORMAL 0x00
160#define _A_RDONLY 0x01
161#define _A_HIDDEN 0x02
162#define _A_SYSTEM 0x04
163#define _A_SUBDIR 0x10
179 _In_ int _AccessMode);
231 _In_ int _FileHandleSrc,
232 _In_ int _FileHandleDst);
298 _In_ long _NumOfBytes);
322 _In_ unsigned int _PipeSize,
334#ifndef _CRT_DIRECTORY_DEFINED
335#define _CRT_DIRECTORY_DEFINED
347 _In_z_ const char *_OldFilename,
348 _In_z_ const char *_NewFilename);
397#if _INTEGRAL_MAX_BITS >= 64
562 _In_ int _AccessMode);
595 _In_ int _AccessMode);
641 _In_z_ const wchar_t *_NewFilename,
642 _In_z_ const wchar_t *_OldFilename);
650#if _INTEGRAL_MAX_BITS >= 64
713#if !defined(__cplusplus) || !(defined(_X86_) && !defined(__x86_64))
726 _In_ int _Filehandle);
731 _In_ int _Filehandle);
754 _In_ int _AccessMode);
762 _In_ int _AccessMode);
799 _In_ int _FileHandleSrc,
800 _In_ int _FileHandleDst);
830 _In_ long _NumOfBytes);
899 _In_ int _Filehandle,
916#ifdef __USE_MINGW_ALARM
917unsigned int alarm(
unsigned int seconds);
920#ifdef __USE_MINGW_ACCESS
924static inline int __mingw_access (
const char *__fname,
int __mode) {
928#define access(__f,__m) __mingw_access (__f, __m)
#define __MINGW_EXTENSION
#define _setmode(fd, mode)
_Out_ int _In_z_ char const _In_ int _In_ int _In_ int _PermissionFlag
_Check_return_ _In_ unsigned int _MaxCharCount
int CDECL _dup2(int od, int nd)
int CDECL _read(int fd, void *buf, unsigned int count)
int CDECL _chmod(const char *path, int flags)
int CDECL _locking(int fd, int mode, __msvcrt_long nbytes)
__int64 CDECL _lseeki64(int fd, __int64 offset, int whence)
int CDECL _write(int fd, const void *buf, unsigned int count)
int CDECL _umask(int umask)
int CDECL _unlink(const char *path)
int WINAPIV _sopen(const char *path, int oflags, int shflags,...)
__msvcrt_long CDECL _tell(int fd)
int CDECL _chsize(int fd, __msvcrt_long size)
__int64 CDECL _telli64(int fd)
int CDECL _access(const char *filename, int mode)
__msvcrt_long CDECL _filelength(int fd)
__int64 CDECL _filelengthi64(int fd)
int CDECL _creat(const char *path, int pmode)
__msvcrt_long CDECL _lseek(int fd, __msvcrt_long offset, int whence)
int WINAPIV _open(const char *path, int flags,...)
int CDECL _isatty(int fd)
char *CDECL _mktemp(char *pattern)
_ACRTIMP intptr_t __cdecl _wfindfirst32i64(const wchar_t *, struct _wfinddata32i64_t *)
_ACRTIMP int __cdecl _wfindnext32i64(intptr_t, struct _wfinddata32i64_t *)
static int locking(int fd, int mode, __msvcrt_long size)
static int dup2(int od, int nd)
static char * mktemp(char *pat)
static __msvcrt_long filelength(int fd)
static int chmod(const char *path, int mode)
static int creat(const char *path, int mode)
static int chsize(int fd, __msvcrt_long size)
int __cdecl _findnext32i64(intptr_t const handle, _finddata32i64_t *const result)
intptr_t __cdecl _findfirst32i64(char const *const pattern, _finddata32i64_t *const result)
GLuint GLint GLboolean GLint GLenum access
#define _In_reads_bytes_(s)
#define _Inout_updates_(s)
#define _Out_writes_opt_(s)
#define _Out_writes_bytes_(s)
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
_Check_return_ _CRTIMP int __cdecl _waccess(_In_z_ const wchar_t *_Filename, _In_ int _AccessMode)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _wunlink(_In_z_ const wchar_t *_Filename)
int __cdecl __lock_fhandle(_In_ int _Filehandle)
_Check_return_ _CRTIMP int __cdecl _wchmod(_In_z_ const wchar_t *_Filename, _In_ int _Mode)
_Check_return_wat_ _CRTIMP errno_t __cdecl _wsopen_s(_Out_ int *_FileHandle, _In_z_ const wchar_t *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionFlag)
_CRTIMP int __cdecl _wopen(const wchar_t *_Filename, int _OpenFlag,...)
_Check_return_ _CRTIMP int __cdecl _pipe(_Inout_updates_(2) int *_PtHandles, _In_ unsigned int _PipeSize, _In_ int _TextMode)
_CRTIMP int __cdecl _wsopen(const wchar_t *_Filename, int _OpenFlag, int _ShareFlag,...)
_Check_return_ _CRTIMP int __cdecl _wcreat(_In_z_ const wchar_t *_Filename, _In_ int _PermissionMode)
_Check_return_ _CRTIMP int __cdecl _findnext32(_In_ intptr_t _FindHandle, _Out_ struct _finddata32_t *_FindData)
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32(_In_z_ const char *_Filename, _Out_ struct _finddata32_t *_FindData)
void __cdecl _unlock_fhandle(_In_ int _Filehandle)
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32_t *_FindData)
_Check_return_ _CRTIMP int __cdecl _wfindnext32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32_t *_FindData)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_Check_return_opt_ _CRTIMP int __cdecl _commit(_In_ int _FileHandle)
_Check_return_opt_ _CRTIMP int __cdecl _findclose(_In_ intptr_t _FindHandle)
_Check_return_wat_ _CRTIMP errno_t __cdecl _sopen_s(_Out_ int *_FileHandle, _In_z_ const char *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode)
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd(_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
_Check_return_ _CRTIMP int __cdecl _wrename(_In_z_ const wchar_t *_NewFilename, _In_z_ const wchar_t *_OldFilename)
_CRTIMP int __cdecl _open_osfhandle(_In_ intptr_t _OSFileHandle, _In_ int _Flags)
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Offset
#define _Check_return_opt_
#define _Check_return_wat_
_Out_ struct _wfinddata32_t * _FindData
_Check_return_ _In_ int _PermissionMode
_Check_return_ _In_ int _OpenFlag
_Check_return_ _In_ int _Check_return_ _In_ int _In_ int _ShareFlag
_Pre_notnull_ _In_opt_z_ char const _In_opt_z_ char const _In_opt_z_ char const _Filename
_In_z_ char const * _Path