diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 12:55:01 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-09-02 12:55:01 +0000 |
commit | 1517cea772058b0fcbe778d05b8b99c7e6f3b25f (patch) | |
tree | a2d817fe623f81b7729ed3cd2e128cad91eca02b /otherlibs/unix/fcntl.c | |
parent | d75918f7e459b507ac6b4b95f14df0a1eedd4937 (diff) |
Sources C convertis en ANSI C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/fcntl.c')
-rw-r--r-- | otherlibs/unix/fcntl.c | 16 |
1 files changed, 6 insertions, 10 deletions
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 |