add mkostemp, mkstemps, and mkostemps functions and reorganize temp internals
[musl] / src / temp / mkostemp.c
diff --git a/src/temp/mkostemp.c b/src/temp/mkostemp.c
new file mode 100644 (file)
index 0000000..e73e22a
--- /dev/null
@@ -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);