X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fstdio.h;h=19ab8bcdda3e87bba4dd367688af3d7161ae1fe9;hb=43a5a00e4ab292e0a615b655f1e77837d6c1701e;hp=e4740eb97e5339b3cd3d90d31fe6a1e9ea0cef40;hpb=419ae6d5c95629d3ebaff6f1880d52cb027ba924;p=musl diff --git a/include/stdio.h b/include/stdio.h index e4740eb9..19ab8bcd 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -157,20 +157,33 @@ char *tempnam(const char *, const char *); #if defined(_GNU_SOURCE) || defined(_BSD_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 *); +int fflush_unlocked(FILE *); +size_t fread_unlocked(void *, size_t, size_t, FILE *); +size_t fwrite_unlocked(const void *, size_t, size_t, FILE *); +void clearerr_unlocked(FILE *); +int feof_unlocked(FILE *); +int ferror_unlocked(FILE *); +int fileno_unlocked(FILE *); +int getw(FILE *); +int putw(int, FILE *); +#endif + +#ifdef _BSD_SOURCE +char *fgetln(FILE *, size_t *); +#endif + +#ifdef _GNU_SOURCE +int asprintf(char **, const char *, ...); +int vasprintf(char **, const char *, va_list); char *fgets_unlocked(char *, int, FILE *); int fputs_unlocked(const char *, FILE *); #endif -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) #define tmpfile64 tmpfile #define fopen64 fopen #define freopen64 freopen