ReactOS 0.4.15-dev-8052-gc0e3179
msvcrt.h
Go to the documentation of this file.
1/*
2 * Copyright 2001 Jon Griffiths
3 * Copyright 2004 Dimitrie O. Paun
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 *
19 * NOTES
20 * Naming conventions
21 * - Symbols are prefixed with MSVCRT_ if they conflict
22 * with libc symbols
23 * - Internal symbols are usually prefixed by msvcrt_.
24 * - Exported symbols that are not present in the public
25 * headers are usually kept the same as the original.
26 * Other conventions
27 * - To avoid conflicts with the standard C library,
28 * no msvcrt headers are included in the implementation.
29 * - Instead, symbols are duplicated here, prefixed with
30 * MSVCRT_, as explained above.
31 * - To avoid inconsistencies, a test for each symbol is
32 * added into tests/headers.c. Please always add a
33 * corresponding test when you add a new symbol!
34 */
35
36#ifndef __WINE_MSVCRT_H
37#define __WINE_MSVCRT_H
38
39#include <stdarg.h>
40
41#include "windef.h"
42#include "winbase.h"
43
44#define MSVCRT_INT_MAX 0x7fffffff
45#define MSVCRT_LONG_MAX 0x7fffffff
46#define MSVCRT_LONG_MIN (-MSVCRT_LONG_MAX-1)
47#define MSVCRT_ULONG_MAX 0xffffffff
48#define MSVCRT_I64_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
49#define MSVCRT_I64_MIN (-MSVCRT_I64_MAX-1)
50#define MSVCRT_UI64_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
51#define MSVCRT_MB_LEN_MAX 5
52#define MSVCRT_FLT_MAX_10_EXP 38
53#define MSVCRT_FLT_MIN_10_EXP (-37)
54#define MSVCRT_DBL_MAX_10_EXP 308
55#define MSVCRT_DBL_MIN_10_EXP (-307)
56#define MSVCRT_DBL_DIG 15
57#ifdef _WIN64
58#define MSVCRT_SIZE_MAX MSVCRT_UI64_MAX
59#else
60#define MSVCRT_SIZE_MAX MSVCRT_ULONG_MAX
61#endif
62
63#define MSVCRT__MAX_DRIVE 3
64#define MSVCRT__MAX_DIR 256
65#define MSVCRT__MAX_FNAME 256
66#define MSVCRT__MAX_EXT 256
67
68typedef unsigned char MSVCRT_bool;
69typedef unsigned short MSVCRT_wchar_t;
70typedef unsigned short MSVCRT_wint_t;
71typedef unsigned short MSVCRT_wctrans_t;
72typedef unsigned short MSVCRT_wctype_t;
73typedef unsigned short MSVCRT__ino_t;
74typedef unsigned int MSVCRT__fsize_t;
75typedef int MSVCRT_long;
76typedef unsigned int MSVCRT_ulong;
78#ifdef _WIN64
79typedef unsigned __int64 MSVCRT_size_t;
81typedef unsigned __int64 MSVCRT_uintptr_t;
82#else
83typedef unsigned long MSVCRT_size_t;
84typedef long MSVCRT_intptr_t;
85typedef unsigned long MSVCRT_uintptr_t;
86#endif
87#ifdef _CRTDLL
88typedef short MSVCRT__dev_t;
89#else
90typedef unsigned int MSVCRT__dev_t;
91#endif
92typedef int MSVCRT__off_t;
93typedef int MSVCRT_clock_t;
95typedef __int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t;
96typedef __int64 DECLSPEC_ALIGN(8) MSVCRT_fpos_t;
97typedef int MSVCRT_mbstate_t;
98
99typedef void (__cdecl *MSVCRT_terminate_handler)(void);
100typedef void (__cdecl *MSVCRT_terminate_function)(void);
101typedef void (__cdecl *MSVCRT_unexpected_handler)(void);
105typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
106typedef int (__cdecl *MSVCRT__onexit_t)(void);
108typedef void (__cdecl *MSVCRT_purecall_handler)(void);
109typedef void (__cdecl *MSVCRT_security_error_handler)(int, void *);
110
111typedef struct {ULONG x80[3];} MSVCRT__LDOUBLE; /* Intel 80 bit FP format has sizeof() 12 */
112
113struct MSVCRT_tm {
114 int tm_sec;
115 int tm_min;
116 int tm_hour;
117 int tm_mday;
118 int tm_mon;
119 int tm_year;
120 int tm_wday;
121 int tm_yday;
122 int tm_isdst;
123};
124
125typedef struct MSVCRT_tagLC_ID {
126 unsigned short wLanguage;
127 unsigned short wCountry;
128 unsigned short wCodePage;
130
131typedef struct {
132 union {
133 const char *str[43];
134 struct {
135 const char *short_wday[7];
136 const char *wday[7];
137 const char *short_mon[12];
138 const char *mon[12];
139 const char *am;
140 const char *pm;
141 const char *short_date;
142 const char *date;
143 const char *time;
146#if _MSVCR_VER < 110
148#endif
149 int unk[2];
150 union {
151 const MSVCRT_wchar_t *wstr[43];
152 struct {
153 const MSVCRT_wchar_t *short_wday[7];
154 const MSVCRT_wchar_t *wday[7];
155 const MSVCRT_wchar_t *short_mon[12];
156 const MSVCRT_wchar_t *mon[12];
163 } wstr;
164#if _MSVCR_VER >= 110
165 const MSVCRT_wchar_t *locname;
166#endif
167 char data[1];
169
170typedef struct MSVCRT_threadlocaleinfostruct {
171#if _MSVCR_VER >= 140
172 unsigned short *pctype;
173 int mb_cur_max;
174 unsigned int lc_codepage;
175#endif
176
177 int refcount;
178#if _MSVCR_VER < 140
179 unsigned int lc_codepage;
180#endif
181 unsigned int lc_collate_cp;
184 struct {
185 char *locale;
187 int *refcount;
188 int *wrefcount;
190 int lc_clike;
191#if _MSVCR_VER < 140
192 int mb_cur_max;
193#endif
197 struct MSVCRT_lconv *lconv;
198 int *ctype1_refcount;
199 unsigned short *ctype1;
200#if _MSVCR_VER < 140
201 unsigned short *pctype;
202#endif
203 unsigned char *pclmap;
204 unsigned char *pcumap;
206#if _MSVCR_VER >= 110
207 MSVCRT_wchar_t *lc_name[6];
208#endif
210
211typedef struct MSVCRT_threadmbcinfostruct {
212 int refcount;
213 int mbcodepage;
214 int ismbcodepage;
215 int mblcid;
216 unsigned short mbulinfo[6];
217 unsigned char mbctype[257];
218 unsigned char mbcasemap[256];
220
223
224typedef struct MSVCRT_localeinfo_struct
225{
229
231{
236
237typedef struct _frame_info
238{
239 void *object;
242
243typedef struct
244{
249
254
255/* TLS data */
257
258/* Keep in sync with msvcr90/tests/msvcr90.c */
259struct __thread_data {
260 DWORD tid;
262 int thread_errno;
264 int unk1;
265 unsigned int random_seed; /* seed for rand() */
266 char *strtok_next; /* next ptr for strtok() */
267 MSVCRT_wchar_t *wcstok_next; /* next ptr for wcstok() */
268 unsigned char *mbstok_next; /* next ptr for mbstok() */
269 char *strerror_buffer; /* buffer for strerror */
270 MSVCRT_wchar_t *wcserror_buffer; /* buffer for wcserror */
271 char *tmpnam_buffer; /* buffer for tmpname() */
272 MSVCRT_wchar_t *wtmpnam_buffer; /* buffer for wtmpname() */
273 void *unk2[2];
274 char *asctime_buffer; /* buffer for asctime */
275 MSVCRT_wchar_t *wasctime_buffer; /* buffer for wasctime */
276 struct MSVCRT_tm *time_buffer; /* buffer for localtime/gmtime */
277 char *efcvt_buffer; /* buffer for ecvt/fcvt */
278 int unk3[2];
279 void *unk4[3];
281 int fpecode;
285 int unk5[1];
289 void *unk6[3];
290 int unk7;
295 void *unk8[6];
298 int unk9[2];
300 char cached_locale[131];
301 void *unk10[100];
302#if _MSVCR_VER >= 140
304#endif
305};
306
308
310
311LCID MSVCRT_locale_to_LCID(const char*, unsigned short*, BOOL*) DECLSPEC_HIDDEN;
313extern MSVCRT___lc_time_data cloc_time_data DECLSPEC_HIDDEN;
314extern unsigned int MSVCRT___lc_codepage;
315extern int MSVCRT___lc_collate_cp;
316extern WORD MSVCRT__ctype [257];
317extern BOOL initial_locale DECLSPEC_HIDDEN;
318
320#if _MSVCR_VER >= 80
321typedef enum {
322 EXCEPTION_BAD_ALLOC,
323#if _MSVCR_VER >= 100
324 EXCEPTION_SCHEDULER_RESOURCE_ALLOCATION_ERROR,
325 EXCEPTION_IMPROPER_LOCK,
326 EXCEPTION_INVALID_SCHEDULER_POLICY_KEY,
327 EXCEPTION_INVALID_SCHEDULER_POLICY_VALUE,
328 EXCEPTION_INVALID_SCHEDULER_POLICY_THREAD_SPECIFICATION,
329 EXCEPTION_IMPROPER_SCHEDULER_ATTACH,
330 EXCEPTION_IMPROPER_SCHEDULER_DETACH,
331#endif
332} exception_type;
333void throw_exception(exception_type, HRESULT, const char*) DECLSPEC_HIDDEN;
334#endif
335
336void __cdecl _purecall(void);
337void __cdecl _amsg_exit(int errnum);
338
339extern char **MSVCRT__environ;
341
344
346
347extern unsigned int MSVCRT__commode;
348
349/* FIXME: This should be declared in new.h but it's not an extern "C" so
350 * it would not be much use anyway. Even for Winelib applications.
351 */
353
356
358typedef void (__cdecl *free_func_t)(void*);
359
360/* Setup and teardown multi threaded locks */
361extern void msvcrt_init_mt_locks(void) DECLSPEC_HIDDEN;
363
364extern void msvcrt_init_exception(void*) DECLSPEC_HIDDEN;
367extern void msvcrt_init_io(void) DECLSPEC_HIDDEN;
368extern void msvcrt_free_io(void) DECLSPEC_HIDDEN;
373extern void msvcrt_init_signals(void) DECLSPEC_HIDDEN;
374extern void msvcrt_free_signals(void) DECLSPEC_HIDDEN;
377extern void msvcrt_destroy_heap(void) DECLSPEC_HIDDEN;
379
380#if _MSVCR_VER >= 100
381extern void msvcrt_init_scheduler(void*) DECLSPEC_HIDDEN;
382extern void msvcrt_free_scheduler(void) DECLSPEC_HIDDEN;
383extern void msvcrt_free_scheduler_thread(void) DECLSPEC_HIDDEN;
384#endif
385
387
388extern unsigned int __cdecl _control87(unsigned int, unsigned int);
389
390/* run-time error codes */
391#define _RT_STACK 0
392#define _RT_NULLPTR 1
393#define _RT_FLOAT 2
394#define _RT_INTDIV 3
395#define _RT_EXECMEM 5
396#define _RT_EXECFORM 6
397#define _RT_EXECENV 7
398#define _RT_SPACEARG 8
399#define _RT_SPACEENV 9
400#define _RT_ABORT 10
401#define _RT_NPTR 12
402#define _RT_FPTR 13
403#define _RT_BREAK 14
404#define _RT_INT 15
405#define _RT_THREAD 16
406#define _RT_LOCK 17
407#define _RT_HEAP 18
408#define _RT_OPENCON 19
409#define _RT_QWIN 20
410#define _RT_NOMAIN 21
411#define _RT_NONCONT 22
412#define _RT_INVALDISP 23
413#define _RT_ONEXIT 24
414#define _RT_PUREVIRT 25
415#define _RT_STDIOINIT 26
416#define _RT_LOWIOINIT 27
417#define _RT_HEAPINIT 28
418#define _RT_DOMAIN 120
419#define _RT_SING 121
420#define _RT_TLOSS 122
421#define _RT_CRNL 252
422#define _RT_BANNER 255
423
424struct MSVCRT___timeb32 {
426 unsigned short millitm;
427 short timezone;
428 short dstflag;
429};
430
431struct MSVCRT___timeb64 {
432 MSVCRT___time64_t time;
433 unsigned short millitm;
434 short timezone;
435 short dstflag;
436};
437
438struct MSVCRT__iobuf {
439 char* _ptr;
440 int _cnt;
441 char* _base;
442 int _flag;
443 int _file;
444 int _charbuf;
445 int _bufsiz;
446 char* _tmpfname;
447};
448
450
451struct MSVCRT_lconv {
452 char* decimal_point;
453 char* thousands_sep;
454 char* grouping;
455 char* int_curr_symbol;
456 char* currency_symbol;
457 char* mon_decimal_point;
458 char* mon_thousands_sep;
459 char* mon_grouping;
460 char* positive_sign;
461 char* negative_sign;
462 char int_frac_digits;
463 char frac_digits;
464 char p_cs_precedes;
465 char p_sep_by_space;
466 char n_cs_precedes;
467 char n_sep_by_space;
468 char p_sign_posn;
469 char n_sign_posn;
470#if _MSVCR_VER >= 100
471 MSVCRT_wchar_t* _W_decimal_point;
472 MSVCRT_wchar_t* _W_thousands_sep;
473 MSVCRT_wchar_t* _W_int_curr_symbol;
474 MSVCRT_wchar_t* _W_currency_symbol;
475 MSVCRT_wchar_t* _W_mon_decimal_point;
476 MSVCRT_wchar_t* _W_mon_thousands_sep;
477 MSVCRT_wchar_t* _W_positive_sign;
478 MSVCRT_wchar_t* _W_negative_sign;
479#endif
480};
481
482struct MSVCRT__exception {
483 int type;
484 char* name;
485 double arg1;
486 double arg2;
487 double retval;
488};
489
490struct MSVCRT__complex {
491 double x; /* Real part */
492 double y; /* Imaginary part */
493};
495
496typedef struct MSVCRT__div_t {
497 int quot; /* quotient */
498 int rem; /* remainder */
500
501typedef struct MSVCRT__ldiv_t {
502 MSVCRT_long quot; /* quotient */
503 MSVCRT_long rem; /* remainder */
505
506typedef struct MSVCRT__lldiv_t {
507 MSVCRT_longlong quot; /* quotient */
508 MSVCRT_longlong rem; /* remainder */
510
511struct MSVCRT__heapinfo {
512 int* _pentry;
514 int _useflag;
515};
516
517#ifdef __i386__
518struct MSVCRT___JUMP_BUFFER {
519 unsigned long Ebp;
520 unsigned long Ebx;
521 unsigned long Edi;
522 unsigned long Esi;
523 unsigned long Esp;
524 unsigned long Eip;
525 unsigned long Registration;
526 unsigned long TryLevel;
527 /* Start of new struct members */
528 unsigned long Cookie;
529 unsigned long UnwindFunc;
530 unsigned long UnwindData[6];
531};
532#elif defined(__x86_64__)
533struct MSVCRT__SETJMP_FLOAT128
534{
535 unsigned __int64 DECLSPEC_ALIGN(16) Part[2];
536};
537struct MSVCRT___JUMP_BUFFER
538{
539 unsigned __int64 Frame;
540 unsigned __int64 Rbx;
541 unsigned __int64 Rsp;
542 unsigned __int64 Rbp;
543 unsigned __int64 Rsi;
544 unsigned __int64 Rdi;
545 unsigned __int64 R12;
546 unsigned __int64 R13;
547 unsigned __int64 R14;
548 unsigned __int64 R15;
549 unsigned __int64 Rip;
550 unsigned __int64 Spare;
551 struct MSVCRT__SETJMP_FLOAT128 Xmm6;
552 struct MSVCRT__SETJMP_FLOAT128 Xmm7;
553 struct MSVCRT__SETJMP_FLOAT128 Xmm8;
554 struct MSVCRT__SETJMP_FLOAT128 Xmm9;
555 struct MSVCRT__SETJMP_FLOAT128 Xmm10;
556 struct MSVCRT__SETJMP_FLOAT128 Xmm11;
557 struct MSVCRT__SETJMP_FLOAT128 Xmm12;
558 struct MSVCRT__SETJMP_FLOAT128 Xmm13;
559 struct MSVCRT__SETJMP_FLOAT128 Xmm14;
560 struct MSVCRT__SETJMP_FLOAT128 Xmm15;
561};
562#elif defined(__arm__)
563struct MSVCRT___JUMP_BUFFER
564{
565 unsigned long Frame;
566 unsigned long R4;
567 unsigned long R5;
568 unsigned long R6;
569 unsigned long R7;
570 unsigned long R8;
571 unsigned long R9;
572 unsigned long R10;
573 unsigned long R11;
574 unsigned long Sp;
575 unsigned long Pc;
576 unsigned long Fpscr;
577 unsigned long long D[8];
578};
579#elif defined(__aarch64__)
580struct MSVCRT___JUMP_BUFFER
581{
582 unsigned __int64 Frame;
583 unsigned __int64 Reserved;
584 unsigned __int64 X19;
585 unsigned __int64 X20;
586 unsigned __int64 X21;
587 unsigned __int64 X22;
588 unsigned __int64 X23;
589 unsigned __int64 X24;
590 unsigned __int64 X25;
591 unsigned __int64 X26;
592 unsigned __int64 X27;
593 unsigned __int64 X28;
594 unsigned __int64 Fp;
595 unsigned __int64 Lr;
596 unsigned __int64 Sp;
597 unsigned long Fpcr;
598 unsigned long Fpsr;
599 double D[8];
600};
601#endif /* __i386__ */
602
603struct MSVCRT__diskfree_t {
604 unsigned int total_clusters;
605 unsigned int avail_clusters;
606 unsigned int sectors_per_cluster;
607 unsigned int bytes_per_sector;
608};
609
611 unsigned int attrib;
612 MSVCRT___time32_t time_create;
613 MSVCRT___time32_t time_access;
614 MSVCRT___time32_t time_write;
616 char name[260];
617};
618
620 unsigned int attrib;
621 MSVCRT___time32_t time_create;
622 MSVCRT___time32_t time_access;
623 MSVCRT___time32_t time_write;
625 char name[260];
626};
627
629 unsigned int attrib;
630 MSVCRT___time64_t time_create;
631 MSVCRT___time64_t time_access;
632 MSVCRT___time64_t time_write;
634 char name[260];
635};
636
638 unsigned int attrib;
639 MSVCRT___time64_t time_create;
640 MSVCRT___time64_t time_access;
641 MSVCRT___time64_t time_write;
643 char name[260];
644};
645
647 unsigned int attrib;
648 MSVCRT___time32_t time_create;
649 MSVCRT___time32_t time_access;
650 MSVCRT___time32_t time_write;
652 MSVCRT_wchar_t name[260];
653};
654
656 unsigned int attrib;
657 MSVCRT___time32_t time_create;
658 MSVCRT___time32_t time_access;
659 MSVCRT___time32_t time_write;
661 MSVCRT_wchar_t name[260];
662};
663
665 unsigned int attrib;
666 MSVCRT___time64_t time_create;
667 MSVCRT___time64_t time_access;
668 MSVCRT___time64_t time_write;
670 MSVCRT_wchar_t name[260];
671};
672
674 unsigned int attrib;
675 MSVCRT___time64_t time_create;
676 MSVCRT___time64_t time_access;
677 MSVCRT___time64_t time_write;
679 MSVCRT_wchar_t name[260];
680};
681
683{
684 MSVCRT___time32_t actime;
686};
687
689{
690 MSVCRT___time64_t actime;
691 MSVCRT___time64_t modtime;
692};
693
694/* for FreeBSD */
695#undef st_atime
696#undef st_ctime
697#undef st_mtime
698
699struct MSVCRT__stat32 {
700 MSVCRT__dev_t st_dev;
701 MSVCRT__ino_t st_ino;
702 unsigned short st_mode;
703 short st_nlink;
704 short st_uid;
705 short st_gid;
706 MSVCRT__dev_t st_rdev;
707 MSVCRT__off_t st_size;
708 MSVCRT___time32_t st_atime;
709 MSVCRT___time32_t st_mtime;
710 MSVCRT___time32_t st_ctime;
711};
712
713struct MSVCRT__stat32i64 {
714 MSVCRT__dev_t st_dev;
715 MSVCRT__ino_t st_ino;
716 unsigned short st_mode;
717 short st_nlink;
718 short st_uid;
719 short st_gid;
720 MSVCRT__dev_t st_rdev;
722 MSVCRT___time32_t st_atime;
723 MSVCRT___time32_t st_mtime;
724 MSVCRT___time32_t st_ctime;
725};
726
728 MSVCRT__dev_t st_dev;
729 MSVCRT__ino_t st_ino;
730 unsigned short st_mode;
731 short st_nlink;
732 short st_uid;
733 short st_gid;
734 MSVCRT__dev_t st_rdev;
735 MSVCRT__off_t st_size;
736 MSVCRT___time64_t st_atime;
737 MSVCRT___time64_t st_mtime;
738 MSVCRT___time64_t st_ctime;
739};
740
741struct MSVCRT__stat64 {
742 MSVCRT__dev_t st_dev;
743 MSVCRT__ino_t st_ino;
744 unsigned short st_mode;
745 short st_nlink;
746 short st_uid;
747 short st_gid;
748 MSVCRT__dev_t st_rdev;
750 MSVCRT___time64_t st_atime;
751 MSVCRT___time64_t st_mtime;
752 MSVCRT___time64_t st_ctime;
753};
754
755#ifdef _WIN64
756#define MSVCRT__finddata_t MSVCRT__finddata64i32_t
757#define MSVCRT__finddatai64_t MSVCRT__finddata64_t
758#define MSVCRT__wfinddata_t MSVCRT__wfinddata64i32_t
759#define MSVCRT__wfinddatai64_t MSVCRT__wfinddata64_t
760#define MSVCRT__stat MSVCRT__stat64i32
761#define MSVCRT__stati64 MSVCRT__stat64
762#else
763#define MSVCRT__finddata_t MSVCRT__finddata32_t
764#define MSVCRT__finddatai64_t MSVCRT__finddata32i64_t
765#define MSVCRT__wfinddata_t MSVCRT__wfinddata32_t
766#define MSVCRT__wfinddatai64_t MSVCRT__wfinddata32i64_t
767#define MSVCRT__stat MSVCRT__stat32
768#define MSVCRT__stati64 MSVCRT__stat32i64
769#endif
770
771#define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF)
772#define MSVCRT_EOF (-1)
773#define MSVCRT_TMP_MAX 0x7fff
774#define MSVCRT_TMP_MAX_S 0x7fffffff
775#define MSVCRT_RAND_MAX 0x7fff
776#define MSVCRT_BUFSIZ 512
777
778#define MSVCRT_SEEK_SET 0
779#define MSVCRT_SEEK_CUR 1
780#define MSVCRT_SEEK_END 2
781
782#define MSVCRT_NO_CONSOLE_FD (-2)
783#define MSVCRT_NO_CONSOLE ((HANDLE)MSVCRT_NO_CONSOLE_FD)
784
785#define MSVCRT_STDIN_FILENO 0
786#define MSVCRT_STDOUT_FILENO 1
787#define MSVCRT_STDERR_FILENO 2
788
789/* more file._flag flags, but these conflict with Unix */
790#define MSVCRT__IOFBF 0x0000
791#define MSVCRT__IONBF 0x0004
792#define MSVCRT__IOLBF 0x0040
793
794#define MSVCRT_FILENAME_MAX 260
795#define MSVCRT_DRIVE_MAX 3
796#define MSVCRT_FNAME_MAX 256
797#define MSVCRT_DIR_MAX 256
798#define MSVCRT_EXT_MAX 256
799#define MSVCRT_PATH_MAX 260
800#define MSVCRT_stdin (MSVCRT__iob+MSVCRT_STDIN_FILENO)
801#define MSVCRT_stdout (MSVCRT__iob+MSVCRT_STDOUT_FILENO)
802#define MSVCRT_stderr (MSVCRT__iob+MSVCRT_STDERR_FILENO)
803
804#define MSVCRT__P_WAIT 0
805#define MSVCRT__P_NOWAIT 1
806#define MSVCRT__P_OVERLAY 2
807#define MSVCRT__P_NOWAITO 3
808#define MSVCRT__P_DETACH 4
809
810#define MSVCRT_EPERM 1
811#define MSVCRT_ENOENT 2
812#define MSVCRT_ESRCH 3
813#define MSVCRT_EINTR 4
814#define MSVCRT_EIO 5
815#define MSVCRT_ENXIO 6
816#define MSVCRT_E2BIG 7
817#define MSVCRT_ENOEXEC 8
818#define MSVCRT_EBADF 9
819#define MSVCRT_ECHILD 10
820#define MSVCRT_EAGAIN 11
821#define MSVCRT_ENOMEM 12
822#define MSVCRT_EACCES 13
823#define MSVCRT_EFAULT 14
824#define MSVCRT_EBUSY 16
825#define MSVCRT_EEXIST 17
826#define MSVCRT_EXDEV 18
827#define MSVCRT_ENODEV 19
828#define MSVCRT_ENOTDIR 20
829#define MSVCRT_EISDIR 21
830#define MSVCRT_EINVAL 22
831#define MSVCRT_ENFILE 23
832#define MSVCRT_EMFILE 24
833#define MSVCRT_ENOTTY 25
834#define MSVCRT_EFBIG 27
835#define MSVCRT_ENOSPC 28
836#define MSVCRT_ESPIPE 29
837#define MSVCRT_EROFS 30
838#define MSVCRT_EMLINK 31
839#define MSVCRT_EPIPE 32
840#define MSVCRT_EDOM 33
841#define MSVCRT_ERANGE 34
842#define MSVCRT_EDEADLK 36
843#define MSVCRT_EDEADLOCK MSVCRT_EDEADLK
844#define MSVCRT_ENAMETOOLONG 38
845#define MSVCRT_ENOLCK 39
846#define MSVCRT_ENOSYS 40
847#define MSVCRT_ENOTEMPTY 41
848#define MSVCRT_EILSEQ 42
849#define MSVCRT_STRUNCATE 80
850
851#define MSVCRT_LC_ALL 0
852#define MSVCRT_LC_COLLATE 1
853#define MSVCRT_LC_CTYPE 2
854#define MSVCRT_LC_MONETARY 3
855#define MSVCRT_LC_NUMERIC 4
856#define MSVCRT_LC_TIME 5
857#define MSVCRT_LC_MIN MSVCRT_LC_ALL
858#define MSVCRT_LC_MAX MSVCRT_LC_TIME
859
860#define MSVCRT__HEAPEMPTY -1
861#define MSVCRT__HEAPOK -2
862#define MSVCRT__HEAPBADBEGIN -3
863#define MSVCRT__HEAPBADNODE -4
864#define MSVCRT__HEAPEND -5
865#define MSVCRT__HEAPBADPTR -6
866
867#define MSVCRT__FREEENTRY 0
868#define MSVCRT__USEDENTRY 1
869
870#define MSVCRT__OUT_TO_DEFAULT 0
871#define MSVCRT__OUT_TO_STDERR 1
872#define MSVCRT__OUT_TO_MSGBOX 2
873#define MSVCRT__REPORT_ERRMODE 3
874
875/* ASCII char classification table - binary compatible */
876#define MSVCRT__UPPER 0x0001 /* C1_UPPER */
877#define MSVCRT__LOWER 0x0002 /* C1_LOWER */
878#define MSVCRT__DIGIT 0x0004 /* C1_DIGIT */
879#define MSVCRT__SPACE 0x0008 /* C1_SPACE */
880#define MSVCRT__PUNCT 0x0010 /* C1_PUNCT */
881#define MSVCRT__CONTROL 0x0020 /* C1_CNTRL */
882#define MSVCRT__BLANK 0x0040 /* C1_BLANK */
883#define MSVCRT__HEX 0x0080 /* C1_XDIGIT */
884#define MSVCRT__LEADBYTE 0x8000
885#define MSVCRT__ALPHA (0x0100|MSVCRT__UPPER|MSVCRT__LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
886
887#define MSVCRT__IOREAD 0x0001
888#define MSVCRT__IOWRT 0x0002
889#define MSVCRT__IOMYBUF 0x0008
890#define MSVCRT__IOEOF 0x0010
891#define MSVCRT__IOERR 0x0020
892#define MSVCRT__IOSTRG 0x0040
893#define MSVCRT__IORW 0x0080
894#define MSVCRT__USERBUF 0x0100
895#define MSVCRT__IOCOMMIT 0x4000
896
897#define MSVCRT__S_IEXEC 0x0040
898#define MSVCRT__S_IWRITE 0x0080
899#define MSVCRT__S_IREAD 0x0100
900#define MSVCRT__S_IFIFO 0x1000
901#define MSVCRT__S_IFCHR 0x2000
902#define MSVCRT__S_IFDIR 0x4000
903#define MSVCRT__S_IFREG 0x8000
904#define MSVCRT__S_IFMT 0xF000
905
906#define MSVCRT__LK_UNLCK 0
907#define MSVCRT__LK_LOCK 1
908#define MSVCRT__LK_NBLCK 2
909#define MSVCRT__LK_RLCK 3
910#define MSVCRT__LK_NBRLCK 4
911
912#define MSVCRT__SH_COMPAT 0x00 /* Compatibility */
913#define MSVCRT__SH_DENYRW 0x10 /* Deny read/write */
914#define MSVCRT__SH_DENYWR 0x20 /* Deny write */
915#define MSVCRT__SH_DENYRD 0x30 /* Deny read */
916#define MSVCRT__SH_DENYNO 0x40 /* Deny nothing */
917
918#define MSVCRT__O_RDONLY 0
919#define MSVCRT__O_WRONLY 1
920#define MSVCRT__O_RDWR 2
921#define MSVCRT__O_ACCMODE (MSVCRT__O_RDONLY|MSVCRT__O_WRONLY|MSVCRT__O_RDWR)
922#define MSVCRT__O_APPEND 0x0008
923#define MSVCRT__O_RANDOM 0x0010
924#define MSVCRT__O_SEQUENTIAL 0x0020
925#define MSVCRT__O_TEMPORARY 0x0040
926#define MSVCRT__O_NOINHERIT 0x0080
927#define MSVCRT__O_CREAT 0x0100
928#define MSVCRT__O_TRUNC 0x0200
929#define MSVCRT__O_EXCL 0x0400
930#define MSVCRT__O_SHORT_LIVED 0x1000
931#define MSVCRT__O_TEXT 0x4000
932#define MSVCRT__O_BINARY 0x8000
933#define MSVCRT__O_RAW MSVCRT__O_BINARY
934#define MSVCRT__O_WTEXT 0x10000
935#define MSVCRT__O_U16TEXT 0x20000
936#define MSVCRT__O_U8TEXT 0x40000
937
938/* _statusfp bit flags */
939#define MSVCRT__SW_INEXACT 0x00000001 /* inexact (precision) */
940#define MSVCRT__SW_UNDERFLOW 0x00000002 /* underflow */
941#define MSVCRT__SW_OVERFLOW 0x00000004 /* overflow */
942#define MSVCRT__SW_ZERODIVIDE 0x00000008 /* zero divide */
943#define MSVCRT__SW_INVALID 0x00000010 /* invalid */
944
945#define MSVCRT__SW_UNEMULATED 0x00000040 /* unemulated instruction */
946#define MSVCRT__SW_SQRTNEG 0x00000080 /* square root of a neg number */
947#define MSVCRT__SW_STACKOVERFLOW 0x00000200 /* FP stack overflow */
948#define MSVCRT__SW_STACKUNDERFLOW 0x00000400 /* FP stack underflow */
949
950#define MSVCRT__SW_DENORMAL 0x00080000 /* denormal status bit */
951
952/* fpclass constants */
953#define MSVCRT__FPCLASS_SNAN 0x0001 /* Signaling "Not a Number" */
954#define MSVCRT__FPCLASS_QNAN 0x0002 /* Quiet "Not a Number" */
955#define MSVCRT__FPCLASS_NINF 0x0004 /* Negative Infinity */
956#define MSVCRT__FPCLASS_NN 0x0008 /* Negative Normal */
957#define MSVCRT__FPCLASS_ND 0x0010 /* Negative Denormal */
958#define MSVCRT__FPCLASS_NZ 0x0020 /* Negative Zero */
959#define MSVCRT__FPCLASS_PZ 0x0040 /* Positive Zero */
960#define MSVCRT__FPCLASS_PD 0x0080 /* Positive Denormal */
961#define MSVCRT__FPCLASS_PN 0x0100 /* Positive Normal */
962#define MSVCRT__FPCLASS_PINF 0x0200 /* Positive Infinity */
963
964/* fpclassify constants */
965#define MSVCRT_FP_INFINITE 1
966#define MSVCRT_FP_NAN 2
967#define MSVCRT_FP_NORMAL -1
968#define MSVCRT_FP_SUBNORMAL -2
969#define MSVCRT_FP_ZERO 0
970
971#define MSVCRT__MCW_EM 0x0008001f
972#define MSVCRT__MCW_IC 0x00040000
973#define MSVCRT__MCW_RC 0x00000300
974#define MSVCRT__MCW_PC 0x00030000
975#define MSVCRT__MCW_DN 0x03000000
976
977#define MSVCRT__EM_INVALID 0x00000010
978#define MSVCRT__EM_DENORMAL 0x00080000
979#define MSVCRT__EM_ZERODIVIDE 0x00000008
980#define MSVCRT__EM_OVERFLOW 0x00000004
981#define MSVCRT__EM_UNDERFLOW 0x00000002
982#define MSVCRT__EM_INEXACT 0x00000001
983#define MSVCRT__IC_AFFINE 0x00040000
984#define MSVCRT__IC_PROJECTIVE 0x00000000
985#define MSVCRT__RC_CHOP 0x00000300
986#define MSVCRT__RC_UP 0x00000200
987#define MSVCRT__RC_DOWN 0x00000100
988#define MSVCRT__RC_NEAR 0x00000000
989#define MSVCRT__PC_24 0x00020000
990#define MSVCRT__PC_53 0x00010000
991#define MSVCRT__PC_64 0x00000000
992#define MSVCRT__DN_SAVE 0x00000000
993#define MSVCRT__DN_FLUSH 0x01000000
994#define MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000
995#define MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000
996#define MSVCRT__EM_AMBIGUOUS 0x80000000
997
998typedef struct
999{
1000 unsigned int control;
1001 unsigned int status;
1003
1004#define MSVCRT_CLOCKS_PER_SEC 1000
1005
1006/* signals */
1007#define MSVCRT_SIGINT 2
1008#define MSVCRT_SIGILL 4
1009#define MSVCRT_SIGFPE 8
1010#define MSVCRT_SIGSEGV 11
1011#define MSVCRT_SIGTERM 15
1012#define MSVCRT_SIGBREAK 21
1013#define MSVCRT_SIGABRT 22
1014#define MSVCRT_NSIG (MSVCRT_SIGABRT + 1)
1015
1017
1018#define MSVCRT_SIG_DFL ((MSVCRT___sighandler_t)0)
1019#define MSVCRT_SIG_IGN ((MSVCRT___sighandler_t)1)
1020#define MSVCRT_SIG_ERR ((MSVCRT___sighandler_t)-1)
1021
1022#define MSVCRT__FPE_INVALID 0x81
1023#define MSVCRT__FPE_DENORMAL 0x82
1024#define MSVCRT__FPE_ZERODIVIDE 0x83
1025#define MSVCRT__FPE_OVERFLOW 0x84
1026#define MSVCRT__FPE_UNDERFLOW 0x85
1027#define MSVCRT__FPE_INEXACT 0x86
1028#define MSVCRT__FPE_UNEMULATED 0x87
1029#define MSVCRT__FPE_SQRTNEG 0x88
1030#define MSVCRT__FPE_STACKOVERFLOW 0x8a
1031#define MSVCRT__FPE_STACKUNDERFLOW 0x8b
1032#define MSVCRT__FPE_EXPLICITGEN 0x8c
1033
1034#define _MS 0x01
1035#define _MP 0x02
1036#define _M1 0x04
1037#define _M2 0x08
1038
1039#define _SBUP 0x10
1040#define _SBLOW 0x20
1041
1042#define _MBC_SINGLE 0
1043#define _MBC_LEAD 1
1044#define _MBC_TRAIL 2
1045#define _MBC_ILLEGAL -1
1046
1047#define _MB_CP_SBCS 0
1048#define _MB_CP_OEM -2
1049#define _MB_CP_ANSI -3
1050#define _MB_CP_LOCALE -4
1051
1052#define MSVCRT__TRUNCATE ((MSVCRT_size_t)-1)
1053
1054#define _MAX__TIME64_T (((MSVCRT___time64_t)0x00000007 << 32) | 0x93406FFF)
1055
1056/* _set_abort_behavior codes */
1057#define MSVCRT__WRITE_ABORT_MSG 1
1058#define MSVCRT__CALL_REPORTFAULT 2
1059
1060/* _get_output_format return code */
1061#define MSVCRT__TWO_DIGIT_EXPONENT 0x1
1062
1063#define MSVCRT__NLSCMPERROR ((unsigned int)0x7fffffff)
1064
1065void __cdecl MSVCRT_free(void*);
1069
1077
1097char* __cdecl MSVCRT_getenv(const char*);
1104void __cdecl MSVCRT_terminate(void);
1108MSVCRT___time64_t __cdecl MSVCRT__time64(MSVCRT___time64_t*);
1115int WINAPIV MSVCRT_sprintf(char*,const char*,...);
1116int WINAPIV MSVCRT__snprintf(char*,unsigned int,const char*,...);
1117int WINAPIV MSVCRT__scprintf(const char*,...);
1118int __cdecl MSVCRT_raise(int sig);
1120
1121#define MSVCRT__ENABLE_PER_THREAD_LOCALE 1
1122#define MSVCRT__DISABLE_PER_THREAD_LOCALE 2
1123
1131
1132#ifndef __WINE_MSVCRT_TEST
1133int __cdecl MSVCRT__write(int,const void*,unsigned int);
1134int __cdecl _getch(void);
1135int __cdecl _ismbblead(unsigned int);
1137int __cdecl _ismbclegal(unsigned int c);
1138int __cdecl _ismbstrail(const unsigned char* start, const unsigned char* str);
1147MSVCRT_intptr_t __cdecl MSVCRT__spawnve(int,const char*,const char* const *,const char* const *);
1148MSVCRT_intptr_t __cdecl MSVRT__spawnvpe(int,const char*,const char* const *,const char* const *);
1151void __cdecl MSVCRT__searchenv(const char*,const char*,char*);
1153char* __cdecl MSVCRT__strdup(const char*);
1155char* __cdecl _strset(char*,int);
1156int __cdecl _ungetch(int);
1157int __cdecl _cputs(const char*);
1158int WINAPIV _cprintf(const char*,...);
1159int WINAPIV _cwprintf(const MSVCRT_wchar_t*,...);
1161int* __cdecl __p___mb_cur_max(void);
1171int __cdecl _setmbcp(int);
1174int __cdecl MSVCRT__dup2(int, int);
1175int __cdecl MSVCRT__pipe(int *, unsigned int, int);
1178MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe(int, const char*, const char* const*, const char* const*);
1180 const MSVCRT_wchar_t *file, unsigned int line, MSVCRT_uintptr_t arg);
1185int __cdecl MSVCRT__toupper(int); /* only use on lower-case ASCII characters */
1186int __cdecl MSVCRT__stricmp(const char*, const char*);
1187int __cdecl MSVCRT__strnicmp(const char*, const char*, MSVCRT_size_t);
1190int __cdecl MSVCRT_strncmp(const char*, const char*, MSVCRT_size_t);
1191int __cdecl MSVCRT_strcmp(const char*, const char*);
1192char* __cdecl MSVCRT_strstr(const char*, const char*);
1194char* __cdecl MSVCRT_strtok_s(char*, const char*, char**);
1195double parse_double(MSVCRT_wchar_t (*)(void*), void (*)(void*), void*, MSVCRT_pthreadlocinfo, int*);
1196
1197/* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
1198 * #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
1199 * #define MSVCRT_CHECK_PMT(x) ((x) ? TRUE : MSVCRT_INVALID_PMT(#x),FALSE)
1200 * Until this is done, just keep the same semantics for CHECK_PMT(), but without generating / sending
1201 * any information
1202 * NB : MSVCRT_call_invalid_parameter_handler is a wrapper around MSVCRT__invalid_parameter in order
1203 * to do the Ansi to Unicode transformation
1204 */
1205#define MSVCRT_INVALID_PMT(x,err) (*MSVCRT__errno() = (err), MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0))
1206#define MSVCRT_CHECK_PMT_ERR(x,err) ((x) || (MSVCRT_INVALID_PMT( 0, (err) ), FALSE))
1207#define MSVCRT_CHECK_PMT(x) MSVCRT_CHECK_PMT_ERR((x), MSVCRT_EINVAL)
1208#endif
1209
1210#define MSVCRT__ARGMAX 100
1211typedef int (*puts_clbk_a)(void*, int, const char*);
1212typedef int (*puts_clbk_w)(void*, int, const MSVCRT_wchar_t*);
1213typedef union _printf_arg
1214{
1215 void *get_ptr;
1216 int get_int;
1217 LONGLONG get_longlong;
1218 double get_double;
1229
1230#define MSVCRT_FLT_MIN 1.175494351e-38F
1231#define MSVCRT_DBL_MIN 2.2250738585072014e-308
1232#define MSVCRT__OVERFLOW 3
1233#define MSVCRT__UNDERFLOW 4
1234
1235#define MSVCRT_FP_ILOGB0 (-MSVCRT_INT_MAX - 1)
1236#define MSVCRT_FP_ILOGBNAN MSVCRT_INT_MAX
1237
1238typedef struct
1239{
1240 float f;
1242
1243typedef struct
1244{
1245 double x;
1247
1248extern char* __cdecl __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int);
1249
1250/* __unDName/__unDNameEx flags */
1251#define UNDNAME_COMPLETE (0x0000)
1252#define UNDNAME_NO_LEADING_UNDERSCORES (0x0001) /* Don't show __ in calling convention */
1253#define UNDNAME_NO_MS_KEYWORDS (0x0002) /* Don't show calling convention at all */
1254#define UNDNAME_NO_FUNCTION_RETURNS (0x0004) /* Don't show function/method return value */
1255#define UNDNAME_NO_ALLOCATION_MODEL (0x0008)
1256#define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010)
1257#define UNDNAME_NO_MS_THISTYPE (0x0020)
1258#define UNDNAME_NO_CV_THISTYPE (0x0040)
1259#define UNDNAME_NO_THISTYPE (0x0060)
1260#define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080) /* Don't show access specifier (public/protected/private) */
1261#define UNDNAME_NO_THROW_SIGNATURES (0x0100)
1262#define UNDNAME_NO_MEMBER_TYPE (0x0200) /* Don't show static/virtual specifier */
1263#define UNDNAME_NO_RETURN_UDT_MODEL (0x0400)
1264#define UNDNAME_32_BIT_DECODE (0x0800)
1265#define UNDNAME_NAME_ONLY (0x1000) /* Only report the variable/method name */
1266#define UNDNAME_NO_ARGUMENTS (0x2000) /* Don't show method arguments */
1267#define UNDNAME_NO_SPECIAL_SYMS (0x4000)
1268#define UNDNAME_NO_COMPLEX_TYPE (0x8000)
1269
1270#define UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION (0x0001)
1271#define UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR (0x0002)
1272#define UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS (0x0004)
1273#define UCRTBASE_PRINTF_LEGACY_MSVCRT_COMPATIBILITY (0x0008)
1274#define UCRTBASE_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS (0x0010)
1275
1276#define UCRTBASE_PRINTF_MASK (0x001F)
1277
1278#define MSVCRT_PRINTF_POSITIONAL_PARAMS (0x0100)
1279#define MSVCRT_PRINTF_INVOKE_INVALID_PARAM_HANDLER (0x0200)
1280
1281#define UCRTBASE_SCANF_SECURECRT (0x0001)
1282#define UCRTBASE_SCANF_LEGACY_WIDE_SPECIFIERS (0x0002)
1283#define UCRTBASE_SCANF_LEGACY_MSVCRT_COMPATIBILITY (0x0004)
1284
1285#define UCRTBASE_SCANF_MASK (0x0007)
1286
1287#define COOPERATIVE_TIMEOUT_INFINITE ((unsigned int)-1)
1288#define COOPERATIVE_WAIT_TIMEOUT ~0
1289
1290typedef enum {
1396
1397typedef enum {
1412
1413typedef float _FP32;
1414typedef double _FP64;
1415typedef short _I16;
1416typedef int _I32;
1417typedef unsigned short _U16;
1418typedef unsigned int _U32;
1420
1421typedef struct {
1422 unsigned short W[5];
1423} _FP80;
1424
1425typedef struct DECLSPEC_ALIGN(16) {
1426 MSVCRT_ulong W[4];
1428
1429typedef struct DECLSPEC_ALIGN(8) {
1430 MSVCRT_ulong W[2];
1432
1433typedef struct DECLSPEC_ALIGN(8) {
1434 MSVCRT_ulong W[2];
1436
1437typedef struct {
1438 unsigned short W[5];
1439} _BCD80;
1440
1441typedef struct DECLSPEC_ALIGN(16) {
1442 _Q64 W[2];
1444
1445typedef struct {
1446 union {
1447 _FP32 Fp32Value;
1448 _FP64 Fp64Value;
1449 _FP80 Fp80Value;
1450 _FP128 Fp128Value;
1451 _I16 I16Value;
1452 _I32 I32Value;
1453 _I64 I64Value;
1454 _U16 U16Value;
1455 _U32 U32Value;
1456 _U64 U64Value;
1457 _BCD80 Bcd80Value;
1458 char *StringValue;
1459 int CompareValue;
1460 _Q64 Q64Value;
1461 _FPQ64 Fpq64Value;
1463 unsigned int OperandValid : 1;
1464 unsigned int Format : 4;
1466
1467typedef struct {
1468 unsigned int Inexact : 1;
1469 unsigned int Underflow : 1;
1470 unsigned int Overflow : 1;
1471 unsigned int ZeroDivide : 1;
1472 unsigned int InvalidOperation : 1;
1474
1475typedef struct {
1476 unsigned int RoundingMode : 2;
1477 unsigned int Precision : 3;
1478 unsigned int Operation :12;
1482 _FPIEEE_VALUE Operand1;
1483 _FPIEEE_VALUE Operand2;
1486
1487#define INHERIT_THREAD_PRIORITY 0xF000
1488
1489#ifdef __REACTOS__
1490#define __wine_longjmp longjmp
1491#define __wine_jmp_buf _JBTYPE
1492
1493#ifdef _M_IX86
1494// ASM wrapper for Wine code. See rosglue_i386.s for implementation.
1495void
1496WINAPI
1497__wine__RtlUnwind(
1498 struct _EXCEPTION_REGISTRATION_RECORD* pEndFrame,
1499 PVOID targetIp,
1500 struct _EXCEPTION_RECORD* pRecord,
1501 PVOID retval);
1502#define RtlUnwind __wine__RtlUnwind
1503#endif /* _M_IX86 */
1504
1505#endif
1506
1507#endif /* __WINE_MSVCRT_H */
static _invalid_parameter_handler invalid_parameter_handler
#define __cdecl
Definition: accygwin.h:79
@ R15
Definition: amd64_sup.c:13
@ R13
Definition: amd64_sup.c:13
@ R12
Definition: amd64_sup.c:13
@ R9
Definition: amd64_sup.c:13
@ R14
Definition: amd64_sup.c:13
@ R8
Definition: amd64_sup.c:13
@ R11
Definition: amd64_sup.c:13
@ R10
Definition: amd64_sup.c:13
void modtime(int argc, const char *argv[])
Definition: cmds.c:2232
#define __int64
Definition: basetyps.h:16
#define D(d)
Definition: builtin.c:4557
st_mode
Definition: cpu_i386.c:139
static int get_int(D3DXPARAMETER_TYPE type, const void *data)
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
#define CDECL
Definition: compat.h:29
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
_Must_inspect_result_ _In_ CONST FLT_REGISTRATION * Registration
Definition: fltkernel.h:991
FP_OP Operation
Definition: fpcontrol.c:150
unsigned short _U16
Definition: fpieee.h:263
_FPQ64
Definition: fpieee.h:297
_FP128
Definition: fpieee.h:277
float _FP32
Definition: fpieee.h:259
short _I16
Definition: fpieee.h:261
_FP_OPERATION_CODE
Definition: fpieee.h:28
@ _XMMISubss
Definition: fpieee.h:75
@ _FpCodeUnspecified
Definition: fpieee.h:29
@ _XMMI2Addpd
Definition: fpieee.h:99
@ _FpCodeLogb
Definition: fpieee.h:66
@ _XMMI2Cvtpd2dq
Definition: fpieee.h:129
@ _XMMI2Cvtsd2si
Definition: fpieee.h:118
@ _XMMIComiss
Definition: fpieee.h:88
@ _FpCodeTanh
Definition: fpieee.h:62
@ _FpCodeAtan2
Definition: fpieee.h:45
@ _XMMI2Cmppd
Definition: fpieee.h:113
@ _FpCodeFabs
Definition: fpieee.h:50
@ _FpCodeFmin
Definition: fpieee.h:69
@ _FpCodeAtan
Definition: fpieee.h:44
@ _XMMISqrtss
Definition: fpieee.h:81
@ _FpCodeSquareRoot
Definition: fpieee.h:34
@ _XMMI2Cvttsd2si
Definition: fpieee.h:120
@ _XMMI2Maxsd
Definition: fpieee.h:110
@ _FpCodeTruncate
Definition: fpieee.h:39
@ _FpCodeFmod
Definition: fpieee.h:51
@ _XMMI2Cvtdq2ps
Definition: fpieee.h:125
@ _FpCodeLdexp
Definition: fpieee.h:54
@ _FpCodeSin
Definition: fpieee.h:59
@ _XMMI2Cvtps2pd
Definition: fpieee.h:121
@ _XMMISubps
Definition: fpieee.h:74
@ _XMMI2Subsd
Definition: fpieee.h:102
@ _XMMI2Cvttpd2dq
Definition: fpieee.h:128
@ _XMMIAddsubps
Definition: fpieee.h:96
@ _XMMIMulss
Definition: fpieee.h:77
@ _FpCodeHypot
Definition: fpieee.h:53
@ _FpCodeFrexp
Definition: fpieee.h:52
@ _FpCodeModf
Definition: fpieee.h:57
@ _FpCodeAsin
Definition: fpieee.h:43
@ _FpCodeY0
Definition: fpieee.h:63
@ _XMMIAddps
Definition: fpieee.h:72
@ _XMMI2Cvttpd2pi
Definition: fpieee.h:119
@ _FpCodeDivide
Definition: fpieee.h:33
@ _FpCodeLog10
Definition: fpieee.h:56
@ _FpCodeCos
Definition: fpieee.h:47
@ _FpCodeAcos
Definition: fpieee.h:42
@ _XMMIUComiss
Definition: fpieee.h:89
@ _XMMI2Minpd
Definition: fpieee.h:111
@ _XMMI2Divsd
Definition: fpieee.h:106
@ _XMMICvtpi2ps
Definition: fpieee.h:90
@ _XMMIMinss
Definition: fpieee.h:85
@ _XMMI2Subpd
Definition: fpieee.h:101
@ _XMMICmpss
Definition: fpieee.h:87
@ _XMMI2Cvtss2sd
Definition: fpieee.h:122
@ _XMMICmpps
Definition: fpieee.h:86
@ _XMMI2Mulsd
Definition: fpieee.h:104
@ _XMMI2Cvtsd2ss
Definition: fpieee.h:124
@ _XMMI2Addsd
Definition: fpieee.h:100
@ _FpCodeConvert
Definition: fpieee.h:37
@ _XMMI2Divpd
Definition: fpieee.h:105
@ _XMMISqrtps
Definition: fpieee.h:80
@ _FpCodePow
Definition: fpieee.h:58
@ _FpCodeLog
Definition: fpieee.h:55
@ _FpCodeCompare
Definition: fpieee.h:36
@ _XMMI2Sqrtsd
Definition: fpieee.h:108
@ _XMMI2Mulpd
Definition: fpieee.h:103
@ _FpCodeAdd
Definition: fpieee.h:30
@ _XMMICvtss2si
Definition: fpieee.h:93
@ _XMMI2Hsubpd
Definition: fpieee.h:132
@ _XMMI2Addsubpd
Definition: fpieee.h:130
@ _FpCodeMultiply
Definition: fpieee.h:32
@ _XMMIMinps
Definition: fpieee.h:84
@ _XMMICvttps2pi
Definition: fpieee.h:94
@ _FpCodeNextafter
Definition: fpieee.h:67
@ _XMMI2Minsd
Definition: fpieee.h:112
@ _FpCodeCeil
Definition: fpieee.h:41
@ _FpCodeRemainder
Definition: fpieee.h:35
@ _XMMI2UComisd
Definition: fpieee.h:116
@ _XMMICvtsi2ss
Definition: fpieee.h:91
@ _XMMI2Sqrtpd
Definition: fpieee.h:107
@ _XMMIHaddps
Definition: fpieee.h:97
@ _XMMIDivss
Definition: fpieee.h:79
@ _XMMI2Comisd
Definition: fpieee.h:115
@ _XMMI2Cvttps2dq
Definition: fpieee.h:126
@ _XMMI2Cvtps2dq
Definition: fpieee.h:127
@ _XMMI2Cmpsd
Definition: fpieee.h:114
@ _XMMI2Cvtpd2pi
Definition: fpieee.h:117
@ _XMMIDivps
Definition: fpieee.h:78
@ _XMMICvtps2pi
Definition: fpieee.h:92
@ _FpCodeSubtract
Definition: fpieee.h:31
@ _XMMI2Cvtpd2ps
Definition: fpieee.h:123
@ _FpCodeTan
Definition: fpieee.h:61
@ _XMMIMaxps
Definition: fpieee.h:82
@ _XMMICvttss2si
Definition: fpieee.h:95
@ _XMMIMaxss
Definition: fpieee.h:83
@ _FpCodeRound
Definition: fpieee.h:38
@ _FpCodeExp
Definition: fpieee.h:49
@ _XMMI2Haddpd
Definition: fpieee.h:131
@ _FpCodeConvertTrunc
Definition: fpieee.h:71
@ _FpCodeYn
Definition: fpieee.h:65
@ _FpCodeCosh
Definition: fpieee.h:48
@ _FpCodeCabs
Definition: fpieee.h:46
@ _FpCodeSinh
Definition: fpieee.h:60
@ _FpCodeFmax
Definition: fpieee.h:70
@ _XMMI2Maxpd
Definition: fpieee.h:109
@ _FpCodeNegate
Definition: fpieee.h:68
@ _XMMIHsubps
Definition: fpieee.h:98
@ _FpCodeY1
Definition: fpieee.h:64
@ _XMMIAddss
Definition: fpieee.h:73
@ _FpCodeFloor
Definition: fpieee.h:40
@ _XMMIMulps
Definition: fpieee.h:76
unsigned int _U32
Definition: fpieee.h:264
_FPIEEE_FORMAT
Definition: fpieee.h:21
@ _FpFormatU16
Definition: fpieee.h:22
@ _FpFormatFp64
Definition: fpieee.h:22
@ _FpFormatFp32
Definition: fpieee.h:22
@ _FpFormatBcd80
Definition: fpieee.h:22
@ _FpFormatU32
Definition: fpieee.h:22
@ _FpFormatCompare
Definition: fpieee.h:22
@ _FpFormatString
Definition: fpieee.h:22
@ _FpFormatU64
Definition: fpieee.h:22
@ _FpFormatI16
Definition: fpieee.h:22
@ _FpFormatI32
Definition: fpieee.h:22
@ _FpFormatI64
Definition: fpieee.h:22
@ _FpFormatFp128
Definition: fpieee.h:22
@ _FpFormatFp80
Definition: fpieee.h:22
_I64
Definition: fpieee.h:281
_U64
Definition: fpieee.h:285
double _FP64
Definition: fpieee.h:260
int _I32
Definition: fpieee.h:262
struct _FPIEEE_RECORD * _PFPIEEE_RECORD
__MINGW_EXTENSION typedef __int64 _Q64
Definition: fpieee.h:265
Status
Definition: gdiplustypes.h:25
GLuint start
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
GLsizeiptr size
Definition: glext.h:5919
GLenum func
Definition: glext.h:6028
GLuint GLuint * names
Definition: glext.h:11545
const GLubyte * c
Definition: glext.h:8905
GLenum mode
Definition: glext.h:6217
GLenum GLsizei len
Definition: glext.h:6722
_Check_return_ _CRTIMP int __cdecl _ismbclegal(_In_ unsigned int _Ch)
ULONG Sp
Definition: kdb_expr.c:99
#define f
Definition: ke_i.h:83
#define MSVCRT_locale
Definition: locale.h:78
#define MSVCRT_abort
Definition: winternl.h:311
#define MSVCRT__exit
Definition: winternl.h:310
_Check_return_ _CRTIMP int __cdecl _ismbblead_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
static int sectors_per_cluster
Definition: mkdosfs.c:546
__u16 date
Definition: mkdosfs.c:8
void __cdecl _purecall(void)
Definition: adapter.cpp:429
void __cdecl MSVCRT__unlock_file(MSVCRT_FILE *)
int __cdecl MSVCRT__toupper_l(int, MSVCRT__locale_t)
int MSVCRT_long
Definition: msvcrt.h:60
int __cdecl MSVCRT_fclose(MSVCRT_FILE *)
int __cdecl _setmbcp(int)
Definition: _setmbcp.c:218
__int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t
Definition: msvcrt.h:75
union _printf_arg printf_arg
LCID MSVCRT_locale_to_LCID(const char *)
struct MSVCRT_tagLC_ID * MSVCRT_LPLC_ID
int pf_printf_w(puts_clbk_w, void *, const MSVCRT_wchar_t *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
MSVCRT_FILE *__cdecl MSVCRT__iob_func(void)
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition: locale.c:364
int __cdecl MSVCRT__pipe(int *, unsigned int, int)
MSVCRT_intptr_t __cdecl MSVRT__spawnvpe(int, const char *, const char *const *, const char *const *)
int MSVCRT___lc_collate_cp
Definition: locale.c:35
void(__cdecl * MSVCRT_security_error_handler)(int, void *)
Definition: msvcrt.h:89
int __cdecl MSVCRT__tolower_l(int, MSVCRT__locale_t)
char *__cdecl MSVCRT__strtime(char *date)
MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW(MSVCRT_wchar_t **)
struct MSVCRT_tagLC_ID MSVCRT_LC_ID
MSVCRT__locale_t MSVCRT_locale
Definition: msvcrt.h:885
int __cdecl MSVCRT__set_new_mode(int mode)
Definition: heap.c:246
void msvcrt_init_io(void)
Definition: file.c:456
void msvcrt_init_mt_locks(void)
Definition: lock.c:54
unsigned long MSVCRT_size_t
Definition: msvcrt.h:67
char *__cdecl MSVCRT__strdup(const char *)
char *__cdecl _strset(char *, int)
Definition: strset.c:44
void msvcrt_init_math(void)
MSVCRT_wchar_t ***__cdecl MSVCRT___p__wenviron(void)
void(__cdecl * MSVCRT_terminate_handler)(void)
Definition: msvcrt.h:79
int __cdecl MSVCRT__close(int)
void(__cdecl * MSVCRT__se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info)
Definition: msvcrt.h:83
printf_arg arg_clbk_valist(void *, int, int, __ms_va_list *)
char *__cdecl MSVCRT_getenv(const char *)
int __cdecl MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format, __ms_va_list valist)
MSVCRT_intptr_t __cdecl MSVCRT__spawnve(int, const char *, const char *const *, const char *const *)
int pf_printf_a(puts_clbk_a, void *, const char *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
unsigned msvcrt_create_io_inherit_block(WORD *, BYTE **)
int MSVCRT__off_t
Definition: msvcrt.h:72
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
Definition: locale.c:711
void msvcrt_free_args(void)
void __cdecl MSVCRT_operator_delete(void *)
Definition: heap.c:196
int __cdecl MSVCRT__snwprintf(MSVCRT_wchar_t *, unsigned int, const MSVCRT_wchar_t *,...)
unsigned short MSVCRT__ino_t
Definition: msvcrt.h:58
int __cdecl MSVCRT__getdrive(void)
MSVCRT_FILE *__cdecl MSVCRT__fdopen(int, const char *)
void(__cdecl * MSVCRT_unexpected_function)(void)
Definition: msvcrt.h:82
struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
int MSVCRT___lc_codepage
void(__cdecl * MSVCRT_terminate_function)(void)
Definition: msvcrt.h:80
int __cdecl MSVCRT__scprintf(const char *,...)
int __cdecl MSVCRT__dup(int)
unsigned int(__stdcall * MSVCRT__beginthreadex_start_routine_t)(void *)
Definition: msvcrt.h:85
int __cdecl MSVCRT_raise(int sig)
Definition: except.c:225
int MSVCRT_mbstate_t
Definition: msvcrt.h:77
WORD MSVCRT__ctype[257]
MSVCRT_FILE *__cdecl MSVCRT__wfdopen(int, const MSVCRT_wchar_t *)
MSVCRT_intptr_t __cdecl MSVCRT__wspawnve(int, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *const *, const MSVCRT_wchar_t *const *)
void *(__cdecl * malloc_func_t)(MSVCRT_size_t)
Definition: msvcrt.h:227
int __cdecl MSVCRT_vsnprintf(char *str, MSVCRT_size_t len, const char *format, __ms_va_list valist)
int MSVCRT_clock_t
Definition: msvcrt.h:73
unsigned short MSVCRT_wint_t
Definition: msvcrt.h:56
unsigned int MSVCRT__fsize_t
Definition: msvcrt.h:59
int __cdecl MSVCRT_iswalpha(MSVCRT_wint_t)
DWORD msvcrt_tls_index
int(* puts_clbk_w)(void *, int, const MSVCRT_wchar_t *)
Definition: msvcrt.h:946
int __cdecl _cprintf(const char *,...)
Definition: _cprintf.c:14
int __cdecl MSVCRT__write(int, const void *, unsigned int)
void msvcrt_free_io(void)
Definition: file.c:1100
unsigned short MSVCRT_wchar_t
Definition: msvcrt.h:55
void(__cdecl * MSVCRT___sighandler_t)(int)
Definition: msvcrt.h:797
void msvcrt_free_signals(void)
Definition: except.c:183
int __cdecl MSVCRT_isleadbyte(int)
struct MSVCRT__ldiv_t MSVCRT_ldiv_t
int(__cdecl * MSVCRT__onexit_t)(void)
Definition: msvcrt.h:86
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe(int, const char *, const char *const *, const char *const *)
MSVCRT_wint_t __cdecl MSVCRT_ungetwc(MSVCRT_wint_t, MSVCRT_FILE *)
int __cdecl MSVCRT_sprintf(char *, const char *,...)
int __cdecl MSVCRT_iswdigit(MSVCRT_wint_t)
int __cdecl _ungetch(int)
Definition: ungetch.c:22
BOOL msvcrt_init_locale(void)
void __cdecl _amsg_exit(int errnum)
Definition: amsg.c:44
struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
void __cdecl MSVCRT__searchenv(const char *, const char *, char *)
unsigned int __cdecl _control87(unsigned int, unsigned int)
Definition: _control87.c:16
void free_mbcinfo(MSVCRT_pthreadmbcinfo)
Definition: locale.c:685
int __cdecl _cputs(const char *)
Definition: cputs.c:8
int __cdecl _ismbstrail(const unsigned char *start, const unsigned char *str)
Definition: ismbtrl.c:32
unsigned long MSVCRT_uintptr_t
Definition: msvcrt.h:69
int _setmbcp_l(int, LCID, MSVCRT_pthreadmbcinfo)
Definition: _setmbcp.c:52
struct MSVCRT_threadmbcinfostruct * MSVCRT_pthreadmbcinfo
Definition: msvcrt.h:148
void msvcrt_init_console(void)
void(__cdecl * free_func_t)(void *)
Definition: msvcrt.h:228
MSVCRT_clock_t __cdecl MSVCRT_clock(void)
int *__cdecl __p___mb_cur_max(void)
Definition: environ.c:430
int __cdecl MSVCRT_fgetc(MSVCRT_FILE *)
int __cdecl MSVCRT__dup2(int, int)
unsigned int MSVCRT_ulong
Definition: msvcrt.h:61
char *__cdecl MSVCRT__strnset(char *, int, MSVCRT_size_t)
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
int __cdecl _cwprintf(const MSVCRT_wchar_t *,...)
Definition: _cwprintf.c:14
void __cdecl MSVCRT_terminate(void)
Definition: cpp.c:1275
MSVCRT_wchar_t ** MSVCRT__wenviron
int(* puts_clbk_a)(void *, int, const char *)
Definition: msvcrt.h:945
MSVCRT_wint_t __cdecl MSVCRT_fgetwc(MSVCRT_FILE *)
void __cdecl MSVCRT__lock_file(MSVCRT_FILE *)
long MSVCRT_intptr_t
Definition: msvcrt.h:68
struct MSVCRT_threadlocaleinfostruct * MSVCRT_pthreadlocinfo
Definition: msvcrt.h:147
MSVCRT_intptr_t __cdecl MSVCRT__wspawnvpe(int, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *const *, const MSVCRT_wchar_t *const *)
printf_arg(* args_clbk)(void *, int, int, __ms_va_list *)
Definition: msvcrt.h:954
void msvcrt_init_args(void)
char *__cdecl MSVCRT__strdate(char *date)
char ** msvcrt_SnapshotOfEnvironmentA(char **)
void msvcrt_init_signals(void)
Definition: except.c:178
MSVCRT_wchar_t *__cdecl MSVCRT__wgetenv(const MSVCRT_wchar_t *)
void(__cdecl * MSVCRT__beginthread_start_routine_t)(void *)
Definition: msvcrt.h:84
void *__cdecl MSVCRT_operator_new(MSVCRT_size_t)
Definition: heap.c:152
MSVCRT_size_t __cdecl MSVCRT_mbstowcs(MSVCRT_wchar_t *, const char *, MSVCRT_size_t)
void msvcrt_free_console(void)
int __cdecl MSVCRT_ungetc(int, MSVCRT_FILE *)
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31
int __cdecl MSVCRT__isleadbyte_l(int, MSVCRT__locale_t)
int MSVCRT___time32_t
Definition: msvcrt.h:74
void free_locinfo(MSVCRT_pthreadlocinfo)
Definition: locale.c:641
char *__cdecl __unDName(char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
Definition: undname.c:1647
int __cdecl MSVCRT_iswspace(MSVCRT_wint_t)
unsigned int MSVCRT__dev_t
Definition: msvcrt.h:71
unsigned short MSVCRT_wctype_t
Definition: msvcrt.h:57
MSVCRT_wchar_t * msvcrt_wstrdupa(const char *)
Definition: file.c:669
MSVCRT___time32_t __cdecl MSVCRT__time32(MSVCRT___time32_t *)
char ** MSVCRT__environ
void(__cdecl * MSVCRT_invalid_parameter_handler)(const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, unsigned, MSVCRT_uintptr_t)
Definition: msvcrt.h:87
char ***__cdecl MSVCRT___p__environ(void)
struct MSVCRT__div_t MSVCRT_div_t
void __cdecl MSVCRT__wsearchenv(const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, MSVCRT_wchar_t *)
void __cdecl MSVCRT__invalid_parameter(const MSVCRT_wchar_t *expr, const MSVCRT_wchar_t *func, const MSVCRT_wchar_t *file, unsigned int line, MSVCRT_uintptr_t arg)
MSVCRT_ulong *__cdecl MSVCRT___doserrno(void)
MSVCRT_wchar_t *__cdecl MSVCRT__wcsdup(const MSVCRT_wchar_t *)
MSVCRT___time64_t __cdecl MSVCRT__time64(MSVCRT___time64_t *)
void(__cdecl * MSVCRT_purecall_handler)(void)
Definition: msvcrt.h:88
void(__cdecl * MSVCRT_unexpected_handler)(void)
Definition: msvcrt.h:81
static __ms_va_list valist
Definition: printf.c:66
#define DECLSPEC_ALIGN(x)
Definition: ntbasedef.h:251
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
const WCHAR * str
#define WINAPIV
Definition: sdbpapi.h:64
DWORD LCID
Definition: nls.h:13
#define MSVCRT_free
Definition: msvcrt.h:152
void msvcrt_free_popen_data(void)
Definition: popen.c:29
#define MSVCRT_malloc
Definition: msvcrt.h:151
#define MSVCRT__errno
Definition: heap.c:42
#define MSVCRT_calloc
Definition: heap.c:43
#define msvcrt_set_errno
Definition: heap.c:50
#define MSVCRT_realloc
Definition: heap.c:45
unsigned char MSVCRT_bool
Definition: msvcrt.h:68
struct MSVCRT__lldiv_t MSVCRT_lldiv_t
unsigned short MSVCRT_wctrans_t
Definition: msvcrt.h:71
int __cdecl MSVCRT__wctomb_l(char *, MSVCRT_wchar_t, MSVCRT__locale_t)
__int64 __cdecl MSVCRT__ftelli64_nolock(MSVCRT_FILE *)
int __cdecl MSVCRT__fflush_nolock(MSVCRT_FILE *)
INT __cdecl MSVCRT_wctomb(char *, MSVCRT_wchar_t)
MSVCRT_size_t __cdecl MSVCRT__wcstombs_l(char *, const MSVCRT_wchar_t *, MSVCRT_size_t, MSVCRT__locale_t)
int __cdecl MSVCRT_mbtowc(MSVCRT_wchar_t *, const char *, MSVCRT_size_t)
int __cdecl MSVCRT_mbtowc_l(MSVCRT_wchar_t *, const char *, MSVCRT_size_t, MSVCRT__locale_t)
void msvcrt_free_locks(void) DECLSPEC_HIDDEN
int __cdecl MSVCRT__towlower_l(MSVCRT_wint_t, MSVCRT__locale_t)
void(__cdecl * MSVCRT__se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info)
Definition: msvcrt.h:103
unsigned int MSVCRT__commode
int __cdecl MSVCRT__stricmp(const char *, const char *)
void CDECL __DestructExceptionObject(EXCEPTION_RECORD *)
Definition: except.c:405
int *__cdecl MSVCRT___p__fmode(void)
__int64 _Q64
Definition: msvcrt.h:1419
int MSVCRT__off_t
Definition: msvcrt.h:92
int create_positional_ctx_a(void *, const char *, __ms_va_list) DECLSPEC_HIDDEN
unsigned short MSVCRT__ino_t
Definition: msvcrt.h:73
int __cdecl MSVCRT__fseeki64_nolock(MSVCRT_FILE *, __int64, int)
void(__cdecl * MSVCRT_unexpected_function)(void)
Definition: msvcrt.h:102
MSVCRT_size_t __cdecl MSVCRT_wcsnlen(const MSVCRT_wchar_t *, MSVCRT_size_t)
char *__cdecl MSVCRT_strstr(const char *, const char *)
printf_arg arg_clbk_positional(void *, int, int, __ms_va_list *) DECLSPEC_HIDDEN
void(__cdecl * MSVCRT_terminate_function)(void)
Definition: msvcrt.h:100
__int64 __cdecl MSVCRT__ftelli64(MSVCRT_FILE *file)
BOOL msvcrt_init_heap(void) DECLSPEC_HIDDEN
Definition: heap.c:895
frame_info *__cdecl _CreateFrameInfo(frame_info *fi, void *obj)
Definition: except.c:344
int __cdecl MSVCRT__iswspace_l(MSVCRT_wchar_t, MSVCRT__locale_t)
int __cdecl MSVCRT_strncmp(const char *, const char *, MSVCRT_size_t)
double parse_double(MSVCRT_wchar_t(*)(void *), void(*)(void *), void *, MSVCRT_pthreadlocinfo, int *)
unsigned int MSVCRT__fsize_t
Definition: msvcrt.h:74
int __cdecl MSVCRT__towupper_l(MSVCRT_wint_t, MSVCRT__locale_t)
unsigned int __cdecl MSVCRT__get_output_format(void)
int __cdecl MSVCRT__strnicoll_l(const char *, const char *, MSVCRT_size_t, MSVCRT__locale_t)
unsigned short MSVCRT_wchar_t
Definition: msvcrt.h:69
void msvcrt_init_exception(void *) DECLSPEC_HIDDEN
Definition: dllmain.c:33
__int64 MSVCRT_longlong
Definition: msvcrt.h:77
int __cdecl MSVCRT__set_printf_count_output(int)
int WINAPIV MSVCRT__snprintf(char *, unsigned int, const char *,...)
int __cdecl MSVCRT__toupper(int)
int __cdecl MSVCRT_strcmp(const char *, const char *)
int(__cdecl * MSVCRT__onexit_t)(void)
Definition: msvcrt.h:106
void msvcrt_destroy_heap(void) DECLSPEC_HIDDEN
Definition: heap.c:905
struct _frame_info frame_info
char *__cdecl MSVCRT_strtok_s(char *, const char *, char **)
DWORD msvcrt_tls_index DECLSPEC_HIDDEN
Definition: msvcrt.h:312
MSVCRT_size_t __cdecl MSVCRT__fwrite_nolock(const void *, MSVCRT_size_t, MSVCRT_size_t, MSVCRT_FILE *)
MSVCRT_size_t __cdecl MSVCRT__mbstowcs_l(MSVCRT_wchar_t *, const char *, MSVCRT_size_t, MSVCRT__locale_t)
void __cdecl __CxxUnregisterExceptionObject(cxx_frame_info *, BOOL)
Definition: except.c:464
int __cdecl MSVCRT__fgetc_nolock(MSVCRT_FILE *)
MSVCRT_size_t __cdecl MSVCRT__fread_nolock(void *, MSVCRT_size_t, MSVCRT_size_t, MSVCRT_FILE *)
int __cdecl MSVCRT__ungetc_nolock(int, MSVCRT_FILE *)
MSVCRT_wint_t __cdecl MSVCRT__ungetwc_nolock(MSVCRT_wint_t, MSVCRT_FILE *)
int __cdecl MSVCRT__fclose_nolock(MSVCRT_FILE *)
MSVCRT_size_t __cdecl MSVCRT_strnlen(const char *, MSVCRT_size_t)
int __cdecl MSVCRT__strnicmp(const char *, const char *, MSVCRT_size_t)
int __cdecl MSVCRT__fputc_nolock(int, MSVCRT_FILE *)
MSVCRT_wint_t __cdecl MSVCRT__fputwc_nolock(MSVCRT_wint_t, MSVCRT_FILE *)
BOOL __cdecl __CxxRegisterExceptionObject(EXCEPTION_POINTERS *, cxx_frame_info *)
Definition: except.c:440
MSVCRT_size_t __cdecl MSVCRT_wcstombs(char *, const MSVCRT_wchar_t *, MSVCRT_size_t)
int create_positional_ctx_w(void *, const MSVCRT_wchar_t *, __ms_va_list) DECLSPEC_HIDDEN
int __cdecl MSVCRT__mbstowcs_s_l(MSVCRT_size_t *, MSVCRT_wchar_t *, MSVCRT_size_t, const char *, MSVCRT_size_t, MSVCRT__locale_t)
int MSVCRT___time32_t
Definition: msvcrt.h:94
int __cdecl MSVCRT__isspace_l(int, MSVCRT__locale_t)
void msvcrt_init_clock(void) DECLSPEC_HIDDEN
int __cdecl MSVCRT__strncoll_l(const char *, const char *, MSVCRT_size_t, MSVCRT__locale_t)
MSVCRT_size_t __cdecl MSVCRT__fread_nolock_s(void *, MSVCRT_size_t, MSVCRT_size_t, MSVCRT_size_t, MSVCRT_FILE *)
unsigned int MSVCRT__dev_t
Definition: msvcrt.h:90
void(__cdecl * MSVCRT_invalid_parameter_handler)(const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, unsigned, MSVCRT_uintptr_t)
Definition: msvcrt.h:107
MSVCRT_wint_t __cdecl MSVCRT__fgetwc_nolock(MSVCRT_FILE *)
#define R4(v, w, x, y, z, i)
Definition: sha1.c:39
int _getch()
Definition: getch.c:16
const char * short_date
Definition: msvcrt.h:141
const char * time
Definition: msvcrt.h:143
const MSVCRT_wchar_t * pm
Definition: msvcrt.h:158
const char * am
Definition: msvcrt.h:139
const MSVCRT_wchar_t * am
Definition: msvcrt.h:157
const char * pm
Definition: msvcrt.h:140
const MSVCRT_wchar_t * date
Definition: msvcrt.h:160
const MSVCRT_wchar_t * short_date
Definition: msvcrt.h:159
const MSVCRT_wchar_t * time
Definition: msvcrt.h:161
const char * date
Definition: msvcrt.h:142
MSVCRT___time32_t time
Definition: msvcrt.h:287
short dstflag
Definition: msvcrt.h:290
unsigned short millitm
Definition: msvcrt.h:288
short timezone
Definition: msvcrt.h:289
short dstflag
Definition: msvcrt.h:297
unsigned short millitm
Definition: msvcrt.h:295
MSVCRT___time64_t time
Definition: msvcrt.h:294
short timezone
Definition: msvcrt.h:296
double y
Definition: msvcrt.h:344
double x
Definition: msvcrt.h:343
double retval
Definition: msvcrt.h:339
__int64 DECLSPEC_ALIGN(8) size
__int64 DECLSPEC_ALIGN(8) size
MSVCRT_size_t _size
Definition: msvcrt.h:359
int * _pentry
Definition: msvcrt.h:358
char * _tmpfname
Definition: msvcrt.h:308
char * _ptr
Definition: msvcrt.h:301
int _bufsiz
Definition: msvcrt.h:307
int _charbuf
Definition: msvcrt.h:306
char * _base
Definition: msvcrt.h:303
MSVCRT_long rem
Definition: msvcrt.h:354
MSVCRT_long quot
Definition: msvcrt.h:353
MSVCRT_longlong rem
Definition: msvcrt.h:508
MSVCRT_longlong quot
Definition: msvcrt.h:507
MSVCRT__onexit_t * _first
Definition: msvcrt.h:232
MSVCRT__onexit_t * _end
Definition: msvcrt.h:234
MSVCRT__onexit_t * _last
Definition: msvcrt.h:233
__int64 DECLSPEC_ALIGN(8) st_size
__int64 DECLSPEC_ALIGN(8) st_size
__int64 DECLSPEC_ALIGN(8) size
__int64 DECLSPEC_ALIGN(8) size
unsigned int status
Definition: msvcrt.h:1001
unsigned int control
Definition: msvcrt.h:1000
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:153
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:152
unsigned short wCountry
Definition: msvcrt.h:107
unsigned short wLanguage
Definition: msvcrt.h:106
unsigned short wCodePage
Definition: msvcrt.h:108
MSVCRT_wchar_t * wlocale
Definition: msvcrt.h:186
struct MSVCRT_lconv * lconv
Definition: msvcrt.h:128
MSVCRT_LC_ID lc_id[6]
Definition: msvcrt.h:116
unsigned int lc_codepage
Definition: msvcrt.h:113
unsigned char * pclmap
Definition: msvcrt.h:132
unsigned int lc_collate_cp
Definition: msvcrt.h:114
unsigned char * pcumap
Definition: msvcrt.h:133
unsigned short * ctype1
Definition: msvcrt.h:130
struct MSVCRT_threadlocaleinfostruct::@1681 lc_category[6]
unsigned short * pctype
Definition: msvcrt.h:131
MSVCRT_ulong lc_handle[6]
Definition: msvcrt.h:115
MSVCRT___lc_time_data * lc_time_curr
Definition: msvcrt.h:205
unsigned char mbcasemap[256]
Definition: msvcrt.h:144
unsigned short mbulinfo[6]
Definition: msvcrt.h:142
unsigned char mbctype[257]
Definition: msvcrt.h:143
int tm_sec
Definition: msvcrt.h:94
int tm_hour
Definition: msvcrt.h:96
int tm_mday
Definition: msvcrt.h:97
int tm_yday
Definition: msvcrt.h:101
int tm_year
Definition: msvcrt.h:99
int tm_min
Definition: msvcrt.h:95
int tm_wday
Definition: msvcrt.h:100
int tm_mon
Definition: msvcrt.h:98
int tm_isdst
Definition: msvcrt.h:102
Definition: polytest.cpp:36
Definition: fpieee.h:291
Definition: fpieee.h:271
char * tmpnam_buffer
Definition: msvcrt.h:173
char * strtok_next
Definition: msvcrt.h:168
MSVCRT__se_translator_function se_translator
Definition: msvcrt.h:189
EXCEPTION_POINTERS * xcptinfo
Definition: tls.h:43
MSVCRT_ulong thread_doserrno
Definition: msvcrt.h:165
unsigned char * mbstok_next
Definition: msvcrt.h:170
MSVCRT_wchar_t * wcserror_buffer
Definition: msvcrt.h:172
void * unk6[3]
Definition: msvcrt.h:190
struct MSVCRT_tm * time_buffer
Definition: msvcrt.h:178
void * unk8[100]
Definition: msvcrt.h:193
MSVCRT_wchar_t * wasctime_buffer
Definition: msvcrt.h:177
BOOL have_locale
Definition: msvcrt.h:185
EXCEPTION_RECORD * exc_record
Definition: msvcrt.h:192
MSVCRT_wchar_t * wtmpnam_buffer
Definition: msvcrt.h:174
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:183
int processing_throw
Definition: msvcrt.h:293
int thread_errno
Definition: msvcrt.h:164
MSVCRT_terminate_function terminate_handler
Definition: msvcrt.h:187
frame_info * frame_info_head
Definition: msvcrt.h:294
DWORD cached_cp
Definition: msvcrt.h:299
int unk5[1]
Definition: msvcrt.h:186
char * strerror_buffer
Definition: msvcrt.h:171
LCID cached_lcid
Definition: msvcrt.h:296
MSVCRT_unexpected_function unexpected_handler
Definition: msvcrt.h:188
int fpecode
Definition: msvcrt.h:182
HANDLE handle
Definition: msvcrt.h:163
unsigned int random_seed
Definition: msvcrt.h:167
void * unk10[100]
Definition: msvcrt.h:301
DWORD tid
Definition: msvcrt.h:162
CONTEXT * ctx_record
Definition: msvcrt.h:292
char * asctime_buffer
Definition: msvcrt.h:176
char * efcvt_buffer
Definition: msvcrt.h:179
char cached_locale[131]
Definition: msvcrt.h:300
MSVCRT_wchar_t * wcstok_next
Definition: msvcrt.h:169
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:184
BOOL cached_sname
Definition: msvcrt.h:297
int unk3[2]
Definition: msvcrt.h:180
void * unk4[4]
Definition: msvcrt.h:181
int unk9[2]
Definition: msvcrt.h:298
void * unk2[2]
Definition: msvcrt.h:175
struct _frame_info * next
Definition: msvcrt.h:240
void * object
Definition: msvcrt.h:239
Definition: inflate.c:139
CONTEXT * context
Definition: msvcrt.h:247
frame_info frame_info
Definition: msvcrt.h:245
EXCEPTION_RECORD * rec
Definition: msvcrt.h:246
Definition: query.h:87
Definition: fci.c:127
Definition: parser.c:49
Definition: name.c:39
uint8 * get_ptr(int x, int y, uint8 *data, int width, int bpp)
Definition: svgawin.c:269
int64_t LONGLONG
Definition: typedefs.h:68
int32_t INT
Definition: typedefs.h:58
#define __stdcall
Definition: typedefs.h:25
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define __ms_va_list
Definition: windef.h:456
#define WINAPI
Definition: msvc.h:6
#define get_locinfo()
Definition: winesup.h:25
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409
_In_opt_ PVOID _Out_ PLARGE_INTEGER Cookie
Definition: cmfuncs.h:14
unsigned char BYTE
Definition: xxhash.c:193
#define const
Definition: zconf.h:233