mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Remove __libc_waitpid function name.
Continuing the removal of unused __libc_* function names, this patch removes the __libc_waitpid name. Tested for x86_64 (testsuite, and that disassembly of installed shared libraries is unchanged by the patch; __waitpid, which is exported from shared libc, changes from weak to strong on some configurations, which is of no significance). * include/sys/wait.h (__libc_waitpid): Remove declaration. * posix/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid. * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid. * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove __libc_waitpid alias. * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise. * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove alias. * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to __waitpid. (__waitpid): Don't define as alias. Use libc_hidden_def not libc_hidden_weak. (waitpid): Define as alias of __waitpid.
This commit is contained in:
@@ -20,7 +20,7 @@ vm86old EXTRA vm86old i:p __vm86old vm86@GLIBC_2.0
|
||||
vm86 - vm86 i:ip __vm86 vm86@@GLIBC_2.3.4
|
||||
oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@GLIBC_2.0
|
||||
setrlimit - setrlimit i:ip __setrlimit setrlimit@GLIBC_2.0 setrlimit@@GLIBC_2.2
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid
|
||||
|
||||
prlimit64 EXTRA prlimit64 i:iipp prlimit64
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
chown - chown32 i:sii __chown chown
|
||||
lchown - lchown32 i:sii __lchown lchown
|
||||
fchown - fchown32 i:iii __fchown fchown
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid
|
||||
|
||||
getegid - getegid32 Ei: __getegid getegid
|
||||
geteuid - geteuid32 Ei: __geteuid geteuid
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# File name Caller Syscall name # args Strong name Weak names
|
||||
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid
|
||||
|
||||
@@ -15,7 +15,7 @@ getgroups - getgroups32 i:ip __getgroups getgroups
|
||||
setfsgid - setfsgid32 Ei:i setfsgid
|
||||
setfsuid - setfsuid32 Ei:i setfsuid
|
||||
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid
|
||||
|
||||
prlimit64 EXTRA prlimit64 i:iipp prlimit64
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# File name Caller Syscall name # args Strong name Weak names
|
||||
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid __libc_waitpid
|
||||
waitpid - waitpid Ci:ipi __waitpid waitpid
|
||||
|
||||
@@ -14,7 +14,5 @@ PSEUDO_END(__waitpid)
|
||||
libc_hidden_def (__waitpid)
|
||||
weak_alias (__waitpid, waitpid)
|
||||
libc_hidden_weak (waitpid)
|
||||
weak_alias (__waitpid, __libc_waitpid)
|
||||
libc_hidden_weak (__libc_waitpid)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <sys/wait.h>
|
||||
|
||||
__pid_t
|
||||
__libc_waitpid (__pid_t pid, int *stat_loc, int options)
|
||||
__waitpid (__pid_t pid, int *stat_loc, int options)
|
||||
{
|
||||
if (SINGLE_THREAD_P)
|
||||
{
|
||||
@@ -44,6 +44,5 @@ __libc_waitpid (__pid_t pid, int *stat_loc, int options)
|
||||
|
||||
return result;
|
||||
}
|
||||
weak_alias (__libc_waitpid, __waitpid)
|
||||
libc_hidden_weak (__waitpid)
|
||||
weak_alias (__libc_waitpid, waitpid)
|
||||
libc_hidden_def (__waitpid)
|
||||
weak_alias (__waitpid, waitpid)
|
||||
|
||||
Reference in New Issue
Block a user