Install OpenSSL 0.9.8y header files
[msysgit.git] / mingw / include / wchar.h
blobbe769527b74107175b7de0c59f7be6e6aeb27c5f
1 /*
2 * wchar.h
3 * This file has no copyright assigned and is placed in the Public Domain.
4 * This file is a part of the mingw-runtime package.
5 * No warranty is given; refer to the file DISCLAIMER within the package.
7 * Defines of all functions for supporting wide characters. Actually it
8 * just includes all those headers, which is not a good thing to do from a
9 * processing time point of view, but it does mean that everything will be
10 * in sync.
14 #ifndef _WCHAR_H_
15 #define _WCHAR_H_
17 /* All the headers include this file. */
18 #include <_mingw.h>
20 #ifndef RC_INVOKED
22 #define __need_size_t
23 #define __need_wint_t
24 #define __need_wchar_t
25 #define __need_NULL
26 #include <stddef.h>
28 #ifndef __VALIST
29 #if defined __GNUC__ && __GNUC__ >= 3
30 #define __need___va_list
31 #include <stdarg.h>
32 #define __VALIST __builtin_va_list
33 #else
34 #define __VALIST char*
35 #endif
36 #endif
38 #endif /* Not RC_INVOKED */
41 * MSDN says that isw* char classifications are in wchar.h and wctype.h.
42 * Although the wctype names are ANSI, their exposure in this header is
43 * not.
45 #include <wctype.h>
47 #ifndef __STRICT_ANSI__
48 /* This is necessary to support the the non-ANSI wchar declarations
49 here. */
50 #include <sys/types.h>
51 #endif /* __STRICT_ANSI__ */
53 #define WCHAR_MIN 0
54 #define WCHAR_MAX 0xffff
56 #ifndef WEOF
57 #define WEOF (wchar_t)(0xFFFF)
58 #endif
60 #ifndef RC_INVOKED
62 #ifdef __cplusplus
63 extern "C" {
64 #endif
66 #ifndef _FILE_DEFINED /* Also in stdio.h */
67 #define _FILE_DEFINED
68 typedef struct _iobuf
70 char* _ptr;
71 int _cnt;
72 char* _base;
73 int _flag;
74 int _file;
75 int _charbuf;
76 int _bufsiz;
77 char* _tmpfname;
78 } FILE;
79 #endif /* Not _FILE_DEFINED */
81 #ifndef _TIME_T_DEFINED /* Also in time.h */
82 typedef long time_t;
83 #define _TIME_T_DEFINED
84 #endif
86 #ifndef _TM_DEFINED /* Also in time.h */
87 struct tm {
88 int tm_sec; /* seconds after the minute - [0,59] */
89 int tm_min; /* minutes after the hour - [0,59] */
90 int tm_hour; /* hours since midnight - [0,23] */
91 int tm_mday; /* day of the month - [1,31] */
92 int tm_mon; /* months since January - [0,11] */
93 int tm_year; /* years since 1900 */
94 int tm_wday; /* days since Sunday - [0,6] */
95 int tm_yday; /* days since January 1 - [0,365] */
96 int tm_isdst; /* daylight savings time flag */
98 #define _TM_DEFINED
99 #endif
101 #ifndef _WSTDIO_DEFINED
102 /* Also in stdio.h - keep in sync */
103 _CRTIMP int __cdecl __MINGW_NOTHROW fwprintf (FILE*, const wchar_t*, ...);
104 _CRTIMP int __cdecl __MINGW_NOTHROW wprintf (const wchar_t*, ...);
105 _CRTIMP int __cdecl __MINGW_NOTHROW _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
106 _CRTIMP int __cdecl __MINGW_NOTHROW vfwprintf (FILE*, const wchar_t*, __VALIST);
107 _CRTIMP int __cdecl __MINGW_NOTHROW vwprintf (const wchar_t*, __VALIST);
108 _CRTIMP int __cdecl __MINGW_NOTHROW _vsnwprintf (wchar_t*, size_t, const wchar_t*, __VALIST);
109 _CRTIMP int __cdecl __MINGW_NOTHROW fwscanf (FILE*, const wchar_t*, ...);
110 _CRTIMP int __cdecl __MINGW_NOTHROW wscanf (const wchar_t*, ...);
111 _CRTIMP int __cdecl __MINGW_NOTHROW swscanf (const wchar_t*, const wchar_t*, ...);
112 _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);
113 _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t, FILE*);
114 _CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);
116 /* These differ from the ISO C prototypes, which have a maxlen parameter like snprintf. */
117 #ifndef __STRICT_ANSI__
118 _CRTIMP int __cdecl __MINGW_NOTHROW swprintf (wchar_t*, const wchar_t*, ...);
119 _CRTIMP int __cdecl __MINGW_NOTHROW vswprintf (wchar_t*, const wchar_t*, __VALIST);
120 #endif
122 #ifdef __MSVCRT__
123 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW fgetws (wchar_t*, int, FILE*);
124 _CRTIMP int __cdecl __MINGW_NOTHROW fputws (const wchar_t*, FILE*);
125 _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwc (FILE*);
126 _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar (void);
127 _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*);
128 _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t);
129 #ifndef __STRICT_ANSI__
130 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*);
131 _CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*);
132 _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *);
133 _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*);
134 _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*);
135 _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int);
136 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtmpnam (wchar_t*);
137 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wtempnam (const wchar_t*, const wchar_t*);
138 _CRTIMP int __cdecl __MINGW_NOTHROW _wrename (const wchar_t*, const wchar_t*);
139 _CRTIMP int __cdecl __MINGW_NOTHROW _wremove (const wchar_t*);
140 _CRTIMP void __cdecl __MINGW_NOTHROW _wperror (const wchar_t*);
141 _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wpopen (const wchar_t*, const wchar_t*);
142 #endif /* __STRICT_ANSI__ */
143 #endif /* __MSVCRT__ */
145 #ifndef __NO_ISOCEXT /* externs in libmingwex.a */
146 int __cdecl __MINGW_NOTHROW snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...);
147 __CRT_INLINE int __cdecl __MINGW_NOTHROW
148 vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg)
149 { return _vsnwprintf ( s, n, format, arg);}
150 int __cdecl __MINGW_NOTHROW vwscanf (const wchar_t * __restrict__, __VALIST);
151 int __cdecl __MINGW_NOTHROW vfwscanf (FILE * __restrict__,
152 const wchar_t * __restrict__, __VALIST);
153 int __cdecl __MINGW_NOTHROW vswscanf (const wchar_t * __restrict__,
154 const wchar_t * __restrict__, __VALIST);
155 #endif
157 #define _WSTDIO_DEFINED
158 #endif /* _WSTDIO_DEFINED */
160 #ifndef _WSTDLIB_DEFINED /* also declared in stdlib.h */
161 _CRTIMP long __cdecl __MINGW_NOTHROW wcstol (const wchar_t*, wchar_t**, int);
162 _CRTIMP unsigned long __cdecl __MINGW_NOTHROW wcstoul (const wchar_t*, wchar_t**, int);
163 _CRTIMP double __cdecl __MINGW_NOTHROW wcstod (const wchar_t*, wchar_t**);
164 #if !defined __NO_ISOCEXT /* in libmingwex.a */
165 float __cdecl __MINGW_NOTHROW wcstof (const wchar_t * __restrict__, wchar_t ** __restrict__);
166 long double __cdecl __MINGW_NOTHROW wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__);
167 #endif /* __NO_ISOCEXT */
168 #ifdef __MSVCRT__
169 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetenv(const wchar_t*);
170 _CRTIMP int __cdecl __MINGW_NOTHROW _wputenv(const wchar_t*);
171 _CRTIMP void __cdecl __MINGW_NOTHROW _wsearchenv(const wchar_t*, const wchar_t*, wchar_t*);
172 _CRTIMP int __cdecl __MINGW_NOTHROW _wsystem(const wchar_t*);
173 _CRTIMP void __cdecl __MINGW_NOTHROW _wmakepath(wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*);
174 _CRTIMP void __cdecl __MINGW_NOTHROW _wsplitpath (const wchar_t*, wchar_t*, wchar_t*, wchar_t*, wchar_t*);
175 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wfullpath (wchar_t*, const wchar_t*, size_t);
176 #endif
177 #define _WSTDLIB_DEFINED
178 #endif /* _WSTDLIB_DEFINED */
180 #ifndef _WTIME_DEFINED
181 #ifndef __STRICT_ANSI__
182 #ifdef __MSVCRT__
183 /* wide function prototypes, also declared in time.h */
184 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wasctime (const struct tm*);
185 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wctime (const time_t*);
186 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wstrdate (wchar_t*);
187 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wstrtime (wchar_t*);
188 #if __MSVCRT_VERSION__ >= 0x601
189 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wctime64 (const __time64_t*);
190 #endif
191 #endif /* __MSVCRT__ */
192 #endif /* __STRICT_ANSI__ */
193 _CRTIMP size_t __cdecl __MINGW_NOTHROW wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
194 #define _WTIME_DEFINED
195 #endif /* _WTIME_DEFINED */
198 #ifndef _WSTRING_DEFINED
200 * Unicode versions of the standard string calls.
201 * Also in string.h.
203 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcscat (wchar_t*, const wchar_t*);
204 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcschr (const wchar_t*, wchar_t);
205 _CRTIMP int __cdecl __MINGW_NOTHROW wcscmp (const wchar_t*, const wchar_t*);
206 _CRTIMP int __cdecl __MINGW_NOTHROW wcscoll (const wchar_t*, const wchar_t*);
207 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcscpy (wchar_t*, const wchar_t*);
208 _CRTIMP size_t __cdecl __MINGW_NOTHROW wcscspn (const wchar_t*, const wchar_t*);
209 /* Note: _wcserror requires __MSVCRT_VERSION__ >= 0x0700. */
210 _CRTIMP size_t __cdecl __MINGW_NOTHROW wcslen (const wchar_t*);
211 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncat (wchar_t*, const wchar_t*, size_t);
212 _CRTIMP int __cdecl __MINGW_NOTHROW wcsncmp(const wchar_t*, const wchar_t*, size_t);
213 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsncpy(wchar_t*, const wchar_t*, size_t);
214 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcspbrk(const wchar_t*, const wchar_t*);
215 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsrchr(const wchar_t*, wchar_t);
216 _CRTIMP size_t __cdecl __MINGW_NOTHROW wcsspn(const wchar_t*, const wchar_t*);
217 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsstr(const wchar_t*, const wchar_t*);
218 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcstok(wchar_t*, const wchar_t*);
219 _CRTIMP size_t __cdecl __MINGW_NOTHROW wcsxfrm(wchar_t*, const wchar_t*, size_t);
221 #ifndef __STRICT_ANSI__
223 * Unicode versions of non-ANSI functions provided by CRTDLL.
226 /* NOTE: _wcscmpi not provided by CRTDLL, this define is for portability */
227 #define _wcscmpi _wcsicmp
229 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsdup (const wchar_t*);
230 _CRTIMP int __cdecl __MINGW_NOTHROW _wcsicmp (const wchar_t*, const wchar_t*);
231 _CRTIMP int __cdecl __MINGW_NOTHROW _wcsicoll (const wchar_t*, const wchar_t*);
232 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcslwr (wchar_t*);
233 _CRTIMP int __cdecl __MINGW_NOTHROW _wcsnicmp (const wchar_t*, const wchar_t*, size_t);
234 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsnset (wchar_t*, wchar_t, size_t);
235 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsrev (wchar_t*);
236 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsset (wchar_t*, wchar_t);
237 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcsupr (wchar_t*);
239 #ifdef __MSVCRT__
240 _CRTIMP int __cdecl __MINGW_NOTHROW _wcsncoll(const wchar_t*, const wchar_t*, size_t);
241 _CRTIMP int __cdecl __MINGW_NOTHROW _wcsnicoll(const wchar_t*, const wchar_t*, size_t);
242 #if __MSVCRT_VERSION__ >= 0x0700
243 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wcserror(int);
244 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW __wcserror(const wchar_t*);
245 #endif
246 #endif
248 #ifndef _NO_OLDNAMES
249 /* NOTE: There is no _wcscmpi, but this is for compatibility. */
250 __CRT_INLINE int __cdecl __MINGW_NOTHROW
251 wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2)
252 {return _wcsicmp (__ws1, __ws2);}
253 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsdup (const wchar_t*);
254 _CRTIMP int __cdecl __MINGW_NOTHROW wcsicmp (const wchar_t*, const wchar_t*);
255 _CRTIMP int __cdecl __MINGW_NOTHROW wcsicoll (const wchar_t*, const wchar_t*);
256 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcslwr (wchar_t*);
257 _CRTIMP int __cdecl __MINGW_NOTHROW wcsnicmp (const wchar_t*, const wchar_t*, size_t);
258 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsnset (wchar_t*, wchar_t, size_t);
259 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsrev (wchar_t*);
260 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsset (wchar_t*, wchar_t);
261 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW wcsupr (wchar_t*);
262 #endif /* Not _NO_OLDNAMES */
264 #endif /* Not strict ANSI */
266 #define _WSTRING_DEFINED
267 #endif /* _WSTRING_DEFINED */
269 /* These are resolved by -lmingwex. Alternatively, they can be resolved by
270 adding -lmsvcp60 to your command line, which will give you the VC++
271 versions of these functions. If you want the latter and don't have
272 msvcp60.dll in your windows system directory, you can easily obtain
273 it with a search from your favorite search engine. */
274 #ifndef __STRICT_ANSI__
275 typedef wchar_t _Wint_t;
276 #endif
278 typedef int mbstate_t;
280 wint_t __cdecl __MINGW_NOTHROW btowc(int);
281 size_t __cdecl __MINGW_NOTHROW mbrlen(const char * __restrict__, size_t,
282 mbstate_t * __restrict__);
283 size_t __cdecl __MINGW_NOTHROW mbrtowc(wchar_t * __restrict__, const char * __restrict__,
284 size_t, mbstate_t * __restrict__);
285 size_t __cdecl __MINGW_NOTHROW mbsrtowcs(wchar_t * __restrict__, const char ** __restrict__,
286 size_t, mbstate_t * __restrict__);
287 size_t __cdecl __MINGW_NOTHROW wcrtomb(char * __restrict__, wchar_t,
288 mbstate_t * __restrict__);
289 size_t __cdecl __MINGW_NOTHROW wcsrtombs(char * __restrict__, const wchar_t ** __restrict__,
290 size_t, mbstate_t * __restrict__);
291 int __cdecl __MINGW_NOTHROW wctob(wint_t);
293 #ifndef __NO_ISOCEXT /* these need static lib libmingwex.a */
294 int __cdecl __MINGW_NOTHROW fwide(FILE*, int);
295 int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);
296 #ifndef __NO_INLINE__
297 __CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream),
298 int mode)
299 {return mode;} /* Nothing to do */
300 __CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps))
301 {return 1;}
302 #endif
303 wchar_t* __cdecl __MINGW_NOTHROW wmemset(wchar_t *, wchar_t, size_t);
304 wchar_t* __cdecl __MINGW_NOTHROW wmemchr(const wchar_t*, wchar_t, size_t);
305 int wmemcmp(const wchar_t*, const wchar_t *, size_t);
306 wchar_t* __cdecl __MINGW_NOTHROW wmemcpy(wchar_t* __restrict__,
307 const wchar_t* __restrict__,
308 size_t);
309 wchar_t* __cdecl __MINGW_NOTHROW wmemmove(wchar_t* s1, const wchar_t *, size_t);
310 long long __cdecl __MINGW_NOTHROW wcstoll(const wchar_t * __restrict__,
311 wchar_t** __restrict__, int);
312 unsigned long long __cdecl __MINGW_NOTHROW wcstoull(const wchar_t * __restrict__,
313 wchar_t ** __restrict__, int);
314 #endif /* __NO_ISOCEXT */
316 #ifndef __STRICT_ANSI__
317 /* non-ANSI wide char functions from io.h, direct.h, sys/stat.h and locale.h. */
319 #ifndef _FSIZE_T_DEFINED
320 typedef unsigned long _fsize_t;
321 #define _FSIZE_T_DEFINED
322 #endif
324 #ifndef _WFINDDATA_T_DEFINED
325 struct _wfinddata_t {
326 unsigned attrib;
327 time_t time_create; /* -1 for FAT file systems */
328 time_t time_access; /* -1 for FAT file systems */
329 time_t time_write;
330 _fsize_t size;
331 wchar_t name[260]; /* may include spaces. */
333 struct _wfinddatai64_t {
334 unsigned attrib;
335 time_t time_create;
336 time_t time_access;
337 time_t time_write;
338 __int64 size;
339 wchar_t name[260];
341 #if __MSVCRT_VERSION__ >= 0x0601
342 struct __wfinddata64_t {
343 unsigned attrib;
344 __time64_t time_create;
345 __time64_t time_access;
346 __time64_t time_write;
347 /* 8 bytes are returned so it can't be _fsize_t */
348 __int64 size;
349 wchar_t name[260];
351 #endif
352 #define _WFINDDATA_T_DEFINED
353 #endif
355 /* Wide character versions. Also defined in io.h. */
356 /* CHECK: I believe these only exist in MSVCRT, and not in CRTDLL. Also
357 applies to other wide character versions? */
358 #if !defined (_WIO_DEFINED)
359 #if defined (__MSVCRT__)
360 #include <stdint.h> /* For intptr_t. */
361 _CRTIMP int __cdecl __MINGW_NOTHROW _waccess (const wchar_t*, int);
362 _CRTIMP int __cdecl __MINGW_NOTHROW _wchmod (const wchar_t*, int);
363 _CRTIMP int __cdecl __MINGW_NOTHROW _wcreat (const wchar_t*, int);
364 _CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirst (const wchar_t*, struct _wfinddata_t *);
365 _CRTIMP int __cdecl __MINGW_NOTHROW _wfindnext (long, struct _wfinddata_t *);
366 _CRTIMP int __cdecl __MINGW_NOTHROW _wunlink (const wchar_t*);
367 _CRTIMP int __cdecl __MINGW_NOTHROW _wopen (const wchar_t*, int, ...);
368 _CRTIMP int __cdecl __MINGW_NOTHROW _wsopen (const wchar_t*, int, int, ...);
369 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wmktemp (wchar_t*);
370 _CRTIMP long __cdecl __MINGW_NOTHROW _wfindfirsti64 (const wchar_t*, struct _wfinddatai64_t*);
371 _CRTIMP int __cdecl __MINGW_NOTHROW _wfindnexti64 (long, struct _wfinddatai64_t*);
372 #if __MSVCRT_VERSION__ >= 0x0601
373 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindfirst64(const wchar_t*, struct __wfinddata64_t*);
374 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wfindnext64(intptr_t, struct __wfinddata64_t*);
375 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
376 #endif /* defined (__MSVCRT__) */
377 #define _WIO_DEFINED
378 #endif /* _WIO_DEFINED */
380 #ifndef _WDIRECT_DEFINED
381 /* Also in direct.h */
382 #ifdef __MSVCRT__
383 _CRTIMP int __cdecl __MINGW_NOTHROW _wchdir (const wchar_t*);
384 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetcwd (wchar_t*, int);
385 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wgetdcwd (int, wchar_t*, int);
386 _CRTIMP int __cdecl __MINGW_NOTHROW _wmkdir (const wchar_t*);
387 _CRTIMP int __cdecl __MINGW_NOTHROW _wrmdir (const wchar_t*);
388 #endif /* __MSVCRT__ */
389 #define _WDIRECT_DEFINED
390 #endif /* _WDIRECT_DEFINED */
392 #ifndef _STAT_DEFINED
394 * The structure manipulated and returned by stat and fstat.
396 * NOTE: If called on a directory the values in the time fields are not only
397 * invalid, they will cause localtime et. al. to return NULL. And calling
398 * asctime with a NULL pointer causes an Invalid Page Fault. So watch it!
400 struct _stat
402 _dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
403 _ino_t st_ino; /* Always zero ? */
404 _mode_t st_mode; /* See above constants */
405 short st_nlink; /* Number of links. */
406 short st_uid; /* User: Maybe significant on NT ? */
407 short st_gid; /* Group: Ditto */
408 _dev_t st_rdev; /* Seems useless (not even filled in) */
409 _off_t st_size; /* File size in bytes */
410 time_t st_atime; /* Accessed date (always 00:00 hrs local
411 * on FAT) */
412 time_t st_mtime; /* Modified time */
413 time_t st_ctime; /* Creation time */
416 #ifndef _NO_OLDNAMES
417 /* NOTE: Must be the same as _stat above. */
418 struct stat
420 dev_t st_dev; /* Equivalent to drive number 0=A 1=B ... */
421 ino_t st_ino; /* Always zero ? */
422 mode_t st_mode; /* See above constants */
423 short st_nlink; /* Number of links. */
424 short st_uid; /* User: Maybe significant on NT ? */
425 short st_gid; /* Group: Ditto */
426 dev_t st_rdev; /* Seems useless (not even filled in) */
427 off_t st_size; /* File size in bytes */
428 time_t st_atime; /* Accessed date (always 00:00 hrs local
429 * on FAT) */
430 time_t st_mtime; /* Modified time */
431 time_t st_ctime; /* Creation time */
433 #endif /* _NO_OLDNAMES */
435 #if defined (__MSVCRT__)
436 struct _stati64 {
437 _dev_t st_dev;
438 _ino_t st_ino;
439 unsigned short st_mode;
440 short st_nlink;
441 short st_uid;
442 short st_gid;
443 _dev_t st_rdev;
444 __int64 st_size;
445 time_t st_atime;
446 time_t st_mtime;
447 time_t st_ctime;
450 #if __MSVCRT_VERSION__ >= 0x0601
451 struct __stat64
453 _dev_t st_dev;
454 _ino_t st_ino;
455 _mode_t st_mode;
456 short st_nlink;
457 short st_uid;
458 short st_gid;
459 _dev_t st_rdev;
460 __int64 st_size;
461 __time64_t st_atime;
462 __time64_t st_mtime;
463 __time64_t st_ctime;
465 #endif /* __MSVCRT_VERSION__ */
466 #endif /* __MSVCRT__ */
467 #define _STAT_DEFINED
468 #endif /* _STAT_DEFINED */
470 #if !defined ( _WSTAT_DEFINED)
471 /* also declared in sys/stat.h */
472 #if defined __MSVCRT__
473 _CRTIMP int __cdecl __MINGW_NOTHROW _wstat (const wchar_t*, struct _stat*);
474 _CRTIMP int __cdecl __MINGW_NOTHROW _wstati64 (const wchar_t*, struct _stati64*);
475 #if __MSVCRT_VERSION__ >= 0x0601
476 _CRTIMP int __cdecl __MINGW_NOTHROW _wstat64 (const wchar_t*, struct __stat64*);
477 #endif /* __MSVCRT_VERSION__ >= 0x0601 */
478 #endif /* __MSVCRT__ */
479 #define _WSTAT_DEFINED
480 #endif /* ! _WSTAT_DEFIND */
482 #ifndef _WLOCALE_DEFINED /* also declared in locale.h */
483 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _wsetlocale (int, const wchar_t*);
484 #define _WLOCALE_DEFINED
485 #endif
487 #ifndef _WPROCESS_DEFINED /* also declared in process.h */
488 #include <stdint.h> /* For intptr_t. */
489 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl (const wchar_t*, const wchar_t*, ...);
490 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecle (const wchar_t*, const wchar_t*, ...);
491 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclp (const wchar_t*, const wchar_t*, ...);
492 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexeclpe (const wchar_t*, const wchar_t*, ...);
493 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecv (const wchar_t*, const wchar_t* const*);
494 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecve (const wchar_t*, const wchar_t* const*, const wchar_t* const*);
495 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvp (const wchar_t*, const wchar_t* const*);
496 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecvpe (const wchar_t*, const wchar_t* const*, const wchar_t* const*);
498 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnl (int, const wchar_t*, const wchar_t*, ...);
499 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnle (int, const wchar_t*, const wchar_t*, ...);
500 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlp (int, const wchar_t*, const wchar_t*, ...);
501 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnlpe (int, const wchar_t*, const wchar_t*, ...);
502 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnv (int, const wchar_t*, const wchar_t* const*);
503 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnve (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
504 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvp (int, const wchar_t*, const wchar_t* const*);
505 _CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wspawnvpe (int, const wchar_t*, const wchar_t* const*, const wchar_t* const*);
507 #define _WPROCESS_DEFINED
508 #endif
509 #endif /* not __STRICT_ANSI__ */
511 #ifdef __cplusplus
512 } /* end of extern "C" */
513 #endif
515 #endif /* Not RC_INVOKED */
517 #endif /* not _WCHAR_H_ */