summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-03-31 04:17:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-03-31 04:17:44 +0000
commitcdb29e3ea6c22f0c0358f0414e3ddb615b1c394f (patch)
tree2c867e60effb9df51b1a0fa615bb55b398561341 /include
parent9116dff92e5b362011431f073fe6aa98327be254 (diff)
Rework __gen_tempname() to better match glibc, and add mkstemp64(),
which is needed for busybox ash when using largefile support. -Erik
Diffstat (limited to 'include')
-rw-r--r--include/features.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h
index 98e575dca..e1060ce3e 100644
--- a/include/features.h
+++ b/include/features.h
@@ -417,6 +417,19 @@ uClibc was built without large file support enabled.
/* --- this is added to integrate linuxthreads */
#define __USE_UNIX98 1
+/* For want of a better place, here are some function prototypes
+ * for things from libc/misc/internals */
+#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 /* _LIBC only stuff */