| 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:51+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 "write" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "write - write to a file descriptor" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<ssize_t write(>size_t count;\n" |
| 85 |
"B< int >I<fd>B<, const void >I<buf>B<[>I<count>B<], size_t >I<count>B<);>\n" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: SH |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "DESCRIPTION" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "" |
| 99 |
"B<write>() writes up to I<count> bytes from the buffer starting at I<buf> " |
| 100 |
"to the file referred to by the file descriptor I<fd>." |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"The number of bytes written may be less than I<count> if, for example, there " |
| 108 |
"is insufficient space on the underlying physical medium, or the " |
| 109 |
"B<RLIMIT_FSIZE> resource limit is encountered (see B<setrlimit>(2)), or the " |
| 110 |
"call was interrupted by a signal handler after having written less than " |
| 111 |
"I<count> bytes. (See also B<pipe>(7).)" |
| 112 |
msgstr "" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"For a seekable file (i.e., one to which B<lseek>(2) may be applied, for " |
| 119 |
"example, a regular file) writing takes place at the file offset, and the " |
| 120 |
"file offset is incremented by the number of bytes actually written. If the " |
| 121 |
"file was B<open>(2)ed with B<O_APPEND>, the file offset is first set to the " |
| 122 |
"end of the file before writing. The adjustment of the file offset and the " |
| 123 |
"write operation are performed as an atomic step." |
| 124 |
msgstr "" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
msgid "" |
| 130 |
"POSIX requires that a B<read>(2) that can be proved to occur after a " |
| 131 |
"B<write>() has returned will return the new data. Note that not all " |
| 132 |
"filesystems are POSIX conforming." |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
msgid "" |
| 139 |
"According to POSIX.1, if I<count> is greater than B<SSIZE_MAX>, the result " |
| 140 |
"is implementation-defined; see NOTES for the upper limit on Linux." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: SH |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "RETURN VALUE" |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"On success, the number of bytes written is returned. On error, -1 is " |
| 155 |
"returned, and I<errno> is set to indicate the error." |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Note that a successful B<write>() may transfer fewer than I<count> bytes. " |
| 163 |
"Such partial writes can occur for various reasons; for example, because " |
| 164 |
"there was insufficient space on the disk device to write all of the " |
| 165 |
"requested bytes, or because a blocked B<write>() to a socket, pipe, or " |
| 166 |
"similar was interrupted by a signal handler after it had transferred some, " |
| 167 |
"but before it had transferred all of the requested bytes. In the event of a " |
| 168 |
"partial write, the caller can make another B<write>() call to transfer the " |
| 169 |
"remaining bytes. The subsequent call will either transfer further bytes or " |
| 170 |
"may result in an error (e.g., if the disk is now full)." |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "" |
| 177 |
"If I<count> is zero and I<fd> refers to a regular file, then B<write>() may " |
| 178 |
"return a failure status if one of the errors below is detected. If no " |
| 179 |
"errors are detected, or error detection is not performed, 0 is returned " |
| 180 |
"without causing any other effect. If I<count> is zero and I<fd> refers to a " |
| 181 |
"file other than a regular file, the results are not specified." |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: SH |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "ERRORS" |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#. type: TP |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "B<EAGAIN>" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"The file descriptor I<fd> refers to a file other than a socket and has been " |
| 203 |
"marked nonblocking (B<O_NONBLOCK>), and the write would block. See " |
| 204 |
"B<open>(2) for further details on the B<O_NONBLOCK> flag." |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: TP |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "B<EAGAIN> or B<EWOULDBLOCK>" |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#. Actually EAGAIN on Linux |
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"The file descriptor I<fd> refers to a socket and has been marked nonblocking " |
| 220 |
"(B<O_NONBLOCK>), and the write would block. POSIX.1-2001 allows either " |
| 221 |
"error to be returned for this case, and does not require these constants to " |
| 222 |
"have the same value, so a portable application should check for both " |
| 223 |
"possibilities." |
| 224 |
msgstr "" |
| 225 |
|
| 226 |
#. type: TP |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
#, no-wrap |
| 230 |
msgid "B<EBADF>" |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "I<fd> is not a valid file descriptor or is not open for writing." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: TP |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "B<EDESTADDRREQ>" |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"I<fd> refers to a datagram socket for which a peer address has not been set " |
| 251 |
"using B<connect>(2)." |
| 252 |
msgstr "" |
| 253 |
|
| 254 |
#. type: TP |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "B<EDQUOT>" |
| 259 |
msgstr "" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"The user's quota of disk blocks on the filesystem containing the file " |
| 266 |
"referred to by I<fd> has been exhausted." |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: TP |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "B<EFAULT>" |
| 274 |
msgstr "" |
| 275 |
|
| 276 |
#. type: Plain text |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
msgid "I<buf> is outside your accessible address space." |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#. type: TP |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "B<EFBIG>" |
| 287 |
msgstr "" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
msgid "" |
| 293 |
"An attempt was made to write a file that exceeds the implementation-defined " |
| 294 |
"maximum file size or the process's file size limit, or to write at a " |
| 295 |
"position past the maximum allowed offset." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#. type: TP |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
#, no-wrap |
| 302 |
msgid "B<EINTR>" |
| 303 |
msgstr "" |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"The call was interrupted by a signal before any data was written; see " |
| 310 |
"B<signal>(7)." |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: TP |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "B<EINVAL>" |
| 318 |
msgstr "" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
msgid "" |
| 324 |
"I<fd> is attached to an object which is unsuitable for writing; or the file " |
| 325 |
"was opened with the B<O_DIRECT> flag, and either the address specified in " |
| 326 |
"I<buf>, the value specified in I<count>, or the file offset is not suitably " |
| 327 |
"aligned." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#. type: TP |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid "B<EIO>" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. commit 088737f44bbf6378745f5b57b035e57ee3dc4750 |
| 338 |
#. type: Plain text |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
msgid "" |
| 342 |
"A low-level I/O error occurred while modifying the inode. This error may " |
| 343 |
"relate to the write-back of data written by an earlier B<write>(), which may " |
| 344 |
"have been issued to a different file descriptor on the same file. Since " |
| 345 |
"Linux 4.13, errors from write-back come with a promise that they I<may> be " |
| 346 |
"reported by subsequent. B<write>() requests, and I<will> be reported by a " |
| 347 |
"subsequent B<fsync>(2) (whether or not they were also reported by " |
| 348 |
"B<write>()). An alternate cause of B<EIO> on networked filesystems is when " |
| 349 |
"an advisory lock had been taken out on the file descriptor and this lock has " |
| 350 |
"been lost. See the I<Lost locks> section of B<fcntl>(2) for further " |
| 351 |
"details." |
| 352 |
msgstr "" |
| 353 |
|
| 354 |
#. type: TP |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
#, no-wrap |
| 358 |
msgid "B<ENOSPC>" |
| 359 |
msgstr "" |
| 360 |
|
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
msgid "" |
| 365 |
"The device containing the file referred to by I<fd> has no room for the data." |
| 366 |
msgstr "" |
| 367 |
|
| 368 |
#. type: TP |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "B<EPERM>" |
| 373 |
msgstr "" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "The operation was prevented by a file seal; see B<fcntl>(2)." |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: TP |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "B<EPIPE>" |
| 386 |
msgstr "" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "" |
| 392 |
"I<fd> is connected to a pipe or socket whose reading end is closed. When " |
| 393 |
"this happens the writing process will also receive a B<SIGPIPE> signal. " |
| 394 |
"(Thus, the write return value is seen only if the program catches, blocks or " |
| 395 |
"ignores this signal.)" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
msgid "Other errors may occur, depending on the object connected to I<fd>." |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: SH |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "STANDARDS" |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 413 |
#: opensuse-tumbleweed |
| 414 |
msgid "POSIX.1-2024." |
| 415 |
msgstr "" |
| 416 |
|
| 417 |
#. type: SH |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
#, no-wrap |
| 421 |
msgid "HISTORY" |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. SVr4 documents additional error |
| 425 |
#. conditions EDEADLK, ENOLCK, ENOLNK, ENOSR, ENXIO, or ERANGE. |
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 430 |
msgstr "" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "" |
| 436 |
"Under SVr4 a write may be interrupted and return B<EINTR> at any point, not " |
| 437 |
"just before any data is written." |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: SH |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
#, no-wrap |
| 444 |
msgid "NOTES" |
| 445 |
msgstr "" |
| 446 |
|
| 447 |
#. type: Plain text |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
msgid "" |
| 451 |
"A successful return from B<write>() does not make any guarantee that data " |
| 452 |
"has been committed to disk. On some filesystems, including NFS, it does not " |
| 453 |
"even guarantee that space has successfully been reserved for the data. In " |
| 454 |
"this case, some errors might be delayed until a future B<write>(), " |
| 455 |
"B<fsync>(2), or even B<close>(2). The only way to be sure is to call " |
| 456 |
"B<fsync>(2) after you are done writing all your data." |
| 457 |
msgstr "" |
| 458 |
|
| 459 |
#. type: Plain text |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
msgid "" |
| 463 |
"If a B<write>() is interrupted by a signal handler before any bytes are " |
| 464 |
"written, then the call fails with the error B<EINTR>; if it is interrupted " |
| 465 |
"after at least one byte has been written, the call succeeds, and returns the " |
| 466 |
"number of bytes written." |
| 467 |
msgstr "" |
| 468 |
|
| 469 |
#. commit e28cc71572da38a5a12c1cfe4d7032017adccf69 |
| 470 |
#. type: Plain text |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
msgid "" |
| 474 |
"On Linux, B<write>() (and similar system calls) will transfer at most " |
| 475 |
"0x7ffff000 (2,147,479,552) bytes, returning the number of bytes actually " |
| 476 |
"transferred. (This is true on both 32-bit and 64-bit systems.)" |
| 477 |
msgstr "" |
| 478 |
|
| 479 |
#. type: Plain text |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
msgid "" |
| 483 |
"An error return value while performing B<write>() using direct I/O does not " |
| 484 |
"mean the entire write has failed. Partial data may be written and the data " |
| 485 |
"at the file offset on which the B<write>() was attempted should be " |
| 486 |
"considered inconsistent." |
| 487 |
msgstr "" |
| 488 |
|
| 489 |
#. type: SH |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
#, no-wrap |
| 493 |
msgid "BUGS" |
| 494 |
msgstr "" |
| 495 |
|
| 496 |
#. type: Plain text |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
msgid "" |
| 500 |
"According to POSIX.1-2008/SUSv4 Section XSI 2.9.7 (\"Thread Interactions " |
| 501 |
"with Regular File Operations\"):" |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
msgid "" |
| 508 |
"All of the following functions shall be atomic with respect to each other in " |
| 509 |
"the effects specified in POSIX.1-2008 when they operate on regular files or " |
| 510 |
"symbolic links: ..." |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
# |
| 514 |
#. http://thread.gmane.org/gmane.linux.kernel/1649458 |
| 515 |
#. From: Michael Kerrisk (man-pages <mtk.manpages <at> gmail.com> |
| 516 |
#. Subject: Update of file offset on write() etc. is non-atomic with I/O |
| 517 |
#. Date: 2014-02-17 15:41:37 GMT |
| 518 |
#. Newsgroups: gmane.linux.kernel, gmane.linux.file-systems |
| 519 |
#. commit 9c225f2655e36a470c4f58dbbc99244c5fc7f2d4 |
| 520 |
#. Author: Linus Torvalds <[email protected]> |
| 521 |
#. Date: Mon Mar 3 09:36:58 2014 -0800 |
| 522 |
#. vfs: atomic f_pos accesses as per POSIX |
| 523 |
#. type: Plain text |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
msgid "" |
| 527 |
"Among the APIs subsequently listed are B<write>() and B<writev>(2). And " |
| 528 |
"among the effects that should be atomic across threads (and processes) are " |
| 529 |
"updates of the file offset. However, before Linux 3.14, this was not the " |
| 530 |
"case: if two processes that share an open file description (see B<open>(2)) " |
| 531 |
"perform a B<write>() (or B<writev>(2)) at the same time, then the I/O " |
| 532 |
"operations were not atomic with respect to updating the file offset, with " |
| 533 |
"the result that the blocks of data output by the two processes might " |
| 534 |
"(incorrectly) overlap. This problem was fixed in Linux 3.14." |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#. type: SH |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
#, no-wrap |
| 541 |
msgid "SEE ALSO" |
| 542 |
msgstr "" |
| 543 |
|
| 544 |
#. type: Plain text |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "" |
| 548 |
"B<close>(2), B<fcntl>(2), B<fsync>(2), B<ioctl>(2), B<lseek>(2), B<open>(2), " |
| 549 |
"B<pwrite>(2), B<read>(2), B<select>(2), B<writev>(2), B<fwrite>(3)" |
| 550 |
msgstr "" |
| 551 |
|
| 552 |
#. type: TH |
| 553 |
#: debian-trixie |
| 554 |
#, no-wrap |
| 555 |
msgid "2024-05-02" |
| 556 |
msgstr "" |
| 557 |
|
| 558 |
#. type: TH |
| 559 |
#: debian-trixie |
| 560 |
#, no-wrap |
| 561 |
msgid "Linux man-pages 6.9.1" |
| 562 |
msgstr "" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: debian-trixie |
| 566 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: debian-trixie fedora-44 fedora-rawhide |
| 571 |
#, no-wrap |
| 572 |
msgid "B<ssize_t write(int >I<fd>B<, const void >I<buf>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#. type: Plain text |
| 576 |
#: debian-trixie fedora-44 fedora-rawhide |
| 577 |
msgid "POSIX.1-2008." |
| 578 |
msgstr "" |
| 579 |
|
| 580 |
#. type: TH |
| 581 |
#: fedora-44 fedora-rawhide |
| 582 |
#, no-wrap |
| 583 |
msgid "2024-07-23" |
| 584 |
msgstr "" |
| 585 |
|
| 586 |
#. type: TH |
| 587 |
#: fedora-44 fedora-rawhide |
| 588 |
#, no-wrap |
| 589 |
msgid "Linux man-pages 6.13" |
| 590 |
msgstr "" |
| 591 |
|
| 592 |
#. type: TH |
| 593 |
#: mageia-cauldron |
| 594 |
#, no-wrap |
| 595 |
msgid "Linux man-pages 6.17" |
| 596 |
msgstr "" |
| 597 |
|
| 598 |
#. type: TH |
| 599 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "Linux man-pages (unreleased)" |
| 602 |
msgstr "" |