glibc/resource
Joseph Myers c362135134 Fix nice getpriority, setpriority namespace (bug 18553).
nice (XPG3) calls getpriority and setpriority (in XPG4 but not XPG3,
i.e. UX-shaded in XPG4).  This patch fixes this by making those
functions into weak aliases of __* functions and calling the __*
versions as needed.

Tested for x86_64 and x86 (testsuite, and that disassembly of
installed shared libraries is unchanged by this patch).

This completes cleaning up the unsorted linknamespace test XFAILs.

	[BZ #18553]
	* resource/getpriority.c (getpriority): Rename to __getpriority
	and define as weak alias of __getpriority.
	* resource/setpriority.c (setpriority): Rename to __setpriority
	and define as weak alias of __setpriority.
	* sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
	__getpriority and define as weak alias of __getpriority.
	* sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
	__setpriority and define as weak alias of __setpriority.
	* sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
	strong name.
	(setpriority): Use __setpriority as strong name.
	* sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
	__getpriority and define as weak alias of __getpriority.
	* include/sys/resource.h (__getpriority): Declare.  Use
	libc_hidden_proto.
	(__setpriority): Likewise.
	(getpriority): Don't use libc_hidden_proto.
	(setpriority): Likewise.
	* sysdeps/posix/nice.c (nice): Call __getpriority instead of
	getpriority.  Call __setpriority instead of setpriority.
	* conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
	Remove variable.
2015-06-17 20:22:39 +00:00
..
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-ulimit1.c * resource/Makefile (tests): Add bug-ulimit1. 2008-10-31 17:33:50 +00:00
getpriority.c Fix nice getpriority, setpriority namespace (bug 18553). 2015-06-17 20:22:39 +00:00
getrlimit64.c Fix posix_spawn getrlimit64 namespace (bug 17991). 2015-02-18 00:26:35 +00:00
getrlimit.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getrusage.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
nice.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setpriority.c Fix nice getpriority, setpriority namespace (bug 18553). 2015-06-17 20:22:39 +00:00
setrlimit64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setrlimit.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-getrlimit.c * resource/Makefile (tests): Add tst-getrlimit. 2005-06-21 19:09:12 +00:00
ulimit.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ulimit.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Fix pthreads getrlimit, gettimeofday namespace (bug 17682). 2014-12-06 23:40:48 +00:00
vlimit.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
vtimes.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00