Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/tests/lib/libc/sys
Module Name: src
Committed By: riastradh
Date: Thu Dec 19 20:07:16 UTC 2024
Modified Files:
src/tests/lib/libc/sys: t_getitimer.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/sys/t_getitimer.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index