summaryrefslogtreecommitdiff
path: root/otherlibs/unix/umask.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/umask.c')
-rw-r--r--otherlibs/unix/umask.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/otherlibs/unix/umask.c b/otherlibs/unix/umask.c
new file mode 100644
index 0000000000..e5581fb2b8
--- /dev/null
+++ b/otherlibs/unix/umask.c
@@ -0,0 +1,8 @@
+#include <mlvalues.h>
+#include "unix.h"
+
+value unix_umask(perm) /* ML */
+ value perm;
+{
+ return Val_int(umask(Int_val(perm)));
+}