source: trunk/minix/lib/posix/_ioctl.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 282 bytes
Line 
1#include <lib.h>
2#define ioctl _ioctl
3#include <minix/com.h>
4#include <sys/ioctl.h>
5
6PUBLIC int ioctl(fd, request, data)
7int fd;
8int request;
9void *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.