projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git]
/
reactos
/
lib
/
sdk
/
crt
/
io
/
close.c
1
#include <precomp.h>
2
3
#define NDEBUG
4
#include <internal/debug.h>
5
6
/*
7
* @implemented
8
*/
9
int
_close
(
int
_fd
)
10
{
11
TRACE
(
"_close(%i)"
,
_fd
);
12
13
if
(
_fd
== -
1
)
14
return
(-
1
);
15
if
(
CloseHandle
((
HANDLE
)
_get_osfhandle
(
_fd
)) ==
FALSE
)
16
return
(-
1
);
17
//return
18
free_fd
(
_fd
);
19
return
(
0
);
20
}