public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Assume that _IO_MTSAFE_IO is always defined in libio/stdfiles.c
@ 2018-06-19  9:03 Florian Weimer
  2018-06-19  9:14 ` Andreas Schwab
  0 siblings, 1 reply; 10+ messages in thread
From: Florian Weimer @ 2018-06-19  9:03 UTC (permalink / raw)
  To: libc-alpha

2018-06-19  Florian Weimer  <fweimer@redhat.com>

	* libio/stdfiles.c (DEF_STDFILE): Assume that _IO_MTSAFE_IO is
	always defined.

diff --git a/libio/stdfiles.c b/libio/stdfiles.c
index 8d96f0b65c..18e1172ad0 100644
--- a/libio/stdfiles.c
+++ b/libio/stdfiles.c
@@ -33,22 +33,13 @@
 
 #include "libioP.h"
 
-#ifdef _IO_MTSAFE_IO
-# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
+#define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
   static _IO_lock_t _IO_stdfile_##FD##_lock = _IO_lock_initializer; \
   static struct _IO_wide_data _IO_wide_data_##FD \
     = { ._wide_vtable = &_IO_wfile_jumps }; \
   struct _IO_FILE_plus NAME \
     = {FILEBUF_LITERAL(CHAIN, FLAGS, FD, &_IO_wide_data_##FD), \
        &_IO_file_jumps};
-#else
-# define DEF_STDFILE(NAME, FD, CHAIN, FLAGS) \
-  static struct _IO_wide_data _IO_wide_data_##FD \
-    = { ._wide_vtable = &_IO_wfile_jumps }; \
-  struct _IO_FILE_plus NAME \
-    = {FILEBUF_LITERAL(CHAIN, FLAGS, FD, &_IO_wide_data_##FD), \
-       &_IO_file_jumps};
-#endif
 
 DEF_STDFILE(_IO_2_1_stdin_, 0, 0, _IO_NO_WRITES);
 DEF_STDFILE(_IO_2_1_stdout_, 1, &_IO_2_1_stdin_, _IO_NO_READS);

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-19 10:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19  9:03 [PATCH] Assume that _IO_MTSAFE_IO is always defined in libio/stdfiles.c Florian Weimer
2018-06-19  9:14 ` Andreas Schwab
2018-06-19  9:17   ` Florian Weimer
2018-06-19  9:27     ` Andreas Schwab
2018-06-19  9:29       ` Florian Weimer
2018-06-19  9:31         ` Andreas Schwab
2018-06-19  9:57           ` Florian Weimer
2018-06-19 10:16             ` Andreas Schwab
2018-06-19 10:18               ` Florian Weimer
2018-06-19 10:30                 ` Andreas Schwab

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).