Skip to content

Commit 2cf5d93

Browse files
Fix three additional issues
1 parent 5edac05 commit 2cf5d93

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/os.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4572,16 +4572,17 @@ Naturally, they are all only available on Linux.
45724572
- :const:`time.CLOCK_BOOTTIME` (Since Linux 3.15 for timerfd_create)
45734573

45744574
If *clockid* is :const:`time.CLOCK_REALTIME`, a settable system-wide
4575-
real-time clock is used. If system clock is changed, timer setting needs
4576-
to be updated. To cancel timer when system clock is changed, see
4575+
real-time clock is used. If the system clock is changed, the timer setting
4576+
needs to be updated. To cancel the timer when the system clock is changed, see
45774577
:const:`TFD_TIMER_CANCEL_ON_SET`.
45784578

45794579
If *clockid* is :const:`time.CLOCK_MONOTONIC`, a non-settable monotonically
45804580
increasing clock is used. Even if the system clock is changed, the timer
45814581
setting will not be affected.
45824582

4583-
If *clockid* is :const:`time.CLOCK_BOOTTIME`, same as :const:`time.CLOCK_MONOTONIC`
4584-
except it includes any time that the system is suspended.
4583+
If *clockid* is :const:`time.CLOCK_BOOTTIME`, it is the same as
4584+
:const:`time.CLOCK_MONOTONIC` except it includes any time that the system
4585+
is suspended.
45854586

45864587
The file descriptor's behaviour can be modified by specifying a *flags* value.
45874588
Any of the following variables may be used, combined using bitwise OR
@@ -4644,7 +4645,7 @@ Naturally, they are all only available on Linux.
46444645
:const:`TFD_TIMER_ABSTIME` and the clock for this timer is
46454646
:const:`time.CLOCK_REALTIME`, the timer is marked as cancelable if the
46464647
real-time clock is changed discontinuously. Reading the descriptor is
4647-
aborted with the error ECANCELED.
4648+
aborted with the error :const:`errno.ECANCELED`.
46484649

46494650
Linux manages system clock as UTC. A daylight-savings time transition is
46504651
done by changing time offset only and doesn't cause discontinuous system

0 commit comments

Comments
 (0)