aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-06-17 20:19:04 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-06-17 20:19:04 +0000
commitdfa2d21450f44b3ea7129858764c1508d87ae27a (patch)
treecc3fa42935be73b104d06eaa3df12b5644a8c9dc /ChangeLog
parentc21d37deb268afc45fbc5bba1a97f87afd0bf656 (diff)
downloadglibc-dfa2d21450f44b3ea7129858764c1508d87ae27a.tar.xz
glibc-dfa2d21450f44b3ea7129858764c1508d87ae27a.zip
Fix mq_receive, mq_send mq_timed* namespace (bug 18545).
mq_receive calls mq_timedreceive, and mq_send calls mq_timedsend. But mq_receive and mq_send were in POSIX by 1996, while mq_timed* were added in the 2001 edition of POSIX. This patch fixes this by making mq_timed* into weak aliases for __mq_timed* and calling the __mq_timed* names. Tested for x86_64 and x86 (testsuite, and that disassembly of installed shared libraries is unchanged by the patch). [BZ #18545] * rt/mq_timedreceive.c (mq_timedreceive): Rename to __mq_timedreceive and define as alias of __mq_timedreceive. Use hidden_weak. * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and define as alias of __mq_timedsend. Use hidden_weak. * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use __mq_timedsend as strong name. (mq_timedreceive): Use __mq_timedreceive as strong name. * include/mqueue.h (__mq_timedsend): Declare. Use hidden_proto. (__mq_timedreceive): Likewise. * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call __mq_timedreceive instead of mq_timedreceive. * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend instead of mq_timedsend. * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace): Remove variable.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ec139f1a4..9e45c2eb3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,23 @@
2015-06-17 Joseph Myers <joseph@codesourcery.com>
+ [BZ #18545]
+ * rt/mq_timedreceive.c (mq_timedreceive): Rename to
+ __mq_timedreceive and define as alias of __mq_timedreceive. Use
+ hidden_weak.
+ * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
+ define as alias of __mq_timedsend. Use hidden_weak.
+ * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
+ __mq_timedsend as strong name.
+ (mq_timedreceive): Use __mq_timedreceive as strong name.
+ * include/mqueue.h (__mq_timedsend): Declare. Use hidden_proto.
+ (__mq_timedreceive): Likewise.
+ * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
+ __mq_timedreceive instead of mq_timedreceive.
+ * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
+ instead of mq_timedsend.
+ * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
+ Remove variable.
+
* sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
hidden_def and hidden_weak instead of libc_hidden_def and
libc_hidden_weak.