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