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