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