X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fstdio.h;h=dca8acc0272857c7050d333561598e05bf898cd5;hp=7441cae4a58017542c3c51e86a8a2b551a56dd1f;hb=b1b3d3525bbc50a6781f57bfe423c7e18d64f625;hpb=80695b1d1e64a026c473a33965e680444e863e34 diff --git a/include/stdio.h b/include/stdio.h index 7441cae4..dca8acc0 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -38,7 +38,11 @@ extern "C" { #define _IOLBF 1 #define _IONBF 2 -#include +#define BUFSIZ 1024 +#define FILENAME_MAX 4095 +#define FOPEN_MAX 1000 +#define TMP_MAX 10000 +#define L_tmpnam 20 typedef union { char __opaque[16]; @@ -117,6 +121,8 @@ FILE *tmpfile(void); #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +FILE *fmemopen(void *, size_t, const char *); +FILE *open_memstream(char **, size_t *); FILE *fdopen(int, const char *); FILE *popen(const char *, const char *); int pclose(FILE *); @@ -136,16 +142,29 @@ 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 +int asprintf(char **, const char *, ...); +int vasprintf(char **, const char *, va_list); +void setlinebuf(FILE *); +void setbuffer(FILE *, char *, size_t); +int fpurge(FILE *); +int fgetc_unlocked(FILE *); +int fputc_unlocked(int, FILE *); +char *fgets_unlocked(char *, int, FILE *); +int fputs_unlocked(const char *, FILE *); #endif #ifdef __cplusplus