summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64
diff options
context:
space:
mode:
authorHaruki Hasegawa <h6a.h4i.0@gmail.com>2014-10-13 00:50:47 +0900
committerElliott Hughes <enh@google.com>2014-10-13 17:04:10 -0700
commit18160256840e9bb097f17422ea47d54fabbc9f3f (patch)
tree9e214fedefed00a66099d8cc9abab4dd68cbec80 /libc/arch-x86_64
parentc229705051c8b6a06ad81c221ca74ef9aa743e13 (diff)
downloadbionic-18160256840e9bb097f17422ea47d54fabbc9f3f.zip
bionic-18160256840e9bb097f17422ea47d54fabbc9f3f.tar.gz
bionic-18160256840e9bb097f17422ea47d54fabbc9f3f.tar.bz2
Add clock_settime and clock_nanosleep.
Add the missing prototypes, fix the existing prototypes to use clockid_t rather than int, fix clock_nanosleep's failure behavior, and add simple tests. Bug: 17644443 Bug: https://code.google.com/p/android/issues/detail?id=77372 Change-Id: I03fba369939403918abcabae9551a7123953d780 Signed-off-by: Haruki Hasegawa <h6a.h4i.0@gmail.com>
Diffstat (limited to 'libc/arch-x86_64')
-rw-r--r--libc/arch-x86_64/syscalls/__clock_nanosleep.S (renamed from libc/arch-x86_64/syscalls/clock_nanosleep.S)5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/arch-x86_64/syscalls/clock_nanosleep.S b/libc/arch-x86_64/syscalls/__clock_nanosleep.S
index 2a79bdd..37726c0 100644
--- a/libc/arch-x86_64/syscalls/clock_nanosleep.S
+++ b/libc/arch-x86_64/syscalls/__clock_nanosleep.S
@@ -2,7 +2,7 @@
#include <private/bionic_asm.h>
-ENTRY(clock_nanosleep)
+ENTRY(__clock_nanosleep)
movq %rcx, %r10
movl $__NR_clock_nanosleep, %eax
syscall
@@ -13,4 +13,5 @@ ENTRY(clock_nanosleep)
call __set_errno_internal
1:
ret
-END(clock_nanosleep)
+END(__clock_nanosleep)
+.hidden __clock_nanosleep