File tree Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 8
8
//! use std::mem::MaybeUninit;
9
9
//!
10
10
//! # fn test() -> io::Result<()> {
11
- //! // Creeate an inotify object. In this example, we use `NONBLOCK` so that
12
- //! // the reader fails with `WOULDBLOCk` when no events are ready. Otherwise
13
- //! // it will block until at least one event is ready.
11
+ //! // Create an inotify object. In this example, we use `NONBLOCK` so that the
12
+ //! // reader fails with `WOULDBLOCk` when no events are ready. Otherwise it
13
+ //! // will block until at least one event is ready.
14
14
//! let inotify = inotify::init(inotify::CreateFlags::NONBLOCK)?;
15
15
//!
16
16
//! // Add a directory to watch.
20
20
//! inotify::WatchFlags::ALL_EVENTS,
21
21
//! )?;
22
22
//!
23
- //! // Generate some events in the watched directory...
23
+ //! // Generate some events in the watched directory…
24
24
//!
25
25
//! // Loop over pending events.
26
26
//! let mut buf = [MaybeUninit::uninit(); 512];
33
33
//! Ok(entry) => entry,
34
34
//! };
35
35
//!
36
- //! // Use `entry`...
36
+ //! // Use `entry`…
37
37
//! }
38
38
//!
39
39
//! # Ok(())
Original file line number Diff line number Diff line change @@ -643,8 +643,10 @@ const fn new_raw_protocol(u: u32) -> RawProtocol {
643
643
}
644
644
645
645
/// `IPPROTO_*` and other constants for use with [`socket`], [`socket_with`],
646
- /// and [`socketpair`] when a nondefault value is desired. See the [`ipproto`],
647
- /// [`sysproto`], and [`netlink`] modules for possible values.
646
+ /// and [`socketpair`] when a nondefault value is desired.
647
+ ///
648
+ /// See the [`ipproto`], [`sysproto`], and [`netlink`] modules for possible
649
+ /// values.
648
650
///
649
651
/// For the default values, such as `IPPROTO_IP` or `NETLINK_ROUTE`, pass
650
652
/// `None` as the `protocol` argument in these functions.
Original file line number Diff line number Diff line change @@ -110,10 +110,11 @@ pub fn dumpable_behavior() -> io::Result<DumpableBehavior> {
110
110
111
111
const PR_SET_DUMPABLE : c_int = 4 ;
112
112
113
- /// Set the state of the `dumpable` attribute, which determines whether the
114
- /// process can be traced and whether core dumps are produced for the calling
115
- /// process upon delivery of a signal whose default behavior is to produce a
116
- /// core dump.
113
+ /// Set the state of the `dumpable` attribute.
114
+ ///
115
+ /// This attribute determines whether the process can be traced and whether
116
+ /// core dumps are produced for the calling process upon delivery of a signal
117
+ /// whose default behavior is to produce a core dump.
117
118
///
118
119
/// A similar function with the same name is available on FreeBSD (as part of
119
120
/// the `procctl` interface), but it has an extra argument which allows to
Original file line number Diff line number Diff line change 13
13
//! // A type describing the data to be shared.
14
14
//! #[repr(C)]
15
15
//! struct MyBufferType {
16
- //! // ...
16
+ //! // …
17
17
//! }
18
18
//!
19
19
//! // Create the shared memory object.
43
43
//! )?
44
44
//! };
45
45
//!
46
- //! // Use `ptr`...
46
+ //! // Use `ptr`…
47
47
//!
48
48
//! // Remove the shared memory object name.
49
49
//! shm::unlink(shm_path)?;
You can’t perform that action at this time.
0 commit comments