summary refs log tree commit diff
path: root/sysdeps/unix/syscalls.list
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2019-12-23 11:45:01 -0800
committerAlistair Francis <alistair.francis@wdc.com>2020-04-02 09:21:06 -0700
commita51e03588937ad804a9f583ea3d0fc0a4d088c33 (patch)
treef77bf16cbc4562ca3cc40625042406f20f230e78 /sysdeps/unix/syscalls.list
parent1c634e677f584ea264f984eb408a5142150af855 (diff)
downloadglibc-a51e03588937ad804a9f583ea3d0fc0a4d088c33.tar.gz
glibc-a51e03588937ad804a9f583ea3d0fc0a4d088c33.tar.xz
glibc-a51e03588937ad804a9f583ea3d0fc0a4d088c33.zip
linux: Use long time_t __getitimer/__setitimer
The Linux kernel expects itimerval to use a 32-bit time_t, even on archs
with a 64-bit time_t (like RV32). To address this let's convert
itimerval to/from 32-bit and 64-bit to ensure the kernel always gets
a 32-bit time_t.

While we are converting these functions let's also convert them to be
the y2038 safe versions. This means there is a *64 function that is
called by a backwards compatible wrapper.

Tested-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/syscalls.list')
-rw-r--r--sysdeps/unix/syscalls.list2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/unix/syscalls.list b/sysdeps/unix/syscalls.list
index e28e801c7a..d249049d6e 100644
--- a/sysdeps/unix/syscalls.list
+++ b/sysdeps/unix/syscalls.list
@@ -25,7 +25,6 @@ getgid		-	getgid		Ei:	__getgid	getgid
 getgroups	-	getgroups	i:ip	__getgroups	getgroups
 gethostid	-	gethostid	i:	gethostid
 gethostname	-	gethostname	i:bn	__gethostname	gethostname
-getitimer	-	getitimer	i:ip	__getitimer	getitimer
 getpeername	-	getpeername	i:ibN	__getpeername	getpeername
 getpid		-	getpid		Ei:	__getpid	getpid
 getpriority	-	getpriority	i:ii	__getpriority	getpriority
@@ -67,7 +66,6 @@ setgid		-	setgid		i:i	__setgid	setgid
 setgroups	-	setgroups	i:ip	setgroups
 sethostid	-	sethostid	i:i	sethostid
 sethostname	-	sethostname	i:pi	sethostname
-setitimer	-	setitimer	i:ipp	__setitimer	setitimer
 setpgid		-	setpgrp		i:ii	__setpgid	setpgid
 setpriority	-	setpriority	i:iii	__setpriority	setpriority
 setregid	-	setregid	i:ii	__setregid	setregid