ReactOS 0.4.16-dev-297-gc569aee
io.h
Go to the documentation of this file.
1
7#ifndef _IO_H_
8#define _IO_H_
9
10#include <corecrt.h>
11#include <string.h>
12
13#pragma pack(push,_CRT_PACKING)
14
15#ifndef _POSIX_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
24char*
27 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
28 _In_ int _SizeInBytes);
29
30#ifndef _FSIZE_T_DEFINED
31 typedef unsigned long _fsize_t;
32#define _FSIZE_T_DEFINED
33#endif
34
35#ifndef _FINDDATA_T_DEFINED
36
37 struct _finddata_t {
38 unsigned attrib;
43 char name[260];
44 };
45
47 unsigned attrib;
52 char name[260];
53 };
54
55#if _INTEGRAL_MAX_BITS >= 64
56
57 struct _finddatai64_t {
58 unsigned attrib;
59 time_t time_create;
60 time_t time_access;
61 time_t time_write;
63 char name[260];
64 };
65
66 struct _finddata32i64_t {
67 unsigned attrib;
68 __time32_t time_create;
69 __time32_t time_access;
70 __time32_t time_write;
72 char name[260];
73 };
74
75 struct _finddata64i32_t {
76 unsigned attrib;
77 __time64_t time_create;
78 __time64_t time_access;
79 __time64_t time_write;
81 char name[260];
82 };
83
84 struct __finddata64_t {
85 unsigned attrib;
86 __time64_t time_create;
87 __time64_t time_access;
88 __time64_t time_write;
90 char name[260];
91 };
92#endif /* _INTEGRAL_MAX_BITS >= 64 */
93
94#define _FINDDATA_T_DEFINED
95#endif
96
97#ifndef _WFINDDATA_T_DEFINED
98
99 struct _wfinddata_t {
100 unsigned attrib;
105 wchar_t name[260];
106 };
107
109 unsigned attrib;
114 wchar_t name[260];
115 };
116
117#if _INTEGRAL_MAX_BITS >= 64
118
119 struct _wfinddatai64_t {
120 unsigned attrib;
121 time_t time_create;
122 time_t time_access;
123 time_t time_write;
125 wchar_t name[260];
126 };
127
128 struct _wfinddata32i64_t {
129 unsigned attrib;
130 __time32_t time_create;
131 __time32_t time_access;
132 __time32_t time_write;
134 wchar_t name[260];
135 };
136
137 struct _wfinddata64i32_t {
138 unsigned attrib;
139 __time64_t time_create;
140 __time64_t time_access;
141 __time64_t time_write;
143 wchar_t name[260];
144 };
145
146 struct _wfinddata64_t {
147 unsigned attrib;
148 __time64_t time_create;
149 __time64_t time_access;
150 __time64_t time_write;
152 wchar_t name[260];
153 };
154#endif
155
156#define _WFINDDATA_T_DEFINED
157#endif
158
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
164#define _A_ARCH 0x20
165
166 /* Some defines for _access nAccessMode (MS doesn't define them, but
167 * it doesn't seem to hurt to add them). */
168#define F_OK 0 /* Check for file existence */
169#define X_OK 1 /* Check for execute permission. */
170#define W_OK 2 /* Check for write permission */
171#define R_OK 4 /* Check for read permission */
172
174 _CRTIMP
175 int
176 __cdecl
178 _In_z_ const char *_Filename,
179 _In_ int _AccessMode);
180
182 _CRTIMP
183 int
184 __cdecl
186 _In_z_ const char *_Filename,
187 _In_ int _Mode);
188
190 _CRTIMP
191 int
192 __cdecl
194 _In_ int _FileHandle,
195 _In_ long _Size);
196
198 _CRTIMP
199 int
200 __cdecl
202 _In_ int _FileHandle);
203
205 _CRTIMP
206 int
207 __cdecl
209 _In_ int _FileHandle);
210
212 _CRTIMP
213 int
214 __cdecl
216 _In_z_ const char *_Filename,
217 _In_ int _PermissionMode);
218
220 _CRTIMP
221 int
222 __cdecl
224 _In_ int _FileHandle);
225
227 _CRTIMP
228 int
229 __cdecl
231 _In_ int _FileHandleSrc,
232 _In_ int _FileHandleDst);
233
235 _CRTIMP
236 int
237 __cdecl
239 _In_ int _FileHandle);
240
242 _CRTIMP
243 long
244 __cdecl
246 _In_ int _FileHandle);
247
248 _CRTIMP
250 __cdecl
252 const char *_Filename,
253 struct _finddata_t *_FindData);
254
256 _CRTIMP
258 __cdecl
260 _In_z_ const char *_Filename,
261 _Out_ struct _finddata32_t *_FindData);
262
263 _CRTIMP
264 int
265 __cdecl
267 intptr_t _FindHandle,
268 struct _finddata_t *_FindData);
269
271 _CRTIMP
272 int
273 __cdecl
275 _In_ intptr_t _FindHandle,
276 _Out_ struct _finddata32_t *_FindData);
277
279 _CRTIMP
280 int
281 __cdecl
283 _In_ intptr_t _FindHandle);
284
286 _CRTIMP
287 int
288 __cdecl
290 _In_ int _FileHandle);
291
292 _CRTIMP
293 int
294 __cdecl
296 _In_ int _FileHandle,
297 _In_ int _LockMode,
298 _In_ long _NumOfBytes);
299
301 _CRTIMP
302 long
303 __cdecl
305 _In_ int _FileHandle,
306 _In_ long _Offset,
307 _In_ int _Origin);
308
310 _CRTIMP
311 char*
312 __cdecl
314 _Inout_z_ char *_TemplateName);
315
317 _CRTIMP
318 int
319 __cdecl
321 _Inout_updates_(2) int *_PtHandles,
322 _In_ unsigned int _PipeSize,
323 _In_ int _TextMode);
324
326 _CRTIMP
327 int
328 __cdecl
330 _In_ int _FileHandle,
331 _Out_writes_bytes_(_MaxCharCount) void *_DstBuf,
332 _In_ unsigned int _MaxCharCount);
333
334#ifndef _CRT_DIRECTORY_DEFINED
335#define _CRT_DIRECTORY_DEFINED
336
338 int
339 __cdecl
341 _In_z_ const char *_Filename);
342
344 int
345 __cdecl
347 _In_z_ const char *_OldFilename,
348 _In_z_ const char *_NewFilename);
349
351 _CRTIMP
352 int
353 __cdecl
355 _In_z_ const char *_Filename);
356
357#ifndef NO_OLDNAMES
359 _CRTIMP
360 int
361 __cdecl
363 _In_z_ const char *_Filename);
364#endif
365
366#endif /* _CRT_DIRECTORY_DEFINED */
367
369 _CRTIMP
370 int
371 __cdecl
373 _In_ int _FileHandle,
374 _In_ int _Mode);
375
377 _CRTIMP
378 long
379 __cdecl
381 _In_ int _FileHandle);
382
383 _CRTIMP
384 int
385 __cdecl
387 _In_ int _Mode);
388
389 _CRTIMP
390 int
391 __cdecl
393 _In_ int _FileHandle,
394 _In_reads_bytes_(_MaxCharCount) const void *_Buf,
395 _In_ unsigned int _MaxCharCount);
396
397#if _INTEGRAL_MAX_BITS >= 64
398
401 _CRTIMP
402 __int64
403 __cdecl
405 _In_ int _FileHandle);
406
408 _CRTIMP
410 __cdecl
411 _findfirst32i64(
412 _In_z_ const char *_Filename,
413 _Out_ struct _finddata32i64_t *_FindData);
414
416 _CRTIMP
418 __cdecl
419 _findfirst64i32(
420 _In_z_ const char *_Filename,
421 _Out_ struct _finddata64i32_t *_FindData);
422
424 _CRTIMP
426 __cdecl
427 _findfirst64(
428 _In_z_ const char *_Filename,
429 _Out_ struct __finddata64_t *_FindData);
430
432 _CRTIMP
433 int
434 __cdecl
435 _findnext32i64(
436 _In_ intptr_t _FindHandle,
437 _Out_ struct _finddata32i64_t *_FindData);
438
440 _CRTIMP
441 int
442 __cdecl
443 _findnext64i32(
444 _In_ intptr_t _FindHandle,
445 _Out_ struct _finddata64i32_t *_FindData);
446
448 _CRTIMP
449 int
450 __cdecl
451 _findnext64(
452 _In_ intptr_t _FindHandle,
453 _Out_ struct __finddata64_t *_FindData);
454
457 _CRTIMP
458 __int64
459 __cdecl
460 _lseeki64(
461 _In_ int _FileHandle,
463 _In_ int _Origin);
464
467 _CRTIMP
468 __int64
469 __cdecl
470 _telli64(
471 _In_ int _FileHandle);
472
473#ifdef __cplusplus
474#include <string.h>
475#endif
476
478 __CRT_INLINE
480 __cdecl
481 _findfirst64i32(
482 const char *_Filename,
483 struct _finddata64i32_t *_FindData)
484 {
485 struct __finddata64_t fd;
486 intptr_t ret = _findfirst64(_Filename,&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;
491 _FindData->size=(_fsize_t) fd.size;
492 strncpy(_FindData->name,fd.name,260);
493 return ret;
494 }
495
497 __CRT_INLINE
498 int
499 __cdecl
500 _findnext64i32(
501 intptr_t _FindHandle,
502 struct _finddata64i32_t *_FindData)
503 {
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;
510 _FindData->size=(_fsize_t) fd.size;
511 strncpy(_FindData->name,fd.name,260);
512 return ret;
513 }
514
515#endif /* _INTEGRAL_MAX_BITS >= 64 */
516
517#ifndef NO_OLDNAMES
518#ifndef _UWIN
519
521 _CRTIMP
522 int
523 __cdecl
525 _In_z_ const char *_Path);
526
529 _CRTIMP
530 char*
531 __cdecl
533 _Out_writes_opt_(_SizeInBytes) char *_DstBuf,
534 _In_ int _SizeInBytes);
535
537 _CRTIMP
538 int
539 __cdecl
541 _In_z_ const char *_Path);
542
543 _CRTIMP
544 char*
545 __cdecl
547 _Inout_z_ char *_TemplateName);
548
550 _CRTIMP
551 int
552 __cdecl
554 _In_z_ const char *_Path);
555
557 _CRTIMP
558 int
559 __cdecl
561 _In_z_ const char *_Filename,
562 _In_ int _AccessMode);
563
564#endif /* _UWIN */
565#endif /* Not NO_OLDNAMES */
566
568 _CRTIMP
569 errno_t
570 __cdecl
572 _Out_ int *_FileHandle,
573 _In_z_ const char *_Filename,
574 _In_ int _OpenFlag,
575 _In_ int _ShareFlag,
576 _In_ int _PermissionMode);
577
578#ifndef __cplusplus
579 _CRTIMP int __cdecl _open(const char *_Filename,int _OpenFlag,...);
580 _CRTIMP int __cdecl _sopen(const char *_Filename,int _OpenFlag,int _ShareFlag,...);
581#else
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);
584#endif
585
586#ifndef _WIO_DEFINED
587#define _WIO_DEFINED
588
590 _CRTIMP
591 int
592 __cdecl
594 _In_z_ const wchar_t *_Filename,
595 _In_ int _AccessMode);
596
598 _CRTIMP
599 int
600 __cdecl
602 _In_z_ const wchar_t *_Filename,
603 _In_ int _Mode);
604
606 _CRTIMP
607 int
608 __cdecl
610 _In_z_ const wchar_t *_Filename,
611 _In_ int _PermissionMode);
612
614 _CRTIMP
616 __cdecl
618 _In_z_ const wchar_t *_Filename,
619 _Out_ struct _wfinddata32_t *_FindData);
620
622 _CRTIMP
623 int
624 __cdecl
626 _In_ intptr_t _FindHandle,
627 _Out_ struct _wfinddata32_t *_FindData);
628
630 _CRTIMP
631 int
632 __cdecl
634 _In_z_ const wchar_t *_Filename);
635
637 _CRTIMP
638 int
639 __cdecl
641 _In_z_ const wchar_t *_NewFilename,
642 _In_z_ const wchar_t *_OldFilename);
643
644 _CRTIMP
645 wchar_t*
646 __cdecl
648 _Inout_z_ wchar_t *_TemplateName);
649
650#if _INTEGRAL_MAX_BITS >= 64
651
653 _CRTIMP
655 __cdecl
656 _wfindfirst32i64(
657 _In_z_ const wchar_t *_Filename,
658 _Out_ struct _wfinddata32i64_t *_FindData);
659
661 _CRTIMP
663 __cdecl
664 _wfindfirst64i32(
665 _In_z_ const wchar_t *_Filename,
666 _Out_ struct _wfinddata64i32_t *_FindData);
667
669 _CRTIMP
671 __cdecl
672 _wfindfirst64(
673 _In_z_ const wchar_t *_Filename,
674 _Out_ struct _wfinddata64_t *_FindData);
675
677 _CRTIMP
678 int
679 __cdecl
680 _wfindnext32i64(
681 _In_ intptr_t _FindHandle,
682 _Out_ struct _wfinddata32i64_t *_FindData);
683
685 _CRTIMP
686 int
687 __cdecl
688 _wfindnext64i32(
689 _In_ intptr_t _FindHandle,
690 _Out_ struct _wfinddata64i32_t *_FindData);
691
693 _CRTIMP
694 int
695 __cdecl
696 _wfindnext64(
697 _In_ intptr_t _FindHandle,
698 _Out_ struct _wfinddata64_t *_FindData);
699
700#endif /* _INTEGRAL_MAX_BITS >= 64 */
701
703 _CRTIMP
704 errno_t
705 __cdecl
707 _Out_ int *_FileHandle,
708 _In_z_ const wchar_t *_Filename,
709 _In_ int _OpenFlag,
710 _In_ int _ShareFlag,
711 _In_ int _PermissionFlag);
712
713#if !defined(__cplusplus) || !(defined(_X86_) && !defined(__x86_64))
714 _CRTIMP int __cdecl _wopen(const wchar_t *_Filename,int _OpenFlag,...);
715 _CRTIMP int __cdecl _wsopen(const wchar_t *_Filename,int _OpenFlag,int _ShareFlag,...);
716#else
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);
719#endif
720
721#endif /* !_WIO_DEFINED */
722
723 int
724 __cdecl
726 _In_ int _Filehandle);
727
728 void
729 __cdecl
731 _In_ int _Filehandle);
732
733 _CRTIMP
735 __cdecl
737 _In_ int _FileHandle);
738
739 _CRTIMP
740 int
741 __cdecl
743 _In_ intptr_t _OSFileHandle,
744 _In_ int _Flags);
745
746#ifndef NO_OLDNAMES
747
749 _CRTIMP
750 int
751 __cdecl
753 _In_z_ const char *_Filename,
754 _In_ int _AccessMode);
755
757 _CRTIMP
758 int
759 __cdecl
760 chmod(
761 _In_z_ const char *_Filename,
762 _In_ int _AccessMode);
763
765 _CRTIMP
766 int
767 __cdecl
769 _In_ int _FileHandle,
770 _In_ long _Size);
771
773 _CRTIMP
774 int
775 __cdecl
777 _In_ int _FileHandle);
778
780 _CRTIMP
781 int
782 __cdecl
784 _In_z_ const char *_Filename,
785 _In_ int _PermissionMode);
786
788 _CRTIMP
789 int
790 __cdecl
792 _In_ int _FileHandle);
793
795 _CRTIMP
796 int
797 __cdecl
799 _In_ int _FileHandleSrc,
800 _In_ int _FileHandleDst);
801
803 _CRTIMP
804 int
805 __cdecl
807 _In_ int _FileHandle);
808
810 _CRTIMP
811 long
812 __cdecl
814 _In_ int _FileHandle);
815
817 _CRTIMP
818 int
819 __cdecl
821 _In_ int _FileHandle);
822
824 _CRTIMP
825 int
826 __cdecl
828 _In_ int _FileHandle,
829 _In_ int _LockMode,
830 _In_ long _NumOfBytes);
831
833 _CRTIMP
834 long
835 __cdecl
837 _In_ int _FileHandle,
838 _In_ long _Offset,
839 _In_ int _Origin);
840
841 _CRTIMP
842 char*
843 __cdecl
844 mktemp(
845 _Inout_z_ char *_TemplateName);
846
848 _CRTIMP
849 int
850 __cdecl
852 _In_z_ const char *_Filename,
853 _In_ int _OpenFlag,
854 ...);
855
856 _CRTIMP
857 int
858 __cdecl
860 _In_ int _FileHandle,
861 _Out_writes_bytes_(_MaxCharCount) void *_DstBuf,
862 _In_ unsigned int _MaxCharCount);
863
865 _CRTIMP
866 int
867 __cdecl
869 _In_ int _FileHandle,
870 _In_ int _Mode);
871
872 _CRTIMP
873 int
874 __cdecl
876 const char *_Filename,
877 int _OpenFlag,
878 int _ShareFlag,
879 ...);
880
882 _CRTIMP
883 long
884 __cdecl
886 _In_ int _FileHandle);
887
888 _CRTIMP
889 int
890 __cdecl
892 _In_ int _Mode);
893
895 _CRTIMP
896 int
897 __cdecl
899 _In_ int _Filehandle,
900 _In_reads_bytes_(_MaxCharCount) const void *_Buf,
901 _In_ unsigned int _MaxCharCount);
902
903#endif /* NO_OLDNAMES */
904
905#ifdef __cplusplus
906}
907#endif
908#endif
909
910#ifdef __cplusplus
911extern "C" {
912#endif
913
914/* Misc stuff */
915char *getlogin(void);
916#ifdef __USE_MINGW_ALARM
917unsigned int alarm(unsigned int seconds);
918#endif
919
920#ifdef __USE_MINGW_ACCESS
921/* Old versions of MSVCRT access() just ignored X_OK, while the version
922 shipped with Vista, returns an error code. This will restore the
923 old behaviour */
924static inline int __mingw_access (const char *__fname, int __mode) {
925 return _access (__fname, __mode & ~X_OK);
926}
927
928#define access(__f,__m) __mingw_access (__f, __m)
929#endif
930
931#ifdef __cplusplus
932}
933#endif
934
935#pragma pack(pop)
936
937#include <sec_api/io_s.h>
938
939#endif /* End _IO_H_ */
940
#define __MINGW_EXTENSION
Definition: _mingw.h:166
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
Definition: utclib.c:427
#define __cdecl
Definition: accygwin.h:79
#define mkdir
Definition: acwin.h:101
#define read
Definition: acwin.h:96
#define open
Definition: acwin.h:95
#define close
Definition: acwin.h:98
#define write
Definition: acwin.h:97
#define isatty
Definition: acwin.h:103
#define __int64
Definition: basetyps.h:16
#define _setmode(fd, mode)
Definition: cat.c:21
#define _Check_return_opt_
Definition: crtdefs.h:297
#define _Check_return_wat_
Definition: crtdefs.h:303
int errno_t
Definition: crtdefs.h:223
__kernel_time_t time_t
Definition: linux.h:252
#define _findfirst
Definition: find64.c:7
#define _findnext
Definition: find64.c:9
GLsizeiptr size
Definition: glext.h:5919
GLuint GLint GLboolean GLint GLenum access
Definition: glext.h:7866
unsigned long _fsize_t
Definition: wchar.h:69
#define lseek
Definition: syshdrs.h:47
#define unlink
Definition: syshdrs.h:54
#define dup
Definition: syshdrs.h:51
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Offset
Definition: malloc.h:140
_Check_return_ _Ret_maybenull_ _In_ size_t _In_ size_t _Size
Definition: malloc.h:109
#define _Ret_opt_z_
Definition: ms_sal.h:1220
int remove
Definition: msacm.c:1366
#define rmdir
Definition: syshdrs.h:70
#define chdir
Definition: syshdrs.h:69
#define _In_reads_bytes_(s)
Definition: no_sal2.h:170
#define _Inout_updates_(s)
Definition: no_sal2.h:182
#define _Out_writes_opt_(s)
Definition: no_sal2.h:226
#define _In_z_
Definition: no_sal2.h:164
#define _Check_return_
Definition: no_sal2.h:60
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _Out_writes_bytes_(s)
Definition: no_sal2.h:178
#define _Inout_z_
Definition: no_sal2.h:166
_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)
unsigned long _fsize_t
Definition: io.h:31
_Check_return_ _CRTIMP int __cdecl _chmod(_In_z_ const char *_Filename, _In_ int _Mode)
_CRTIMP int __cdecl _wopen(const wchar_t *_Filename, int _OpenFlag,...)
Definition: file.c:2020
_CRTIMP int __cdecl _sopen(const char *_Filename, int _OpenFlag, int _ShareFlag,...)
Definition: file.c:1978
_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,...)
Definition: file.c:1939
_Check_return_ _CRTIMP long __cdecl _tell(_In_ int _FileHandle)
#define X_OK
Definition: io.h:169
_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,...)
Definition: file.c:2001
_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)
char * getlogin(void)
_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)
_In_ size_t _SizeInBytes
Definition: time.h:146
long __time32_t
Definition: time.h:24
#define tell(s)
Definition: getopt.c:28
__int64 CDECL _lseeki64(int fd, __int64 offset, int whence)
Definition: file.c:1138
__int64 CDECL _telli64(int fd)
Definition: file.c:2527
__int64 CDECL _filelengthi64(int fd)
Definition: file.c:1563
static int fd
Definition: io.c:51
#define setmode(f, m)
Definition: io.h:42
unsigned attrib
Definition: io.h:47
__time32_t time_access
Definition: io.h:49
__time32_t time_write
Definition: io.h:50
__time32_t time_create
Definition: io.h:48
_fsize_t size
Definition: io.h:51
Definition: io.h:37
time_t time_access
Definition: io.h:40
time_t time_write
Definition: io.h:41
unsigned attrib
Definition: io.h:38
time_t time_create
Definition: io.h:39
_fsize_t size
Definition: io.h:42
__time32_t time_access
Definition: io.h:111
__time32_t time_write
Definition: io.h:112
unsigned attrib
Definition: io.h:109
__time32_t time_create
Definition: io.h:110
_fsize_t size
Definition: io.h:113
time_t time_access
Definition: io.h:102
_fsize_t size
Definition: io.h:104
time_t time_create
Definition: io.h:101
time_t time_write
Definition: io.h:103
unsigned attrib
Definition: io.h:100
Definition: name.c:39
int intptr_t
Definition: vcruntime.h:134
#define _CRTIMP
Definition: vcruntime.h:54
int ret