X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Finternal%2Fstdio_impl.h;h=0b2438d613fe9d65c9f124358cbc7a8ca4a3cbc6;hb=fa4a8abd06a401822cc8ba4e352a219544c0118d;hp=44497344971821c326a511ccb5687d9463730b61;hpb=a21a6092cfc0c7e7cb8c0273e5f94d54c0e0eabd;p=musl diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index 44497344..0b2438d6 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -34,11 +34,9 @@ struct _IO_FILE { int fd; int pipe_pid; long lockcount; - short dummy3; - signed char mode; - signed char lbf; + int mode; volatile int lock; - volatile int waiters; + int lbf; void *cookie; off_t off; char *getln_buf; @@ -62,8 +60,6 @@ hidden size_t __stdout_write(FILE *, const unsigned char *, size_t); hidden off_t __stdio_seek(FILE *, off_t, int); hidden int __stdio_close(FILE *); -hidden size_t __string_read(FILE *, unsigned char *, size_t); - hidden int __toread(FILE *); hidden int __towrite(FILE *); @@ -106,7 +102,8 @@ hidden void __getopt_msg(const char *, const char *, const char *, size_t); #define putc_unlocked(c, f) \ ( (((unsigned char)(c)!=(f)->lbf && (f)->wpos!=(f)->wend)) \ - ? *(f)->wpos++ = (c) : __overflow((f),(c)) ) + ? *(f)->wpos++ = (unsigned char)(c) \ + : __overflow((f),(unsigned char)(c)) ) /* Caller-allocated FILE * operations */ hidden FILE *__fopen_rb_ca(const char *, FILE *, unsigned char *, size_t);