Debian Codegraph @

po/ru/man2/flock.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "flock"
29 msgstr "flock"
30
31 #. type: TH
32 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
33 #: opensuse-tumbleweed
34 #, no-wrap
35 msgid "2026-02-08"
36 msgstr "8 февраля 2026 г."
37
38 #. type: TH
39 #: archlinux debian-unstable
40 #, fuzzy, no-wrap
41 #| msgid "Linux man-pages 6.17"
42 msgid "Linux man-pages 6.18"
43 msgstr "Справочные страницы Linux 6.17"
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr "НАИМЕНОВАНИЕ"
51
52 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid "flock - apply or remove an advisory lock on an open file"
56 msgstr ""
57 "flock - устанавливает или снимает консультативную (advisory) блокировку на "
58 "открытом файле"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>sys/file.hE<gt>>\n"
85 msgstr "B<#include E<lt>sys/file.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid "B<int flock(int >I<fd>B<, int >I<operation>B<);>\n"
92 msgid "B<int flock(int >I<fd>B<, int >I<op>B<);>\n"
93 msgstr "B<int flock(int >I<fd>B<, int >I<operation>B<);>\n"
94
95 #. type: SH
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid "DESCRIPTION"
100 msgstr "ОПИСАНИЕ"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, fuzzy
106 #| msgid ""
107 #| "Apply or remove an advisory lock on the open file specified by I<fd>. "
108 #| "The argument I<operation> is one of the following:"
109 msgid ""
110 "Apply or remove an advisory lock on the open file specified by I<fd>. The "
111 "argument I<op> is one of the following:"
112 msgstr ""
113 "Устанавливает или снимает консультативную блокировку на открытом файле, "
114 "указанном в I<fd>. Аргумент I<operation> может содержать одно из следующих "
115 "значений:"
116
117 #. type: TP
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid "B<LOCK_SH>"
122 msgstr "B<LOCK_SH>"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "Place a shared lock. More than one process may hold a shared lock for a "
129 "given file at a given time."
130 msgstr ""
131 "Установить общую (shared) блокировку. Общую блокировку на заданный файл "
132 "может удерживать более чем один процесс."
133
134 #. type: TP
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "B<LOCK_EX>"
139 msgstr "B<LOCK_EX>"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "Place an exclusive lock. Only one process may hold an exclusive lock for a "
146 "given file at a given time."
147 msgstr ""
148 "Установить эксклюзивную (exclusive) блокировку. Только один процесс может "
149 "удерживать эксклюзивную блокировку файла."
150
151 #. type: TP
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "B<LOCK_UN>"
156 msgstr "B<LOCK_UN>"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid "Remove an existing lock held by this process."
162 msgstr "Удалить существующую блокировку, удерживаемую данным процессом."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "A call to B<flock>() may block if an incompatible lock is held by another "
169 "process. To make a nonblocking request, include B<LOCK_NB> (by ORing) with "
170 "any of the above operations."
171 msgstr ""
172 "Вызов B<flock>() может быть блокирован, если несовместимый тип блокировки "
173 "уже удерживается другим процессом. Чтобы выполнить неблокирующий запрос, "
174 "добавьте B<LOCK_NB> (через операцию ИЛИ) к одному из вышеописанных значений."
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "A single file may not simultaneously have both shared and exclusive locks."
181 msgstr ""
182 "Один файл не может иметь одновременно и общую и эксклюзивную блокировку."
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 "Locks created by B<flock>() are associated with an open file description "
189 "(see B<open>(2)). This means that duplicate file descriptors (created by, "
190 "for example, B<fork>(2) or B<dup>(2)) refer to the same lock, and this "
191 "lock may be modified or released using any of these file descriptors. "
192 "Furthermore, the lock is released either by an explicit B<LOCK_UN> operation "
193 "on any of these duplicate file descriptors, or when all such file "
194 "descriptors have been closed."
195 msgstr ""
196 "Блокировки, созданные B<flock>(), ассоциируются с дескриптором открытого "
197 "файла (смотрите B<open>(2)). Это означает, что дублирующие файловые "
198 "дескрипторы (созданные, например, вызовами B<fork>(2) или B<dup>(2)) "
199 "указывают на одну блокировку, и эта блокировка может быть изменена или снята "
200 "при использовании любого из этих файловых дескрипторов. Также, блокировка "
201 "освобождается либо через явное выполнение операции B<LOCK_UN> на одном из "
202 "дублирующих файловых дескрипторов, либо когда все такие файловые дескрипторы "
203 "будут закрыты."
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "If a process uses B<open>(2) (or similar) to obtain more than one file "
210 "descriptor for the same file, these file descriptors are treated "
211 "independently by B<flock>(). An attempt to lock the file using one of these "
212 "file descriptors may be denied by a lock that the calling process has "
213 "already placed via another file descriptor."
214 msgstr ""
215 "Если процесс использует B<open>(2) (или подобный вызов) для получения более "
216 "одного файлового дескриптора на один и тот же файл, то эти файловые "
217 "дескрипторы считаются B<flock>() независимыми. Попытка заблокировать файл с "
218 "помощью одного из этих файловых дескрипторов может быть пресечена из-за "
219 "блокировки, которую вызывающий процесс уже установил через другой файловый "
220 "дескриптор."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "A process may hold only one type of lock (shared or exclusive) on a file. "
227 "Subsequent B<flock>() calls on an already locked file will convert an "
228 "existing lock to the new lock mode."
229 msgstr ""
230 "Процесс может удерживать на файле только один из типов блокировки (общую или "
231 "эксклюзивную). Последующие вызовы B<flock>() на уже заблокированный файл "
232 "будут преобразовывать текущую блокировку к новому заданному режиму "
233 "блокировки."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid "Locks created by B<flock>() are preserved across an B<execve>(2)."
239 msgstr ""
240 "Блокировки, созданные B<flock>(), сохраняются при выполнении B<execve>(2)."
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "A shared or exclusive lock can be placed on a file regardless of the mode in "
247 "which the file was opened."
248 msgstr ""
249 "Общая или эксклюзивная блокировка может быть установлена на файл вне "
250 "зависимости от режима, в котором этот файл был открыт."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
264 "to indicate the error."
265 msgstr ""
266 "При успешном выполнении возвращается 0. При ошибке возвращается -1, а в "
267 "I<errno> содержится код ошибки."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "ERRORS"
274 msgstr "ОШИБКИ"
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<EBADF>"
281 msgstr "B<EBADF>"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "I<fd> is not an open file descriptor."
287 msgstr "I<fd> не является открытым файловым дескриптором."
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EINTR>"
294 msgstr "B<EINTR>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "While waiting to acquire a lock, the call was interrupted by delivery of a "
301 "signal caught by a handler; see B<signal>(7)."
302 msgstr ""
303 "При ожидании получения блокировки вызов был прерван сигналом, пришедшим в "
304 "обработчик; смотрите B<signal>(7)."
305
306 #. type: TP
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "B<EINVAL>"
311 msgstr "B<EINVAL>"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, fuzzy
317 #| msgid "I<name> is invalid."
318 msgid "I<op> is invalid."
319 msgstr "Неверное значение I<name>."
320
321 #. type: TP
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "B<ENOLCK>"
326 msgstr "B<ENOLCK>"
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid "The kernel ran out of memory for allocating lock records."
332 msgstr "Ядру не хватило памяти для создания записи блокировки."
333
334 #. type: TP
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "B<EWOULDBLOCK>"
339 msgstr "B<EWOULDBLOCK>"
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid "The file is locked and the B<LOCK_NB> flag was selected."
345 msgstr "Файл блокирован и был указан флаг B<LOCK_NB>."
346
347 #. type: SH
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "VERSIONS"
352 msgstr "ВЕРСИИ"
353
354 #. E.g., according to the flock(2) man page, FreeBSD since at least 5.3
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, fuzzy
359 #| msgid ""
360 #| "Since kernel 2.0, B<flock>() is implemented as a system call in its own "
361 #| "right rather than being emulated in the GNU C library as a call to "
362 #| "B<fcntl>(2). With this implementation, there is no interaction between "
363 #| "the types of lock placed by B<flock>() and B<fcntl>(2), and B<flock>() "
364 #| "does not detect deadlock. (Note, however, that on some systems, such as "
365 #| "the modern BSDs, B<flock>() and B<fcntl>(2) locks I<do> interact with "
366 #| "one another.)"
367 msgid ""
368 "Since Linux 2.0, B<flock>() is implemented as a system call in its own "
369 "right rather than being emulated in the GNU C library as a call to "
370 "B<fcntl>(2). With this implementation, there is no interaction between the "
371 "types of lock placed by B<flock>() and B<fcntl>(2), and B<flock>() does "
372 "not detect deadlock. (Note, however, that on some systems, such as the "
373 "modern BSDs, B<flock>() and B<fcntl>(2) locks I<do> interact with one "
374 "another.)"
375 msgstr ""
376 "Начиная с версии ядра 2.0, B<flock>() реализован как самостоятельный "
377 "системный вызов, а не как эмуляция в библиотеке GNU C с помощью B<fcntl>(2). "
378 "В этой реализации не существует никакого взаимодействия между типами "
379 "блокировок, устанавливаемыми B<flock>() и B<fcntl>(2), и B<flock>() не "
380 "обнаруживает взаимные блокировки (заметим, что в некоторых системах, таких "
381 "как современные BSD, вызовы B<flock>() и B<fcntl>(2) блокирующие, при "
382 "взаимодействии друг с другом)."
383
384 #. type: SS
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "CIFS details"
389 msgstr "Особенности CIFS"
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "Up to Linux 5.4, B<flock>() is not propagated over SMB. A file with such "
396 "locks will not appear locked for remote clients."
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 5.5, B<flock>() locks are emulated with SMB byte-range locks on "
404 "the entire file. Similarly to NFS, this means that B<fcntl>(2) and "
405 "B<flock>() locks interact with one another. Another important side-effect "
406 "is that the locks are not advisory anymore: any IO on a locked file will "
407 "always fail with B<EACCES> when done from a separate file descriptor. This "
408 "difference originates from the design of locks in the SMB protocol, which "
409 "provides mandatory locking semantics."
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid ""
416 "Remote and mandatory locking semantics may vary with SMB protocol, mount "
417 "options and server type. See B<mount.cifs>(8) for additional information."
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 "STANDARDS"
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 "BSD."
431 msgstr "BSD."
432
433 #. type: SH
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "HISTORY"
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 ""
444 "4.4BSD (the B<flock>() call first appeared in 4.2BSD). A version of "
445 "B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most "
446 "UNIX systems."
447 msgstr ""
448 "4.4BSD (впервые вызов B<flock>() появился в 4.2BSD). Вызов B<flock>() есть в "
449 "большинстве систем UNIX, возможно реализованный с помощью B<fcntl>(2)."
450
451 #. type: SS
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "NFS details"
456 msgstr "Особенности NFS"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, fuzzy
462 #| msgid ""
463 #| "In Linux kernels up to 2.6.11, B<flock>() does not lock files over NFS "
464 #| "(i.e., the scope of locks was limited to the local system). Instead, one "
465 #| "could use B<fcntl>(2) byte-range locking, which does work over NFS, "
466 #| "given a sufficiently recent version of Linux and a server which supports "
467 #| "locking."
468 msgid ""
469 "Up to Linux 2.6.11, B<flock>() does not lock files over NFS (i.e., the "
470 "scope of locks was limited to the local system). Instead, one could use "
471 "B<fcntl>(2) byte-range locking, which does work over NFS, given a "
472 "sufficiently recent version of Linux and a server which supports locking."
473 msgstr ""
474 "В ядрах Linux вплоть до 2.6.11, B<flock>() не блокирует файлы через NFS (т. "
475 "е., охват блокировки ограничен локальной системой). Вместо этого можно "
476 "использовать байтовой диапазон блокировки B<fcntl>(2), который работает "
477 "через NFS; появился в сравнительно новой версии Linux и серверах, "
478 "поддерживающих блокировку."
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 "Since Linux 2.6.12, NFS clients support B<flock>() locks by emulating them "
485 "as B<fcntl>(2) byte-range locks on the entire file. This means that "
486 "B<fcntl>(2) and B<flock>() locks I<do> interact with one another over "
487 "NFS. It also means that in order to place an exclusive lock, the file must "
488 "be opened for writing."
489 msgstr ""
490 "Начиная с Linux 2.6.12, клиенты NFS поддерживают блокировки B<flock>(), "
491 "посредством эмуляции через байтовые диапазоны блокировок B<fcntl>(2) на весь "
492 "файл. Это означает, что блокировки B<fcntl>(2) и B<flock>() "
493 "I<взаимодействуют> друг с другом через NFS. Также это означает, что для "
494 "выполнения эксклюзивной блокировки файл должен быть открыт на запись."
495
496 #. commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 msgid ""
501 "Since Linux 2.6.37, the kernel supports a compatibility mode that allows "
502 "B<flock>() locks (and also B<fcntl>(2) byte region locks) to be treated as "
503 "local; see the discussion of the I<local_lock> option in B<nfs>(5)."
504 msgstr ""
505 "Начиная с Linux 2.6.37, ядро поддерживает режим совместимости, позволяющий "
506 "считать блокировки B<flock>() (а также байтовые диапазоны блокировки "
507 "B<fcntl>(2)) локальными; смотрите описание параметра I<local_lock> в "
508 "B<nfs>(5)."
509
510 #. type: SH
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "NOTES"
515 msgstr "ПРИМЕЧАНИЯ"
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "B<flock>() places advisory locks only; given suitable permissions on a "
522 "file, a process is free to ignore the use of B<flock>() and perform I/O on "
523 "the file."
524 msgstr ""
525 "B<flock>() устанавливает только консультативные блокировки; имея "
526 "соответствующие права на файл, процесс может игнорировать использование "
527 "B<flock>() и выполнять над файлом операции ввода/вывода."
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "B<flock>() and B<fcntl>(2) locks have different semantics with respect to "
534 "forked processes and B<dup>(2). On systems that implement B<flock>() using "
535 "B<fcntl>(2), the semantics of B<flock>() will be different from those "
536 "described in this manual page."
537 msgstr ""
538 "B<flock>() и B<fcntl>(2) имеют разную семантику для порождённых процессов и "
539 "B<dup>(2). В системах, где реализован B<flock>() с помощью B<fcntl>(2), "
540 "семантика B<flock>() будет отличаться от описанной в данной справочной "
541 "странице."
542
543 #. Kernel 2.5.21 changed things a little: during lock conversion
544 #. it is now the highest priority process that will get the lock -- mtk
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid ""
549 "Converting a lock (shared to exclusive, or vice versa) is not guaranteed to "
550 "be atomic: the existing lock is first removed, and then a new lock is "
551 "established. Between these two steps, a pending lock request by another "
552 "process may be granted, with the result that the conversion either blocks, "
553 "or fails if B<LOCK_NB> was specified. (This is the original BSD behavior, "
554 "and occurs on many other implementations.)"
555 msgstr ""
556 "При преобразовании блокировки (общую в эксклюзивную или наоборот) не "
557 "гарантируется атомарность операции: сначала существующая блокировка "
558 "удаляется, а затем устанавливается новая. Между этими двумя действиями "
559 "другой процесс, ожидающий запрос на блокировку, может получить на неё "
560 "разрешение, в следствие чего преобразование или заблокируется, или "
561 "завершится неудачно, если был указан флаг B<LOCK_NB> (это оригинальное "
562 "поведение BSD встречается во многих других реализациях)."
563
564 #. type: Plain text
565 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
566 #: opensuse-tumbleweed
567 msgid ""
568 "Release of a lock when a file descriptor is closed is not sequenced after "
569 "all observable effects of B<close>(2). For example, if one process writes a "
570 "file while holding an exclusive lock, then closes that file, and another "
571 "process blocks placing a shared lock on that file to wait until it is "
572 "closed, it may observe that a subsequent B<execve>(2) of that file fails "
573 "with B<ETXTBSY>, and B<umount>(2) of its underlying filesystem fails with "
574 "B<EBUSY>, as if the file were still open in the first process."
575 msgstr ""
576
577 #. type: SH
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid "SEE ALSO"
582 msgstr "СМОТРИТЕ ТАКЖЕ"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "B<flock>(1), B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), "
589 "B<open>(2), B<lockf>(3), B<lslocks>(8)"
590 msgstr ""
591 "B<flock>(1), B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), "
592 "B<open>(2), B<lockf>(3), B<lslocks>(8)"
593
594 #. type: Plain text
595 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
596 #: opensuse-tumbleweed
597 #, fuzzy
598 #| msgid ""
599 #| "I<Documentation/filesystems/locks.txt> in the Linux kernel source tree "
600 #| "(I<Documentation/locks.txt> in older kernels)"
601 msgid "I<Documentation/filesystems/locks.rst> in the Linux kernel source tree"
602 msgstr ""
603 "I<Documentation/filesystem/locks.txt> в исходном коде ядра Linux (в старых "
604 "ядрах — I<Documentation/locks.txt>)"
605
606 #. type: TH
607 #: debian-trixie
608 #, no-wrap
609 msgid "2024-05-02"
610 msgstr "2 мая 2024 г."
611
612 #. type: TH
613 #: debian-trixie
614 #, no-wrap
615 msgid "Linux man-pages 6.9.1"
616 msgstr "Страницы руководства Linux 6.9.1"
617
618 #. type: Plain text
619 #: debian-trixie
620 msgid "Standard C library (I<libc>, I<-lc>)"
621 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
622
623 #. type: Plain text
624 #: debian-trixie fedora-44 fedora-rawhide
625 msgid ""
626 "I<Documentation/filesystems/locks.txt> in the Linux kernel source tree "
627 "(I<Documentation/locks.txt> in older kernels)"
628 msgstr ""
629 "I<Documentation/filesystem/locks.txt> в исходном коде ядра Linux (в старых "
630 "ядрах — I<Documentation/locks.txt>)"
631
632 #. type: TH
633 #: fedora-44 fedora-rawhide
634 #, no-wrap
635 msgid "2024-07-23"
636 msgstr "23 июля 2024 г."
637
638 #. type: TH
639 #: fedora-44 fedora-rawhide
640 #, no-wrap
641 msgid "Linux man-pages 6.13"
642 msgstr "Страницы руководства Linux 6.13"
643
644 #. type: TH
645 #: mageia-cauldron
646 #, no-wrap
647 msgid "Linux man-pages 6.17"
648 msgstr "Страницы руководства Linux 6.17"
649
650 #. type: TH
651 #: opensuse-leap-16-1 opensuse-tumbleweed
652 #, no-wrap
653 msgid "Linux man-pages (unreleased)"
654 msgstr "Страницы руководства Linux (не выпущены)"