aboutsummaryrefslogtreecommitdiff
path: root/debug/fgetws_chk.c
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2018-02-07 19:41:01 -0500
committerZack Weinberg <zackw@panix.com>2018-02-21 14:22:50 -0500
commitdf6c012b99499d95ed7fee53553a9f4d4473ccae (patch)
tree09c971734b9a5d34ae9116966e828273ceaf83d7 /debug/fgetws_chk.c
parent177aad3ff637b32550aec8080314d76a189f7a03 (diff)
downloadglibc-df6c012b99499d95ed7fee53553a9f4d4473ccae.tar
glibc-df6c012b99499d95ed7fee53553a9f4d4473ccae.tar.gz
glibc-df6c012b99499d95ed7fee53553a9f4d4473ccae.tar.bz2
glibc-df6c012b99499d95ed7fee53553a9f4d4473ccae.zip
Remove _IO_file_flags define.
This entirely mechanical (except for some indentation fixups) patch replaces all uses of _IO_file_flags with _flags and removes the #define. Installed stripped libraries and executables are unchanged by this patch. * libio/libio.h (_IO_file_flags): Remove macro. All uses changed to _flags.
Diffstat (limited to 'debug/fgetws_chk.c')
-rw-r--r--debug/fgetws_chk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/fgetws_chk.c b/debug/fgetws_chk.c
index 8ea6635b30..2380059f0f 100644
--- a/debug/fgetws_chk.c
+++ b/debug/fgetws_chk.c
@@ -32,8 +32,8 @@ __fgetws_chk (wchar_t *buf, size_t size, int n, FILE *fp)
/* This is very tricky since a file descriptor may be in the
non-blocking mode. The error flag doesn't mean much in this
case. We return an error only when there is a new error. */
- old_error = fp->_IO_file_flags & _IO_ERR_SEEN;
- fp->_IO_file_flags &= ~_IO_ERR_SEEN;
+ old_error = fp->_flags & _IO_ERR_SEEN;
+ fp->_flags &= ~_IO_ERR_SEEN;
count = _IO_getwline (fp, buf, MIN ((size_t) n - 1, size), L'\n', 1);
/* If we read in some bytes and errno is EAGAIN, that error will
be reported for next read. */
@@ -46,7 +46,7 @@ __fgetws_chk (wchar_t *buf, size_t size, int n, FILE *fp)
buf[count] = '\0';
result = buf;
}
- fp->_IO_file_flags |= old_error;
+ fp->_flags |= old_error;
_IO_release_lock (fp);
return result;
}