ReactOS 0.4.16-dev-2122-g1628f5e
misc.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS msvcrt.dll
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Miscellaneous functions and data
5 * COPYRIGHT: Copyright Timo Kreuzer <timo.kreuzer@reactos.org>
6 */
7
8#include <stdlib.h>
9#include <errno.h>
10#include <msvcrt.h>
11
12extern unsigned int MSVCRT__winver;
13
14unsigned char _mbcasemap[257] =
15{
16 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
17 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
18 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
19 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
20 0x0, 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
21 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 0x0, 0x0, 0x0, 0x0, 0x0,
22 0x0, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
23 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 0x0, 0x0, 0x0, 0x0, 0x0,
24};
25
26int _fileinfo = -1;
27
28unsigned char* __p__mbcasemap(void)
29{
30 return _mbcasemap;
31}
32
33int* __p__fileinfo(void)
34{
35 return &_fileinfo;
36}
37
39{
41 {
42 return EINVAL;
43 }
44
46 return 0;
47}
48
50{
52 return 0;
53}
54
57_get_winver(_Out_ unsigned int *_Value)
58{
60 {
61 return EINVAL;
62 }
63
65 return 0;
66}
#define NULL
Definition: types.h:112
int errno_t
Definition: corecrt.h:249
#define __cdecl
Definition: corecrt.h:121
#define EINVAL
Definition: errno.h:44
#define MSVCRT_CHECK_PMT(x)
Definition: msvcrt.h:378
errno_t __cdecl _get_winver(_Out_ unsigned int *_Value)
Definition: misc.c:57
int _get_fileinfo(_Out_ int *_Value)
Definition: misc.c:38
int _fileinfo
Definition: misc.c:26
int * __p__fileinfo(void)
Definition: misc.c:33
unsigned char * __p__mbcasemap(void)
Definition: misc.c:28
unsigned int MSVCRT__winver
Definition: data.c:39
int _set_fileinfo(_In_ int _Value)
Definition: misc.c:49
unsigned char _mbcasemap[257]
Definition: misc.c:14
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
_In_ _Value