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-2003021201
[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
int _close(int _fd)
9
{
10
DPRINT("_close(fd %d)\n", _fd);
11
if (_fd == -1)
12
return -1;
13
if (CloseHandle(_get_osfhandle(_fd)) == FALSE)
14
return -1;
15
return __fileno_close(_fd);
16
}