@@ -38,7 +38,7 @@ pub use backend::io::types::ReadWriteFlags;
38
38
/// [OpenBSD]: https://man.openbsd.org/read.2
39
39
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=read§ion=2
40
40
/// [illumos]: https://illumos.org/man/2/read
41
- /// [glibc]: https://www.gnu. org/software/libc/ manual/html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor
41
+ /// [glibc]: https://sourceware. org/glibc/ manual/latest /html_node/I_002fO-Primitives.html#index-reading-from-a-file-descriptor
42
42
#[ inline]
43
43
pub fn read < Fd : AsFd > ( fd : Fd , buf : & mut [ u8 ] ) -> io:: Result < usize > {
44
44
unsafe { backend:: io:: syscalls:: read ( fd. as_fd ( ) , buf. as_mut_ptr ( ) , buf. len ( ) ) }
@@ -84,7 +84,7 @@ pub fn read_uninit<Fd: AsFd>(
84
84
/// [OpenBSD]: https://man.openbsd.org/write.2
85
85
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=write§ion=2
86
86
/// [illumos]: https://illumos.org/man/2/write
87
- /// [glibc]: https://www.gnu. org/software/libc/ manual/html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor
87
+ /// [glibc]: https://sourceware. org/glibc/ manual/latest /html_node/I_002fO-Primitives.html#index-writing-to-a-file-descriptor
88
88
#[ inline]
89
89
pub fn write < Fd : AsFd > ( fd : Fd , buf : & [ u8 ] ) -> io:: Result < usize > {
90
90
backend:: io:: syscalls:: write ( fd. as_fd ( ) , buf)
@@ -104,6 +104,7 @@ pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> {
104
104
/// - [OpenBSD]
105
105
/// - [DragonFly BSD]
106
106
/// - [illumos]
107
+ /// - [glibc]
107
108
///
108
109
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pread.html
109
110
/// [Linux]: https://man7.org/linux/man-pages/man2/pread.2.html
@@ -113,6 +114,7 @@ pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> {
113
114
/// [OpenBSD]: https://man.openbsd.org/pread.2
114
115
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pread§ion=2
115
116
/// [illumos]: https://illumos.org/man/2/pread
117
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pread64
116
118
#[ inline]
117
119
pub fn pread < Fd : AsFd > ( fd : Fd , buf : & mut [ u8 ] , offset : u64 ) -> io:: Result < usize > {
118
120
unsafe { backend:: io:: syscalls:: pread ( fd. as_fd ( ) , buf. as_mut_ptr ( ) , buf. len ( ) , offset) }
@@ -150,6 +152,7 @@ pub fn pread_uninit<Fd: AsFd>(
150
152
/// - [OpenBSD]
151
153
/// - [DragonFly BSD]
152
154
/// - [illumos]
155
+ /// - [glibc]
153
156
///
154
157
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/pwrite.html
155
158
/// [Linux]: https://man7.org/linux/man-pages/man2/pwrite.2.html
@@ -159,6 +162,7 @@ pub fn pread_uninit<Fd: AsFd>(
159
162
/// [OpenBSD]: https://man.openbsd.org/pwrite.2
160
163
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwrite§ion=2
161
164
/// [illumos]: https://illumos.org/man/2/pwrite
165
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64
162
166
#[ inline]
163
167
pub fn pwrite < Fd : AsFd > ( fd : Fd , buf : & [ u8 ] , offset : u64 ) -> io:: Result < usize > {
164
168
backend:: io:: syscalls:: pwrite ( fd. as_fd ( ) , buf, offset)
@@ -175,6 +179,7 @@ pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
175
179
/// - [OpenBSD]
176
180
/// - [DragonFly BSD]
177
181
/// - [illumos]
182
+ /// - [glibc]
178
183
///
179
184
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/readv.html
180
185
/// [Linux]: https://man7.org/linux/man-pages/man2/readv.2.html
@@ -184,6 +189,7 @@ pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> {
184
189
/// [OpenBSD]: https://man.openbsd.org/readv.2
185
190
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=readv§ion=2
186
191
/// [illumos]: https://illumos.org/man/2/readv
192
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-readv
187
193
#[ cfg( not( any( target_os = "espidf" , target_os = "horizon" ) ) ) ]
188
194
#[ inline]
189
195
pub fn readv < Fd : AsFd > ( fd : Fd , bufs : & mut [ IoSliceMut < ' _ > ] ) -> io:: Result < usize > {
@@ -201,6 +207,7 @@ pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize>
201
207
/// - [OpenBSD]
202
208
/// - [DragonFly BSD]
203
209
/// - [illumos]
210
+ /// - [glibc]
204
211
///
205
212
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/writev.html
206
213
/// [Linux]: https://man7.org/linux/man-pages/man2/writev.2.html
@@ -210,6 +217,7 @@ pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize>
210
217
/// [OpenBSD]: https://man.openbsd.org/writev.2
211
218
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=writev§ion=2
212
219
/// [illumos]: https://illumos.org/man/2/writev
220
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-writev
213
221
#[ cfg( not( any( target_os = "espidf" , target_os = "horizon" ) ) ) ]
214
222
#[ inline]
215
223
pub fn writev < Fd : AsFd > ( fd : Fd , bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
@@ -226,13 +234,15 @@ pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> {
226
234
/// - [OpenBSD]
227
235
/// - [DragonFly BSD]
228
236
/// - [illumos]
237
+ /// - [glibc]
229
238
///
230
239
/// [Linux]: https://man7.org/linux/man-pages/man2/preadv.2.html
231
240
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=preadv&sektion=2
232
241
/// [NetBSD]: https://man.netbsd.org/preadv.2
233
242
/// [OpenBSD]: https://man.openbsd.org/preadv.2
234
243
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=preadv§ion=2
235
244
/// [illumos]: https://illumos.org/man/2/preadv
245
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64
236
246
#[ cfg( not( any(
237
247
target_os = "espidf" ,
238
248
target_os = "haiku" ,
@@ -261,13 +271,15 @@ pub fn preadv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io:
261
271
/// - [OpenBSD]
262
272
/// - [DragonFly BSD]
263
273
/// - [illumos]
274
+ /// - [glibc]
264
275
///
265
276
/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev.2.html
266
277
/// [FreeBSD]: https://man.freebsd.org/cgi/man.cgi?query=pwritev&sektion=2
267
278
/// [NetBSD]: https://man.netbsd.org/pwritev.2
268
279
/// [OpenBSD]: https://man.openbsd.org/pwritev.2
269
280
/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=pwritev§ion=2
270
281
/// [illumos]: https://illumos.org/man/2/pwritev
282
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/I_002fO-Primitives.html#index-pwrite64
271
283
#[ cfg( not( any(
272
284
target_os = "espidf" ,
273
285
target_os = "haiku" ,
@@ -288,8 +300,10 @@ pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Resul
288
300
///
289
301
/// # References
290
302
/// - [Linux]
303
+ /// - [glibc]
291
304
///
292
305
/// [Linux]: https://man7.org/linux/man-pages/man2/preadv2.2.html
306
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-preadv64v2
293
307
#[ cfg( linux_kernel) ]
294
308
#[ inline]
295
309
pub fn preadv2 < Fd : AsFd > (
@@ -307,8 +321,10 @@ pub fn preadv2<Fd: AsFd>(
307
321
///
308
322
/// # References
309
323
/// - [Linux]
324
+ /// - [glibc]
310
325
///
311
326
/// [Linux]: https://man7.org/linux/man-pages/man2/pwritev2.2.html
327
+ /// [glibc]: https://sourceware.org/glibc/manual/latest/html_node/Scatter_002dGather.html#index-pwritev64v2
312
328
#[ cfg( linux_kernel) ]
313
329
#[ inline]
314
330
pub fn pwritev2 < Fd : AsFd > (
0 commit comments