git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003091401
[reactos.git]
/
lib
/
crtdll
/
stdlib
/
errno.c
1
#include <windows.h>
2
#include <msvcrt/errno.h>
3
4
#undef errno
5
int errno;
6
7
#undef _doserrno
8
int _doserrno;
9
10
#undef _fpecode
11
int fpecode;
12
13
/*
14
* @implemented
15
*/
16
int *_errno(void)
17
{
18
return &errno;
19
}
20
21
22
int __set_errno (int error)
23
{
24
errno = error;
25
return error;
26
}
27
28
29
30
/*
31
* @implemented
32
*/
33
int * __fpecode ( void )
34
{
35
return &fpecode;
36
}
37
38
/*
39
* @implemented
40
*/
41
int* __doserrno(void)
42
{
43
_doserrno = GetLastError();
44
return &_doserrno;
45
}