2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
#include <lib.h>
|
|
|
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
|
|
|
#ifdef __weak_alias
|
|
|
|
__weak_alias(ioctl, _ioctl)
|
|
|
|
#endif
|
|
|
|
|
2012-03-25 20:25:53 +02:00
|
|
|
int ioctl(fd, request, data)
|
2011-02-17 18:11:09 +01:00
|
|
|
int fd;
|
|
|
|
int request;
|
|
|
|
void *data;
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
|
|
|
m.TTY_LINE = fd;
|
|
|
|
m.TTY_REQUEST = request;
|
|
|
|
m.ADDRESS = (char *) data;
|
|
|
|
return(_syscall(VFS_PROC_NR, IOCTL, &m));
|
|
|
|
}
|