aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-11-01 12:26:09 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-11-01 12:26:09 +0000
commit1679ba8eb6b55a612e15b50139cd2a7ffde61d43 (patch)
tree57649af3302dca71603fab2c0b12805adb04f89d /posix
parent2626c18374b0260a9b4afb7763de19488a87d2ba (diff)
downloadglibc-1679ba8eb6b55a612e15b50139cd2a7ffde61d43.tar
glibc-1679ba8eb6b55a612e15b50139cd2a7ffde61d43.tar.gz
glibc-1679ba8eb6b55a612e15b50139cd2a7ffde61d43.tar.bz2
glibc-1679ba8eb6b55a612e15b50139cd2a7ffde61d43.zip
Remove __libc_nanosleep function name.
Continuing the removal of unused __libc_* function names, this patch removes the __libc_nanosleep name. Tested for x86_64 (testsuite, and that the disassembly of installed shared libraries is unchanged by the patch; __nanosleep changes from weak to strong, which is of no significance). * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep. (__nanosleep): Do not define as alias. (nanosleep): Define as alias of __nanosleep. * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove __libc_nanosleep name.
Diffstat (limited to 'posix')
-rw-r--r--posix/nanosleep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/posix/nanosleep.c b/posix/nanosleep.c
index 19111e3247..3a0e433f6e 100644
--- a/posix/nanosleep.c
+++ b/posix/nanosleep.c
@@ -21,14 +21,13 @@
/* Pause execution for a number of nanoseconds. */
int
-__libc_nanosleep (const struct timespec *requested_time,
- struct timespec *remaining)
+__nanosleep (const struct timespec *requested_time,
+ struct timespec *remaining)
{
__set_errno (ENOSYS);
return -1;
}
stub_warning (nanosleep)
-weak_alias (__libc_nanosleep, __nanosleep)
libc_hidden_def (__nanosleep)
-weak_alias (__libc_nanosleep, nanosleep)
+weak_alias (__nanosleep, nanosleep)