Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
nativetools
/
d1ead1c6d723debcaefc968c6cef46a9f823997b
/
.
/
nativelibc
/
posix-io
/
close.c
blob: a3ae0520c528ef10e31c62b3b0ed26391c7b42fc [
file
] [
log
] [
blame
] [
raw
]
#include
<windows.h>
#include
<nt.h>
//#include <errno.h>
int
close
(
int
fd
)
{
long
int
status
=
NtClose
((
void
*)
fd
);
//return ntstatus_to_errno(status) ? -1 : 0;
return
status
?
-
1
:
0
;
// TODO: implemente the errno
}