OpenGrok
Cross Reference: t_getitimer.c
xref
: /
src
/
tests
/
lib
/
libc
/
sys
/
t_getitimer.c
Home
|
History
|
Annotate
|
Download
|
only in
sys
History log of
/src/tests/lib/libc/sys/t_getitimer.c
Revision
Date
Author
Comments
1.5
19-Dec-2024
riastradh
t_getitimer: Test invalid itimerval arguments.
Use sig_atomic_t while here.
Ex-POSIX (POSIX.1-2008; the interface was removed in POSIX.1-2024)
prescribes EINVAL for all of these cases:
SYNOPSIS
#include <sys/time.h>
int getitimer(int which, struct itimerval *value);
int setitimer(int which, const struct itimerval *restrict value,
struct itimerval *restrict ovalue);
[...]
ERRORS
The setitimer() function shall fail if:
[EINVAL]
The value argument is not in canonical form. (In canonical
form, the number of microseconds is a non-negative integer
less than
1000000
and the number of seconds is a non-negative
integer.)
https://pubs.opengroup.org/onlinepubs/9699919799/functions/setitimer.html
1.4
04-Apr-2022
andvar
fix various typos, mainly in comments.
1.3
13-Jul-2019
gson
In the setitimer_old test case, allow for time passing between the two
setitimer() calls. Should fix PR kern/54370.
1.2
22-Mar-2012
christos
branches: 1.2.32;
dholland fixed PR/44927
1.1
07-Jul-2011
jruoho
branches: 1.1.2;
Add the syscall tests back. Couple of files and tests were also renamed for
consistency. All of these now mimic the libc structure.
1.1.2.1
17-Apr-2012
yamt
sync with head
1.2.32.1
13-Apr-2020
martin
Mostly merge changes from HEAD upto 20200411
Indexes created Tue Sep 30 11:09:46 GMT 2025