From: Florian Weimer Date: Thu, 16 Jul 2020 15:00:46 +0000 (+0200) Subject: libio: Add fseterr_unlocked for internal use X-Git-Tag: glibc-2.32~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4b4586315974d2471486d41891aa9463a5838ad;p=thirdparty%2Fglibc.git libio: Add fseterr_unlocked for internal use Tested-by: Carlos O'Donell Reviewed-by: Carlos O'Donell --- diff --git a/include/stdio.h b/include/stdio.h index bc67d020d46..ede0f3d4443 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, ...)