repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
etc/services - sync with NetBSD-8
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
close.c
blob
ac8c7f54c458e724ffa8be90e09cd68f3b3befa2
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <unistd.h>
7
8
int
9
close
(
int
fd
)
10
{
11
message m
;
12
13
memset
(&
m
,
0
,
sizeof
(
m
));
14
m
.
m_lc_vfs_close
.
fd
=
fd
;
15
m
.
m_lc_vfs_close
.
nblock
=
0
;
16
17
return
_syscall
(
VFS_PROC_NR
,
VFS_CLOSE
, &
m
);
18
}