diff options
| author | Florian Weimer <fweimer@redhat.com> | 2020-07-16 17:00:46 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2020-07-21 07:33:42 +0200 |
| commit | d4b4586315974d2471486d41891aa9463a5838ad (patch) | |
| tree | 81d38a1d9b280dac2eb5e4512f6c100741266d41 /include | |
| parent | 9980bf0b307368959cb29f3ca3f7446ad92347f1 (diff) | |
| download | glibc-d4b4586315974d2471486d41891aa9463a5838ad.tar.xz glibc-d4b4586315974d2471486d41891aa9463a5838ad.zip | |
libio: Add fseterr_unlocked for internal use
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index bc67d020d4..ede0f3d444 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -31,6 +31,13 @@ # define stdio_hidden_ldbl_proto(p,f) libc_hidden_proto (p ## f) # endif +/* Set the error indicator on FP. */ +static inline void +fseterr_unlocked (FILE *fp) +{ + fp->_flags |= _IO_ERR_SEEN; +} + extern int __fcloseall (void) attribute_hidden; extern int __snprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) |
