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
/
io
/
close.c
1
#include <windows.h>
2
#include <msvcrt/io.h>
3
#include <msvcrt/internal/file.h>
4
5
#define NDEBUG
6
#include <msvcrt/msvcrtdbg.h>
7
8
/*
9
* @implemented
10
*/
11
int _close(int _fd)
12
{
13
DPRINT("_close(fd %d)\n", _fd);
14
if (_fd == -1)
15
return -1;
16
if (CloseHandle(_get_osfhandle(_fd)) == FALSE)
17
return -1;
18
return __fileno_close(_fd);
19
}