This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18545] mq_receive, mq_send mq_timed* namespace
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 17 Jun 2015 20:19:58 +0000
- Subject: [Bug libc/18545] mq_receive, mq_send mq_timed* namespace
- Auto-submitted: auto-generated
- References: <bug-18545-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18545
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via dfa2d21450f44b3ea7129858764c1508d87ae27a (commit)
from c21d37deb268afc45fbc5bba1a97f87afd0bf656 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=dfa2d21450f44b3ea7129858764c1508d87ae27a
commit dfa2d21450f44b3ea7129858764c1508d87ae27a
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Jun 17 20:19:04 2015 +0000
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 18 ++++++++++++++++++
NEWS | 2 +-
conform/Makefile | 1 -
include/mqueue.h | 4 ++++
rt/mq_timedreceive.c | 6 ++++--
rt/mq_timedsend.c | 6 ++++--
sysdeps/unix/sysv/linux/mq_receive.c | 2 +-
sysdeps/unix/sysv/linux/mq_send.c | 2 +-
sysdeps/unix/sysv/linux/syscalls.list | 4 ++--
9 files changed, 35 insertions(+), 10 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.