1 | /*
|
---|
2 | * Header file for the stripped down version of MSVCRT that only
|
---|
3 | * contains functions specific to the MS VC Runtime.
|
---|
4 | *
|
---|
5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
6 | *
|
---|
7 | */
|
---|
8 |
|
---|
9 | #ifndef _minivcrt_h_
|
---|
10 | #define _minivcrt_h_
|
---|
11 |
|
---|
12 | #include <winnt.h>
|
---|
13 |
|
---|
14 | #include <time.h>
|
---|
15 |
|
---|
16 | #ifdef __cplusplus
|
---|
17 | extern "C" {
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #define MSVCRT(x) x
|
---|
21 |
|
---|
22 | #define FILENAME_MAX 260
|
---|
23 |
|
---|
24 | typedef unsigned long _fsize_t;
|
---|
25 |
|
---|
26 | struct _wfinddata_t {
|
---|
27 | unsigned attrib;
|
---|
28 | MSVCRT(time_t) time_create;
|
---|
29 | MSVCRT(time_t) time_access;
|
---|
30 | MSVCRT(time_t) time_write;
|
---|
31 | _fsize_t size;
|
---|
32 | WCHAR name[MSVCRT(FILENAME_MAX)];
|
---|
33 | };
|
---|
34 |
|
---|
35 | int _wchdir(const WCHAR*);
|
---|
36 | WCHAR* _wgetcwd(WCHAR*,int);
|
---|
37 | WCHAR* _wgetdcwd(int,WCHAR*,int);
|
---|
38 | int _wmkdir(const WCHAR*);
|
---|
39 | int _wrmdir(const WCHAR*);
|
---|
40 |
|
---|
41 | WCHAR* _itow(int,WCHAR*,int); /* NTDLL */
|
---|
42 | WCHAR* _i64tow(__int64,WCHAR*,int); /* NTDLL */
|
---|
43 | WCHAR* _ltow(long,WCHAR*,int); /* NTDLL */
|
---|
44 | WCHAR* _ui64tow(unsigned __int64,WCHAR*,int); /* NTDLL */
|
---|
45 | WCHAR* _ultow(unsigned long,WCHAR*,int); /* NTDLL */
|
---|
46 |
|
---|
47 | WCHAR* _wfullpath(WCHAR*,const WCHAR*,MSVCRT(size_t));
|
---|
48 | WCHAR* _wgetenv(const WCHAR*);
|
---|
49 | void _wmakepath(WCHAR*,const WCHAR*,const WCHAR*,const WCHAR*,const WCHAR*);
|
---|
50 | void _wperror(const WCHAR*); /* NTDLL */
|
---|
51 | int _wputenv(const WCHAR*);
|
---|
52 | void _wsearchenv(const WCHAR*,const WCHAR*,WCHAR*); /* NTDLL */
|
---|
53 | void _wsplitpath(const WCHAR*,WCHAR*,WCHAR*,WCHAR*,WCHAR*);
|
---|
54 |
|
---|
55 | int _wsystem(const WCHAR*);
|
---|
56 | int _wtoi(const WCHAR*); /* NTDLL */
|
---|
57 | __int64 _wtoi64(const WCHAR*); /* NTDLL */
|
---|
58 | long _wtol(const WCHAR*); /* NTDLL */
|
---|
59 |
|
---|
60 | #define _wcsicmp NTDLL__wcsicmp
|
---|
61 | #define _wcslwr NTDLL__wcslwr
|
---|
62 | #define _wcsnicmp NTDLL__wcsnicmp
|
---|
63 | #define _wcsupr NTDLL__wcsupr
|
---|
64 |
|
---|
65 | WCHAR* _wcsdup(const WCHAR*);
|
---|
66 | int _wcsicmp(const WCHAR*,const WCHAR*);
|
---|
67 | int _wcsicoll(const WCHAR*,const WCHAR*);
|
---|
68 | WCHAR* _wcslwr(WCHAR*);
|
---|
69 | int _wcsnicmp(const WCHAR*,const WCHAR*,MSVCRT(size_t));
|
---|
70 | WCHAR* _wcsnset(WCHAR*,WCHAR,MSVCRT(size_t));
|
---|
71 | WCHAR* _wcsrev(WCHAR*);
|
---|
72 | WCHAR* _wcsset(WCHAR*,WCHAR);
|
---|
73 | WCHAR* _wcsupr(WCHAR*);
|
---|
74 |
|
---|
75 | #ifdef __cplusplus
|
---|
76 | }
|
---|
77 | #endif
|
---|
78 |
|
---|
79 | #endif /* _minivcrt_h_ */
|
---|