diff options
Diffstat (limited to 'man2/timerfd_create.2')
| -rw-r--r-- | man2/timerfd_create.2 | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2 index 7e7d8439b3..3c7824cfdd 100644 --- a/man2/timerfd_create.2 +++ b/man2/timerfd_create.2 @@ -47,7 +47,7 @@ with the advantage that the file descriptor may be monitored by .BR poll (2), and .BR epoll (7). - +.PP The use of these three system calls is analogous to the use of .BR timer_create (2), .BR timer_settime (2), @@ -111,7 +111,7 @@ capability in order to set a timer against this clock. .PP The current value of each of these clocks can be retrieved using .BR clock_gettime (2). - +.PP Starting with Linux 2.6.27, the following values may be bitwise ORed in .IR flags to change the behavior of @@ -143,7 +143,7 @@ must be specified as zero. arms (starts) or disarms (stops) the timer referred to by the file descriptor .IR fd . - +.PP The .I new_value argument specifies the initial expiration and interval for the timer. @@ -176,7 +176,7 @@ to a nonzero value arms the timer. Setting both fields of .I new_value.it_value to zero disarms the timer. - +.PP Setting one or both fields of .I new_value.it_interval to nonzero values specifies the period, in seconds and nanoseconds, @@ -185,7 +185,7 @@ If both fields of .I new_value.it_interval are zero, the timer expires just once, at the time specified by .IR new_value.it_value . - +.PP By default, the initial expiration time specified in .I new_value @@ -197,7 +197,7 @@ specifies a time relative to the current value of the clock specified by An absolute timeout can be selected via the .I flags argument. - +.PP The .I flags argument is a bit mask that can include the following values: @@ -246,7 +246,7 @@ an structure that contains the current setting of the timer referred to by the file descriptor .IR fd . - +.PP The .I it_value field returns the amount of time @@ -256,7 +256,7 @@ then the timer is currently disarmed. This field always contains a relative value, regardless of whether the .BR TFD_TIMER_ABSTIME flag was specified when setting the timer. - +.PP The .I it_interval field returns the interval of the timer. @@ -300,7 +300,7 @@ A will fail with the error .B EINVAL if the size of the supplied buffer is less than 8 bytes. - +.IP If the associated clock is either .BR CLOCK_REALTIME or @@ -386,7 +386,7 @@ returns a new file descriptor. On error, \-1 is returned and .I errno is set to indicate the error. - +.PP .BR timerfd_settime () and .BR timerfd_gettime () @@ -480,7 +480,7 @@ The second argument specifies the interval for the timer, in seconds. The third argument specifies the number of times the program should allow the timer to expire before terminating. The second and third command-line arguments are optional. - +.PP The following shell session demonstrates the use of the program: .in +4n .nf |
