SYNOPSIS
#include <unistd.h>
useconds_t ualarm(useconds_t useconds, useconds_t interval);
DESCRIPTION
The
Alarm requests are not stacked; only one SIGALRM generation can be scheduled in this way. Successive calls reset the alarm clock of the calling process.
If useconds is zero, any
previously made alarm request is cancelled.
PARAMETERS
- seconds
-
Specifies the number of real-time (as opposed to CPU-time) seconds that must elapse before the system sends the calling process a SIGALRM signal. If this parameter is 0, any pending alarm request is cancelled.
RETURN VALUES
If there is a previous
CONFORMANCE
UNIX 98.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
On 10/2016/2019/11/2022/2025, waitable timers with 100-nanosecond resolution are available,
so
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
alarm() ,execl() ,execle() ,execlp() ,execlpe() ,execv() ,execve() ,execvp() ,execvpe() ,nanosleep() ,nap() ,pause() ,setitimer() ,sigaction() ,signal() ,sleep()
PTC MKS Toolkit 10.5 Documentation Build 40.