source:
trunk/minix/lib/posix/_ioctl.c@
16
Last change on this file since 16 was 9, checked in by , 14 years ago | |
---|---|
File size: 282 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define ioctl _ioctl | |
3 | #include <minix/com.h> | |
4 | #include <sys/ioctl.h> | |
5 | ||
6 | PUBLIC int ioctl(fd, request, data) | |
7 | int fd; | |
8 | int request; | |
9 | void *data; | |
10 | { | |
11 | message m; | |
12 | ||
13 | m.TTY_LINE = fd; | |
14 | m.TTY_REQUEST = request; | |
15 | m.ADDRESS = (char *) data; | |
16 | return(_syscall(FS, IOCTL, &m)); | |
17 | } |
Note:
See TracBrowser
for help on using the repository browser.