| 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:33+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 "open" |
| 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 "open, openat, creat - open and possibly create a file" |
| 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>fcntl.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<int open(const char *>I<path>B<, int >I<flags>B<, ...>\n" |
| 85 |
"B< >\\f[R]/*B< mode_t >I<mode>B< >\\f[R]*/B< );>\n" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 90 |
#: opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "B<int creat(const char *>I<path>B<, mode_t >I<mode>B<);>\n" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 97 |
#: opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "" |
| 100 |
"B<int openat(int >I<dirfd>B<, const char *>I<path>B<, int >I<flags>B<, ...>\n" |
| 101 |
"B< >\\f[R]/*B< mode_t >I<mode>B< >\\f[R]*/B< );>\n" |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 106 |
#: opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "" |
| 109 |
"/* Documented separately, in B<openat2>(2):\n" |
| 110 |
"\\& */\n" |
| 111 |
"B<int openat2(int >I<dirfd>B<, const char *>I<path>B<,>\n" |
| 112 |
"B< const struct open_how *>I<how>B<, size_t >I<size>B<);>\n" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
msgid "" |
| 119 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "B<openat>():" |
| 126 |
msgstr "" |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
#, no-wrap |
| 132 |
msgid "" |
| 133 |
" Since glibc 2.10:\n" |
| 134 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 135 |
" Before glibc 2.10:\n" |
| 136 |
" _ATFILE_SOURCE\n" |
| 137 |
msgstr "" |
| 138 |
|
| 139 |
#. type: SH |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "DESCRIPTION" |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 148 |
#: opensuse-tumbleweed |
| 149 |
msgid "" |
| 150 |
"The B<open>() system call opens the file specified by I<path>. If the " |
| 151 |
"specified file does not exist, it may optionally (if B<O_CREAT> is specified " |
| 152 |
"in I<flags>) be created by B<open>()." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"The return value of B<open>() is a file descriptor, a small, nonnegative " |
| 160 |
"integer that is an index to an entry in the process's table of open file " |
| 161 |
"descriptors. The file descriptor is used in subsequent system calls " |
| 162 |
"(B<read>(2), B<write>(2), B<lseek>(2), B<fcntl>(2), etc.) to refer to the " |
| 163 |
"open file. The file descriptor returned by a successful call will be the " |
| 164 |
"lowest-numbered file descriptor not currently open for the process." |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"By default, the new file descriptor is set to remain open across an " |
| 172 |
"B<execve>(2) (i.e., the B<FD_CLOEXEC> file descriptor flag described in " |
| 173 |
"B<fcntl>(2) is initially disabled); the B<O_CLOEXEC> flag, described below, " |
| 174 |
"can be used to change this default. The file offset is set to the beginning " |
| 175 |
"of the file (see B<lseek>(2))." |
| 176 |
msgstr "" |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 180 |
#: opensuse-tumbleweed |
| 181 |
msgid "" |
| 182 |
"A call to B<open>() creates a new I<open file description>, an entry in the " |
| 183 |
"system-wide table of open files. The open file description records the file " |
| 184 |
"offset and the file status flags (see below). A file descriptor is a " |
| 185 |
"reference to an open file description; this reference is unaffected if " |
| 186 |
"I<path> is subsequently removed or modified to refer to a different file. " |
| 187 |
"For further details on open file descriptions, see NOTES." |
| 188 |
msgstr "" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"The argument I<flags> must include one of the following I<access modes>: " |
| 195 |
"B<O_RDONLY>, B<O_WRONLY>, or B<O_RDWR>. These request opening the file read-" |
| 196 |
"only, write-only, or read/write, respectively." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. SUSv4 divides the flags into: |
| 200 |
#. * Access mode |
| 201 |
#. * File creation |
| 202 |
#. * File status |
| 203 |
#. * Other (O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW) |
| 204 |
#. though it's not clear what the difference between "other" and |
| 205 |
#. "File creation" flags is. I raised an Aardvark to see if this |
| 206 |
#. can be clarified in SUSv4; 10 Oct 2008. |
| 207 |
#. http://thread.gmane.org/gmane.comp.standards.posix.austin.general/64/focus=67 |
| 208 |
#. TC1 (balloted in 2013), resolved this, so that those three constants |
| 209 |
#. are also categorized" as file status flags. |
| 210 |
#. type: Plain text |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
msgid "" |
| 214 |
"In addition, zero or more file creation flags and file status flags can be " |
| 215 |
"bitwise ORed in I<flags>. The I<file creation flags> are B<O_CLOEXEC>, " |
| 216 |
"B<O_CREAT>, B<O_DIRECTORY>, B<O_EXCL>, B<O_NOCTTY>, B<O_NOFOLLOW>, " |
| 217 |
"B<O_TMPFILE>, and B<O_TRUNC>. The I<file status flags> are all of the " |
| 218 |
"remaining flags listed below. The distinction between these two groups of " |
| 219 |
"flags is that the file creation flags affect the semantics of the open " |
| 220 |
"operation itself, while the file status flags affect the semantics of " |
| 221 |
"subsequent I/O operations. The file status flags can be retrieved and (in " |
| 222 |
"some cases) modified; see B<fcntl>(2) for details." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"The full list of file creation flags and file status flags is as follows:" |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: TP |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
#, no-wrap |
| 236 |
msgid "B<O_APPEND>" |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "" |
| 243 |
"The file is opened in append mode. Before each B<write>(2), the file offset " |
| 244 |
"is positioned at the end of the file, as if with B<lseek>(2). The " |
| 245 |
"modification of the file offset and the write operation are performed as a " |
| 246 |
"single atomic step." |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#. For more background, see |
| 250 |
#. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=453946 |
| 251 |
#. http://nfs.sourceforge.net/ |
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "" |
| 256 |
"B<O_APPEND> may lead to corrupted files on NFS filesystems if more than one " |
| 257 |
"process appends data to a file at once. This is because NFS does not " |
| 258 |
"support appending to a file, so the client kernel has to simulate it, which " |
| 259 |
"can't be done without a race condition." |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#. type: TP |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "B<O_ASYNC>" |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
msgid "" |
| 273 |
"Enable signal-driven I/O: generate a signal (B<SIGIO> by default, but this " |
| 274 |
"can be changed via B<fcntl>(2)) when input or output becomes possible on " |
| 275 |
"this file descriptor. This feature is available only for terminals, " |
| 276 |
"pseudoterminals, sockets, and (since Linux 2.6) pipes and FIFOs. See " |
| 277 |
"B<fcntl>(2) for further details. See also BUGS, below." |
| 278 |
msgstr "" |
| 279 |
|
| 280 |
#. type: TP |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "B<O_CLOEXEC> (since Linux 2.6.23)" |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. NOTE! several other man pages refer to this text |
| 288 |
#. FIXME . for later review when Issue 8 is one day released... |
| 289 |
#. POSIX proposes to fix many APIs that provide hidden FDs |
| 290 |
#. http://austingroupbugs.net/tag_view_page.php?tag_id=8 |
| 291 |
#. http://austingroupbugs.net/view.php?id=368 |
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"Enable the close-on-exec flag for the new file descriptor. Specifying this " |
| 297 |
"flag permits a program to avoid additional B<fcntl>(2) B<F_SETFD> " |
| 298 |
"operations to set the B<FD_CLOEXEC> flag." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. This flag fixes only one form of the race condition; |
| 302 |
#. The race can also occur with, for example, file descriptors |
| 303 |
#. returned by accept(), pipe(), etc. |
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
msgid "" |
| 308 |
"Note that the use of this flag is essential in some multithreaded programs, " |
| 309 |
"because using a separate B<fcntl>(2) B<F_SETFD> operation to set the " |
| 310 |
"B<FD_CLOEXEC> flag does not suffice to avoid race conditions where one " |
| 311 |
"thread opens a file descriptor and attempts to set its close-on-exec flag " |
| 312 |
"using B<fcntl>(2) at the same time as another thread does a B<fork>(2) " |
| 313 |
"plus B<execve>(2). Depending on the order of execution, the race may lead " |
| 314 |
"to the file descriptor returned by B<open>() being unintentionally leaked " |
| 315 |
"to the program executed by the child process created by B<fork>(2). (This " |
| 316 |
"kind of race is in principle possible for any system call that creates a " |
| 317 |
"file descriptor whose close-on-exec flag should be set, and various other " |
| 318 |
"Linux system calls provide an equivalent of the B<O_CLOEXEC> flag to deal " |
| 319 |
"with this problem.)" |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#. type: TP |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
#, no-wrap |
| 326 |
msgid "B<O_CREAT>" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 331 |
#: opensuse-tumbleweed |
| 332 |
msgid "If I<path> does not exist, create it as a regular file." |
| 333 |
msgstr "" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
msgid "" |
| 339 |
"The owner (user ID) of the new file is set to the effective user ID of the " |
| 340 |
"process." |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#. As at Linux 2.6.25, bsdgroups is supported by ext2, ext3, ext4, and |
| 344 |
#. XFS (since Linux 2.6.14). |
| 345 |
#. type: Plain text |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
msgid "" |
| 349 |
"The group ownership (group ID) of the new file is set either to the " |
| 350 |
"effective group ID of the process (System V semantics) or to the group ID " |
| 351 |
"of the parent directory (BSD semantics). On Linux, the behavior depends on " |
| 352 |
"whether the set-group-ID mode bit is set on the parent directory: if that " |
| 353 |
"bit is set, then BSD semantics apply; otherwise, System V semantics apply. " |
| 354 |
"For some filesystems, the behavior also depends on the I<bsdgroups> and " |
| 355 |
"I<sysvgroups> mount options described in B<mount>(8)." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#. type: Plain text |
| 359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 361 |
msgid "" |
| 362 |
"The I<mode> argument specifies the file mode bits to be applied when a new " |
| 363 |
"file is created. If neither B<O_CREAT> nor B<O_TMPFILE> is specified in " |
| 364 |
"I<flags>, then I<mode> is ignored (and can thus be specified as 0, or simply " |
| 365 |
"omitted). The I<mode> argument B<must> be supplied if B<O_CREAT> or " |
| 366 |
"B<O_TMPFILE> is specified in I<flags>; if it is not supplied, some arbitrary " |
| 367 |
"bytes from the stack will be applied as the file mode." |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
msgid "" |
| 374 |
"The effective mode is modified by the process's I<umask> in the usual way: " |
| 375 |
"in the absence of a default ACL, the mode of the created file is I<(mode\\ " |
| 376 |
"&\\ \\[ti]umask)>." |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"Note that I<mode> applies only to future accesses of the newly created file; " |
| 384 |
"the B<open>() call that creates a read-only file may well return a read/" |
| 385 |
"write file descriptor." |
| 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 "The following symbolic constants are provided for I<mode>:" |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: TP |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "B<S_IRWXU>" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "00700 user (file owner) has read, write, and execute permission" |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: TP |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
#, no-wrap |
| 411 |
msgid "B<S_IRUSR>" |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 416 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
msgid "00400 user has read permission" |
| 418 |
msgstr "" |
| 419 |
|
| 420 |
#. type: TP |
| 421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
#, no-wrap |
| 424 |
msgid "B<S_IWUSR>" |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#. type: Plain text |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
msgid "00200 user has write permission" |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#. type: TP |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "B<S_IXUSR>" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "00100 user has execute permission" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: TP |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "B<S_IRWXG>" |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "00070 group has read, write, and execute permission" |
| 457 |
msgstr "" |
| 458 |
|
| 459 |
#. type: TP |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
#, no-wrap |
| 463 |
msgid "B<S_IRGRP>" |
| 464 |
msgstr "" |
| 465 |
|
| 466 |
#. type: Plain text |
| 467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 468 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 469 |
msgid "00040 group has read permission" |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#. type: TP |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
#, no-wrap |
| 476 |
msgid "B<S_IWGRP>" |
| 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 "00020 group has write permission" |
| 483 |
msgstr "" |
| 484 |
|
| 485 |
#. type: TP |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
#, no-wrap |
| 489 |
msgid "B<S_IXGRP>" |
| 490 |
msgstr "" |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
msgid "00010 group has execute permission" |
| 496 |
msgstr "" |
| 497 |
|
| 498 |
#. type: TP |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "B<S_IRWXO>" |
| 503 |
msgstr "" |
| 504 |
|
| 505 |
#. type: Plain text |
| 506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 507 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
msgid "00007 others have read, write, and execute permission" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: TP |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, no-wrap |
| 515 |
msgid "B<S_IROTH>" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: Plain text |
| 519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 520 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 521 |
msgid "00004 others have read permission" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: TP |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "B<S_IWOTH>" |
| 529 |
msgstr "" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
msgid "00002 others have write permission" |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#. type: TP |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
#, no-wrap |
| 541 |
msgid "B<S_IXOTH>" |
| 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 "00001 others have execute permission" |
| 548 |
msgstr "" |
| 549 |
|
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
msgid "" |
| 554 |
"According to POSIX, the effect when other bits are set in I<mode> is " |
| 555 |
"unspecified. On Linux, the following bits are also honored in I<mode>:" |
| 556 |
msgstr "" |
| 557 |
|
| 558 |
#. type: TP |
| 559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 560 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "B<S_ISUID>" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "0004000 set-user-ID bit" |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#. type: TP |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
#, no-wrap |
| 575 |
msgid "B<S_ISGID>" |
| 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 "0002000 set-group-ID bit (see B<inode>(7))." |
| 582 |
msgstr "" |
| 583 |
|
| 584 |
#. type: TP |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
#, no-wrap |
| 588 |
msgid "B<S_ISVTX>" |
| 589 |
msgstr "" |
| 590 |
|
| 591 |
#. type: Plain text |
| 592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 593 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 594 |
msgid "0001000 sticky bit (see B<inode>(7))." |
| 595 |
msgstr "" |
| 596 |
|
| 597 |
#. type: TP |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "B<O_DIRECT> (since Linux 2.4.10)" |
| 602 |
msgstr "" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "" |
| 608 |
"Try to minimize cache effects of the I/O to and from this file. In general " |
| 609 |
"this will degrade performance, but it is useful in special situations, such " |
| 610 |
"as when applications do their own caching. File I/O is done directly to/" |
| 611 |
"from user-space buffers. The B<O_DIRECT> flag on its own makes an effort to " |
| 612 |
"transfer data synchronously, but does not give the guarantees of the " |
| 613 |
"B<O_SYNC> flag that data and necessary metadata are transferred. To " |
| 614 |
"guarantee synchronous I/O, B<O_SYNC> must be used in addition to " |
| 615 |
"B<O_DIRECT>. See NOTES below for further discussion." |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"A semantically similar (but deprecated) interface for block devices is " |
| 623 |
"described in B<raw>(8)." |
| 624 |
msgstr "" |
| 625 |
|
| 626 |
#. #-#-#-#-# archlinux: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 627 |
#. type: TQ |
| 628 |
#. #-#-#-#-# debian-trixie: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 629 |
#. type: TP |
| 630 |
#. #-#-#-#-# debian-unstable: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 631 |
#. type: TQ |
| 632 |
#. #-#-#-#-# fedora-44: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 633 |
#. type: TP |
| 634 |
#. #-#-#-#-# fedora-rawhide: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 635 |
#. type: TP |
| 636 |
#. #-#-#-#-# mageia-cauldron: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 637 |
#. type: TQ |
| 638 |
#. #-#-#-#-# opensuse-leap-16-1: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 639 |
#. type: TQ |
| 640 |
#. #-#-#-#-# opensuse-tumbleweed: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 641 |
#. type: TQ |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
#, no-wrap |
| 645 |
msgid "B<O_DIRECTORY>" |
| 646 |
msgstr "" |
| 647 |
|
| 648 |
#. But see the following and its replies: |
| 649 |
#. http://marc.theaimsgroup.com/?t=112748702800001&r=1&w=2 |
| 650 |
#. [PATCH] open: O_DIRECTORY and O_CREAT together should fail |
| 651 |
#. O_DIRECTORY | O_CREAT causes O_DIRECTORY to be ignored. |
| 652 |
#. type: Plain text |
| 653 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 654 |
#: opensuse-tumbleweed |
| 655 |
msgid "" |
| 656 |
"If I<path> is not a directory, cause B<open>() to fail. This flag was " |
| 657 |
"added in Linux 2.1.126, to avoid denial-of-service problems if " |
| 658 |
"B<opendir>(3) is called on a FIFO or tape device." |
| 659 |
msgstr "" |
| 660 |
|
| 661 |
#. type: TP |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
#, no-wrap |
| 665 |
msgid "B<O_DSYNC>" |
| 666 |
msgstr "" |
| 667 |
|
| 668 |
#. type: Plain text |
| 669 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 670 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 671 |
msgid "" |
| 672 |
"Write operations on the file will complete according to the requirements of " |
| 673 |
"synchronized I/O I<data> integrity completion." |
| 674 |
msgstr "" |
| 675 |
|
| 676 |
#. type: Plain text |
| 677 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 678 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 679 |
msgid "" |
| 680 |
"By the time B<write>(2) (and similar) return, the output data has been " |
| 681 |
"transferred to the underlying hardware, along with any file metadata that " |
| 682 |
"would be required to retrieve that data (i.e., as though each B<write>(2) " |
| 683 |
"was followed by a call to B<fdatasync>(2)). See VERSIONS." |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: TP |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "B<O_EXCL>" |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 695 |
#: opensuse-tumbleweed |
| 696 |
msgid "" |
| 697 |
"Ensure that this call creates the file: if this flag is specified in " |
| 698 |
"conjunction with B<O_CREAT>, and I<path> already exists, then B<open>() " |
| 699 |
"fails with the error B<EEXIST>." |
| 700 |
msgstr "" |
| 701 |
|
| 702 |
#. POSIX.1-2001 explicitly requires this behavior. |
| 703 |
#. type: Plain text |
| 704 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 705 |
#: opensuse-tumbleweed |
| 706 |
msgid "" |
| 707 |
"When these two flags are specified, symbolic links are not followed: if " |
| 708 |
"I<path> is a symbolic link, then B<open>() fails regardless of where the " |
| 709 |
"symbolic link points." |
| 710 |
msgstr "" |
| 711 |
|
| 712 |
#. type: Plain text |
| 713 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 714 |
#: opensuse-tumbleweed |
| 715 |
msgid "" |
| 716 |
"In general, the behavior of B<O_EXCL> is undefined if it is used without " |
| 717 |
"B<O_CREAT>. There is one exception: on Linux 2.6 and later, B<O_EXCL> can " |
| 718 |
"be used without B<O_CREAT> if I<path> refers to a block device. If the " |
| 719 |
"block device is in use by the system (e.g., mounted), B<open>() fails with " |
| 720 |
"the error B<EBUSY>." |
| 721 |
msgstr "" |
| 722 |
|
| 723 |
#. type: Plain text |
| 724 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 725 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 726 |
msgid "" |
| 727 |
"On NFS, B<O_EXCL> is supported only when using NFSv3 or later on kernel 2.6 " |
| 728 |
"or later. In NFS environments where B<O_EXCL> support is not provided, " |
| 729 |
"programs that rely on it for performing locking tasks will contain a race " |
| 730 |
"condition. Portable programs that want to perform atomic file locking using " |
| 731 |
"a lockfile, and need to avoid reliance on NFS support for B<O_EXCL>, can " |
| 732 |
"create a unique file on the same filesystem (e.g., incorporating hostname " |
| 733 |
"and PID), and use B<link>(2) to make a link to the lockfile. If " |
| 734 |
"B<link>(2) returns 0, the lock is successful. Otherwise, use B<stat>(2) " |
| 735 |
"on the unique file to check if its link count has increased to 2, in which " |
| 736 |
"case the lock is also successful." |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#. type: TP |
| 740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 741 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
#, no-wrap |
| 743 |
msgid "B<O_LARGEFILE>" |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"(LFS) Allow files whose sizes cannot be represented in an I<off_t> (but can " |
| 751 |
"be represented in an I<off64_t>) to be opened. The B<_LARGEFILE64_SOURCE> " |
| 752 |
"macro must be defined (before including I<any> header files) in order to " |
| 753 |
"obtain this definition. Setting the B<_FILE_OFFSET_BITS> feature test macro " |
| 754 |
"to 64 (rather than using B<O_LARGEFILE>) is the preferred method of " |
| 755 |
"accessing large files on 32-bit systems (see B<feature_test_macros>(7))." |
| 756 |
msgstr "" |
| 757 |
|
| 758 |
#. type: TP |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, no-wrap |
| 762 |
msgid "B<O_NOATIME> (since Linux 2.6.8)" |
| 763 |
msgstr "" |
| 764 |
|
| 765 |
#. type: Plain text |
| 766 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 767 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 768 |
msgid "" |
| 769 |
"Do not update the file last access time (I<st_atime> in the inode) when the " |
| 770 |
"file is B<read>(2)." |
| 771 |
msgstr "" |
| 772 |
|
| 773 |
#. type: Plain text |
| 774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 775 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 776 |
msgid "" |
| 777 |
"This flag can be employed only if one of the following conditions is true:" |
| 778 |
msgstr "" |
| 779 |
|
| 780 |
#. type: IP |
| 781 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 782 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 783 |
#, no-wrap |
| 784 |
msgid "\\[bu]" |
| 785 |
msgstr "" |
| 786 |
|
| 787 |
#. Strictly speaking: the filesystem UID |
| 788 |
#. type: Plain text |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
msgid "The effective UID of the process matches the owner UID of the file." |
| 792 |
msgstr "" |
| 793 |
|
| 794 |
#. type: Plain text |
| 795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 797 |
msgid "" |
| 798 |
"The calling process has the B<CAP_FOWNER> capability in its user namespace " |
| 799 |
"and the owner UID of the file has a mapping in the namespace." |
| 800 |
msgstr "" |
| 801 |
|
| 802 |
#. The O_NOATIME flag also affects the treatment of st_atime |
| 803 |
#. by mmap() and readdir(2), MTK, Dec 04. |
| 804 |
#. type: Plain text |
| 805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 806 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 807 |
msgid "" |
| 808 |
"This flag is intended for use by indexing or backup programs, where its use " |
| 809 |
"can significantly reduce the amount of disk activity. This flag may not be " |
| 810 |
"effective on all filesystems. One example is NFS, where the server " |
| 811 |
"maintains the access time." |
| 812 |
msgstr "" |
| 813 |
|
| 814 |
#. type: TP |
| 815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 816 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 817 |
#, no-wrap |
| 818 |
msgid "B<O_NOCTTY>" |
| 819 |
msgstr "" |
| 820 |
|
| 821 |
#. type: Plain text |
| 822 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 823 |
#: opensuse-tumbleweed |
| 824 |
msgid "" |
| 825 |
"If I<path> refers to a terminal device\\[em]see B<tty>(4)\\[em]it will not " |
| 826 |
"become the process's controlling terminal even if the process does not have " |
| 827 |
"one." |
| 828 |
msgstr "" |
| 829 |
|
| 830 |
#. #-#-#-#-# archlinux: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 831 |
#. type: TQ |
| 832 |
#. #-#-#-#-# debian-trixie: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 833 |
#. type: TP |
| 834 |
#. #-#-#-#-# debian-unstable: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 835 |
#. type: TQ |
| 836 |
#. #-#-#-#-# fedora-44: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 837 |
#. type: TP |
| 838 |
#. #-#-#-#-# fedora-rawhide: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 839 |
#. type: TP |
| 840 |
#. #-#-#-#-# mageia-cauldron: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 841 |
#. type: TQ |
| 842 |
#. #-#-#-#-# opensuse-leap-16-1: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 843 |
#. type: TQ |
| 844 |
#. #-#-#-#-# opensuse-tumbleweed: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 845 |
#. type: TQ |
| 846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 847 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 848 |
#, no-wrap |
| 849 |
msgid "B<O_NOFOLLOW>" |
| 850 |
msgstr "" |
| 851 |
|
| 852 |
#. type: Plain text |
| 853 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 854 |
#: opensuse-tumbleweed |
| 855 |
msgid "" |
| 856 |
"If the trailing component (i.e., basename) of I<path> is a symbolic link, " |
| 857 |
"then the open fails, with the error B<ELOOP>. Symbolic links in earlier " |
| 858 |
"components of the pathname will still be followed. (Note that the B<ELOOP> " |
| 859 |
"error that can occur in this case is indistinguishable from the case where " |
| 860 |
"an open fails because there are too many symbolic links found while " |
| 861 |
"resolving components in the path prefix of the pathname.)" |
| 862 |
msgstr "" |
| 863 |
|
| 864 |
#. type: Plain text |
| 865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 866 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 867 |
msgid "" |
| 868 |
"This flag is a FreeBSD extension, which was added in Linux 2.1.126, and has " |
| 869 |
"subsequently been standardized in POSIX.1-2008." |
| 870 |
msgstr "" |
| 871 |
|
| 872 |
#. #-#-#-#-# archlinux: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 873 |
#. The headers from glibc 2.0.100 and later include a |
| 874 |
#. definition of this flag; \f[I]kernels before Linux 2.1.126 will ignore it if |
| 875 |
#. used\f[]. |
| 876 |
#. type: Plain text |
| 877 |
#. #-#-#-#-# debian-trixie: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 878 |
#. The headers from glibc 2.0.100 and later include a |
| 879 |
#. definition of this flag; \fIkernels before Linux 2.1.126 will ignore it if |
| 880 |
#. used\fP. |
| 881 |
#. type: Plain text |
| 882 |
#. #-#-#-#-# debian-unstable: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 883 |
#. The headers from glibc 2.0.100 and later include a |
| 884 |
#. definition of this flag; \f[I]kernels before Linux 2.1.126 will ignore it if |
| 885 |
#. used\f[]. |
| 886 |
#. type: Plain text |
| 887 |
#. #-#-#-#-# fedora-44: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 888 |
#. The headers from glibc 2.0.100 and later include a |
| 889 |
#. definition of this flag; \fIkernels before Linux 2.1.126 will ignore it if |
| 890 |
#. used\fP. |
| 891 |
#. type: Plain text |
| 892 |
#. #-#-#-#-# fedora-rawhide: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 893 |
#. The headers from glibc 2.0.100 and later include a |
| 894 |
#. definition of this flag; \fIkernels before Linux 2.1.126 will ignore it if |
| 895 |
#. used\fP. |
| 896 |
#. type: Plain text |
| 897 |
#. #-#-#-#-# mageia-cauldron: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 898 |
#. The headers from glibc 2.0.100 and later include a |
| 899 |
#. definition of this flag; \f[I]kernels before Linux 2.1.126 will ignore it if |
| 900 |
#. used\f[]. |
| 901 |
#. type: Plain text |
| 902 |
#. #-#-#-#-# opensuse-leap-16-1: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 903 |
#. The headers from glibc 2.0.100 and later include a |
| 904 |
#. definition of this flag; \f[I]kernels before Linux 2.1.126 will ignore it if |
| 905 |
#. used\f[]. |
| 906 |
#. type: Plain text |
| 907 |
#. #-#-#-#-# opensuse-tumbleweed: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 908 |
#. The headers from glibc 2.0.100 and later include a |
| 909 |
#. definition of this flag; \f[I]kernels before Linux 2.1.126 will ignore it if |
| 910 |
#. used\f[]. |
| 911 |
#. type: Plain text |
| 912 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 913 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 914 |
msgid "See also B<O_PATH> below." |
| 915 |
msgstr "" |
| 916 |
|
| 917 |
#. type: TP |
| 918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 919 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 920 |
#, no-wrap |
| 921 |
msgid "B<O_NONBLOCK> or B<O_NDELAY>" |
| 922 |
msgstr "" |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 926 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 927 |
msgid "" |
| 928 |
"When possible, the file is opened in nonblocking mode. Neither the " |
| 929 |
"B<open>() nor any subsequent I/O operations on the file descriptor which is " |
| 930 |
"returned will cause the calling process to wait." |
| 931 |
msgstr "" |
| 932 |
|
| 933 |
#. type: Plain text |
| 934 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 935 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 936 |
msgid "" |
| 937 |
"Note that the setting of this flag has no effect on the operation of " |
| 938 |
"B<poll>(2), B<select>(2), B<epoll>(7), and similar, since those interfaces " |
| 939 |
"merely inform the caller about whether a file descriptor is \"ready\", " |
| 940 |
"meaning that an I/O operation performed on the file descriptor with the " |
| 941 |
"B<O_NONBLOCK> flag I<clear> would not block." |
| 942 |
msgstr "" |
| 943 |
|
| 944 |
#. type: Plain text |
| 945 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 946 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
msgid "" |
| 948 |
"Note that this flag has no effect for regular files and block devices; that " |
| 949 |
"is, I/O operations will (briefly) block when device activity is required, " |
| 950 |
"regardless of whether B<O_NONBLOCK> is set. Since B<O_NONBLOCK> semantics " |
| 951 |
"might eventually be implemented, applications should not depend upon " |
| 952 |
"blocking behavior when specifying this flag for regular files and block " |
| 953 |
"devices." |
| 954 |
msgstr "" |
| 955 |
|
| 956 |
#. type: Plain text |
| 957 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 958 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 959 |
msgid "" |
| 960 |
"For the handling of FIFOs (named pipes), see also B<fifo>(7). For a " |
| 961 |
"discussion of the effect of B<O_NONBLOCK> in conjunction with mandatory file " |
| 962 |
"locks and with file leases, see B<fcntl>(2)." |
| 963 |
msgstr "" |
| 964 |
|
| 965 |
#. type: TP |
| 966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 967 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 968 |
#, no-wrap |
| 969 |
msgid "B<O_PATH> (since Linux 2.6.39)" |
| 970 |
msgstr "" |
| 971 |
|
| 972 |
# |
| 973 |
#. commit 1abf0c718f15a56a0a435588d1b104c7a37dc9bd |
| 974 |
#. commit 326be7b484843988afe57566b627fb7a70beac56 |
| 975 |
#. commit 65cfc6722361570bfe255698d9cd4dccaf47570d |
| 976 |
#. http://thread.gmane.org/gmane.linux.man/2790/focus=3496 |
| 977 |
#. Subject: Re: [PATCH] open(2): document O_PATH |
| 978 |
#. Newsgroups: gmane.linux.man, gmane.linux.kernel |
| 979 |
#. type: Plain text |
| 980 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 981 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 982 |
msgid "" |
| 983 |
"Obtain a file descriptor that can be used for two purposes: to indicate a " |
| 984 |
"location in the filesystem tree and to perform operations that act purely at " |
| 985 |
"the file descriptor level. The file itself is not opened, and other file " |
| 986 |
"operations (e.g., B<read>(2), B<write>(2), B<fchmod>(2), B<fchown>(2), " |
| 987 |
"B<fgetxattr>(2), B<ioctl>(2), B<mmap>(2)) fail with the error B<EBADF>." |
| 988 |
msgstr "" |
| 989 |
|
| 990 |
#. type: Plain text |
| 991 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 992 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 993 |
msgid "" |
| 994 |
"The following operations I<can> be performed on the resulting file " |
| 995 |
"descriptor:" |
| 996 |
msgstr "" |
| 997 |
|
| 998 |
#. type: Plain text |
| 999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1000 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1001 |
msgid "B<close>(2)." |
| 1002 |
msgstr "" |
| 1003 |
|
| 1004 |
#. commit 332a2e1244bd08b9e3ecd378028513396a004a24 |
| 1005 |
#. type: Plain text |
| 1006 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1007 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1008 |
msgid "" |
| 1009 |
"B<fchdir>(2), if the file descriptor refers to a directory (since Linux 3.5)." |
| 1010 |
msgstr "" |
| 1011 |
|
| 1012 |
#. type: Plain text |
| 1013 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1014 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1015 |
msgid "B<fstat>(2) (since Linux 3.6)." |
| 1016 |
msgstr "" |
| 1017 |
|
| 1018 |
#. fstat(): commit 55815f70147dcfa3ead5738fd56d3574e2e3c1c2 |
| 1019 |
#. fstatfs(): commit 9d05746e7b16d8565dddbe3200faa1e669d23bbf |
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1022 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1023 |
msgid "B<fstatfs>(2) (since Linux 3.12)." |
| 1024 |
msgstr "" |
| 1025 |
|
| 1026 |
#. type: Plain text |
| 1027 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1028 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1029 |
msgid "" |
| 1030 |
"Duplicating the file descriptor (B<dup>(2), B<fcntl>(2) B<F_DUPFD>, etc.)." |
| 1031 |
msgstr "" |
| 1032 |
|
| 1033 |
#. type: Plain text |
| 1034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1035 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1036 |
msgid "" |
| 1037 |
"Getting and setting file descriptor flags (B<fcntl>(2) B<F_GETFD> and " |
| 1038 |
"B<F_SETFD>)." |
| 1039 |
msgstr "" |
| 1040 |
|
| 1041 |
#. type: Plain text |
| 1042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1043 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1044 |
msgid "" |
| 1045 |
"Retrieving open file status flags using the B<fcntl>(2) B<F_GETFL> " |
| 1046 |
"operation: the returned flags will include the bit B<O_PATH>." |
| 1047 |
msgstr "" |
| 1048 |
|
| 1049 |
#. type: Plain text |
| 1050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1051 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1052 |
msgid "" |
| 1053 |
"Passing the file descriptor as the I<dirfd> argument of B<openat>() and the " |
| 1054 |
"other \"*at()\" system calls. This includes B<linkat>(2) with " |
| 1055 |
"B<AT_EMPTY_PATH> (or via procfs using B<AT_SYMLINK_FOLLOW>) even if the " |
| 1056 |
"file is not a directory." |
| 1057 |
msgstr "" |
| 1058 |
|
| 1059 |
#. type: Plain text |
| 1060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1061 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1062 |
msgid "" |
| 1063 |
"Passing the file descriptor to another process via a UNIX domain socket (see " |
| 1064 |
"B<SCM_RIGHTS> in B<unix>(7))." |
| 1065 |
msgstr "" |
| 1066 |
|
| 1067 |
#. type: Plain text |
| 1068 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1069 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1070 |
msgid "" |
| 1071 |
"When B<O_PATH> is specified in I<flags>, flag bits other than B<O_CLOEXEC>, " |
| 1072 |
"B<O_DIRECTORY>, and B<O_NOFOLLOW> are ignored." |
| 1073 |
msgstr "" |
| 1074 |
|
| 1075 |
#. type: Plain text |
| 1076 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1077 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1078 |
msgid "" |
| 1079 |
"Opening a file or directory with the B<O_PATH> flag requires no permissions " |
| 1080 |
"on the object itself (but does require execute permission on the directories " |
| 1081 |
"in the path prefix). Depending on the subsequent operation, a check for " |
| 1082 |
"suitable file permissions may be performed (e.g., B<fchdir>(2) requires " |
| 1083 |
"execute permission on the directory referred to by its file descriptor " |
| 1084 |
"argument). By contrast, obtaining a reference to a filesystem object by " |
| 1085 |
"opening it with the B<O_RDONLY> flag requires that the caller have read " |
| 1086 |
"permission on the object, even when the subsequent operation (e.g., " |
| 1087 |
"B<fchdir>(2), B<fstat>(2)) does not require read permission on the object." |
| 1088 |
msgstr "" |
| 1089 |
|
| 1090 |
#. type: Plain text |
| 1091 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1092 |
#: opensuse-tumbleweed |
| 1093 |
msgid "" |
| 1094 |
"If I<path> is a symbolic link and the B<O_NOFOLLOW> flag is also specified, " |
| 1095 |
"then the call returns a file descriptor referring to the symbolic link. " |
| 1096 |
"This file descriptor can be used as the I<dirfd> argument in calls to " |
| 1097 |
"B<fchownat>(2), B<fstatat>(2), B<linkat>(2), and B<readlinkat>(2) with an " |
| 1098 |
"empty pathname to have the calls operate on the symbolic link." |
| 1099 |
msgstr "" |
| 1100 |
|
| 1101 |
#. type: Plain text |
| 1102 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1103 |
#: opensuse-tumbleweed |
| 1104 |
msgid "" |
| 1105 |
"If I<path> refers to an automount point that has not yet been triggered, so " |
| 1106 |
"no other filesystem is mounted on it, then the call returns a file " |
| 1107 |
"descriptor referring to the automount directory without triggering a mount. " |
| 1108 |
"B<fstatfs>(2) can then be used to determine if it is, in fact, an " |
| 1109 |
"untriggered automount point (B<.f_type == AUTOFS_SUPER_MAGIC>)." |
| 1110 |
msgstr "" |
| 1111 |
|
| 1112 |
#. type: Plain text |
| 1113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1115 |
msgid "" |
| 1116 |
"One use of B<O_PATH> for regular files is to provide the equivalent of " |
| 1117 |
"POSIX.1's B<O_EXEC> functionality. This permits us to open a file for which " |
| 1118 |
"we have execute permission but not read permission, and then execute that " |
| 1119 |
"file, with steps something like the following:" |
| 1120 |
msgstr "" |
| 1121 |
|
| 1122 |
#. type: Plain text |
| 1123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1125 |
#, no-wrap |
| 1126 |
msgid "" |
| 1127 |
"char buf[PATH_MAX];\n" |
| 1128 |
"fd = open(\"some_prog\", O_PATH);\n" |
| 1129 |
"snprintf(buf, PATH_MAX, \"/proc/self/fd/%d\", fd);\n" |
| 1130 |
"execl(buf, \"some_prog\", (char *) NULL);\n" |
| 1131 |
msgstr "" |
| 1132 |
|
| 1133 |
#. type: Plain text |
| 1134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1136 |
msgid "" |
| 1137 |
"An B<O_PATH> file descriptor can also be passed as the argument of " |
| 1138 |
"B<fexecve>(3)." |
| 1139 |
msgstr "" |
| 1140 |
|
| 1141 |
#. type: TP |
| 1142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1144 |
#, no-wrap |
| 1145 |
msgid "B<O_SYNC>" |
| 1146 |
msgstr "" |
| 1147 |
|
| 1148 |
#. type: Plain text |
| 1149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1151 |
msgid "" |
| 1152 |
"Write operations on the file will complete according to the requirements of " |
| 1153 |
"synchronized I/O I<file> integrity completion (by contrast with the " |
| 1154 |
"synchronized I/O I<data> integrity completion provided by B<O_DSYNC>.)" |
| 1155 |
msgstr "" |
| 1156 |
|
| 1157 |
#. type: Plain text |
| 1158 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1159 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1160 |
msgid "" |
| 1161 |
"By the time B<write>(2) (or similar) returns, the output data and " |
| 1162 |
"associated file metadata have been transferred to the underlying hardware " |
| 1163 |
"(i.e., as though each B<write>(2) was followed by a call to B<fsync>(2)). " |
| 1164 |
"See VERSIONS." |
| 1165 |
msgstr "" |
| 1166 |
|
| 1167 |
#. type: TP |
| 1168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1170 |
#, no-wrap |
| 1171 |
msgid "B<O_TMPFILE> (since Linux 3.11)" |
| 1172 |
msgstr "" |
| 1173 |
|
| 1174 |
#. commit 60545d0d4610b02e55f65d141c95b18ccf855b6e |
| 1175 |
#. commit f4e0c30c191f87851c4a53454abb55ee276f4a7e |
| 1176 |
#. commit bb458c644a59dbba3a1fe59b27106c5e68e1c4bd |
| 1177 |
#. type: Plain text |
| 1178 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1179 |
#: opensuse-tumbleweed |
| 1180 |
msgid "" |
| 1181 |
"Create an unnamed temporary regular file. The I<path> argument specifies a " |
| 1182 |
"directory; an unnamed inode will be created in that directory's filesystem. " |
| 1183 |
"Anything written to the resulting file will be lost when the last file " |
| 1184 |
"descriptor is closed, unless the file is given a name." |
| 1185 |
msgstr "" |
| 1186 |
|
| 1187 |
#. type: Plain text |
| 1188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1190 |
msgid "" |
| 1191 |
"B<O_TMPFILE> must be specified with one of B<O_RDWR> or B<O_WRONLY> and, " |
| 1192 |
"optionally, B<O_EXCL>. If B<O_EXCL> is not specified, then B<linkat>(2) " |
| 1193 |
"can be used to link the temporary file into the filesystem, making it " |
| 1194 |
"permanent, using code like the following:" |
| 1195 |
msgstr "" |
| 1196 |
|
| 1197 |
#. type: Plain text |
| 1198 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1199 |
#: opensuse-tumbleweed |
| 1200 |
#, no-wrap |
| 1201 |
msgid "" |
| 1202 |
"char path[PATH_MAX];\n" |
| 1203 |
"fd = open(\"/path/to/dir\", O_TMPFILE | O_RDWR,\n" |
| 1204 |
" S_IRUSR | S_IWUSR);\n" |
| 1205 |
"\\&\n" |
| 1206 |
"/* File I/O on \\[aq]fd\\[aq]... */\n" |
| 1207 |
"\\&\n" |
| 1208 |
"linkat(fd, \"\", AT_FDCWD, \"/path/for/file\", AT_EMPTY_PATH);\n" |
| 1209 |
"\\&\n" |
| 1210 |
"/* If the caller doesn\\[aq]t have the CAP_DAC_READ_SEARCH\n" |
| 1211 |
" capability (needed to use AT_EMPTY_PATH with linkat(2)),\n" |
| 1212 |
" and there is a proc(5) filesystem mounted, then the\n" |
| 1213 |
" linkat(2) call above can be replaced with:\n" |
| 1214 |
"\\&\n" |
| 1215 |
"snprintf(path, PATH_MAX, \"/proc/self/fd/%d\", fd);\n" |
| 1216 |
"linkat(AT_FDCWD, path, AT_FDCWD, \"/path/for/file\",\n" |
| 1217 |
" AT_SYMLINK_FOLLOW);\n" |
| 1218 |
"*/\n" |
| 1219 |
msgstr "" |
| 1220 |
|
| 1221 |
#. type: Plain text |
| 1222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1224 |
msgid "" |
| 1225 |
"In this case, the B<open>() I<mode> argument determines the file permission " |
| 1226 |
"mode, as with B<O_CREAT>." |
| 1227 |
msgstr "" |
| 1228 |
|
| 1229 |
#. type: Plain text |
| 1230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1232 |
msgid "" |
| 1233 |
"Specifying B<O_EXCL> in conjunction with B<O_TMPFILE> prevents a temporary " |
| 1234 |
"file from being linked into the filesystem in the above manner. (Note that " |
| 1235 |
"the meaning of B<O_EXCL> in this case is different from the meaning of " |
| 1236 |
"B<O_EXCL> otherwise.)" |
| 1237 |
msgstr "" |
| 1238 |
|
| 1239 |
#. Inspired by http://lwn.net/Articles/559147/ |
| 1240 |
#. type: Plain text |
| 1241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1243 |
msgid "There are two main use cases for B<O_TMPFILE>:" |
| 1244 |
msgstr "" |
| 1245 |
|
| 1246 |
#. type: Plain text |
| 1247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1249 |
msgid "" |
| 1250 |
"Improved B<tmpfile>(3) functionality: race-free creation of temporary files " |
| 1251 |
"that (1) are automatically deleted when closed; (2) can never be reached via " |
| 1252 |
"any pathname; (3) are not subject to symlink attacks; and (4) do not require " |
| 1253 |
"the caller to devise unique names." |
| 1254 |
msgstr "" |
| 1255 |
|
| 1256 |
#. type: Plain text |
| 1257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1259 |
msgid "" |
| 1260 |
"Creating a file that is initially invisible, which is then populated with " |
| 1261 |
"data and adjusted to have appropriate filesystem attributes (B<fchown>(2), " |
| 1262 |
"B<fchmod>(2), B<fsetxattr>(2), etc.) before being atomically linked into " |
| 1263 |
"the filesystem in a fully formed state (using B<linkat>(2) as described " |
| 1264 |
"above)." |
| 1265 |
msgstr "" |
| 1266 |
|
| 1267 |
#. To check for support, grep for "tmpfile" in kernel sources |
| 1268 |
#. commit 99b6436bc29e4f10e4388c27a3e4810191cc4788 |
| 1269 |
#. commit ab29743117f9f4c22ac44c13c1647fb24fb2bafe |
| 1270 |
#. commit ef3b9af50bfa6a1f02cd7b3f5124b712b1ba3e3c |
| 1271 |
#. commit 50732df02eefb39ab414ef655979c2c9b64ad21c |
| 1272 |
#. type: Plain text |
| 1273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1275 |
msgid "" |
| 1276 |
"B<O_TMPFILE> requires support by the underlying filesystem; only a subset of " |
| 1277 |
"Linux filesystems provide that support. In the initial implementation, " |
| 1278 |
"support was provided in the ext2, ext3, ext4, UDF, Minix, and tmpfs " |
| 1279 |
"filesystems. Support for other filesystems has subsequently been added as " |
| 1280 |
"follows: XFS (Linux 3.15); Btrfs (Linux 3.16); F2FS (Linux 3.16); and ubifs " |
| 1281 |
"(Linux 4.9)" |
| 1282 |
msgstr "" |
| 1283 |
|
| 1284 |
#. type: TP |
| 1285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1287 |
#, no-wrap |
| 1288 |
msgid "B<O_TRUNC>" |
| 1289 |
msgstr "" |
| 1290 |
|
| 1291 |
#. type: Plain text |
| 1292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1294 |
msgid "" |
| 1295 |
"If the file already exists and is a regular file and the access mode allows " |
| 1296 |
"writing (i.e., is B<O_RDWR> or B<O_WRONLY>) it will be truncated to length " |
| 1297 |
"0. If the file is a FIFO or terminal device file, the B<O_TRUNC> flag is " |
| 1298 |
"ignored. Otherwise, the effect of B<O_TRUNC> is unspecified." |
| 1299 |
msgstr "" |
| 1300 |
|
| 1301 |
#. type: SS |
| 1302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1304 |
#, no-wrap |
| 1305 |
msgid "creat()" |
| 1306 |
msgstr "" |
| 1307 |
|
| 1308 |
#. type: Plain text |
| 1309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1311 |
msgid "" |
| 1312 |
"A call to B<creat>() is equivalent to calling B<open>() with I<flags> " |
| 1313 |
"equal to B<O_CREAT|O_WRONLY|O_TRUNC>." |
| 1314 |
msgstr "" |
| 1315 |
|
| 1316 |
#. type: SS |
| 1317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1319 |
#, no-wrap |
| 1320 |
msgid "openat()" |
| 1321 |
msgstr "" |
| 1322 |
|
| 1323 |
#. type: Plain text |
| 1324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1326 |
msgid "" |
| 1327 |
"The B<openat>() system call operates in exactly the same way as B<open>(), " |
| 1328 |
"except for the differences described here." |
| 1329 |
msgstr "" |
| 1330 |
|
| 1331 |
#. type: Plain text |
| 1332 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1333 |
#: opensuse-tumbleweed |
| 1334 |
msgid "" |
| 1335 |
"The I<dirfd> argument is used in conjunction with the I<path> argument as " |
| 1336 |
"follows:" |
| 1337 |
msgstr "" |
| 1338 |
|
| 1339 |
#. type: Plain text |
| 1340 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1341 |
#: opensuse-tumbleweed |
| 1342 |
msgid "If the pathname given in I<path> is absolute, then I<dirfd> is ignored." |
| 1343 |
msgstr "" |
| 1344 |
|
| 1345 |
#. type: Plain text |
| 1346 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1347 |
#: opensuse-tumbleweed |
| 1348 |
msgid "" |
| 1349 |
"If the pathname given in I<path> is relative and I<dirfd> is the special " |
| 1350 |
"value B<AT_FDCWD>, then I<path> is interpreted relative to the current " |
| 1351 |
"working directory of the calling process (like B<open>())." |
| 1352 |
msgstr "" |
| 1353 |
|
| 1354 |
#. type: Plain text |
| 1355 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1356 |
#: opensuse-tumbleweed |
| 1357 |
msgid "" |
| 1358 |
"If the pathname given in I<path> is relative, then it is interpreted " |
| 1359 |
"relative to the directory referred to by the file descriptor I<dirfd> " |
| 1360 |
"(rather than relative to the current working directory of the calling " |
| 1361 |
"process, as is done by B<open>() for a relative pathname). In this case, " |
| 1362 |
"I<dirfd> must be a directory that was opened for reading (B<O_RDONLY>) or " |
| 1363 |
"using the B<O_PATH> flag." |
| 1364 |
msgstr "" |
| 1365 |
|
| 1366 |
#. type: Plain text |
| 1367 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1368 |
#: opensuse-tumbleweed |
| 1369 |
msgid "" |
| 1370 |
"If the pathname given in I<path> is relative, and I<dirfd> is not a valid " |
| 1371 |
"file descriptor, an error (B<EBADF>) results. (Specifying an invalid file " |
| 1372 |
"descriptor number in I<dirfd> can be used as a means to ensure that I<path> " |
| 1373 |
"is absolute.)" |
| 1374 |
msgstr "" |
| 1375 |
|
| 1376 |
#. type: SS |
| 1377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1379 |
#, no-wrap |
| 1380 |
msgid "openat2(2)" |
| 1381 |
msgstr "" |
| 1382 |
|
| 1383 |
#. type: Plain text |
| 1384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1386 |
msgid "" |
| 1387 |
"The B<openat2>(2) system call is an extension of B<openat>(), and provides " |
| 1388 |
"a superset of the features of B<openat>(). It is documented separately, in " |
| 1389 |
"B<openat2>(2)." |
| 1390 |
msgstr "" |
| 1391 |
|
| 1392 |
#. type: SH |
| 1393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1395 |
#, no-wrap |
| 1396 |
msgid "RETURN VALUE" |
| 1397 |
msgstr "" |
| 1398 |
|
| 1399 |
#. type: Plain text |
| 1400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1402 |
msgid "" |
| 1403 |
"On success, B<open>(), B<openat>(), and B<creat>() return the new file " |
| 1404 |
"descriptor (a nonnegative integer). On error, -1 is returned and I<errno> " |
| 1405 |
"is set to indicate the error." |
| 1406 |
msgstr "" |
| 1407 |
|
| 1408 |
#. type: SH |
| 1409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1411 |
#, no-wrap |
| 1412 |
msgid "ERRORS" |
| 1413 |
msgstr "" |
| 1414 |
|
| 1415 |
#. type: Plain text |
| 1416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1418 |
msgid "" |
| 1419 |
"B<open>(), B<openat>(), and B<creat>() can fail with the following errors:" |
| 1420 |
msgstr "" |
| 1421 |
|
| 1422 |
#. type: TP |
| 1423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1425 |
#, no-wrap |
| 1426 |
msgid "B<EACCES>" |
| 1427 |
msgstr "" |
| 1428 |
|
| 1429 |
#. type: Plain text |
| 1430 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1431 |
#: opensuse-tumbleweed |
| 1432 |
msgid "" |
| 1433 |
"The requested access to the file is not allowed, or search permission is " |
| 1434 |
"denied for one of the directories in the path prefix of I<path>, or the file " |
| 1435 |
"did not exist yet and write access to the parent directory is not allowed. " |
| 1436 |
"(See also B<path_resolution>(7).)" |
| 1437 |
msgstr "" |
| 1438 |
|
| 1439 |
#. commit 30aba6656f61ed44cba445a3c0d38b296fa9e8f5 |
| 1440 |
#. type: Plain text |
| 1441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1443 |
msgid "" |
| 1444 |
"Where B<O_CREAT> is specified, the I<protected_fifos> or " |
| 1445 |
"I<protected_regular> sysctl is enabled, the file already exists and is a " |
| 1446 |
"FIFO or regular file, the owner of the file is neither the current user nor " |
| 1447 |
"the owner of the containing directory, and the containing directory is both " |
| 1448 |
"world- or group-writable and sticky. For details, see the descriptions of " |
| 1449 |
"I</proc/sys/fs/protected_fifos> and I</proc/sys/fs/protected_regular> in " |
| 1450 |
"B<proc_sys_fs>(5)." |
| 1451 |
msgstr "" |
| 1452 |
|
| 1453 |
#. type: TP |
| 1454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1456 |
#, no-wrap |
| 1457 |
msgid "B<EBADF>" |
| 1458 |
msgstr "" |
| 1459 |
|
| 1460 |
#. type: Plain text |
| 1461 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1462 |
#: opensuse-tumbleweed |
| 1463 |
msgid "" |
| 1464 |
"(B<openat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> nor a " |
| 1465 |
"valid file descriptor." |
| 1466 |
msgstr "" |
| 1467 |
|
| 1468 |
#. type: TP |
| 1469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1471 |
#, no-wrap |
| 1472 |
msgid "B<EBUSY>" |
| 1473 |
msgstr "" |
| 1474 |
|
| 1475 |
#. type: Plain text |
| 1476 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1477 |
#: opensuse-tumbleweed |
| 1478 |
msgid "" |
| 1479 |
"B<O_EXCL> was specified in I<flags> and I<path> refers to a block device " |
| 1480 |
"that is in use by the system (e.g., it is mounted)." |
| 1481 |
msgstr "" |
| 1482 |
|
| 1483 |
#. type: TP |
| 1484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1486 |
#, no-wrap |
| 1487 |
msgid "B<EDQUOT>" |
| 1488 |
msgstr "" |
| 1489 |
|
| 1490 |
#. type: Plain text |
| 1491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1493 |
msgid "" |
| 1494 |
"Where B<O_CREAT> is specified, the file does not exist, and the user's quota " |
| 1495 |
"of disk blocks or inodes on the filesystem has been exhausted." |
| 1496 |
msgstr "" |
| 1497 |
|
| 1498 |
#. type: TP |
| 1499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1501 |
#, no-wrap |
| 1502 |
msgid "B<EEXIST>" |
| 1503 |
msgstr "" |
| 1504 |
|
| 1505 |
#. type: Plain text |
| 1506 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1507 |
#: opensuse-tumbleweed |
| 1508 |
msgid "I<path> already exists and B<O_CREAT> and B<O_EXCL> were used." |
| 1509 |
msgstr "" |
| 1510 |
|
| 1511 |
#. type: TP |
| 1512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1514 |
#, no-wrap |
| 1515 |
msgid "B<EFAULT>" |
| 1516 |
msgstr "" |
| 1517 |
|
| 1518 |
#. type: Plain text |
| 1519 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1520 |
#: opensuse-tumbleweed |
| 1521 |
msgid "I<path> points outside your accessible address space." |
| 1522 |
msgstr "" |
| 1523 |
|
| 1524 |
#. type: TP |
| 1525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1527 |
#, no-wrap |
| 1528 |
msgid "B<EFBIG>" |
| 1529 |
msgstr "" |
| 1530 |
|
| 1531 |
#. type: Plain text |
| 1532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1534 |
msgid "See B<EOVERFLOW>." |
| 1535 |
msgstr "" |
| 1536 |
|
| 1537 |
#. type: TP |
| 1538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1540 |
#, no-wrap |
| 1541 |
msgid "B<EINTR>" |
| 1542 |
msgstr "" |
| 1543 |
|
| 1544 |
#. type: Plain text |
| 1545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1547 |
msgid "" |
| 1548 |
"While blocked waiting to complete an open of a slow device (e.g., a FIFO; " |
| 1549 |
"see B<fifo>(7)), the call was interrupted by a signal handler; see " |
| 1550 |
"B<signal>(7)." |
| 1551 |
msgstr "" |
| 1552 |
|
| 1553 |
#. type: TP |
| 1554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1556 |
#, no-wrap |
| 1557 |
msgid "B<EINVAL>" |
| 1558 |
msgstr "" |
| 1559 |
|
| 1560 |
#. type: Plain text |
| 1561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1563 |
msgid "" |
| 1564 |
"The filesystem does not support the B<O_DIRECT> flag. See B<NOTES> for more " |
| 1565 |
"information." |
| 1566 |
msgstr "" |
| 1567 |
|
| 1568 |
#. In particular, __O_TMPFILE instead of O_TMPFILE |
| 1569 |
#. type: Plain text |
| 1570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1572 |
msgid "Invalid value in I<flags>." |
| 1573 |
msgstr "" |
| 1574 |
|
| 1575 |
#. type: Plain text |
| 1576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1577 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1578 |
msgid "" |
| 1579 |
"B<O_TMPFILE> was specified in I<flags>, but neither B<O_WRONLY> nor " |
| 1580 |
"B<O_RDWR> was specified." |
| 1581 |
msgstr "" |
| 1582 |
|
| 1583 |
#. type: Plain text |
| 1584 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1585 |
#: opensuse-tumbleweed |
| 1586 |
msgid "" |
| 1587 |
"B<O_CREAT> and B<O_DIRECTORY> were both specified in I<flags ,> and the " |
| 1588 |
"Linux kernel version is 6.4 or later. (Earlier kernels were inconsistent in " |
| 1589 |
"this area, and POSIX does not specify the behavior.)" |
| 1590 |
msgstr "" |
| 1591 |
|
| 1592 |
#. type: Plain text |
| 1593 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1594 |
#: opensuse-tumbleweed |
| 1595 |
msgid "" |
| 1596 |
"B<O_CREAT> was specified in I<flags> and the final component (\"basename\") " |
| 1597 |
"of the new file's I<path> is invalid (e.g., it contains characters not " |
| 1598 |
"permitted by the underlying filesystem)." |
| 1599 |
msgstr "" |
| 1600 |
|
| 1601 |
#. type: Plain text |
| 1602 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1603 |
#: opensuse-tumbleweed |
| 1604 |
msgid "" |
| 1605 |
"The final component (\"basename\") of I<path> is invalid (e.g., it contains " |
| 1606 |
"characters not permitted by the underlying filesystem)." |
| 1607 |
msgstr "" |
| 1608 |
|
| 1609 |
#. type: TP |
| 1610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1612 |
#, no-wrap |
| 1613 |
msgid "B<EISDIR>" |
| 1614 |
msgstr "" |
| 1615 |
|
| 1616 |
#. type: Plain text |
| 1617 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1618 |
#: opensuse-tumbleweed |
| 1619 |
msgid "" |
| 1620 |
"I<path> refers to a directory and the access requested involved writing " |
| 1621 |
"(that is, B<O_WRONLY> or B<O_RDWR> is set)." |
| 1622 |
msgstr "" |
| 1623 |
|
| 1624 |
#. type: Plain text |
| 1625 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1626 |
#: opensuse-tumbleweed |
| 1627 |
msgid "" |
| 1628 |
"I<path> refers to an existing directory, B<O_TMPFILE> and one of B<O_WRONLY> " |
| 1629 |
"or B<O_RDWR> were specified in I<flags>, but this kernel version does not " |
| 1630 |
"provide the B<O_TMPFILE> functionality." |
| 1631 |
msgstr "" |
| 1632 |
|
| 1633 |
#. type: TP |
| 1634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1636 |
#, no-wrap |
| 1637 |
msgid "B<ELOOP>" |
| 1638 |
msgstr "" |
| 1639 |
|
| 1640 |
#. type: Plain text |
| 1641 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1642 |
#: opensuse-tumbleweed |
| 1643 |
msgid "Too many symbolic links were encountered in resolving I<path>." |
| 1644 |
msgstr "" |
| 1645 |
|
| 1646 |
#. type: Plain text |
| 1647 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1648 |
#: opensuse-tumbleweed |
| 1649 |
msgid "" |
| 1650 |
"I<path> was a symbolic link, and I<flags> specified B<O_NOFOLLOW> but not " |
| 1651 |
"B<O_PATH>." |
| 1652 |
msgstr "" |
| 1653 |
|
| 1654 |
#. type: TP |
| 1655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1656 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1657 |
#, no-wrap |
| 1658 |
msgid "B<EMFILE>" |
| 1659 |
msgstr "" |
| 1660 |
|
| 1661 |
#. type: Plain text |
| 1662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1664 |
msgid "" |
| 1665 |
"The per-process limit on the number of open file descriptors has been " |
| 1666 |
"reached (see the description of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 1667 |
msgstr "" |
| 1668 |
|
| 1669 |
#. type: TP |
| 1670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1672 |
#, no-wrap |
| 1673 |
msgid "B<ENAMETOOLONG>" |
| 1674 |
msgstr "" |
| 1675 |
|
| 1676 |
#. type: Plain text |
| 1677 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1678 |
#: opensuse-tumbleweed |
| 1679 |
msgid "I<path> was too long." |
| 1680 |
msgstr "" |
| 1681 |
|
| 1682 |
#. type: TP |
| 1683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1684 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1685 |
#, no-wrap |
| 1686 |
msgid "B<ENFILE>" |
| 1687 |
msgstr "" |
| 1688 |
|
| 1689 |
#. type: Plain text |
| 1690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1691 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1692 |
msgid "" |
| 1693 |
"The system-wide limit on the total number of open files has been reached." |
| 1694 |
msgstr "" |
| 1695 |
|
| 1696 |
#. type: TP |
| 1697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1698 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1699 |
#, no-wrap |
| 1700 |
msgid "B<ENODEV>" |
| 1701 |
msgstr "" |
| 1702 |
|
| 1703 |
#. type: Plain text |
| 1704 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1705 |
#: opensuse-tumbleweed |
| 1706 |
msgid "" |
| 1707 |
"I<path> refers to a device special file and no corresponding device exists. " |
| 1708 |
"(This is a Linux kernel bug; in this situation B<ENXIO> must be returned.)" |
| 1709 |
msgstr "" |
| 1710 |
|
| 1711 |
#. type: TP |
| 1712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1713 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1714 |
#, no-wrap |
| 1715 |
msgid "B<ENOENT>" |
| 1716 |
msgstr "" |
| 1717 |
|
| 1718 |
#. type: Plain text |
| 1719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1720 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1721 |
msgid "B<O_CREAT> is not set and the named file does not exist." |
| 1722 |
msgstr "" |
| 1723 |
|
| 1724 |
#. type: Plain text |
| 1725 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1726 |
#: opensuse-tumbleweed |
| 1727 |
msgid "" |
| 1728 |
"A directory component in I<path> does not exist or is a dangling symbolic " |
| 1729 |
"link." |
| 1730 |
msgstr "" |
| 1731 |
|
| 1732 |
#. type: Plain text |
| 1733 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1734 |
#: opensuse-tumbleweed |
| 1735 |
msgid "" |
| 1736 |
"I<path> refers to a nonexistent directory, B<O_TMPFILE> and one of " |
| 1737 |
"B<O_WRONLY> or B<O_RDWR> were specified in I<flags>, but this kernel version " |
| 1738 |
"does not provide the B<O_TMPFILE> functionality." |
| 1739 |
msgstr "" |
| 1740 |
|
| 1741 |
#. type: TP |
| 1742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1743 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1744 |
#, no-wrap |
| 1745 |
msgid "B<ENOMEM>" |
| 1746 |
msgstr "" |
| 1747 |
|
| 1748 |
#. type: Plain text |
| 1749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1750 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1751 |
msgid "" |
| 1752 |
"The named file is a FIFO, but memory for the FIFO buffer can't be allocated " |
| 1753 |
"because the per-user hard limit on memory allocation for pipes has been " |
| 1754 |
"reached and the caller is not privileged; see B<pipe>(7)." |
| 1755 |
msgstr "" |
| 1756 |
|
| 1757 |
#. type: Plain text |
| 1758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1760 |
msgid "Insufficient kernel memory was available." |
| 1761 |
msgstr "" |
| 1762 |
|
| 1763 |
#. type: TP |
| 1764 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1765 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1766 |
#, no-wrap |
| 1767 |
msgid "B<ENOSPC>" |
| 1768 |
msgstr "" |
| 1769 |
|
| 1770 |
#. type: Plain text |
| 1771 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1772 |
#: opensuse-tumbleweed |
| 1773 |
msgid "" |
| 1774 |
"I<path> was to be created but the device containing I<path> has no room for " |
| 1775 |
"the new file." |
| 1776 |
msgstr "" |
| 1777 |
|
| 1778 |
#. type: TP |
| 1779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1781 |
#, no-wrap |
| 1782 |
msgid "B<ENOTDIR>" |
| 1783 |
msgstr "" |
| 1784 |
|
| 1785 |
#. type: Plain text |
| 1786 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1787 |
#: opensuse-tumbleweed |
| 1788 |
msgid "" |
| 1789 |
"A component used as a directory in I<path> is not, in fact, a directory, or " |
| 1790 |
"B<O_DIRECTORY> was specified and I<path> was not a directory." |
| 1791 |
msgstr "" |
| 1792 |
|
| 1793 |
#. type: Plain text |
| 1794 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1795 |
#: opensuse-tumbleweed |
| 1796 |
msgid "" |
| 1797 |
"(B<openat>()) I<path> is a relative pathname and I<dirfd> is a file " |
| 1798 |
"descriptor referring to a file other than a directory." |
| 1799 |
msgstr "" |
| 1800 |
|
| 1801 |
#. type: TP |
| 1802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1803 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1804 |
#, no-wrap |
| 1805 |
msgid "B<ENXIO>" |
| 1806 |
msgstr "" |
| 1807 |
|
| 1808 |
#. type: Plain text |
| 1809 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1810 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1811 |
msgid "" |
| 1812 |
"B<O_NONBLOCK> | B<O_WRONLY> is set, the named file is a FIFO, and no process " |
| 1813 |
"has the FIFO open for reading." |
| 1814 |
msgstr "" |
| 1815 |
|
| 1816 |
#. type: Plain text |
| 1817 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1818 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1819 |
msgid "The file is a device special file and no corresponding device exists." |
| 1820 |
msgstr "" |
| 1821 |
|
| 1822 |
#. type: Plain text |
| 1823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1824 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1825 |
msgid "The file is a UNIX domain socket." |
| 1826 |
msgstr "" |
| 1827 |
|
| 1828 |
#. type: TP |
| 1829 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1830 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1831 |
#, no-wrap |
| 1832 |
msgid "B<EOPNOTSUPP>" |
| 1833 |
msgstr "" |
| 1834 |
|
| 1835 |
#. type: Plain text |
| 1836 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1837 |
#: opensuse-tumbleweed |
| 1838 |
msgid "The filesystem containing I<path> does not support B<O_TMPFILE>." |
| 1839 |
msgstr "" |
| 1840 |
|
| 1841 |
#. type: TP |
| 1842 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1843 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1844 |
#, no-wrap |
| 1845 |
msgid "B<EOVERFLOW>" |
| 1846 |
msgstr "" |
| 1847 |
|
| 1848 |
#. See http://bugzilla.kernel.org/show_bug.cgi?id=7253 |
| 1849 |
#. "Open of a large file on 32-bit fails with EFBIG, should be EOVERFLOW" |
| 1850 |
#. Reported 2006-10-03 |
| 1851 |
#. type: Plain text |
| 1852 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1853 |
#: opensuse-tumbleweed |
| 1854 |
msgid "" |
| 1855 |
"I<path> refers to a regular file that is too large to be opened. The usual " |
| 1856 |
"scenario here is that an application compiled on a 32-bit platform without " |
| 1857 |
"I<-D_FILE_OFFSET_BITS=64> tried to open a file whose size exceeds " |
| 1858 |
"I<(1E<lt>E<lt>31)-1> bytes; see also B<O_LARGEFILE> above. This is the " |
| 1859 |
"error specified by POSIX.1; before Linux 2.6.24, Linux gave the error " |
| 1860 |
"B<EFBIG> for this case." |
| 1861 |
msgstr "" |
| 1862 |
|
| 1863 |
#. type: TP |
| 1864 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1865 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1866 |
#, no-wrap |
| 1867 |
msgid "B<EPERM>" |
| 1868 |
msgstr "" |
| 1869 |
|
| 1870 |
#. #-#-#-#-# archlinux: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1871 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1872 |
#. type: Plain text |
| 1873 |
#. #-#-#-#-# debian-trixie: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1874 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1875 |
#. type: Plain text |
| 1876 |
#. #-#-#-#-# debian-unstable: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1877 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1878 |
#. type: Plain text |
| 1879 |
#. #-#-#-#-# fedora-44: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1880 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1881 |
#. type: Plain text |
| 1882 |
#. #-#-#-#-# fedora-rawhide: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1883 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1884 |
#. type: Plain text |
| 1885 |
#. #-#-#-#-# mageia-cauldron: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1886 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1887 |
#. type: Plain text |
| 1888 |
#. #-#-#-#-# opensuse-leap-16-1: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1889 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1890 |
#. type: Plain text |
| 1891 |
#. #-#-#-#-# opensuse-tumbleweed: open.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 1892 |
#. Strictly speaking, it's the filesystem UID... (MTK) |
| 1893 |
#. type: Plain text |
| 1894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1895 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1896 |
msgid "" |
| 1897 |
"The B<O_NOATIME> flag was specified, but the effective user ID of the caller " |
| 1898 |
"did not match the owner of the file and the caller was not privileged." |
| 1899 |
msgstr "" |
| 1900 |
|
| 1901 |
#. type: Plain text |
| 1902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1903 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1904 |
msgid "The operation was prevented by a file seal; see B<fcntl>(2)." |
| 1905 |
msgstr "" |
| 1906 |
|
| 1907 |
#. type: TP |
| 1908 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1909 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1910 |
#, no-wrap |
| 1911 |
msgid "B<EROFS>" |
| 1912 |
msgstr "" |
| 1913 |
|
| 1914 |
#. type: Plain text |
| 1915 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1916 |
#: opensuse-tumbleweed |
| 1917 |
msgid "" |
| 1918 |
"I<path> refers to a file on a read-only filesystem and write access was " |
| 1919 |
"requested." |
| 1920 |
msgstr "" |
| 1921 |
|
| 1922 |
#. type: TP |
| 1923 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1924 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1925 |
#, no-wrap |
| 1926 |
msgid "B<ETXTBSY>" |
| 1927 |
msgstr "" |
| 1928 |
|
| 1929 |
#. type: Plain text |
| 1930 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1931 |
#: opensuse-tumbleweed |
| 1932 |
msgid "" |
| 1933 |
"I<path> refers to an executable image which is currently being executed and " |
| 1934 |
"write access was requested." |
| 1935 |
msgstr "" |
| 1936 |
|
| 1937 |
#. type: Plain text |
| 1938 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1939 |
#: opensuse-tumbleweed |
| 1940 |
msgid "" |
| 1941 |
"I<path> refers to a file that is currently in use as a swap file, and the " |
| 1942 |
"B<O_TRUNC> flag was specified." |
| 1943 |
msgstr "" |
| 1944 |
|
| 1945 |
#. type: Plain text |
| 1946 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1947 |
#: opensuse-tumbleweed |
| 1948 |
msgid "" |
| 1949 |
"I<path> refers to a file that is currently being read by the kernel (e.g., " |
| 1950 |
"for module/firmware loading), and write access was requested." |
| 1951 |
msgstr "" |
| 1952 |
|
| 1953 |
#. type: TP |
| 1954 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1955 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1956 |
#, no-wrap |
| 1957 |
msgid "B<EWOULDBLOCK>" |
| 1958 |
msgstr "" |
| 1959 |
|
| 1960 |
#. type: Plain text |
| 1961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1962 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1963 |
msgid "" |
| 1964 |
"The B<O_NONBLOCK> flag was specified, and an incompatible lease was held on " |
| 1965 |
"the file (see B<fcntl>(2))." |
| 1966 |
msgstr "" |
| 1967 |
|
| 1968 |
#. type: SH |
| 1969 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1970 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1971 |
#, no-wrap |
| 1972 |
msgid "VERSIONS" |
| 1973 |
msgstr "" |
| 1974 |
|
| 1975 |
#. Linux 2.0, 2.5: truncate |
| 1976 |
#. Solaris 5.7, 5.8: truncate |
| 1977 |
#. Irix 6.5: truncate |
| 1978 |
#. Tru64 5.1B: truncate |
| 1979 |
#. HP-UX 11.22: truncate |
| 1980 |
#. FreeBSD 4.7: truncate |
| 1981 |
#. type: Plain text |
| 1982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1983 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1984 |
msgid "" |
| 1985 |
"The (undefined) effect of B<O_RDONLY | O_TRUNC> varies among " |
| 1986 |
"implementations. On many systems the file is actually truncated." |
| 1987 |
msgstr "" |
| 1988 |
|
| 1989 |
#. type: SS |
| 1990 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1991 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1992 |
#, no-wrap |
| 1993 |
msgid "Synchronized I/O" |
| 1994 |
msgstr "" |
| 1995 |
|
| 1996 |
#. type: Plain text |
| 1997 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1998 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1999 |
msgid "" |
| 2000 |
"The POSIX.1-2008 \"synchronized I/O\" option specifies different variants of " |
| 2001 |
"synchronized I/O, and specifies the B<open>() flags B<O_SYNC>, B<O_DSYNC>, " |
| 2002 |
"and B<O_RSYNC> for controlling the behavior. Regardless of whether an " |
| 2003 |
"implementation supports this option, it must at least support the use of " |
| 2004 |
"B<O_SYNC> for regular files." |
| 2005 |
msgstr "" |
| 2006 |
|
| 2007 |
#. type: Plain text |
| 2008 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2009 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2010 |
msgid "" |
| 2011 |
"Linux implements B<O_SYNC> and B<O_DSYNC>, but not B<O_RSYNC>. Somewhat " |
| 2012 |
"incorrectly, glibc defines B<O_RSYNC> to have the same value as B<O_SYNC>. " |
| 2013 |
"(B<O_RSYNC> is defined in the Linux header file I<E<lt>asm/fcntl.hE<gt>> on " |
| 2014 |
"HP PA-RISC, but it is not used.)" |
| 2015 |
msgstr "" |
| 2016 |
|
| 2017 |
#. type: Plain text |
| 2018 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2019 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2020 |
msgid "" |
| 2021 |
"B<O_SYNC> provides synchronized I/O I<file> integrity completion, meaning " |
| 2022 |
"write operations will flush data and all associated metadata to the " |
| 2023 |
"underlying hardware. B<O_DSYNC> provides synchronized I/O I<data> integrity " |
| 2024 |
"completion, meaning write operations will flush data to the underlying " |
| 2025 |
"hardware, but will only flush metadata updates that are required to allow a " |
| 2026 |
"subsequent read operation to complete successfully. Data integrity " |
| 2027 |
"completion can reduce the number of disk operations that are required for " |
| 2028 |
"applications that don't need the guarantees of file integrity completion." |
| 2029 |
msgstr "" |
| 2030 |
|
| 2031 |
#. type: Plain text |
| 2032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2033 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2034 |
msgid "" |
| 2035 |
"To understand the difference between the two types of completion, consider " |
| 2036 |
"two pieces of file metadata: the file last modification timestamp " |
| 2037 |
"(I<st_mtime>) and the file length. All write operations will update the " |
| 2038 |
"last file modification timestamp, but only writes that add data to the end " |
| 2039 |
"of the file will change the file length. The last modification timestamp is " |
| 2040 |
"not needed to ensure that a read completes successfully, but the file length " |
| 2041 |
"is. Thus, B<O_DSYNC> would only guarantee to flush updates to the file " |
| 2042 |
"length metadata (whereas B<O_SYNC> would also always flush the last " |
| 2043 |
"modification timestamp metadata)." |
| 2044 |
msgstr "" |
| 2045 |
|
| 2046 |
#. type: Plain text |
| 2047 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2048 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2049 |
msgid "" |
| 2050 |
"Before Linux 2.6.33, Linux implemented only the B<O_SYNC> flag for " |
| 2051 |
"B<open>(). However, when that flag was specified, most filesystems actually " |
| 2052 |
"provided the equivalent of synchronized I/O I<data> integrity completion " |
| 2053 |
"(i.e., B<O_SYNC> was actually implemented as the equivalent of B<O_DSYNC>)." |
| 2054 |
msgstr "" |
| 2055 |
|
| 2056 |
#. type: Plain text |
| 2057 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2058 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2059 |
msgid "" |
| 2060 |
"Since Linux 2.6.33, proper B<O_SYNC> support is provided. However, to " |
| 2061 |
"ensure backward binary compatibility, B<O_DSYNC> was defined with the same " |
| 2062 |
"value as the historical B<O_SYNC>, and B<O_SYNC> was defined as a new (two-" |
| 2063 |
"bit) flag value that includes the B<O_DSYNC> flag value. This ensures that " |
| 2064 |
"applications compiled against new headers get at least B<O_DSYNC> semantics " |
| 2065 |
"before Linux 2.6.33." |
| 2066 |
msgstr "" |
| 2067 |
|
| 2068 |
#. type: SS |
| 2069 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2070 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2071 |
#, no-wrap |
| 2072 |
msgid "C library/kernel differences" |
| 2073 |
msgstr "" |
| 2074 |
|
| 2075 |
#. type: Plain text |
| 2076 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2077 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2078 |
msgid "" |
| 2079 |
"Since glibc 2.26, the glibc wrapper function for B<open>() employs the " |
| 2080 |
"B<openat>() system call, rather than the kernel's B<open>() system call. " |
| 2081 |
"For certain architectures, this is also true before glibc 2.26." |
| 2082 |
msgstr "" |
| 2083 |
|
| 2084 |
#. type: SS |
| 2085 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2086 |
#: opensuse-tumbleweed |
| 2087 |
#, no-wrap |
| 2088 |
msgid "POSIX" |
| 2089 |
msgstr "" |
| 2090 |
|
| 2091 |
#. type: Plain text |
| 2092 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2093 |
#: opensuse-tumbleweed |
| 2094 |
msgid "POSIX.1-2024 specifies B<O_CLOFORK>, but Linux doesn't support it." |
| 2095 |
msgstr "" |
| 2096 |
|
| 2097 |
#. type: SH |
| 2098 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2099 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2100 |
#, no-wrap |
| 2101 |
msgid "STANDARDS" |
| 2102 |
msgstr "" |
| 2103 |
|
| 2104 |
#. type: TP |
| 2105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2107 |
#, no-wrap |
| 2108 |
msgid "B<open>()" |
| 2109 |
msgstr "" |
| 2110 |
|
| 2111 |
#. type: TQ |
| 2112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2114 |
#, no-wrap |
| 2115 |
msgid "B<creat>()" |
| 2116 |
msgstr "" |
| 2117 |
|
| 2118 |
#. type: TP |
| 2119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2121 |
#, no-wrap |
| 2122 |
msgid "B<openat>()" |
| 2123 |
msgstr "" |
| 2124 |
|
| 2125 |
#. type: Plain text |
| 2126 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2127 |
#: opensuse-tumbleweed |
| 2128 |
msgid "POSIX.1-2024." |
| 2129 |
msgstr "" |
| 2130 |
|
| 2131 |
#. type: TP |
| 2132 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2133 |
#: opensuse-tumbleweed |
| 2134 |
#, no-wrap |
| 2135 |
msgid "B<openat2>(2)" |
| 2136 |
msgstr "" |
| 2137 |
|
| 2138 |
#. type: Plain text |
| 2139 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2140 |
#: opensuse-tumbleweed |
| 2141 |
msgid "Linux." |
| 2142 |
msgstr "" |
| 2143 |
|
| 2144 |
#. type: TP |
| 2145 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2146 |
#: opensuse-tumbleweed |
| 2147 |
#, no-wrap |
| 2148 |
msgid "B<O_DIRECT>" |
| 2149 |
msgstr "" |
| 2150 |
|
| 2151 |
#. type: TQ |
| 2152 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2153 |
#: opensuse-tumbleweed |
| 2154 |
#, no-wrap |
| 2155 |
msgid "B<O_NOATIME>" |
| 2156 |
msgstr "" |
| 2157 |
|
| 2158 |
#. type: TQ |
| 2159 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2160 |
#: opensuse-tumbleweed |
| 2161 |
#, no-wrap |
| 2162 |
msgid "B<O_PATH>" |
| 2163 |
msgstr "" |
| 2164 |
|
| 2165 |
#. type: TQ |
| 2166 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2167 |
#: opensuse-tumbleweed |
| 2168 |
#, no-wrap |
| 2169 |
msgid "B<O_TMPFILE>" |
| 2170 |
msgstr "" |
| 2171 |
|
| 2172 |
#. type: SH |
| 2173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2175 |
#, no-wrap |
| 2176 |
msgid "HISTORY" |
| 2177 |
msgstr "" |
| 2178 |
|
| 2179 |
#. type: Plain text |
| 2180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2182 |
msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 2183 |
msgstr "" |
| 2184 |
|
| 2185 |
#. type: Plain text |
| 2186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2188 |
msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 2189 |
msgstr "" |
| 2190 |
|
| 2191 |
#. type: TP |
| 2192 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2193 |
#: opensuse-tumbleweed |
| 2194 |
#, no-wrap |
| 2195 |
msgid "B<O_CLOEXEC>" |
| 2196 |
msgstr "" |
| 2197 |
|
| 2198 |
#. type: Plain text |
| 2199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2201 |
msgid "POSIX.1-2008." |
| 2202 |
msgstr "" |
| 2203 |
|
| 2204 |
#. type: SH |
| 2205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2207 |
#, no-wrap |
| 2208 |
msgid "NOTES" |
| 2209 |
msgstr "" |
| 2210 |
|
| 2211 |
#. type: Plain text |
| 2212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2214 |
msgid "" |
| 2215 |
"Under Linux, the B<O_NONBLOCK> flag is sometimes used in cases where one " |
| 2216 |
"wants to open but does not necessarily have the intention to read or write. " |
| 2217 |
"For example, this may be used to open a device in order to get a file " |
| 2218 |
"descriptor for use with B<ioctl>(2)." |
| 2219 |
msgstr "" |
| 2220 |
|
| 2221 |
#. type: Plain text |
| 2222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2224 |
msgid "" |
| 2225 |
"Note that B<open>() can open device special files, but B<creat>() cannot " |
| 2226 |
"create them; use B<mknod>(2) instead." |
| 2227 |
msgstr "" |
| 2228 |
|
| 2229 |
#. type: Plain text |
| 2230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2232 |
msgid "" |
| 2233 |
"If the file is newly created, its I<st_atime>, I<st_ctime>, I<st_mtime> " |
| 2234 |
"fields (respectively, time of last access, time of last status change, and " |
| 2235 |
"time of last modification; see B<stat>(2)) are set to the current time, and " |
| 2236 |
"so are the I<st_ctime> and I<st_mtime> fields of the parent directory. " |
| 2237 |
"Otherwise, if the file is modified because of the B<O_TRUNC> flag, its " |
| 2238 |
"I<st_ctime> and I<st_mtime> fields are set to the current time." |
| 2239 |
msgstr "" |
| 2240 |
|
| 2241 |
#. type: Plain text |
| 2242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2244 |
msgid "" |
| 2245 |
"The files in the I</proc/>pidI</fd> directory show the open file descriptors " |
| 2246 |
"of the process with the PID I<pid>. The files in the I</proc/>pidI</fdinfo> " |
| 2247 |
"directory show even more information about these file descriptors. See " |
| 2248 |
"B<proc>(5) for further details of both of these directories." |
| 2249 |
msgstr "" |
| 2250 |
|
| 2251 |
#. type: Plain text |
| 2252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2254 |
msgid "" |
| 2255 |
"The Linux header file B<E<lt>asm/fcntl.hE<gt>> doesn't define B<O_ASYNC>; " |
| 2256 |
"the (BSD-derived) B<FASYNC> synonym is defined instead." |
| 2257 |
msgstr "" |
| 2258 |
|
| 2259 |
#. type: SS |
| 2260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2262 |
#, no-wrap |
| 2263 |
msgid "Open file descriptions" |
| 2264 |
msgstr "" |
| 2265 |
|
| 2266 |
#. type: Plain text |
| 2267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2269 |
msgid "" |
| 2270 |
"The term open file description is the one used by POSIX to refer to the " |
| 2271 |
"entries in the system-wide table of open files. In other contexts, this " |
| 2272 |
"object is variously also called an \"open file object\", a \"file handle\", " |
| 2273 |
"an \"open file table entry\", or\\[em]in kernel-developer parlance\\[em]a " |
| 2274 |
"I<struct file>." |
| 2275 |
msgstr "" |
| 2276 |
|
| 2277 |
#. type: Plain text |
| 2278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2280 |
msgid "" |
| 2281 |
"When a file descriptor is duplicated (using B<dup>(2) or similar), the " |
| 2282 |
"duplicate refers to the same open file description as the original file " |
| 2283 |
"descriptor, and the two file descriptors consequently share the file offset " |
| 2284 |
"and file status flags. Such sharing can also occur between processes: a " |
| 2285 |
"child process created via B<fork>(2) inherits duplicates of its parent's " |
| 2286 |
"file descriptors, and those duplicates refer to the same open file " |
| 2287 |
"descriptions." |
| 2288 |
msgstr "" |
| 2289 |
|
| 2290 |
#. type: Plain text |
| 2291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2293 |
msgid "" |
| 2294 |
"Each B<open>() of a file creates a new open file description; thus, there " |
| 2295 |
"may be multiple open file descriptions corresponding to a file inode." |
| 2296 |
msgstr "" |
| 2297 |
|
| 2298 |
#. type: Plain text |
| 2299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2301 |
msgid "" |
| 2302 |
"On Linux, one can use the B<kcmp>(2) B<KCMP_FILE> operation to test whether " |
| 2303 |
"two file descriptors (in the same process or in two different processes) " |
| 2304 |
"refer to the same open file description." |
| 2305 |
msgstr "" |
| 2306 |
|
| 2307 |
#. type: SS |
| 2308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2310 |
#, no-wrap |
| 2311 |
msgid "NFS" |
| 2312 |
msgstr "" |
| 2313 |
|
| 2314 |
#. type: Plain text |
| 2315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2317 |
msgid "" |
| 2318 |
"There are many infelicities in the protocol underlying NFS, affecting " |
| 2319 |
"amongst others B<O_SYNC> and B<O_NDELAY>." |
| 2320 |
msgstr "" |
| 2321 |
|
| 2322 |
#. type: Plain text |
| 2323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2325 |
msgid "" |
| 2326 |
"On NFS filesystems with UID mapping enabled, B<open>() may return a file " |
| 2327 |
"descriptor but, for example, B<read>(2) requests are denied with " |
| 2328 |
"B<EACCES>. This is because the client performs B<open>() by checking the " |
| 2329 |
"permissions, but UID mapping is performed by the server upon read and write " |
| 2330 |
"requests." |
| 2331 |
msgstr "" |
| 2332 |
|
| 2333 |
#. type: SS |
| 2334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2336 |
#, no-wrap |
| 2337 |
msgid "FIFOs" |
| 2338 |
msgstr "" |
| 2339 |
|
| 2340 |
#. type: Plain text |
| 2341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2343 |
msgid "" |
| 2344 |
"Opening the read or write end of a FIFO blocks until the other end is also " |
| 2345 |
"opened (by another process or thread). See B<fifo>(7) for further details." |
| 2346 |
msgstr "" |
| 2347 |
|
| 2348 |
#. type: SS |
| 2349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2351 |
#, no-wrap |
| 2352 |
msgid "File access mode" |
| 2353 |
msgstr "" |
| 2354 |
|
| 2355 |
#. type: Plain text |
| 2356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2358 |
msgid "" |
| 2359 |
"Unlike the other values that can be specified in I<flags>, the I<access " |
| 2360 |
"mode> values B<O_RDONLY>, B<O_WRONLY>, and B<O_RDWR> do not specify " |
| 2361 |
"individual bits. Rather, they define the low order two bits of I<flags>, " |
| 2362 |
"and are defined respectively as 0, 1, and 2. In other words, the " |
| 2363 |
"combination B<O_RDONLY | O_WRONLY> is a logical error, and certainly does " |
| 2364 |
"not have the same meaning as B<O_RDWR>." |
| 2365 |
msgstr "" |
| 2366 |
|
| 2367 |
#. See for example util-linux's disk-utils/setfdprm.c |
| 2368 |
#. For some background on access mode 3, see |
| 2369 |
#. http://thread.gmane.org/gmane.linux.kernel/653123 |
| 2370 |
#. "[RFC] correct flags to f_mode conversion in __dentry_open" |
| 2371 |
#. LKML, 12 Mar 2008 |
| 2372 |
#. type: Plain text |
| 2373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2375 |
msgid "" |
| 2376 |
"Linux reserves the special, nonstandard access mode 3 (binary 11) in " |
| 2377 |
"I<flags> to mean: check for read and write permission on the file and return " |
| 2378 |
"a file descriptor that can't be used for reading or writing. This " |
| 2379 |
"nonstandard access mode is used by some Linux drivers to return a file " |
| 2380 |
"descriptor that is to be used only for device-specific B<ioctl>(2) " |
| 2381 |
"operations." |
| 2382 |
msgstr "" |
| 2383 |
|
| 2384 |
#. type: SS |
| 2385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2387 |
#, no-wrap |
| 2388 |
msgid "Rationale for openat() and other directory file descriptor APIs" |
| 2389 |
msgstr "" |
| 2390 |
|
| 2391 |
#. type: Plain text |
| 2392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2394 |
msgid "" |
| 2395 |
"B<openat>() and the other system calls and library functions that take a " |
| 2396 |
"directory file descriptor argument (i.e., B<execveat>(2), B<faccessat>(2), " |
| 2397 |
"B<fanotify_mark>(2), B<fchmodat>(2), B<fchownat>(2), B<fspick>(2), " |
| 2398 |
"B<fstatat>(2), B<futimesat>(2), B<linkat>(2), B<mkdirat>(2), B<mknodat>(2), " |
| 2399 |
"B<mount_setattr>(2), B<move_mount>(2), B<name_to_handle_at>(2), " |
| 2400 |
"B<open_tree>(2), B<openat2>(2), B<readlinkat>(2), B<renameat>(2), " |
| 2401 |
"B<renameat2>(2), B<statx>(2), B<symlinkat>(2), B<unlinkat>(2), " |
| 2402 |
"B<utimensat>(2), B<mkfifoat>(3), and B<scandirat>(3)) address two problems " |
| 2403 |
"with the older interfaces that preceded them. Here, the explanation is in " |
| 2404 |
"terms of the B<openat>() call, but the rationale is analogous for the other " |
| 2405 |
"interfaces." |
| 2406 |
msgstr "" |
| 2407 |
|
| 2408 |
#. type: Plain text |
| 2409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2411 |
msgid "" |
| 2412 |
"First, B<openat>() allows an application to avoid race conditions that " |
| 2413 |
"could occur when using B<open>() to open files in directories other than " |
| 2414 |
"the current working directory. These race conditions result from the fact " |
| 2415 |
"that some component of the directory prefix given to B<open>() could be " |
| 2416 |
"changed in parallel with the call to B<open>(). Suppose, for example, that " |
| 2417 |
"we wish to create the file I<dir1/dir2/xxx.dep> if the file I<dir1/dir2/xxx> " |
| 2418 |
"exists. The problem is that between the existence check and the file-" |
| 2419 |
"creation step, I<dir1> or I<dir2> (which might be symbolic links) could be " |
| 2420 |
"modified to point to a different location. Such races can be avoided by " |
| 2421 |
"opening a file descriptor for the target directory, and then specifying that " |
| 2422 |
"file descriptor as the I<dirfd> argument of (say) B<fstatat>(2) and " |
| 2423 |
"B<openat>(). The use of the I<dirfd> file descriptor also has other " |
| 2424 |
"benefits:" |
| 2425 |
msgstr "" |
| 2426 |
|
| 2427 |
#. type: Plain text |
| 2428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2430 |
msgid "" |
| 2431 |
"the file descriptor is a stable reference to the directory, even if the " |
| 2432 |
"directory is renamed; and" |
| 2433 |
msgstr "" |
| 2434 |
|
| 2435 |
#. type: Plain text |
| 2436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2438 |
msgid "" |
| 2439 |
"the open file descriptor prevents the underlying filesystem from being " |
| 2440 |
"dismounted, just as when a process has a current working directory on a " |
| 2441 |
"filesystem." |
| 2442 |
msgstr "" |
| 2443 |
|
| 2444 |
#. type: Plain text |
| 2445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2447 |
msgid "" |
| 2448 |
"Second, B<openat>() allows the implementation of a per-thread \"current " |
| 2449 |
"working directory\", via file descriptor(s) maintained by the application. " |
| 2450 |
"(This functionality can also be obtained by tricks based on the use of I</" |
| 2451 |
"proc/self/fd/>dirfd, but less efficiently.)" |
| 2452 |
msgstr "" |
| 2453 |
|
| 2454 |
#. type: Plain text |
| 2455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2457 |
msgid "" |
| 2458 |
"The I<dirfd> argument for these APIs can be obtained by using B<open>() or " |
| 2459 |
"B<openat>() to open a directory (with either the B<O_RDONLY> or the " |
| 2460 |
"B<O_PATH> flag). Alternatively, such a file descriptor can be obtained by " |
| 2461 |
"applying B<dirfd>(3) to a directory stream created using B<opendir>(3)." |
| 2462 |
msgstr "" |
| 2463 |
|
| 2464 |
#. type: Plain text |
| 2465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2467 |
msgid "" |
| 2468 |
"When these APIs are given a I<dirfd> argument of B<AT_FDCWD> or the " |
| 2469 |
"specified pathname is absolute, then they handle their pathname argument in " |
| 2470 |
"the same way as the corresponding conventional APIs. However, in this case, " |
| 2471 |
"several of the APIs have a I<flags> argument that provides access to " |
| 2472 |
"functionality that is not available with the corresponding conventional APIs." |
| 2473 |
msgstr "" |
| 2474 |
|
| 2475 |
#. type: SS |
| 2476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2478 |
#, no-wrap |
| 2479 |
msgid "O_DIRECT" |
| 2480 |
msgstr "" |
| 2481 |
|
| 2482 |
#. type: Plain text |
| 2483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2485 |
msgid "" |
| 2486 |
"The B<O_DIRECT> flag may impose alignment restrictions on the length and " |
| 2487 |
"address of user-space buffers and the file offset of I/Os. In Linux " |
| 2488 |
"alignment restrictions vary by filesystem and kernel version and might be " |
| 2489 |
"absent entirely. The handling of misaligned B<O_DIRECT> I/Os also varies; " |
| 2490 |
"they can either fail with B<EINVAL> or fall back to buffered I/O." |
| 2491 |
msgstr "" |
| 2492 |
|
| 2493 |
#. type: Plain text |
| 2494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2496 |
msgid "" |
| 2497 |
"Since Linux 6.1, B<O_DIRECT> support and alignment restrictions for a file " |
| 2498 |
"can be queried using B<statx>(2), using the B<STATX_DIOALIGN> flag. Support " |
| 2499 |
"for B<STATX_DIOALIGN> varies by filesystem; see B<statx>(2)." |
| 2500 |
msgstr "" |
| 2501 |
|
| 2502 |
#. type: Plain text |
| 2503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2505 |
msgid "" |
| 2506 |
"Some filesystems provide their own interfaces for querying B<O_DIRECT> " |
| 2507 |
"alignment restrictions, for example the B<XFS_IOC_DIOINFO> operation in " |
| 2508 |
"B<xfsctl>(3). B<STATX_DIOALIGN> should be used instead when it is available." |
| 2509 |
msgstr "" |
| 2510 |
|
| 2511 |
#. type: Plain text |
| 2512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2514 |
msgid "" |
| 2515 |
"If none of the above is available, then direct I/O support and alignment " |
| 2516 |
"restrictions can only be assumed from known characteristics of the " |
| 2517 |
"filesystem, the individual file, the underlying storage device(s), and the " |
| 2518 |
"kernel version. In Linux 2.4, most filesystems based on block devices " |
| 2519 |
"require that the file offset and the length and memory address of all I/O " |
| 2520 |
"segments be multiples of the filesystem block size (typically 4096 bytes). " |
| 2521 |
"In Linux 2.6.0, this was relaxed to the logical block size of the block " |
| 2522 |
"device (typically 512 bytes). A block device's logical block size can be " |
| 2523 |
"determined using the B<ioctl>(2) B<BLKSSZGET> operation or from the shell " |
| 2524 |
"using the command:" |
| 2525 |
msgstr "" |
| 2526 |
|
| 2527 |
#. type: Plain text |
| 2528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2530 |
#, no-wrap |
| 2531 |
msgid "blockdev --getss\n" |
| 2532 |
msgstr "" |
| 2533 |
|
| 2534 |
#. type: Plain text |
| 2535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2537 |
msgid "" |
| 2538 |
"B<O_DIRECT> I/Os should never be run concurrently with the B<fork>(2) " |
| 2539 |
"system call, if the memory buffer is a private mapping (i.e., any mapping " |
| 2540 |
"created with the B<mmap>(2) B<MAP_PRIVATE> flag; this includes memory " |
| 2541 |
"allocated on the heap and statically allocated buffers). Any such I/Os, " |
| 2542 |
"whether submitted via an asynchronous I/O interface or from another thread " |
| 2543 |
"in the process, should be completed before B<fork>(2) is called. Failure " |
| 2544 |
"to do so can result in data corruption and undefined behavior in parent and " |
| 2545 |
"child processes. This restriction does not apply when the memory buffer for " |
| 2546 |
"the B<O_DIRECT> I/Os was created using B<shmat>(2) or B<mmap>(2) with the " |
| 2547 |
"B<MAP_SHARED> flag. Nor does this restriction apply when the memory buffer " |
| 2548 |
"has been advised as B<MADV_DONTFORK> with B<madvise>(2), ensuring that it " |
| 2549 |
"will not be available to the child after B<fork>(2)." |
| 2550 |
msgstr "" |
| 2551 |
|
| 2552 |
#. type: Plain text |
| 2553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2555 |
msgid "" |
| 2556 |
"The B<O_DIRECT> flag was introduced in SGI IRIX, where it has alignment " |
| 2557 |
"restrictions similar to those of Linux 2.4. IRIX has also a B<fcntl>(2) " |
| 2558 |
"call to query appropriate alignments, and sizes. FreeBSD 4.x introduced a " |
| 2559 |
"flag of the same name, but without alignment restrictions." |
| 2560 |
msgstr "" |
| 2561 |
|
| 2562 |
#. type: Plain text |
| 2563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2564 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2565 |
msgid "" |
| 2566 |
"B<O_DIRECT> support was added in Linux 2.4.10. Older Linux kernels simply " |
| 2567 |
"ignore this flag. Some filesystems may not implement the flag, in which " |
| 2568 |
"case B<open>() fails with the error B<EINVAL> if it is used." |
| 2569 |
msgstr "" |
| 2570 |
|
| 2571 |
#. type: Plain text |
| 2572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2574 |
msgid "" |
| 2575 |
"Applications should avoid mixing B<O_DIRECT> and normal I/O to the same " |
| 2576 |
"file, and especially to overlapping byte regions in the same file. Even " |
| 2577 |
"when the filesystem correctly handles the coherency issues in this " |
| 2578 |
"situation, overall I/O throughput is likely to be slower than using either " |
| 2579 |
"mode alone. Likewise, applications should avoid mixing B<mmap>(2) of files " |
| 2580 |
"with direct I/O to the same files." |
| 2581 |
msgstr "" |
| 2582 |
|
| 2583 |
#. type: Plain text |
| 2584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2585 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2586 |
msgid "" |
| 2587 |
"The behavior of B<O_DIRECT> with NFS will differ from local filesystems. " |
| 2588 |
"Older kernels, or kernels configured in certain ways, may not support this " |
| 2589 |
"combination. The NFS protocol does not support passing the flag to the " |
| 2590 |
"server, so B<O_DIRECT> I/O will bypass the page cache only on the client; " |
| 2591 |
"the server may still cache the I/O. The client asks the server to make the " |
| 2592 |
"I/O synchronous to preserve the synchronous semantics of B<O_DIRECT>. Some " |
| 2593 |
"servers will perform poorly under these circumstances, especially if the I/O " |
| 2594 |
"size is small. Some servers may also be configured to lie to clients about " |
| 2595 |
"the I/O having reached stable storage; this will avoid the performance " |
| 2596 |
"penalty at some risk to data integrity in the event of server power " |
| 2597 |
"failure. The Linux NFS client places no alignment restrictions on " |
| 2598 |
"B<O_DIRECT> I/O." |
| 2599 |
msgstr "" |
| 2600 |
|
| 2601 |
#. type: Plain text |
| 2602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2604 |
msgid "" |
| 2605 |
"In summary, B<O_DIRECT> is a potentially powerful tool that should be used " |
| 2606 |
"with caution. It is recommended that applications treat use of B<O_DIRECT> " |
| 2607 |
"as a performance option which is disabled by default." |
| 2608 |
msgstr "" |
| 2609 |
|
| 2610 |
#. type: SH |
| 2611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2613 |
#, no-wrap |
| 2614 |
msgid "BUGS" |
| 2615 |
msgstr "" |
| 2616 |
|
| 2617 |
#. FIXME . Check bugzilla report on open(O_ASYNC) |
| 2618 |
#. See http://bugzilla.kernel.org/show_bug.cgi?id=5993 |
| 2619 |
#. type: Plain text |
| 2620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2622 |
msgid "" |
| 2623 |
"Currently, it is not possible to enable signal-driven I/O by specifying " |
| 2624 |
"B<O_ASYNC> when calling B<open>(); use B<fcntl>(2) to enable this flag." |
| 2625 |
msgstr "" |
| 2626 |
|
| 2627 |
#. type: Plain text |
| 2628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2629 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2630 |
msgid "" |
| 2631 |
"One must check for two different error codes, B<EISDIR> and B<ENOENT>, when " |
| 2632 |
"trying to determine whether the kernel supports B<O_TMPFILE> functionality." |
| 2633 |
msgstr "" |
| 2634 |
|
| 2635 |
#. type: SH |
| 2636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2637 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2638 |
#, no-wrap |
| 2639 |
msgid "SEE ALSO" |
| 2640 |
msgstr "" |
| 2641 |
|
| 2642 |
#. type: Plain text |
| 2643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2645 |
msgid "" |
| 2646 |
"B<chmod>(2), B<chown>(2), B<close>(2), B<dup>(2), B<fcntl>(2), B<link>(2), " |
| 2647 |
"B<lseek>(2), B<mknod>(2), B<mmap>(2), B<mount>(2), B<open_by_handle_at>(2), " |
| 2648 |
"B<openat2>(2), B<read>(2), B<socket>(2), B<stat>(2), B<umask>(2), " |
| 2649 |
"B<unlink>(2), B<write>(2), B<fopen>(3), B<acl>(5), B<fifo>(7), B<inode>(7), " |
| 2650 |
"B<path_resolution>(7), B<symlink>(7)" |
| 2651 |
msgstr "" |
| 2652 |
|
| 2653 |
#. type: TH |
| 2654 |
#: debian-trixie |
| 2655 |
#, no-wrap |
| 2656 |
msgid "2024-05-02" |
| 2657 |
msgstr "" |
| 2658 |
|
| 2659 |
#. type: TH |
| 2660 |
#: debian-trixie |
| 2661 |
#, no-wrap |
| 2662 |
msgid "Linux man-pages 6.9.1" |
| 2663 |
msgstr "" |
| 2664 |
|
| 2665 |
#. type: Plain text |
| 2666 |
#: debian-trixie |
| 2667 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 2668 |
msgstr "" |
| 2669 |
|
| 2670 |
#. type: Plain text |
| 2671 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2672 |
#, no-wrap |
| 2673 |
msgid "" |
| 2674 |
"B<int open(const char *>I<pathname>B<, int >I<flags>B<, ...>\n" |
| 2675 |
"B< >/*B< mode_t >I<mode>B< >*/B< );>\n" |
| 2676 |
msgstr "" |
| 2677 |
|
| 2678 |
#. type: Plain text |
| 2679 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2680 |
#, no-wrap |
| 2681 |
msgid "B<int creat(const char *>I<pathname>B<, mode_t >I<mode>B<);>\n" |
| 2682 |
msgstr "" |
| 2683 |
|
| 2684 |
#. type: Plain text |
| 2685 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2686 |
#, no-wrap |
| 2687 |
msgid "" |
| 2688 |
"B<int openat(int >I<dirfd>B<, const char *>I<pathname>B<, int >I<flags>B<, ...>\n" |
| 2689 |
"B< >/*B< mode_t >I<mode>B< >*/B< );>\n" |
| 2690 |
msgstr "" |
| 2691 |
|
| 2692 |
#. type: Plain text |
| 2693 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2694 |
#, no-wrap |
| 2695 |
msgid "" |
| 2696 |
"/* Documented separately, in B<openat2>(2):\n" |
| 2697 |
"\\& */\n" |
| 2698 |
"B<int openat2(int >I<dirfd>B<, const char *>I<pathname>B<,>\n" |
| 2699 |
"B< const struct open_how *>I<how>B<, size_t >I<size>B<);>\n" |
| 2700 |
msgstr "" |
| 2701 |
|
| 2702 |
#. type: Plain text |
| 2703 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2704 |
msgid "" |
| 2705 |
"The B<open>() system call opens the file specified by I<pathname>. If the " |
| 2706 |
"specified file does not exist, it may optionally (if B<O_CREAT> is specified " |
| 2707 |
"in I<flags>) be created by B<open>()." |
| 2708 |
msgstr "" |
| 2709 |
|
| 2710 |
#. type: Plain text |
| 2711 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2712 |
msgid "" |
| 2713 |
"A call to B<open>() creates a new I<open file description>, an entry in the " |
| 2714 |
"system-wide table of open files. The open file description records the file " |
| 2715 |
"offset and the file status flags (see below). A file descriptor is a " |
| 2716 |
"reference to an open file description; this reference is unaffected if " |
| 2717 |
"I<pathname> is subsequently removed or modified to refer to a different " |
| 2718 |
"file. For further details on open file descriptions, see NOTES." |
| 2719 |
msgstr "" |
| 2720 |
|
| 2721 |
#. type: Plain text |
| 2722 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2723 |
msgid "If I<pathname> does not exist, create it as a regular file." |
| 2724 |
msgstr "" |
| 2725 |
|
| 2726 |
#. But see the following and its replies: |
| 2727 |
#. http://marc.theaimsgroup.com/?t=112748702800001&r=1&w=2 |
| 2728 |
#. [PATCH] open: O_DIRECTORY and O_CREAT together should fail |
| 2729 |
#. O_DIRECTORY | O_CREAT causes O_DIRECTORY to be ignored. |
| 2730 |
#. type: Plain text |
| 2731 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2732 |
msgid "" |
| 2733 |
"If I<pathname> is not a directory, cause the open to fail. This flag was " |
| 2734 |
"added in Linux 2.1.126, to avoid denial-of-service problems if " |
| 2735 |
"B<opendir>(3) is called on a FIFO or tape device." |
| 2736 |
msgstr "" |
| 2737 |
|
| 2738 |
#. type: Plain text |
| 2739 |
#: debian-trixie |
| 2740 |
msgid "" |
| 2741 |
"By the time B<write>(2) (and similar) return, the output data has been " |
| 2742 |
"transferred to the underlying hardware, along with any file metadata that " |
| 2743 |
"would be required to retrieve that data (i.e., as though each B<write>(2) " |
| 2744 |
"was followed by a call to B<fdatasync>(2)). I<See NOTES below>." |
| 2745 |
msgstr "" |
| 2746 |
|
| 2747 |
#. type: Plain text |
| 2748 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2749 |
msgid "" |
| 2750 |
"Ensure that this call creates the file: if this flag is specified in " |
| 2751 |
"conjunction with B<O_CREAT>, and I<pathname> already exists, then B<open>() " |
| 2752 |
"fails with the error B<EEXIST>." |
| 2753 |
msgstr "" |
| 2754 |
|
| 2755 |
#. POSIX.1-2001 explicitly requires this behavior. |
| 2756 |
#. type: Plain text |
| 2757 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2758 |
msgid "" |
| 2759 |
"When these two flags are specified, symbolic links are not followed: if " |
| 2760 |
"I<pathname> is a symbolic link, then B<open>() fails regardless of where " |
| 2761 |
"the symbolic link points." |
| 2762 |
msgstr "" |
| 2763 |
|
| 2764 |
#. type: Plain text |
| 2765 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2766 |
msgid "" |
| 2767 |
"In general, the behavior of B<O_EXCL> is undefined if it is used without " |
| 2768 |
"B<O_CREAT>. There is one exception: on Linux 2.6 and later, B<O_EXCL> can " |
| 2769 |
"be used without B<O_CREAT> if I<pathname> refers to a block device. If the " |
| 2770 |
"block device is in use by the system (e.g., mounted), B<open>() fails with " |
| 2771 |
"the error B<EBUSY>." |
| 2772 |
msgstr "" |
| 2773 |
|
| 2774 |
#. type: Plain text |
| 2775 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2776 |
msgid "" |
| 2777 |
"If I<pathname> refers to a terminal device\\[em]see B<tty>(4)\\[em]it will " |
| 2778 |
"not become the process's controlling terminal even if the process does not " |
| 2779 |
"have one." |
| 2780 |
msgstr "" |
| 2781 |
|
| 2782 |
#. type: Plain text |
| 2783 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2784 |
msgid "" |
| 2785 |
"If the trailing component (i.e., basename) of I<pathname> is a symbolic " |
| 2786 |
"link, then the open fails, with the error B<ELOOP>. Symbolic links in " |
| 2787 |
"earlier components of the pathname will still be followed. (Note that the " |
| 2788 |
"B<ELOOP> error that can occur in this case is indistinguishable from the " |
| 2789 |
"case where an open fails because there are too many symbolic links found " |
| 2790 |
"while resolving components in the prefix part of the pathname.)" |
| 2791 |
msgstr "" |
| 2792 |
|
| 2793 |
#. type: Plain text |
| 2794 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2795 |
msgid "" |
| 2796 |
"If I<pathname> is a symbolic link and the B<O_NOFOLLOW> flag is also " |
| 2797 |
"specified, then the call returns a file descriptor referring to the symbolic " |
| 2798 |
"link. This file descriptor can be used as the I<dirfd> argument in calls to " |
| 2799 |
"B<fchownat>(2), B<fstatat>(2), B<linkat>(2), and B<readlinkat>(2) with an " |
| 2800 |
"empty pathname to have the calls operate on the symbolic link." |
| 2801 |
msgstr "" |
| 2802 |
|
| 2803 |
#. type: Plain text |
| 2804 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2805 |
msgid "" |
| 2806 |
"If I<pathname> refers to an automount point that has not yet been triggered, " |
| 2807 |
"so no other filesystem is mounted on it, then the call returns a file " |
| 2808 |
"descriptor referring to the automount directory without triggering a mount. " |
| 2809 |
"B<fstatfs>(2) can then be used to determine if it is, in fact, an " |
| 2810 |
"untriggered automount point (B<.f_type == AUTOFS_SUPER_MAGIC>)." |
| 2811 |
msgstr "" |
| 2812 |
|
| 2813 |
#. type: Plain text |
| 2814 |
#: debian-trixie |
| 2815 |
msgid "" |
| 2816 |
"By the time B<write>(2) (or similar) returns, the output data and " |
| 2817 |
"associated file metadata have been transferred to the underlying hardware " |
| 2818 |
"(i.e., as though each B<write>(2) was followed by a call to B<fsync>(2)). " |
| 2819 |
"I<See NOTES below>." |
| 2820 |
msgstr "" |
| 2821 |
|
| 2822 |
#. commit 60545d0d4610b02e55f65d141c95b18ccf855b6e |
| 2823 |
#. commit f4e0c30c191f87851c4a53454abb55ee276f4a7e |
| 2824 |
#. commit bb458c644a59dbba3a1fe59b27106c5e68e1c4bd |
| 2825 |
#. type: Plain text |
| 2826 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2827 |
msgid "" |
| 2828 |
"Create an unnamed temporary regular file. The I<pathname> argument " |
| 2829 |
"specifies a directory; an unnamed inode will be created in that directory's " |
| 2830 |
"filesystem. Anything written to the resulting file will be lost when the " |
| 2831 |
"last file descriptor is closed, unless the file is given a name." |
| 2832 |
msgstr "" |
| 2833 |
|
| 2834 |
#. type: Plain text |
| 2835 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2836 |
#, no-wrap |
| 2837 |
msgid "" |
| 2838 |
"char path[PATH_MAX];\n" |
| 2839 |
"fd = open(\"/path/to/dir\", O_TMPFILE | O_RDWR,\n" |
| 2840 |
" S_IRUSR | S_IWUSR);\n" |
| 2841 |
"\\&\n" |
| 2842 |
"/* File I/O on \\[aq]fd\\[aq]... */\n" |
| 2843 |
"\\&\n" |
| 2844 |
"linkat(fd, \"\", AT_FDCWD, \"/path/for/file\", AT_EMPTY_PATH);\n" |
| 2845 |
"\\&\n" |
| 2846 |
"/* If the caller doesn\\[aq]t have the CAP_DAC_READ_SEARCH\n" |
| 2847 |
" capability (needed to use AT_EMPTY_PATH with linkat(2)),\n" |
| 2848 |
" and there is a proc(5) filesystem mounted, then the\n" |
| 2849 |
" linkat(2) call above can be replaced with:\n" |
| 2850 |
"\\&\n" |
| 2851 |
"snprintf(path, PATH_MAX, \"/proc/self/fd/%d\", fd);\n" |
| 2852 |
"linkat(AT_FDCWD, path, AT_FDCWD, \"/path/for/file\",\n" |
| 2853 |
" AT_SYMLINK_FOLLOW);\n" |
| 2854 |
"*/\n" |
| 2855 |
msgstr "" |
| 2856 |
|
| 2857 |
#. type: Plain text |
| 2858 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2859 |
msgid "" |
| 2860 |
"The I<dirfd> argument is used in conjunction with the I<pathname> argument " |
| 2861 |
"as follows:" |
| 2862 |
msgstr "" |
| 2863 |
|
| 2864 |
#. type: Plain text |
| 2865 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2866 |
msgid "" |
| 2867 |
"If the pathname given in I<pathname> is absolute, then I<dirfd> is ignored." |
| 2868 |
msgstr "" |
| 2869 |
|
| 2870 |
#. type: Plain text |
| 2871 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2872 |
msgid "" |
| 2873 |
"If the pathname given in I<pathname> is relative and I<dirfd> is the special " |
| 2874 |
"value B<AT_FDCWD>, then I<pathname> is interpreted relative to the current " |
| 2875 |
"working directory of the calling process (like B<open>())." |
| 2876 |
msgstr "" |
| 2877 |
|
| 2878 |
#. type: Plain text |
| 2879 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2880 |
msgid "" |
| 2881 |
"If the pathname given in I<pathname> is relative, then it is interpreted " |
| 2882 |
"relative to the directory referred to by the file descriptor I<dirfd> " |
| 2883 |
"(rather than relative to the current working directory of the calling " |
| 2884 |
"process, as is done by B<open>() for a relative pathname). In this case, " |
| 2885 |
"I<dirfd> must be a directory that was opened for reading (B<O_RDONLY>) or " |
| 2886 |
"using the B<O_PATH> flag." |
| 2887 |
msgstr "" |
| 2888 |
|
| 2889 |
#. type: Plain text |
| 2890 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2891 |
msgid "" |
| 2892 |
"If the pathname given in I<pathname> is relative, and I<dirfd> is not a " |
| 2893 |
"valid file descriptor, an error (B<EBADF>) results. (Specifying an invalid " |
| 2894 |
"file descriptor number in I<dirfd> can be used as a means to ensure that " |
| 2895 |
"I<pathname> is absolute.)" |
| 2896 |
msgstr "" |
| 2897 |
|
| 2898 |
#. type: Plain text |
| 2899 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2900 |
msgid "" |
| 2901 |
"The requested access to the file is not allowed, or search permission is " |
| 2902 |
"denied for one of the directories in the path prefix of I<pathname>, or the " |
| 2903 |
"file did not exist yet and write access to the parent directory is not " |
| 2904 |
"allowed. (See also B<path_resolution>(7).)" |
| 2905 |
msgstr "" |
| 2906 |
|
| 2907 |
#. type: Plain text |
| 2908 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2909 |
msgid "" |
| 2910 |
"(B<openat>()) I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> " |
| 2911 |
"nor a valid file descriptor." |
| 2912 |
msgstr "" |
| 2913 |
|
| 2914 |
#. type: Plain text |
| 2915 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2916 |
msgid "" |
| 2917 |
"B<O_EXCL> was specified in I<flags> and I<pathname> refers to a block device " |
| 2918 |
"that is in use by the system (e.g., it is mounted)." |
| 2919 |
msgstr "" |
| 2920 |
|
| 2921 |
#. type: Plain text |
| 2922 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2923 |
msgid "I<pathname> already exists and B<O_CREAT> and B<O_EXCL> were used." |
| 2924 |
msgstr "" |
| 2925 |
|
| 2926 |
#. type: Plain text |
| 2927 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2928 |
msgid "I<pathname> points outside your accessible address space." |
| 2929 |
msgstr "" |
| 2930 |
|
| 2931 |
#. type: Plain text |
| 2932 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2933 |
msgid "" |
| 2934 |
"B<O_CREAT> was specified in I<flags> and the final component (\"basename\") " |
| 2935 |
"of the new file's I<pathname> is invalid (e.g., it contains characters not " |
| 2936 |
"permitted by the underlying filesystem)." |
| 2937 |
msgstr "" |
| 2938 |
|
| 2939 |
#. type: Plain text |
| 2940 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2941 |
msgid "" |
| 2942 |
"The final component (\"basename\") of I<pathname> is invalid (e.g., it " |
| 2943 |
"contains characters not permitted by the underlying filesystem)." |
| 2944 |
msgstr "" |
| 2945 |
|
| 2946 |
#. type: Plain text |
| 2947 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2948 |
msgid "" |
| 2949 |
"I<pathname> refers to a directory and the access requested involved writing " |
| 2950 |
"(that is, B<O_WRONLY> or B<O_RDWR> is set)." |
| 2951 |
msgstr "" |
| 2952 |
|
| 2953 |
#. type: Plain text |
| 2954 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2955 |
msgid "" |
| 2956 |
"I<pathname> refers to an existing directory, B<O_TMPFILE> and one of " |
| 2957 |
"B<O_WRONLY> or B<O_RDWR> were specified in I<flags>, but this kernel version " |
| 2958 |
"does not provide the B<O_TMPFILE> functionality." |
| 2959 |
msgstr "" |
| 2960 |
|
| 2961 |
#. type: Plain text |
| 2962 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2963 |
msgid "Too many symbolic links were encountered in resolving I<pathname>." |
| 2964 |
msgstr "" |
| 2965 |
|
| 2966 |
#. type: Plain text |
| 2967 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2968 |
msgid "" |
| 2969 |
"I<pathname> was a symbolic link, and I<flags> specified B<O_NOFOLLOW> but " |
| 2970 |
"not B<O_PATH>." |
| 2971 |
msgstr "" |
| 2972 |
|
| 2973 |
#. type: Plain text |
| 2974 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2975 |
msgid "I<pathname> was too long." |
| 2976 |
msgstr "" |
| 2977 |
|
| 2978 |
#. type: Plain text |
| 2979 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2980 |
msgid "" |
| 2981 |
"I<pathname> refers to a device special file and no corresponding device " |
| 2982 |
"exists. (This is a Linux kernel bug; in this situation B<ENXIO> must be " |
| 2983 |
"returned.)" |
| 2984 |
msgstr "" |
| 2985 |
|
| 2986 |
#. type: Plain text |
| 2987 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2988 |
msgid "" |
| 2989 |
"A directory component in I<pathname> does not exist or is a dangling " |
| 2990 |
"symbolic link." |
| 2991 |
msgstr "" |
| 2992 |
|
| 2993 |
#. type: Plain text |
| 2994 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2995 |
msgid "" |
| 2996 |
"I<pathname> refers to a nonexistent directory, B<O_TMPFILE> and one of " |
| 2997 |
"B<O_WRONLY> or B<O_RDWR> were specified in I<flags>, but this kernel version " |
| 2998 |
"does not provide the B<O_TMPFILE> functionality." |
| 2999 |
msgstr "" |
| 3000 |
|
| 3001 |
#. type: Plain text |
| 3002 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3003 |
msgid "" |
| 3004 |
"I<pathname> was to be created but the device containing I<pathname> has no " |
| 3005 |
"room for the new file." |
| 3006 |
msgstr "" |
| 3007 |
|
| 3008 |
#. type: Plain text |
| 3009 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3010 |
msgid "" |
| 3011 |
"A component used as a directory in I<pathname> is not, in fact, a directory, " |
| 3012 |
"or B<O_DIRECTORY> was specified and I<pathname> was not a directory." |
| 3013 |
msgstr "" |
| 3014 |
|
| 3015 |
#. type: Plain text |
| 3016 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3017 |
msgid "" |
| 3018 |
"(B<openat>()) I<pathname> is a relative pathname and I<dirfd> is a file " |
| 3019 |
"descriptor referring to a file other than a directory." |
| 3020 |
msgstr "" |
| 3021 |
|
| 3022 |
#. type: Plain text |
| 3023 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3024 |
msgid "The filesystem containing I<pathname> does not support B<O_TMPFILE>." |
| 3025 |
msgstr "" |
| 3026 |
|
| 3027 |
#. See http://bugzilla.kernel.org/show_bug.cgi?id=7253 |
| 3028 |
#. "Open of a large file on 32-bit fails with EFBIG, should be EOVERFLOW" |
| 3029 |
#. Reported 2006-10-03 |
| 3030 |
#. type: Plain text |
| 3031 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3032 |
msgid "" |
| 3033 |
"I<pathname> refers to a regular file that is too large to be opened. The " |
| 3034 |
"usual scenario here is that an application compiled on a 32-bit platform " |
| 3035 |
"without I<-D_FILE_OFFSET_BITS=64> tried to open a file whose size exceeds " |
| 3036 |
"I<(1E<lt>E<lt>31)-1> bytes; see also B<O_LARGEFILE> above. This is the " |
| 3037 |
"error specified by POSIX.1; before Linux 2.6.24, Linux gave the error " |
| 3038 |
"B<EFBIG> for this case." |
| 3039 |
msgstr "" |
| 3040 |
|
| 3041 |
#. type: Plain text |
| 3042 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3043 |
msgid "" |
| 3044 |
"I<pathname> refers to a file on a read-only filesystem and write access was " |
| 3045 |
"requested." |
| 3046 |
msgstr "" |
| 3047 |
|
| 3048 |
#. type: Plain text |
| 3049 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3050 |
msgid "" |
| 3051 |
"I<pathname> refers to an executable image which is currently being executed " |
| 3052 |
"and write access was requested." |
| 3053 |
msgstr "" |
| 3054 |
|
| 3055 |
#. type: Plain text |
| 3056 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3057 |
msgid "" |
| 3058 |
"I<pathname> refers to a file that is currently in use as a swap file, and " |
| 3059 |
"the B<O_TRUNC> flag was specified." |
| 3060 |
msgstr "" |
| 3061 |
|
| 3062 |
#. type: Plain text |
| 3063 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3064 |
msgid "" |
| 3065 |
"I<pathname> refers to a file that is currently being read by the kernel " |
| 3066 |
"(e.g., for module/firmware loading), and write access was requested." |
| 3067 |
msgstr "" |
| 3068 |
|
| 3069 |
#. type: Plain text |
| 3070 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3071 |
msgid "B<openat2>(2) Linux." |
| 3072 |
msgstr "" |
| 3073 |
|
| 3074 |
#. type: Plain text |
| 3075 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3076 |
msgid "" |
| 3077 |
"The B<O_DIRECT>, B<O_NOATIME>, B<O_PATH>, and B<O_TMPFILE> flags are Linux-" |
| 3078 |
"specific. One must define B<_GNU_SOURCE> to obtain their definitions." |
| 3079 |
msgstr "" |
| 3080 |
|
| 3081 |
#. type: Plain text |
| 3082 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3083 |
msgid "" |
| 3084 |
"The B<O_CLOEXEC>, B<O_DIRECTORY>, and B<O_NOFOLLOW> flags are not specified " |
| 3085 |
"in POSIX.1-2001, but are specified in POSIX.1-2008. Since glibc 2.12, one " |
| 3086 |
"can obtain their definitions by defining either B<_POSIX_C_SOURCE> with a " |
| 3087 |
"value greater than or equal to 200809L or B<_XOPEN_SOURCE> with a value " |
| 3088 |
"greater than or equal to 700. In glibc 2.11 and earlier, one obtains the " |
| 3089 |
"definitions by defining B<_GNU_SOURCE>." |
| 3090 |
msgstr "" |
| 3091 |
|
| 3092 |
#. type: Plain text |
| 3093 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3094 |
msgid "" |
| 3095 |
"When both B<O_CREAT> and B<O_DIRECTORY> are specified in I<flags> and the " |
| 3096 |
"file specified by I<pathname> does not exist, B<open>() will create a " |
| 3097 |
"regular file (i.e., B<O_DIRECTORY> is ignored)." |
| 3098 |
msgstr "" |
| 3099 |
|
| 3100 |
#. type: TH |
| 3101 |
#: fedora-44 fedora-rawhide |
| 3102 |
#, no-wrap |
| 3103 |
msgid "2024-07-23" |
| 3104 |
msgstr "" |
| 3105 |
|
| 3106 |
#. type: TH |
| 3107 |
#: fedora-44 fedora-rawhide |
| 3108 |
#, no-wrap |
| 3109 |
msgid "Linux man-pages 6.13" |
| 3110 |
msgstr "" |
| 3111 |
|
| 3112 |
#. type: TH |
| 3113 |
#: mageia-cauldron |
| 3114 |
#, no-wrap |
| 3115 |
msgid "Linux man-pages 6.17" |
| 3116 |
msgstr "" |
| 3117 |
|
| 3118 |
#. type: TH |
| 3119 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3120 |
#, no-wrap |
| 3121 |
msgid "Linux man-pages (unreleased)" |
| 3122 |
msgstr "" |