summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-15 19:47:22 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-15 19:47:22 -0500
commit571312de5fe09764b2d469642636934f6d8cf608 (patch)
tree403cbfa5a2b147a31cd92c1cb89879b635317468 /include/stdio.h
parent8894947ba2b9f595d8aac1030b7c79f3c6a51f27 (diff)
downloadmusl-571312de5fe09764b2d469642636934f6d8cf608.tar.gz
musl-571312de5fe09764b2d469642636934f6d8cf608.tar.bz2
musl-571312de5fe09764b2d469642636934f6d8cf608.tar.xz
musl-571312de5fe09764b2d469642636934f6d8cf608.zip
move stdio stuff that's not arch-specific out of bits
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7441cae4..4abb1e65 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -38,7 +38,11 @@ extern "C" {
#define _IOLBF 1
#define _IONBF 2
-#include <bits/stdio.h>
+#define BUFSIZ 1024
+#define FILENAME_MAX 4095
+#define FOPEN_MAX 1000
+#define TMP_MAX 10000
+#define L_tmpnam 20
typedef union {
char __opaque[16];
@@ -136,14 +140,18 @@ ssize_t getdelim(char **, size_t *, int, FILE *);
ssize_t getline(char **, size_t *, FILE *);
int renameat(int, const char *, int, const char *);
char *ctermid(char *);
+#define L_ctermid 20
#endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define P_tmpdir "/tmp"
char *tempnam(const char *, const char *);
#endif
#if defined(_GNU_SOURCE)
+#define L_cuserid 20
+char *cuserid(char *);
#undef off64_t
#define off64_t off_t
#endif