public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] libio: Add fseterr_unlocked for internal use
@ 2020-07-21 6:26 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-07-21 6:26 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d4b4586315974d2471486d41891aa9463a5838ad
commit d4b4586315974d2471486d41891aa9463a5838ad
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Jul 16 17:00:46 2020 +0200
libio: Add fseterr_unlocked for internal use
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diff:
---
include/stdio.h | 7 +++++++
1 file changed, 7 insertions(+)
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, ...)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-21 6:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 6:26 [glibc] libio: Add fseterr_unlocked for internal use Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).