aboutsummaryrefslogtreecommitdiffstats
path: root/man2/timer_create.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/timer_create.2')
-rw-r--r--man2/timer_create.214
1 files changed, 7 insertions, 7 deletions
diff --git a/man2/timer_create.2 b/man2/timer_create.2
index a75208607d..d51111ac5f 100644
--- a/man2/timer_create.2
+++ b/man2/timer_create.2
@@ -52,7 +52,7 @@ The ID of the new timer is returned in the buffer pointed to by
which must be a non-null pointer.
This ID is unique within the process, until the timer is deleted.
The new timer is initially disarmed.
-
+.PP
The
.I clockid
argument specifies the clock that the new timer uses to measure time.
@@ -119,7 +119,7 @@ returned by a call to
.BR clock_getcpuclockid (3)
or
.BR pthread_getcpuclockid (3).
-
+.PP
The
.I sevp
argument points to a
@@ -128,7 +128,7 @@ structure that specifies how the caller
should be notified when the timer expires.
For the definition and general details of this structure, see
.BR sigevent (7).
-
+.PP
The
.I sevp.sigev_notify
field can have the following values:
@@ -223,12 +223,12 @@ POSIX.1-2001, POSIX.1-2008.
.SH NOTES
A program may create multiple interval timers using
.BR timer_create ().
-
+.PP
Timers are not inherited by the child of a
.BR fork (2),
and are disarmed and deleted during an
.BR execve (2).
-
+.PP
The kernel preallocates a "queued real-time signal"
for each timer created using
.BR timer_create ().
@@ -236,7 +236,7 @@ Consequently, the number of timers is limited by the
.BR RLIMIT_SIGPENDING
resource limit (see
.BR setrlimit (2)).
-
+.PP
The timers created by
.BR timer_create ()
are commonly known as "POSIX (interval) timers".
@@ -326,7 +326,7 @@ Assuming that the timer expired at least once while the program slept,
the signal handler will be invoked,
and the handler displays some information about the timer notification.
The program terminates after one invocation of the signal handler.
-
+.PP
In the following example run, the program sleeps for 1 second,
after creating a timer that has a frequency of 100 nanoseconds.
By the time the signal is unblocked and delivered,