@@ -64,8 +64,8 @@ pub enum ClockId {
6464 #[ doc( alias = "CLOCK_MONOTONIC_RAW" ) ]
6565 MonotonicRaw = c:: CLOCK_MONOTONIC_RAW ,
6666
67- /// `CLOCK_REALTIME_ALARM`, available on Linux >= 3.0
68- #[ cfg( all ( linux_kernel, feature = "linux_4_11" ) ) ]
67+ /// `CLOCK_REALTIME_ALARM`
68+ #[ cfg( linux_kernel) ]
6969 #[ doc( alias = "CLOCK_REALTIME_ALARM" ) ]
7070 RealtimeAlarm = bitcast ! ( c:: CLOCK_REALTIME_ALARM ) ,
7171
@@ -74,20 +74,16 @@ pub enum ClockId {
7474 #[ doc( alias = "CLOCK_TAI" ) ]
7575 Tai = bitcast ! ( c:: CLOCK_TAI ) ,
7676
77- /// `CLOCK_BOOTTIME`, available on Linux >= 2.6.39
77+ /// `CLOCK_BOOTTIME`
7878 ///
7979 /// On FreeBSD, use [`Self::Uptime`], as `CLOCK_BOOTTIME` is an alias for
8080 /// `CLOCK_UPTIME`.
81- #[ cfg( any(
82- all( linux_kernel, feature = "linux_4_11" ) ,
83- target_os = "fuchsia" ,
84- target_os = "openbsd"
85- ) ) ]
81+ #[ cfg( any( linux_kernel, target_os = "fuchsia" , target_os = "openbsd" ) ) ]
8682 #[ doc( alias = "CLOCK_BOOTTIME" ) ]
8783 Boottime = bitcast ! ( c:: CLOCK_BOOTTIME ) ,
8884
89- /// `CLOCK_BOOTTIME_ALARM`, available on Linux >= 2.6.39
90- #[ cfg( any( all ( linux_kernel, feature = "linux_4_11" ) , target_os = "fuchsia" ) ) ]
85+ /// `CLOCK_BOOTTIME_ALARM`
86+ #[ cfg( any( linux_kernel, target_os = "fuchsia" ) ) ]
9187 #[ doc( alias = "CLOCK_BOOTTIME_ALARM" ) ]
9288 BoottimeAlarm = bitcast ! ( c:: CLOCK_BOOTTIME_ALARM ) ,
9389}
@@ -139,7 +135,7 @@ pub enum DynamicClockId<'a> {
139135 /// Linux dynamic clocks.
140136 Dynamic ( BorrowedFd < ' a > ) ,
141137
142- /// `CLOCK_REALTIME_ALARM`, available on Linux >= 3.0
138+ /// `CLOCK_REALTIME_ALARM`
143139 #[ cfg( linux_kernel) ]
144140 #[ doc( alias = "CLOCK_REALTIME_ALARM" ) ]
145141 RealtimeAlarm ,
@@ -149,7 +145,7 @@ pub enum DynamicClockId<'a> {
149145 #[ doc( alias = "CLOCK_TAI" ) ]
150146 Tai ,
151147
152- /// `CLOCK_BOOTTIME`, available on Linux >= 2.6.39
148+ /// `CLOCK_BOOTTIME`
153149 #[ cfg( any(
154150 freebsdlike,
155151 linux_kernel,
@@ -159,7 +155,7 @@ pub enum DynamicClockId<'a> {
159155 #[ doc( alias = "CLOCK_BOOTTIME" ) ]
160156 Boottime ,
161157
162- /// `CLOCK_BOOTTIME_ALARM`, available on Linux >= 2.6.39
158+ /// `CLOCK_BOOTTIME_ALARM`
163159 #[ cfg( any( linux_kernel, target_os = "fuchsia" ) ) ]
164160 #[ doc( alias = "CLOCK_BOOTTIME_ALARM" ) ]
165161 BoottimeAlarm ,
0 commit comments