diff options
Diffstat (limited to 'otherlibs/unix/ftruncate.c')
-rw-r--r-- | otherlibs/unix/ftruncate.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/otherlibs/unix/ftruncate.c b/otherlibs/unix/ftruncate.c deleted file mode 100644 index 769ff86fb2..0000000000 --- a/otherlibs/unix/ftruncate.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <mlvalues.h> -#include "unix.h" - -#ifdef HAS_TRUNCATE - -value unix_ftruncate(fd, len) /* ML */ - value fd, len; -{ - if (ftruncate(Int_val(fd), Long_val(len)) == -1) - uerror("ftruncate", Nothing); - return Val_unit; -} - -#else - -value unix_ftruncate() { invalid_argument("ftruncate not implemented"); } - -#endif |