@@ -92,11 +92,14 @@ The `rustix::procfs` is removed. This functionality is now available in the
9292
9393[ rustix-linux-procfs crate ] : https://crates.io/crates/rustix-linux-procfs
9494
95- The ` flags ` field of [ ` rustix::net::RecvMsgReturn ` ] changed type from
96- [ ` RecvFlags ` ] to a new [ ` ReturnFlags ` ] , since it supports a different set of
97- flags.
95+ ` rustix::net::RecvMsgReturn ` is renamed to [ ` rustix::net::RecvMsg ` ] .
96+
97+ [ `rustix::net::RecvMsg` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvMsg.html
98+
99+ The ` flags ` field of [ ` rustix::net::RecvMsg ` ] changed type from [ ` RecvFlags ` ]
100+ to a new [ ` ReturnFlags ` ] , since it supports a different set of flags.
98101
99- [ `rustix::net::RecvMsgReturn ` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvMsgReturn .html
102+ [ `rustix::net::RecvMsg ` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvMsg .html
100103[ `RecvFlags` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvFlags.html
101104[ `ReturnFlags` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.ReturnFlags.html
102105
@@ -106,8 +109,8 @@ mean a timeout in milliseconds to an `Option<&Timespec>`. The [`Timespec`]'s
106109fields are ` tv_sec ` which holds seconds and ` tv_nsec ` which holds nanoseconds.
107110
108111[ `rustix::event::poll` ] : https://docs.rs/rustix/1.0.0/rustix/event/fn.poll.html
109- [ `rustix::event::epoll` ] : https://docs.rs/rustix/1.0.0/rustix/event/fn. epoll.html
110- [ `Timespec` ] : https://docs.rs/rustix/1.0.0/rustix/time/type .Timespec.html
112+ [ `rustix::event::epoll` ] : https://docs.rs/rustix/1.0.0/rustix/event/epoll/index .html
113+ [ `Timespec` ] : https://docs.rs/rustix/1.0.0/rustix/time/struct .Timespec.html
111114
112115Functions in [ ` rustix::event::port ` ] are renamed to remove the redundant
113116` port_* ` prefix.
@@ -124,22 +127,22 @@ Functions in [`rustix::event::port`] are renamed to remove the redundant
124127directly. They are now signed instead of unsigned, so that they can represent
125128times before the epoch.
126129
127- [ `rustix::fs::Stat` ] : https://docs.rs/rustix/1.0.0/rustix/fs/type .Stat.html
130+ [ `rustix::fs::Stat` ] : https://docs.rs/rustix/1.0.0/rustix/fs/struct .Stat.html
128131
129132` rustix::io::is_read_write ` is removed, as it's higher-level functionality that
130133can be implemented in terms of lower-level rustix calls.
131134
132- [ ` rustix::net::recv_uninit ` ] and [ ` rustix::net::recvfrom_uninit ` ] now include
135+ [ ` rustix::net::recv ` ] and [ ` rustix::net::recvfrom ` ] now include
133136the number of received bytes in their return types, as this number may differ
134137from the number of bytes written to the buffer when
135138[ ` rustix::net::RecvFlags::TRUNC ` ] is used.
136139
137- [ `rustix::net::recv_uninit ` ] : https://docs.rs/rustix/1.0.0/rustix/net/fn.recv_uninit .html
138- [ `rustix::net::recvfrom_uninit ` ] : https://docs.rs/rustix/1.0.0/rustix/net/fn.recvfrom_uninit .html
140+ [ `rustix::net::recv ` ] : https://docs.rs/rustix/1.0.0/rustix/net/fn.recv .html
141+ [ `rustix::net::recvfrom ` ] : https://docs.rs/rustix/1.0.0/rustix/net/fn.recvfrom .html
139142[ `rustix::net::RecvFlags::TRUNC` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvFlags.html#associatedconstant.TRUNC
140143
141144[ ` rustix::io_uring::io_uring_register ` ] now has a [ ` IoringRegisterFlags ` ]
142- argument, and ` rustix::io_uring::io_uring_register ` is removed.
145+ argument, and ` rustix::io_uring::io_uring_register_with ` is removed.
143146
144147[ `rustix::io_uring::io_uring_register` ] : https://docs.rs/rustix/1.0.0/rustix/io_uring/fn.io_uring_register.html
145148[ `IoringRegisterFlags` ] : https://docs.rs/rustix/1.0.0/rustix/io_uring/struct.IoringRegisterFlags.html
@@ -148,20 +151,16 @@ argument, and `rustix::io_uring::io_uring_register` is removed.
148151` Signal::Int ` is now named [ ` Signal::INT ` ] . Also, ` Signal ` is no longer
149152directly convertible to ` i32 ` ; use [ ` Signal::as_raw ` ] instead.
150153
151- [ `rustix::process::Signal` ] : https://docs.rs/rustix/1.0.0/rustix/process/enum .Signal.html
152- [ `Signal::INT` ] : https://docs.rs/rustix/1.0.0/rustix/process/enum .Signal.html#variant.Int
153- [ `Signal::as_raw` ] : https://docs.rs/rustix/1.0.0/rustix/process/enum .Signal.html#method.as_raw
154+ [ `rustix::process::Signal` ] : https://docs.rs/rustix/1.0.0/rustix/process/struct .Signal.html
155+ [ `Signal::INT` ] : https://docs.rs/rustix/1.0.0/rustix/process/struct .Signal.html#variant.Int
156+ [ `Signal::as_raw` ] : https://docs.rs/rustix/1.0.0/rustix/process/struct .Signal.html#method.as_raw
154157
155158The associated constant ` rustix::ioctl::Ioctl::OPCODE ` is now replaced with an
156159associated method [ ` rustix::ioctl::Ioctl::opcode ` ] , to support ioctls where the
157160opcode is computed rather than a constant.
158161
159162[ `rustix::ioctl::Ioctl::opcode` ] : https://docs.rs/rustix/1.0.0/rustix/ioctl/trait.Ioctl.html#tymethod.opcode
160163
161- ` rustix::net::RecvMsgReturn ` is renamed to [ ` rustix::net::RecvMsg ` ] .
162-
163- [ `rustix::net::RecvMsg` ] : https://docs.rs/rustix/1.0.0/rustix/net/struct.RecvMsgReturn.html
164-
165164The ` ifindex ` argument in
166165[ ` rustix::net::sockopt::set_ip_add_membership_with_ifindex ` ] and
167166[ ` rustix::net::sockopt::set_ip_drop_membership_with_ifindex ` ]
@@ -172,7 +171,7 @@ changed from `i32` to `u32`.
172171
173172The ` list ` argument in [ ` rustix::fs::listxattr ` ] , [ ` rustix::fs::flistxattr ` ] ,
174173and [ ` rustix::fs::llistxattr ` ] changed from ` [c_char] ` , which is ` [i8] ` on some
175- architectures, to [ ` u8 ` ] .
174+ architectures, to ` [u8] ` .
176175
177176[ `rustix::fs::listxattr` ] : https://docs.rs/rustix/1.0.0/rustix/fs/fn.listxattr.html
178177[ `rustix::fs::flistxattr` ] : https://docs.rs/rustix/1.0.0/rustix/fs/fn.flistxattr.html
@@ -188,7 +187,7 @@ with other platforms:
188187| ` st_ctimensec ` | ` st_ctime_nsec ` |
189188| ` st_birthtimensec ` | ` st_birthtime_nsec ` |
190189
191- [ `Stat` ] : https://docs.rs/rustix/1.0.0/x86_64-unknown-netbsd/rustix/fs/type .Stat.html
190+ [ `Stat` ] : https://docs.rs/rustix/1.0.0/x86_64-unknown-netbsd/rustix/fs/struct .Stat.html
192191
193192[ ` rustix::mount::mount ` ] 's ` data ` argument is now an ` Option ` , so it can now
194193be used in place of ` mount2 ` , and ` mount2 ` is now removed.
@@ -247,13 +246,14 @@ pointer provenance.
247246
248247The aliases for [ ` fcntl_dupfd_cloexec ` ] , [ ` fcntl_getfd ` ] , and [ ` fcntl_setfd ` ]
249248in ` rustix::fs ` are removed; these functions are just available in
250- ` rustix::io ` now.
249+ [ ` rustix::io ` ] now.
251250
252251[ `fcntl_dupfd_cloexec` ] : https://docs.rs/rustix/1.0.0/rustix/io/fn.fcntl_dupfd_cloexec.html
253252[ `fcntl_getfd` ] : https://docs.rs/rustix/1.0.0/rustix/io/fn.fcntl_getfd.html
254253[ `fcntl_setfd` ] : https://docs.rs/rustix/1.0.0/rustix/io/fn.fcntl_setfd.html
254+ [ `rustix::io` ] : https://docs.rs/rustix/1.0.0/rustix/io/index.html
255255
256- [ ` SocketAddrXdp ` ] no longer has a shared umem field. A new
256+ [ ` SocketAddrXdp ` ] no longer has a shared UMEM field. A new
257257[ ` SocketAddrXdpWithSharedUmem ` ] is added for the purpose of calling ` bind ` and
258258passing it an XDP address with a shared UMEM fd. And ` SockaddrXdpFlags ` is
259259renamed to [ ` SocketAddrXdpFlags ` ] .
@@ -303,11 +303,11 @@ vector before calling `epoll::wait` or `kqueue`, or consuming it using
303303[ `Buffer` trait ] : https://docs.rs/rustix/1.0.0/rustix/buffer/trait.Buffer.html
304304[ `spare_capacity` ] : https://docs.rs/rustix/1.0.0/rustix/buffer/fn.spare_capacity.html
305305
306- The ` Opcode ` type has changed from a struct to a raw integer value, and the
307- associated utilities are change to ` const ` functions. In place of ` ReadOpcode ` ,
308- ` WriteOpcode ` , ` ReadWriteOpcode ` , and ` NoneOpcode ` , use the ` read ` , ` write ` ,
309- ` read_write ` , and ` none ` const functions in the [ ` ioctl::opcode ` ] module. For
310- example, in place of this:
306+ The [ ` rustix::ioctl:: Opcode` ] type has changed from a struct to a raw integer
307+ value, and the associated utilities are change to ` const ` functions. In place
308+ of ` ReadOpcode ` , ` WriteOpcode ` , ` ReadWriteOpcode ` , and ` NoneOpcode ` , use the
309+ ` read ` , ` write ` , ` read_write ` , and ` none ` const functions in the
310+ [ ` ioctl::opcode ` ] module. For example, in place of this:
311311``` rust
312312ioctl :: Setter :: <ioctl :: ReadOpcode <b 'U ', 15 , c_uint >, c_uint >:: new (interface )
313313```
@@ -319,6 +319,7 @@ use this:
319319
320320In place of `BadOpcode `, use the opcode value directly .
321321
322+ [`rustix :: ioctl :: Opcode `]: https : // docs.rs/rustix/1.0.0/rustix/ioctl/type.Opcode.html
322323[`ioctl :: opcode `]: https : // docs.rs/rustix/1.0.0/rustix/ioctl/opcode/index.html
323324
324325All explicitly deprecated functions and types have been removed . Their
0 commit comments