| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:39+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "readv" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-22" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "" |
| 49 |
"readv, writev, preadv, pwritev, preadv2, pwritev2 - read or write data into " |
| 50 |
"multiple buffers" |
| 51 |
msgstr "" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "LIBRARY" |
| 58 |
msgstr "" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 62 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "B<#include E<lt>sys/uio.hE<gt>>\n" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<ssize_t readv(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<);>\n" |
| 86 |
"B<ssize_t writev(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<);>\n" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "" |
| 94 |
"B<ssize_t preadv(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<,>\n" |
| 95 |
"B< off_t >I<offset>B<);>\n" |
| 96 |
"B<ssize_t pwritev(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<,>\n" |
| 97 |
"B< off_t >I<offset>B<);>\n" |
| 98 |
msgstr "" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "" |
| 105 |
"B<ssize_t preadv2(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<,>\n" |
| 106 |
"B< off_t >I<offset>B<, int >I<flags>B<);>\n" |
| 107 |
"B<ssize_t pwritev2(int >I<fd>B<, const struct iovec *>I<iov>B<, int >I<iovcnt>B<,>\n" |
| 108 |
"B< off_t >I<offset>B<, int >I<flags>B<);>\n" |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
msgid "" |
| 115 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 116 |
msgstr "" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "B<preadv>(), B<pwritev>():" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "" |
| 129 |
" Since glibc 2.19:\n" |
| 130 |
" _DEFAULT_SOURCE\n" |
| 131 |
" glibc 2.19 and earlier:\n" |
| 132 |
" _BSD_SOURCE\n" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: SH |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
#, no-wrap |
| 139 |
msgid "DESCRIPTION" |
| 140 |
msgstr "" |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"The B<readv>() system call reads I<iovcnt> buffers from the file associated " |
| 147 |
"with the file descriptor I<fd> into the buffers described by I<iov> " |
| 148 |
"(\"scatter input\")." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "" |
| 155 |
"The B<writev>() system call writes I<iovcnt> buffers of data described by " |
| 156 |
"I<iov> to the file associated with the file descriptor I<fd> (\"gather " |
| 157 |
"output\")." |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"The pointer I<iov> points to an array of I<iovec> structures, described in " |
| 165 |
"B<iovec>(3type)." |
| 166 |
msgstr "" |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"The B<readv>() system call works just like B<read>(2) except that multiple " |
| 173 |
"buffers are filled." |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "" |
| 180 |
"The B<writev>() system call works just like B<write>(2) except that " |
| 181 |
"multiple buffers are written out." |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"Buffers are processed in array order. This means that B<readv>() " |
| 189 |
"completely fills I<iov[0]> before proceeding to I<iov[1]>, and so on. (If " |
| 190 |
"there is insufficient data, then not all buffers pointed to by I<iov> may be " |
| 191 |
"filled.) Similarly, B<writev>() writes out the entire contents of " |
| 192 |
"I<iov[0]> before proceeding to I<iov[1]>, and so on." |
| 193 |
msgstr "" |
| 194 |
|
| 195 |
#. Regarding atomicity, see https://bugzilla.kernel.org/show_bug.cgi?id=10596 |
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"The data transfers performed by B<readv>() and B<writev>() are atomic: the " |
| 201 |
"data written by B<writev>() is written as a single block that is not " |
| 202 |
"intermingled with output from writes in other processes; analogously, " |
| 203 |
"B<readv>() is guaranteed to read a contiguous block of data from the file, " |
| 204 |
"regardless of read operations performed in other threads or processes that " |
| 205 |
"have file descriptors referring to the same open file description (see " |
| 206 |
"B<open>(2))." |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: SS |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
#, no-wrap |
| 213 |
msgid "preadv() and pwritev()" |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "" |
| 220 |
"The B<preadv>() system call combines the functionality of B<readv>() and " |
| 221 |
"B<pread>(2). It performs the same task as B<readv>(), but adds a fourth " |
| 222 |
"argument, I<offset>, which specifies the file offset at which the input " |
| 223 |
"operation is to be performed." |
| 224 |
msgstr "" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "" |
| 230 |
"The B<pwritev>() system call combines the functionality of B<writev>() and " |
| 231 |
"B<pwrite>(2). It performs the same task as B<writev>(), but adds a fourth " |
| 232 |
"argument, I<offset>, which specifies the file offset at which the output " |
| 233 |
"operation is to be performed." |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"The file offset is not changed by these system calls. The file referred to " |
| 241 |
"by I<fd> must be capable of seeking." |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: SS |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
#, no-wrap |
| 248 |
msgid "preadv2() and pwritev2()" |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: Plain text |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
msgid "" |
| 255 |
"These system calls are similar to B<preadv>() and B<pwritev>() calls, but " |
| 256 |
"add a fifth argument, I<flags>, which modifies the behavior on a per-call " |
| 257 |
"basis." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"Unlike B<preadv>() and B<pwritev>(), if the I<offset> argument is -1, then " |
| 265 |
"the current file offset is used and updated." |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "" |
| 272 |
"The I<flags> argument contains a bitwise OR of zero or more of the following " |
| 273 |
"flags:" |
| 274 |
msgstr "" |
| 275 |
|
| 276 |
#. type: TP |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
#, no-wrap |
| 280 |
msgid "B<RWF_DSYNC> (since Linux 4.7)" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9 |
| 284 |
#. type: Plain text |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
msgid "" |
| 288 |
"Provide a per-write equivalent of the B<O_DSYNC> B<open>(2) flag. This " |
| 289 |
"flag is meaningful only for B<pwritev2>(), and its effect applies only to " |
| 290 |
"the data range written by the system call." |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: TP |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "B<RWF_HIPRI> (since Linux 4.6)" |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "" |
| 304 |
"High priority read/write. Allows block-based filesystems to use polling of " |
| 305 |
"the device, which provides lower latency, but may use additional resources. " |
| 306 |
"(Currently, this feature is usable only on a file descriptor opened using " |
| 307 |
"the B<O_DIRECT> flag.)" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: TP |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "B<RWF_SYNC> (since Linux 4.7)" |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. commit e864f39569f4092c2b2bc72c773b6e486c7e3bd9 |
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
msgid "" |
| 322 |
"Provide a per-write equivalent of the B<O_SYNC> B<open>(2) flag. This flag " |
| 323 |
"is meaningful only for B<pwritev2>(), and its effect applies only to the " |
| 324 |
"data range written by the system call." |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#. type: TP |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "B<RWF_NOWAIT> (since Linux 4.14)" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. commit 3239d834847627b6634a4139cf1dc58f6f137a46 |
| 335 |
#. commit 91f9943e1c7b6638f27312d03fe71fcc67b23571 |
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"Do not wait for data which is not immediately available. If this flag is " |
| 341 |
"specified, the B<preadv2>() system call will return instantly if it would " |
| 342 |
"have to read data from the backing storage or wait for a lock. If some data " |
| 343 |
"was successfully read, it will return the number of bytes read. If no bytes " |
| 344 |
"were read, it will return -1 and set I<errno> to B<EAGAIN> (but see " |
| 345 |
"B<BUGS>). Currently, this flag is meaningful only for B<preadv2>()." |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<RWF_APPEND> (since Linux 4.16)" |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. commit e1fc742e14e01d84d9693c4aca4ab23da65811fb |
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
msgid "" |
| 360 |
"Provide a per-write equivalent of the B<O_APPEND> B<open>(2) flag. This " |
| 361 |
"flag is meaningful only for B<pwritev2>(), and its effect applies only to " |
| 362 |
"the data range written by the system call. The I<offset> argument does not " |
| 363 |
"affect the write operation; the data is always appended to the end of the " |
| 364 |
"file. However, if the I<offset> argument is -1, the current file offset is " |
| 365 |
"updated." |
| 366 |
msgstr "" |
| 367 |
|
| 368 |
#. type: TP |
| 369 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 370 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "B<RWF_NOAPPEND> (since Linux 6.9)" |
| 373 |
msgstr "" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 377 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "" |
| 379 |
"Do not honor the B<O_APPEND> B<open>(2) flag. This flag is meaningful only " |
| 380 |
"for B<pwritev2>(). Historically, Linux honored B<O_APPEND> flag if set and " |
| 381 |
"ignored the offset argument, which is a bug. For B<pwritev2>(), the " |
| 382 |
"I<offset> argument is honored as expected if B<RWF_NOAPPEND> flag is set, " |
| 383 |
"the same as if B<O_APPEND> flag were not set." |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#. type: TP |
| 387 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 388 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
#, no-wrap |
| 390 |
msgid "B<RWF_ATOMIC> (since Linux 6.11)" |
| 391 |
msgstr "" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 395 |
#: opensuse-tumbleweed |
| 396 |
msgid "" |
| 397 |
"Requires that writes to regular files in block-based filesystems be issued " |
| 398 |
"with torn-write protection. Torn-write protection means that for a power or " |
| 399 |
"any other hardware failure, all or none of the data from the write will be " |
| 400 |
"stored, but never a mix of old and new data. This flag is meaningful only " |
| 401 |
"for B<pwritev2>(), and its effect applies only to the data range written by " |
| 402 |
"the system call. The total write length must be power-of-2 and must be " |
| 403 |
"sized in the range [I<stx_atomic_write_unit_min>, " |
| 404 |
"I<stx_atomic_write_unit_max>]. The write must be at a naturally-aligned " |
| 405 |
"offset within the file with respect to the total write length. For example, " |
| 406 |
"a write of length 32KiB at a file offset of 32KiB is permitted, however a " |
| 407 |
"write of length 32KiB at a file offset of 48KiB is not permitted. The upper " |
| 408 |
"limit of I<iovcnt> for B<pwritev2>() is given by the value in " |
| 409 |
"I<stx_atomic_write_segments_max.> Torn-write protection only works with " |
| 410 |
"B<O_DIRECT> flag, that is, buffered writes are not supported. To guarantee " |
| 411 |
"consistency from the write between a file's in-core state with the storage " |
| 412 |
"device, B<O_SYNC> or B<O_DSYNC> must be specified for B<open>(2). The same " |
| 413 |
"synchronized I/O guarantees as described in B<open>(2) are provided when " |
| 414 |
"these flags or their equivalent flags and system calls are used (e.g., if " |
| 415 |
"B<RWF_SYNC> is specified for B<pwritev2>())." |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: TP |
| 419 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 420 |
#: opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "B<RWF_DONTCACHE> (since Linux 6.14)" |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 427 |
#: opensuse-tumbleweed |
| 428 |
msgid "" |
| 429 |
"Reads or writes to a regular file will prune instantiated page cache content " |
| 430 |
"when the operation completes. This is different than normal buffered I/O, " |
| 431 |
"where the data usually remains in cache until such time that it gets " |
| 432 |
"reclaimed due to memory pressure. If ranges of the read or written I/O were " |
| 433 |
"already in cache before this read or write, then those ranges will not be " |
| 434 |
"pruned at I/O completion time." |
| 435 |
msgstr "" |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 439 |
#: opensuse-tumbleweed |
| 440 |
msgid "" |
| 441 |
"Additionally, any range dirtied by a write operation with B<RWF_DONTCACHE> " |
| 442 |
"set will get kicked off for writeback. This is similar to calling " |
| 443 |
"B<sync_file_range>(2) with I<SYNC_FILE_RANGE_WRITE> to start writeback on " |
| 444 |
"the given range. B<RWF_DONTCACHE> is a hint, or best effort, where no hard " |
| 445 |
"guarantees are given on the state of the page cache once the operation " |
| 446 |
"completes." |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 451 |
#: opensuse-tumbleweed |
| 452 |
msgid "" |
| 453 |
"If used on a file system or block device that doesn't support it, it will " |
| 454 |
"return -1, and I<errno> will be set to B<EOPNOTSUPP>." |
| 455 |
msgstr "" |
| 456 |
|
| 457 |
#. type: SH |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
#, no-wrap |
| 461 |
msgid "RETURN VALUE" |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
msgid "" |
| 468 |
"On success, B<readv>(), B<preadv>(), and B<preadv2>() return the number of " |
| 469 |
"bytes read; B<writev>(), B<pwritev>(), and B<pwritev2>() return the number " |
| 470 |
"of bytes written." |
| 471 |
msgstr "" |
| 472 |
|
| 473 |
#. type: Plain text |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
msgid "" |
| 477 |
"Note that it is not an error for a successful call to transfer fewer bytes " |
| 478 |
"than requested (see B<read>(2) and B<write>(2))." |
| 479 |
msgstr "" |
| 480 |
|
| 481 |
#. type: Plain text |
| 482 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 483 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 484 |
msgid "On error, -1 is returned, and I<errno> is set to indicate the error." |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#. type: SH |
| 488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 489 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 490 |
#, no-wrap |
| 491 |
msgid "ERRORS" |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"The errors are as given for B<read>(2) and B<write>(2). Furthermore, " |
| 499 |
"B<preadv>(), B<preadv2>(), B<pwritev>(), and B<pwritev2>() can also fail " |
| 500 |
"for the same reasons as B<lseek>(2). Additionally, the following errors are " |
| 501 |
"defined:" |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: TP |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "B<EINVAL>" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "The sum of the I<iov_len> values overflows an I<ssize_t> value." |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 519 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
msgid "" |
| 521 |
"If B<RWF_ATOMIC> is specified, the combination of the sum of the I<iov_len> " |
| 522 |
"values and the I<offset> value does not comply with the length and offset " |
| 523 |
"torn-write protection rules." |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 528 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
msgid "" |
| 530 |
"The vector count, I<iovcnt>, is less than zero or greater than the permitted " |
| 531 |
"maximum. If B<RWF_ATOMIC> is specified, this maximum is given by the " |
| 532 |
"I<stx_atomic_write_segments_max> value from I<statx.>" |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: TP |
| 536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "B<EOPNOTSUPP>" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 544 |
#: opensuse-tumbleweed |
| 545 |
msgid "B<RWF_DONTCACHE> was set in I<flags> and the file doesn't support it." |
| 546 |
msgstr "" |
| 547 |
|
| 548 |
#. type: Plain text |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
msgid "An unknown flag is specified in I<flags>." |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: SH |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid "VERSIONS" |
| 559 |
msgstr "" |
| 560 |
|
| 561 |
#. type: SS |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "C library/kernel differences" |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
msgid "" |
| 572 |
"The raw B<preadv>() and B<pwritev>() system calls have call signatures " |
| 573 |
"that differ slightly from that of the corresponding GNU C library wrapper " |
| 574 |
"functions shown in the SYNOPSIS. The final argument, I<offset>, is unpacked " |
| 575 |
"by the wrapper functions into two arguments in the system calls:" |
| 576 |
msgstr "" |
| 577 |
|
| 578 |
#. type: Plain text |
| 579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 580 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 581 |
msgid "B< unsigned long >I<pos_l>B<, unsigned long >I<pos>" |
| 582 |
msgstr "" |
| 583 |
|
| 584 |
#. type: Plain text |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
msgid "" |
| 588 |
"These arguments contain, respectively, the low order and high order 32 bits " |
| 589 |
"of I<offset>." |
| 590 |
msgstr "" |
| 591 |
|
| 592 |
#. type: SH |
| 593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
#, no-wrap |
| 596 |
msgid "STANDARDS" |
| 597 |
msgstr "" |
| 598 |
|
| 599 |
#. type: TP |
| 600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 602 |
#, no-wrap |
| 603 |
msgid "B<readv>()" |
| 604 |
msgstr "" |
| 605 |
|
| 606 |
#. type: TQ |
| 607 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 608 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 609 |
#, no-wrap |
| 610 |
msgid "B<writev>()" |
| 611 |
msgstr "" |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 615 |
#: opensuse-tumbleweed |
| 616 |
msgid "POSIX.1-2024." |
| 617 |
msgstr "" |
| 618 |
|
| 619 |
#. type: TP |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
#, no-wrap |
| 623 |
msgid "B<preadv>()" |
| 624 |
msgstr "" |
| 625 |
|
| 626 |
#. type: TQ |
| 627 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 628 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 629 |
#, no-wrap |
| 630 |
msgid "B<pwritev>()" |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
msgid "BSD." |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#. type: TP |
| 640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 641 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
#, no-wrap |
| 643 |
msgid "B<preadv2>()" |
| 644 |
msgstr "" |
| 645 |
|
| 646 |
#. type: TQ |
| 647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 648 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 649 |
#, no-wrap |
| 650 |
msgid "B<pwritev2>()" |
| 651 |
msgstr "" |
| 652 |
|
| 653 |
#. type: Plain text |
| 654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 655 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 656 |
msgid "Linux." |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#. type: SH |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
#, no-wrap |
| 663 |
msgid "HISTORY" |
| 664 |
msgstr "" |
| 665 |
|
| 666 |
#. #-#-#-#-# archlinux: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 667 |
#. Linux libc5 used |
| 668 |
#. .I size_t |
| 669 |
#. as the type of the |
| 670 |
#. .I iovcnt |
| 671 |
#. argument, |
| 672 |
#. and |
| 673 |
#. .I int |
| 674 |
#. as the return type. |
| 675 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 676 |
#. (Says release.libc.) |
| 677 |
#. type: Plain text |
| 678 |
#. #-#-#-#-# debian-trixie: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 679 |
#. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, |
| 680 |
#. and \fIint\fP as the return type. |
| 681 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 682 |
#. (Says release.libc.) |
| 683 |
#. type: Plain text |
| 684 |
#. #-#-#-#-# debian-unstable: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 685 |
#. Linux libc5 used |
| 686 |
#. .I size_t |
| 687 |
#. as the type of the |
| 688 |
#. .I iovcnt |
| 689 |
#. argument, |
| 690 |
#. and |
| 691 |
#. .I int |
| 692 |
#. as the return type. |
| 693 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 694 |
#. (Says release.libc.) |
| 695 |
#. type: Plain text |
| 696 |
#. #-#-#-#-# fedora-44: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 697 |
#. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, |
| 698 |
#. and \fIint\fP as the return type. |
| 699 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 700 |
#. (Says release.libc.) |
| 701 |
#. type: Plain text |
| 702 |
#. #-#-#-#-# fedora-rawhide: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 703 |
#. Linux libc5 used \fIsize_t\fP as the type of the \fIiovcnt\fP argument, |
| 704 |
#. and \fIint\fP as the return type. |
| 705 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 706 |
#. (Says release.libc.) |
| 707 |
#. type: Plain text |
| 708 |
#. #-#-#-#-# mageia-cauldron: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 709 |
#. Linux libc5 used |
| 710 |
#. .I size_t |
| 711 |
#. as the type of the |
| 712 |
#. .I iovcnt |
| 713 |
#. argument, |
| 714 |
#. and |
| 715 |
#. .I int |
| 716 |
#. as the return type. |
| 717 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 718 |
#. (Says release.libc.) |
| 719 |
#. type: Plain text |
| 720 |
#. #-#-#-#-# opensuse-leap-16-1: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 721 |
#. Linux libc5 used |
| 722 |
#. .I size_t |
| 723 |
#. as the type of the |
| 724 |
#. .I iovcnt |
| 725 |
#. argument, |
| 726 |
#. and |
| 727 |
#. .I int |
| 728 |
#. as the return type. |
| 729 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 730 |
#. (Says release.libc.) |
| 731 |
#. type: Plain text |
| 732 |
#. #-#-#-#-# opensuse-tumbleweed: readv.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 733 |
#. Linux libc5 used |
| 734 |
#. .I size_t |
| 735 |
#. as the type of the |
| 736 |
#. .I iovcnt |
| 737 |
#. argument, |
| 738 |
#. and |
| 739 |
#. .I int |
| 740 |
#. as the return type. |
| 741 |
#. The readv/writev system calls were buggy before Linux 1.3.40. |
| 742 |
#. (Says release.libc.) |
| 743 |
#. type: Plain text |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 751 |
msgid "Linux 2.6.30, glibc 2.10." |
| 752 |
msgstr "" |
| 753 |
|
| 754 |
#. type: Plain text |
| 755 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 756 |
msgid "Linux 4.6, glibc 2.26." |
| 757 |
msgstr "" |
| 758 |
|
| 759 |
#. type: SS |
| 760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 761 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 762 |
#, no-wrap |
| 763 |
msgid "Historical C library/kernel differences" |
| 764 |
msgstr "" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 768 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 769 |
msgid "" |
| 770 |
"To deal with the fact that B<IOV_MAX> was so low on early versions of Linux, " |
| 771 |
"the glibc wrapper functions for B<readv>() and B<writev>() did some extra " |
| 772 |
"work if they detected that the underlying kernel system call failed because " |
| 773 |
"this limit was exceeded. In the case of B<readv>(), the wrapper function " |
| 774 |
"allocated a temporary buffer large enough for all of the items specified by " |
| 775 |
"I<iov>, passed that buffer in a call to B<read>(2), copied data from the " |
| 776 |
"buffer to the locations specified by the I<iov_base> fields of the elements " |
| 777 |
"of I<iov>, and then freed the buffer. The wrapper function for B<writev>() " |
| 778 |
"performed the analogous task using a temporary buffer and a call to " |
| 779 |
"B<write>(2)." |
| 780 |
msgstr "" |
| 781 |
|
| 782 |
#. type: Plain text |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
msgid "" |
| 786 |
"The need for this extra effort in the glibc wrapper functions went away with " |
| 787 |
"Linux 2.2 and later. However, glibc continued to provide this behavior " |
| 788 |
"until glibc 2.10. Starting with glibc 2.9, the wrapper functions provide " |
| 789 |
"this behavior only if the library detects that the system is running a Linux " |
| 790 |
"kernel older than Linux 2.6.18 (an arbitrarily selected kernel version). " |
| 791 |
"And since glibc 2.20 (which requires a minimum of Linux 2.6.32), the glibc " |
| 792 |
"wrapper functions always just directly invoke the system calls." |
| 793 |
msgstr "" |
| 794 |
|
| 795 |
#. type: SH |
| 796 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 797 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 798 |
#, no-wrap |
| 799 |
msgid "NOTES" |
| 800 |
msgstr "" |
| 801 |
|
| 802 |
#. type: Plain text |
| 803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 804 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 805 |
msgid "" |
| 806 |
"POSIX.1 allows an implementation to place a limit on the number of items " |
| 807 |
"that can be passed in I<iov>. An implementation can advertise its limit by " |
| 808 |
"defining B<IOV_MAX> in I<E<lt>limits.hE<gt>> or at run time via the return " |
| 809 |
"value from I<sysconf(_SC_IOV_MAX)>. On modern Linux systems, the limit is " |
| 810 |
"1024. Back in Linux 2.0 days, this limit was 16." |
| 811 |
msgstr "" |
| 812 |
|
| 813 |
#. type: SH |
| 814 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 815 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 816 |
#, no-wrap |
| 817 |
msgid "BUGS" |
| 818 |
msgstr "" |
| 819 |
|
| 820 |
#. See |
| 821 |
#. <https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u> |
| 822 |
#. The bug was introduced in |
| 823 |
#. efa8480a831 fs: RWF_NOWAIT should imply IOCB_NOIO |
| 824 |
#. and fixed in |
| 825 |
#. 06c0444290 mm/filemap.c: generic_file_buffered_read() now uses find_get_pages_contig |
| 826 |
#. type: Plain text |
| 827 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 828 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 829 |
msgid "" |
| 830 |
"Linux 5.9 and Linux 5.10 have a bug where B<preadv2>() with the " |
| 831 |
"B<RWF_NOWAIT> flag may return 0 even when not at end of file." |
| 832 |
msgstr "" |
| 833 |
|
| 834 |
#. type: SH |
| 835 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 836 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 837 |
#, no-wrap |
| 838 |
msgid "EXAMPLES" |
| 839 |
msgstr "" |
| 840 |
|
| 841 |
#. type: Plain text |
| 842 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 843 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 844 |
msgid "The following code sample demonstrates the use of B<writev>():" |
| 845 |
msgstr "" |
| 846 |
|
| 847 |
#. type: Plain text |
| 848 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 849 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 850 |
#, no-wrap |
| 851 |
msgid "" |
| 852 |
"char *str0 = \"hello \";\n" |
| 853 |
"char *str1 = \"world\\[rs]n\";\n" |
| 854 |
"ssize_t nwritten;\n" |
| 855 |
"struct iovec iov[2];\n" |
| 856 |
"\\&\n" |
| 857 |
"iov[0].iov_base = str0;\n" |
| 858 |
"iov[0].iov_len = strlen(str0);\n" |
| 859 |
"iov[1].iov_base = str1;\n" |
| 860 |
"iov[1].iov_len = strlen(str1);\n" |
| 861 |
"\\&\n" |
| 862 |
"nwritten = writev(STDOUT_FILENO, iov, 2);\n" |
| 863 |
msgstr "" |
| 864 |
|
| 865 |
#. type: SH |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
#, no-wrap |
| 869 |
msgid "SEE ALSO" |
| 870 |
msgstr "" |
| 871 |
|
| 872 |
#. type: Plain text |
| 873 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 874 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 875 |
msgid "B<pread>(2), B<read>(2), B<write>(2)" |
| 876 |
msgstr "" |
| 877 |
|
| 878 |
#. type: TH |
| 879 |
#: debian-trixie |
| 880 |
#, no-wrap |
| 881 |
msgid "2024-06-15" |
| 882 |
msgstr "" |
| 883 |
|
| 884 |
#. type: TH |
| 885 |
#: debian-trixie |
| 886 |
#, no-wrap |
| 887 |
msgid "Linux man-pages 6.9.1" |
| 888 |
msgstr "" |
| 889 |
|
| 890 |
#. type: Plain text |
| 891 |
#: debian-trixie |
| 892 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 893 |
msgstr "" |
| 894 |
|
| 895 |
#. type: Plain text |
| 896 |
#: debian-trixie |
| 897 |
msgid "" |
| 898 |
"The vector count, I<iovcnt>, is less than zero or greater than the permitted " |
| 899 |
"maximum." |
| 900 |
msgstr "" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: debian-trixie fedora-44 fedora-rawhide |
| 904 |
msgid "POSIX.1-2008." |
| 905 |
msgstr "" |
| 906 |
|
| 907 |
#. type: Plain text |
| 908 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 909 |
msgid "B<preadv>(), B<pwritev>(): Linux 2.6.30, glibc 2.10." |
| 910 |
msgstr "" |
| 911 |
|
| 912 |
#. type: Plain text |
| 913 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 914 |
msgid "B<preadv2>(), B<pwritev2>(): Linux 4.6, glibc 2.26." |
| 915 |
msgstr "" |
| 916 |
|
| 917 |
#. type: TH |
| 918 |
#: fedora-44 fedora-rawhide |
| 919 |
#, no-wrap |
| 920 |
msgid "2025-01-04" |
| 921 |
msgstr "" |
| 922 |
|
| 923 |
#. type: TH |
| 924 |
#: fedora-44 fedora-rawhide |
| 925 |
#, no-wrap |
| 926 |
msgid "Linux man-pages 6.13" |
| 927 |
msgstr "" |
| 928 |
|
| 929 |
#. type: Plain text |
| 930 |
#: fedora-44 fedora-rawhide |
| 931 |
msgid "" |
| 932 |
"Requires that writes to regular files in block-based filesystems be issued " |
| 933 |
"with torn-write protection. Torn-write protection means that for a power or " |
| 934 |
"any other hardware failure, all or none of the data from the write will be " |
| 935 |
"stored, but never a mix of old and new data. This flag is meaningful only " |
| 936 |
"for B<pwritev2>(), and its effect applies only to the data range written by " |
| 937 |
"the system call. The total write length must be power-of-2 and must be " |
| 938 |
"sized in the range [I<stx_atomic_write_unit_min>, " |
| 939 |
"I<stx_atomic_write_unit_max>]. The write must be at a naturally-aligned " |
| 940 |
"offset within the file with respect to the total write length. For example, " |
| 941 |
"a write of length 32KiB at a file offset of 32KiB is permitted, however a " |
| 942 |
"write of length 32KiB at a file offset of 48KiB is not permitted. The upper " |
| 943 |
"limit of I<iovcnt> for B<pwritev2>() is given by the value in " |
| 944 |
"I<stx_atomic_write_segments_max.> Torn-write protection only works with " |
| 945 |
"B<O_DIRECT> flag, i.e. buffered writes are not supported. To guarantee " |
| 946 |
"consistency from the write between a file's in-core state with the storage " |
| 947 |
"device, B<O_SYNC> or B<O_DSYNC> must be specified for B<open>(2). The same " |
| 948 |
"synchronized I/O guarantees as described in B<open>(2) are provided when " |
| 949 |
"these flags or their equivalent flags and system calls are used (e.g., if " |
| 950 |
"B<RWF_SYNC> is specified for B<pwritev2>())." |
| 951 |
msgstr "" |
| 952 |
|
| 953 |
#. type: TH |
| 954 |
#: mageia-cauldron |
| 955 |
#, no-wrap |
| 956 |
msgid "2026-02-08" |
| 957 |
msgstr "" |
| 958 |
|
| 959 |
#. type: TH |
| 960 |
#: mageia-cauldron |
| 961 |
#, no-wrap |
| 962 |
msgid "Linux man-pages 6.17" |
| 963 |
msgstr "" |
| 964 |
|
| 965 |
#. type: TH |
| 966 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 967 |
#, no-wrap |
| 968 |
msgid "Linux man-pages (unreleased)" |
| 969 |
msgstr "" |