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