Chromium Code Reviews

Unified Diff: fusl/src/temp/mkostemp.c

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « fusl/src/temp/mkdtemp.c ('k') | fusl/src/temp/mkostemps.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/temp/mkostemp.c
diff --git a/fusl/src/temp/mkostemp.c b/fusl/src/temp/mkostemp.c
new file mode 100644
index 0000000000000000000000000000000000000000..e73e22a68d1215ef935d37f93bf849460ca13b34
--- /dev/null
+++ b/fusl/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);
« no previous file with comments | « fusl/src/temp/mkdtemp.c ('k') | fusl/src/temp/mkostemps.c » ('j') | no next file with comments »

Powered by Google App Engine