diff options
Diffstat (limited to 'otherlibs/unix/close.c')
-rw-r--r-- | otherlibs/unix/close.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/otherlibs/unix/close.c b/otherlibs/unix/close.c new file mode 100644 index 000000000..47ea2ef1d --- /dev/null +++ b/otherlibs/unix/close.c @@ -0,0 +1,9 @@ +#include <mlvalues.h> +#include "unix.h" + +value unix_close(fd) /* ML */ + value fd; +{ + if (close(Int_val(fd)) == -1) uerror("close", Nothing); + return Val_unit; +} |