e354a5
From d4b4586315974d2471486d41891aa9463a5838ad Mon Sep 17 00:00:00 2001
e354a5
From: Florian Weimer <fweimer@redhat.com>
e354a5
Date: Thu, 16 Jul 2020 17:00:46 +0200
e354a5
Subject: [PATCH 05/11] libio: Add fseterr_unlocked for internal use
e354a5
e354a5
Tested-by: Carlos O'Donell <carlos@redhat.com>
e354a5
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
e354a5
---
e354a5
 include/stdio.h | 7 +++++++
e354a5
 1 file changed, 7 insertions(+)
e354a5
e354a5
diff -rup a/include/stdio.h b/include/stdio.h
e354a5
--- a/include/stdio.h	2020-09-14 17:39:06.191727167 -0400
e354a5
+++ b/include/stdio.h	2020-09-14 17:43:44.780222972 -0400
e354a5
@@ -9,6 +9,13 @@
e354a5
 
e354a5
 /* Now define the internal interfaces.  */
e354a5
 
e354a5
+/* Set the error indicator on FP.  */
e354a5
+static inline void
e354a5
+fseterr_unlocked (FILE *fp)
e354a5
+{
e354a5
+  fp->_flags |= _IO_ERR_SEEN;
e354a5
+}
e354a5
+
e354a5
 extern int __fcloseall (void) attribute_hidden;
e354a5
 extern int __snprintf (char *__restrict __s, size_t __maxlen,
e354a5
 		       const char *__restrict __format, ...)