| 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:24+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 "flock" |
| 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 "flock - apply or remove an advisory lock on an open 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>sys/file.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<int flock(int >I<fd>B<, int >I<op>B<);>\n" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "DESCRIPTION" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
msgid "" |
| 97 |
"Apply or remove an advisory lock on the open file specified by I<fd>. The " |
| 98 |
"argument I<op> is one of the following:" |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#. type: TP |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "B<LOCK_SH>" |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "" |
| 112 |
"Place a shared lock. More than one process may hold a shared lock for a " |
| 113 |
"given file at a given time." |
| 114 |
msgstr "" |
| 115 |
|
| 116 |
#. type: TP |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
#, no-wrap |
| 120 |
msgid "B<LOCK_EX>" |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"Place an exclusive lock. Only one process may hold an exclusive lock for a " |
| 128 |
"given file at a given time." |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: TP |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
#, no-wrap |
| 135 |
msgid "B<LOCK_UN>" |
| 136 |
msgstr "" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "Remove an existing lock held by this process." |
| 142 |
msgstr "" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "" |
| 148 |
"A call to B<flock>() may block if an incompatible lock is held by another " |
| 149 |
"process. To make a nonblocking request, include B<LOCK_NB> (by ORing) with " |
| 150 |
"any of the above operations." |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
msgid "" |
| 157 |
"A single file may not simultaneously have both shared and exclusive locks." |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"Locks created by B<flock>() are associated with an open file description " |
| 165 |
"(see B<open>(2)). This means that duplicate file descriptors (created by, " |
| 166 |
"for example, B<fork>(2) or B<dup>(2)) refer to the same lock, and this " |
| 167 |
"lock may be modified or released using any of these file descriptors. " |
| 168 |
"Furthermore, the lock is released either by an explicit B<LOCK_UN> operation " |
| 169 |
"on any of these duplicate file descriptors, or when all such file " |
| 170 |
"descriptors have been closed." |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "" |
| 177 |
"If a process uses B<open>(2) (or similar) to obtain more than one file " |
| 178 |
"descriptor for the same file, these file descriptors are treated " |
| 179 |
"independently by B<flock>(). An attempt to lock the file using one of these " |
| 180 |
"file descriptors may be denied by a lock that the calling process has " |
| 181 |
"already placed via another file descriptor." |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"A process may hold only one type of lock (shared or exclusive) on a file. " |
| 189 |
"Subsequent B<flock>() calls on an already locked file will convert an " |
| 190 |
"existing lock to the new lock mode." |
| 191 |
msgstr "" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
msgid "Locks created by B<flock>() are preserved across an B<execve>(2)." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"A shared or exclusive lock can be placed on a file regardless of the mode in " |
| 204 |
"which the file was opened." |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: SH |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "RETURN VALUE" |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"On success, zero is returned. On error, -1 is returned, and I<errno> is set " |
| 219 |
"to indicate the error." |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: SH |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid "ERRORS" |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: TP |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, no-wrap |
| 233 |
msgid "B<EBADF>" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "I<fd> is not an open file descriptor." |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: TP |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "B<EINTR>" |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "" |
| 253 |
"While waiting to acquire a lock, the call was interrupted by delivery of a " |
| 254 |
"signal caught by a handler; see B<signal>(7)." |
| 255 |
msgstr "" |
| 256 |
|
| 257 |
#. type: TP |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
#, no-wrap |
| 261 |
msgid "B<EINVAL>" |
| 262 |
msgstr "" |
| 263 |
|
| 264 |
#. type: Plain text |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
msgid "I<op> is invalid." |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. type: TP |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "B<ENOLCK>" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "The kernel ran out of memory for allocating lock records." |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. type: TP |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
#, no-wrap |
| 287 |
msgid "B<EWOULDBLOCK>" |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
msgid "The file is locked and the B<LOCK_NB> flag was selected." |
| 294 |
msgstr "" |
| 295 |
|
| 296 |
#. type: SH |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "VERSIONS" |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. E.g., according to the flock(2) man page, FreeBSD since at least 5.3 |
| 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 |
"Since Linux 2.0, B<flock>() is implemented as a system call in its own " |
| 309 |
"right rather than being emulated in the GNU C library as a call to " |
| 310 |
"B<fcntl>(2). With this implementation, there is no interaction between the " |
| 311 |
"types of lock placed by B<flock>() and B<fcntl>(2), and B<flock>() does " |
| 312 |
"not detect deadlock. (Note, however, that on some systems, such as the " |
| 313 |
"modern BSDs, B<flock>() and B<fcntl>(2) locks I<do> interact with one " |
| 314 |
"another.)" |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: SS |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "CIFS details" |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "" |
| 328 |
"Up to Linux 5.4, B<flock>() is not propagated over SMB. A file with such " |
| 329 |
"locks will not appear locked for remote clients." |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"Since Linux 5.5, B<flock>() locks are emulated with SMB byte-range locks on " |
| 337 |
"the entire file. Similarly to NFS, this means that B<fcntl>(2) and " |
| 338 |
"B<flock>() locks interact with one another. Another important side-effect " |
| 339 |
"is that the locks are not advisory anymore: any IO on a locked file will " |
| 340 |
"always fail with B<EACCES> when done from a separate file descriptor. This " |
| 341 |
"difference originates from the design of locks in the SMB protocol, which " |
| 342 |
"provides mandatory locking semantics." |
| 343 |
msgstr "" |
| 344 |
|
| 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 |
"Remote and mandatory locking semantics may vary with SMB protocol, mount " |
| 350 |
"options and server type. See B<mount.cifs>(8) for additional information." |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#. type: SH |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "STANDARDS" |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "BSD." |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: SH |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, no-wrap |
| 370 |
msgid "HISTORY" |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "" |
| 377 |
"4.4BSD (the B<flock>() call first appeared in 4.2BSD). A version of " |
| 378 |
"B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most " |
| 379 |
"UNIX systems." |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#. type: SS |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "NFS details" |
| 387 |
msgstr "" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "" |
| 393 |
"Up to Linux 2.6.11, B<flock>() does not lock files over NFS (i.e., the " |
| 394 |
"scope of locks was limited to the local system). Instead, one could use " |
| 395 |
"B<fcntl>(2) byte-range locking, which does work over NFS, given a " |
| 396 |
"sufficiently recent version of Linux and a server which supports locking." |
| 397 |
msgstr "" |
| 398 |
|
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"Since Linux 2.6.12, NFS clients support B<flock>() locks by emulating them " |
| 404 |
"as B<fcntl>(2) byte-range locks on the entire file. This means that " |
| 405 |
"B<fcntl>(2) and B<flock>() locks I<do> interact with one another over " |
| 406 |
"NFS. It also means that in order to place an exclusive lock, the file must " |
| 407 |
"be opened for writing." |
| 408 |
msgstr "" |
| 409 |
|
| 410 |
#. commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2 |
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "" |
| 415 |
"Since Linux 2.6.37, the kernel supports a compatibility mode that allows " |
| 416 |
"B<flock>() locks (and also B<fcntl>(2) byte region locks) to be treated as " |
| 417 |
"local; see the discussion of the I<local_lock> option in B<nfs>(5)." |
| 418 |
msgstr "" |
| 419 |
|
| 420 |
#. type: SH |
| 421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
#, no-wrap |
| 424 |
msgid "NOTES" |
| 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 "" |
| 431 |
"B<flock>() places advisory locks only; given suitable permissions on a " |
| 432 |
"file, a process is free to ignore the use of B<flock>() and perform I/O on " |
| 433 |
"the file." |
| 434 |
msgstr "" |
| 435 |
|
| 436 |
#. type: Plain text |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
msgid "" |
| 440 |
"B<flock>() and B<fcntl>(2) locks have different semantics with respect to " |
| 441 |
"forked processes and B<dup>(2). On systems that implement B<flock>() using " |
| 442 |
"B<fcntl>(2), the semantics of B<flock>() will be different from those " |
| 443 |
"described in this manual page." |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. Kernel 2.5.21 changed things a little: during lock conversion |
| 447 |
#. it is now the highest priority process that will get the lock -- mtk |
| 448 |
#. type: Plain text |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
msgid "" |
| 452 |
"Converting a lock (shared to exclusive, or vice versa) is not guaranteed to " |
| 453 |
"be atomic: the existing lock is first removed, and then a new lock is " |
| 454 |
"established. Between these two steps, a pending lock request by another " |
| 455 |
"process may be granted, with the result that the conversion either blocks, " |
| 456 |
"or fails if B<LOCK_NB> was specified. (This is the original BSD behavior, " |
| 457 |
"and occurs on many other implementations.)" |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 462 |
#: opensuse-tumbleweed |
| 463 |
msgid "" |
| 464 |
"Release of a lock when a file descriptor is closed is not sequenced after " |
| 465 |
"all observable effects of B<close>(2). For example, if one process writes a " |
| 466 |
"file while holding an exclusive lock, then closes that file, and another " |
| 467 |
"process blocks placing a shared lock on that file to wait until it is " |
| 468 |
"closed, it may observe that a subsequent B<execve>(2) of that file fails " |
| 469 |
"with B<ETXTBSY>, and B<umount>(2) of its underlying filesystem fails with " |
| 470 |
"B<EBUSY>, as if the file were still open in the first process." |
| 471 |
msgstr "" |
| 472 |
|
| 473 |
#. type: SH |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "SEE ALSO" |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"B<flock>(1), B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), " |
| 485 |
"B<open>(2), B<lockf>(3), B<lslocks>(8)" |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: Plain text |
| 489 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 490 |
#: opensuse-tumbleweed |
| 491 |
msgid "I<Documentation/filesystems/locks.rst> in the Linux kernel source tree" |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: TH |
| 495 |
#: debian-trixie |
| 496 |
#, no-wrap |
| 497 |
msgid "2024-05-02" |
| 498 |
msgstr "" |
| 499 |
|
| 500 |
#. type: TH |
| 501 |
#: debian-trixie |
| 502 |
#, no-wrap |
| 503 |
msgid "Linux man-pages 6.9.1" |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: debian-trixie |
| 508 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: debian-trixie fedora-44 fedora-rawhide |
| 513 |
msgid "" |
| 514 |
"I<Documentation/filesystems/locks.txt> in the Linux kernel source tree " |
| 515 |
"(I<Documentation/locks.txt> in older kernels)" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: TH |
| 519 |
#: fedora-44 fedora-rawhide |
| 520 |
#, no-wrap |
| 521 |
msgid "2024-07-23" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: TH |
| 525 |
#: fedora-44 fedora-rawhide |
| 526 |
#, no-wrap |
| 527 |
msgid "Linux man-pages 6.13" |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: TH |
| 531 |
#: mageia-cauldron |
| 532 |
#, no-wrap |
| 533 |
msgid "Linux man-pages 6.17" |
| 534 |
msgstr "" |
| 535 |
|
| 536 |
#. type: TH |
| 537 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "Linux man-pages (unreleased)" |
| 540 |
msgstr "" |