1816025684
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>
18 lines
360 B
ArmAsm
18 lines
360 B
ArmAsm
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
#include <private/bionic_asm.h>
|
|
|
|
ENTRY(__clock_nanosleep)
|
|
movq %rcx, %r10
|
|
movl $__NR_clock_nanosleep, %eax
|
|
syscall
|
|
cmpq $-MAX_ERRNO, %rax
|
|
jb 1f
|
|
negl %eax
|
|
movl %eax, %edi
|
|
call __set_errno_internal
|
|
1:
|
|
ret
|
|
END(__clock_nanosleep)
|
|
.hidden __clock_nanosleep
|