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
57 struct _finddatai64_t {
66 struct _finddata32i64_t {
75 struct _finddata64i32_t {
77 __time64_t time_create;
78 __time64_t time_access;
79 __time64_t time_write;
84 struct __finddata64_t {
86 __time64_t time_create;
87 __time64_t time_access;
88 __time64_t time_write;
94#define _FINDDATA_T_DEFINED
97#ifndef _WFINDDATA_T_DEFINED
117#if _INTEGRAL_MAX_BITS >= 64
119 struct _wfinddatai64_t {
128 struct _wfinddata32i64_t {
137 struct _wfinddata64i32_t {
139 __time64_t time_create;
140 __time64_t time_access;
141 __time64_t time_write;
146 struct _wfinddata64_t {
148 __time64_t time_create;
149 __time64_t time_access;
150 __time64_t time_write;
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
178 _In_z_ const char *_Filename,
179 _In_ int _AccessMode);
186 _In_z_ const char *_Filename,
194 _In_ int _FileHandle,
202 _In_ int _FileHandle);
209 _In_ int _FileHandle);
216 _In_z_ const char *_Filename,
217 _In_ int _PermissionMode);
224 _In_ int _FileHandle);
231 _In_ int _FileHandleSrc,
232 _In_ int _FileHandleDst);
239 _In_ int _FileHandle);
246 _In_ int _FileHandle);
252 const char *_Filename,
260 _In_z_ const char *_Filename,
290 _In_ int _FileHandle);
296 _In_ int _FileHandle,
298 _In_ long _NumOfBytes);
305 _In_ int _FileHandle,
322 _In_ unsigned int _PipeSize,
330 _In_ int _FileHandle,
332 _In_ unsigned int _MaxCharCount);
334#ifndef _CRT_DIRECTORY_DEFINED
335#define _CRT_DIRECTORY_DEFINED
341 _In_z_ const char *_Filename);
347 _In_z_ const char *_OldFilename,
348 _In_z_ const char *_NewFilename);
355 _In_z_ const char *_Filename);
363 _In_z_ const char *_Filename);
373 _In_ int _FileHandle,
381 _In_ int _FileHandle);
393 _In_ int _FileHandle,
395 _In_ unsigned int _MaxCharCount);
397#if _INTEGRAL_MAX_BITS >= 64
405 _In_ int _FileHandle);
412 _In_z_ const char *_Filename,
413 _Out_ struct _finddata32i64_t *_FindData);
420 _In_z_ const char *_Filename,
421 _Out_ struct _finddata64i32_t *_FindData);
428 _In_z_ const char *_Filename,
429 _Out_ struct __finddata64_t *_FindData);
437 _Out_ struct _finddata32i64_t *_FindData);
445 _Out_ struct _finddata64i32_t *_FindData);
453 _Out_ struct __finddata64_t *_FindData);
461 _In_ int _FileHandle,
471 _In_ int _FileHandle);
482 const char *_Filename,
483 struct _finddata64i32_t *_FindData)
485 struct __finddata64_t
fd;
487 _FindData->attrib=
fd.attrib;
488 _FindData->time_create=
fd.time_create;
489 _FindData->time_access=
fd.time_access;
490 _FindData->time_write=
fd.time_write;
502 struct _finddata64i32_t *_FindData)
504 struct __finddata64_t
fd;
505 int ret = _findnext64(_FindHandle,&
fd);
506 _FindData->attrib=
fd.attrib;
507 _FindData->time_create=
fd.time_create;
508 _FindData->time_access=
fd.time_access;
509 _FindData->time_write=
fd.time_write;
525 _In_z_ const char *_Path);
541 _In_z_ const char *_Path);
554 _In_z_ const char *_Path);
561 _In_z_ const char *_Filename,
562 _In_ int _AccessMode);
572 _Out_ int *_FileHandle,
573 _In_z_ const char *_Filename,
576 _In_ int _PermissionMode);
582 extern "C++" _CRTIMP int __cdecl _open(
const char *_Filename,
int _Openflag,
int _PermissionMode = 0);
583 extern "C++" _CRTIMP int __cdecl _sopen(
const char *_Filename,
int _Openflag,
int _ShareFlag,
int _PermissionMode = 0);
594 _In_z_ const wchar_t *_Filename,
595 _In_ int _AccessMode);
602 _In_z_ const wchar_t *_Filename,
610 _In_z_ const wchar_t *_Filename,
611 _In_ int _PermissionMode);
618 _In_z_ const wchar_t *_Filename,
634 _In_z_ const wchar_t *_Filename);
641 _In_z_ const wchar_t *_NewFilename,
642 _In_z_ const wchar_t *_OldFilename);
650#if _INTEGRAL_MAX_BITS >= 64
657 _In_z_ const wchar_t *_Filename,
658 _Out_ struct _wfinddata32i64_t *_FindData);
665 _In_z_ const wchar_t *_Filename,
666 _Out_ struct _wfinddata64i32_t *_FindData);
673 _In_z_ const wchar_t *_Filename,
674 _Out_ struct _wfinddata64_t *_FindData);
682 _Out_ struct _wfinddata32i64_t *_FindData);
690 _Out_ struct _wfinddata64i32_t *_FindData);
698 _Out_ struct _wfinddata64_t *_FindData);
707 _Out_ int *_FileHandle,
708 _In_z_ const wchar_t *_Filename,
711 _In_ int _PermissionFlag);
713#if !defined(__cplusplus) || !(defined(_X86_) && !defined(__x86_64))
717 extern "C++" _CRTIMP int __cdecl _wopen(
const wchar_t *_Filename,
int _OpenFlag,
int _PermissionMode = 0);
718 extern "C++" _CRTIMP int __cdecl _wsopen(
const wchar_t *_Filename,
int _OpenFlag,
int _ShareFlag,
int _PermissionMode = 0);
726 _In_ int _Filehandle);
731 _In_ int _Filehandle);
737 _In_ int _FileHandle);
753 _In_z_ const char *_Filename,
754 _In_ int _AccessMode);
761 _In_z_ const char *_Filename,
762 _In_ int _AccessMode);
769 _In_ int _FileHandle,
777 _In_ int _FileHandle);
784 _In_z_ const char *_Filename,
785 _In_ int _PermissionMode);
792 _In_ int _FileHandle);
799 _In_ int _FileHandleSrc,
800 _In_ int _FileHandleDst);
807 _In_ int _FileHandle);
814 _In_ int _FileHandle);
821 _In_ int _FileHandle);
828 _In_ int _FileHandle,
830 _In_ long _NumOfBytes);
837 _In_ int _FileHandle,
852 _In_z_ const char *_Filename,
860 _In_ int _FileHandle,
862 _In_ unsigned int _MaxCharCount);
869 _In_ int _FileHandle,
876 const char *_Filename,
886 _In_ int _FileHandle);
899 _In_ int _Filehandle,
901 _In_ unsigned int _MaxCharCount);
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
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
#define _setmode(fd, mode)
#define _Check_return_opt_
#define _Check_return_wat_
GLuint GLint GLboolean GLint GLenum access
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Offset
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
#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)
_CRTIMP int __cdecl _umask(_In_ int _Mode)
_Check_return_ _CRTIMP int __cdecl _waccess(_In_z_ const wchar_t *_Filename, _In_ int _AccessMode)
_Check_return_ _CRTIMP int __cdecl _access(_In_z_ const char *_Filename, _In_ int _AccessMode)
_Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle)
_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)
_Check_return_opt_ _CRTIMP long __cdecl _lseek(_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin)
_Check_return_ _CRTIMP long __cdecl _filelength(_In_ int _FileHandle)
_CRTIMP int __cdecl _locking(_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes)
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)
_Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char *_Filename, _In_ int _Mode)
_CRTIMP int __cdecl _wopen(const wchar_t *_Filename, int _OpenFlag,...)
_CRTIMP int __cdecl _sopen(const char *_Filename, int _OpenFlag, int _ShareFlag,...)
_CRTIMP int __cdecl _write(_In_ int _FileHandle, _In_reads_bytes_(_MaxCharCount) const void *_Buf, _In_ unsigned int _MaxCharCount)
_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 long __cdecl _tell(_In_ int _FileHandle)
_Check_return_ _CRTIMP char *__cdecl _mktemp(_Inout_z_ char *_TemplateName)
_Check_return_ _CRTIMP long __cdecl filelength(_In_ int _FileHandle)
_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)
_CRTIMP wchar_t *__cdecl _wmktemp(_Inout_z_ wchar_t *_TemplateName)
_Check_return_ _CRTIMP int __cdecl _isatty(_In_ int _FileHandle)
_Check_return_ _CRTIMP int __cdecl _creat(_In_z_ const char *_Filename, _In_ int _PermissionMode)
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32(_In_z_ const char *_Filename, _Out_ struct _finddata32_t *_FindData)
_Check_return_ _CRTIMP int __cdecl _read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
_Check_return_ _CRTIMP int __cdecl _dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
_Check_return_ _CRTIMP int __cdecl _unlink(_In_z_ const char *_Filename)
_CRTIMP char *__cdecl mktemp(_Inout_z_ char *_TemplateName)
void __cdecl _unlock_fhandle(_In_ int _Filehandle)
_CRTIMP int __cdecl sopen(const char *_Filename, int _OpenFlag, int _ShareFlag,...)
_CRTIMP int __cdecl _open(const char *_Filename, int _OpenFlag,...)
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32(_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32_t *_FindData)
_CRTIMP int __cdecl umask(_In_ int _Mode)
_Check_return_ _CRTIMP int __cdecl chsize(_In_ int _FileHandle, _In_ long _Size)
_Check_return_ _CRTIMP int __cdecl _wfindnext32(_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32_t *_FindData)
_Check_return_ _CRTIMP int __cdecl _chsize(_In_ int _FileHandle, _In_ long _Size)
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
_Check_return_ _CRTIMP int __cdecl __cdecl eof(_In_ int _FileHandle)
_Check_return_ _CRTIMP int __cdecl _dup(_In_ int _FileHandle)
_Check_return_ _CRTIMP int __cdecl creat(_In_z_ const char *_Filename, _In_ int _PermissionMode)
_Check_return_ _CRTIMP int __cdecl chmod(_In_z_ const char *_Filename, _In_ int _AccessMode)
_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_ _CRTIMP int __cdecl _eof(_In_ int _FileHandle)
_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)
_Check_return_ _CRTIMP int __cdecl locking(_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes)
_Check_return_ _CRTIMP int __cdecl dup2(_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
_CRTIMP int __cdecl _open_osfhandle(_In_ intptr_t _OSFileHandle, _In_ int _Flags)
__int64 CDECL _lseeki64(int fd, __int64 offset, int whence)
__int64 CDECL _telli64(int fd)
__int64 CDECL _filelengthi64(int fd)