This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] NPTL: Clean up gratuitous Linuxism in libpthread.so entry point.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Tue, 21 Oct 2014 10:18:42 -0700 (PDT)
- Subject: Re: [COMMITTED PATCH] NPTL: Clean up gratuitous Linuxism in libpthread.so entry point.
- Authentication-results: sourceware.org; auth=none
- References: <20141020215700 dot 252102C3B0A at topped-with-meat dot com> <Pine dot LNX dot 4 dot 64 dot 1410210041520 dot 30508 at digraph dot polyomino dot org dot uk>
Oops. Fixed thusly.
Thanks,
Roland
2014-10-21 Roland McGrath <roland@hack.frob.com>
* nptl/version.c (__nptl_main): Call __libc_write, not __write.
--- a/nptl/version.c
+++ b/nptl/version.c
@@ -38,6 +38,6 @@ __attribute__ ((noreturn))
void
__nptl_main (void)
{
- __write (STDOUT_FILENO, (const char *) banner, sizeof banner - 1);
+ __libc_write (STDOUT_FILENO, banner, sizeof banner - 1);
_exit (0);
}