ReactOS 0.4.16-dev-2104-gb84fa49
corecrt_io.h
Go to the documentation of this file.
1
6#ifndef _IO_DEFINED
7#define _IO_DEFINED
8
9#include <corecrt_wio.h>
10
11#include <pshpack8.h>
12
13#if defined(_USE_32BIT_TIME_T)
14# define _finddata_t _finddata32_t
15# define _finddatai64_t _finddata32i64_t
16#else
17# define _finddata_t _finddata64i32_t
18# define _finddatai64_t _finddata64_t
19#endif
20
22 unsigned attrib;
27 char name[260];
28};
29
31 unsigned attrib;
36 char name[260];
37};
38
40 unsigned attrib;
45 char name[260];
46};
47
49 unsigned attrib;
54 char name[260];
55};
56
57/* The following are also defined in dos.h */
58#define _A_NORMAL 0x00000000
59#define _A_RDONLY 0x00000001
60#define _A_HIDDEN 0x00000002
61#define _A_SYSTEM 0x00000004
62#define _A_VOLID 0x00000008
63#define _A_SUBDIR 0x00000010
64#define _A_ARCH 0x00000020
65
66#ifdef _UCRT
67# ifdef _USE_32BIT_TIME_T
68# define _findfirst _findfirst32
69# define _findfirsti64 _findfirst32i64
70# define _findnext _findnext32
71# define _findnexti64 _findnext32i64
72# else
73# define _findfirst _findfirst64i32
74# define _findfirsti64 _findfirst64
75# define _findnext _findnext64i32
76# define _findnexti64 _findnext64
77# endif
78#else /* _UCRT */
79# ifdef _USE_32BIT_TIME_T
80# define _findfirst32 _findfirst
81# define _findfirst32i64 _findfirsti64
82# define _findnext32 _findnext
83# define _findnext32i64 _findnexti64
84# else
85# define _findfirst64i32 _findfirst
86# define _findfirst64 _findfirsti64
87# define _findnext64i32 _findnext
88# define _findnext64 _findnexti64
89# endif
90#endif
91
92#ifdef __cplusplus
93extern "C" {
94#endif
95
96_ACRTIMP int __cdecl _access(const char*,int);
97_ACRTIMP int __cdecl _chmod(const char*,int);
100_ACRTIMP int __cdecl _close(int);
101_ACRTIMP int __cdecl _creat(const char*,int);
102_ACRTIMP int __cdecl _dup(int);
103_ACRTIMP int __cdecl _dup2(int,int);
104_ACRTIMP int __cdecl _eof(int);
108#ifdef _UCRT
117#else
118_ACRTIMP intptr_t __cdecl _findfirst(const char*,struct _finddata_t*);
124#endif
126_ACRTIMP int __cdecl _isatty(int);
130_ACRTIMP char* __cdecl _mktemp(char*);
131_ACRTIMP int __cdecl _mktemp_s(char*,size_t);
132_ACRTIMP int __cdecl _open(const char*,int,...);
134_ACRTIMP int __cdecl _pipe(int*,unsigned int,int);
135_ACRTIMP int __cdecl _read(int,void*,unsigned int);
136_ACRTIMP int __cdecl _setmode(int,int);
137_ACRTIMP int __cdecl _sopen(const char*,int,int,...);
138_ACRTIMP errno_t __cdecl _sopen_dispatch(const char*,int,int,int,int*,int);
139_ACRTIMP errno_t __cdecl _sopen_s(int*,const char*,int,int,int);
142_ACRTIMP int __cdecl _umask(int);
143_ACRTIMP int __cdecl _unlink(const char*);
144_ACRTIMP int __cdecl _write(int,const void*,unsigned int);
145_ACRTIMP int __cdecl remove(const char*);
146_ACRTIMP int __cdecl rename(const char*,const char*);
147
148#ifdef __cplusplus
149}
150#endif
151
152#include <poppack.h>
153
154#endif /* _IO_DEFINED */
#define _setmode(fd, mode)
Definition: cat.c:21
intptr_t CDECL _findfirst32(const char *fspec, struct _finddata32_t *ft)
Definition: dir.c:397
int CDECL _findnext32(intptr_t hand, struct _finddata32_t *ft)
Definition: dir.c:612
int CDECL _findclose(intptr_t hand)
Definition: dir.c:298
int CDECL _dup2(int od, int nd)
Definition: file.c:1258
int CDECL _read(int fd, void *buf, unsigned int count)
Definition: file.c:3127
int CDECL _close(int fd)
Definition: file.c:1219
int CDECL _pipe(int *pfds, unsigned int psize, int textmode)
Definition: file.c:2323
int CDECL _chmod(const char *path, int flags)
Definition: file.c:1052
int CDECL _locking(int fd, int mode, __msvcrt_long nbytes)
Definition: file.c:1513
int CDECL _sopen_s(int *fd, const char *path, int oflags, int shflags, int pmode)
Definition: file.c:2625
int CDECL _sopen_dispatch(const char *path, int oflags, int shflags, int pmode, int *fd, int secure)
Definition: file.c:2606
__int64 CDECL _lseeki64(int fd, __int64 offset, int whence)
Definition: file.c:1432
int CDECL _dup(int od)
Definition: file.c:1317
int CDECL _write(int fd, const void *buf, unsigned int count)
Definition: file.c:3561
int CDECL _umask(int umask)
Definition: file.c:3486
int CDECL _unlink(const char *path)
Definition: file.c:1085
int CDECL _open_osfhandle(intptr_t handle, int oflags)
Definition: file.c:2711
int CDECL _eof(int fd)
Definition: file.c:1333
int WINAPIV _sopen(const char *path, int oflags, int shflags,...)
Definition: file.c:2633
intptr_t CDECL _get_osfhandle(int fd)
Definition: file.c:2117
int CDECL rename(const char *oldpath, const char *newpath)
Definition: file.c:4973
int CDECL _mktemp_s(char *pattern, size_t size)
Definition: file.c:2130
int CDECL _chsize_s(int fd, __int64 size)
Definition: file.c:1626
__msvcrt_long CDECL _tell(int fd)
Definition: file.c:3425
int CDECL _chsize(int fd, __msvcrt_long size)
Definition: file.c:1663
__int64 CDECL _telli64(int fd)
Definition: file.c:3433
int CDECL _access(const char *filename, int mode)
Definition: file.c:990
__msvcrt_long CDECL _filelength(int fd)
Definition: file.c:1887
__int64 CDECL _filelengthi64(int fd)
Definition: file.c:1906
int CDECL _creat(const char *path, int pmode)
Definition: file.c:2693
__msvcrt_long CDECL _lseek(int fd, __msvcrt_long offset, int whence)
Definition: file.c:1479
int WINAPIV _open(const char *path, int flags,...)
Definition: file.c:2655
int CDECL _isatty(int fd)
Definition: file.c:858
char *CDECL _mktemp(char *pattern)
Definition: file.c:2176
__msvcrt_long __time32_t
Definition: corecrt.h:209
int errno_t
Definition: corecrt.h:249
int intptr_t
Definition: corecrt.h:176
long __msvcrt_long
Definition: corecrt.h:167
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
#define __int64
Definition: corecrt.h:72
#define _findnext64
Definition: corecrt_io.h:88
#define _findfirst64
Definition: corecrt_io.h:86
#define _findnext64i32
Definition: corecrt_io.h:87
#define _finddatai64_t
Definition: corecrt_io.h:18
#define _findfirst64i32
Definition: corecrt_io.h:85
__msvcrt_ulong _fsize_t
Definition: corecrt_wio.h:13
int __cdecl _findnext32i64(intptr_t const handle, _finddata32i64_t *const result)
Definition: findfile.cpp:336
intptr_t __cdecl _findfirst32i64(char const *const pattern, _finddata32i64_t *const result)
Definition: findfile.cpp:204
GLsizeiptr size
Definition: glext.h:5919
int remove
Definition: msacm.c:1366
__int64 __time64_t
Definition: corecrt.h:619
#define _findfirsti64
Definition: corecrt_io.h:103
#define _findnexti64
Definition: corecrt_io.h:104
#define _findfirst
Definition: corecrt_io.h:101
#define _findnext
Definition: corecrt_io.h:102
unsigned attrib
Definition: corecrt_io.h:22
__time32_t time_access
Definition: corecrt_io.h:24
__time32_t time_write
Definition: corecrt_io.h:25
__time32_t time_create
Definition: corecrt_io.h:23
_fsize_t size
Definition: corecrt_io.h:26
__time32_t time_create
Definition: corecrt_io.h:32
__int64 DECLSPEC_ALIGN(8) size
__time32_t time_access
Definition: corecrt_io.h:33
unsigned attrib
Definition: corecrt_io.h:31
__time32_t time_write
Definition: corecrt_io.h:34
__time64_t time_access
Definition: corecrt_io.h:51
unsigned attrib
Definition: corecrt_io.h:49
__int64 DECLSPEC_ALIGN(8) size
__time64_t time_write
Definition: corecrt_io.h:52
__time64_t time_create
Definition: corecrt_io.h:50
__time64_t time_create
Definition: corecrt_io.h:41
__time64_t time_write
Definition: corecrt_io.h:43
unsigned attrib
Definition: corecrt_io.h:40
_fsize_t size
Definition: corecrt_io.h:44
__time64_t time_access
Definition: corecrt_io.h:42
Definition: io.h:37
Definition: name.c:39