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
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
close.c
blob
587e5f1b40fb69f4ab730a7fe7c9b751a6c6e8de
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <unistd.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
close
,
_close
)
9
#endif
10
11
int
close
(
fd
)
12
int
fd
;
13
{
14
message m
;
15
16
m
.
m1_i1
=
fd
;
17
return
(
_syscall
(
VFS_PROC_NR
,
CLOSE
, &
m
));
18
}