From 1517cea772058b0fcbe778d05b8b99c7e6f3b25f Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Tue, 2 Sep 1997 12:55:01 +0000 Subject: Sources C convertis en ANSI C git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/unix/fcntl.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'otherlibs/unix/fcntl.c') diff --git a/otherlibs/unix/fcntl.c b/otherlibs/unix/fcntl.c index 1324aa2bc..e50662f01 100644 --- a/otherlibs/unix/fcntl.c +++ b/otherlibs/unix/fcntl.c @@ -22,8 +22,7 @@ #define O_NONBLOCK O_NDELAY #endif -value unix_set_nonblock(fd) - value fd; +value unix_set_nonblock(value fd) { int retcode; retcode = fcntl(Int_val(fd), F_GETFL, 0); @@ -33,8 +32,7 @@ value unix_set_nonblock(fd) return Val_unit; } -value unix_clear_nonblock(fd) - value fd; +value unix_clear_nonblock(value fd) { int retcode; retcode = fcntl(Int_val(fd), F_GETFL, 0); @@ -46,8 +44,7 @@ value unix_clear_nonblock(fd) #ifdef FD_CLOEXEC -value unix_set_close_on_exec(fd) - value fd; +value unix_set_close_on_exec(value fd) { int retcode; retcode = fcntl(Int_val(fd), F_GETFD, 0); @@ -57,8 +54,7 @@ value unix_set_close_on_exec(fd) return Val_unit; } -value unix_clear_close_on_exec(fd) - value fd; +value unix_clear_close_on_exec(value fd) { int retcode; retcode = fcntl(Int_val(fd), F_GETFD, 0); @@ -70,10 +66,10 @@ value unix_clear_close_on_exec(fd) #else -value unix_set_close_on_exec() +value unix_set_close_on_exec(value fd) { invalid_argument("set_close_on_exec not implemented"); } -value unix_clear_close_on_exec() +value unix_clear_close_on_exec(value fd) { invalid_argument("clear_close_on_exec not implemented"); } #endif -- cgit v1.2.3-70-g09d2