diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-06-17 20:10:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-06-17 20:10:50 +0000 |
commit | be7dc2b77e368daad6f81e272fc41f1b86166240 (patch) | |
tree | 5cb0cc1d4c59e767c291a629aa4d35a9fd3688a3 /conform/Makefile | |
parent | a97e5e25576cb5e207b1e49f1eb4e52e6354daa7 (diff) | |
download | glibc-be7dc2b77e368daad6f81e272fc41f1b86166240.tar.gz glibc-be7dc2b77e368daad6f81e272fc41f1b86166240.tar.xz glibc-be7dc2b77e368daad6f81e272fc41f1b86166240.zip |
Fix syslog dprintf namespace (bug 18534).
syslog functions bring in references to dprintf, which wasn't added to POSIX until the 2008 edition and so isn't in various standards containing the syslog functions. This patch fixes this by making dprintf into a weak alias of __dprintf and using __dprintf as appropriate. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). [BZ #18534] * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def. (dprintf): Define as a weak alias of __dprintf, not a strong alias. * include/stdio.h (__dprintf): Declare. Use libc_hidden_proto. * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of dprintf. * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace): Remove variable. (test-xfail-UNIX98/syslog.h/linknamespace): Likewise. (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
Diffstat (limited to 'conform/Makefile')
-rw-r--r-- | conform/Makefile | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/conform/Makefile b/conform/Makefile index 567046fd16..9347b0f6a8 100644 --- a/conform/Makefile +++ b/conform/Makefile @@ -346,16 +346,13 @@ test-xfail-XOPEN2K8/ndbm.h/linknamespace = yes # Unsorted expected failures. test-xfail-XPG3/unistd.h/linknamespace = yes test-xfail-XPG4/fmtmsg.h/linknamespace = yes -test-xfail-XPG4/syslog.h/linknamespace = yes test-xfail-XPG4/unistd.h/linknamespace = yes test-xfail-POSIX/mqueue.h/linknamespace = yes test-xfail-POSIX/semaphore.h/linknamespace = yes test-xfail-UNIX98/fmtmsg.h/linknamespace = yes test-xfail-UNIX98/mqueue.h/linknamespace = yes -test-xfail-UNIX98/syslog.h/linknamespace = yes test-xfail-UNIX98/unistd.h/linknamespace = yes test-xfail-UNIX98/wchar.h/linknamespace = yes test-xfail-XOPEN2K/fmtmsg.h/linknamespace = yes -test-xfail-XOPEN2K/syslog.h/linknamespace = yes test-xfail-POSIX2008/semaphore.h/linknamespace = yes test-xfail-XOPEN2K8/fmtmsg.h/linknamespace = yes |