timer_create.2: NOTES: add "C library/kernel ABI differences" subheading

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-15 22:38:28 +02:00
parent c8c02fadd4
commit de76572d12
1 changed files with 10 additions and 9 deletions

View File

@ -229,7 +229,16 @@ Return the overrun count for the last timer expiration.
.IP *
.BR timer_delete (2):
Disarm and delete a timer.
.PP
Since Linux 3.10, the
.IR /proc/[pid]/timers
file can be used to list the POSIX timers for the process with PID
.IR pid .
See
.BR proc (5)
for further information.
.\"
.SS C library/kernel ABI differences
Part of the implementation of the POSIX timers API is provided by glibc.
In particular:
.IP * 3
@ -250,14 +259,6 @@ glibc provided an incomplete user-space implementation
timers only) using POSIX threads,
and current glibc falls back to this implementation on systems
running pre-2.6 Linux kernels.
Since Linux 3.10, the
.IR /proc/[pid]/timers
file can be used to list the POSIX timers for the process with PID
.IR pid .
See
.BR proc (5)
for further information.
.SH EXAMPLE
The program below takes two arguments: a sleep period in seconds,
and a timer frequency in nanoseconds.