|
NAMEtimer_create —
create a per-process timer (REALTIME)
LIBRARYPOSIX Real-time Library (librt, -lrt)SYNOPSIS#include <time.h>
#include <signal.h>
int
DESCRIPTIONThetimer_create () system call creates a per-process
timer using the specified clock, clock_id, as the timing
base. The timer_create () system call returns, in the
location referenced by timerid, a timer ID of type
timer_t used to identify the timer in timer requests.
This timer ID is unique within the calling process until the timer is deleted.
The particular clock, clock_id, is defined in
<time.h> . The timer whose ID
is returned is in a disarmed state upon return from
timer_create ().
The evp argument, if
non- If evp->sigev_notify is
If the evp argument is
This implementation supports a clock_id of
If evp->sigev_notify is
RETURN VALUESIf the call succeeds,timer_create () returns zero and
updates the location referenced by timerid to a
timer_t, which can be passed to the per-process timer
calls. If an error occurs, the system call returns a value of -1 and the
global variable errno is set to indicate the error. The
value of timerid is undefined if an error occurs.
ERRORSThetimer_create () system call will fail if:
SEE ALSOclock_getres(2), timer_delete(2), timer_getoverrun(2), sigevent(3), siginfo(3)STANDARDSThetimer_create () system call conforms to
IEEE Std 1003.1-2004 (“POSIX.1”).
HISTORYSupport for POSIX per-process timer first appeared in FreeBSD 7.0.
Visit the GSP FreeBSD Man Page Interface. |