mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
c362135134
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.
103 lines
4.2 KiB
Plaintext
103 lines
4.2 KiB
Plaintext
# File name Caller Syscall name Args Strong name Weak names
|
|
|
|
accept - accept Ci:iBN __libc_accept accept
|
|
access - access i:si __access access
|
|
acct - acct i:S acct
|
|
adjtime - adjtime i:pp __adjtime adjtime
|
|
bind - bind i:ipi __bind bind
|
|
chdir - chdir i:s __chdir chdir
|
|
chmod - chmod i:si __chmod chmod
|
|
chown - chown i:sii __chown chown
|
|
chroot - chroot i:s chroot
|
|
close - close Ci:i __libc_close __close close
|
|
connect - connect Ci:ipi __libc_connect __connect connect
|
|
dup - dup i:i __dup dup
|
|
dup2 - dup2 i:ii __dup2 dup2
|
|
dup3 - dup3 i:iii __dup3 dup3
|
|
fchdir - fchdir i:i __fchdir fchdir
|
|
fchmod - fchmod i:ii __fchmod fchmod
|
|
fchown - fchown i:iii __fchown fchown
|
|
fcntl - fcntl Ci:iiF __libc_fcntl __fcntl fcntl
|
|
fstatfs - fstatfs i:ip __fstatfs fstatfs
|
|
fsync - fsync Ci:i __libc_fsync fsync
|
|
ftruncate - ftruncate i:ii __ftruncate ftruncate
|
|
getdomain - getdomainname i:si getdomainname
|
|
getgid - getgid Ei: __getgid getgid
|
|
getgroups - getgroups i:ip __getgroups getgroups
|
|
gethostid - gethostid i: gethostid
|
|
gethostname - gethostname i:bn __gethostname gethostname
|
|
getitimer - getitimer i:ip __getitimer getitimer
|
|
getpeername - getpeername i:ibN __getpeername getpeername
|
|
getpid - getpid Ei: __getpid getpid
|
|
getpriority - getpriority i:ii __getpriority getpriority
|
|
getrlimit - getrlimit i:ip __getrlimit getrlimit
|
|
getrusage - getrusage i:ip __getrusage getrusage
|
|
getsockname - getsockname i:ibN __getsockname getsockname
|
|
getsockopt - getsockopt i:iiiBN getsockopt
|
|
gettimeofday - gettimeofday i:pP __gettimeofday gettimeofday
|
|
getuid - getuid Ei: __getuid getuid
|
|
ioctl - ioctl i:iiI __ioctl ioctl
|
|
kill - kill i:ii __kill kill
|
|
link - link i:ss __link link
|
|
listen - listen i:ii __listen listen
|
|
lseek - lseek i:iii __libc_lseek __lseek lseek
|
|
madvise - madvise i:pii __madvise madvise
|
|
mkdir - mkdir i:si __mkdir mkdir
|
|
mmap - mmap b:aniiii __mmap mmap
|
|
mprotect - mprotect i:aii __mprotect mprotect
|
|
msync - msync Ci:aii __libc_msync msync
|
|
munmap - munmap i:ai __munmap munmap
|
|
open - open Ci:siv __libc_open __open open
|
|
profil - profil i:piii __profil profil
|
|
ptrace - ptrace i:iiii ptrace
|
|
read - read Ci:ibn __libc_read __read read
|
|
readlink - readlink i:spi __readlink readlink
|
|
readv - readv Ci:ipi __readv readv
|
|
reboot - reboot i:i reboot
|
|
recv - recv Ci:ibni __libc_recv recv
|
|
recvfrom - recvfrom Ci:ibniBN __libc_recvfrom __recvfrom recvfrom
|
|
recvmsg - recvmsg Ci:ipi __libc_recvmsg __recvmsg recvmsg
|
|
rename - rename i:ss rename
|
|
rmdir - rmdir i:s __rmdir rmdir
|
|
select - select Ci:iPPPP __select __libc_select select
|
|
send - send Ci:ibni __libc_send __send send
|
|
sendmsg - sendmsg Ci:ipi __libc_sendmsg __sendmsg sendmsg
|
|
sendto - sendto Ci:ibnibn __libc_sendto __sendto sendto
|
|
setdomain - setdomainname i:si setdomainname
|
|
setegid - setegid i:i __setegid setegid
|
|
seteuid - seteuid i:i __seteuid seteuid
|
|
setgid - setgid i:i __setgid setgid
|
|
setgroups - setgroups i:ip setgroups
|
|
sethostid - sethostid i:i sethostid
|
|
sethostname - sethostname i:pi sethostname
|
|
setitimer - setitimer i:ipp __setitimer setitimer
|
|
setpgid - setpgrp i:ii __setpgid setpgid
|
|
setpriority - setpriority i:iii __setpriority setpriority
|
|
setregid - setregid i:ii __setregid setregid
|
|
setreuid - setreuid i:ii __setreuid setreuid
|
|
setrlimit - setrlimit i:ip __setrlimit setrlimit
|
|
setsid - setsid i: __setsid setsid
|
|
setsockopt - setsockopt i:iiibn setsockopt __setsockopt
|
|
settimeofday - settimeofday i:PP __settimeofday settimeofday
|
|
setuid - setuid i:i __setuid setuid
|
|
shutdown - shutdown i:ii shutdown
|
|
sigaction - sigaction i:ipp __sigaction sigaction
|
|
sigsuspend - sigsuspend Ci:p sigsuspend
|
|
socket - socket i:iii __socket socket
|
|
socketpair - socketpair i:iiif socketpair
|
|
sstk - sstk b:i sstk
|
|
statfs - statfs i:sp __statfs statfs
|
|
swapoff - swapoff i:s swapoff
|
|
swapon - swapon i:s swapon
|
|
symlink - symlink i:ss __symlink symlink
|
|
sync - sync i: sync
|
|
syncfs - syncfs i:i syncfs
|
|
truncate - truncate i:si __truncate truncate
|
|
umask - umask Ei:i __umask umask
|
|
uname - uname i:p __uname uname
|
|
unlink - unlink i:s __unlink unlink
|
|
utimes - utimes i:sp __utimes utimes
|
|
vhangup - vhangup i:i vhangup
|
|
write - write Ci:ibn __libc_write __write write
|
|
writev - writev Ci:ipi __writev writev
|