File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ feature! {
195
195
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
196
196
feature ! {
197
197
#![ feature = "time" ]
198
- #[ allow( missing_docs) ]
199
198
pub mod timerfd;
200
199
}
201
200
Original file line number Diff line number Diff line change @@ -60,10 +60,19 @@ libc_enum! {
60
60
#[ repr( i32 ) ]
61
61
#[ non_exhaustive]
62
62
pub enum ClockId {
63
+ /// A settable system-wide real-time clock.
63
64
CLOCK_REALTIME ,
65
+ /// A non-settable monotonically increasing clock.
66
+ ///
67
+ /// Does not change after system startup.
68
+ /// Does not measure time while the system is suspended.
64
69
CLOCK_MONOTONIC ,
70
+ /// Like `CLOCK_MONOTONIC`, except that `CLOCK_BOOTTIME` includes the time
71
+ /// that the system was suspended.
65
72
CLOCK_BOOTTIME ,
73
+ /// Like `CLOCK_REALTIME`, but will wake the system if it is suspended.
66
74
CLOCK_REALTIME_ALARM ,
75
+ /// Like `CLOCK_BOOTTIME`, but will wake the system if it is suspended.
67
76
CLOCK_BOOTTIME_ALARM ,
68
77
}
69
78
}
@@ -72,7 +81,9 @@ libc_bitflags! {
72
81
/// Additional flags to change the behaviour of the file descriptor at the
73
82
/// time of creation.
74
83
pub struct TimerFlags : c_int {
84
+ /// Set the `O_NONBLOCK` flag on the open file description referred to by the new file descriptor.
75
85
TFD_NONBLOCK ;
86
+ /// Set the `FD_CLOEXEC` flag on the file descriptor.
76
87
TFD_CLOEXEC ;
77
88
}
78
89
}
You can’t perform that action at this time.
0 commit comments