X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fstdio.h;h=355f4259dedf337827307e90719fead8bd3f763f;hb=8cfbc8be82898c98fc0a93e2cc7912d9e649f32e;hp=b54fe195b9a28a27c4e294f357302b872f6fecef;hpb=7640497f5f28ddb4aa13528676a99b603320f47e;p=musl diff --git a/include/stdio.h b/include/stdio.h index b54fe195..355f4259 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -121,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 *); @@ -159,6 +161,22 @@ 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 _LARGEFILE64_SOURCE +#define tmpfile64 tmpfile +#define fopen64 fopen +#define freopen64 freopen +#define fseeko64 fseeko +#define ftello64 ftello +#define fgetpos64 fgetpos +#define fsetpos64 fsetpos +#define fpos64_t fpos_t +#define off64_t off_t #endif #ifdef __cplusplus