about summary refs log tree commit diff
path: root/src/temp/mkostemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/temp/mkostemp.c')
-rw-r--r--src/temp/mkostemp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/temp/mkostemp.c b/src/temp/mkostemp.c
new file mode 100644
index 00000000..e73e22a6
--- /dev/null
+++ b/src/temp/mkostemp.c
@@ -0,0 +1,12 @@
+#define _BSD_SOURCE
+#include <stdlib.h>
+#include "libc.h"
+
+int __mkostemps(char *, int, int);
+
+int mkostemp(char *template, int flags)
+{
+	return __mkostemps(template, 0, flags);
+}
+
+LFS64(mkostemp);