1 2 3 4 5 6 7 8 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; }