diff options
Diffstat (limited to 'otherlibs/unix/ioctl.c')
-rw-r--r-- | otherlibs/unix/ioctl.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/otherlibs/unix/ioctl.c b/otherlibs/unix/ioctl.c deleted file mode 100644 index e4d2e5e6d4..0000000000 --- a/otherlibs/unix/ioctl.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <mlvalues.h> -#include "unix.h" - -value unix_ioctl_int(fd, request, arg) - value fd, request, arg; -{ - int retcode; - retcode = ioctl(Int_val(fd), Int_val(request), (char *) Int_val(arg)); - if (retcode == -1) uerror("ioctl_int", Nothing); - return Val_int(retcode); -} - -value unix_ioctl_ptr(fd, request, arg) - value fd, request, arg; -{ - int retcode; - retcode = ioctl(Int_val(fd), Int_val(request), String_val(arg)); - if (retcode == -1) uerror("ioctl_ptr", Nothing); - return Val_int(retcode); -} |