2 * System I/O definitions.
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
11 #include "msvcrt/stdio.h" /* For FILENAME_MAX */
12 #include "msvcrt/sys/types.h" /* For time_t */
14 /* The following are also defined in dos.h */
15 #define _A_NORMAL 0x00000000
16 #define _A_RDONLY 0x00000001
17 #define _A_HIDDEN 0x00000002
18 #define _A_SYSTEM 0x00000004
19 #define _A_VOLID 0x00000008
20 #define _A_SUBDIR 0x00000010
21 #define _A_ARCH 0x00000020
23 typedef unsigned long _fsize_t
;
28 MSVCRT(time_t) time_create
;
29 MSVCRT(time_t) time_access
;
30 MSVCRT(time_t) time_write
;
32 char name
[MSVCRT(FILENAME_MAX
)];
38 MSVCRT(time_t) time_create
;
39 MSVCRT(time_t) time_access
;
40 MSVCRT(time_t) time_write
;
42 char name
[MSVCRT(FILENAME_MAX
)];
47 MSVCRT(time_t) time_create
;
48 MSVCRT(time_t) time_access
;
49 MSVCRT(time_t) time_write
;
51 WCHAR name
[MSVCRT(FILENAME_MAX
)];
54 struct _wfinddatai64_t
{
56 MSVCRT(time_t) time_create
;
57 MSVCRT(time_t) time_access
;
58 MSVCRT(time_t) time_write
;
60 WCHAR name
[MSVCRT(FILENAME_MAX
)];
68 int _access(const char*,int);
69 int _chmod(const char*,int);
70 int _chsize(int,long);
73 int _creat(const char*,int);
77 __int64
_filelengthi64(int);
78 long _filelength(int);
80 long _findfirst(const char*,struct _finddata_t
*);
81 long _findfirsti64(const char*, struct _finddatai64_t
*);
82 int _findnext(long,struct _finddata_t
*);
83 int _findnexti64(long, struct _finddatai64_t
*);
84 long _get_osfhandle(int);
86 int _locking(int,int,long);
87 long _lseek(int,long,int);
88 __int64
_lseeki64(int,__int64
,int);
90 int _open(const char*,int,...);
91 int _open_osfhandle(long,int);
92 int _pipe(int*,unsigned int,int);
93 int _read(int,void*,unsigned int);
94 int _setmode(int,int);
95 int _sopen(const char*,int,int,...);
97 __int64
_telli64(int);
99 int _unlink(const char*);
100 int _write(int,const void*,unsigned int);
102 int MSVCRT(remove
)(const char*);
103 int MSVCRT(rename
)(const char*,const char*);
105 int _waccess(const WCHAR
*,int);
106 int _wchmod(const WCHAR
*,int);
107 int _wcreat(const WCHAR
*,int);
108 long _wfindfirst(const WCHAR
*,struct _wfinddata_t
*);
109 long _wfindfirsti64(const WCHAR
*, struct _wfinddatai64_t
*);
110 int _wfindnext(long,struct _wfinddata_t
*);
111 int _wfindnexti64(long, struct _wfinddatai64_t
*);
112 WCHAR
* _wmktemp(WCHAR
*);
113 int _wopen(const WCHAR
*,int,...);
114 int _wrename(const WCHAR
*,const WCHAR
*);
115 int _wsopen(const WCHAR
*,int,int,...);
116 int _wunlink(const WCHAR
*);
124 #ifndef USE_MSVCRT_PREFIX
125 #define access _access
127 #define chsize _chsize
133 #define filelength _filelength
134 #define isatty _isatty
135 #define locking _locking
137 #define mktemp _mktemp
140 #define setmode _setmode
144 #define unlink _unlink
146 #endif /* USE_MSVCRT_PREFIX */
148 #endif /* __WINE_IO_H */