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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
ioctl.c
blob
0c1610a34cb08ae11e6c2d861879a5d93a20867a
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <sys/ioctl.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
ioctl
,
_ioctl
)
9
#endif
10
11
int
ioctl
(
fd
,
request
,
data
)
12
int
fd
;
13
int
request
;
14
void
*
data
;
15
{
16
message m
;
17
18
m
.
TTY_LINE
=
fd
;
19
m
.
TTY_REQUEST
=
request
;
20
m
.
ADDRESS
= (
char
*)
data
;
21
return
(
_syscall
(
VFS_PROC_NR
,
IOCTL
, &
m
));
22
}