]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
libio: Add fseterr_unlocked for internal use
authorFlorian Weimer <fweimer@redhat.com>
Thu, 16 Jul 2020 15:00:46 +0000 (17:00 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 21 Jul 2020 05:33:42 +0000 (07:33 +0200)
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
include/stdio.h

index bc67d020d4664864016f0cda647b3c6415259944..ede0f3d444386f591602fe6f2cf9b24c10898e83 100644 (file)
 #  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, ...)