summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/tempname.c1
-rw-r--r--libc/misc/internals/tempname.h16
2 files changed, 17 insertions, 0 deletions
diff --git a/libc/misc/internals/tempname.c b/libc/misc/internals/tempname.c
index 427c16cb5..573305162 100644
--- a/libc/misc/internals/tempname.c
+++ b/libc/misc/internals/tempname.c
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
+#include "tempname.h"
/* Return nonzero if DIR is an existent directory. */
diff --git a/libc/misc/internals/tempname.h b/libc/misc/internals/tempname.h
new file mode 100644
index 000000000..f068727a7
--- /dev/null
+++ b/libc/misc/internals/tempname.h
@@ -0,0 +1,16 @@
+#ifndef __TEMPNAME_H__
+#define __TEMPNAME_H__
+
+#define __need_size_t
+#include <stddef.h>
+extern int __path_search (char *tmpl, size_t tmpl_len, const char *dir,
+ const char *pfx, int try_tmpdir);
+extern int __gen_tempname (char *__tmpl, int __kind);
+
+/* The __kind argument to __gen_tempname may be one of: */
+#define __GT_FILE 0 /* create a file */
+#define __GT_BIGFILE 1 /* create a file, using open64 */
+#define __GT_DIR 2 /* create a directory */
+#define __GT_NOCREATE 3 /* just find a name not currently in use */
+
+#endif