platform_bionic/libc
Greg Hackmann d15dfb2ff5 clock_nanosleep: add CLOCK_THREAD_CPUTIME_ID special case
POSIX makes "the CPU-time clock of the calling thread" (i.e.,
CLOCK_THREAD_CPUTIME_ID) a special case which returns EINVAL instead of
ENOTSUP.

However, the clock_nanosleep syscall treats this clock just like any
other, and returns -EOPNOTSUPP to indicate an unimplemented nanosleep
handler.  So we need to handle this ourselves in userspace.

This change fixes the LTP clock_nanosleep01 testcase.

Change-Id: If3bed940d276834bcd114d8c17f96197e9384711
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2016-03-28 10:29:16 -07:00
..
arch-arm Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
arch-arm64 Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
arch-common/bionic Properly align init/fini_arrays for crtend.o 2015-05-07 12:56:15 -07:00
arch-mips Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
arch-mips64 Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
arch-x86 fixup x86 setdomainname.S 2016-03-27 14:52:58 -07:00
arch-x86_64 Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
bionic clock_nanosleep: add CLOCK_THREAD_CPUTIME_ID special case 2016-03-28 10:29:16 -07:00
dns Don't leak sockets if setsockopt() or fchown() fail. 2016-03-09 12:11:13 +09:00
include Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
kernel Updated to v4.4.1 kernel headers. 2016-02-05 16:03:55 -08:00
malloc_debug Fix race in malloc debug option free_track. 2016-03-16 17:38:08 -07:00
private libc: implement kernel vdso syscalls for i386 2016-03-25 14:10:05 -07:00
stdio Add fopen64/freopen64/tmpfile64 aliases. 2016-02-03 11:24:28 -08:00
stdlib Revert "Revert "Remove __sinit and __sdidinit."" 2015-12-05 07:30:59 -08:00
tools libc: implement kernel vdso syscalls for i386 2016-03-25 14:10:05 -07:00
tzcode Remove mktime_tz. 2016-01-06 09:15:02 -08:00
upstream-freebsd Move several FreeBSD functions to OpenBSD. 2015-09-14 19:01:58 -07:00
upstream-netbsd Fix regerror(..., nullptr, 0). 2016-02-12 16:00:53 -08:00
upstream-openbsd Implement funopen64. 2016-01-26 14:45:13 -08:00
zoneinfo Update timezone data to 2016a 2016-02-25 17:53:37 +00:00
Android.bp Update Android.bp with recent *.mk changes 2016-03-03 15:41:14 -08:00
Android.mk Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
crt.mk Tell kati about generated dependencies around crt 2016-01-28 19:39:50 +09:00
libc.arm.brillo.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.arm.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.arm64.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.map.txt Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.mips.brillo.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.mips.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.mips64.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.x86.brillo.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.x86.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
libc.x86_64.map Add hasmntopt(3) 2016-03-25 14:16:58 -07:00
MODULE_LICENSE_BSD
NOTICE Update NOTICE files. 2016-02-08 17:00:12 -08:00
SYSCALLS.TXT Add {get,set}domainname(2) 2016-03-25 14:16:58 -07:00
version_script.txt Revert "Fix volantis boot." 2015-05-08 09:36:03 -07:00