Debian Codegraph @

po/pt_BR/man2/fcntl.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Walter Rodrigo de Sá Cruz <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
10 "PO-Revision-Date: 2001-05-31 16:32+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "fcntl"
26 msgstr "fcntl"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "fcntl - manipulate file descriptor"
53 msgstr "fcntl - manipula descritores de arquivos"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>fcntl.hE<gt>>\n"
80 msgstr "B<#include E<lt>fcntl.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
87 msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ...);>\n"
88 msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "DESCRIÇÃO"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy
101 #| msgid ""
102 #| "B<fcntl> performs one of various miscellaneous operations on I<fd>. The "
103 #| "operation in question is determined by I<cmd>:"
104 msgid ""
105 "B<fcntl>() performs one of the operations described below on the open file "
106 "descriptor I<fd>. The operation is determined by I<op>."
107 msgstr ""
108 "B<fcntl> executa uma dentre várias operações diferentes em I<fd>. A operação "
109 "em questão é determinada por I<cmd>:"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "Certain of the operations below are supported only since a particular Linux "
116 "kernel version. The preferred method of checking whether the host kernel "
117 "supports a particular operation is to invoke B<fcntl>() with the desired "
118 "I<op> value and then test whether the call failed with B<EINVAL>, indicating "
119 "that the kernel does not recognize this value."
120 msgstr ""
121
122 #. type: SS
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, fuzzy, no-wrap
126 #| msgid "fcntl - manipulate file descriptor"
127 msgid "Duplicating a file descriptor"
128 msgstr "fcntl - manipula descritores de arquivos"
129
130 #. type: TP
131 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
132 #: opensuse-tumbleweed
133 #, fuzzy, no-wrap
134 #| msgid "B<F_DUPFD> (I<int>)"
135 msgid "B<F_DUPFD>(2const)"
136 msgstr "B<F_DUPFD> (I<int>)"
137
138 #. type: TQ
139 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
140 #: opensuse-tumbleweed
141 #, fuzzy, no-wrap
142 #| msgid "B<F_DUPFD> (I<int>)"
143 msgid "B<F_DUPFD_CLOEXEC>(2const)"
144 msgstr "B<F_DUPFD> (I<int>)"
145
146 #. type: SS
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, fuzzy, no-wrap
150 #| msgid "The new descriptor."
151 msgid "File descriptor flags"
152 msgstr "O novo descritor."
153
154 #. type: TP
155 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
156 #: opensuse-tumbleweed
157 #, fuzzy, no-wrap
158 #| msgid "B<F_GETFD>"
159 msgid "B<F_GETFD>(2const)"
160 msgstr "B<F_GETFD>"
161
162 #. type: TQ
163 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
164 #: opensuse-tumbleweed
165 #, fuzzy, no-wrap
166 #| msgid "B<F_SETFD> (I<int>)"
167 msgid "B<F_SETFD>(2const)"
168 msgstr "B<F_SETFD> (I<int>)"
169
170 #. type: SS
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid "File status flags"
175 msgstr ""
176
177 #. type: TP
178 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
179 #: opensuse-tumbleweed
180 #, fuzzy, no-wrap
181 #| msgid "B<F_GETFL>"
182 msgid "B<F_GETFL>(2const)"
183 msgstr "B<F_GETFL>"
184
185 #. type: TQ
186 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
187 #: opensuse-tumbleweed
188 #, fuzzy, no-wrap
189 #| msgid "B<F_SETFL> (I<int>)"
190 msgid "B<F_SETFL>(2const)"
191 msgstr "B<F_SETFL> (I<int>)"
192
193 #. type: SS
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "Advisory record locking"
198 msgstr ""
199
200 #. type: TP
201 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
202 #: opensuse-tumbleweed
203 #, fuzzy, no-wrap
204 #| msgid "B<F_SETFL> (I<int>)"
205 msgid "B<F_SETLK>(2const)"
206 msgstr "B<F_SETFL> (I<int>)"
207
208 #. type: TQ
209 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
210 #: opensuse-tumbleweed
211 #, fuzzy, no-wrap
212 #| msgid "B<F_SETFL> (I<int>)"
213 msgid "B<F_SETLKW>(2const)"
214 msgstr "B<F_SETFL> (I<int>)"
215
216 #. type: TQ
217 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
218 #: opensuse-tumbleweed
219 #, fuzzy, no-wrap
220 #| msgid "B<F_SETFL> (I<int>)"
221 msgid "B<F_GETLK>(2const)"
222 msgstr "B<F_SETFL> (I<int>)"
223
224 #. type: SS
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "Open file description locks (non-POSIX)"
229 msgstr ""
230
231 #. type: TP
232 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
233 #: opensuse-tumbleweed
234 #, fuzzy, no-wrap
235 #| msgid "B<F_OFD_SETLK> (I<struct flock *>)"
236 msgid "B<F_OFD_SETLK>(2const)"
237 msgstr "B<F_OFD_SETLK> (I<struct flock *>)"
238
239 #. type: TQ
240 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
241 #: opensuse-tumbleweed
242 #, fuzzy, no-wrap
243 #| msgid "B<F_OFD_SETLKW> (I<struct flock *>)"
244 msgid "B<F_OFD_SETLKW>(2const)"
245 msgstr "B<F_OFD_SETLKW> (I<struct flock *>)"
246
247 #. type: TQ
248 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
249 #: opensuse-tumbleweed
250 #, fuzzy, no-wrap
251 #| msgid "B<F_OFD_GETLK> (I<struct flock *>)"
252 msgid "B<F_OFD_GETLK>(2const)"
253 msgstr "B<F_OFD_GETLK> (I<struct flock *>)"
254
255 #. type: SS
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "Managing signals"
260 msgstr ""
261
262 #. type: TP
263 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
264 #: opensuse-tumbleweed
265 #, fuzzy, no-wrap
266 #| msgid "B<F_GETOWN>"
267 msgid "B<F_GETOWN>(2const)"
268 msgstr "B<F_GETOWN>"
269
270 #. type: TQ
271 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
272 #: opensuse-tumbleweed
273 #, fuzzy, no-wrap
274 #| msgid "B<F_SETOWN> (I<int>)"
275 msgid "B<F_SETOWN>(2const)"
276 msgstr "B<F_SETOWN> (I<int>)"
277
278 #. type: TQ
279 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
280 #: opensuse-tumbleweed
281 #, fuzzy, no-wrap
282 #| msgid "B<F_GETOWN>"
283 msgid "B<F_GETOWN_EX>(2const)"
284 msgstr "B<F_GETOWN>"
285
286 #. type: TQ
287 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
288 #: opensuse-tumbleweed
289 #, fuzzy, no-wrap
290 #| msgid "B<F_SETOWN> (I<int>)"
291 msgid "B<F_SETOWN_EX>(2const)"
292 msgstr "B<F_SETOWN> (I<int>)"
293
294 #. type: TQ
295 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
296 #: opensuse-tumbleweed
297 #, fuzzy, no-wrap
298 #| msgid "B<F_GETSIG>"
299 msgid "B<F_GETSIG>(2const)"
300 msgstr "B<F_GETSIG>"
301
302 #. type: TQ
303 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
304 #: opensuse-tumbleweed
305 #, fuzzy, no-wrap
306 #| msgid "B<F_SETSIG> (I<int>)"
307 msgid "B<F_SETSIG>(2const)"
308 msgstr "B<F_SETSIG> (I<int>)"
309
310 #. type: SS
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "Leases"
315 msgstr ""
316
317 #. type: TP
318 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
319 #: opensuse-tumbleweed
320 #, fuzzy, no-wrap
321 #| msgid "B<F_SETLEASE> (I<int>)"
322 msgid "B<F_SETLEASE>(2const)"
323 msgstr "B<F_SETLEASE> (I<int>)"
324
325 #. type: TQ
326 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
327 #: opensuse-tumbleweed
328 #, fuzzy, no-wrap
329 #| msgid "B<F_GETLEASE>"
330 msgid "B<F_GETLEASE>(2const)"
331 msgstr "B<F_GETLEASE>"
332
333 #. type: SS
334 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
335 #: opensuse-tumbleweed
336 #, fuzzy, no-wrap
337 #| msgid "General Options"
338 msgid "Delegations"
339 msgstr "Opções globais"
340
341 #. type: TP
342 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
343 #: opensuse-tumbleweed
344 #, fuzzy, no-wrap
345 #| msgid "B<F_SETFD> (I<int>)"
346 msgid "B<F_SETDELEG>(2const)"
347 msgstr "B<F_SETFD> (I<int>)"
348
349 #. type: TQ
350 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
351 #: opensuse-tumbleweed
352 #, fuzzy, no-wrap
353 #| msgid "B<F_GETFD>"
354 msgid "B<F_GETDELEG>(2const)"
355 msgstr "B<F_GETFD>"
356
357 #. type: SS
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "File and directory change notification (dnotify)"
362 msgstr ""
363
364 #. type: TP
365 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
366 #: opensuse-tumbleweed
367 #, fuzzy, no-wrap
368 #| msgid "B<F_NOTIFY> (I<int>)"
369 msgid "B<F_NOTIFY>(2const)"
370 msgstr "B<F_NOTIFY> (I<int>)"
371
372 #. type: SS
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "Changing the capacity of a pipe"
377 msgstr ""
378
379 #. type: TP
380 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
381 #: opensuse-tumbleweed
382 #, fuzzy, no-wrap
383 #| msgid "B<EPIPE>"
384 msgid "B<F_SETPIPE_SZ>(2const)"
385 msgstr "B<EPIPE>"
386
387 #. type: TQ
388 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
389 #: opensuse-tumbleweed
390 #, fuzzy, no-wrap
391 #| msgid "B<F_GETLEASE>"
392 msgid "B<F_GETPIPE_SZ>(2const)"
393 msgstr "B<F_GETLEASE>"
394
395 #. type: SS
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "File Sealing"
400 msgstr ""
401
402 #. type: TP
403 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
404 #: opensuse-tumbleweed
405 #, fuzzy, no-wrap
406 #| msgid "B<F_GET_SEALS>"
407 msgid "B<F_ADD_SEALS>(2const)"
408 msgstr "B<F_GET_SEALS>"
409
410 #. type: TQ
411 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
412 #: opensuse-tumbleweed
413 #, fuzzy, no-wrap
414 #| msgid "B<F_GET_SEALS>"
415 msgid "B<F_GET_SEALS>(2const)"
416 msgstr "B<F_GET_SEALS>"
417
418 #. type: SS
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "File read/write hints"
423 msgstr ""
424
425 #. type: TP
426 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
427 #: opensuse-tumbleweed
428 #, no-wrap
429 msgid "B<F_GET_RW_HINT>(2const)"
430 msgstr ""
431
432 #. type: TQ
433 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
434 #: opensuse-tumbleweed
435 #, fuzzy, no-wrap
436 #| msgid "B<F_SETOWN> (I<int>)"
437 msgid "B<F_SET_RW_HINT>(2const)"
438 msgstr "B<F_SETOWN> (I<int>)"
439
440 #. type: TQ
441 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
442 #: opensuse-tumbleweed
443 #, no-wrap
444 msgid "B<F_GET_FILE_RW_HINT>(2const)"
445 msgstr ""
446
447 #. type: TQ
448 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
449 #: opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<F_SET_FILE_RW_HINT>(2const)"
452 msgstr ""
453
454 #. type: SH
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "RETURN VALUE"
459 msgstr "VALOR DE RETORNO"
460
461 #. type: Plain text
462 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
463 #: opensuse-tumbleweed
464 #, fuzzy
465 #| msgid "For a successful call, the return value depends on the operation:"
466 msgid "For a successful call, the return value depends on the operation."
467 msgstr "Para uma chamada bem sucedida, o valor de retorno depende da operação:"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, fuzzy
473 #| msgid "On error, -1 is returned, and I<errno> is set appropriately."
474 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
475 msgstr ""
476 "Em caso de erro, -1 é devolvido e I<errno> é selecionado adequadamente."
477
478 #. type: SH
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "ERRORS"
483 msgstr "ERROS"
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<EACCES> or B<EAGAIN>"
490 msgstr "B<EACCES> ou B<EAGAIN>"
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 "Operation is prohibited by locks held by other processes."
496 msgstr ""
497 "A operação foi proibida por travamentos prendidos por outros processos."
498
499 #. type: TP
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "B<EAGAIN>"
504 msgstr "B<EAGAIN>"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid ""
510 "The operation is prohibited because the file has been memory-mapped by "
511 "another process."
512 msgstr ""
513 "A operaçào é proibida porque o arquivo foi mapeado na memória por outro "
514 "processo."
515
516 #. type: TP
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "B<EBADF>"
521 msgstr "B<EBADF>"
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid "I<fd> is not an open file descriptor"
527 msgstr "I<fd> não é um descritor de arquivos."
528
529 #. type: TP
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 #, no-wrap
533 msgid "B<EINVAL>"
534 msgstr "B<EINVAL>"
535
536 #. type: Plain text
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 msgid "The value specified in I<op> is not recognized by this kernel."
540 msgstr ""
541
542 #. type: SH
543 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
544 #: opensuse-tumbleweed
545 #, no-wrap
546 msgid "VERSIONS"
547 msgstr "VERSÕES"
548
549 #. type: Plain text
550 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 msgid ""
553 "POSIX.1-2024 specifies B<FD_CLOFORK> and B<F_DUPFD_CLOFORK>, but Linux "
554 "doesn't support them."
555 msgstr ""
556
557 #. type: SH
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, no-wrap
561 msgid "STANDARDS"
562 msgstr "PADRÕES"
563
564 #. .P
565 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
566 #. type: Plain text
567 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
568 #: opensuse-tumbleweed
569 msgid "POSIX.1-2024."
570 msgstr "POSIX.1-2024."
571
572 #. type: SH
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "HISTORY"
577 msgstr "HISTÓRICO"
578
579 #. type: Plain text
580 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
581 #: opensuse-tumbleweed
582 msgid "4.3BSD, SVr4, POSIX.1-1988."
583 msgstr "4.3BSD, SVr4, POSIX.1-1988."
584
585 #. type: SH
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "SEE ALSO"
590 msgstr "VEJA TAMBÉM"
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid ""
596 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
597 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
598 msgstr ""
599 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
600 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
601
602 #. type: TH
603 #: debian-trixie
604 #, no-wrap
605 msgid "2024-05-02"
606 msgstr "2 maio 2024"
607
608 #. type: TH
609 #: debian-trixie
610 #, no-wrap
611 msgid "Linux man-pages 6.9.1"
612 msgstr "Linux man-pages 6.9.1"
613
614 #. type: Plain text
615 #: debian-trixie
616 msgid "Standard C library (I<libc>, I<-lc>)"
617 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
618
619 #. type: Plain text
620 #: debian-trixie fedora-44 fedora-rawhide
621 #, fuzzy, no-wrap
622 #| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
623 msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ... /* >I<arg>B< */ );>\n"
624 msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
625
626 #. type: Plain text
627 #: debian-trixie fedora-44 fedora-rawhide
628 msgid ""
629 "B<fcntl>() can take an optional third argument. Whether or not this "
630 "argument is required is determined by I<op>. The required argument type is "
631 "indicated in parentheses after each I<op> name (in most cases, the required "
632 "type is I<int>, and we identify the argument using the name I<arg>), or "
633 "I<void> is specified if the argument is not required."
634 msgstr ""
635
636 #. type: TP
637 #: debian-trixie fedora-44 fedora-rawhide
638 #, no-wrap
639 msgid "B<F_DUPFD> (I<int>)"
640 msgstr "B<F_DUPFD> (I<int>)"
641
642 #. type: Plain text
643 #: debian-trixie fedora-44 fedora-rawhide
644 #, fuzzy
645 #| msgid ""
646 #| "Find the lowest numbered available file descriptor greater than or equal "
647 #| "to I<arg> and make it be a copy of I<fd>. This is different form "
648 #| "B<dup2>(2) which uses exactly the descriptor specified."
649 msgid ""
650 "Duplicate the file descriptor I<fd> using the lowest-numbered available file "
651 "descriptor greater than or equal to I<arg>. This is different from "
652 "B<dup2>(2), which uses exactly the file descriptor specified."
653 msgstr ""
654 "Encontra o menor valor númerico de descritor de arquivo maior ou igual a "
655 "I<arg> e faz uma cópia de I<fd>. Essa é uma forma diferente do B<dup2>(2) "
656 "que usa exatamente o descritor especificado."
657
658 #. type: Plain text
659 #: debian-trixie fedora-44 fedora-rawhide
660 #, fuzzy
661 #| msgid "On success, the new descriptor is returned."
662 msgid "On success, the new file descriptor is returned."
663 msgstr "No caso de sucesso, o novo descritor é retornado."
664
665 #. type: Plain text
666 #: debian-trixie fedora-44 fedora-rawhide
667 msgid "See B<dup>(2) for further details."
668 msgstr ""
669
670 #. type: TP
671 #: debian-trixie fedora-44 fedora-rawhide
672 #, no-wrap
673 msgid "B<F_DUPFD_CLOEXEC> (I<int>; since Linux 2.6.24)"
674 msgstr ""
675
676 #. type: Plain text
677 #: debian-trixie fedora-44 fedora-rawhide
678 msgid ""
679 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
680 "duplicate file descriptor. Specifying this flag permits a program to avoid "
681 "an additional B<fcntl>() B<F_SETFD> operation to set the B<FD_CLOEXEC> "
682 "flag. For an explanation of why this flag is useful, see the description of "
683 "B<O_CLOEXEC> in B<open>(2)."
684 msgstr ""
685
686 #. type: Plain text
687 #: debian-trixie fedora-44 fedora-rawhide
688 msgid ""
689 "The following operations manipulate the flags associated with a file "
690 "descriptor. Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
691 "close-on-exec flag. If the B<FD_CLOEXEC> bit is set, the file descriptor "
692 "will automatically be closed during a successful B<execve>(2). (If the "
693 "B<execve>(2) fails, the file descriptor is left open.) If the "
694 "B<FD_CLOEXEC> bit is not set, the file descriptor will remain open across an "
695 "B<execve>(2)."
696 msgstr ""
697
698 #. type: TP
699 #: debian-trixie fedora-44 fedora-rawhide
700 #, no-wrap
701 msgid "B<F_GETFD> (I<void>)"
702 msgstr "B<F_GETFD> (I<void>)"
703
704 #. type: Plain text
705 #: debian-trixie fedora-44 fedora-rawhide
706 msgid ""
707 "Return (as the function result) the file descriptor flags; I<arg> is ignored."
708 msgstr ""
709
710 #. type: TP
711 #: debian-trixie fedora-44 fedora-rawhide
712 #, no-wrap
713 msgid "B<F_SETFD> (I<int>)"
714 msgstr "B<F_SETFD> (I<int>)"
715
716 #. type: Plain text
717 #: debian-trixie fedora-44 fedora-rawhide
718 #, fuzzy
719 #| msgid ""
720 #| "Set the close-on-exec flag to the value specified by the B<FD_CLOEXEC> "
721 #| "bit of I<arg>."
722 msgid "Set the file descriptor flags to the value specified by I<arg>."
723 msgstr ""
724 "Configura o sinalizador 'close-on-exec' para o valor especificado pelo bit "
725 "B<FD_CLOEXEC> do I<arg>."
726
727 #. type: Plain text
728 #: debian-trixie fedora-44 fedora-rawhide
729 msgid ""
730 "In multithreaded programs, using B<fcntl>() B<F_SETFD> to set the close-on-"
731 "exec flag at the same time as another thread performs a B<fork>(2) plus "
732 "B<execve>(2) is vulnerable to a race condition that may unintentionally "
733 "leak the file descriptor to the program executed in the child process. See "
734 "the discussion of the B<O_CLOEXEC> flag in B<open>(2) for details and a "
735 "remedy to the problem."
736 msgstr ""
737
738 #. or
739 #. .BR creat (2),
740 #. type: Plain text
741 #: debian-trixie fedora-44 fedora-rawhide
742 msgid ""
743 "Each open file description has certain associated status flags, initialized "
744 "by B<open>(2) and possibly modified by B<fcntl>(). Duplicated file "
745 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
746 "to the same open file description, and thus share the same file status flags."
747 msgstr ""
748
749 #. type: Plain text
750 #: debian-trixie fedora-44 fedora-rawhide
751 #, fuzzy
752 #| msgid "The flags and their semantics are described in B<open>(2)."
753 msgid "The file status flags and their semantics are described in B<open>(2)."
754 msgstr "Os parâmetros e suas sintaxes são descritos em B<open>(2)."
755
756 #. type: TP
757 #: debian-trixie fedora-44 fedora-rawhide
758 #, no-wrap
759 msgid "B<F_GETFL> (I<void>)"
760 msgstr "B<F_GETFL> (I<void>)"
761
762 #. type: Plain text
763 #: debian-trixie fedora-44 fedora-rawhide
764 msgid ""
765 "Return (as the function result) the file access mode and the file status "
766 "flags; I<arg> is ignored."
767 msgstr ""
768
769 #. type: TP
770 #: debian-trixie fedora-44 fedora-rawhide
771 #, no-wrap
772 msgid "B<F_SETFL> (I<int>)"
773 msgstr "B<F_SETFL> (I<int>)"
774
775 #. type: Plain text
776 #: debian-trixie fedora-44 fedora-rawhide
777 msgid ""
778 "Set the file status flags to the value specified by I<arg>. File access "
779 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) and file creation flags (i.e., "
780 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) in I<arg> are ignored. On "
781 "Linux, this operation can change only the B<O_APPEND>, B<O_ASYNC>, "
782 "B<O_DIRECT>, B<O_NOATIME>, and B<O_NONBLOCK> flags. It is not possible to "
783 "change the B<O_DSYNC> and B<O_SYNC> flags; see BUGS, below."
784 msgstr ""
785
786 #. type: Plain text
787 #: debian-trixie fedora-44 fedora-rawhide
788 msgid ""
789 "Linux implements traditional (\"process-associated\") UNIX record locks, as "
790 "standardized by POSIX. For a Linux-specific alternative with better "
791 "semantics, see the discussion of open file description locks below."
792 msgstr ""
793
794 #. type: Plain text
795 #: debian-trixie fedora-44 fedora-rawhide
796 #, fuzzy
797 #| msgid ""
798 #| "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to manage discretionary "
799 #| "file locks. The third argument I<lock> is a pointer to a struct flock "
800 #| "(that may be overwritten by this call)."
801 msgid ""
802 "B<F_SETLK>, B<F_SETLKW>, and B<F_GETLK> are used to acquire, release, and "
803 "test for the existence of record locks (also known as byte-range, file-"
804 "segment, or file-region locks). The third argument, I<lock>, is a pointer "
805 "to a structure that has at least the following fields (in unspecified order)."
806 msgstr ""
807 "B<F_GETLK>, B<F_SETLK> e B<F_SETLKW> são utilizados para gerenciar "
808 "travamentos de arquivos de forma pensada. O terceiro argumento I<lock> é um "
809 "ponteiro para uma estrutura flock (que pode ser sobrescrita por essa "
810 "chamada)."
811
812 #. type: Plain text
813 #: debian-trixie fedora-44 fedora-rawhide
814 #, no-wrap
815 msgid ""
816 "struct flock {\n"
817 " ...\n"
818 " short l_type; /* Type of lock: F_RDLCK,\n"
819 " F_WRLCK, F_UNLCK */\n"
820 " short l_whence; /* How to interpret l_start:\n"
821 " SEEK_SET, SEEK_CUR, SEEK_END */\n"
822 " off_t l_start; /* Starting offset for lock */\n"
823 " off_t l_len; /* Number of bytes to lock */\n"
824 " pid_t l_pid; /* PID of process blocking our lock\n"
825 " (set by F_GETLK and F_OFD_GETLK) */\n"
826 " ...\n"
827 "};\n"
828 msgstr ""
829
830 #. type: Plain text
831 #: debian-trixie fedora-44 fedora-rawhide
832 msgid ""
833 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
834 "the range of bytes we wish to lock. Bytes past the end of the file may be "
835 "locked, but not bytes before the start of the file."
836 msgstr ""
837
838 #. type: Plain text
839 #: debian-trixie fedora-44 fedora-rawhide
840 msgid ""
841 "I<l_start> is the starting offset for the lock, and is interpreted relative "
842 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
843 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
844 "(if I<l_whence> is B<SEEK_END>). In the final two cases, I<l_start> can be "
845 "a negative number provided the offset does not lie before the start of the "
846 "file."
847 msgstr ""
848
849 #. type: Plain text
850 #: debian-trixie fedora-44 fedora-rawhide
851 msgid ""
852 "I<l_len> specifies the number of bytes to be locked. If I<l_len> is "
853 "positive, then the range to be locked covers bytes I<l_start> up to and "
854 "including I<l_start>+I<l_len>-1. Specifying 0 for I<l_len> has the special "
855 "meaning: lock all bytes starting at the location specified by I<l_whence> "
856 "and I<l_start> through to the end of file, no matter how large the file "
857 "grows."
858 msgstr ""
859
860 #. type: Plain text
861 #: debian-trixie fedora-44 fedora-rawhide
862 msgid ""
863 "POSIX.1-2001 allows (but does not require) an implementation to support a "
864 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
865 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1. "
866 "This is supported since Linux 2.4.21 and Linux 2.5.49."
867 msgstr ""
868
869 #. type: Plain text
870 #: debian-trixie fedora-44 fedora-rawhide
871 msgid ""
872 "The I<l_type> field can be used to place a read (B<F_RDLCK>) or a write "
873 "(B<F_WRLCK>) lock on a file. Any number of processes may hold a read lock "
874 "(shared lock) on a file region, but only one process may hold a write lock "
875 "(exclusive lock). An exclusive lock excludes all other locks, both shared "
876 "and exclusive. A single process can hold only one type of lock on a file "
877 "region; if a new lock is applied to an already-locked region, then the "
878 "existing lock is converted to the new lock type. (Such conversions may "
879 "involve splitting, shrinking, or coalescing with an existing lock if the "
880 "byte range specified by the new lock does not precisely coincide with the "
881 "range of the existing lock.)"
882 msgstr ""
883
884 #. type: TP
885 #: debian-trixie fedora-44 fedora-rawhide
886 #, no-wrap
887 msgid "B<F_SETLK> (I<struct flock *>)"
888 msgstr "B<F_SETLK> (I<struct flock *>)"
889
890 #. type: Plain text
891 #: debian-trixie fedora-44 fedora-rawhide
892 msgid ""
893 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a "
894 "lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the "
895 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a conflicting "
896 "lock is held by another process, this call returns -1 and sets I<errno> to "
897 "B<EACCES> or B<EAGAIN>. (The error returned in this case differs across "
898 "implementations, so POSIX requires a portable application to check for both "
899 "errors.)"
900 msgstr ""
901
902 #. type: TP
903 #: debian-trixie fedora-44 fedora-rawhide
904 #, no-wrap
905 msgid "B<F_SETLKW> (I<struct flock *>)"
906 msgstr "B<F_SETLKW> (I<struct flock *>)"
907
908 #. type: Plain text
909 #: debian-trixie fedora-44 fedora-rawhide
910 #, fuzzy
911 #| msgid ""
912 #| "Like B<F_SETLK>, but instead of returning an error we wait for the lock "
913 #| "to be released. If a signal that is to be caught is received while "
914 #| "B<fcntl> is waiting, it is interrupted and (after the signal handler has "
915 #| "returned) returns immediately (with return value -1 and I<errno> set to "
916 #| "B<EINTR>)."
917 msgid ""
918 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
919 "for that lock to be released. If a signal is caught while waiting, then the "
920 "call is interrupted and (after the signal handler has returned) returns "
921 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
922 "B<signal>(7))."
923 msgstr ""
924 "Como B<F_SETLK>, mas ao invés de retornar um erro nós esperamos o travamento "
925 "ser liberado. Se um sinal que é para ser tratado é recebido enquando "
926 "B<fcntl> está esperando, ele é interrompido e (depois que o manipulador de "
927 "sinais retornou) retorna imediatamente (com valor de retorno -1 e I<errno> "
928 "selecionada para B<EINTR>)."
929
930 #. type: TP
931 #: debian-trixie fedora-44 fedora-rawhide
932 #, no-wrap
933 msgid "B<F_GETLK> (I<struct flock *>)"
934 msgstr "B<F_GETLK> (I<struct flock *>)"
935
936 #. type: Plain text
937 #: debian-trixie fedora-44 fedora-rawhide
938 msgid ""
939 "On input to this call, I<lock> describes a lock we would like to place on "
940 "the file. If the lock could be placed, B<fcntl>() does not actually place "
941 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
942 "other fields of the structure unchanged."
943 msgstr ""
944
945 #. type: Plain text
946 #: debian-trixie fedora-44 fedora-rawhide
947 msgid ""
948 "If one or more incompatible locks would prevent this lock being placed, then "
949 "B<fcntl>() returns details about one of those locks in the I<l_type>, "
950 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If the conflicting "
951 "lock is a traditional (process-associated) record lock, then the I<l_pid> "
952 "field is set to the PID of the process holding that lock. If the "
953 "conflicting lock is an open file description lock, then I<l_pid> is set to "
954 "-1. Note that the returned information may already be out of date by the "
955 "time the caller inspects it."
956 msgstr ""
957
958 #. type: Plain text
959 #: debian-trixie fedora-44 fedora-rawhide
960 msgid ""
961 "In order to place a read lock, I<fd> must be open for reading. In order to "
962 "place a write lock, I<fd> must be open for writing. To place both types of "
963 "lock, open a file read-write."
964 msgstr ""
965
966 #. type: Plain text
967 #: debian-trixie fedora-44 fedora-rawhide
968 msgid ""
969 "When placing locks with B<F_SETLKW>, the kernel detects I<deadlocks>, "
970 "whereby two or more processes have their lock requests mutually blocked by "
971 "locks held by the other processes. For example, suppose process A holds a "
972 "write lock on byte 100 of a file, and process B holds a write lock on byte "
973 "200. If each process then attempts to lock the byte already locked by the "
974 "other process using B<F_SETLKW>, then, without deadlock detection, both "
975 "processes would remain blocked indefinitely. When the kernel detects such "
976 "deadlocks, it causes one of the blocking lock requests to immediately fail "
977 "with the error B<EDEADLK>; an application that encounters such an error "
978 "should release some of its locks to allow other applications to proceed "
979 "before attempting regain the locks that it requires. Circular deadlocks "
980 "involving more than two processes are also detected. Note, however, that "
981 "there are limitations to the kernel's deadlock-detection algorithm; see BUGS."
982 msgstr ""
983
984 #. type: Plain text
985 #: debian-trixie fedora-44 fedora-rawhide
986 msgid ""
987 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
988 "automatically released when the process terminates."
989 msgstr ""
990
991 #. type: Plain text
992 #: debian-trixie fedora-44 fedora-rawhide
993 msgid ""
994 "Record locks are not inherited by a child created via B<fork>(2), but are "
995 "preserved across an B<execve>(2)."
996 msgstr ""
997
998 #. type: Plain text
999 #: debian-trixie fedora-44 fedora-rawhide
1000 msgid ""
1001 "Because of the buffering performed by the B<stdio>(3) library, the use of "
1002 "record locking with routines in that package should be avoided; use "
1003 "B<read>(2) and B<write>(2) instead."
1004 msgstr ""
1005
1006 #. type: Plain text
1007 #: debian-trixie fedora-44 fedora-rawhide
1008 msgid ""
1009 "The record locks described above are associated with the process (unlike the "
1010 "open file description locks described below). This has some unfortunate "
1011 "consequences:"
1012 msgstr ""
1013
1014 #. type: IP
1015 #: debian-trixie fedora-44 fedora-rawhide
1016 #, no-wrap
1017 msgid "\\[bu]"
1018 msgstr "\\[bu]"
1019
1020 #. (Additional file descriptors referring to the same file
1021 #. may have been obtained by calls to
1022 #. .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
1023 #. type: Plain text
1024 #: debian-trixie fedora-44 fedora-rawhide
1025 msgid ""
1026 "If a process closes I<any> file descriptor referring to a file, then all of "
1027 "the process's locks on that file are released, regardless of the file "
1028 "descriptor(s) on which the locks were obtained. This is bad: it means that "
1029 "a process can lose its locks on a file such as I</etc/passwd> or I</etc/"
1030 "mtab> when for some reason a library function decides to open, read, and "
1031 "close the same file."
1032 msgstr ""
1033
1034 #. type: Plain text
1035 #: debian-trixie fedora-44 fedora-rawhide
1036 msgid ""
1037 "The threads in a process share locks. In other words, a multithreaded "
1038 "program can't use record locking to ensure that threads don't simultaneously "
1039 "access the same region of a file."
1040 msgstr ""
1041
1042 #. type: Plain text
1043 #: debian-trixie fedora-44 fedora-rawhide
1044 msgid "Open file description locks solve both of these problems."
1045 msgstr ""
1046
1047 #. FIXME . Review progress into POSIX
1048 #. http://austingroupbugs.net/view.php?id=768
1049 #. type: Plain text
1050 #: debian-trixie fedora-44 fedora-rawhide
1051 msgid ""
1052 "Open file description locks are advisory byte-range locks whose operation is "
1053 "in most respects identical to the traditional record locks described above. "
1054 "This lock type is Linux-specific, and available since Linux 3.15. (There is "
1055 "a proposal with the Austin Group to include this lock type in the next "
1056 "revision of POSIX.1.) For an explanation of open file descriptions, see "
1057 "B<open>(2)."
1058 msgstr ""
1059
1060 #. type: Plain text
1061 #: debian-trixie fedora-44 fedora-rawhide
1062 msgid ""
1063 "The principal difference between the two lock types is that whereas "
1064 "traditional record locks are associated with a process, open file "
1065 "description locks are associated with the open file description on which "
1066 "they are acquired, much like locks acquired with B<flock>(2). Consequently "
1067 "(and unlike traditional advisory record locks), open file description locks "
1068 "are inherited across B<fork>(2) (and B<clone>(2) with B<CLONE_FILES>), and "
1069 "are only automatically released on the last close of the open file "
1070 "description, instead of being released on any close of the file."
1071 msgstr ""
1072
1073 #. type: Plain text
1074 #: debian-trixie fedora-44 fedora-rawhide
1075 msgid ""
1076 "Conflicting lock combinations (i.e., a read lock and a write lock or two "
1077 "write locks) where one lock is an open file description lock and the other "
1078 "is a traditional record lock conflict even when they are acquired by the "
1079 "same process on the same file descriptor."
1080 msgstr ""
1081
1082 #. type: Plain text
1083 #: debian-trixie fedora-44 fedora-rawhide
1084 msgid ""
1085 "Open file description locks placed via the same open file description (i.e., "
1086 "via the same file descriptor, or via a duplicate of the file descriptor "
1087 "created by B<fork>(2), B<dup>(2), B<fcntl>() B<F_DUPFD>, and so on) are "
1088 "always compatible: if a new lock is placed on an already locked region, then "
1089 "the existing lock is converted to the new lock type. (Such conversions may "
1090 "result in splitting, shrinking, or coalescing with an existing lock as "
1091 "discussed above.)"
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: debian-trixie fedora-44 fedora-rawhide
1096 msgid ""
1097 "On the other hand, open file description locks may conflict with each other "
1098 "when they are acquired via different open file descriptions. Thus, the "
1099 "threads in a multithreaded program can use open file description locks to "
1100 "synchronize access to a file region by having each thread perform its own "
1101 "B<open>(2) on the file and applying locks via the resulting file descriptor."
1102 msgstr ""
1103
1104 #. type: Plain text
1105 #: debian-trixie fedora-44 fedora-rawhide
1106 msgid ""
1107 "As with traditional advisory locks, the third argument to B<fcntl>(), "
1108 "I<lock>, is a pointer to an I<flock> structure. By contrast with "
1109 "traditional record locks, the I<l_pid> field of that structure must be set "
1110 "to zero when using the operations described below."
1111 msgstr ""
1112
1113 #. type: Plain text
1114 #: debian-trixie fedora-44 fedora-rawhide
1115 msgid ""
1116 "The operations for working with open file description locks are analogous to "
1117 "those used with traditional locks:"
1118 msgstr ""
1119
1120 #. type: TP
1121 #: debian-trixie fedora-44 fedora-rawhide
1122 #, no-wrap
1123 msgid "B<F_OFD_SETLK> (I<struct flock *>)"
1124 msgstr "B<F_OFD_SETLK> (I<struct flock *>)"
1125
1126 #. type: Plain text
1127 #: debian-trixie fedora-44 fedora-rawhide
1128 #, fuzzy
1129 #| msgid ""
1130 #| "The lock is set (when B<l_type> is B<F_RDLCK> or B<F_WRLCK>) or cleared "
1131 #| "(when it is B<F_UNLCK>). If the lock is held by someone else, this call "
1132 #| "returns -1 and sets I<errno> to B<EACCES> or B<EAGAIN>."
1133 msgid ""
1134 "Acquire an open file description lock (when I<l_type> is B<F_RDLCK> or "
1135 "B<F_WRLCK>) or release an open file description lock (when I<l_type> is "
1136 "B<F_UNLCK>) on the bytes specified by the I<l_whence>, I<l_start>, and "
1137 "I<l_len> fields of I<lock>. If a conflicting lock is held by another "
1138 "process, this call returns -1 and sets I<errno> to B<EAGAIN>."
1139 msgstr ""
1140 "O travamento está selecionado (quando B<l_type> é B<F_RDLCK> ou B<F_WRLCK>) "
1141 "ou apagado (quando ele é B<F_UNLCK>). Se o travamento é alimentado por mais "
1142 "alguém, essa chamada retorna -1 e seleciona I<errno> para B<EACCES> ou "
1143 "B<EAGAIN>."
1144
1145 #. type: TP
1146 #: debian-trixie fedora-44 fedora-rawhide
1147 #, no-wrap
1148 msgid "B<F_OFD_SETLKW> (I<struct flock *>)"
1149 msgstr "B<F_OFD_SETLKW> (I<struct flock *>)"
1150
1151 #. type: Plain text
1152 #: debian-trixie fedora-44 fedora-rawhide
1153 #, fuzzy
1154 #| msgid ""
1155 #| "Like B<F_SETLK>, but instead of returning an error we wait for the lock "
1156 #| "to be released. If a signal that is to be caught is received while "
1157 #| "B<fcntl> is waiting, it is interrupted and (after the signal handler has "
1158 #| "returned) returns immediately (with return value -1 and I<errno> set to "
1159 #| "B<EINTR>)."
1160 msgid ""
1161 "As for B<F_OFD_SETLK>, but if a conflicting lock is held on the file, then "
1162 "wait for that lock to be released. If a signal is caught while waiting, "
1163 "then the call is interrupted and (after the signal handler has returned) "
1164 "returns immediately (with return value -1 and I<errno> set to B<EINTR>; see "
1165 "B<signal>(7))."
1166 msgstr ""
1167 "Como B<F_SETLK>, mas ao invés de retornar um erro nós esperamos o travamento "
1168 "ser liberado. Se um sinal que é para ser tratado é recebido enquando "
1169 "B<fcntl> está esperando, ele é interrompido e (depois que o manipulador de "
1170 "sinais retornou) retorna imediatamente (com valor de retorno -1 e I<errno> "
1171 "selecionada para B<EINTR>)."
1172
1173 #. type: TP
1174 #: debian-trixie fedora-44 fedora-rawhide
1175 #, no-wrap
1176 msgid "B<F_OFD_GETLK> (I<struct flock *>)"
1177 msgstr "B<F_OFD_GETLK> (I<struct flock *>)"
1178
1179 #. type: Plain text
1180 #: debian-trixie fedora-44 fedora-rawhide
1181 msgid ""
1182 "On input to this call, I<lock> describes an open file description lock we "
1183 "would like to place on the file. If the lock could be placed, B<fcntl>() "
1184 "does not actually place it, but returns B<F_UNLCK> in the I<l_type> field of "
1185 "I<lock> and leaves the other fields of the structure unchanged. If one or "
1186 "more incompatible locks would prevent this lock being placed, then details "
1187 "about one of these locks are returned via I<lock>, as described above for "
1188 "B<F_GETLK>."
1189 msgstr ""
1190
1191 #. commit 57b65325fe34ec4c917bc4e555144b4a94d9e1f7
1192 #. type: Plain text
1193 #: debian-trixie fedora-44 fedora-rawhide
1194 msgid ""
1195 "In the current implementation, no deadlock detection is performed for open "
1196 "file description locks. (This contrasts with process-associated record "
1197 "locks, for which the kernel does perform deadlock detection.)"
1198 msgstr ""
1199
1200 #. type: SS
1201 #: debian-trixie fedora-44 fedora-rawhide
1202 #, no-wrap
1203 msgid "Mandatory locking"
1204 msgstr ""
1205
1206 #. type: Plain text
1207 #: debian-trixie fedora-44 fedora-rawhide
1208 msgid ""
1209 "I<Warning>: the Linux implementation of mandatory locking is unreliable. "
1210 "See BUGS below. Because of these bugs, and the fact that the feature is "
1211 "believed to be little used, since Linux 4.5, mandatory locking has been made "
1212 "an optional feature, governed by a configuration option "
1213 "(B<CONFIG_MANDATORY_FILE_LOCKING>). This feature is no longer supported at "
1214 "all in Linux 5.15 and above."
1215 msgstr ""
1216
1217 #. type: Plain text
1218 #: debian-trixie fedora-44 fedora-rawhide
1219 msgid ""
1220 "By default, both traditional (process-associated) and open file description "
1221 "record locks are advisory. Advisory locks are not enforced and are useful "
1222 "only between cooperating processes."
1223 msgstr ""
1224
1225 #. type: Plain text
1226 #: debian-trixie fedora-44 fedora-rawhide
1227 msgid ""
1228 "Both lock types can also be mandatory. Mandatory locks are enforced for all "
1229 "processes. If a process tries to perform an incompatible access (e.g., "
1230 "B<read>(2) or B<write>(2)) on a file region that has an incompatible "
1231 "mandatory lock, then the result depends upon whether the B<O_NONBLOCK> flag "
1232 "is enabled for its open file description. If the B<O_NONBLOCK> flag is not "
1233 "enabled, then the system call is blocked until the lock is removed or "
1234 "converted to a mode that is compatible with the access. If the "
1235 "B<O_NONBLOCK> flag is enabled, then the system call fails with the error "
1236 "B<EAGAIN>."
1237 msgstr ""
1238
1239 #. type: Plain text
1240 #: debian-trixie fedora-44 fedora-rawhide
1241 msgid ""
1242 "To make use of mandatory locks, mandatory locking must be enabled both on "
1243 "the filesystem that contains the file to be locked, and on the file itself. "
1244 "Mandatory locking is enabled on a filesystem using the \"-o mand\" option to "
1245 "B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2). Mandatory locking "
1246 "is enabled on a file by disabling group execute permission on the file and "
1247 "enabling the set-group-ID permission bit (see B<chmod>(1) and B<chmod>(2))."
1248 msgstr ""
1249
1250 #. type: Plain text
1251 #: debian-trixie fedora-44 fedora-rawhide
1252 msgid ""
1253 "Mandatory locking is not specified by POSIX. Some other systems also "
1254 "support mandatory locking, although the details of how to enable it vary "
1255 "across systems."
1256 msgstr ""
1257
1258 #. type: SS
1259 #: debian-trixie fedora-44 fedora-rawhide
1260 #, no-wrap
1261 msgid "Lost locks"
1262 msgstr ""
1263
1264 #. type: Plain text
1265 #: debian-trixie fedora-44 fedora-rawhide
1266 msgid ""
1267 "When an advisory lock is obtained on a networked filesystem such as NFS it "
1268 "is possible that the lock might get lost. This may happen due to "
1269 "administrative action on the server, or due to a network partition (i.e., "
1270 "loss of network connectivity with the server) which lasts long enough for "
1271 "the server to assume that the client is no longer functioning."
1272 msgstr ""
1273
1274 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
1275 #. type: Plain text
1276 #: debian-trixie fedora-44 fedora-rawhide
1277 msgid ""
1278 "When the filesystem determines that a lock has been lost, future B<read>(2) "
1279 "or B<write>(2) requests may fail with the error B<EIO>. This error will "
1280 "persist until the lock is removed or the file descriptor is closed. Since "
1281 "Linux 3.12, this happens at least for NFSv4 (including all minor versions)."
1282 msgstr ""
1283
1284 #. type: Plain text
1285 #: debian-trixie fedora-44 fedora-rawhide
1286 msgid ""
1287 "Some versions of UNIX send a signal (B<SIGLOST>) in this circumstance. "
1288 "Linux does not define this signal, and does not provide any asynchronous "
1289 "notification of lost locks."
1290 msgstr ""
1291
1292 #. type: Plain text
1293 #: debian-trixie fedora-44 fedora-rawhide
1294 #, fuzzy
1295 #| msgid ""
1296 #| "B<F_GETOWN>, B<F_SETOWN>, B<F_GETSIG> and B<F_SETSIG> are used to manage "
1297 #| "I/O availability signals:"
1298 msgid ""
1299 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1300 "B<F_SETSIG> are used to manage I/O availability signals:"
1301 msgstr ""
1302 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETSIG> e B<F_SETSIG> são usadas para "
1303 "gerenciar a disponibilidade de sinais E/S:"
1304
1305 #. type: TP
1306 #: debian-trixie fedora-44 fedora-rawhide
1307 #, no-wrap
1308 msgid "B<F_GETOWN> (I<void>)"
1309 msgstr "B<F_GETOWN> (I<void>)"
1310
1311 #. type: Plain text
1312 #: debian-trixie fedora-44 fedora-rawhide
1313 #, fuzzy
1314 #| msgid ""
1315 #| "Get the process ID or process group currently receiving SIGIO and SIGURG "
1316 #| "signals for events on file descriptor I<fd>. Process groups are returned "
1317 #| "as negative values."
1318 msgid ""
1319 "Return (as the function result) the process ID or process group ID "
1320 "currently receiving B<SIGIO> and B<SIGURG> signals for events on file "
1321 "descriptor I<fd>. Process IDs are returned as positive values; process "
1322 "group IDs are returned as negative values (but see BUGS below). I<arg> is "
1323 "ignored."
1324 msgstr ""
1325 "Obtém o ID do processo ou grupo de processos atualmente recebendo SIGIO e "
1326 "SIGURG signals para evenros no descritor de arquivos I<fd>. Grupos de "
1327 "processos são retornados como valores negativos."
1328
1329 #. type: TP
1330 #: debian-trixie fedora-44 fedora-rawhide
1331 #, no-wrap
1332 msgid "B<F_SETOWN> (I<int>)"
1333 msgstr "B<F_SETOWN> (I<int>)"
1334
1335 #. type: Plain text
1336 #: debian-trixie fedora-44 fedora-rawhide
1337 #, fuzzy
1338 #| msgid ""
1339 #| "Set the process ID or process group that will receive SIGIO and SIGURG "
1340 #| "signals for events on file descriptor I<fd>. Process groups are "
1341 #| "specified using negative values. (B<F_SETSIG> can be used to specify a "
1342 #| "different signal instead of SIGIO)."
1343 msgid ""
1344 "Set the process ID or process group ID that will receive B<SIGIO> and "
1345 "B<SIGURG> signals for events on the file descriptor I<fd>. The target "
1346 "process or process group ID is specified in I<arg>. A process ID is "
1347 "specified as a positive value; a process group ID is specified as a negative "
1348 "value. Most commonly, the calling process specifies itself as the owner "
1349 "(that is, I<arg> is specified as B<getpid>(2))."
1350 msgstr ""
1351 "Seleciona a ID de processo ou grupo ede processos que irão receber os sinais "
1352 "SIGIO e SIGURG para eventos no descritor de arquivos I<fd>. Grupos de "
1353 "processos são especificados usando valores negativos. (B<F_SETSIG> pode ser "
1354 "usado para especificar um sinal diferente de SIGIO)."
1355
1356 #. type: Plain text
1357 #: debian-trixie fedora-44 fedora-rawhide
1358 msgid ""
1359 "As well as setting the file descriptor owner, one must also enable "
1360 "generation of signals on the file descriptor. This is done by using the "
1361 "B<fcntl>() B<F_SETFL> operation to set the B<O_ASYNC> file status flag on "
1362 "the file descriptor. Subsequently, a B<SIGIO> signal is sent whenever input "
1363 "or output becomes possible on the file descriptor. The B<fcntl>() "
1364 "B<F_SETSIG> operation can be used to obtain delivery of a signal other than "
1365 "B<SIGIO>."
1366 msgstr ""
1367
1368 #. type: Plain text
1369 #: debian-trixie fedora-44 fedora-rawhide
1370 msgid ""
1371 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
1372 "subject to the same permissions checks as are described for B<kill>(2), "
1373 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
1374 "below). If this permission check fails, then the signal is silently "
1375 "discarded. I<Note>: The B<F_SETOWN> operation records the caller's "
1376 "credentials at the time of the B<fcntl>() call, and it is these saved "
1377 "credentials that are used for the permission checks."
1378 msgstr ""
1379
1380 #. The following appears to be rubbish. It doesn't seem to
1381 #. be true according to the kernel source, and I can write
1382 #. a program that gets a terminal-generated SIGIO even though
1383 #. it is not the foreground process group of the terminal.
1384 #. -- MTK, 8 Apr 05
1385 #. If the file descriptor
1386 #. .I fd
1387 #. refers to a terminal device, then SIGIO
1388 #. signals are sent to the foreground process group of the terminal.
1389 #. type: Plain text
1390 #: debian-trixie fedora-44 fedora-rawhide
1391 #, fuzzy
1392 #| msgid ""
1393 #| "The process or process group to receive the signal can be selected by "
1394 #| "using the B<F_SETOWN> command to the B<fcntl> function. If the file "
1395 #| "descriptor is a socket, this also selects the recipient of SIGURG signals "
1396 #| "that are delivered when out-of-band data arrives on that socket. (SIGURG "
1397 #| "is sent in any situation where B<select>(2) would report the socket as "
1398 #| "having an \"exceptional condition\".) If the file descriptor corresponds "
1399 #| "to a terminal device, then SIGIO signals are sent to the foreground "
1400 #| "process group of the terminal."
1401 msgid ""
1402 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
1403 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
1404 "arrives on that socket. (B<SIGURG> is sent in any situation where "
1405 "B<select>(2) would report the socket as having an \"exceptional "
1406 "condition\".)"
1407 msgstr ""
1408 "O processo ou grupo de processos a receber o sinal podem ser selecionados "
1409 "usando o comando B<F_SETOWN> para a função B<fcntl>. Se o descritor de "
1410 "arquivos é um 'socket', isso também seleciona o recipiente dos sinais SIGURG "
1411 "que são entregados quando dados out-of-band chegam naquele socket. (SIGURG é "
1412 "enviado em qualquer situação onde B<select>(2) irá reportar o socket como "
1413 "tendo uma \"condição exceptional\".) Se o descritor de arquivos corresponde "
1414 "a um dispositivo terminal, então sinais SIGIO são enviados para o grupo de "
1415 "processo em primeiro plano do terminal."
1416
1417 #. type: Plain text
1418 #: debian-trixie fedora-44 fedora-rawhide
1419 msgid "The following was true in Linux 2.6.x up to and including Linux 2.6.11:"
1420 msgstr ""
1421
1422 #. The relevant place in the (2.6) kernel source is the
1423 #. 'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
1424 #. send_sigurg()/send_sigurg_to_task() bypasses
1425 #. kill_fasync()/send_sigio()/send_sigio_to_task()
1426 #. to directly call send_group_sig_info()
1427 #. -- MTK, Apr 2005 (kernel 2.6.11)
1428 #. type: Plain text
1429 #: debian-trixie fedora-44 fedora-rawhide
1430 msgid ""
1431 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
1432 "running with a threading library that supports thread groups (e.g., NPTL), "
1433 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
1434 "of being a process ID identifying a whole process, it is a thread ID "
1435 "identifying a specific thread within a process. Consequently, it may be "
1436 "necessary to pass B<F_SETOWN> the result of B<gettid>(2) instead of "
1437 "B<getpid>(2) to get sensible results when B<F_SETSIG> is used. (In current "
1438 "Linux threading implementations, a main thread's thread ID is the same as "
1439 "its process ID. This means that a single-threaded program can equally use "
1440 "B<gettid>(2) or B<getpid>(2) in this scenario.) Note, however, that the "
1441 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
1442 "for out-of-band data on a socket: this signal is always sent to either a "
1443 "process or a process group, depending on the value given to B<F_SETOWN>."
1444 msgstr ""
1445
1446 #. type: Plain text
1447 #: debian-trixie fedora-44 fedora-rawhide
1448 msgid ""
1449 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
1450 "restored. From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
1451 "and B<SIGURG> signals at a particular thread."
1452 msgstr ""
1453
1454 #. type: TP
1455 #: debian-trixie fedora-44 fedora-rawhide
1456 #, no-wrap
1457 msgid "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1458 msgstr ""
1459
1460 #. type: Plain text
1461 #: debian-trixie fedora-44 fedora-rawhide
1462 msgid ""
1463 "Return the current file descriptor owner settings as defined by a previous "
1464 "B<F_SETOWN_EX> operation. The information is returned in the structure "
1465 "pointed to by I<arg>, which has the following form:"
1466 msgstr ""
1467
1468 #. type: Plain text
1469 #: debian-trixie fedora-44 fedora-rawhide
1470 #, no-wrap
1471 msgid ""
1472 "struct f_owner_ex {\n"
1473 " int type;\n"
1474 " pid_t pid;\n"
1475 "};\n"
1476 msgstr ""
1477 "struct f_owner_ex {\n"
1478 " int type;\n"
1479 " pid_t pid;\n"
1480 "};\n"
1481
1482 #. type: Plain text
1483 #: debian-trixie fedora-44 fedora-rawhide
1484 msgid ""
1485 "The I<type> field will have one of the values B<F_OWNER_TID>, "
1486 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>. The I<pid> field is a positive integer "
1487 "representing a thread ID, process ID, or process group ID. See "
1488 "B<F_SETOWN_EX> for more details."
1489 msgstr ""
1490
1491 #. type: TP
1492 #: debian-trixie fedora-44 fedora-rawhide
1493 #, no-wrap
1494 msgid "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1495 msgstr ""
1496
1497 #. type: Plain text
1498 #: debian-trixie fedora-44 fedora-rawhide
1499 msgid ""
1500 "This operation performs a similar task to B<F_SETOWN>. It allows the caller "
1501 "to direct I/O availability signals to a specific thread, process, or process "
1502 "group. The caller specifies the target of signals via I<arg>, which is a "
1503 "pointer to a I<f_owner_ex> structure. The I<type> field has one of the "
1504 "following values, which define how I<pid> is interpreted:"
1505 msgstr ""
1506
1507 #. type: TP
1508 #: debian-trixie fedora-44 fedora-rawhide
1509 #, no-wrap
1510 msgid "B<F_OWNER_TID>"
1511 msgstr "B<F_OWNER_TID>"
1512
1513 #. type: Plain text
1514 #: debian-trixie fedora-44 fedora-rawhide
1515 msgid ""
1516 "Send the signal to the thread whose thread ID (the value returned by a call "
1517 "to B<clone>(2) or B<gettid>(2)) is specified in I<pid>."
1518 msgstr ""
1519
1520 #. type: TP
1521 #: debian-trixie fedora-44 fedora-rawhide
1522 #, no-wrap
1523 msgid "B<F_OWNER_PID>"
1524 msgstr "B<F_OWNER_PID>"
1525
1526 #. type: Plain text
1527 #: debian-trixie fedora-44 fedora-rawhide
1528 msgid "Send the signal to the process whose ID is specified in I<pid>."
1529 msgstr ""
1530
1531 #. type: TP
1532 #: debian-trixie fedora-44 fedora-rawhide
1533 #, no-wrap
1534 msgid "B<F_OWNER_PGRP>"
1535 msgstr "B<F_OWNER_PGRP>"
1536
1537 #. type: Plain text
1538 #: debian-trixie fedora-44 fedora-rawhide
1539 msgid ""
1540 "Send the signal to the process group whose ID is specified in I<pid>. (Note "
1541 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
1542 "value here.)"
1543 msgstr ""
1544
1545 #. type: TP
1546 #: debian-trixie fedora-44 fedora-rawhide
1547 #, no-wrap
1548 msgid "B<F_GETSIG> (I<void>)"
1549 msgstr "B<F_GETSIG> (I<void>)"
1550
1551 #. type: Plain text
1552 #: debian-trixie fedora-44 fedora-rawhide
1553 #, fuzzy
1554 #| msgid ""
1555 #| "Get the signal sent when input or output becomes possible. A value of "
1556 #| "zero means SIGIO is sent. Any other value (including SIGIO) is the "
1557 #| "signal sent instead, and in this case additional info is available to the "
1558 #| "signal handler if installed with SA_SIGINFO."
1559 msgid ""
1560 "Return (as the function result) the signal sent when input or output "
1561 "becomes possible. A value of zero means B<SIGIO> is sent. Any other value "
1562 "(including B<SIGIO>) is the signal sent instead, and in this case "
1563 "additional info is available to the signal handler if installed with "
1564 "B<SA_SIGINFO>. I<arg> is ignored."
1565 msgstr ""
1566 "Obtém o sinal enviado quando a entrada ou saída se tornaram possíveis. Um "
1567 "valor de zero significa que SIGIO é enviado. Qualquer outro valor (incluindo "
1568 "SIGIO) é o sinal a ser enviado ao invés, e nesse caso informação adicional é "
1569 "disponível para o manipulador de sinais se instalado com SA_SIGINFO."
1570
1571 #. type: TP
1572 #: debian-trixie fedora-44 fedora-rawhide
1573 #, no-wrap
1574 msgid "B<F_SETSIG> (I<int>)"
1575 msgstr "B<F_SETSIG> (I<int>)"
1576
1577 #. The following was true only up until Linux 2.6.11:
1578 #. Additionally, passing a nonzero value to
1579 #. .B F_SETSIG
1580 #. changes the signal recipient from a whole process to a specific thread
1581 #. within a process.
1582 #. See the description of
1583 #. .B F_SETOWN
1584 #. for more details.
1585 #. type: Plain text
1586 #: debian-trixie fedora-44 fedora-rawhide
1587 #, fuzzy
1588 #| msgid ""
1589 #| "Sets the signal sent when input or output becomes possible. A value of "
1590 #| "zero means to send the default SIGIO signal. Any other value (including "
1591 #| "SIGIO) is the signal to send instead, and in this case additional info is "
1592 #| "available to the signal handler if installed with SA_SIGINFO."
1593 msgid ""
1594 "Set the signal sent when input or output becomes possible to the value given "
1595 "in I<arg>. A value of zero means to send the default B<SIGIO> signal. Any "
1596 "other value (including B<SIGIO>) is the signal to send instead, and in this "
1597 "case additional info is available to the signal handler if installed with "
1598 "B<SA_SIGINFO>."
1599 msgstr ""
1600 "Configura o sinal enviado quando a entrada ou a saída se tornam possíveis. "
1601 "Um valor de zero significa o envio do sinal default SIGIO. Qualquer outro "
1602 "valor (incluindo SIGIO) é o sinal a ser enviado ao invés, e nesse caso "
1603 "informação adicional é disponível para o manipulador de sinais se instalado "
1604 "com SA_SIGINFO."
1605
1606 #. type: Plain text
1607 #: debian-trixie fedora-44 fedora-rawhide
1608 #, fuzzy
1609 #| msgid ""
1610 #| "By using F_SETSIG with a non-zero value, and setting SA_SIGINFO for the "
1611 #| "signal handler (see B<sigaction>(2)), extra information about I/O events "
1612 #| "is passed to the handler in a I<siginfo_t> structure. If the I<si_code> "
1613 #| "field indicates the source is SI_SIGIO, the I<si_fd> field gives the file "
1614 #| "descriptor associated with the event. Otherwise, there is no indication "
1615 #| "which file descriptors are pending, and you should use the usual "
1616 #| "mechanisms (B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set "
1617 #| "etc.) to determine which file descriptors are available for I/O."
1618 msgid ""
1619 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
1620 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
1621 "passed to the handler in a I<siginfo_t> structure. If the I<si_code> field "
1622 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
1623 "descriptor associated with the event. Otherwise, there is no indication "
1624 "which file descriptors are pending, and you should use the usual mechanisms "
1625 "(B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set etc.) to "
1626 "determine which file descriptors are available for I/O."
1627 msgstr ""
1628 "Usando F_SETSIG com um valor diferente de zero, e selecionando SA_SIGINFO "
1629 "para o manipulador de sinais (ver B<sigaction>(2)), informação extra sobre "
1630 "eventos de E/S são passadas ao manipulador numa estrutura I<siginfo_t>. Se o "
1631 "campo I<si_code> indica que a fonte é SI_SIGIO, o campo I<si_fd> dá o "
1632 "descritor de arquivos associado com o evento. Se não, não há indicação de "
1633 "quais descritores de arquivos estão pendentes, e você deve usar os "
1634 "mecanismos atuais (B<select>(2), B<poll>(2), B<read>(2) com B<O_NONBLOCK> "
1635 "selecionado etc.) para determinar quais descritores de arquivos estão "
1636 "disponíveis para E/S."
1637
1638 #. type: Plain text
1639 #: debian-trixie fedora-44 fedora-rawhide
1640 msgid ""
1641 "Note that the file descriptor provided in I<si_fd> is the one that was "
1642 "specified during the B<F_SETSIG> operation. This can lead to an unusual "
1643 "corner case. If the file descriptor is duplicated (B<dup>(2) or similar), "
1644 "and the original file descriptor is closed, then I/O events will continue to "
1645 "be generated, but the I<si_fd> field will contain the number of the now "
1646 "closed file descriptor."
1647 msgstr ""
1648
1649 #. type: Plain text
1650 #: debian-trixie fedora-44 fedora-rawhide
1651 #, fuzzy
1652 #| msgid ""
1653 #| "By selecting a POSIX.1b real time signal (value E<gt>= SIGRTMIN), "
1654 #| "multiple I/O events may be queued using the same signal numbers. "
1655 #| "(Queuing is dependent on available memory). Extra information is "
1656 #| "available if SA_SIGINFO is set for the signal handler, as above."
1657 msgid ""
1658 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
1659 "events may be queued using the same signal numbers. (Queuing is dependent "
1660 "on available memory.) Extra information is available if B<SA_SIGINFO> is "
1661 "set for the signal handler, as above."
1662 msgstr ""
1663 "Selecionando um sinal POSIX.1b de tempo real (value E<gt>= SIGRTMIN), "
1664 "multiplos eventos de E/S podem ser enfileirados usando os mesmos números de "
1665 "sinais. (O enfileiramento é depedente da memória disponível). Informações "
1666 "extras são disponíveis se SA_SIGINFO está selecionada para o manipulador de "
1667 "sinais, como abaixo."
1668
1669 #. See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
1670 #. type: Plain text
1671 #: debian-trixie fedora-44 fedora-rawhide
1672 msgid ""
1673 "Note that Linux imposes a limit on the number of real-time signals that may "
1674 "be queued to a process (see B<getrlimit>(2) and B<signal>(7)) and if this "
1675 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
1676 "signal is delivered to the entire process rather than to a specific thread."
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: debian-trixie fedora-44 fedora-rawhide
1681 msgid ""
1682 "Using these mechanisms, a program can implement fully asynchronous I/O "
1683 "without using B<select>(2) or B<poll>(2) most of the time."
1684 msgstr ""
1685 "Usando esses mecanisnos, um programa pode implementar totalmente E/S "
1686 "assíncrona/O sem usar B<select>(2) ou B<poll>(2) a maior parte do tempo."
1687
1688 #. type: Plain text
1689 #: debian-trixie fedora-44 fedora-rawhide
1690 #, fuzzy
1691 #| msgid ""
1692 #| "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
1693 #| "Linux. B<F_GETSIG> and B<F_SETSIG> are Linux-specific. POSIX has "
1694 #| "asynchronous I/O and the I<aio_sigevent> structure to achieve similar "
1695 #| "things; these are also available in Linux as part of the GNU C Library "
1696 #| "(Glibc)."
1697 msgid ""
1698 "The use of B<O_ASYNC> is specific to BSD and Linux. The only use of "
1699 "B<F_GETOWN> and B<F_SETOWN> specified in POSIX.1 is in conjunction with the "
1700 "use of the B<SIGURG> signal on sockets. (POSIX does not specify the "
1701 "B<SIGIO> signal.) B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1702 "B<F_SETSIG> are Linux-specific. POSIX has asynchronous I/O and the "
1703 "I<aio_sigevent> structure to achieve similar things; these are also "
1704 "available in Linux as part of the GNU C Library (glibc)."
1705 msgstr ""
1706 "O uso de B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> é especifico para o BSD e "
1707 "Linux. B<F_GETSIG> e B<F_SETSIG> são específicos do Linux. A POSIX tem E/S "
1708 "assíncrona e a estrutura I<aio_sigevent> para tratar coisas similares; elas "
1709 "são disponíveis no Linux como barte da Biblioteca C GNU (Glibc)."
1710
1711 #. type: Plain text
1712 #: debian-trixie fedora-44 fedora-rawhide
1713 msgid ""
1714 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used to establish a "
1715 "new lease, and retrieve the current lease, on the open file description "
1716 "referred to by the file descriptor I<fd>. A file lease provides a mechanism "
1717 "whereby the process holding the lease (the \"lease holder\") is notified "
1718 "(via delivery of a signal) when a process (the \"lease breaker\") tries to "
1719 "B<open>(2) or B<truncate>(2) the file referred to by that file descriptor."
1720 msgstr ""
1721
1722 #. type: TP
1723 #: debian-trixie fedora-44 fedora-rawhide
1724 #, no-wrap
1725 msgid "B<F_SETLEASE> (I<int>)"
1726 msgstr "B<F_SETLEASE> (I<int>)"
1727
1728 #. type: Plain text
1729 #: debian-trixie fedora-44 fedora-rawhide
1730 msgid ""
1731 "Set or remove a file lease according to which of the following values is "
1732 "specified in the integer I<arg>:"
1733 msgstr ""
1734
1735 #. type: TP
1736 #: debian-trixie fedora-44 fedora-rawhide
1737 #, no-wrap
1738 msgid "B<F_RDLCK>"
1739 msgstr "B<F_RDLCK>"
1740
1741 #. The following became true in Linux 2.6.10:
1742 #. See the man-pages-2.09 Changelog for further info.
1743 #. type: Plain text
1744 #: debian-trixie fedora-44 fedora-rawhide
1745 msgid ""
1746 "Take out a read lease. This will cause the calling process to be notified "
1747 "when the file is opened for writing or is truncated. A read lease can be "
1748 "placed only on a file descriptor that is opened read-only."
1749 msgstr ""
1750
1751 #. type: TP
1752 #: debian-trixie fedora-44 fedora-rawhide
1753 #, no-wrap
1754 msgid "B<F_WRLCK>"
1755 msgstr "B<F_WRLCK>"
1756
1757 #. type: Plain text
1758 #: debian-trixie fedora-44 fedora-rawhide
1759 msgid ""
1760 "Take out a write lease. This will cause the caller to be notified when the "
1761 "file is opened for reading or writing or is truncated. A write lease may be "
1762 "placed on a file only if there are no other open file descriptors for the "
1763 "file."
1764 msgstr ""
1765
1766 #. type: TP
1767 #: debian-trixie fedora-44 fedora-rawhide
1768 #, no-wrap
1769 msgid "B<F_UNLCK>"
1770 msgstr "B<F_UNLCK>"
1771
1772 #. type: Plain text
1773 #: debian-trixie fedora-44 fedora-rawhide
1774 msgid "Remove our lease from the file."
1775 msgstr ""
1776
1777 #. type: Plain text
1778 #: debian-trixie fedora-44 fedora-rawhide
1779 msgid ""
1780 "Leases are associated with an open file description (see B<open>(2)). This "
1781 "means that duplicate file descriptors (created by, for example, B<fork>(2) "
1782 "or B<dup>(2)) refer to the same lease, and this lease may be modified or "
1783 "released using any of these descriptors. Furthermore, the lease is released "
1784 "by either an explicit B<F_UNLCK> operation on any of these duplicate file "
1785 "descriptors, or when all such file descriptors have been closed."
1786 msgstr ""
1787
1788 #. type: Plain text
1789 #: debian-trixie fedora-44 fedora-rawhide
1790 msgid ""
1791 "Leases may be taken out only on regular files. An unprivileged process may "
1792 "take out a lease only on a file whose UID (owner) matches the filesystem UID "
1793 "of the process. A process with the B<CAP_LEASE> capability may take out "
1794 "leases on arbitrary files."
1795 msgstr ""
1796
1797 #. type: TP
1798 #: debian-trixie fedora-44 fedora-rawhide
1799 #, no-wrap
1800 msgid "B<F_GETLEASE> (I<void>)"
1801 msgstr "B<F_GETLEASE> (I<void>)"
1802
1803 #. type: Plain text
1804 #: debian-trixie fedora-44 fedora-rawhide
1805 msgid ""
1806 "Indicates what type of lease is associated with the file descriptor I<fd> by "
1807 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
1808 "respectively, a read lease , a write lease, or no lease. I<arg> is ignored."
1809 msgstr ""
1810
1811 #. type: Plain text
1812 #: debian-trixie fedora-44 fedora-rawhide
1813 msgid ""
1814 "When a process (the \"lease breaker\") performs an B<open>(2) or "
1815 "B<truncate>(2) that conflicts with a lease established via B<F_SETLEASE>, "
1816 "the system call is blocked by the kernel and the kernel notifies the lease "
1817 "holder by sending it a signal (B<SIGIO> by default). The lease holder "
1818 "should respond to receipt of this signal by doing whatever cleanup is "
1819 "required in preparation for the file to be accessed by another process "
1820 "(e.g., flushing cached buffers) and then either remove or downgrade its "
1821 "lease. A lease is removed by performing an B<F_SETLEASE> operation "
1822 "specifying I<arg> as B<F_UNLCK>. If the lease holder currently holds a "
1823 "write lease on the file, and the lease breaker is opening the file for "
1824 "reading, then it is sufficient for the lease holder to downgrade the lease "
1825 "to a read lease. This is done by performing an B<F_SETLEASE> operation "
1826 "specifying I<arg> as B<F_RDLCK>."
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: debian-trixie fedora-44 fedora-rawhide
1831 msgid ""
1832 "If the lease holder fails to downgrade or remove the lease within the number "
1833 "of seconds specified in I</proc/sys/fs/lease-break-time>, then the kernel "
1834 "forcibly removes or downgrades the lease holder's lease."
1835 msgstr ""
1836
1837 #. type: Plain text
1838 #: debian-trixie fedora-44 fedora-rawhide
1839 msgid ""
1840 "Once a lease break has been initiated, B<F_GETLEASE> returns the target "
1841 "lease type (either B<F_RDLCK> or B<F_UNLCK>, depending on what would be "
1842 "compatible with the lease breaker) until the lease holder voluntarily "
1843 "downgrades or removes the lease or the kernel forcibly does so after the "
1844 "lease break timer expires."
1845 msgstr ""
1846
1847 #. type: Plain text
1848 #: debian-trixie fedora-44 fedora-rawhide
1849 msgid ""
1850 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
1851 "assuming the lease breaker has not unblocked its system call, the kernel "
1852 "permits the lease breaker's system call to proceed."
1853 msgstr ""
1854
1855 #. type: Plain text
1856 #: debian-trixie fedora-44 fedora-rawhide
1857 msgid ""
1858 "If the lease breaker's blocked B<open>(2) or B<truncate>(2) is interrupted "
1859 "by a signal handler, then the system call fails with the error B<EINTR>, but "
1860 "the other steps still occur as described above. If the lease breaker is "
1861 "killed by a signal while blocked in B<open>(2) or B<truncate>(2), then the "
1862 "other steps still occur as described above. If the lease breaker specifies "
1863 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
1864 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
1865 "described above."
1866 msgstr ""
1867
1868 #. type: Plain text
1869 #: debian-trixie fedora-44 fedora-rawhide
1870 msgid ""
1871 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
1872 "be changed using the B<F_SETSIG> operation to B<fcntl>(). If a B<F_SETSIG> "
1873 "operation is performed (even one specifying B<SIGIO>), and the signal "
1874 "handler is established using B<SA_SIGINFO>, then the handler will receive a "
1875 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
1876 "this argument will hold the file descriptor of the leased file that has been "
1877 "accessed by another process. (This is useful if the caller holds leases "
1878 "against multiple files.)"
1879 msgstr ""
1880
1881 #. type: TP
1882 #: debian-trixie fedora-44 fedora-rawhide
1883 #, no-wrap
1884 msgid "B<F_NOTIFY> (I<int>)"
1885 msgstr "B<F_NOTIFY> (I<int>)"
1886
1887 #. type: Plain text
1888 #: debian-trixie fedora-44 fedora-rawhide
1889 msgid ""
1890 "(Linux 2.4 onward) Provide notification when the directory referred to by "
1891 "I<fd> or any of the files that it contains is changed. The events to be "
1892 "notified are specified in I<arg>, which is a bit mask specified by ORing "
1893 "together zero or more of the following bits:"
1894 msgstr ""
1895
1896 #. type: TP
1897 #: debian-trixie fedora-44 fedora-rawhide
1898 #, no-wrap
1899 msgid "B<DN_ACCESS>"
1900 msgstr "B<DN_ACCESS>"
1901
1902 #. type: Plain text
1903 #: debian-trixie fedora-44 fedora-rawhide
1904 msgid "A file was accessed (B<read>(2), B<pread>(2), B<readv>(2), and similar)"
1905 msgstr ""
1906
1907 #. type: TP
1908 #: debian-trixie fedora-44 fedora-rawhide
1909 #, no-wrap
1910 msgid "B<DN_MODIFY>"
1911 msgstr "B<DN_MODIFY>"
1912
1913 #. type: Plain text
1914 #: debian-trixie fedora-44 fedora-rawhide
1915 msgid ""
1916 "A file was modified (B<write>(2), B<pwrite>(2), B<writev>(2), "
1917 "B<truncate>(2), B<ftruncate>(2), and similar)."
1918 msgstr ""
1919
1920 #. type: TP
1921 #: debian-trixie fedora-44 fedora-rawhide
1922 #, no-wrap
1923 msgid "B<DN_CREATE>"
1924 msgstr "B<DN_CREATE>"
1925
1926 #. type: Plain text
1927 #: debian-trixie fedora-44 fedora-rawhide
1928 msgid ""
1929 "A file was created (B<open>(2), B<creat>(2), B<mknod>(2), B<mkdir>(2), "
1930 "B<link>(2), B<symlink>(2), B<rename>(2) into this directory)."
1931 msgstr ""
1932
1933 #. type: TP
1934 #: debian-trixie fedora-44 fedora-rawhide
1935 #, no-wrap
1936 msgid "B<DN_DELETE>"
1937 msgstr "B<DN_DELETE>"
1938
1939 #. type: Plain text
1940 #: debian-trixie fedora-44 fedora-rawhide
1941 msgid ""
1942 "A file was unlinked (B<unlink>(2), B<rename>(2) to another directory, "
1943 "B<rmdir>(2))."
1944 msgstr ""
1945
1946 #. type: TP
1947 #: debian-trixie fedora-44 fedora-rawhide
1948 #, no-wrap
1949 msgid "B<DN_RENAME>"
1950 msgstr "B<DN_RENAME>"
1951
1952 #. type: Plain text
1953 #: debian-trixie fedora-44 fedora-rawhide
1954 msgid "A file was renamed within this directory (B<rename>(2))."
1955 msgstr ""
1956
1957 #. type: TP
1958 #: debian-trixie fedora-44 fedora-rawhide
1959 #, no-wrap
1960 msgid "B<DN_ATTRIB>"
1961 msgstr "B<DN_ATTRIB>"
1962
1963 #. type: Plain text
1964 #: debian-trixie fedora-44 fedora-rawhide
1965 msgid ""
1966 "The attributes of a file were changed (B<chown>(2), B<chmod>(2), "
1967 "B<utime>(2), B<utimensat>(2), and similar)."
1968 msgstr ""
1969
1970 #. type: Plain text
1971 #: debian-trixie fedora-44 fedora-rawhide
1972 msgid ""
1973 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
1974 "must be defined before including I<any> header files.)"
1975 msgstr ""
1976
1977 #. type: Plain text
1978 #: debian-trixie fedora-44 fedora-rawhide
1979 msgid ""
1980 "Directory notifications are normally \"one-shot\", and the application must "
1981 "reregister to receive further notifications. Alternatively, if "
1982 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
1983 "effect until explicitly removed."
1984 msgstr ""
1985
1986 #. The following does seem a poor API-design choice...
1987 #. type: Plain text
1988 #: debian-trixie fedora-44 fedora-rawhide
1989 msgid ""
1990 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
1991 "being added to the set already monitored. To disable notification of all "
1992 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
1993 msgstr ""
1994
1995 #. type: Plain text
1996 #: debian-trixie fedora-44 fedora-rawhide
1997 msgid ""
1998 "Notification occurs via delivery of a signal. The default signal is "
1999 "B<SIGIO>, but this can be changed using the B<F_SETSIG> operation to "
2000 "B<fcntl>(). (Note that B<SIGIO> is one of the nonqueuing standard signals; "
2001 "switching to the use of a real-time signal means that multiple notifications "
2002 "can be queued to the process.) In the latter case, the signal handler "
2003 "receives a I<siginfo_t> structure as its second argument (if the handler was "
2004 "established using B<SA_SIGINFO>) and the I<si_fd> field of this structure "
2005 "contains the file descriptor which generated the notification (useful when "
2006 "establishing notification on multiple directories)."
2007 msgstr ""
2008
2009 #. type: Plain text
2010 #: debian-trixie fedora-44 fedora-rawhide
2011 msgid ""
2012 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
2013 "notification, so that multiple notifications can be queued."
2014 msgstr ""
2015
2016 #. type: Plain text
2017 #: debian-trixie fedora-44 fedora-rawhide
2018 msgid ""
2019 "B<NOTE:> New applications should use the I<inotify> interface (available "
2020 "since Linux 2.6.13), which provides a much superior interface for obtaining "
2021 "notifications of filesystem events. See B<inotify>(7)."
2022 msgstr ""
2023
2024 #. type: TP
2025 #: debian-trixie fedora-44 fedora-rawhide
2026 #, no-wrap
2027 msgid "B<F_SETPIPE_SZ> (I<int>; since Linux 2.6.35)"
2028 msgstr ""
2029
2030 #. type: Plain text
2031 #: debian-trixie fedora-44 fedora-rawhide
2032 msgid ""
2033 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
2034 "bytes. An unprivileged process can adjust the pipe capacity to any value "
2035 "between the system page size and the limit defined in I</proc/sys/fs/pipe-"
2036 "max-size> (see B<proc>(5)). Attempts to set the pipe capacity below the "
2037 "page size are silently rounded up to the page size. Attempts by an "
2038 "unprivileged process to set the pipe capacity above the limit in I</proc/sys/"
2039 "fs/pipe-max-size> yield the error B<EPERM>; a privileged process "
2040 "(B<CAP_SYS_RESOURCE>) can override the limit."
2041 msgstr ""
2042
2043 #. type: Plain text
2044 #: debian-trixie fedora-44 fedora-rawhide
2045 msgid ""
2046 "When allocating the buffer for the pipe, the kernel may use a capacity "
2047 "larger than I<arg>, if that is convenient for the implementation. (In the "
2048 "current implementation, the allocation is the next higher power-of-two page-"
2049 "size multiple of the requested size.) The actual capacity (in bytes) that "
2050 "is set is returned as the function result."
2051 msgstr ""
2052
2053 #. type: Plain text
2054 #: debian-trixie fedora-44 fedora-rawhide
2055 msgid ""
2056 "Attempting to set the pipe capacity smaller than the amount of buffer space "
2057 "currently used to store data produces the error B<EBUSY>."
2058 msgstr ""
2059
2060 #. type: Plain text
2061 #: debian-trixie fedora-44 fedora-rawhide
2062 msgid ""
2063 "Note that because of the way the pages of the pipe buffer are employed when "
2064 "data is written to the pipe, the number of bytes that can be written may be "
2065 "less than the nominal size, depending on the size of the writes."
2066 msgstr ""
2067
2068 #. type: TP
2069 #: debian-trixie fedora-44 fedora-rawhide
2070 #, no-wrap
2071 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
2072 msgstr ""
2073
2074 #. type: Plain text
2075 #: debian-trixie fedora-44 fedora-rawhide
2076 msgid ""
2077 "Return (as the function result) the capacity of the pipe referred to by "
2078 "I<fd>."
2079 msgstr ""
2080
2081 #. type: Plain text
2082 #: debian-trixie fedora-44 fedora-rawhide
2083 msgid ""
2084 "File seals limit the set of allowed operations on a given file. For each "
2085 "seal that is set on a file, a specific set of operations will fail with "
2086 "B<EPERM> on this file from now on. The file is said to be sealed. The "
2087 "default set of seals depends on the type of the underlying file and "
2088 "filesystem. For an overview of file sealing, a discussion of its purpose, "
2089 "and some code examples, see B<memfd_create>(2)."
2090 msgstr ""
2091
2092 #. type: Plain text
2093 #: debian-trixie fedora-44 fedora-rawhide
2094 msgid ""
2095 "Currently, file seals can be applied only to a file descriptor returned by "
2096 "B<memfd_create>(2) (if the B<MFD_ALLOW_SEALING> was employed). On other "
2097 "filesystems, all B<fcntl>() operations that operate on seals will return "
2098 "B<EINVAL>."
2099 msgstr ""
2100
2101 #. type: Plain text
2102 #: debian-trixie fedora-44 fedora-rawhide
2103 msgid ""
2104 "Seals are a property of an inode. Thus, all open file descriptors referring "
2105 "to the same inode share the same set of seals. Furthermore, seals can never "
2106 "be removed, only added."
2107 msgstr ""
2108
2109 #. type: TP
2110 #: debian-trixie fedora-44 fedora-rawhide
2111 #, no-wrap
2112 msgid "B<F_ADD_SEALS> (I<int>; since Linux 3.17)"
2113 msgstr ""
2114
2115 #. type: Plain text
2116 #: debian-trixie fedora-44 fedora-rawhide
2117 msgid ""
2118 "Add the seals given in the bit-mask argument I<arg> to the set of seals of "
2119 "the inode referred to by the file descriptor I<fd>. Seals cannot be removed "
2120 "again. Once this call succeeds, the seals are enforced by the kernel "
2121 "immediately. If the current set of seals includes B<F_SEAL_SEAL> (see "
2122 "below), then this call will be rejected with B<EPERM>. Adding a seal that "
2123 "is already set is a no-op, in case B<F_SEAL_SEAL> is not set already. In "
2124 "order to place a seal, the file descriptor I<fd> must be writable."
2125 msgstr ""
2126
2127 #. type: TP
2128 #: debian-trixie fedora-44 fedora-rawhide
2129 #, no-wrap
2130 msgid "B<F_GET_SEALS> (I<void>; since Linux 3.17)"
2131 msgstr ""
2132
2133 #. type: Plain text
2134 #: debian-trixie fedora-44 fedora-rawhide
2135 msgid ""
2136 "Return (as the function result) the current set of seals of the inode "
2137 "referred to by I<fd>. If no seals are set, 0 is returned. If the file does "
2138 "not support sealing, -1 is returned and I<errno> is set to B<EINVAL>."
2139 msgstr ""
2140
2141 #. type: Plain text
2142 #: debian-trixie fedora-44 fedora-rawhide
2143 msgid "The following seals are available:"
2144 msgstr ""
2145
2146 #. type: TP
2147 #: debian-trixie fedora-44 fedora-rawhide
2148 #, no-wrap
2149 msgid "B<F_SEAL_SEAL>"
2150 msgstr "B<F_SEAL_SEAL>"
2151
2152 #. type: Plain text
2153 #: debian-trixie fedora-44 fedora-rawhide
2154 msgid ""
2155 "If this seal is set, any further call to B<fcntl>() with B<F_ADD_SEALS> "
2156 "fails with the error B<EPERM>. Therefore, this seal prevents any "
2157 "modifications to the set of seals itself. If the initial set of seals of a "
2158 "file includes B<F_SEAL_SEAL>, then this effectively causes the set of seals "
2159 "to be constant and locked."
2160 msgstr ""
2161
2162 #. type: TP
2163 #: debian-trixie fedora-44 fedora-rawhide
2164 #, no-wrap
2165 msgid "B<F_SEAL_SHRINK>"
2166 msgstr "B<F_SEAL_SHRINK>"
2167
2168 #. type: Plain text
2169 #: debian-trixie fedora-44 fedora-rawhide
2170 msgid ""
2171 "If this seal is set, the file in question cannot be reduced in size. This "
2172 "affects B<open>(2) with the B<O_TRUNC> flag as well as B<truncate>(2) and "
2173 "B<ftruncate>(2). Those calls fail with B<EPERM> if you try to shrink the "
2174 "file in question. Increasing the file size is still possible."
2175 msgstr ""
2176
2177 #. type: TP
2178 #: debian-trixie fedora-44 fedora-rawhide
2179 #, no-wrap
2180 msgid "B<F_SEAL_GROW>"
2181 msgstr "B<F_SEAL_GROW>"
2182
2183 #. type: Plain text
2184 #: debian-trixie fedora-44 fedora-rawhide
2185 msgid ""
2186 "If this seal is set, the size of the file in question cannot be increased. "
2187 "This affects B<write>(2) beyond the end of the file, B<truncate>(2), "
2188 "B<ftruncate>(2), and B<fallocate>(2). These calls fail with B<EPERM> if you "
2189 "use them to increase the file size. If you keep the size or shrink it, "
2190 "those calls still work as expected."
2191 msgstr ""
2192
2193 #. type: TP
2194 #: debian-trixie fedora-44 fedora-rawhide
2195 #, no-wrap
2196 msgid "B<F_SEAL_WRITE>"
2197 msgstr "B<F_SEAL_WRITE>"
2198
2199 #. One or more other seals are typically used with F_SEAL_WRITE
2200 #. because, given a file with the F_SEAL_WRITE seal set, then,
2201 #. while it would no longer be possible to (say) write zeros into
2202 #. the last 100 bytes of a file, it would still be possible
2203 #. to (say) shrink the file by 100 bytes using ftruncate(), and
2204 #. then increase the file size by 100 bytes, which would have
2205 #. the effect of replacing the last hundred bytes by zeros.
2206 #. type: Plain text
2207 #: debian-trixie fedora-44 fedora-rawhide
2208 msgid ""
2209 "If this seal is set, you cannot modify the contents of the file. Note that "
2210 "shrinking or growing the size of the file is still possible and allowed. "
2211 "Thus, this seal is normally used in combination with one of the other "
2212 "seals. This seal affects B<write>(2) and B<fallocate>(2) (only in "
2213 "combination with the B<FALLOC_FL_PUNCH_HOLE> flag). Those calls fail with "
2214 "B<EPERM> if this seal is set. Furthermore, trying to create new shared, "
2215 "writable memory-mappings via B<mmap>(2) will also fail with B<EPERM>."
2216 msgstr ""
2217
2218 #. type: Plain text
2219 #: debian-trixie fedora-44 fedora-rawhide
2220 msgid ""
2221 "Using the B<F_ADD_SEALS> operation to set the B<F_SEAL_WRITE> seal fails "
2222 "with B<EBUSY> if any writable, shared mapping exists. Such mappings must be "
2223 "unmapped before you can add this seal. Furthermore, if there are any "
2224 "asynchronous I/O operations (B<io_submit>(2)) pending on the file, all "
2225 "outstanding writes will be discarded."
2226 msgstr ""
2227
2228 #. type: TP
2229 #: debian-trixie fedora-44 fedora-rawhide
2230 #, no-wrap
2231 msgid "B<F_SEAL_FUTURE_WRITE> (since Linux 5.1)"
2232 msgstr ""
2233
2234 #. type: Plain text
2235 #: debian-trixie fedora-44 fedora-rawhide
2236 msgid ""
2237 "The effect of this seal is similar to B<F_SEAL_WRITE>, but the contents of "
2238 "the file can still be modified via shared writable mappings that were "
2239 "created prior to the seal being set. Any attempt to create a new writable "
2240 "mapping on the file via B<mmap>(2) will fail with B<EPERM>. Likewise, an "
2241 "attempt to write to the file via B<write>(2) will fail with B<EPERM>."
2242 msgstr ""
2243
2244 #. type: Plain text
2245 #: debian-trixie fedora-44 fedora-rawhide
2246 msgid ""
2247 "Using this seal, one process can create a memory buffer that it can continue "
2248 "to modify while sharing that buffer on a \"read-only\" basis with other "
2249 "processes."
2250 msgstr ""
2251
2252 #. type: Plain text
2253 #: debian-trixie fedora-44 fedora-rawhide
2254 msgid ""
2255 "Write lifetime hints can be used to inform the kernel about the relative "
2256 "expected lifetime of writes on a given inode or via a particular open file "
2257 "description. (See B<open>(2) for an explanation of open file "
2258 "descriptions.) In this context, the term \"write lifetime\" means the "
2259 "expected time the data will live on media, before being overwritten or "
2260 "erased."
2261 msgstr ""
2262
2263 #. type: Plain text
2264 #: debian-trixie fedora-44 fedora-rawhide
2265 msgid ""
2266 "An application may use the different hint values specified below to separate "
2267 "writes into different write classes, so that multiple users or applications "
2268 "running on a single storage back-end can aggregate their I/O patterns in a "
2269 "consistent manner. However, there are no functional semantics implied by "
2270 "these flags, and different I/O classes can use the write lifetime hints in "
2271 "arbitrary ways, so long as the hints are used consistently."
2272 msgstr ""
2273
2274 #. type: Plain text
2275 #: debian-trixie fedora-44 fedora-rawhide
2276 msgid "The following operations can be applied to the file descriptor, I<fd>:"
2277 msgstr ""
2278
2279 #. type: TP
2280 #: debian-trixie fedora-44 fedora-rawhide
2281 #, no-wrap
2282 msgid "B<F_GET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2283 msgstr ""
2284
2285 #. type: Plain text
2286 #: debian-trixie fedora-44 fedora-rawhide
2287 msgid ""
2288 "Returns the value of the read/write hint associated with the underlying "
2289 "inode referred to by I<fd>."
2290 msgstr ""
2291
2292 #. type: TP
2293 #: debian-trixie fedora-44 fedora-rawhide
2294 #, no-wrap
2295 msgid "B<F_SET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2296 msgstr ""
2297
2298 #. type: Plain text
2299 #: debian-trixie fedora-44 fedora-rawhide
2300 msgid ""
2301 "Sets the read/write hint value associated with the underlying inode referred "
2302 "to by I<fd>. This hint persists until either it is explicitly modified or "
2303 "the underlying filesystem is unmounted."
2304 msgstr ""
2305
2306 #. type: TP
2307 #: debian-trixie fedora-44 fedora-rawhide
2308 #, no-wrap
2309 msgid "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2310 msgstr ""
2311
2312 #. type: Plain text
2313 #: debian-trixie fedora-44 fedora-rawhide
2314 msgid ""
2315 "Returns the value of the read/write hint associated with the open file "
2316 "description referred to by I<fd>."
2317 msgstr ""
2318
2319 #. type: TP
2320 #: debian-trixie fedora-44 fedora-rawhide
2321 #, no-wrap
2322 msgid "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2323 msgstr ""
2324
2325 #. type: Plain text
2326 #: debian-trixie fedora-44 fedora-rawhide
2327 msgid ""
2328 "Sets the read/write hint value associated with the open file description "
2329 "referred to by I<fd>."
2330 msgstr ""
2331
2332 #. type: Plain text
2333 #: debian-trixie fedora-44 fedora-rawhide
2334 msgid ""
2335 "If an open file description has not been assigned a read/write hint, then it "
2336 "shall use the value assigned to the inode, if any."
2337 msgstr ""
2338
2339 #. type: Plain text
2340 #: debian-trixie fedora-44 fedora-rawhide
2341 msgid "The following read/write hints are valid since Linux 4.13:"
2342 msgstr ""
2343
2344 #. type: TP
2345 #: debian-trixie fedora-44 fedora-rawhide
2346 #, no-wrap
2347 msgid "B<RWH_WRITE_LIFE_NOT_SET>"
2348 msgstr "B<RWH_WRITE_LIFE_NOT_SET>"
2349
2350 #. type: Plain text
2351 #: debian-trixie fedora-44 fedora-rawhide
2352 msgid "No specific hint has been set. This is the default value."
2353 msgstr ""
2354
2355 #. type: TP
2356 #: debian-trixie fedora-44 fedora-rawhide
2357 #, no-wrap
2358 msgid "B<RWH_WRITE_LIFE_NONE>"
2359 msgstr "B<RWH_WRITE_LIFE_NONE>"
2360
2361 #. type: Plain text
2362 #: debian-trixie fedora-44 fedora-rawhide
2363 msgid "No specific write lifetime is associated with this file or inode."
2364 msgstr ""
2365
2366 #. type: TP
2367 #: debian-trixie fedora-44 fedora-rawhide
2368 #, no-wrap
2369 msgid "B<RWH_WRITE_LIFE_SHORT>"
2370 msgstr "B<RWH_WRITE_LIFE_SHORT>"
2371
2372 #. type: Plain text
2373 #: debian-trixie fedora-44 fedora-rawhide
2374 msgid ""
2375 "Data written to this inode or via this open file description is expected to "
2376 "have a short lifetime."
2377 msgstr ""
2378
2379 #. type: TP
2380 #: debian-trixie fedora-44 fedora-rawhide
2381 #, no-wrap
2382 msgid "B<RWH_WRITE_LIFE_MEDIUM>"
2383 msgstr "B<RWH_WRITE_LIFE_MEDIUM>"
2384
2385 #. type: Plain text
2386 #: debian-trixie fedora-44 fedora-rawhide
2387 msgid ""
2388 "Data written to this inode or via this open file description is expected to "
2389 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_SHORT>."
2390 msgstr ""
2391
2392 #. type: TP
2393 #: debian-trixie fedora-44 fedora-rawhide
2394 #, no-wrap
2395 msgid "B<RWH_WRITE_LIFE_LONG>"
2396 msgstr "B<RWH_WRITE_LIFE_LONG>"
2397
2398 #. type: Plain text
2399 #: debian-trixie fedora-44 fedora-rawhide
2400 msgid ""
2401 "Data written to this inode or via this open file description is expected to "
2402 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_MEDIUM>."
2403 msgstr ""
2404
2405 #. type: TP
2406 #: debian-trixie fedora-44 fedora-rawhide
2407 #, no-wrap
2408 msgid "B<RWH_WRITE_LIFE_EXTREME>"
2409 msgstr "B<RWH_WRITE_LIFE_EXTREME>"
2410
2411 #. type: Plain text
2412 #: debian-trixie fedora-44 fedora-rawhide
2413 msgid ""
2414 "Data written to this inode or via this open file description is expected to "
2415 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_LONG>."
2416 msgstr ""
2417
2418 #. type: Plain text
2419 #: debian-trixie fedora-44 fedora-rawhide
2420 msgid ""
2421 "All the write-specific hints are relative to each other, and no individual "
2422 "absolute meaning should be attributed to them."
2423 msgstr ""
2424
2425 #. type: Plain text
2426 #: debian-trixie fedora-44 fedora-rawhide
2427 msgid "For a successful call, the return value depends on the operation:"
2428 msgstr "Para uma chamada bem sucedida, o valor de retorno depende da operação:"
2429
2430 #. type: TP
2431 #: debian-trixie fedora-44 fedora-rawhide
2432 #, no-wrap
2433 msgid "B<F_DUPFD>"
2434 msgstr "B<F_DUPFD>"
2435
2436 #. type: Plain text
2437 #: debian-trixie fedora-44 fedora-rawhide
2438 #, fuzzy
2439 #| msgid "The new descriptor."
2440 msgid "The new file descriptor."
2441 msgstr "O novo descritor."
2442
2443 #. type: TP
2444 #: debian-trixie fedora-44 fedora-rawhide
2445 #, no-wrap
2446 msgid "B<F_GETFD>"
2447 msgstr "B<F_GETFD>"
2448
2449 #. type: Plain text
2450 #: debian-trixie fedora-44 fedora-rawhide
2451 #, fuzzy
2452 #| msgid "Value of descriptor owner."
2453 msgid "Value of file descriptor flags."
2454 msgstr "Valor do proprietário do descritor."
2455
2456 #. type: TP
2457 #: debian-trixie fedora-44 fedora-rawhide
2458 #, no-wrap
2459 msgid "B<F_GETFL>"
2460 msgstr "B<F_GETFL>"
2461
2462 #. type: Plain text
2463 #: debian-trixie fedora-44 fedora-rawhide
2464 #, fuzzy
2465 #| msgid "Value of flags."
2466 msgid "Value of file status flags."
2467 msgstr "Valor dos parâmetros."
2468
2469 #. type: TP
2470 #: debian-trixie fedora-44 fedora-rawhide
2471 #, no-wrap
2472 msgid "B<F_GETLEASE>"
2473 msgstr "B<F_GETLEASE>"
2474
2475 #. type: Plain text
2476 #: debian-trixie fedora-44 fedora-rawhide
2477 #, fuzzy
2478 #| msgid "I<fd> is not an open file descriptor."
2479 msgid "Type of lease held on file descriptor."
2480 msgstr "I<fd> não é um descritor de arquivos."
2481
2482 #. type: TP
2483 #: debian-trixie fedora-44 fedora-rawhide
2484 #, no-wrap
2485 msgid "B<F_GETOWN>"
2486 msgstr "B<F_GETOWN>"
2487
2488 #. type: Plain text
2489 #: debian-trixie fedora-44 fedora-rawhide
2490 #, fuzzy
2491 #| msgid "Value of descriptor owner."
2492 msgid "Value of file descriptor owner."
2493 msgstr "Valor do proprietário do descritor."
2494
2495 #. type: TP
2496 #: debian-trixie fedora-44 fedora-rawhide
2497 #, no-wrap
2498 msgid "B<F_GETSIG>"
2499 msgstr "B<F_GETSIG>"
2500
2501 #. type: Plain text
2502 #: debian-trixie fedora-44 fedora-rawhide
2503 msgid ""
2504 "Value of signal sent when read or write becomes possible, or zero for "
2505 "traditional B<SIGIO> behavior."
2506 msgstr ""
2507 "Valor do sinal enviado quando o read ou write se tornaram possíveis, ou zero "
2508 "para o comportamento tradicional B<SIGIO>."
2509
2510 #. type: TP
2511 #: debian-trixie fedora-44 fedora-rawhide
2512 #, fuzzy, no-wrap
2513 #| msgid "B<F_GETLEASE>"
2514 msgid "B<F_GETPIPE_SZ>"
2515 msgstr "B<F_GETLEASE>"
2516
2517 #. type: TQ
2518 #: debian-trixie fedora-44 fedora-rawhide
2519 #, fuzzy, no-wrap
2520 #| msgid "B<EPIPE>"
2521 msgid "B<F_SETPIPE_SZ>"
2522 msgstr "B<EPIPE>"
2523
2524 #. type: Plain text
2525 #: debian-trixie fedora-44 fedora-rawhide
2526 msgid "The pipe capacity."
2527 msgstr ""
2528
2529 #. type: TP
2530 #: debian-trixie fedora-44 fedora-rawhide
2531 #, no-wrap
2532 msgid "B<F_GET_SEALS>"
2533 msgstr "B<F_GET_SEALS>"
2534
2535 #. type: Plain text
2536 #: debian-trixie fedora-44 fedora-rawhide
2537 msgid ""
2538 "A bit mask identifying the seals that have been set for the inode referred "
2539 "to by I<fd>."
2540 msgstr ""
2541
2542 #. type: TP
2543 #: debian-trixie fedora-44 fedora-rawhide
2544 #, fuzzy, no-wrap
2545 #| msgid "All other commands"
2546 msgid "All other operations"
2547 msgstr "Todos os outros comandos"
2548
2549 #. type: Plain text
2550 #: debian-trixie fedora-44 fedora-rawhide
2551 msgid "Zero."
2552 msgstr "Zero."
2553
2554 #. type: Plain text
2555 #: debian-trixie fedora-44 fedora-rawhide
2556 msgid ""
2557 "I<op> is B<F_SETLK> or B<F_SETLKW> and the file descriptor open mode doesn't "
2558 "match with the type of lock requested."
2559 msgstr ""
2560
2561 #. type: TP
2562 #: debian-trixie fedora-44 fedora-rawhide
2563 #, no-wrap
2564 msgid "B<EBUSY>"
2565 msgstr "B<EBUSY>"
2566
2567 #. type: Plain text
2568 #: debian-trixie fedora-44 fedora-rawhide
2569 msgid ""
2570 "I<op> is B<F_SETPIPE_SZ> and the new pipe capacity specified in I<arg> is "
2571 "smaller than the amount of buffer space currently used to store data in the "
2572 "pipe."
2573 msgstr ""
2574
2575 #. type: Plain text
2576 #: debian-trixie fedora-44 fedora-rawhide
2577 msgid ""
2578 "I<op> is B<F_ADD_SEALS>, I<arg> includes B<F_SEAL_WRITE>, and there exists a "
2579 "writable, shared mapping on the file referred to by I<fd>."
2580 msgstr ""
2581
2582 #. type: TP
2583 #: debian-trixie fedora-44 fedora-rawhide
2584 #, no-wrap
2585 msgid "B<EDEADLK>"
2586 msgstr "B<EDEADLK>"
2587
2588 #. type: Plain text
2589 #: debian-trixie fedora-44 fedora-rawhide
2590 #, fuzzy
2591 #| msgid ""
2592 #| "It was detected that the specified B<F_SETLKW> command would cause a "
2593 #| "deadlock."
2594 msgid ""
2595 "It was detected that the specified B<F_SETLKW> operation would cause a "
2596 "deadlock."
2597 msgstr ""
2598 "Foi detectado que o comando especificado B<F_SETLKW> iria causar um "
2599 "travamento fatal."
2600
2601 #. type: TP
2602 #: debian-trixie fedora-44 fedora-rawhide
2603 #, no-wrap
2604 msgid "B<EFAULT>"
2605 msgstr "B<EFAULT>"
2606
2607 #. type: Plain text
2608 #: debian-trixie fedora-44 fedora-rawhide
2609 msgid "I<lock> is outside your accessible address space."
2610 msgstr "I<O travamento> está fora de sua área de endereços acessíveis."
2611
2612 #. type: TP
2613 #: debian-trixie fedora-44 fedora-rawhide
2614 #, no-wrap
2615 msgid "B<EINTR>"
2616 msgstr "B<EINTR>"
2617
2618 #. type: Plain text
2619 #: debian-trixie fedora-44 fedora-rawhide
2620 msgid ""
2621 "I<op> is B<F_SETLKW> or B<F_OFD_SETLKW> and the operation was interrupted by "
2622 "a signal; see B<signal>(7)."
2623 msgstr ""
2624
2625 #. type: Plain text
2626 #: debian-trixie fedora-44 fedora-rawhide
2627 #, fuzzy
2628 #| msgid ""
2629 #| "For B<F_SETLKW>, the command was interrupted by a signal. For B<F_GETLK> "
2630 #| "and B<F_SETLK>, the command was interrupted by a signal before the lock "
2631 #| "was checked or acquired. Most likely when locking a remote file (e.g. "
2632 #| "locking over NFS), but can sometimes happen locally."
2633 msgid ""
2634 "I<op> is B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK>, or B<F_OFD_SETLK>, and the "
2635 "operation was interrupted by a signal before the lock was checked or "
2636 "acquired. Most likely when locking a remote file (e.g., locking over NFS), "
2637 "but can sometimes happen locally."
2638 msgstr ""
2639 "Para B<F_SETLKW>, o comando foi interrompido por um sinal. Para B<F_GETLK> e "
2640 "B<F_SETLK>, o comando foi interrompido por um sinal antes do travamento ter "
2641 "sido verificado ou adquirido. Mais comum quando travamento em um arquivo "
2642 "remoto (por exemplo, travamento sobre NFS), mas pode acontecer localmente "
2643 "algumas vezes."
2644
2645 #. type: Plain text
2646 #: debian-trixie fedora-44 fedora-rawhide
2647 msgid ""
2648 "I<op> is B<F_ADD_SEALS> and I<arg> includes an unrecognized sealing bit."
2649 msgstr ""
2650
2651 #. type: Plain text
2652 #: debian-trixie fedora-44 fedora-rawhide
2653 msgid ""
2654 "I<op> is B<F_ADD_SEALS> or B<F_GET_SEALS> and the filesystem containing the "
2655 "inode referred to by I<fd> does not support sealing."
2656 msgstr ""
2657
2658 #. type: Plain text
2659 #: debian-trixie fedora-44 fedora-rawhide
2660 #, fuzzy
2661 #| msgid ""
2662 #| "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum "
2663 #| "allowable value. For B<F_SETSIG>, I<arg> is not an allowable signal "
2664 #| "number."
2665 msgid ""
2666 "I<op> is B<F_DUPFD> and I<arg> is negative or is greater than the maximum "
2667 "allowable value (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
2668 msgstr ""
2669 "Para B<F_DUPFD>, I<arg> é negativo ou é maior que o valor máximo permitido. "
2670 "Para B<F_SETSIG>, I<arg> não é um valor de sinal permitido."
2671
2672 #. type: Plain text
2673 #: debian-trixie fedora-44 fedora-rawhide
2674 msgid "I<op> is B<F_SETSIG> and I<arg> is not an allowable signal number."
2675 msgstr ""
2676
2677 #. type: Plain text
2678 #: debian-trixie fedora-44 fedora-rawhide
2679 msgid ""
2680 "I<op> is B<F_OFD_SETLK>, B<F_OFD_SETLKW>, or B<F_OFD_GETLK>, and I<l_pid> "
2681 "was not specified as zero."
2682 msgstr ""
2683
2684 #. type: TP
2685 #: debian-trixie fedora-44 fedora-rawhide
2686 #, no-wrap
2687 msgid "B<EMFILE>"
2688 msgstr "B<EMFILE>"
2689
2690 #. type: Plain text
2691 #: debian-trixie fedora-44 fedora-rawhide
2692 #, fuzzy
2693 #| msgid ""
2694 #| "For B<F_DUPFD>, the process already has the maximum number of file "
2695 #| "descriptors open."
2696 msgid ""
2697 "I<op> is B<F_DUPFD> and the per-process limit on the number of open file "
2698 "descriptors has been reached."
2699 msgstr ""
2700 "Para B<F_DUPFD>, o processo já tem o número máximo de descritores de "
2701 "arquivos abertos."
2702
2703 #. type: TP
2704 #: debian-trixie fedora-44 fedora-rawhide
2705 #, no-wrap
2706 msgid "B<ENOLCK>"
2707 msgstr "B<ENOLCK>"
2708
2709 #. type: Plain text
2710 #: debian-trixie fedora-44 fedora-rawhide
2711 #, fuzzy
2712 #| msgid ""
2713 #| "Too many segment locks open, lock table is full, or a remote locking "
2714 #| "protocol failed (e.g. locking over NFS)."
2715 msgid ""
2716 "Too many segment locks open, lock table is full, or a remote locking "
2717 "protocol failed (e.g., locking over NFS)."
2718 msgstr ""
2719 "Muitos travamentos de segmento abertos, a tabela de travamento está cheia, "
2720 "ou o protocol de travamento remoto falhou (por exemplo, travamentos sobre "
2721 "NFS)."
2722
2723 #. type: TP
2724 #: debian-trixie fedora-44 fedora-rawhide
2725 #, no-wrap
2726 msgid "B<ENOTDIR>"
2727 msgstr "B<ENOTDIR>"
2728
2729 #. type: Plain text
2730 #: debian-trixie fedora-44 fedora-rawhide
2731 #, fuzzy
2732 #| msgid "File descriptor does not refer to a directory."
2733 msgid ""
2734 "B<F_NOTIFY> was specified in I<op>, but I<fd> does not refer to a directory."
2735 msgstr "O descritor de arquivos não se refere para um diretório."
2736
2737 #. type: TP
2738 #: debian-trixie fedora-44 fedora-rawhide
2739 #, no-wrap
2740 msgid "B<EPERM>"
2741 msgstr "B<EPERM>"
2742
2743 #. type: Plain text
2744 #: debian-trixie fedora-44 fedora-rawhide
2745 msgid ""
2746 "I<op> is B<F_SETPIPE_SZ> and the soft or hard user pipe limit has been "
2747 "reached; see B<pipe>(7)."
2748 msgstr ""
2749
2750 #. type: Plain text
2751 #: debian-trixie fedora-44 fedora-rawhide
2752 msgid ""
2753 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
2754 "attribute set."
2755 msgstr ""
2756 "Tentativa de limpar um sinalizador B<O_APPEND> em um arquivo que tem o "
2757 "atributo de 'append-only' selecionado."
2758
2759 #. type: Plain text
2760 #: debian-trixie fedora-44 fedora-rawhide
2761 msgid ""
2762 "I<op> was B<F_ADD_SEALS>, but I<fd> was not open for writing or the current "
2763 "set of seals on the file already includes B<F_SEAL_SEAL>."
2764 msgstr ""
2765
2766 #. type: Plain text
2767 #: debian-trixie fedora-44 fedora-rawhide
2768 msgid "POSIX.1-2008."
2769 msgstr "POSIX.1-2008."
2770
2771 #. .P
2772 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
2773 #. type: Plain text
2774 #: debian-trixie fedora-44 fedora-rawhide
2775 msgid ""
2776 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
2777 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
2778 "Linux-specific. (Define the B<_GNU_SOURCE> macro to obtain these "
2779 "definitions.)"
2780 msgstr ""
2781
2782 #. type: Plain text
2783 #: debian-trixie fedora-44 fedora-rawhide
2784 msgid ""
2785 "B<F_OFD_SETLK>, B<F_OFD_SETLKW>, and B<F_OFD_GETLK> are Linux-specific (and "
2786 "one must define B<_GNU_SOURCE> to obtain their definitions), but work is "
2787 "being done to have them included in the next version of POSIX.1."
2788 msgstr ""
2789
2790 #. FIXME . Once glibc adds support, add a note about FTM requirements
2791 #. type: Plain text
2792 #: debian-trixie fedora-44 fedora-rawhide
2793 msgid "B<F_ADD_SEALS> and B<F_GET_SEALS> are Linux-specific."
2794 msgstr ""
2795
2796 #. type: Plain text
2797 #: debian-trixie fedora-44 fedora-rawhide
2798 msgid "SVr4, 4.3BSD, POSIX.1-2001."
2799 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
2800
2801 #. type: Plain text
2802 #: debian-trixie fedora-44 fedora-rawhide
2803 msgid ""
2804 "Only the operations B<F_DUPFD>, B<F_GETFD>, B<F_SETFD>, B<F_GETFL>, "
2805 "B<F_SETFL>, B<F_GETLK>, B<F_SETLK>, and B<F_SETLKW> are specified in "
2806 "POSIX.1-2001."
2807 msgstr ""
2808
2809 #. .BR _BSD_SOURCE ,
2810 #. or
2811 #. type: Plain text
2812 #: debian-trixie fedora-44 fedora-rawhide
2813 msgid ""
2814 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001. (To get their "
2815 "definitions, define either B<_XOPEN_SOURCE> with the value 500 or greater, "
2816 "or B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
2817 msgstr ""
2818
2819 #. type: Plain text
2820 #: debian-trixie fedora-44 fedora-rawhide
2821 msgid ""
2822 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008. (To get this definition, "
2823 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
2824 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
2825 msgstr ""
2826
2827 #. type: SH
2828 #: debian-trixie fedora-44 fedora-rawhide
2829 #, no-wrap
2830 msgid "NOTES"
2831 msgstr "NOTAS"
2832
2833 #. type: Plain text
2834 #: debian-trixie fedora-44 fedora-rawhide
2835 msgid ""
2836 "The errors returned by B<dup2>(2) are different from those returned by "
2837 "B<F_DUPFD>."
2838 msgstr ""
2839 "Os erros retornados por B<dup2>(2) são diferentes daqueles retornados por "
2840 "B<F_DUPFD>."
2841
2842 #. type: SS
2843 #: debian-trixie fedora-44 fedora-rawhide
2844 #, no-wrap
2845 msgid "File locking"
2846 msgstr ""
2847
2848 #. type: Plain text
2849 #: debian-trixie fedora-44 fedora-rawhide
2850 msgid ""
2851 "The original Linux B<fcntl>() system call was not designed to handle large "
2852 "file offsets (in the I<flock> structure). Consequently, an B<fcntl64>() "
2853 "system call was added in Linux 2.4. The newer system call employs a "
2854 "different structure for file locking, I<flock64>, and corresponding "
2855 "operations, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>. However, these "
2856 "details can be ignored by applications using glibc, whose B<fcntl>() "
2857 "wrapper function transparently employs the more recent system call where it "
2858 "is available."
2859 msgstr ""
2860
2861 #. type: SS
2862 #: debian-trixie fedora-44 fedora-rawhide
2863 #, no-wrap
2864 msgid "Record locks"
2865 msgstr ""
2866
2867 #. type: Plain text
2868 #: debian-trixie fedora-44 fedora-rawhide
2869 msgid ""
2870 "Since Linux 2.0, there is no interaction between the types of lock placed by "
2871 "B<flock>(2) and B<fcntl>()."
2872 msgstr ""
2873
2874 #. e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
2875 #. documents it in fcntl(5). mtk, May 2007
2876 #. Also, FreeBSD documents it (Apr 2014).
2877 #. type: Plain text
2878 #: debian-trixie fedora-44 fedora-rawhide
2879 msgid ""
2880 "Several systems have more fields in I<struct flock> such as, for example, "
2881 "I<l_sysid> (to identify the machine where the lock is held). Clearly, "
2882 "I<l_pid> alone is not going to be very useful if the process holding the "
2883 "lock may live on a different machine; on Linux, while present on some "
2884 "architectures (such as MIPS32), this field is not used."
2885 msgstr ""
2886
2887 #. type: SS
2888 #: debian-trixie fedora-44 fedora-rawhide
2889 #, no-wrap
2890 msgid "Record locking and NFS"
2891 msgstr ""
2892
2893 #
2894 #
2895 #
2896 #. Neil Brown: With NFSv3 the failure mode is the reverse. If
2897 #. the server loses contact with a client then any lock stays in place
2898 #. indefinitely ("why can't I read my mail"... I remember it well).
2899 #. Jeff Layton:
2900 #. Note that this is not a firm timeout. The server runs a job
2901 #. periodically to clean out expired stateful objects, and it's likely
2902 #. that there is some time (maybe even up to another whole lease period)
2903 #. between when the timeout expires and the job actually runs. If the
2904 #. client gets a RENEW in there within that window, its lease will be
2905 #. renewed and its state preserved.
2906 #. type: Plain text
2907 #: debian-trixie fedora-44 fedora-rawhide
2908 msgid ""
2909 "Before Linux 3.12, if an NFSv4 client loses contact with the server for a "
2910 "period of time (defined as more than 90 seconds with no communication), it "
2911 "might lose and regain a lock without ever being aware of the fact. (The "
2912 "period of time after which contact is assumed lost is known as the NFSv4 "
2913 "leasetime. On a Linux NFS server, this can be determined by looking at I</"
2914 "proc/fs/nfsd/nfsv4leasetime>, which expresses the period in seconds. The "
2915 "default value for this file is 90.) This scenario potentially risks data "
2916 "corruption, since another process might acquire a lock in the intervening "
2917 "period and perform file I/O."
2918 msgstr ""
2919
2920 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
2921 #. commit f6de7a39c181dfb8a2c534661a53c73afb3081cd
2922 #. type: Plain text
2923 #: debian-trixie fedora-44 fedora-rawhide
2924 msgid ""
2925 "Since Linux 3.12, if an NFSv4 client loses contact with the server, any I/O "
2926 "to the file by a process which \"thinks\" it holds a lock will fail until "
2927 "that process closes and reopens the file. A kernel parameter, "
2928 "I<nfs.recover_lost_locks>, can be set to 1 to obtain the pre-3.12 behavior, "
2929 "whereby the client will attempt to recover lost locks when contact is "
2930 "reestablished with the server. Because of the attendant risk of data "
2931 "corruption, this parameter defaults to 0 (disabled)."
2932 msgstr ""
2933
2934 #. type: SH
2935 #: debian-trixie fedora-44 fedora-rawhide
2936 #, no-wrap
2937 msgid "BUGS"
2938 msgstr "BUGS"
2939
2940 #. type: SS
2941 #: debian-trixie fedora-44 fedora-rawhide
2942 #, no-wrap
2943 msgid "F_SETFL"
2944 msgstr "F_SETFL"
2945
2946 #. FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
2947 #. via fcntl(2), but currently Linux does not permit this
2948 #. See http://bugzilla.kernel.org/show_bug.cgi?id=5994
2949 #. type: Plain text
2950 #: debian-trixie fedora-44 fedora-rawhide
2951 msgid ""
2952 "It is not possible to use B<F_SETFL> to change the state of the B<O_DSYNC> "
2953 "and B<O_SYNC> flags. Attempts to change the state of these flags are "
2954 "silently ignored."
2955 msgstr ""
2956
2957 #. type: SS
2958 #: debian-trixie fedora-44 fedora-rawhide
2959 #, no-wrap
2960 msgid "F_GETOWN"
2961 msgstr "F_GETOWN"
2962
2963 #. glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
2964 #. mtk, Dec 04: some limited testing on alpha and ia64 seems to
2965 #. indicate that ANY negative PGID value will cause F_GETOWN
2966 #. to misinterpret the return as an error. Some other architectures
2967 #. seem to have the same range check as i386.
2968 #. type: Plain text
2969 #: debian-trixie fedora-44 fedora-rawhide
2970 msgid ""
2971 "A limitation of the Linux system call conventions on some architectures "
2972 "(notably i386) means that if a (negative) process group ID to be returned "
2973 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
2974 "wrongly interpreted by glibc as an error in the system call; that is, the "
2975 "return value of B<fcntl>() will be -1, and I<errno> will contain the "
2976 "(positive) process group ID. The Linux-specific B<F_GETOWN_EX> operation "
2977 "avoids this problem. Since glibc 2.11, glibc makes the kernel B<F_GETOWN> "
2978 "problem invisible by implementing B<F_GETOWN> using B<F_GETOWN_EX>."
2979 msgstr ""
2980
2981 #. type: SS
2982 #: debian-trixie fedora-44 fedora-rawhide
2983 #, no-wrap
2984 msgid "F_SETOWN"
2985 msgstr "F_SETOWN"
2986
2987 #. type: Plain text
2988 #: debian-trixie fedora-44 fedora-rawhide
2989 msgid ""
2990 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
2991 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
2992 "a process (group) other than the caller. In this case, B<fcntl>() can "
2993 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
2994 "is one that the caller has permission to send signals to. Despite this "
2995 "error return, the file descriptor owner is set, and signals will be sent to "
2996 "the owner."
2997 msgstr ""
2998
2999 #. type: SS
3000 #: debian-trixie fedora-44 fedora-rawhide
3001 #, no-wrap
3002 msgid "Deadlock detection"
3003 msgstr ""
3004
3005 #. type: Plain text
3006 #: debian-trixie fedora-44 fedora-rawhide
3007 msgid ""
3008 "The deadlock-detection algorithm employed by the kernel when dealing with "
3009 "B<F_SETLKW> requests can yield both false negatives (failures to detect "
3010 "deadlocks, leaving a set of deadlocked processes blocked indefinitely) and "
3011 "false positives (B<EDEADLK> errors when there is no deadlock). For example, "
3012 "the kernel limits the lock depth of its dependency search to 10 steps, "
3013 "meaning that circular deadlock chains that exceed that size will not be "
3014 "detected. In addition, the kernel may falsely indicate a deadlock when two "
3015 "or more processes created using the B<clone>(2) B<CLONE_FILES> flag place "
3016 "locks that appear (to the kernel) to conflict."
3017 msgstr ""
3018
3019 #
3020 #. http://marc.info/?l=linux-kernel&m=119013491707153&w=2
3021 #. Reconfirmed by Jeff Layton
3022 #. From: Jeff Layton <jlayton <at> redhat.com>
3023 #. Subject: Re: Status of fcntl() mandatory locking
3024 #. Newsgroups: gmane.linux.file-systems
3025 #. Date: 2014-04-28 10:07:57 GMT
3026 #. http://thread.gmane.org/gmane.linux.file-systems/84481/focus=84518
3027 #. type: Plain text
3028 #: debian-trixie fedora-44 fedora-rawhide
3029 msgid ""
3030 "The Linux implementation of mandatory locking is subject to race conditions "
3031 "which render it unreliable: a B<write>(2) call that overlaps with a lock "
3032 "may modify data after the mandatory lock is acquired; a B<read>(2) call "
3033 "that overlaps with a lock may detect changes to data that were made only "
3034 "after a write lock was acquired. Similar races exist between mandatory "
3035 "locks and B<mmap>(2). It is therefore inadvisable to rely on mandatory "
3036 "locking."
3037 msgstr ""
3038
3039 #. type: Plain text
3040 #: debian-trixie fedora-44 fedora-rawhide
3041 msgid ""
3042 "I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the Linux "
3043 "kernel source directory I<Documentation/filesystems/> (on older kernels, "
3044 "these files are directly under the I<Documentation/> directory, and "
3045 "I<mandatory-locking.txt> is called I<mandatory.txt>)"
3046 msgstr ""
3047
3048 #. type: TH
3049 #: fedora-44 fedora-rawhide
3050 #, no-wrap
3051 msgid "2024-07-23"
3052 msgstr "23 julho 2024"
3053
3054 #. type: TH
3055 #: fedora-44 fedora-rawhide
3056 #, no-wrap
3057 msgid "Linux man-pages 6.13"
3058 msgstr "Linux man-pages 6.13"
3059
3060 #. type: TH
3061 #: mageia-cauldron
3062 #, no-wrap
3063 msgid "Linux man-pages 6.17"
3064 msgstr "Linux man-pages 6.17"
3065
3066 #. type: TH
3067 #: opensuse-leap-16-1 opensuse-tumbleweed
3068 #, no-wrap
3069 msgid "Linux man-pages (unreleased)"
3070 msgstr "Linux man-pages (não lançado)"