mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Fix symbol definitions for __clock_* functions
__clock_gettime and other __clock_* functions could result in an extra PLT reference within libc.so if it actually gets used. None of the code currently uses them, which is why this probably went unnoticed.
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
|
||||
__clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
|
||||
{
|
||||
/* We don't allow any process ID but our own. */
|
||||
if (pid != 0 && pid != getpid ())
|
||||
@ -37,4 +37,4 @@ clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
|
||||
return ENOENT;
|
||||
#endif
|
||||
}
|
||||
strong_alias (clock_getcpuclockid, __clock_getcpuclockid)
|
||||
weak_alias (__clock_getcpuclockid, clock_getcpuclockid)
|
||||
|
Reference in New Issue
Block a user