~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/msvcrt/io.h

Version: ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~ [ wine-1.0-rc5 ] ~ [ wine-1.0-rc4 ] ~ [ wine-1.0-rc3 ] ~ [ wine-1.0-rc2 ] ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /*
  2  * System I/O definitions.
  3  *
  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.
  7  */
  8 #ifndef __WINE_IO_H
  9 #define __WINE_IO_H
 10 #ifndef __WINE_USE_MSVCRT
 11 #define __WINE_USE_MSVCRT
 12 #endif
 13 
 14 #include <pshpack8.h>
 15 
 16 #ifndef _WCHAR_T_DEFINED
 17 #define _WCHAR_T_DEFINED
 18 #ifndef __cplusplus
 19 typedef unsigned short wchar_t;
 20 #endif
 21 #endif
 22 
 23 #if defined(__x86_64__) && !defined(_WIN64)
 24 #define _WIN64
 25 #endif
 26 
 27 #if !defined(_MSC_VER) && !defined(__int64)
 28 # ifdef _WIN64
 29 #   define __int64 long
 30 # else
 31 #   define __int64 long long
 32 # endif
 33 #endif
 34 
 35 /* The following are also defined in dos.h */
 36 #define _A_NORMAL 0x00000000
 37 #define _A_RDONLY 0x00000001
 38 #define _A_HIDDEN 0x00000002
 39 #define _A_SYSTEM 0x00000004
 40 #define _A_VOLID  0x00000008
 41 #define _A_SUBDIR 0x00000010
 42 #define _A_ARCH   0x00000020
 43 
 44 #ifndef _TIME_T_DEFINED
 45 typedef long time_t;
 46 #define _TIME_T_DEFINED
 47 #endif
 48 
 49 #ifndef _FSIZE_T_DEFINED
 50 typedef unsigned long _fsize_t;
 51 #define _FSIZE_T_DEFINED
 52 #endif
 53 
 54 #ifndef _FINDDATA_T_DEFINED
 55 #define _FINDDATA_T_DEFINED
 56 struct _finddata_t
 57 {
 58   unsigned attrib;
 59   time_t   time_create;
 60   time_t   time_access;
 61   time_t   time_write;
 62   _fsize_t size;
 63   char             name[260];
 64 };
 65 
 66 struct _finddatai64_t
 67 {
 68   unsigned attrib;
 69   time_t time_create;
 70   time_t time_access;
 71   time_t time_write;
 72   __int64        size;
 73   char           name[260];
 74 };
 75 #endif /* _FINDDATA_T_DEFINED */
 76 
 77 #ifndef _WFINDDATA_T_DEFINED
 78 #define _WFINDDATA_T_DEFINED
 79 struct _wfinddata_t {
 80   unsigned attrib;
 81   time_t   time_create;
 82   time_t   time_access;
 83   time_t   time_write;
 84   _fsize_t size;
 85   wchar_t  name[260];
 86 };
 87 
 88 struct _wfinddatai64_t {
 89   unsigned attrib;
 90   time_t  time_create;
 91   time_t  time_access;
 92   time_t  time_write;
 93   __int64         size;
 94   wchar_t name[260];
 95 };
 96 #endif /* _WFINDDATA_T_DEFINED */
 97 
 98 #ifdef __cplusplus
 99 extern "C" {
100 #endif
101 
102 int         _access(const char*,int);
103 int         _chmod(const char*,int);
104 int         _chsize(int,long);
105 int         _close(int);
106 int         _commit(int);
107 int         _creat(const char*,int);
108 int         _dup(int);
109 int         _dup2(int,int);
110 int         _eof(int);
111 __int64     _filelengthi64(int);
112 long        _filelength(int);
113 int         _findclose(long);
114 long        _findfirst(const char*,struct _finddata_t*);
115 long        _findfirsti64(const char*, struct _finddatai64_t*);
116 int         _findnext(long,struct _finddata_t*);
117 int         _findnexti64(long, struct _finddatai64_t*);
118 long        _get_osfhandle(int);
119 int         _isatty(int);
120 int         _locking(int,int,long);
121 long        _lseek(int,long,int);
122 __int64     _lseeki64(int,__int64,int);
123 char*       _mktemp(char*);
124 int         _open(const char*,int,...);
125 int         _open_osfhandle(long,int);
126 int         _pipe(int*,unsigned int,int);
127 int         _read(int,void*,unsigned int);
128 int         _setmode(int,int);
129 int         _sopen(const char*,int,int,...);
130 long        _tell(int);
131 __int64     _telli64(int);
132 int         _umask(int);
133 int         _unlink(const char*);
134 int         _write(int,const void*,unsigned int);
135 
136 int         remove(const char*);
137 int         rename(const char*,const char*);
138 
139 #ifndef _WIO_DEFINED
140 #define _WIO_DEFINED
141 int         _waccess(const wchar_t*,int);
142 int         _wchmod(const wchar_t*,int);
143 int         _wcreat(const wchar_t*,int);
144 long        _wfindfirst(const wchar_t*,struct _wfinddata_t*);
145 long        _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
146 int         _wfindnext(long,struct _wfinddata_t*);
147 int         _wfindnexti64(long, struct _wfinddatai64_t*);
148 wchar_t*_wmktemp(wchar_t*);
149 int         _wopen(const wchar_t*,int,...);
150 int         _wrename(const wchar_t*,const wchar_t*);
151 int         _wsopen(const wchar_t*,int,int,...);
152 int         _wunlink(const wchar_t*);
153 #endif /* _WIO_DEFINED */
154 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 
160 static inline int access(const char* path, int mode) { return _access(path, mode); }
161 static inline int chmod(const char* path, int mode) { return _chmod(path, mode); }
162 static inline int chsize(int fd, long size) { return _chsize(fd, size); }
163 static inline int close(int fd) { return _close(fd); }
164 static inline int creat(const char* path, int mode) { return _creat(path, mode); }
165 static inline int dup(int od) { return _dup(od); }
166 static inline int dup2(int od, int nd) { return _dup2(od, nd); }
167 static inline int eof(int fd) { return _eof(fd); }
168 static inline long filelength(int fd) { return _filelength(fd); }
169 static inline int isatty(int fd) { return _isatty(fd); }
170 static inline int locking(int fd, int mode, long size) { return _locking(fd, mode, size); }
171 static inline long lseek(int fd, long off, int where) { return _lseek(fd, off, where); }
172 static inline char* mktemp(char* pat) { return _mktemp(pat); }
173 static inline int read(int fd, void* buf, unsigned int size) { return _read(fd, buf, size); }
174 static inline int setmode(int fd, int mode) { return _setmode(fd, mode); }
175 static inline long tell(int fd) { return _tell(fd); }
176 #ifndef _UMASK_DEFINED
177 static inline int umask(int fd) { return _umask(fd); }
178 #define _UMASK_DEFINED
179 #endif
180 #ifndef _UNLINK_DEFINED
181 static inline int unlink(const char* path) { return _unlink(path); }
182 #define _UNLINK_DEFINED
183 #endif
184 static inline int write(int fd, const void* buf, unsigned int size) { return _write(fd, buf, size); }
185 
186 #if defined(__GNUC__) && (__GNUC__ < 4)
187 extern int open(const char*,int,...) __attribute__((alias("_open")));
188 extern int sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
189 #else
190 #define open _open
191 #define sopen _sopen
192 #endif /* __GNUC__ */
193 
194 #include <poppack.h>
195 
196 #endif /* __WINE_IO_H */
197 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.