X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Fstdio_impl.h;h=65dcfbda053968b768f22a79a539e9711157fb1a;hp=c5f45eb1eed42df486fbe1c3bd29e7fb7a0df524;hb=7650390de8f72822ec0d4a9fb5b52efcf0be4698;hpb=dba68bf98fc708cea4c478278c889fc7ad802b00 diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index c5f45eb1..65dcfbda 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -57,8 +57,10 @@ struct __FILE_s { int waiters; void *cookie; off_t off; - int (*flush)(FILE *); + char *getln_buf; void *mustbezero_2; + unsigned char *shend; + off_t shlim, shcnt; }; size_t __stdio_read(FILE *, unsigned char *, size_t); @@ -67,6 +69,8 @@ size_t __stdout_write(FILE *, const unsigned char *, size_t); off_t __stdio_seek(FILE *, off_t, int); int __stdio_close(FILE *); +size_t __string_read(FILE *, unsigned char *, size_t); + int __toread(FILE *); int __towrite(FILE *); @@ -84,8 +88,8 @@ int __putc_unlocked(int, FILE *); FILE *__fdopen(int, const char *); -#define OFLLOCK() LOCK(&libc.ofl_lock) -#define OFLUNLOCK() UNLOCK(&libc.ofl_lock) +#define OFLLOCK() LOCK(libc.ofl_lock) +#define OFLUNLOCK() UNLOCK(libc.ofl_lock) #define feof(f) ((f)->flags & F_EOF) #define ferror(f) ((f)->flags & F_ERR)