2005-04-21 16:53:53 +02:00
|
|
|
#include <lib.h>
|
|
|
|
#define ioctl _ioctl
|
|
|
|
#include <minix/com.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
|
|
|
PUBLIC int ioctl(fd, request, data)
|
|
|
|
int fd;
|
|
|
|
int request;
|
|
|
|
void *data;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.TTY_LINE = fd;
|
|
|
|
m.TTY_REQUEST = request;
|
|
|
|
m.ADDRESS = (char *) data;
|
2010-06-08 15:58:01 +02:00
|
|
|
return(_syscall(VFS_PROC_NR, IOCTL, &m));
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|