@@ -4553,16 +4553,17 @@ Naturally, they are all only available on Linux.
45534553 - :const: `time.CLOCK_BOOTTIME ` (Since Linux 3.15 for timerfd_create)
45544554
45554555 If *clockid * is :const: `time.CLOCK_REALTIME `, a settable system-wide
4556- real-time clock is used. If system clock is changed, timer setting need
4557- to be updated. To cancel timer when system clock is changed, see
4556+ real-time clock is used. If the system clock is changed, the timer setting
4557+ needs to be updated. To cancel the timer when the system clock is changed, see
45584558 :const: `TFD_TIMER_CANCEL_ON_SET `.
45594559
45604560 If *clockid * is :const: `time.CLOCK_MONOTONIC `, a non-settable monotonically
45614561 increasing clock is used. Even if the system clock is changed, the timer
45624562 setting will not be affected.
45634563
4564- If *clockid * is :const: `time.CLOCK_BOOTTIME `, same as :const: `time.CLOCK_MONOTONIC `
4565- except it includes any time that the system is suspended.
4564+ If *clockid * is :const: `time.CLOCK_BOOTTIME `, it is the same as
4565+ :const: `time.CLOCK_MONOTONIC ` except it includes any time that the system
4566+ is suspended.
45664567
45674568 The file descriptor's behaviour can be modified by specifying a *flags * value.
45684569 Any of the following variables may be used, combined using bitwise OR
@@ -4573,8 +4574,8 @@ Naturally, they are all only available on Linux.
45734574
45744575 If :const: `TFD_NONBLOCK ` is not set as a flag, :func: `read ` blocks until
45754576 the timer expires. If it is set as a flag, :func: `read ` doesn't block, but
4576- If there hasn't been an expiration since the last call to read,
4577- :func: `read ` raises :class: `OSError ` with ``errno `` is set to
4577+ if there hasn't been an expiration since the last call to read,
4578+ :func: `read ` raises :class: `OSError ` with ``errno `` set to
45784579 :const: `errno.EAGAIN `.
45794580
45804581 :const: `TFD_CLOEXEC ` is always set by Python automatically.
@@ -4589,7 +4590,7 @@ Naturally, they are all only available on Linux.
45894590 .. versionadded :: 3.13
45904591
45914592
4592- .. function :: timerfd_settime(fd, /, *, flags=flags , initial=0.0, interval=0.0)
4593+ .. function :: timerfd_settime(fd, /, *, flags=0 , initial=0.0, interval=0.0)
45934594
45944595 Alter a timer file descriptor's internal timer.
45954596 This function operates the same interval timer as :func: `timerfd_settime_ns `.
@@ -4604,12 +4605,11 @@ Naturally, they are all only available on Linux.
46044605 - :const: `TFD_TIMER_CANCEL_ON_SET `
46054606
46064607 The timer is disabled by setting *initial * to zero (``0 ``).
4607- If *initial * is equal to or greater than zero, the timer is enabled.
4608+ If *initial * is greater than zero, the timer is enabled.
46084609 If *initial * is less than zero, it raises an :class: `OSError ` exception
4609- with ``errno `` set to :const: `errno.EINVAL `
4610+ with ``errno `` set to :const: `errno.EINVAL `.
46104611
46114612 By default the timer will fire when *initial * seconds have elapsed.
4612- (If *initial * is zero, timer will fire immediately.)
46134613
46144614 However, if the :const: `TFD_TIMER_ABSTIME ` flag is set,
46154615 the timer will fire when the timer's clock
@@ -4620,13 +4620,13 @@ Naturally, they are all only available on Linux.
46204620 If *interval * is greater than zero, the timer fires every time *interval *
46214621 seconds have elapsed since the previous expiration.
46224622 If *interval * is less than zero, it raises :class: `OSError ` with ``errno ``
4623- set to :const: `errno.EINVAL `
4623+ set to :const: `errno.EINVAL `.
46244624
46254625 If the :const: `TFD_TIMER_CANCEL_ON_SET ` flag is set along with
46264626 :const: `TFD_TIMER_ABSTIME ` and the clock for this timer is
46274627 :const: `time.CLOCK_REALTIME `, the timer is marked as cancelable if the
46284628 real-time clock is changed discontinuously. Reading the descriptor is
4629- aborted with the error ECANCELED.
4629+ aborted with the error :const: ` errno. ECANCELED` .
46304630
46314631 Linux manages system clock as UTC. A daylight-savings time transition is
46324632 done by changing time offset only and doesn't cause discontinuous system
0 commit comments