diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-06-13 15:52:43 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-06-13 15:52:43 +0000 |
commit | 6cc9c438667c56c0fb66e1b8d2366b6efb94805b (patch) | |
tree | cebcadbaa332f69410bf6438251c686168339687 /otherlibs/unix/ioctl.c | |
parent | f7ccaf7b6c4365b7b1b640949de3b3e54356782c (diff) |
Eradication des warnings de gcc.
Nettoyages divers.
Suppression de ioctl.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/ioctl.c')
-rw-r--r-- | otherlibs/unix/ioctl.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/otherlibs/unix/ioctl.c b/otherlibs/unix/ioctl.c deleted file mode 100644 index e2fd9ed28..000000000 --- a/otherlibs/unix/ioctl.c +++ /dev/null @@ -1,33 +0,0 @@ -/***********************************************************************/ -/* */ -/* Objective Caml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* Automatique. Distributed only by permission. */ -/* */ -/***********************************************************************/ - -/* $Id$ */ - -#include <mlvalues.h> -#include "unixsupport.h" - -value unix_ioctl_int(fd, request, arg) - value fd, request, arg; -{ - int retcode; - retcode = ioctl(Int_val(fd), Int_val(request), (char *) Long_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); -} |