ReactOS  0.4.14-dev-608-gd495a4f
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_LONG_MAX 0x7fffffffL
45 #define MSVCRT_ULONG_MAX 0xffffffffUL
46 #define MSVCRT_I64_MAX (((__int64)0x7fffffff << 32) | 0xffffffff)
47 #define MSVCRT_I64_MIN (-MSVCRT_I64_MAX-1)
48 #define MSVCRT_UI64_MAX (((unsigned __int64)0xffffffff << 32) | 0xffffffff)
49 
50 #define MSVCRT__MAX_DRIVE 3
51 #define MSVCRT__MAX_DIR 256
52 #define MSVCRT__MAX_FNAME 256
53 #define MSVCRT__MAX_EXT 256
54 
55 typedef unsigned short MSVCRT_wchar_t;
56 typedef unsigned short MSVCRT_wint_t;
57 typedef unsigned short MSVCRT_wctype_t;
58 typedef unsigned short MSVCRT__ino_t;
59 typedef unsigned int MSVCRT__fsize_t;
60 typedef int MSVCRT_long;
61 typedef unsigned int MSVCRT_ulong;
62 #ifdef _WIN64
63 typedef unsigned __int64 MSVCRT_size_t;
64 typedef __int64 MSVCRT_intptr_t;
65 typedef unsigned __int64 MSVCRT_uintptr_t;
66 #else
67 typedef unsigned long MSVCRT_size_t;
68 typedef long MSVCRT_intptr_t;
69 typedef unsigned long MSVCRT_uintptr_t;
70 #endif
71 typedef unsigned int MSVCRT__dev_t;
72 typedef int MSVCRT__off_t;
73 typedef int MSVCRT_clock_t;
74 typedef int MSVCRT___time32_t;
75 typedef __int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t;
76 typedef __int64 DECLSPEC_ALIGN(8) MSVCRT_fpos_t;
77 typedef int MSVCRT_mbstate_t;
78 
79 typedef void (__cdecl *MSVCRT_terminate_handler)(void);
80 typedef void (__cdecl *MSVCRT_terminate_function)(void);
81 typedef void (__cdecl *MSVCRT_unexpected_handler)(void);
82 typedef void (__cdecl *MSVCRT_unexpected_function)(void);
85 typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
86 typedef int (__cdecl *MSVCRT__onexit_t)(void);
88 typedef void (__cdecl *MSVCRT_purecall_handler)(void);
89 typedef void (__cdecl *MSVCRT_security_error_handler)(int, void *);
90 
91 typedef struct {ULONG x80[3];} MSVCRT__LDOUBLE; /* Intel 80 bit FP format has sizeof() 12 */
92 
93 struct MSVCRT_tm {
94  int tm_sec;
95  int tm_min;
96  int tm_hour;
97  int tm_mday;
98  int tm_mon;
99  int tm_year;
100  int tm_wday;
101  int tm_yday;
102  int tm_isdst;
103 };
104 
105 typedef struct MSVCRT_tagLC_ID {
106  unsigned short wLanguage;
107  unsigned short wCountry;
108  unsigned short wCodePage;
110 
112  int refcount;
113  unsigned int lc_codepage;
114  unsigned int lc_collate_cp;
117  struct {
118  char *locale;
119  wchar_t *wlocale;
120  int *refcount;
121  int *wrefcount;
122  } lc_category[6];
123  int lc_clike;
130  unsigned short *ctype1;
131  unsigned short *pctype;
132  unsigned char *pclmap;
133  unsigned char *pcumap;
136 
138  int refcount;
141  int mblcid;
142  unsigned short mbulinfo[6];
143  unsigned char mbctype[257];
144  unsigned char mbcasemap[256];
146 
149 
151 {
155 
156 
157 /* TLS data */
158 extern DWORD msvcrt_tls_index;
159 
160 /* Keep in sync with msvcr90/tests/msvcr90.c */
166  int unk1;
167  unsigned int random_seed; /* seed for rand() */
168  char *strtok_next; /* next ptr for strtok() */
169  MSVCRT_wchar_t *wcstok_next; /* next ptr for wcstok() */
170  unsigned char *mbstok_next; /* next ptr for mbstok() */
171  char *strerror_buffer; /* buffer for strerror */
172  MSVCRT_wchar_t *wcserror_buffer; /* buffer for wcserror */
173  char *tmpnam_buffer; /* buffer for tmpname() */
174  MSVCRT_wchar_t *wtmpnam_buffer; /* buffer for wtmpname() */
175  void *unk2[2];
176  char *asctime_buffer; /* buffer for asctime */
177  MSVCRT_wchar_t *wasctime_buffer; /* buffer for wasctime */
178  struct MSVCRT_tm *time_buffer; /* buffer for localtime/gmtime */
179  char *efcvt_buffer; /* buffer for ecvt/fcvt */
180  int unk3[2];
181  void *unk4[4];
182  int fpecode;
186  int unk5[1];
190  void *unk6[3];
191  int unk7;
193  void *unk8[100];
194 };
195 
197 
199 
200 LCID MSVCRT_locale_to_LCID(const char *);
202 extern int MSVCRT___lc_codepage;
203 extern int MSVCRT___lc_collate_cp;
204 extern WORD MSVCRT__ctype [257];
205 
206 void msvcrt_set_errno(int);
207 
208 void __cdecl _purecall(void);
209 void __cdecl _amsg_exit(int errnum);
210 
211 extern char **MSVCRT__environ;
213 
214 extern char ** msvcrt_SnapshotOfEnvironmentA(char **);
216 
217 MSVCRT_wchar_t *msvcrt_wstrdupa(const char *);
218 
219 /* FIXME: This should be declared in new.h but it's not an extern "C" so
220  * it would not be much use anyway. Even for Winelib applications.
221  */
223 
225 void __cdecl MSVCRT_operator_delete(void*);
226 
228 typedef void (__cdecl *free_func_t)(void*);
229 
230 extern char* __cdecl __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int);
231 extern char* __cdecl __unDNameEx(char *,const char*,int,malloc_func_t,free_func_t,void *,unsigned short int);
232 
233 /* Setup and teardown multi threaded locks */
234 extern void msvcrt_init_mt_locks(void);
235 extern void msvcrt_free_mt_locks(void);
236 
237 extern BOOL msvcrt_init_locale(void);
238 extern void msvcrt_init_math(void);
239 extern void msvcrt_init_io(void);
240 extern void msvcrt_free_io(void);
241 extern void msvcrt_init_console(void);
242 extern void msvcrt_free_console(void);
243 extern void msvcrt_init_args(void);
244 extern void msvcrt_free_args(void);
245 extern void msvcrt_init_signals(void);
246 extern void msvcrt_free_signals(void);
247 
248 extern unsigned msvcrt_create_io_inherit_block(WORD*, BYTE**);
249 
250 extern unsigned int __cdecl _control87(unsigned int, unsigned int);
251 
252 /* run-time error codes */
253 #define _RT_STACK 0
254 #define _RT_NULLPTR 1
255 #define _RT_FLOAT 2
256 #define _RT_INTDIV 3
257 #define _RT_EXECMEM 5
258 #define _RT_EXECFORM 6
259 #define _RT_EXECENV 7
260 #define _RT_SPACEARG 8
261 #define _RT_SPACEENV 9
262 #define _RT_ABORT 10
263 #define _RT_NPTR 12
264 #define _RT_FPTR 13
265 #define _RT_BREAK 14
266 #define _RT_INT 15
267 #define _RT_THREAD 16
268 #define _RT_LOCK 17
269 #define _RT_HEAP 18
270 #define _RT_OPENCON 19
271 #define _RT_QWIN 20
272 #define _RT_NOMAIN 21
273 #define _RT_NONCONT 22
274 #define _RT_INVALDISP 23
275 #define _RT_ONEXIT 24
276 #define _RT_PUREVIRT 25
277 #define _RT_STDIOINIT 26
278 #define _RT_LOWIOINIT 27
279 #define _RT_HEAPINIT 28
280 #define _RT_DOMAIN 120
281 #define _RT_SING 121
282 #define _RT_TLOSS 122
283 #define _RT_CRNL 252
284 #define _RT_BANNER 255
285 
288  unsigned short millitm;
289  short timezone;
290  short dstflag;
291 };
292 
294  MSVCRT___time64_t time;
295  unsigned short millitm;
296  short timezone;
297  short dstflag;
298 };
299 
301  char* _ptr;
302  int _cnt;
303  char* _base;
304  int _flag;
305  int _file;
306  int _charbuf;
307  int _bufsiz;
308  char* _tmpfname;
309 };
310 
311 typedef struct MSVCRT__iobuf MSVCRT_FILE;
312 
313 struct MSVCRT_lconv {
316  char* grouping;
332 };
333 
335  int type;
336  char* name;
337  double arg1;
338  double arg2;
339  double retval;
340 };
341 
343  double x; /* Real part */
344  double y; /* Imaginary part */
345 };
346 
347 typedef struct MSVCRT__div_t {
348  int quot; /* quotient */
349  int rem; /* remainder */
350 } MSVCRT_div_t;
351 
352 typedef struct MSVCRT__ldiv_t {
353  MSVCRT_long quot; /* quotient */
354  MSVCRT_long rem; /* remainder */
355 } MSVCRT_ldiv_t;
356 
358  int* _pentry;
360  int _useflag;
361 };
362 
363 #ifdef __i386__
364 struct MSVCRT___JUMP_BUFFER {
365  unsigned long Ebp;
366  unsigned long Ebx;
367  unsigned long Edi;
368  unsigned long Esi;
369  unsigned long Esp;
370  unsigned long Eip;
371  unsigned long Registration;
372  unsigned long TryLevel;
373  /* Start of new struct members */
374  unsigned long Cookie;
375  unsigned long UnwindFunc;
376  unsigned long UnwindData[6];
377 };
378 #elif defined(__x86_64__)
379 struct MSVCRT__SETJMP_FLOAT128
380 {
381  unsigned __int64 DECLSPEC_ALIGN(16) Part[2];
382 };
383 struct MSVCRT___JUMP_BUFFER
384 {
385  unsigned __int64 Frame;
386  unsigned __int64 Rbx;
387  unsigned __int64 Rsp;
388  unsigned __int64 Rbp;
389  unsigned __int64 Rsi;
390  unsigned __int64 Rdi;
391  unsigned __int64 R12;
392  unsigned __int64 R13;
393  unsigned __int64 R14;
394  unsigned __int64 R15;
395  unsigned __int64 Rip;
396  unsigned __int64 Spare;
397  struct MSVCRT__SETJMP_FLOAT128 Xmm6;
398  struct MSVCRT__SETJMP_FLOAT128 Xmm7;
399  struct MSVCRT__SETJMP_FLOAT128 Xmm8;
400  struct MSVCRT__SETJMP_FLOAT128 Xmm9;
401  struct MSVCRT__SETJMP_FLOAT128 Xmm10;
402  struct MSVCRT__SETJMP_FLOAT128 Xmm11;
403  struct MSVCRT__SETJMP_FLOAT128 Xmm12;
404  struct MSVCRT__SETJMP_FLOAT128 Xmm13;
405  struct MSVCRT__SETJMP_FLOAT128 Xmm14;
406  struct MSVCRT__SETJMP_FLOAT128 Xmm15;
407 };
408 #endif /* __i386__ */
409 
411  unsigned int total_clusters;
412  unsigned int avail_clusters;
413  unsigned int sectors_per_cluster;
414  unsigned int bytes_per_sector;
415 };
416 
418  unsigned int attrib;
423  char name[260];
424 };
425 
427  unsigned int attrib;
432  char name[260];
433 };
434 
436  unsigned int attrib;
437  MSVCRT___time64_t time_create;
438  MSVCRT___time64_t time_access;
439  MSVCRT___time64_t time_write;
441  char name[260];
442 };
443 
445  unsigned int attrib;
446  MSVCRT___time64_t time_create;
447  MSVCRT___time64_t time_access;
448  MSVCRT___time64_t time_write;
450  char name[260];
451 };
452 
454  unsigned int attrib;
460 };
461 
463  unsigned int attrib;
469 };
470 
472  unsigned int attrib;
473  MSVCRT___time64_t time_create;
474  MSVCRT___time64_t time_access;
475  MSVCRT___time64_t time_write;
478 };
479 
481  unsigned int attrib;
482  MSVCRT___time64_t time_create;
483  MSVCRT___time64_t time_access;
484  MSVCRT___time64_t time_write;
487 };
488 
490 {
493 };
494 
496 {
497  MSVCRT___time64_t actime;
498  MSVCRT___time64_t modtime;
499 };
500 
501 /* for FreeBSD */
502 #undef st_atime
503 #undef st_ctime
504 #undef st_mtime
505 
509  unsigned short st_mode;
510  short st_nlink;
511  short st_uid;
512  short st_gid;
518 };
519 
523  unsigned short st_mode;
524  short st_nlink;
525  short st_uid;
526  short st_gid;
528  __int64 DECLSPEC_ALIGN(8) st_size;
532 };
533 
537  unsigned short st_mode;
538  short st_nlink;
539  short st_uid;
540  short st_gid;
543  MSVCRT___time64_t st_atime;
544  MSVCRT___time64_t st_mtime;
545  MSVCRT___time64_t st_ctime;
546 };
547 
551  unsigned short st_mode;
552  short st_nlink;
553  short st_uid;
554  short st_gid;
556  __int64 DECLSPEC_ALIGN(8) st_size;
557  MSVCRT___time64_t st_atime;
558  MSVCRT___time64_t st_mtime;
559  MSVCRT___time64_t st_ctime;
560 };
561 
562 #ifdef _WIN64
563 #define MSVCRT__finddata_t MSVCRT__finddata64i32_t
564 #define MSVCRT__finddatai64_t MSVCRT__finddata64_t
565 #define MSVCRT__wfinddata_t MSVCRT__wfinddata64i32_t
566 #define MSVCRT__wfinddatai64_t MSVCRT__wfinddata64_t
567 #define MSVCRT__stat MSVCRT__stat64i32
568 #define MSVCRT__stati64 MSVCRT__stat64
569 #else
570 #define MSVCRT__finddata_t MSVCRT__finddata32_t
571 #define MSVCRT__finddatai64_t MSVCRT__finddata32i64_t
572 #define MSVCRT__wfinddata_t MSVCRT__wfinddata32_t
573 #define MSVCRT__wfinddatai64_t MSVCRT__wfinddata32i64_t
574 #define MSVCRT__stat MSVCRT__stat32
575 #define MSVCRT__stati64 MSVCRT__stat32i64
576 #endif
577 
578 #define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF)
579 #define MSVCRT_EOF (-1)
580 #define MSVCRT_TMP_MAX 0x7fff
581 #define MSVCRT_RAND_MAX 0x7fff
582 #define MSVCRT_BUFSIZ 512
583 
584 #define MSVCRT_STDIN_FILENO 0
585 #define MSVCRT_STDOUT_FILENO 1
586 #define MSVCRT_STDERR_FILENO 2
587 
588 /* more file._flag flags, but these conflict with Unix */
589 #define MSVCRT__IOFBF 0x0000
590 #define MSVCRT__IONBF 0x0004
591 #define MSVCRT__IOLBF 0x0040
592 
593 #define MSVCRT_FILENAME_MAX 260
594 #define MSVCRT_DRIVE_MAX 3
595 #define MSVCRT_FNAME_MAX 256
596 #define MSVCRT_DIR_MAX 256
597 #define MSVCRT_EXT_MAX 256
598 #define MSVCRT_PATH_MAX 260
599 #define MSVCRT_stdin (MSVCRT__iob+MSVCRT_STDIN_FILENO)
600 #define MSVCRT_stdout (MSVCRT__iob+MSVCRT_STDOUT_FILENO)
601 #define MSVCRT_stderr (MSVCRT__iob+MSVCRT_STDERR_FILENO)
602 
603 #define MSVCRT__P_WAIT 0
604 #define MSVCRT__P_NOWAIT 1
605 #define MSVCRT__P_OVERLAY 2
606 #define MSVCRT__P_NOWAITO 3
607 #define MSVCRT__P_DETACH 4
608 
609 #define MSVCRT_EPERM 1
610 #define MSVCRT_ENOENT 2
611 #define MSVCRT_ESRCH 3
612 #define MSVCRT_EINTR 4
613 #define MSVCRT_EIO 5
614 #define MSVCRT_ENXIO 6
615 #define MSVCRT_E2BIG 7
616 #define MSVCRT_ENOEXEC 8
617 #define MSVCRT_EBADF 9
618 #define MSVCRT_ECHILD 10
619 #define MSVCRT_EAGAIN 11
620 #define MSVCRT_ENOMEM 12
621 #define MSVCRT_EACCES 13
622 #define MSVCRT_EFAULT 14
623 #define MSVCRT_EBUSY 16
624 #define MSVCRT_EEXIST 17
625 #define MSVCRT_EXDEV 18
626 #define MSVCRT_ENODEV 19
627 #define MSVCRT_ENOTDIR 20
628 #define MSVCRT_EISDIR 21
629 #define MSVCRT_EINVAL 22
630 #define MSVCRT_ENFILE 23
631 #define MSVCRT_EMFILE 24
632 #define MSVCRT_ENOTTY 25
633 #define MSVCRT_EFBIG 27
634 #define MSVCRT_ENOSPC 28
635 #define MSVCRT_ESPIPE 29
636 #define MSVCRT_EROFS 30
637 #define MSVCRT_EMLINK 31
638 #define MSVCRT_EPIPE 32
639 #define MSVCRT_EDOM 33
640 #define MSVCRT_ERANGE 34
641 #define MSVCRT_EDEADLK 36
642 #define MSVCRT_EDEADLOCK MSVCRT_EDEADLK
643 #define MSVCRT_ENAMETOOLONG 38
644 #define MSVCRT_ENOLCK 39
645 #define MSVCRT_ENOSYS 40
646 #define MSVCRT_ENOTEMPTY 41
647 #define MSVCRT_EILSEQ 42
648 #define MSVCRT_STRUNCATE 80
649 
650 #define MSVCRT_LC_ALL 0
651 #define MSVCRT_LC_COLLATE 1
652 #define MSVCRT_LC_CTYPE 2
653 #define MSVCRT_LC_MONETARY 3
654 #define MSVCRT_LC_NUMERIC 4
655 #define MSVCRT_LC_TIME 5
656 #define MSVCRT_LC_MIN MSVCRT_LC_ALL
657 #define MSVCRT_LC_MAX MSVCRT_LC_TIME
658 
659 #define MSVCRT__HEAPEMPTY -1
660 #define MSVCRT__HEAPOK -2
661 #define MSVCRT__HEAPBADBEGIN -3
662 #define MSVCRT__HEAPBADNODE -4
663 #define MSVCRT__HEAPEND -5
664 #define MSVCRT__HEAPBADPTR -6
665 
666 #define MSVCRT__FREEENTRY 0
667 #define MSVCRT__USEDENTRY 1
668 
669 #define MSVCRT__OUT_TO_DEFAULT 0
670 #define MSVCRT__OUT_TO_STDERR 1
671 #define MSVCRT__OUT_TO_MSGBOX 2
672 #define MSVCRT__REPORT_ERRMODE 3
673 
674 /* ASCII char classification table - binary compatible */
675 #define MSVCRT__UPPER 0x0001 /* C1_UPPER */
676 #define MSVCRT__LOWER 0x0002 /* C1_LOWER */
677 #define MSVCRT__DIGIT 0x0004 /* C1_DIGIT */
678 #define MSVCRT__SPACE 0x0008 /* C1_SPACE */
679 #define MSVCRT__PUNCT 0x0010 /* C1_PUNCT */
680 #define MSVCRT__CONTROL 0x0020 /* C1_CNTRL */
681 #define MSVCRT__BLANK 0x0040 /* C1_BLANK */
682 #define MSVCRT__HEX 0x0080 /* C1_XDIGIT */
683 #define MSVCRT__LEADBYTE 0x8000
684 #define MSVCRT__ALPHA (0x0100|MSVCRT__UPPER|MSVCRT__LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
685 
686 #define MSVCRT__IOREAD 0x0001
687 #define MSVCRT__IOWRT 0x0002
688 #define MSVCRT__IOMYBUF 0x0008
689 #define MSVCRT__IOEOF 0x0010
690 #define MSVCRT__IOERR 0x0020
691 #define MSVCRT__IOSTRG 0x0040
692 #define MSVCRT__IORW 0x0080
693 
694 #define MSVCRT__S_IEXEC 0x0040
695 #define MSVCRT__S_IWRITE 0x0080
696 #define MSVCRT__S_IREAD 0x0100
697 #define MSVCRT__S_IFIFO 0x1000
698 #define MSVCRT__S_IFCHR 0x2000
699 #define MSVCRT__S_IFDIR 0x4000
700 #define MSVCRT__S_IFREG 0x8000
701 #define MSVCRT__S_IFMT 0xF000
702 
703 #define MSVCRT__LK_UNLCK 0
704 #define MSVCRT__LK_LOCK 1
705 #define MSVCRT__LK_NBLCK 2
706 #define MSVCRT__LK_RLCK 3
707 #define MSVCRT__LK_NBRLCK 4
708 
709 #define MSVCRT__SH_COMPAT 0x00 /* Compatibility */
710 #define MSVCRT__SH_DENYRW 0x10 /* Deny read/write */
711 #define MSVCRT__SH_DENYWR 0x20 /* Deny write */
712 #define MSVCRT__SH_DENYRD 0x30 /* Deny read */
713 #define MSVCRT__SH_DENYNO 0x40 /* Deny nothing */
714 
715 #define MSVCRT__O_RDONLY 0
716 #define MSVCRT__O_WRONLY 1
717 #define MSVCRT__O_RDWR 2
718 #define MSVCRT__O_ACCMODE (MSVCRT__O_RDONLY|MSVCRT__O_WRONLY|MSVCRT__O_RDWR)
719 #define MSVCRT__O_APPEND 0x0008
720 #define MSVCRT__O_RANDOM 0x0010
721 #define MSVCRT__O_SEQUENTIAL 0x0020
722 #define MSVCRT__O_TEMPORARY 0x0040
723 #define MSVCRT__O_NOINHERIT 0x0080
724 #define MSVCRT__O_CREAT 0x0100
725 #define MSVCRT__O_TRUNC 0x0200
726 #define MSVCRT__O_EXCL 0x0400
727 #define MSVCRT__O_SHORT_LIVED 0x1000
728 #define MSVCRT__O_TEXT 0x4000
729 #define MSVCRT__O_BINARY 0x8000
730 #define MSVCRT__O_RAW MSVCRT__O_BINARY
731 
732 /* _statusfp bit flags */
733 #define MSVCRT__SW_INEXACT 0x00000001 /* inexact (precision) */
734 #define MSVCRT__SW_UNDERFLOW 0x00000002 /* underflow */
735 #define MSVCRT__SW_OVERFLOW 0x00000004 /* overflow */
736 #define MSVCRT__SW_ZERODIVIDE 0x00000008 /* zero divide */
737 #define MSVCRT__SW_INVALID 0x00000010 /* invalid */
738 
739 #define MSVCRT__SW_UNEMULATED 0x00000040 /* unemulated instruction */
740 #define MSVCRT__SW_SQRTNEG 0x00000080 /* square root of a neg number */
741 #define MSVCRT__SW_STACKOVERFLOW 0x00000200 /* FP stack overflow */
742 #define MSVCRT__SW_STACKUNDERFLOW 0x00000400 /* FP stack underflow */
743 
744 #define MSVCRT__SW_DENORMAL 0x00080000 /* denormal status bit */
745 
746 /* fpclass constants */
747 #define MSVCRT__FPCLASS_SNAN 0x0001 /* Signaling "Not a Number" */
748 #define MSVCRT__FPCLASS_QNAN 0x0002 /* Quiet "Not a Number" */
749 #define MSVCRT__FPCLASS_NINF 0x0004 /* Negative Infinity */
750 #define MSVCRT__FPCLASS_NN 0x0008 /* Negative Normal */
751 #define MSVCRT__FPCLASS_ND 0x0010 /* Negative Denormal */
752 #define MSVCRT__FPCLASS_NZ 0x0020 /* Negative Zero */
753 #define MSVCRT__FPCLASS_PZ 0x0040 /* Positive Zero */
754 #define MSVCRT__FPCLASS_PD 0x0080 /* Positive Denormal */
755 #define MSVCRT__FPCLASS_PN 0x0100 /* Positive Normal */
756 #define MSVCRT__FPCLASS_PINF 0x0200 /* Positive Infinity */
757 
758 #define MSVCRT__MCW_EM 0x0008001f
759 #define MSVCRT__MCW_IC 0x00040000
760 #define MSVCRT__MCW_RC 0x00000300
761 #define MSVCRT__MCW_PC 0x00030000
762 #define MSVCRT__MCW_DN 0x03000000
763 
764 #define MSVCRT__EM_INVALID 0x00000010
765 #define MSVCRT__EM_DENORMAL 0x00080000
766 #define MSVCRT__EM_ZERODIVIDE 0x00000008
767 #define MSVCRT__EM_OVERFLOW 0x00000004
768 #define MSVCRT__EM_UNDERFLOW 0x00000002
769 #define MSVCRT__EM_INEXACT 0x00000001
770 #define MSVCRT__IC_AFFINE 0x00040000
771 #define MSVCRT__IC_PROJECTIVE 0x00000000
772 #define MSVCRT__RC_CHOP 0x00000300
773 #define MSVCRT__RC_UP 0x00000200
774 #define MSVCRT__RC_DOWN 0x00000100
775 #define MSVCRT__RC_NEAR 0x00000000
776 #define MSVCRT__PC_24 0x00020000
777 #define MSVCRT__PC_53 0x00010000
778 #define MSVCRT__PC_64 0x00000000
779 #define MSVCRT__DN_SAVE 0x00000000
780 #define MSVCRT__DN_FLUSH 0x01000000
781 #define MSVCRT__DN_FLUSH_OPERANDS_SAVE_RESULTS 0x02000000
782 #define MSVCRT__DN_SAVE_OPERANDS_FLUSH_RESULTS 0x03000000
783 #define MSVCRT__EM_AMBIGUOUS 0x80000000
784 
785 #define MSVCRT_CLOCKS_PER_SEC 1000
786 
787 /* signals */
788 #define MSVCRT_SIGINT 2
789 #define MSVCRT_SIGILL 4
790 #define MSVCRT_SIGFPE 8
791 #define MSVCRT_SIGSEGV 11
792 #define MSVCRT_SIGTERM 15
793 #define MSVCRT_SIGBREAK 21
794 #define MSVCRT_SIGABRT 22
795 #define MSVCRT_NSIG (MSVCRT_SIGABRT + 1)
796 
798 
799 #define MSVCRT_SIG_DFL ((MSVCRT___sighandler_t)0)
800 #define MSVCRT_SIG_IGN ((MSVCRT___sighandler_t)1)
801 #define MSVCRT_SIG_ERR ((MSVCRT___sighandler_t)-1)
802 
803 #define MSVCRT__FPE_INVALID 0x81
804 #define MSVCRT__FPE_DENORMAL 0x82
805 #define MSVCRT__FPE_ZERODIVIDE 0x83
806 #define MSVCRT__FPE_OVERFLOW 0x84
807 #define MSVCRT__FPE_UNDERFLOW 0x85
808 #define MSVCRT__FPE_INEXACT 0x86
809 #define MSVCRT__FPE_UNEMULATED 0x87
810 #define MSVCRT__FPE_SQRTNEG 0x88
811 #define MSVCRT__FPE_STACKOVERFLOW 0x8a
812 #define MSVCRT__FPE_STACKUNDERFLOW 0x8b
813 #define MSVCRT__FPE_EXPLICITGEN 0x8c
814 
815 #define _MS 0x01
816 #define _MP 0x02
817 #define _M1 0x04
818 #define _M2 0x08
819 
820 #define _SBUP 0x10
821 #define _SBLOW 0x20
822 
823 #define _MBC_SINGLE 0
824 #define _MBC_LEAD 1
825 #define _MBC_TRAIL 2
826 #define _MBC_ILLEGAL -1
827 
828 #define _MB_CP_SBCS 0
829 #define _MB_CP_OEM -2
830 #define _MB_CP_ANSI -3
831 #define _MB_CP_LOCALE -4
832 
833 #define MSVCRT__TRUNCATE ((MSVCRT_size_t)-1)
834 
835 #define _MAX__TIME64_T (((MSVCRT___time64_t)0x00000007 << 32) | 0x93406FFF)
836 
837 /* _set_abort_behavior codes */
838 #define MSVCRT__WRITE_ABORT_MSG 1
839 #define MSVCRT__CALL_REPORTFAULT 2
840 
841 /* _get_output_format return code */
842 #define MSVCRT__TWO_DIGIT_EXPONENT 0x1
843 
844 void __cdecl MSVCRT_free(void*);
848 
852 int __cdecl MSVCRT_isleadbyte(int);
854 
861 void __cdecl MSVCRT__exit(int);
862 void __cdecl MSVCRT_abort(void);
864 int* __cdecl MSVCRT__errno(void);
865 char* __cdecl MSVCRT_getenv(const char*);
867 void __cdecl MSVCRT_terminate(void);
871 MSVCRT___time64_t __cdecl MSVCRT__time64(MSVCRT___time64_t*);
872 MSVCRT_FILE* __cdecl MSVCRT__fdopen(int, const char *);
877 int __cdecl MSVCRT__snwprintf(MSVCRT_wchar_t*, unsigned int, const MSVCRT_wchar_t*, ...);
878 int __cdecl MSVCRT_sprintf(char*,const char*,...);
879 int __cdecl MSVCRT__scprintf(const char*,...);
880 int __cdecl MSVCRT_raise(int sig);
881 
882 #define MSVCRT__ENABLE_PER_THREAD_LOCALE 1
883 #define MSVCRT__DISABLE_PER_THREAD_LOCALE 2
884 
892 
893 #ifndef __WINE_MSVCRT_TEST
894 int __cdecl MSVCRT__write(int,const void*,unsigned int);
895 int __cdecl _getch(void);
896 int __cdecl _ismbblead(unsigned int);
897 int __cdecl _ismbstrail(const unsigned char* start, const unsigned char* str);
899 MSVCRT_intptr_t __cdecl MSVCRT__spawnve(int,const char*,const char* const *,const char* const *);
900 MSVCRT_intptr_t __cdecl MSVRT__spawnvpe(int,const char*,const char* const *,const char* const *);
901 MSVCRT_intptr_t __cdecl MSVCRT__wspawnve(int,const MSVCRT_wchar_t*,const MSVCRT_wchar_t* const *,const MSVCRT_wchar_t* const *);
902 MSVCRT_intptr_t __cdecl MSVCRT__wspawnvpe(int,const MSVCRT_wchar_t*,const MSVCRT_wchar_t* const *,const MSVCRT_wchar_t* const *);
903 void __cdecl MSVCRT__searchenv(const char*,const char*,char*);
904 int __cdecl MSVCRT__getdrive(void);
905 char* __cdecl MSVCRT__strdup(const char*);
906 char* __cdecl MSVCRT__strnset(char*,int,MSVCRT_size_t);
907 char* __cdecl _strset(char*,int);
908 int __cdecl _ungetch(int);
909 int __cdecl _cputs(const char*);
910 int __cdecl _cprintf(const char*,...);
911 int __cdecl _cwprintf(const MSVCRT_wchar_t*,...);
912 char*** __cdecl MSVCRT___p__environ(void);
913 int* __cdecl __p___mb_cur_max(void);
914 unsigned int* __cdecl __p__fmode(void);
917 char* __cdecl MSVCRT__strdate(char* date);
918 char* __cdecl MSVCRT__strtime(char* date);
919 int __cdecl _setmbcp(int);
920 int __cdecl MSVCRT__close(int);
921 int __cdecl MSVCRT__dup(int);
922 int __cdecl MSVCRT__dup2(int, int);
923 int __cdecl MSVCRT__pipe(int *, unsigned int, int);
926 MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe(int, const char*, const char* const*, const char* const*);
928  const MSVCRT_wchar_t *file, unsigned int line, MSVCRT_uintptr_t arg);
931 
932 /* Maybe one day we'll enable the invalid parameter handlers with the full set of information (msvcrXXd)
933  * #define MSVCRT_INVALID_PMT(x) MSVCRT_call_invalid_parameter_handler(x, __FUNCTION__, __FILE__, __LINE__, 0)
934  * #define MSVCRT_CHECK_PMT(x) ((x) ? TRUE : MSVCRT_INVALID_PMT(#x),FALSE)
935  * Until this is done, just keep the same semantics for CHECK_PMT(), but without generating / sending
936  * any information
937  * NB : MSVCRT_call_invalid_parameter_handler is a wrapper around MSVCRT__invalid_parameter in order
938  * to do the Ansi to Unicode transformation
939  */
940 #define MSVCRT_INVALID_PMT(x) MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0)
941 #define MSVCRT_CHECK_PMT(x) ((x) || (MSVCRT_INVALID_PMT(0),FALSE))
942 #endif
943 
944 #define MSVCRT__ARGMAX 100
945 typedef int (*puts_clbk_a)(void*, int, const char*);
946 typedef int (*puts_clbk_w)(void*, int, const MSVCRT_wchar_t*);
947 typedef union _printf_arg
948 {
949  void *get_ptr;
950  int get_int;
952  double get_double;
953 } printf_arg;
954 typedef printf_arg (*args_clbk)(void*, int, int, __ms_va_list*);
955 int pf_printf_a(puts_clbk_a, void*, const char*, MSVCRT__locale_t,
956  BOOL, BOOL, args_clbk, void*, __ms_va_list*);
958  BOOL, BOOL, args_clbk, void*, __ms_va_list*);
959 printf_arg arg_clbk_valist(void*, int, int, __ms_va_list*);
960 
961 #define MSVCRT__OVERFLOW 3
962 #define MSVCRT__UNDERFLOW 4
963 
964 typedef struct
965 {
966  float f;
968 
969 #endif /* __WINE_MSVCRT_H */
MSVCRT__se_translator_function se_translator
Definition: msvcrt.h:189
double x
Definition: msvcrt.h:343
MSVCRT__dev_t st_rdev
Definition: msvcrt.h:555
int(* puts_clbk_w)(void *, int, const MSVCRT_wchar_t *)
Definition: msvcrt.h:946
MSVCRT_clock_t __cdecl MSVCRT_clock(void)
GLenum func
Definition: glext.h:6028
void msvcrt_init_math(void)
MSVCRT__ino_t st_ino
Definition: msvcrt.h:550
void(__cdecl * MSVCRT_unexpected_function)(void)
Definition: msvcrt.h:82
char p_sign_posn
Definition: msvcrt.h:330
MSVCRT_ulong thread_doserrno
Definition: msvcrt.h:165
int tm_yday
Definition: msvcrt.h:101
MSVCRT__fsize_t size
Definition: msvcrt.h:440
short st_nlink
Definition: msvcrt.h:510
void __cdecl MSVCRT_operator_delete(void *)
Definition: heap.c:91
void * unk8[100]
Definition: msvcrt.h:193
MSVCRT_size_t _size
Definition: msvcrt.h:359
struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
MSVCRT___time32_t time_write
Definition: msvcrt.h:457
MSVCRT_intptr_t __cdecl MSVCRT__spawnve(int, const char *, const char *const *, const char *const *)
MSVCRT__dev_t st_rdev
Definition: msvcrt.h:541
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
int tm_year
Definition: msvcrt.h:99
char p_sep_by_space
Definition: msvcrt.h:327
LCID MSVCRT_locale_to_LCID(const char *)
MSVCRT___time32_t time_write
Definition: msvcrt.h:430
void msvcrt_free_io(void)
Definition: file.c:1100
MSVCRT__dev_t st_rdev
Definition: msvcrt.h:513
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
void *__cdecl MSVCRT_calloc(MSVCRT_size_t, MSVCRT_size_t)
static static const char __ms_va_list
Definition: printf.c:76
MSVCRT_LC_ID lc_id[6]
Definition: msvcrt.h:116
#define __cdecl
Definition: accygwin.h:79
int tm_hour
Definition: msvcrt.h:96
MSVCRT___time64_t actime
Definition: msvcrt.h:497
int __cdecl MSVCRT__scprintf(const char *,...)
void free_mbcinfo(MSVCRT_pthreadmbcinfo)
Definition: locale.c:685
unsigned int attrib
Definition: msvcrt.h:463
MSVCRT_wint_t __cdecl MSVCRT_fgetwc(MSVCRT_FILE *)
int __cdecl MSVCRT__pipe(int *, unsigned int, int)
int __cdecl _ungetch(int)
Definition: ungetch.c:22
void __cdecl MSVCRT__searchenv(const char *, const char *, char *)
int __cdecl MSVCRT__dup(int)
void(__cdecl * MSVCRT_terminate_function)(void)
Definition: msvcrt.h:80
struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
unsigned int attrib
Definition: msvcrt.h:445
unsigned char mbctype[257]
Definition: msvcrt.h:143
MSVCRT___time64_t time_create
Definition: msvcrt.h:473
unsigned short wCountry
Definition: msvcrt.h:107
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:183
int tm_min
Definition: msvcrt.h:95
char * tmpnam_buffer
Definition: msvcrt.h:173
int __cdecl MSVCRT_sprintf(char *, const char *,...)
unsigned int attrib
Definition: msvcrt.h:427
short st_nlink
Definition: msvcrt.h:538
MSVCRT___time64_t time_access
Definition: msvcrt.h:447
char *__cdecl __unDName(char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
Definition: undname.c:1645
WORD MSVCRT__ctype[257]
int __cdecl _cwprintf(const MSVCRT_wchar_t *,...)
Definition: _cwprintf.c:14
char * _ptr
Definition: msvcrt.h:301
MSVCRT___time64_t time_write
Definition: msvcrt.h:439
char frac_digits
Definition: msvcrt.h:325
MSVCRT__fsize_t size
Definition: msvcrt.h:476
int __cdecl MSVCRT_iswalpha(MSVCRT_wint_t)
int MSVCRT_clock_t
Definition: msvcrt.h:73
MSVCRT___time64_t time_access
Definition: msvcrt.h:474
MSVCRT_wchar_t ***__cdecl MSVCRT___p__wenviron(void)
unsigned char * mbstok_next
Definition: msvcrt.h:170
MSVCRT___time32_t __cdecl MSVCRT__time32(MSVCRT___time32_t *)
char * negative_sign
Definition: msvcrt.h:323
char *__cdecl __unDNameEx(char *, const char *, int, malloc_func_t, free_func_t, void *, unsigned short int)
Definition: undname.c:1598
void(__cdecl * MSVCRT___sighandler_t)(int)
Definition: msvcrt.h:797
printf_arg arg_clbk_valist(void *, int, int, __ms_va_list *)
unsigned int __cdecl _control87(unsigned int, unsigned int)
Definition: cntrlfp.c:43
int tm_wday
Definition: msvcrt.h:100
struct MSVCRT_threadlocaleinfostruct * MSVCRT_pthreadlocinfo
Definition: msvcrt.h:147
DWORD LCID
Definition: nls.h:13
struct MSVCRT_threadmbcinfostruct * MSVCRT_pthreadmbcinfo
Definition: msvcrt.h:148
void __cdecl MSVCRT_free(void *)
void msvcrt_init_io(void)
Definition: file.c:457
unsigned int(__stdcall * MSVCRT__beginthreadex_start_routine_t)(void *)
Definition: msvcrt.h:85
int *__cdecl __p___mb_cur_max(void)
Definition: environ.c:430
unsigned int bytes_per_sector
Definition: msvcrt.h:414
__int64 DECLSPEC_ALIGN(8) MSVCRT___time64_t
Definition: msvcrt.h:75
char *__cdecl MSVCRT__strtime(char *date)
char ** msvcrt_SnapshotOfEnvironmentA(char **)
void * get_ptr
Definition: msvcrt.h:949
union _printf_arg printf_arg
MSVCRT___time64_t time_create
Definition: msvcrt.h:446
BOOL msvcrt_init_locale(void)
Definition: query.h:86
MSVCRT___time64_t st_atime
Definition: msvcrt.h:543
short st_gid
Definition: msvcrt.h:512
unsigned short millitm
Definition: msvcrt.h:295
void __cdecl MSVCRT__wsearchenv(const MSVCRT_wchar_t *, const MSVCRT_wchar_t *, MSVCRT_wchar_t *)
double retval
Definition: msvcrt.h:339
unsigned int sectors_per_cluster
Definition: msvcrt.h:413
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: gl.h:1546
MSVCRT___time32_t time_write
Definition: msvcrt.h:421
MSVCRT___time32_t time_access
Definition: msvcrt.h:429
int MSVCRT_mbstate_t
Definition: msvcrt.h:77
void __cdecl _amsg_exit(int errnum)
Definition: amsg.c:47
MSVCRT___time64_t time_create
Definition: msvcrt.h:437
void *__cdecl MSVCRT_operator_new(MSVCRT_size_t)
void msvcrt_free_args(void)
MSVCRT__ino_t st_ino
Definition: msvcrt.h:536
LONGLONG get_longlong
Definition: msvcrt.h:951
void msvcrt_free_signals(void)
int unk5[1]
Definition: msvcrt.h:186
void __cdecl _purecall(void)
Definition: adapter.cpp:429
unsigned int MSVCRT__fsize_t
Definition: msvcrt.h:59
int MSVCRT___time32_t
Definition: msvcrt.h:74
unsigned char mbcasemap[256]
Definition: msvcrt.h:144
struct MSVCRT_tagLC_ID * MSVCRT_LPLC_ID
char ***__cdecl MSVCRT___p__environ(void)
DWORD tid
Definition: msvcrt.h:162
int tm_mday
Definition: msvcrt.h:97
unsigned int MSVCRT_ulong
Definition: msvcrt.h:61
char * positive_sign
Definition: msvcrt.h:322
unsigned int *__cdecl __p__fmode(void)
Definition: fmode.c:9
int fpecode
Definition: msvcrt.h:182
unsigned int BOOL
Definition: ntddk_ex.h:94
int * _pentry
Definition: msvcrt.h:358
void *__cdecl MSVCRT_realloc(void *, MSVCRT_size_t)
MSVCRT___time64_t time_write
Definition: msvcrt.h:484
MSVCRT_intptr_t __cdecl MSVCRT__wspawnvpe(int, const MSVCRT_wchar_t *, const MSVCRT_wchar_t *const *, const MSVCRT_wchar_t *const *)
struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
int tm_isdst
Definition: msvcrt.h:102
MSVCRT___time32_t time_access
Definition: msvcrt.h:456
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:153
void msvcrt_init_console(void)
unsigned short st_mode
Definition: msvcrt.h:537
unsigned short st_mode
Definition: msvcrt.h:523
short dstflag
Definition: msvcrt.h:290
MSVCRT___time64_t time
Definition: msvcrt.h:294
void * unk2[2]
Definition: msvcrt.h:175
const WCHAR * str
int __cdecl MSVCRT_vsnwprintf(MSVCRT_wchar_t *str, MSVCRT_size_t len, const MSVCRT_wchar_t *format, __ms_va_list valist)
char * _tmpfname
Definition: msvcrt.h:308
void(__cdecl * MSVCRT__beginthread_start_routine_t)(void *)
Definition: msvcrt.h:84
int pf_printf_w(puts_clbk_w, void *, const MSVCRT_wchar_t *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
unsigned char * pcumap
Definition: msvcrt.h:133
void msvcrt_set_errno(int)
unsigned short * ctype1
Definition: msvcrt.h:130
MSVCRT___time32_t time_create
Definition: msvcrt.h:464
Definition: parser.c:48
short dstflag
Definition: msvcrt.h:297
MSVCRT___time64_t st_mtime
Definition: msvcrt.h:544
unsigned short MSVCRT__ino_t
Definition: msvcrt.h:58
short timezone
Definition: msvcrt.h:289
char *__cdecl MSVCRT_getenv(const char *)
MSVCRT__ino_t st_ino
Definition: msvcrt.h:522
MSVCRT___time32_t st_ctime
Definition: msvcrt.h:517
short st_uid
Definition: msvcrt.h:511
int __cdecl _cputs(const char *)
Definition: cputs.c:8
char * mon_grouping
Definition: msvcrt.h:321
char p_cs_precedes
Definition: msvcrt.h:326
char * currency_symbol
Definition: msvcrt.h:318
char * int_curr_symbol
Definition: msvcrt.h:317
int __cdecl MSVCRT__tolower_l(int, MSVCRT__locale_t)
MSVCRT___time64_t time_create
Definition: msvcrt.h:482
MSVCRT_FILE *__cdecl MSVCRT__wfdopen(int, const MSVCRT_wchar_t *)
int __cdecl MSVCRT_isleadbyte(int)
unsigned int avail_clusters
Definition: msvcrt.h:412
char *__cdecl MSVCRT__strdup(const char *)
MSVCRT_FILE *__cdecl MSVCRT__iob_func(void)
struct MSVCRT___lc_time_data * lc_time_curr
Definition: msvcrt.h:134
MSVCRT_intptr_t __cdecl MSVCRT__spawnvpe(int, const char *, const char *const *, const char *const *)
DWORD msvcrt_tls_index
int64_t LONGLONG
Definition: typedefs.h:66
unsigned msvcrt_create_io_inherit_block(WORD *, BYTE **)
int tm_sec
Definition: msvcrt.h:94
MSVCRT___time64_t time_access
Definition: msvcrt.h:483
MSVCRT_wchar_t * wtmpnam_buffer
Definition: msvcrt.h:174
void msvcrt_free_mt_locks(void)
Definition: lock.c:77
void __cdecl MSVCRT__lock_file(MSVCRT_FILE *)
void(__cdecl * free_func_t)(void *)
Definition: msvcrt.h:228
int __cdecl MSVCRT__close(int)
double y
Definition: msvcrt.h:344
unsigned short mbulinfo[6]
Definition: msvcrt.h:142
GLsizeiptr size
Definition: glext.h:5919
int tm_mon
Definition: msvcrt.h:98
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 * decimal_point
Definition: msvcrt.h:314
void msvcrt_free_console(void)
short st_uid
Definition: msvcrt.h:553
int(* puts_clbk_a)(void *, int, const char *)
Definition: msvcrt.h:945
int __cdecl MSVCRT__set_new_mode(int mode)
Definition: heap.c:141
_Must_inspect_result_ _In_ CONST FLT_REGISTRATION * Registration
Definition: fltkernel.h:991
void * unk4[4]
Definition: msvcrt.h:181
void msvcrt_init_args(void)
int __cdecl _setmbcp(int)
Definition: _setmbcp.c:218
printf_arg(* args_clbk)(void *, int, int, __ms_va_list *)
Definition: msvcrt.h:954
int __cdecl MSVCRT__toupper_l(int, MSVCRT__locale_t)
int *__cdecl MSVCRT__errno(void)
_In_opt_ PVOID _Out_ PLARGE_INTEGER Cookie
Definition: cmfuncs.h:13
unsigned int attrib
Definition: msvcrt.h:472
unsigned long MSVCRT_uintptr_t
Definition: msvcrt.h:69
void msvcrt_init_signals(void)
struct MSVCRT__ldiv_t MSVCRT_ldiv_t
MSVCRT_wint_t __cdecl MSVCRT_ungetwc(MSVCRT_wint_t, MSVCRT_FILE *)
void *(__cdecl * malloc_func_t)(MSVCRT_size_t)
Definition: msvcrt.h:227
void(__cdecl * MSVCRT_security_error_handler)(int, void *)
Definition: msvcrt.h:89
unsigned short WORD
Definition: ntddk_ex.h:93
MSVCRT__dev_t st_rdev
Definition: msvcrt.h:527
unsigned long DWORD
Definition: ntddk_ex.h:95
MSVCRT_FILE *__cdecl MSVCRT__fdopen(int, const char *)
int thread_errno
Definition: msvcrt.h:164
char * _base
Definition: msvcrt.h:303
MSVCRT___time32_t time_create
Definition: msvcrt.h:428
unsigned char * pclmap
Definition: msvcrt.h:132
#define __stdcall
Definition: typedefs.h:25
unsigned short st_mode
Definition: msvcrt.h:551
unsigned int lc_collate_cp
Definition: msvcrt.h:114
int __cdecl MSVCRT_iswdigit(MSVCRT_wint_t)
char n_sign_posn
Definition: msvcrt.h:331
MSVCRT___time64_t st_ctime
Definition: msvcrt.h:545
MSVCRT__dev_t st_dev
Definition: msvcrt.h:549
char * strtok_next
Definition: msvcrt.h:168
void(__cdecl * MSVCRT_terminate_handler)(void)
Definition: msvcrt.h:79
MSVCRT__off_t st_size
Definition: msvcrt.h:542
MSVCRT__off_t st_size
Definition: msvcrt.h:514
void free_locinfo(MSVCRT_pthreadlocinfo)
Definition: locale.c:641
MSVCRT_long quot
Definition: msvcrt.h:353
MSVCRT_intptr_t __cdecl MSVRT__spawnvpe(int, const char *, const char *const *, const char *const *)
MSVCRT_wchar_t *__cdecl MSVCRT__wgetenv(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 *)
int __cdecl MSVCRT_iswspace(MSVCRT_wint_t)
unsigned short MSVCRT_wchar_t
Definition: msvcrt.h:55
int(__cdecl * MSVCRT__onexit_t)(void)
Definition: msvcrt.h:86
void __cdecl MSVCRT__unlock_file(MSVCRT_FILE *)
unsigned short millitm
Definition: msvcrt.h:288
char *__cdecl MSVCRT__strdate(char *date)
unsigned short wCodePage
Definition: msvcrt.h:108
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:354
int MSVCRT__off_t
Definition: msvcrt.h:72
unsigned int total_clusters
Definition: msvcrt.h:411
char ** MSVCRT__environ
int __cdecl MSVCRT_fgetc(MSVCRT_FILE *)
int __cdecl MSVCRT_fclose(MSVCRT_FILE *)
GLenum GLsizei len
Definition: glext.h:6722
unsigned char BYTE
Definition: mem.h:68
MSVCRT_wchar_t ** msvcrt_SnapshotOfEnvironmentW(MSVCRT_wchar_t **)
MSVCRT___time64_t __cdecl MSVCRT__time64(MSVCRT___time64_t *)
int pf_printf_a(puts_clbk_a, void *, const char *, MSVCRT__locale_t, BOOL, BOOL, args_clbk, void *, __ms_va_list *)
int __cdecl _ismbstrail(const unsigned char *start, const unsigned char *str)
Definition: ismbtrl.c:32
GLenum mode
Definition: glext.h:6217
thread_data_t * msvcrt_get_thread_data(void)
Definition: tls.c:31
unsigned int attrib
Definition: msvcrt.h:436
MSVCRT___time32_t time_write
Definition: msvcrt.h:466
MSVCRT___time64_t modtime
Definition: msvcrt.h:498
unsigned short st_mode
Definition: msvcrt.h:509
MSVCRT_pthreadmbcinfo get_mbcinfo(void)
Definition: locale.c:364
char * asctime_buffer
Definition: msvcrt.h:176
short st_nlink
Definition: msvcrt.h:524
short timezone
Definition: msvcrt.h:296
char *__cdecl _strset(char *, int)
Definition: strset.c:44
MSVCRT___time32_t time_access
Definition: msvcrt.h:465
unsigned int lc_codepage
Definition: msvcrt.h:113
MSVCRT___time32_t st_atime
Definition: msvcrt.h:515
struct MSVCRT_tagLC_ID MSVCRT_LC_ID
unsigned int attrib
Definition: msvcrt.h:454
int MSVCRT___lc_codepage
char * efcvt_buffer
Definition: msvcrt.h:179
MSVCRT__ino_t st_ino
Definition: msvcrt.h:508
MSVCRT__locale_t MSVCRT_locale
Definition: msvcrt.h:885
MSVCRT__dev_t st_dev
Definition: msvcrt.h:507
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:152
void(__cdecl * MSVCRT_unexpected_handler)(void)
Definition: msvcrt.h:81
int __cdecl MSVCRT_vsnprintf(char *str, MSVCRT_size_t len, const char *format, __ms_va_list valist)
short st_gid
Definition: msvcrt.h:554
void __cdecl MSVCRT__exit(int)
unsigned int attrib
Definition: msvcrt.h:481
MSVCRT_unexpected_function unexpected_handler
Definition: msvcrt.h:188
struct MSVCRT_tm * time_buffer
Definition: msvcrt.h:178
int __cdecl MSVCRT__getdrive(void)
int _setmbcp_l(int, LCID, MSVCRT_pthreadmbcinfo)
Definition: _setmbcp.c:52
MSVCRT___time32_t st_mtime
Definition: msvcrt.h:516
void(__cdecl * MSVCRT_purecall_handler)(void)
Definition: msvcrt.h:88
MSVCRT___time32_t time
Definition: msvcrt.h:287
BOOL have_locale
Definition: msvcrt.h:185
int _bufsiz
Definition: msvcrt.h:307
GLuint start
Definition: gl.h:1545
MSVCRT__dev_t st_dev
Definition: msvcrt.h:535
__u16 date
Definition: mkdosfs.c:366
unsigned short wLanguage
Definition: msvcrt.h:106
short st_nlink
Definition: msvcrt.h:552
unsigned int attrib
Definition: msvcrt.h:418
HANDLE handle
Definition: msvcrt.h:163
double get_double
Definition: msvcrt.h:952
MSVCRT___time64_t time_write
Definition: msvcrt.h:475
struct MSVCRT__div_t MSVCRT_div_t
char * mon_decimal_point
Definition: msvcrt.h:319
char n_sep_by_space
Definition: msvcrt.h:329
int __cdecl MSVCRT__isleadbyte_l(int, MSVCRT__locale_t)
MSVCRT___time32_t actime
Definition: msvcrt.h:491
MSVCRT_wchar_t * wcstok_next
Definition: msvcrt.h:169
MSVCRT_long rem
Definition: msvcrt.h:354
unsigned short * pctype
Definition: msvcrt.h:131
MSVCRT___time32_t time_create
Definition: msvcrt.h:419
MSVCRT___time32_t time_create
Definition: msvcrt.h:455
char *__cdecl MSVCRT__strnset(char *, int, MSVCRT_size_t)
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
void(__cdecl * MSVCRT__se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info)
Definition: msvcrt.h:83
void * unk6[3]
Definition: msvcrt.h:190
void __cdecl MSVCRT_abort(void)
struct MSVCRT_lconv * lconv
Definition: msvcrt.h:128
MSVCRT___time32_t modtime
Definition: msvcrt.h:492
unsigned long MSVCRT_size_t
Definition: msvcrt.h:67
MSVCRT_size_t __cdecl MSVCRT_mbstowcs(MSVCRT_wchar_t *, const char *, MSVCRT_size_t)
Definition: name.c:38
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)
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
Definition: locale.c:711
EXCEPTION_RECORD * exc_record
Definition: msvcrt.h:192
struct MSVCRT_threadlocaleinfostruct::@1633 lc_category[6]
unsigned int ULONG
Definition: retypes.h:1
#define const
Definition: zconf.h:230
char int_frac_digits
Definition: msvcrt.h:324
MSVCRT__fsize_t size
Definition: msvcrt.h:422
static __ms_va_list valist
Definition: printf.c:64
int __cdecl _cprintf(const char *,...)
Definition: _cprintf.c:14
MSVCRT__fsize_t size
Definition: msvcrt.h:458
int __cdecl MSVCRT__snwprintf(MSVCRT_wchar_t *, unsigned int, const MSVCRT_wchar_t *,...)
int __cdecl MSVCRT_ungetc(int, MSVCRT_FILE *)
unsigned short MSVCRT_wint_t
Definition: msvcrt.h:56
int MSVCRT_long
Definition: msvcrt.h:60
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:184
MSVCRT___time32_t time_access
Definition: msvcrt.h:420
char * grouping
Definition: msvcrt.h:316
int get_int
Definition: msvcrt.h:950
long MSVCRT_intptr_t
Definition: msvcrt.h:68
MSVCRT_terminate_function terminate_handler
Definition: msvcrt.h:187
int MSVCRT___lc_collate_cp
Definition: locale.c:35
int unk3[2]
Definition: msvcrt.h:180
void *__cdecl MSVCRT_malloc(MSVCRT_size_t)
char n_cs_precedes
Definition: msvcrt.h:328
unsigned short MSVCRT_wctype_t
Definition: msvcrt.h:57
void __cdecl MSVCRT_terminate(void)
Definition: cpp.c:1080
int _charbuf
Definition: msvcrt.h:306
MSVCRT_wchar_t * wasctime_buffer
Definition: msvcrt.h:177
MSVCRT___time64_t time_write
Definition: msvcrt.h:448
char * thousands_sep
Definition: msvcrt.h:315
MSVCRT_ulong *__cdecl MSVCRT___doserrno(void)
unsigned int MSVCRT__dev_t
Definition: msvcrt.h:71
MSVCRT_ulong lc_handle[6]
Definition: msvcrt.h:115
MSVCRT_wchar_t ** MSVCRT__wenviron
MSVCRT__dev_t st_dev
Definition: msvcrt.h:521
int __cdecl MSVCRT__dup2(int, int)
#define __int64
Definition: basetyps.h:16
int __cdecl MSVCRT_raise(int sig)
MSVCRT_wchar_t * wcserror_buffer
Definition: msvcrt.h:172
unsigned int random_seed
Definition: msvcrt.h:167
int __cdecl _getch(void)
Definition: getch.c:16
char * strerror_buffer
Definition: msvcrt.h:171
char * mon_thousands_sep
Definition: msvcrt.h:320
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
int __cdecl MSVCRT__write(int, const void *, unsigned int)
MSVCRT_wchar_t * msvcrt_wstrdupa(const char *)
Definition: file.c:670
void msvcrt_init_mt_locks(void)
Definition: lock.c:54
Definition: fci.c:126
MSVCRT___time64_t time_access
Definition: msvcrt.h:438
MSVCRT_wchar_t *__cdecl MSVCRT__wcsdup(const MSVCRT_wchar_t *)