Debian Codegraph @

po/es/man2/fcntl.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Miguel Angel Sepulveda <[email protected]>, 1995-1996.
5 # Miguel Pérez Ibars <[email protected]>, 2004.
6 # Juan Piernas <[email protected]>, 1998-2000, 2005.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
11 "PO-Revision-Date: 2005-05-06 19:53+0200\n"
12 "Last-Translator: Juan Piernas <[email protected]>\n"
13 "Language-Team: Spanish <[email protected]>\n"
14 "Language: es\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 ""
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 Febrero 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 "Páginas de Manual de Linux 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 "NOMBRE"
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 el descriptor de fichero"
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 Estándar C (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 "SINOPSIS"
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 "DESCRIPCIÓN"
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> realiza una de las diversas y variadas operaciones que se pueden "
109 "hacer sobre I<fd>. La operación en cuestión se determina mediante 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 el descriptor de fichero"
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 #, no-wrap
150 msgid "File descriptor flags"
151 msgstr "Banderas de un descriptor de fichero"
152
153 #. type: TP
154 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
155 #: opensuse-tumbleweed
156 #, fuzzy, no-wrap
157 #| msgid "B<F_GETFD>"
158 msgid "B<F_GETFD>(2const)"
159 msgstr "B<F_GETFD>"
160
161 #. type: TQ
162 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
163 #: opensuse-tumbleweed
164 #, fuzzy, no-wrap
165 #| msgid "B<F_SETFD> (I<int>)"
166 msgid "B<F_SETFD>(2const)"
167 msgstr "B<F_SETFD> (I<int>)"
168
169 #. type: SS
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "File status flags"
174 msgstr "Banderas de situación de un fichero"
175
176 #. type: TP
177 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
178 #: opensuse-tumbleweed
179 #, fuzzy, no-wrap
180 #| msgid "B<F_GETFL>"
181 msgid "B<F_GETFL>(2const)"
182 msgstr "B<F_GETFL>"
183
184 #. type: TQ
185 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
186 #: opensuse-tumbleweed
187 #, fuzzy, no-wrap
188 #| msgid "B<F_SETFL> (I<int>)"
189 msgid "B<F_SETFL>(2const)"
190 msgstr "B<F_SETFL> (I<int>)"
191
192 #. type: SS
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy, no-wrap
196 #| msgid "Advisory locking"
197 msgid "Advisory record locking"
198 msgstr "Bloqueos (candados) consultivos"
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 "Manejo de señales"
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 "Arrendamientos"
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 #, no-wrap
337 msgid "Delegations"
338 msgstr ""
339
340 #. type: TP
341 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
342 #: opensuse-tumbleweed
343 #, fuzzy, no-wrap
344 #| msgid "B<F_SETFD> (I<int>)"
345 msgid "B<F_SETDELEG>(2const)"
346 msgstr "B<F_SETFD> (I<int>)"
347
348 #. type: TQ
349 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
350 #: opensuse-tumbleweed
351 #, fuzzy, no-wrap
352 #| msgid "B<F_GETFD>"
353 msgid "B<F_GETDELEG>(2const)"
354 msgstr "B<F_GETFD>"
355
356 #. type: SS
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "File and directory change notification (dnotify)"
361 msgstr "Notificación de cambios en ficheros y directorios (dnotify)"
362
363 #. type: TP
364 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
365 #: opensuse-tumbleweed
366 #, fuzzy, no-wrap
367 #| msgid "B<F_NOTIFY> (I<int>)"
368 msgid "B<F_NOTIFY>(2const)"
369 msgstr "B<F_NOTIFY> (I<int>)"
370
371 #. type: SS
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "Changing the capacity of a pipe"
376 msgstr ""
377
378 #. type: TP
379 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
380 #: opensuse-tumbleweed
381 #, fuzzy, no-wrap
382 #| msgid "B<EPIPE>"
383 msgid "B<F_SETPIPE_SZ>(2const)"
384 msgstr "B<EPIPE>"
385
386 #. type: TQ
387 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
388 #: opensuse-tumbleweed
389 #, fuzzy, no-wrap
390 #| msgid "B<F_GETLEASE>"
391 msgid "B<F_GETPIPE_SZ>(2const)"
392 msgstr "B<F_GETLEASE>"
393
394 #. type: SS
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "File Sealing"
399 msgstr ""
400
401 #. type: TP
402 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
403 #: opensuse-tumbleweed
404 #, fuzzy, no-wrap
405 #| msgid "B<F_GET_SEALS>"
406 msgid "B<F_ADD_SEALS>(2const)"
407 msgstr "B<F_GET_SEALS>"
408
409 #. type: TQ
410 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
411 #: opensuse-tumbleweed
412 #, fuzzy, no-wrap
413 #| msgid "B<F_GET_SEALS>"
414 msgid "B<F_GET_SEALS>(2const)"
415 msgstr "B<F_GET_SEALS>"
416
417 #. type: SS
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, fuzzy, no-wrap
421 #| msgid "A file was renamed within this"
422 msgid "File read/write hints"
423 msgstr "Se ha cambiado el nombre de un fichero de este"
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 DEVUELTO"
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 una llamada con éxito, el valor devuelto depende de la operación:"
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 "En caso de error el valor devuelto es -1 y se asigna a I<errno> un valor "
477 "apropiado."
478
479 #. type: SH
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "ERRORS"
484 msgstr "ERRORES"
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "B<EACCES> or B<EAGAIN>"
491 msgstr "B<EACCES> o B<EAGAIN>"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "Operation is prohibited by locks held by other processes."
497 msgstr ""
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 "Se ha prohibido la operación porque el fichero ha sido proyectado "
514 "(``mapped'') en memoria por otro proceso."
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 #, fuzzy
527 #| msgid "fcntl - manipulate file descriptor"
528 msgid "I<fd> is not an open file descriptor"
529 msgstr "fcntl - manipula el descriptor de fichero"
530
531 #. type: TP
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "B<EINVAL>"
536 msgstr "B<EINVAL>"
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid "The value specified in I<op> is not recognized by this kernel."
542 msgstr ""
543
544 #. type: SH
545 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
546 #: opensuse-tumbleweed
547 #, no-wrap
548 msgid "VERSIONS"
549 msgstr "VERSIONES"
550
551 #. type: Plain text
552 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
553 #: opensuse-tumbleweed
554 msgid ""
555 "POSIX.1-2024 specifies B<FD_CLOFORK> and B<F_DUPFD_CLOFORK>, but Linux "
556 "doesn't support them."
557 msgstr ""
558
559 #. type: SH
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "STANDARDS"
564 msgstr "ESTÁNDARES"
565
566 #. .P
567 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
568 #. type: Plain text
569 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
570 #: opensuse-tumbleweed
571 msgid "POSIX.1-2024."
572 msgstr "POSIX.1-2024."
573
574 #. type: SH
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, no-wrap
578 msgid "HISTORY"
579 msgstr "HISTORIAL"
580
581 #. type: Plain text
582 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
583 #: opensuse-tumbleweed
584 msgid "4.3BSD, SVr4, POSIX.1-1988."
585 msgstr "4.3BSD, SVr4, POSIX.1-1988."
586
587 #. type: SH
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "SEE ALSO"
592 msgstr "VÉASE TAMBIÉN"
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
599 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
600 msgstr ""
601 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
602 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
603
604 #. type: TH
605 #: debian-trixie
606 #, no-wrap
607 msgid "2024-05-02"
608 msgstr "2 Mayo 2024"
609
610 #. type: TH
611 #: debian-trixie
612 #, no-wrap
613 msgid "Linux man-pages 6.9.1"
614 msgstr "Páginas de Manual de Linux 6.9.1"
615
616 #. type: Plain text
617 #: debian-trixie
618 msgid "Standard C library (I<libc>, I<-lc>)"
619 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
620
621 #. type: Plain text
622 #: debian-trixie fedora-44 fedora-rawhide
623 #, fuzzy, no-wrap
624 #| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
625 msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ... /* >I<arg>B< */ );>\n"
626 msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
627
628 #. type: Plain text
629 #: debian-trixie fedora-44 fedora-rawhide
630 msgid ""
631 "B<fcntl>() can take an optional third argument. Whether or not this "
632 "argument is required is determined by I<op>. The required argument type is "
633 "indicated in parentheses after each I<op> name (in most cases, the required "
634 "type is I<int>, and we identify the argument using the name I<arg>), or "
635 "I<void> is specified if the argument is not required."
636 msgstr ""
637
638 #. type: TP
639 #: debian-trixie fedora-44 fedora-rawhide
640 #, no-wrap
641 msgid "B<F_DUPFD> (I<int>)"
642 msgstr "B<F_DUPFD> (I<int>)"
643
644 #. type: Plain text
645 #: debian-trixie fedora-44 fedora-rawhide
646 #, fuzzy
647 #| msgid ""
648 #| "Find the lowest numbered available file descriptor greater than or equal "
649 #| "to I<arg> and make it be a copy of I<fd>. This is different form "
650 #| "B<dup2>(2) which uses exactly the descriptor specified."
651 msgid ""
652 "Duplicate the file descriptor I<fd> using the lowest-numbered available file "
653 "descriptor greater than or equal to I<arg>. This is different from "
654 "B<dup2>(2), which uses exactly the file descriptor specified."
655 msgstr ""
656 "Busca el descriptor de fichero disponible de menor número, mayor o igual que "
657 "I<arg>, y lo convierte en una copia de I<fd>. Esto es diferente en "
658 "B<dup2>(2) que usa exactamente el descriptor especificado."
659
660 #. type: Plain text
661 #: debian-trixie fedora-44 fedora-rawhide
662 #, fuzzy
663 #| msgid "On success, the new descriptor is returned."
664 msgid "On success, the new file descriptor is returned."
665 msgstr "En caso de éxito, se devuelve el nuevo descriptor."
666
667 #. type: Plain text
668 #: debian-trixie fedora-44 fedora-rawhide
669 msgid "See B<dup>(2) for further details."
670 msgstr ""
671
672 #. type: TP
673 #: debian-trixie fedora-44 fedora-rawhide
674 #, no-wrap
675 msgid "B<F_DUPFD_CLOEXEC> (I<int>; since Linux 2.6.24)"
676 msgstr "B<F_DUPFD_CLOEXEC> (I<int>; desde Linux 2.6.24)"
677
678 #. type: Plain text
679 #: debian-trixie fedora-44 fedora-rawhide
680 msgid ""
681 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
682 "duplicate file descriptor. Specifying this flag permits a program to avoid "
683 "an additional B<fcntl>() B<F_SETFD> operation to set the B<FD_CLOEXEC> "
684 "flag. For an explanation of why this flag is useful, see the description of "
685 "B<O_CLOEXEC> in B<open>(2)."
686 msgstr ""
687
688 #. type: Plain text
689 #: debian-trixie fedora-44 fedora-rawhide
690 msgid ""
691 "The following operations manipulate the flags associated with a file "
692 "descriptor. Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
693 "close-on-exec flag. If the B<FD_CLOEXEC> bit is set, the file descriptor "
694 "will automatically be closed during a successful B<execve>(2). (If the "
695 "B<execve>(2) fails, the file descriptor is left open.) If the "
696 "B<FD_CLOEXEC> bit is not set, the file descriptor will remain open across an "
697 "B<execve>(2)."
698 msgstr ""
699
700 #. type: TP
701 #: debian-trixie fedora-44 fedora-rawhide
702 #, no-wrap
703 msgid "B<F_GETFD> (I<void>)"
704 msgstr "B<F_GETFD> (I<void>)"
705
706 #. type: Plain text
707 #: debian-trixie fedora-44 fedora-rawhide
708 msgid ""
709 "Return (as the function result) the file descriptor flags; I<arg> is ignored."
710 msgstr ""
711
712 #. type: TP
713 #: debian-trixie fedora-44 fedora-rawhide
714 #, no-wrap
715 msgid "B<F_SETFD> (I<int>)"
716 msgstr "B<F_SETFD> (I<int>)"
717
718 #. type: Plain text
719 #: debian-trixie fedora-44 fedora-rawhide
720 #, fuzzy
721 #| msgid ""
722 #| "Set the close-on-exec flag to the value specified by the B<FD_CLOEXEC> "
723 #| "bit of I<arg>."
724 msgid "Set the file descriptor flags to the value specified by I<arg>."
725 msgstr ""
726 "Establece la bandera I<close-on-exec> al valor especificado por el bit "
727 "B<FD_CLOEXEC> de I<arg>."
728
729 #. type: Plain text
730 #: debian-trixie fedora-44 fedora-rawhide
731 msgid ""
732 "In multithreaded programs, using B<fcntl>() B<F_SETFD> to set the close-on-"
733 "exec flag at the same time as another thread performs a B<fork>(2) plus "
734 "B<execve>(2) is vulnerable to a race condition that may unintentionally "
735 "leak the file descriptor to the program executed in the child process. See "
736 "the discussion of the B<O_CLOEXEC> flag in B<open>(2) for details and a "
737 "remedy to the problem."
738 msgstr ""
739
740 #. or
741 #. .BR creat (2),
742 #. type: Plain text
743 #: debian-trixie fedora-44 fedora-rawhide
744 #, fuzzy
745 #| msgid ""
746 #| "A file descriptor has certain associated flags, initialized by "
747 #| "B<open>(2) and possibly modified by B<fcntl>(2). The flags are shared "
748 #| "between copies (made with B<dup>(2), B<fork>(2), etc.) of the same file "
749 #| "descriptor."
750 msgid ""
751 "Each open file description has certain associated status flags, initialized "
752 "by B<open>(2) and possibly modified by B<fcntl>(). Duplicated file "
753 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
754 "to the same open file description, and thus share the same file status flags."
755 msgstr ""
756 "Un descriptor de fichero posee ciertas banderas asociadas, inicializadas por "
757 "B<open>(2) y posiblemente modificadas por B<fcntl>(2). Las banderas se "
758 "comparten entre copias (hechas con B<dup>(2), B<fork>(2), etc.) del mismo "
759 "descriptor de fichero."
760
761 #. type: Plain text
762 #: debian-trixie fedora-44 fedora-rawhide
763 #, fuzzy
764 #| msgid "The flags and their semantics are described in B<open>(2)."
765 msgid "The file status flags and their semantics are described in B<open>(2)."
766 msgstr "Las banderas y su semántica están descritas en B<open>(2)."
767
768 #. type: TP
769 #: debian-trixie fedora-44 fedora-rawhide
770 #, no-wrap
771 msgid "B<F_GETFL> (I<void>)"
772 msgstr "B<F_GETFL> (I<void>)"
773
774 #. type: Plain text
775 #: debian-trixie fedora-44 fedora-rawhide
776 msgid ""
777 "Return (as the function result) the file access mode and the file status "
778 "flags; I<arg> is ignored."
779 msgstr ""
780
781 #. type: TP
782 #: debian-trixie fedora-44 fedora-rawhide
783 #, no-wrap
784 msgid "B<F_SETFL> (I<int>)"
785 msgstr "B<F_SETFL> (I<int>)"
786
787 #. type: Plain text
788 #: debian-trixie fedora-44 fedora-rawhide
789 msgid ""
790 "Set the file status flags to the value specified by I<arg>. File access "
791 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) and file creation flags (i.e., "
792 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) in I<arg> are ignored. On "
793 "Linux, this operation can change only the B<O_APPEND>, B<O_ASYNC>, "
794 "B<O_DIRECT>, B<O_NOATIME>, and B<O_NONBLOCK> flags. It is not possible to "
795 "change the B<O_DSYNC> and B<O_SYNC> flags; see BUGS, below."
796 msgstr ""
797
798 #. type: Plain text
799 #: debian-trixie fedora-44 fedora-rawhide
800 msgid ""
801 "Linux implements traditional (\"process-associated\") UNIX record locks, as "
802 "standardized by POSIX. For a Linux-specific alternative with better "
803 "semantics, see the discussion of open file description locks below."
804 msgstr ""
805
806 #. type: Plain text
807 #: debian-trixie fedora-44 fedora-rawhide
808 #, fuzzy
809 #| msgid ""
810 #| "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to acquire, release, and "
811 #| "test for the existence of record locks (also known as file-segment or "
812 #| "file-region locks). The third argument I<lock> is a pointer to a "
813 #| "structure that has at least the following fields (in unspecified order)."
814 msgid ""
815 "B<F_SETLK>, B<F_SETLKW>, and B<F_GETLK> are used to acquire, release, and "
816 "test for the existence of record locks (also known as byte-range, file-"
817 "segment, or file-region locks). The third argument, I<lock>, is a pointer "
818 "to a structure that has at least the following fields (in unspecified order)."
819 msgstr ""
820 "B<F_GETLK>, B<F_SETLK> y B<F_SETLKW> se usan para adquirir, liberar y "
821 "comprobar la existencia de bloqueos de registros (también conocidos como "
822 "bloqueos de segmentos de ficheros o regiones de ficheros). El tercer "
823 "argumento I<lock> es un puntero a una estructura que tiene, al menos, los "
824 "siguientes campos (en un orden indeterminado)."
825
826 #. type: Plain text
827 #: debian-trixie fedora-44 fedora-rawhide
828 #, fuzzy, no-wrap
829 #| msgid ""
830 #| "struct flock {\n"
831 #| " ...\n"
832 #| " short l_type; /* Type of lock: F_RDLCK,\n"
833 #| " F_WRLCK, F_UNLCK */\n"
834 #| " short l_whence; /* How to interpret l_start:\n"
835 #| " SEEK_SET, SEEK_CUR, SEEK_END */\n"
836 #| " off_t l_start; /* Starting offset for lock */\n"
837 #| " off_t l_len; /* Number of bytes to lock */\n"
838 #| " pid_t l_pid; /* PID of process blocking our lock\n"
839 #| " (F_GETLK only) */\n"
840 #| " ...\n"
841 #| "};\n"
842 msgid ""
843 "struct flock {\n"
844 " ...\n"
845 " short l_type; /* Type of lock: F_RDLCK,\n"
846 " F_WRLCK, F_UNLCK */\n"
847 " short l_whence; /* How to interpret l_start:\n"
848 " SEEK_SET, SEEK_CUR, SEEK_END */\n"
849 " off_t l_start; /* Starting offset for lock */\n"
850 " off_t l_len; /* Number of bytes to lock */\n"
851 " pid_t l_pid; /* PID of process blocking our lock\n"
852 " (set by F_GETLK and F_OFD_GETLK) */\n"
853 " ...\n"
854 "};\n"
855 msgstr ""
856 "struct flock {\n"
857 " ...\n"
858 " short l_type; /* Tipo de bloqueo: F_RDLCK,\n"
859 " F_WRLCK, F_UNLCK */\n"
860 " short l_whence; /* Cómo interpretar l_start:\n"
861 " SEEK_SET, SEEK_CUR, SEEK_END */\n"
862 " off_t l_start; /* Dirección de inicio del bloqueo */\n"
863 " off_t l_len; /* Número de bytes a bloquear */\n"
864 " pid_t l_pid; /* PID del proceso que bloquea nuestro candado\n"
865 " (sólo F_GETLK) */\n"
866 " ...\n"
867 "};\n"
868
869 #. type: Plain text
870 #: debian-trixie fedora-44 fedora-rawhide
871 msgid ""
872 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
873 "the range of bytes we wish to lock. Bytes past the end of the file may be "
874 "locked, but not bytes before the start of the file."
875 msgstr ""
876
877 #. type: Plain text
878 #: debian-trixie fedora-44 fedora-rawhide
879 msgid ""
880 "I<l_start> is the starting offset for the lock, and is interpreted relative "
881 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
882 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
883 "(if I<l_whence> is B<SEEK_END>). In the final two cases, I<l_start> can be "
884 "a negative number provided the offset does not lie before the start of the "
885 "file."
886 msgstr ""
887
888 #. type: Plain text
889 #: debian-trixie fedora-44 fedora-rawhide
890 msgid ""
891 "I<l_len> specifies the number of bytes to be locked. If I<l_len> is "
892 "positive, then the range to be locked covers bytes I<l_start> up to and "
893 "including I<l_start>+I<l_len>-1. Specifying 0 for I<l_len> has the special "
894 "meaning: lock all bytes starting at the location specified by I<l_whence> "
895 "and I<l_start> through to the end of file, no matter how large the file "
896 "grows."
897 msgstr ""
898
899 #. type: Plain text
900 #: debian-trixie fedora-44 fedora-rawhide
901 #, fuzzy
902 #| msgid ""
903 #| "POSIX 1003.1-2001 allows I<l_len> to be negative. (And if it is, the "
904 #| "interval described by the lock covers bytes I<l_start>+I<l_len> up to and "
905 #| "including I<l_start>-1.) However, for current kernels the Linux system "
906 #| "call returns EINVAL in this situation."
907 msgid ""
908 "POSIX.1-2001 allows (but does not require) an implementation to support a "
909 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
910 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1. "
911 "This is supported since Linux 2.4.21 and Linux 2.5.49."
912 msgstr ""
913 "POSIX 1003.1-2001 permite que I<l_len> sea negativo. (Y si lo es, el "
914 "intervalo descrito por el bloqueo cubre los bytes desde I<l_start>+I<l_len> "
915 "hasta I<l_start>-1 inclusive.) Sin embargo, para los núcleos actuales, la "
916 "llamada al sistema de Linux devuelve EINVAL en esta situación."
917
918 #. type: Plain text
919 #: debian-trixie fedora-44 fedora-rawhide
920 msgid ""
921 "The I<l_type> field can be used to place a read (B<F_RDLCK>) or a write "
922 "(B<F_WRLCK>) lock on a file. Any number of processes may hold a read lock "
923 "(shared lock) on a file region, but only one process may hold a write lock "
924 "(exclusive lock). An exclusive lock excludes all other locks, both shared "
925 "and exclusive. A single process can hold only one type of lock on a file "
926 "region; if a new lock is applied to an already-locked region, then the "
927 "existing lock is converted to the new lock type. (Such conversions may "
928 "involve splitting, shrinking, or coalescing with an existing lock if the "
929 "byte range specified by the new lock does not precisely coincide with the "
930 "range of the existing lock.)"
931 msgstr ""
932 "El campo I<l_type> se puede usar para colocar un bloqueo de lectura "
933 "(B<F_RDLCK>) o de escritura (B<F_WRLCK>) sobre un fichero. Varios "
934 "procesos pueden tener un bloqueo de lectura (bloqueo compartido) sobre una "
935 "región de fichero, pero sólo un proceso puede tener un bloqueo de escritura "
936 "(bloqueo exclusivo). Un bloqueo exclusivo excluye a todos los demás "
937 "bloqueos, tanto compartidos como exclusivos. Un único proceso sólo puede "
938 "tener un tipo de bloqueo sobre una región de fichero; si se aplica un nuevo "
939 "bloqueo a una región ya bloqueada, el bloqueo existente se convierte al "
940 "nuevo tipo de bloqueo. (Tales conversiones pueden suponer dividir, reducir "
941 "o fusionar un bloqueo existente si el rango de bytes especificado por el "
942 "nuevo bloqueo no coincide exactamente con el rango del bloqueo existente)."
943
944 #. type: TP
945 #: debian-trixie fedora-44 fedora-rawhide
946 #, no-wrap
947 msgid "B<F_SETLK> (I<struct flock *>)"
948 msgstr "B<F_SETLK> (I<struct flock *>)"
949
950 #. type: Plain text
951 #: debian-trixie fedora-44 fedora-rawhide
952 #, fuzzy
953 #| msgid ""
954 #| "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a "
955 #| "lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the "
956 #| "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a "
957 #| "conflicting lock is held by another process, this call returns -1 and "
958 #| "sets I<errno> to B<EACCES> or B<EAGAIN>."
959 msgid ""
960 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a "
961 "lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the "
962 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a conflicting "
963 "lock is held by another process, this call returns -1 and sets I<errno> to "
964 "B<EACCES> or B<EAGAIN>. (The error returned in this case differs across "
965 "implementations, so POSIX requires a portable application to check for both "
966 "errors.)"
967 msgstr ""
968 "Adquiere un bloqueo (cuando I<l_type> es B<F_RDLCK> o B<F_WRLCK>) o libera "
969 "un bloqueo (cunado I<l_type> es B<F_UNLCK>) sobre los bytes especificados "
970 "por los campos I<l_whence>, I<l_start> y I<l_len> de I<lock>. Si otro "
971 "proceso mantiene ya un bloqueo que entra en conflicto con el nuevo, la "
972 "llamada devuelve -1 y asigna a I<errno> el código de error B<EACCES> o "
973 "B<EAGAIN>."
974
975 #. type: TP
976 #: debian-trixie fedora-44 fedora-rawhide
977 #, no-wrap
978 msgid "B<F_SETLKW> (I<struct flock *>)"
979 msgstr "B<F_SETLKW> (I<struct flock *>)"
980
981 #. type: Plain text
982 #: debian-trixie fedora-44 fedora-rawhide
983 msgid ""
984 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
985 "for that lock to be released. If a signal is caught while waiting, then the "
986 "call is interrupted and (after the signal handler has returned) returns "
987 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
988 "B<signal>(7))."
989 msgstr ""
990 "Como B<F_SETLK>, pero si ya hay un bloqueo sobre el fichero que entra en "
991 "conflicto con el nuevo, entonces espera a que el bloqueo se libere. Si llega "
992 "y se captura una señal mientras se está esperando, se interrumpe la llamada "
993 "y (tras terminar el manejador de señal) regresa inmediatamente (devolviendo "
994 "-1 y asignado a I<errno> el valor B<EINTR>; vea B<signal>(7))."
995
996 #. type: TP
997 #: debian-trixie fedora-44 fedora-rawhide
998 #, no-wrap
999 msgid "B<F_GETLK> (I<struct flock *>)"
1000 msgstr "B<F_GETLK> (I<struct flock *>)"
1001
1002 #. type: Plain text
1003 #: debian-trixie fedora-44 fedora-rawhide
1004 msgid ""
1005 "On input to this call, I<lock> describes a lock we would like to place on "
1006 "the file. If the lock could be placed, B<fcntl>() does not actually place "
1007 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
1008 "other fields of the structure unchanged."
1009 msgstr ""
1010 "Al entrar a esta llamada, I<lock> describe un bloqueo que nos gustaría "
1011 "colocar en un fichero. Si el bloqueo se pudiera colocar, B<fcntl>() "
1012 "realmente no lo colocará, pero devolverá B<F_UNLCK> en el campo I<l_type> de "
1013 "I<lock> y dejará los otros campos de la estructura sin cambiar."
1014
1015 #. type: Plain text
1016 #: debian-trixie fedora-44 fedora-rawhide
1017 #, fuzzy
1018 msgid ""
1019 "If one or more incompatible locks would prevent this lock being placed, then "
1020 "B<fcntl>() returns details about one of those locks in the I<l_type>, "
1021 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If the conflicting "
1022 "lock is a traditional (process-associated) record lock, then the I<l_pid> "
1023 "field is set to the PID of the process holding that lock. If the "
1024 "conflicting lock is an open file description lock, then I<l_pid> is set to "
1025 "-1. Note that the returned information may already be out of date by the "
1026 "time the caller inspects it."
1027 msgstr ""
1028 " Si uno o más bloqueos incompatibles impidieran que este bloqueo se "
1029 "colocara, entonces B<fcntl>() devolverá detalles sobre uno de estos "
1030 "bloqueos en los campos I<l_type>, I<l_whence>, I<l_start> y I<l_len> de "
1031 "I<lock> y asignará a I<l_pid> el PID del proceso que posee el bloqueo."
1032
1033 #. type: Plain text
1034 #: debian-trixie fedora-44 fedora-rawhide
1035 msgid ""
1036 "In order to place a read lock, I<fd> must be open for reading. In order to "
1037 "place a write lock, I<fd> must be open for writing. To place both types of "
1038 "lock, open a file read-write."
1039 msgstr ""
1040 "Para colocar un bloqueo de lectura, se debe abrir I<fd> para lectura. Para "
1041 "colocar un bloqueo de escritura, se debe abrir I<fd> para escritura. Para "
1042 "colocar ambos tipos de bloqueo, abra un fichero para lectura y escritura."
1043
1044 #. type: Plain text
1045 #: debian-trixie fedora-44 fedora-rawhide
1046 msgid ""
1047 "When placing locks with B<F_SETLKW>, the kernel detects I<deadlocks>, "
1048 "whereby two or more processes have their lock requests mutually blocked by "
1049 "locks held by the other processes. For example, suppose process A holds a "
1050 "write lock on byte 100 of a file, and process B holds a write lock on byte "
1051 "200. If each process then attempts to lock the byte already locked by the "
1052 "other process using B<F_SETLKW>, then, without deadlock detection, both "
1053 "processes would remain blocked indefinitely. When the kernel detects such "
1054 "deadlocks, it causes one of the blocking lock requests to immediately fail "
1055 "with the error B<EDEADLK>; an application that encounters such an error "
1056 "should release some of its locks to allow other applications to proceed "
1057 "before attempting regain the locks that it requires. Circular deadlocks "
1058 "involving more than two processes are also detected. Note, however, that "
1059 "there are limitations to the kernel's deadlock-detection algorithm; see BUGS."
1060 msgstr ""
1061
1062 #. type: Plain text
1063 #: debian-trixie fedora-44 fedora-rawhide
1064 msgid ""
1065 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
1066 "automatically released when the process terminates."
1067 msgstr ""
1068
1069 #. type: Plain text
1070 #: debian-trixie fedora-44 fedora-rawhide
1071 msgid ""
1072 "Record locks are not inherited by a child created via B<fork>(2), but are "
1073 "preserved across an B<execve>(2)."
1074 msgstr ""
1075 "Los bloqueos de registros no los hereda un hijo creado mediante B<fork>(2), "
1076 "pero se conservan a través de B<execve>(2)."
1077
1078 #. type: Plain text
1079 #: debian-trixie fedora-44 fedora-rawhide
1080 msgid ""
1081 "Because of the buffering performed by the B<stdio>(3) library, the use of "
1082 "record locking with routines in that package should be avoided; use "
1083 "B<read>(2) and B<write>(2) instead."
1084 msgstr ""
1085 "Debido al almacenamiento temporal que realiza B<stdio>(3), se debería evitar "
1086 "el bloqueo de registros con rutinas de esa biblioteca; en su lugar, use "
1087 "B<read>(2) y B<write>(2)."
1088
1089 #. type: Plain text
1090 #: debian-trixie fedora-44 fedora-rawhide
1091 msgid ""
1092 "The record locks described above are associated with the process (unlike the "
1093 "open file description locks described below). This has some unfortunate "
1094 "consequences:"
1095 msgstr ""
1096
1097 #. type: IP
1098 #: debian-trixie fedora-44 fedora-rawhide
1099 #, no-wrap
1100 msgid "\\[bu]"
1101 msgstr "\\[bu]"
1102
1103 #. (Additional file descriptors referring to the same file
1104 #. may have been obtained by calls to
1105 #. .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
1106 #. type: Plain text
1107 #: debian-trixie fedora-44 fedora-rawhide
1108 #, fuzzy
1109 #| msgid ""
1110 #| "As well as being removed by an explicit B<F_UNLCK>, record locks are "
1111 #| "automatically released when the process terminates or if it closes I<any> "
1112 #| "file descriptor referring to a file on which locks are held. This is "
1113 #| "bad: it means that a process can lose the locks on a file like I</etc/"
1114 #| "passwd> or I</etc/mtab> when for some reason a library function decides "
1115 #| "to open, read and close it."
1116 msgid ""
1117 "If a process closes I<any> file descriptor referring to a file, then all of "
1118 "the process's locks on that file are released, regardless of the file "
1119 "descriptor(s) on which the locks were obtained. This is bad: it means that "
1120 "a process can lose its locks on a file such as I</etc/passwd> or I</etc/"
1121 "mtab> when for some reason a library function decides to open, read, and "
1122 "close the same file."
1123 msgstr ""
1124 "Además de ser eliminados por un B<F_UNLCK> explícito, los bloqueos de "
1125 "registros se liberan automáticamente cuando un proceso termina o cierra "
1126 "I<cualquier> descriptor de fichero que haga referencia a un fichero sobre el "
1127 "que se mantienen los bloqueos. Esto está mal: significa que un proceso "
1128 "puede perder los bloqueos sobre un fichero como I</etc/passwd> o I</etc/"
1129 "mtab> cuando, por alguna razón, una función de biblioteca decida abrir, leer "
1130 "y cerrar el fichero."
1131
1132 #. type: Plain text
1133 #: debian-trixie fedora-44 fedora-rawhide
1134 msgid ""
1135 "The threads in a process share locks. In other words, a multithreaded "
1136 "program can't use record locking to ensure that threads don't simultaneously "
1137 "access the same region of a file."
1138 msgstr ""
1139
1140 #. type: Plain text
1141 #: debian-trixie fedora-44 fedora-rawhide
1142 msgid "Open file description locks solve both of these problems."
1143 msgstr ""
1144
1145 #. FIXME . Review progress into POSIX
1146 #. http://austingroupbugs.net/view.php?id=768
1147 #. type: Plain text
1148 #: debian-trixie fedora-44 fedora-rawhide
1149 msgid ""
1150 "Open file description locks are advisory byte-range locks whose operation is "
1151 "in most respects identical to the traditional record locks described above. "
1152 "This lock type is Linux-specific, and available since Linux 3.15. (There is "
1153 "a proposal with the Austin Group to include this lock type in the next "
1154 "revision of POSIX.1.) For an explanation of open file descriptions, see "
1155 "B<open>(2)."
1156 msgstr ""
1157
1158 #. type: Plain text
1159 #: debian-trixie fedora-44 fedora-rawhide
1160 msgid ""
1161 "The principal difference between the two lock types is that whereas "
1162 "traditional record locks are associated with a process, open file "
1163 "description locks are associated with the open file description on which "
1164 "they are acquired, much like locks acquired with B<flock>(2). Consequently "
1165 "(and unlike traditional advisory record locks), open file description locks "
1166 "are inherited across B<fork>(2) (and B<clone>(2) with B<CLONE_FILES>), and "
1167 "are only automatically released on the last close of the open file "
1168 "description, instead of being released on any close of the file."
1169 msgstr ""
1170
1171 #. type: Plain text
1172 #: debian-trixie fedora-44 fedora-rawhide
1173 msgid ""
1174 "Conflicting lock combinations (i.e., a read lock and a write lock or two "
1175 "write locks) where one lock is an open file description lock and the other "
1176 "is a traditional record lock conflict even when they are acquired by the "
1177 "same process on the same file descriptor."
1178 msgstr ""
1179
1180 #. type: Plain text
1181 #: debian-trixie fedora-44 fedora-rawhide
1182 msgid ""
1183 "Open file description locks placed via the same open file description (i.e., "
1184 "via the same file descriptor, or via a duplicate of the file descriptor "
1185 "created by B<fork>(2), B<dup>(2), B<fcntl>() B<F_DUPFD>, and so on) are "
1186 "always compatible: if a new lock is placed on an already locked region, then "
1187 "the existing lock is converted to the new lock type. (Such conversions may "
1188 "result in splitting, shrinking, or coalescing with an existing lock as "
1189 "discussed above.)"
1190 msgstr ""
1191
1192 #. type: Plain text
1193 #: debian-trixie fedora-44 fedora-rawhide
1194 msgid ""
1195 "On the other hand, open file description locks may conflict with each other "
1196 "when they are acquired via different open file descriptions. Thus, the "
1197 "threads in a multithreaded program can use open file description locks to "
1198 "synchronize access to a file region by having each thread perform its own "
1199 "B<open>(2) on the file and applying locks via the resulting file descriptor."
1200 msgstr ""
1201
1202 #. type: Plain text
1203 #: debian-trixie fedora-44 fedora-rawhide
1204 msgid ""
1205 "As with traditional advisory locks, the third argument to B<fcntl>(), "
1206 "I<lock>, is a pointer to an I<flock> structure. By contrast with "
1207 "traditional record locks, the I<l_pid> field of that structure must be set "
1208 "to zero when using the operations described below."
1209 msgstr ""
1210
1211 #. type: Plain text
1212 #: debian-trixie fedora-44 fedora-rawhide
1213 msgid ""
1214 "The operations for working with open file description locks are analogous to "
1215 "those used with traditional locks:"
1216 msgstr ""
1217
1218 #. type: TP
1219 #: debian-trixie fedora-44 fedora-rawhide
1220 #, no-wrap
1221 msgid "B<F_OFD_SETLK> (I<struct flock *>)"
1222 msgstr "B<F_OFD_SETLK> (I<struct flock *>)"
1223
1224 #. type: Plain text
1225 #: debian-trixie fedora-44 fedora-rawhide
1226 #, fuzzy
1227 #| msgid ""
1228 #| "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a "
1229 #| "lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the "
1230 #| "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a "
1231 #| "conflicting lock is held by another process, this call returns -1 and "
1232 #| "sets I<errno> to B<EACCES> or B<EAGAIN>."
1233 msgid ""
1234 "Acquire an open file description lock (when I<l_type> is B<F_RDLCK> or "
1235 "B<F_WRLCK>) or release an open file description lock (when I<l_type> is "
1236 "B<F_UNLCK>) on the bytes specified by the I<l_whence>, I<l_start>, and "
1237 "I<l_len> fields of I<lock>. If a conflicting lock is held by another "
1238 "process, this call returns -1 and sets I<errno> to B<EAGAIN>."
1239 msgstr ""
1240 "Adquiere un bloqueo (cuando I<l_type> es B<F_RDLCK> o B<F_WRLCK>) o libera "
1241 "un bloqueo (cunado I<l_type> es B<F_UNLCK>) sobre los bytes especificados "
1242 "por los campos I<l_whence>, I<l_start> y I<l_len> de I<lock>. Si otro "
1243 "proceso mantiene ya un bloqueo que entra en conflicto con el nuevo, la "
1244 "llamada devuelve -1 y asigna a I<errno> el código de error B<EACCES> o "
1245 "B<EAGAIN>."
1246
1247 #. type: TP
1248 #: debian-trixie fedora-44 fedora-rawhide
1249 #, no-wrap
1250 msgid "B<F_OFD_SETLKW> (I<struct flock *>)"
1251 msgstr "B<F_OFD_SETLKW> (I<struct flock *>)"
1252
1253 #. type: Plain text
1254 #: debian-trixie fedora-44 fedora-rawhide
1255 msgid ""
1256 "As for B<F_OFD_SETLK>, but if a conflicting lock is held on the file, then "
1257 "wait for that lock to be released. If a signal is caught while waiting, "
1258 "then the call is interrupted and (after the signal handler has returned) "
1259 "returns immediately (with return value -1 and I<errno> set to B<EINTR>; see "
1260 "B<signal>(7))."
1261 msgstr ""
1262 "Como B<F_OFD_SETLK>, pero si ya hay un bloqueo sobre el fichero que entra en "
1263 "conflicto con el nuevo, entonces espera a que el bloqueo se libere. Si llega "
1264 "y se captura una señal mientras se está esperando, se interrumpe la llamada "
1265 "y (tras terminar el manejador de señal) regresa inmediatamente (devolviendo "
1266 "-1 y asignado a I<errno> el valor B<EINTR>; vea B<signal>(7))."
1267
1268 #. type: TP
1269 #: debian-trixie fedora-44 fedora-rawhide
1270 #, no-wrap
1271 msgid "B<F_OFD_GETLK> (I<struct flock *>)"
1272 msgstr "B<F_OFD_GETLK> (I<struct flock *>)"
1273
1274 #. type: Plain text
1275 #: debian-trixie fedora-44 fedora-rawhide
1276 #, fuzzy
1277 #| msgid ""
1278 #| "On input to this call, I<lock> describes a lock we would like to place on "
1279 #| "the file. If the lock could be placed, B<fcntl>() does not actually "
1280 #| "place it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and "
1281 #| "leaves the other fields of the structure unchanged. If one or more "
1282 #| "incompatible locks would prevent this lock being placed, then B<fcntl>() "
1283 #| "returns details about one of these locks in the I<l_type>, I<l_whence>, "
1284 #| "I<l_start>, and I<l_len> fields of I<lock> and sets I<l_pid> to be the "
1285 #| "PID of the process holding that lock."
1286 msgid ""
1287 "On input to this call, I<lock> describes an open file description lock we "
1288 "would like to place on the file. If the lock could be placed, B<fcntl>() "
1289 "does not actually place it, but returns B<F_UNLCK> in the I<l_type> field of "
1290 "I<lock> and leaves the other fields of the structure unchanged. If one or "
1291 "more incompatible locks would prevent this lock being placed, then details "
1292 "about one of these locks are returned via I<lock>, as described above for "
1293 "B<F_GETLK>."
1294 msgstr ""
1295 "Al entrar a esta llamada, I<lock> describe un bloqueo que nos gustaría "
1296 "colocar en un fichero. Si el bloqueo se pudiera colocar, B<fcntl>() "
1297 "realmente no lo colocará, pero devolverá B<F_UNLCK> en el campo I<l_type> de "
1298 "I<lock> y dejará los otros campos de la estructura sin cambiar. Si uno o más "
1299 "bloqueos incompatibles impidieran que este bloqueo se colocara, entonces "
1300 "B<fcntl>() devolverá detalles sobre uno de estos bloqueos en los campos "
1301 "I<l_type>, I<l_whence>, I<l_start> y I<l_len> de I<lock> y asignará a "
1302 "I<l_pid> el PID del proceso que posee el bloqueo."
1303
1304 #. commit 57b65325fe34ec4c917bc4e555144b4a94d9e1f7
1305 #. type: Plain text
1306 #: debian-trixie fedora-44 fedora-rawhide
1307 msgid ""
1308 "In the current implementation, no deadlock detection is performed for open "
1309 "file description locks. (This contrasts with process-associated record "
1310 "locks, for which the kernel does perform deadlock detection.)"
1311 msgstr ""
1312
1313 #. type: SS
1314 #: debian-trixie fedora-44 fedora-rawhide
1315 #, no-wrap
1316 msgid "Mandatory locking"
1317 msgstr "Bloqueos obligatorios"
1318
1319 #. type: Plain text
1320 #: debian-trixie fedora-44 fedora-rawhide
1321 msgid ""
1322 "I<Warning>: the Linux implementation of mandatory locking is unreliable. "
1323 "See BUGS below. Because of these bugs, and the fact that the feature is "
1324 "believed to be little used, since Linux 4.5, mandatory locking has been made "
1325 "an optional feature, governed by a configuration option "
1326 "(B<CONFIG_MANDATORY_FILE_LOCKING>). This feature is no longer supported at "
1327 "all in Linux 5.15 and above."
1328 msgstr ""
1329
1330 #. type: Plain text
1331 #: debian-trixie fedora-44 fedora-rawhide
1332 msgid ""
1333 "By default, both traditional (process-associated) and open file description "
1334 "record locks are advisory. Advisory locks are not enforced and are useful "
1335 "only between cooperating processes."
1336 msgstr ""
1337
1338 #. type: Plain text
1339 #: debian-trixie fedora-44 fedora-rawhide
1340 msgid ""
1341 "Both lock types can also be mandatory. Mandatory locks are enforced for all "
1342 "processes. If a process tries to perform an incompatible access (e.g., "
1343 "B<read>(2) or B<write>(2)) on a file region that has an incompatible "
1344 "mandatory lock, then the result depends upon whether the B<O_NONBLOCK> flag "
1345 "is enabled for its open file description. If the B<O_NONBLOCK> flag is not "
1346 "enabled, then the system call is blocked until the lock is removed or "
1347 "converted to a mode that is compatible with the access. If the "
1348 "B<O_NONBLOCK> flag is enabled, then the system call fails with the error "
1349 "B<EAGAIN>."
1350 msgstr ""
1351
1352 #. type: Plain text
1353 #: debian-trixie fedora-44 fedora-rawhide
1354 #, fuzzy
1355 #| msgid ""
1356 #| "(Non-POSIX.) The above record locks may be either advisory or mandatory, "
1357 #| "and are advisory by default. To make use of mandatory locks, mandatory "
1358 #| "locking must be enabled (using the \"-o mand\" option to B<mount>(8)) "
1359 #| "for the file system containing the file to be locked and enabled on the "
1360 #| "file itself (by disabling group execute permission on the file and "
1361 #| "enabling the set-GID permission bit)."
1362 msgid ""
1363 "To make use of mandatory locks, mandatory locking must be enabled both on "
1364 "the filesystem that contains the file to be locked, and on the file itself. "
1365 "Mandatory locking is enabled on a filesystem using the \"-o mand\" option to "
1366 "B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2). Mandatory locking "
1367 "is enabled on a file by disabling group execute permission on the file and "
1368 "enabling the set-group-ID permission bit (see B<chmod>(1) and B<chmod>(2))."
1369 msgstr ""
1370 "(No POSIX.) Los bloqueos de registro anteriores pueden ser o bien "
1371 "consultivos o bien obligatorios, y son consultivos por omisión. Para usar "
1372 "bloqueos obligatorios, se debe habilitar dicho tipo de bloqueo en el sistema "
1373 "de ficheros que contiene el fichero a bloquear (usando la opción \"-o mand\" "
1374 "en B<mount>(8)) y en el propio fichero (deshabilitando el permiso de "
1375 "ejecución para el grupo y activado el bit de permiso set-GID)."
1376
1377 #. type: Plain text
1378 #: debian-trixie fedora-44 fedora-rawhide
1379 msgid ""
1380 "Mandatory locking is not specified by POSIX. Some other systems also "
1381 "support mandatory locking, although the details of how to enable it vary "
1382 "across systems."
1383 msgstr ""
1384
1385 #. type: SS
1386 #: debian-trixie fedora-44 fedora-rawhide
1387 #, no-wrap
1388 msgid "Lost locks"
1389 msgstr ""
1390
1391 #. type: Plain text
1392 #: debian-trixie fedora-44 fedora-rawhide
1393 msgid ""
1394 "When an advisory lock is obtained on a networked filesystem such as NFS it "
1395 "is possible that the lock might get lost. This may happen due to "
1396 "administrative action on the server, or due to a network partition (i.e., "
1397 "loss of network connectivity with the server) which lasts long enough for "
1398 "the server to assume that the client is no longer functioning."
1399 msgstr ""
1400
1401 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
1402 #. type: Plain text
1403 #: debian-trixie fedora-44 fedora-rawhide
1404 msgid ""
1405 "When the filesystem determines that a lock has been lost, future B<read>(2) "
1406 "or B<write>(2) requests may fail with the error B<EIO>. This error will "
1407 "persist until the lock is removed or the file descriptor is closed. Since "
1408 "Linux 3.12, this happens at least for NFSv4 (including all minor versions)."
1409 msgstr ""
1410
1411 #. type: Plain text
1412 #: debian-trixie fedora-44 fedora-rawhide
1413 msgid ""
1414 "Some versions of UNIX send a signal (B<SIGLOST>) in this circumstance. "
1415 "Linux does not define this signal, and does not provide any asynchronous "
1416 "notification of lost locks."
1417 msgstr ""
1418
1419 #. type: Plain text
1420 #: debian-trixie fedora-44 fedora-rawhide
1421 #, fuzzy
1422 #| msgid ""
1423 #| "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> and "
1424 #| "B<F_SETSIG> are used to manage I/O availability signals:"
1425 msgid ""
1426 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1427 "B<F_SETSIG> are used to manage I/O availability signals:"
1428 msgstr ""
1429 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> y "
1430 "B<F_SETSIG> se utilizan para gestionar las señales de disponibilidad de E/S:"
1431
1432 #. type: TP
1433 #: debian-trixie fedora-44 fedora-rawhide
1434 #, no-wrap
1435 msgid "B<F_GETOWN> (I<void>)"
1436 msgstr "B<F_GETOWN> (I<void>)"
1437
1438 #. type: Plain text
1439 #: debian-trixie fedora-44 fedora-rawhide
1440 #, fuzzy
1441 #| msgid ""
1442 #| "Get the process ID or process group currently receiving SIGIO and SIGURG "
1443 #| "signals for events on file descriptor I<fd>. Process groups are returned "
1444 #| "as negative values."
1445 msgid ""
1446 "Return (as the function result) the process ID or process group ID "
1447 "currently receiving B<SIGIO> and B<SIGURG> signals for events on file "
1448 "descriptor I<fd>. Process IDs are returned as positive values; process "
1449 "group IDs are returned as negative values (but see BUGS below). I<arg> is "
1450 "ignored."
1451 msgstr ""
1452 "Obtiene el ID de proceso o el grupo de procesos que actualmente recibe las "
1453 "señales SIGIO y SIGURG para los eventos sobre el descriptor de fichero "
1454 "I<fd>. Los grupos de procesos se devuelven como valores negativos."
1455
1456 #. type: TP
1457 #: debian-trixie fedora-44 fedora-rawhide
1458 #, no-wrap
1459 msgid "B<F_SETOWN> (I<int>)"
1460 msgstr "B<F_SETOWN> (I<int>)"
1461
1462 #. type: Plain text
1463 #: debian-trixie fedora-44 fedora-rawhide
1464 #, fuzzy
1465 #| msgid ""
1466 #| "Set the process ID or process group that will receive SIGIO and SIGURG "
1467 #| "signals for events on file descriptor I<fd>. Process groups are "
1468 #| "specified using negative values. (B<F_SETSIG> can be used to specify a "
1469 #| "different signal instead of SIGIO)."
1470 msgid ""
1471 "Set the process ID or process group ID that will receive B<SIGIO> and "
1472 "B<SIGURG> signals for events on the file descriptor I<fd>. The target "
1473 "process or process group ID is specified in I<arg>. A process ID is "
1474 "specified as a positive value; a process group ID is specified as a negative "
1475 "value. Most commonly, the calling process specifies itself as the owner "
1476 "(that is, I<arg> is specified as B<getpid>(2))."
1477 msgstr ""
1478 "Establece el ID de proceso o el grupo de procesos que recibirá las señales "
1479 "SIGIO y SIGURG para los eventos sobre el descriptor de fichero I<fd>. Los "
1480 "grupos de procesos se especifican mediante valores negativos. (Se puede "
1481 "usar B<F_SETSIG> para especificar una señal diferente a SIGIO)."
1482
1483 #. type: Plain text
1484 #: debian-trixie fedora-44 fedora-rawhide
1485 msgid ""
1486 "As well as setting the file descriptor owner, one must also enable "
1487 "generation of signals on the file descriptor. This is done by using the "
1488 "B<fcntl>() B<F_SETFL> operation to set the B<O_ASYNC> file status flag on "
1489 "the file descriptor. Subsequently, a B<SIGIO> signal is sent whenever input "
1490 "or output becomes possible on the file descriptor. The B<fcntl>() "
1491 "B<F_SETSIG> operation can be used to obtain delivery of a signal other than "
1492 "B<SIGIO>."
1493 msgstr ""
1494
1495 #. type: Plain text
1496 #: debian-trixie fedora-44 fedora-rawhide
1497 msgid ""
1498 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
1499 "subject to the same permissions checks as are described for B<kill>(2), "
1500 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
1501 "below). If this permission check fails, then the signal is silently "
1502 "discarded. I<Note>: The B<F_SETOWN> operation records the caller's "
1503 "credentials at the time of the B<fcntl>() call, and it is these saved "
1504 "credentials that are used for the permission checks."
1505 msgstr ""
1506
1507 #. The following appears to be rubbish. It doesn't seem to
1508 #. be true according to the kernel source, and I can write
1509 #. a program that gets a terminal-generated SIGIO even though
1510 #. it is not the foreground process group of the terminal.
1511 #. -- MTK, 8 Apr 05
1512 #. If the file descriptor
1513 #. .I fd
1514 #. refers to a terminal device, then SIGIO
1515 #. signals are sent to the foreground process group of the terminal.
1516 #. type: Plain text
1517 #: debian-trixie fedora-44 fedora-rawhide
1518 #, fuzzy
1519 #| msgid ""
1520 #| "The process or process group to receive the signal can be selected by "
1521 #| "using the B<F_SETOWN> command to the B<fcntl> function. If the file "
1522 #| "descriptor is a socket, this also selects the recipient of SIGURG signals "
1523 #| "that are delivered when out-of-band data arrives on that socket. (SIGURG "
1524 #| "is sent in any situation where B<select>(2) would report the socket as "
1525 #| "having an \"exceptional condition\".) If the file descriptor corresponds "
1526 #| "to a terminal device, then SIGIO signals are sent to the foreground "
1527 #| "process group of the terminal."
1528 msgid ""
1529 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
1530 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
1531 "arrives on that socket. (B<SIGURG> is sent in any situation where "
1532 "B<select>(2) would report the socket as having an \"exceptional "
1533 "condition\".)"
1534 msgstr ""
1535 "El proceso o el grupo de procesos que recibirá la señal se puede seleccionar "
1536 "usando la orden B<F_SETOWN> de la función B<fcntl>. Si el descriptor de "
1537 "fichero es un conector (``socket''), esto también seleccionará al recipiente "
1538 "de las señales SIGURG que se entregan cuando llegan datos fuera de orden "
1539 "(``out-of-band'', OOB) sobre el enchufe. (SIGURG se envía en cualquier "
1540 "situación en la que B<select>(2) informaría que el conector tiene una "
1541 "\"condición excepcional\"). Si el descriptor de fichero corresponde a un "
1542 "dispositivo de terminal, entonces las señales SIGIO se envían al grupo de "
1543 "procesos en primer plano de la terminal."
1544
1545 #. type: Plain text
1546 #: debian-trixie fedora-44 fedora-rawhide
1547 msgid "The following was true in Linux 2.6.x up to and including Linux 2.6.11:"
1548 msgstr ""
1549
1550 #. The relevant place in the (2.6) kernel source is the
1551 #. 'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
1552 #. send_sigurg()/send_sigurg_to_task() bypasses
1553 #. kill_fasync()/send_sigio()/send_sigio_to_task()
1554 #. to directly call send_group_sig_info()
1555 #. -- MTK, Apr 2005 (kernel 2.6.11)
1556 #. type: Plain text
1557 #: debian-trixie fedora-44 fedora-rawhide
1558 msgid ""
1559 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
1560 "running with a threading library that supports thread groups (e.g., NPTL), "
1561 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
1562 "of being a process ID identifying a whole process, it is a thread ID "
1563 "identifying a specific thread within a process. Consequently, it may be "
1564 "necessary to pass B<F_SETOWN> the result of B<gettid>(2) instead of "
1565 "B<getpid>(2) to get sensible results when B<F_SETSIG> is used. (In current "
1566 "Linux threading implementations, a main thread's thread ID is the same as "
1567 "its process ID. This means that a single-threaded program can equally use "
1568 "B<gettid>(2) or B<getpid>(2) in this scenario.) Note, however, that the "
1569 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
1570 "for out-of-band data on a socket: this signal is always sent to either a "
1571 "process or a process group, depending on the value given to B<F_SETOWN>."
1572 msgstr ""
1573
1574 #. type: Plain text
1575 #: debian-trixie fedora-44 fedora-rawhide
1576 msgid ""
1577 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
1578 "restored. From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
1579 "and B<SIGURG> signals at a particular thread."
1580 msgstr ""
1581
1582 #. type: TP
1583 #: debian-trixie fedora-44 fedora-rawhide
1584 #, no-wrap
1585 msgid "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1586 msgstr "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (desde Linux 2.6.32)"
1587
1588 #. type: Plain text
1589 #: debian-trixie fedora-44 fedora-rawhide
1590 msgid ""
1591 "Return the current file descriptor owner settings as defined by a previous "
1592 "B<F_SETOWN_EX> operation. The information is returned in the structure "
1593 "pointed to by I<arg>, which has the following form:"
1594 msgstr ""
1595
1596 #. type: Plain text
1597 #: debian-trixie fedora-44 fedora-rawhide
1598 #, no-wrap
1599 msgid ""
1600 "struct f_owner_ex {\n"
1601 " int type;\n"
1602 " pid_t pid;\n"
1603 "};\n"
1604 msgstr ""
1605 "struct f_owner_ex {\n"
1606 " int type;\n"
1607 " pid_t pid;\n"
1608 "};\n"
1609
1610 #. type: Plain text
1611 #: debian-trixie fedora-44 fedora-rawhide
1612 msgid ""
1613 "The I<type> field will have one of the values B<F_OWNER_TID>, "
1614 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>. The I<pid> field is a positive integer "
1615 "representing a thread ID, process ID, or process group ID. See "
1616 "B<F_SETOWN_EX> for more details."
1617 msgstr ""
1618
1619 #. type: TP
1620 #: debian-trixie fedora-44 fedora-rawhide
1621 #, no-wrap
1622 msgid "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1623 msgstr "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (desde Linux 2.6.32)"
1624
1625 #. type: Plain text
1626 #: debian-trixie fedora-44 fedora-rawhide
1627 msgid ""
1628 "This operation performs a similar task to B<F_SETOWN>. It allows the caller "
1629 "to direct I/O availability signals to a specific thread, process, or process "
1630 "group. The caller specifies the target of signals via I<arg>, which is a "
1631 "pointer to a I<f_owner_ex> structure. The I<type> field has one of the "
1632 "following values, which define how I<pid> is interpreted:"
1633 msgstr ""
1634
1635 #. type: TP
1636 #: debian-trixie fedora-44 fedora-rawhide
1637 #, no-wrap
1638 msgid "B<F_OWNER_TID>"
1639 msgstr "B<F_OWNER_TID>"
1640
1641 #. type: Plain text
1642 #: debian-trixie fedora-44 fedora-rawhide
1643 msgid ""
1644 "Send the signal to the thread whose thread ID (the value returned by a call "
1645 "to B<clone>(2) or B<gettid>(2)) is specified in I<pid>."
1646 msgstr ""
1647
1648 #. type: TP
1649 #: debian-trixie fedora-44 fedora-rawhide
1650 #, no-wrap
1651 msgid "B<F_OWNER_PID>"
1652 msgstr "B<F_OWNER_PID>"
1653
1654 #. type: Plain text
1655 #: debian-trixie fedora-44 fedora-rawhide
1656 msgid "Send the signal to the process whose ID is specified in I<pid>."
1657 msgstr ""
1658
1659 #. type: TP
1660 #: debian-trixie fedora-44 fedora-rawhide
1661 #, no-wrap
1662 msgid "B<F_OWNER_PGRP>"
1663 msgstr "B<F_OWNER_PGRP>"
1664
1665 #. type: Plain text
1666 #: debian-trixie fedora-44 fedora-rawhide
1667 msgid ""
1668 "Send the signal to the process group whose ID is specified in I<pid>. (Note "
1669 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
1670 "value here.)"
1671 msgstr ""
1672
1673 #. type: TP
1674 #: debian-trixie fedora-44 fedora-rawhide
1675 #, no-wrap
1676 msgid "B<F_GETSIG> (I<void>)"
1677 msgstr "B<F_GETSIG> (I<void>)"
1678
1679 #. type: Plain text
1680 #: debian-trixie fedora-44 fedora-rawhide
1681 #, fuzzy
1682 #| msgid ""
1683 #| "Get the signal sent when input or output becomes possible. A value of "
1684 #| "zero means SIGIO is sent. Any other value (including SIGIO) is the "
1685 #| "signal sent instead, and in this case additional info is available to the "
1686 #| "signal handler if installed with SA_SIGINFO."
1687 msgid ""
1688 "Return (as the function result) the signal sent when input or output "
1689 "becomes possible. A value of zero means B<SIGIO> is sent. Any other value "
1690 "(including B<SIGIO>) is the signal sent instead, and in this case "
1691 "additional info is available to the signal handler if installed with "
1692 "B<SA_SIGINFO>. I<arg> is ignored."
1693 msgstr ""
1694 "Obtiene la señal enviada cuando la entrada o la salida son posibles. Un "
1695 "valor cero significa que se envía SIGIO. Cualquier otro valor (incluyendo "
1696 "SIGIO) es la señal enviada en su lugar y en este caso se dispone de "
1697 "información adicional para el manejador de señal si éste se instala con "
1698 "SA_SIGINFO."
1699
1700 #. type: TP
1701 #: debian-trixie fedora-44 fedora-rawhide
1702 #, no-wrap
1703 msgid "B<F_SETSIG> (I<int>)"
1704 msgstr "B<F_SETSIG> (I<int>)"
1705
1706 #. The following was true only up until Linux 2.6.11:
1707 #. Additionally, passing a nonzero value to
1708 #. .B F_SETSIG
1709 #. changes the signal recipient from a whole process to a specific thread
1710 #. within a process.
1711 #. See the description of
1712 #. .B F_SETOWN
1713 #. for more details.
1714 #. type: Plain text
1715 #: debian-trixie fedora-44 fedora-rawhide
1716 #, fuzzy
1717 #| msgid ""
1718 #| "Sets the signal sent when input or output becomes possible. A value of "
1719 #| "zero means to send the default SIGIO signal. Any other value (including "
1720 #| "SIGIO) is the signal to send instead, and in this case additional info is "
1721 #| "available to the signal handler if installed with SA_SIGINFO."
1722 msgid ""
1723 "Set the signal sent when input or output becomes possible to the value given "
1724 "in I<arg>. A value of zero means to send the default B<SIGIO> signal. Any "
1725 "other value (including B<SIGIO>) is the signal to send instead, and in this "
1726 "case additional info is available to the signal handler if installed with "
1727 "B<SA_SIGINFO>."
1728 msgstr ""
1729 "Establece la señal enviada cuando la entrada o la salida son posibles. Un "
1730 "valor cero significa enviar la señal por defecto SIGIO. Cualquier otro valor "
1731 "(incluyendo SIGIO) es la señal a enviar en su lugar y en este caso se "
1732 "dispone de información adiciona para el manejador de señal si éste se "
1733 "instala con SA_SIGINFO."
1734
1735 #. type: Plain text
1736 #: debian-trixie fedora-44 fedora-rawhide
1737 msgid ""
1738 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
1739 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
1740 "passed to the handler in a I<siginfo_t> structure. If the I<si_code> field "
1741 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
1742 "descriptor associated with the event. Otherwise, there is no indication "
1743 "which file descriptors are pending, and you should use the usual mechanisms "
1744 "(B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set etc.) to "
1745 "determine which file descriptors are available for I/O."
1746 msgstr ""
1747 "Usando B<F_SETSIG> con un valor distinto de cero y asignando B<SA_SIGINFO> "
1748 "para el manejador de señal (vea B<sigaction>(2)), se pasa información extra "
1749 "sobre los eventos de E/S al manejador en la estructura I<siginfo_t>. Si el "
1750 "campo I<si_code> indica que la fuente es B<SI_SIGIO>, el campo I<si_fd> "
1751 "proporciona el descriptor de fichero asociado con el evento. En caso "
1752 "contrario, no se indican qué descriptores de ficheros hay pendientes y, para "
1753 "determinar qué descriptores de fichero están disponibles para E/S, debería "
1754 "usar los mecanismos usuales (B<select>(2), B<poll>(2), B<read>(2) con "
1755 "B<O_NONBLOCK> activo, etc.)."
1756
1757 #. type: Plain text
1758 #: debian-trixie fedora-44 fedora-rawhide
1759 msgid ""
1760 "Note that the file descriptor provided in I<si_fd> is the one that was "
1761 "specified during the B<F_SETSIG> operation. This can lead to an unusual "
1762 "corner case. If the file descriptor is duplicated (B<dup>(2) or similar), "
1763 "and the original file descriptor is closed, then I/O events will continue to "
1764 "be generated, but the I<si_fd> field will contain the number of the now "
1765 "closed file descriptor."
1766 msgstr ""
1767
1768 #. type: Plain text
1769 #: debian-trixie fedora-44 fedora-rawhide
1770 msgid ""
1771 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
1772 "events may be queued using the same signal numbers. (Queuing is dependent "
1773 "on available memory.) Extra information is available if B<SA_SIGINFO> is "
1774 "set for the signal handler, as above."
1775 msgstr ""
1776 "Seleccionando una señal de tiempo real (valor E<gt>= B<SIGRTMIN>), se pueden "
1777 "encolar varios eventos de E/S usando los mismos números de señal. (El "
1778 "encolamiento depende de la memoria disponible). Se dispone de información "
1779 "extra si se asigna B<SA_SIGINFO> al manejador de señal, como antes."
1780
1781 #. See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
1782 #. type: Plain text
1783 #: debian-trixie fedora-44 fedora-rawhide
1784 msgid ""
1785 "Note that Linux imposes a limit on the number of real-time signals that may "
1786 "be queued to a process (see B<getrlimit>(2) and B<signal>(7)) and if this "
1787 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
1788 "signal is delivered to the entire process rather than to a specific thread."
1789 msgstr ""
1790
1791 #. type: Plain text
1792 #: debian-trixie fedora-44 fedora-rawhide
1793 msgid ""
1794 "Using these mechanisms, a program can implement fully asynchronous I/O "
1795 "without using B<select>(2) or B<poll>(2) most of the time."
1796 msgstr ""
1797 "Usando estos mecanismos, un programa puede implementar E/S totalmente "
1798 "asíncrona, sin usar B<select>(2) ni B<poll>(2) la mayor parte del tiempo."
1799
1800 #. type: Plain text
1801 #: debian-trixie fedora-44 fedora-rawhide
1802 #, fuzzy
1803 #| msgid ""
1804 #| "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
1805 #| "Linux. B<F_GETSIG> and B<F_SETSIG> are Linux-specific. POSIX has "
1806 #| "asynchronous I/O and the I<aio_sigevent> structure to achieve similar "
1807 #| "things; these are also available in Linux as part of the GNU C Library "
1808 #| "(Glibc)."
1809 msgid ""
1810 "The use of B<O_ASYNC> is specific to BSD and Linux. The only use of "
1811 "B<F_GETOWN> and B<F_SETOWN> specified in POSIX.1 is in conjunction with the "
1812 "use of the B<SIGURG> signal on sockets. (POSIX does not specify the "
1813 "B<SIGIO> signal.) B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1814 "B<F_SETSIG> are Linux-specific. POSIX has asynchronous I/O and the "
1815 "I<aio_sigevent> structure to achieve similar things; these are also "
1816 "available in Linux as part of the GNU C Library (glibc)."
1817 msgstr ""
1818 "El uso de B<O_ASYNC>, B<F_GETOWN> y B<F_SETOWN> es específico de Linux y "
1819 "BSD. B<F_GETSIG> y B<F_SETSIG> son específicos de Linux. POSIX posee E/S "
1820 "asíncrona y la estructura I<aio_sigevent> para conseguir cosas similares; "
1821 "éstas también están disponibles en Linux como parte de la biblioteca de C de "
1822 "GNU (GNU C Library, Glibc)."
1823
1824 #. type: Plain text
1825 #: debian-trixie fedora-44 fedora-rawhide
1826 #, fuzzy
1827 #| msgid ""
1828 #| "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onwards) are used "
1829 #| "(respectively) to establish and retrieve the current setting of the "
1830 #| "calling process's lease on the file referred to by I<fd>. A file lease "
1831 #| "provides a mechanism whereby the process holding the lease (the \"lease "
1832 #| "holder\") is notified (via delivery of a signal) when another process "
1833 #| "(the \"contestant\") tries to B<open>(2) or B<truncate>(2) that file."
1834 msgid ""
1835 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used to establish a "
1836 "new lease, and retrieve the current lease, on the open file description "
1837 "referred to by the file descriptor I<fd>. A file lease provides a mechanism "
1838 "whereby the process holding the lease (the \"lease holder\") is notified "
1839 "(via delivery of a signal) when a process (the \"lease breaker\") tries to "
1840 "B<open>(2) or B<truncate>(2) the file referred to by that file descriptor."
1841 msgstr ""
1842 "B<F_SETLEASE> y B<F_GETLEASE> (Linux 2.4 y posteriores) se usan "
1843 "(respectivamente) para establecer y obtener la configuración actual del "
1844 "arrendamiento del proceso invocador sobre el fichero referenciado por "
1845 "I<fd>. Un arrendamiento de fichero proporciona un mecanismo por medio del "
1846 "cual al proceso que posee el arrendamiento (el \"arrendatario\") se le "
1847 "notifica (mediante el envío de una señal) cuándo otro proceso (el "
1848 "\"competidor\") intenta abrir (B<open>(2)) o truncar (B<truncate>(2)) ese "
1849 "fichero."
1850
1851 #. type: TP
1852 #: debian-trixie fedora-44 fedora-rawhide
1853 #, no-wrap
1854 msgid "B<F_SETLEASE> (I<int>)"
1855 msgstr "B<F_SETLEASE> (I<int>)"
1856
1857 #. type: Plain text
1858 #: debian-trixie fedora-44 fedora-rawhide
1859 msgid ""
1860 "Set or remove a file lease according to which of the following values is "
1861 "specified in the integer I<arg>:"
1862 msgstr ""
1863 "Establece o elimina un arrendamiento de fichero según qué valor de los "
1864 "siguientes se especifique en el entero I<arg>:"
1865
1866 #. type: TP
1867 #: debian-trixie fedora-44 fedora-rawhide
1868 #, no-wrap
1869 msgid "B<F_RDLCK>"
1870 msgstr "B<F_RDLCK>"
1871
1872 #. The following became true in Linux 2.6.10:
1873 #. See the man-pages-2.09 Changelog for further info.
1874 #. type: Plain text
1875 #: debian-trixie fedora-44 fedora-rawhide
1876 #, fuzzy
1877 #| msgid ""
1878 #| "Take out a write lease. This will cause us to be notified when another "
1879 #| "process opens the file (for reading or writing) or truncates it. A write "
1880 #| "lease may be placed on a file only if no other process currently has the "
1881 #| "file open."
1882 msgid ""
1883 "Take out a read lease. This will cause the calling process to be notified "
1884 "when the file is opened for writing or is truncated. A read lease can be "
1885 "placed only on a file descriptor that is opened read-only."
1886 msgstr ""
1887 "Obtiene un arrendamiento de escritura. Esto hará que se nos informe cuando "
1888 "otro proceso abra el fichero (para leer o escribir) o lo trunque. Sólo se "
1889 "puede colocar un arrendamiento de escritura en un fichero cuando ningún otro "
1890 "proceso lo tenga abierto en ese momento."
1891
1892 #. type: TP
1893 #: debian-trixie fedora-44 fedora-rawhide
1894 #, no-wrap
1895 msgid "B<F_WRLCK>"
1896 msgstr "B<F_WRLCK>"
1897
1898 #. type: Plain text
1899 #: debian-trixie fedora-44 fedora-rawhide
1900 #, fuzzy
1901 #| msgid ""
1902 #| "Take out a write lease. This will cause us to be notified when another "
1903 #| "process opens the file (for reading or writing) or truncates it. A write "
1904 #| "lease may be placed on a file only if no other process currently has the "
1905 #| "file open."
1906 msgid ""
1907 "Take out a write lease. This will cause the caller to be notified when the "
1908 "file is opened for reading or writing or is truncated. A write lease may be "
1909 "placed on a file only if there are no other open file descriptors for the "
1910 "file."
1911 msgstr ""
1912 "Obtiene un arrendamiento de escritura. Esto hará que se nos informe cuando "
1913 "otro proceso abra el fichero (para leer o escribir) o lo trunque. Sólo se "
1914 "puede colocar un arrendamiento de escritura en un fichero cuando ningún otro "
1915 "proceso lo tenga abierto en ese momento."
1916
1917 #. type: TP
1918 #: debian-trixie fedora-44 fedora-rawhide
1919 #, no-wrap
1920 msgid "B<F_UNLCK>"
1921 msgstr "B<F_UNLCK>"
1922
1923 #. type: Plain text
1924 #: debian-trixie fedora-44 fedora-rawhide
1925 msgid "Remove our lease from the file."
1926 msgstr "Elimina nuestro arrendamiento del fichero."
1927
1928 #. type: Plain text
1929 #: debian-trixie fedora-44 fedora-rawhide
1930 msgid ""
1931 "Leases are associated with an open file description (see B<open>(2)). This "
1932 "means that duplicate file descriptors (created by, for example, B<fork>(2) "
1933 "or B<dup>(2)) refer to the same lease, and this lease may be modified or "
1934 "released using any of these descriptors. Furthermore, the lease is released "
1935 "by either an explicit B<F_UNLCK> operation on any of these duplicate file "
1936 "descriptors, or when all such file descriptors have been closed."
1937 msgstr ""
1938
1939 #. type: Plain text
1940 #: debian-trixie fedora-44 fedora-rawhide
1941 #, fuzzy
1942 #| msgid ""
1943 #| "Leases may only be taken out on regular files. An unprivileged process "
1944 #| "may only take out a lease on a file whose UID matches the file system UID "
1945 #| "of the process."
1946 msgid ""
1947 "Leases may be taken out only on regular files. An unprivileged process may "
1948 "take out a lease only on a file whose UID (owner) matches the filesystem UID "
1949 "of the process. A process with the B<CAP_LEASE> capability may take out "
1950 "leases on arbitrary files."
1951 msgstr ""
1952 "Los arrendamientos sólo se pueden obtener para ficheros regulares. Un "
1953 "proceso normal sólo puede obtener un arrendamiento sobre un fichero cuyo UID "
1954 "coincida con el UID de sistema de ficheros del proceso."
1955
1956 #. type: TP
1957 #: debian-trixie fedora-44 fedora-rawhide
1958 #, no-wrap
1959 msgid "B<F_GETLEASE> (I<void>)"
1960 msgstr "B<F_GETLEASE> (I<void>)"
1961
1962 #. type: Plain text
1963 #: debian-trixie fedora-44 fedora-rawhide
1964 #, fuzzy
1965 #| msgid ""
1966 #| "Indicates what type of lease we hold on the file referred to by I<fd> by "
1967 #| "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK,> indicating, "
1968 #| "respectively, that the calling process holds a read, a write, or no lease "
1969 #| "on the file. (The third argument to B<fcntl>() is omitted.)"
1970 msgid ""
1971 "Indicates what type of lease is associated with the file descriptor I<fd> by "
1972 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
1973 "respectively, a read lease , a write lease, or no lease. I<arg> is ignored."
1974 msgstr ""
1975 "Indica qué tipo de arrendamiento tenemos sobre el fichero referenciado por "
1976 "I<fd> devolviendo B<F_RDLCK>, B<F_WRLCK> o B<F_UNLCK>, lo que indica, "
1977 "respectivamente, que el proceso invocador posee un arrendamiento de lectura, "
1978 "de escritura o que no posee arrendamiento alguno sobre el fichero. (El "
1979 "tercer argumento de B<fcntl>() se omite.)"
1980
1981 #. type: Plain text
1982 #: debian-trixie fedora-44 fedora-rawhide
1983 #, fuzzy
1984 #| msgid ""
1985 #| "When the contestant performs an B<open>() or B<truncate>() that "
1986 #| "conflicts with a lease established via B<F_SETLEASE>, the system call is "
1987 #| "blocked by the kernel (unless the B<O_NONBLOCK> flag was specified to "
1988 #| "B<open>(), in which case it returns immediately with the error "
1989 #| "B<EWOULDBLOCK>). The kernel then notifies the lease holder by sending it "
1990 #| "a signal (SIGIO by default). The lease holder should respond to receipt "
1991 #| "of this signal by doing whatever cleanup is required in preparation for "
1992 #| "the file to be accessed by another process (e.g., flushing cached "
1993 #| "buffers) and then remove its lease by performing an B<F_SETLEASE> command "
1994 #| "specifying I<arg> as B<F_UNLCK>."
1995 msgid ""
1996 "When a process (the \"lease breaker\") performs an B<open>(2) or "
1997 "B<truncate>(2) that conflicts with a lease established via B<F_SETLEASE>, "
1998 "the system call is blocked by the kernel and the kernel notifies the lease "
1999 "holder by sending it a signal (B<SIGIO> by default). The lease holder "
2000 "should respond to receipt of this signal by doing whatever cleanup is "
2001 "required in preparation for the file to be accessed by another process "
2002 "(e.g., flushing cached buffers) and then either remove or downgrade its "
2003 "lease. A lease is removed by performing an B<F_SETLEASE> operation "
2004 "specifying I<arg> as B<F_UNLCK>. If the lease holder currently holds a "
2005 "write lease on the file, and the lease breaker is opening the file for "
2006 "reading, then it is sufficient for the lease holder to downgrade the lease "
2007 "to a read lease. This is done by performing an B<F_SETLEASE> operation "
2008 "specifying I<arg> as B<F_RDLCK>."
2009 msgstr ""
2010 "Cuando el competidor realiza un B<open>() o B<truncate>() que entra en "
2011 "conflicto con un arrendamiento establecido mediante B<F_SETLEASE>, el núcleo "
2012 "bloquea la llamada al sistema (a menos que se especifique la opción "
2013 "B<O_NONBLOCK> en B<open>(), en cuyo caso la llamada regresa inmediatamente "
2014 "con el error B<EWOULDBLOCK>). El núcleo entonces notifica al arrendatario "
2015 "enviándole una señal (SIGIO por omisión). El arrendatario debe responder a "
2016 "la recepción de esta señal haciendo cualquier limpieza que sea necesaria "
2017 "para preparar el fichero para que sea accedido por otro proceso (por "
2018 "ejemplo, vaciando los buffers en caché) y entonces eliminar su arrendamiento "
2019 "ejecuntado una orden B<F_SETLEASE> que especifique en I<arg> el valor "
2020 "B<F_UNLCK>."
2021
2022 #. type: Plain text
2023 #: debian-trixie fedora-44 fedora-rawhide
2024 #, fuzzy
2025 #| msgid ""
2026 #| "If the lease holder fails to release the lease within the number of "
2027 #| "seconds specified in I</proc/sys/fs/lease-break-time> and the "
2028 #| "contestant's system call remains blocked (i.e., the contestant did not "
2029 #| "specify B<O_NONBLOCK> on its B<open>() call, and the system call was not "
2030 #| "interrupted by a signal handler) then the kerrnel forcibly breaks the "
2031 #| "lease holder's lease."
2032 msgid ""
2033 "If the lease holder fails to downgrade or remove the lease within the number "
2034 "of seconds specified in I</proc/sys/fs/lease-break-time>, then the kernel "
2035 "forcibly removes or downgrades the lease holder's lease."
2036 msgstr ""
2037 "Si el arrendatario no libera el arrendamiento antes del número de segundos "
2038 "especificado en I</proc/sys/fs/lease-break-time> y la llamada al sistema del "
2039 "competidor sigue bloqueada (es decir, el competidor no especificó "
2040 "B<O_NONBLOCK> en su llamada B<open>() y la llamada al sistema no ha sido "
2041 "interrumpida por un manejador de señal), entonces el núcleo pone fin al "
2042 "arrendamiento del arrendatario por la fuerza."
2043
2044 #. type: Plain text
2045 #: debian-trixie fedora-44 fedora-rawhide
2046 msgid ""
2047 "Once a lease break has been initiated, B<F_GETLEASE> returns the target "
2048 "lease type (either B<F_RDLCK> or B<F_UNLCK>, depending on what would be "
2049 "compatible with the lease breaker) until the lease holder voluntarily "
2050 "downgrades or removes the lease or the kernel forcibly does so after the "
2051 "lease break timer expires."
2052 msgstr ""
2053
2054 #. type: Plain text
2055 #: debian-trixie fedora-44 fedora-rawhide
2056 #, fuzzy
2057 #| msgid ""
2058 #| "Once the lease has been voluntarily or forcibly removed, and assuming the "
2059 #| "contestant has not unblocked its system call, the kernel permits the "
2060 #| "contestant's system call to proceed."
2061 msgid ""
2062 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
2063 "assuming the lease breaker has not unblocked its system call, the kernel "
2064 "permits the lease breaker's system call to proceed."
2065 msgstr ""
2066 "Una vez que se ha eliminado voluntariamente o por la fuerza el "
2067 "arrendamiento, y suponiendo que el competidor no ha desbloqueado su llamada "
2068 "al sistema, el núcleo permite continuar a la llamada al sistema del "
2069 "competidor."
2070
2071 #. type: Plain text
2072 #: debian-trixie fedora-44 fedora-rawhide
2073 msgid ""
2074 "If the lease breaker's blocked B<open>(2) or B<truncate>(2) is interrupted "
2075 "by a signal handler, then the system call fails with the error B<EINTR>, but "
2076 "the other steps still occur as described above. If the lease breaker is "
2077 "killed by a signal while blocked in B<open>(2) or B<truncate>(2), then the "
2078 "other steps still occur as described above. If the lease breaker specifies "
2079 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
2080 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
2081 "described above."
2082 msgstr ""
2083
2084 #. type: Plain text
2085 #: debian-trixie fedora-44 fedora-rawhide
2086 #, fuzzy
2087 #| msgid ""
2088 #| "The default signal used to notify the lease holder is SIGIO, but this can "
2089 #| "be changed using the B<F_SETSIG> command to B<fcntl ().> If a B<F_SETSIG> "
2090 #| "command is performed (even one specifying SIGIO), and the signal handler "
2091 #| "is established using SA_SIGINFO, then the handler will receive a "
2092 #| "I<siginfo_t> sructure as its second argument, and the I<si_fd> field of "
2093 #| "this argument will hold the descriptor of the leased file that has been "
2094 #| "accessed by another process. (This is useful if the caller holds leases "
2095 #| "against multiple files)."
2096 msgid ""
2097 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
2098 "be changed using the B<F_SETSIG> operation to B<fcntl>(). If a B<F_SETSIG> "
2099 "operation is performed (even one specifying B<SIGIO>), and the signal "
2100 "handler is established using B<SA_SIGINFO>, then the handler will receive a "
2101 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
2102 "this argument will hold the file descriptor of the leased file that has been "
2103 "accessed by another process. (This is useful if the caller holds leases "
2104 "against multiple files.)"
2105 msgstr ""
2106 "La señal por omisión que se usa para informar al arrendatario es SIGIO, pero "
2107 "se puede cambiar usando la orden B<F_SETSIG> de B<fcntl ().> Si se ejecuta "
2108 "una orden B<F_SETSIG> (incluso una que especifique SIGIO) y el manejador de "
2109 "señal se establece usando SA_SIGINFO, el manejador recibirá una estructura "
2110 "I<siginfo_t> como su segundo argumento y el campo I<si_fd> de este argumento "
2111 "contendrá el descriptor del fichero arrendado que ha sido accedido por otro "
2112 "proceso. (Esto es útil si el invocador tiene arrendamientos para varios "
2113 "ficheros)."
2114
2115 #. type: TP
2116 #: debian-trixie fedora-44 fedora-rawhide
2117 #, no-wrap
2118 msgid "B<F_NOTIFY> (I<int>)"
2119 msgstr "B<F_NOTIFY> (I<int>)"
2120
2121 #. type: Plain text
2122 #: debian-trixie fedora-44 fedora-rawhide
2123 msgid ""
2124 "(Linux 2.4 onward) Provide notification when the directory referred to by "
2125 "I<fd> or any of the files that it contains is changed. The events to be "
2126 "notified are specified in I<arg>, which is a bit mask specified by ORing "
2127 "together zero or more of the following bits:"
2128 msgstr ""
2129 "(Linux 2.4 y posteriores) Produce una notificación cuando cambia el "
2130 "directorio referenciado por I<fd> o cualquiera de los ficheros que contiene. "
2131 "Los eventos a notificar se indican en I<arg>, que es una máscara de bits que "
2132 "se especifica mediante un O-lógico de cero o más de los siguientes bits:"
2133
2134 #. type: TP
2135 #: debian-trixie fedora-44 fedora-rawhide
2136 #, no-wrap
2137 msgid "B<DN_ACCESS>"
2138 msgstr "B<DN_ACCESS>"
2139
2140 #. type: Plain text
2141 #: debian-trixie fedora-44 fedora-rawhide
2142 #, fuzzy
2143 #| msgid "A file was accessed (read, pread, readv)"
2144 msgid "A file was accessed (B<read>(2), B<pread>(2), B<readv>(2), and similar)"
2145 msgstr "Se ha accedido a un fichero (read, pread, readv)"
2146
2147 #. type: TP
2148 #: debian-trixie fedora-44 fedora-rawhide
2149 #, no-wrap
2150 msgid "B<DN_MODIFY>"
2151 msgstr "B<DN_MODIFY>"
2152
2153 #. type: Plain text
2154 #: debian-trixie fedora-44 fedora-rawhide
2155 msgid ""
2156 "A file was modified (B<write>(2), B<pwrite>(2), B<writev>(2), "
2157 "B<truncate>(2), B<ftruncate>(2), and similar)."
2158 msgstr ""
2159
2160 #. type: TP
2161 #: debian-trixie fedora-44 fedora-rawhide
2162 #, no-wrap
2163 msgid "B<DN_CREATE>"
2164 msgstr "B<DN_CREATE>"
2165
2166 #. type: Plain text
2167 #: debian-trixie fedora-44 fedora-rawhide
2168 msgid ""
2169 "A file was created (B<open>(2), B<creat>(2), B<mknod>(2), B<mkdir>(2), "
2170 "B<link>(2), B<symlink>(2), B<rename>(2) into this directory)."
2171 msgstr ""
2172
2173 #. type: TP
2174 #: debian-trixie fedora-44 fedora-rawhide
2175 #, no-wrap
2176 msgid "B<DN_DELETE>"
2177 msgstr "B<DN_DELETE>"
2178
2179 #. type: Plain text
2180 #: debian-trixie fedora-44 fedora-rawhide
2181 #, fuzzy
2182 #| msgid "A file was unlinked (unlink, rename to"
2183 msgid ""
2184 "A file was unlinked (B<unlink>(2), B<rename>(2) to another directory, "
2185 "B<rmdir>(2))."
2186 msgstr "Se ha borrando un fichero (unlink, rename a"
2187
2188 #. type: TP
2189 #: debian-trixie fedora-44 fedora-rawhide
2190 #, no-wrap
2191 msgid "B<DN_RENAME>"
2192 msgstr "B<DN_RENAME>"
2193
2194 #. type: Plain text
2195 #: debian-trixie fedora-44 fedora-rawhide
2196 msgid "A file was renamed within this directory (B<rename>(2))."
2197 msgstr ""
2198 "Se ha cambiado el nombre de un fichero de este directorio (B<rename>(2))."
2199
2200 #. type: TP
2201 #: debian-trixie fedora-44 fedora-rawhide
2202 #, no-wrap
2203 msgid "B<DN_ATTRIB>"
2204 msgstr "B<DN_ATTRIB>"
2205
2206 #. type: Plain text
2207 #: debian-trixie fedora-44 fedora-rawhide
2208 msgid ""
2209 "The attributes of a file were changed (B<chown>(2), B<chmod>(2), "
2210 "B<utime>(2), B<utimensat>(2), and similar)."
2211 msgstr ""
2212
2213 #. type: Plain text
2214 #: debian-trixie fedora-44 fedora-rawhide
2215 #, fuzzy
2216 #| msgid ""
2217 #| "(In order to obtain these definitions, the _GNU_SOURCE macro must be "
2218 #| "defined before including E<lt>fcntl.hE<gt>.)"
2219 msgid ""
2220 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
2221 "must be defined before including I<any> header files.)"
2222 msgstr ""
2223 "(Para obtener estas definiciones, se debe define la macro _GNU_SOURCE antes "
2224 "de incluir E<lt>fcntl.hE<gt>.)"
2225
2226 #. type: Plain text
2227 #: debian-trixie fedora-44 fedora-rawhide
2228 msgid ""
2229 "Directory notifications are normally \"one-shot\", and the application must "
2230 "reregister to receive further notifications. Alternatively, if "
2231 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
2232 "effect until explicitly removed."
2233 msgstr ""
2234 "Las notificaciones de directorio normalmente se reciben una única vez (son "
2235 "de tipo ``one-shot'') y la aplicación debe volver a hacer el registro para "
2236 "recibir notificaciones adicionales. Otra posibilidad es incluir "
2237 "B<DN_MULTISHOT> en I<arg>, en cuyo caso la notificación se producirá hasta "
2238 "que se elimine explícitamente."
2239
2240 #. The following does seem a poor API-design choice...
2241 #. type: Plain text
2242 #: debian-trixie fedora-44 fedora-rawhide
2243 #, fuzzy
2244 msgid ""
2245 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
2246 "being added to the set already monitored. To disable notification of all "
2247 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
2248 msgstr ""
2249 " Una serie de llamadas que especifican B<DN_MULTISHOT> es acumulativa, con "
2250 "los eventos en I<arg> añadiéndose al conjunto ya monitorizado. Para "
2251 "desactivar la notificación de todos los eventos, haga una llamada "
2252 "B<F_NOTIFY> especificando 0 en I<arg>."
2253
2254 #. type: Plain text
2255 #: debian-trixie fedora-44 fedora-rawhide
2256 #, fuzzy
2257 #| msgid ""
2258 #| "Notification occurs via delivery of a signal. The default signal is "
2259 #| "SIGIO, but this can be changed using the B<F_SETSIG> command to "
2260 #| "B<fcntl>(). In the latter case, the signal handler receives a "
2261 #| "I<siginfo_t> structure as its second argument (if the handler was "
2262 #| "established using SA_SIGINFO) and the I<si_fd> field of this structure "
2263 #| "contains the file descriptor which generated the notification (useful "
2264 #| "when establishing notification on multiple directories)."
2265 msgid ""
2266 "Notification occurs via delivery of a signal. The default signal is "
2267 "B<SIGIO>, but this can be changed using the B<F_SETSIG> operation to "
2268 "B<fcntl>(). (Note that B<SIGIO> is one of the nonqueuing standard signals; "
2269 "switching to the use of a real-time signal means that multiple notifications "
2270 "can be queued to the process.) In the latter case, the signal handler "
2271 "receives a I<siginfo_t> structure as its second argument (if the handler was "
2272 "established using B<SA_SIGINFO>) and the I<si_fd> field of this structure "
2273 "contains the file descriptor which generated the notification (useful when "
2274 "establishing notification on multiple directories)."
2275 msgstr ""
2276 "La notificación se produce mediante el envío de una señal. La señal por "
2277 "omisión es SIGIO, pero se puede cambiar usando la orden B<F_SETSIG> de "
2278 "B<fcntl>(). En el segundo caso, el manejador de señal recibe una estructura "
2279 "I<siginfo_t> como su segundo argumento (si el manejador se estableció usando "
2280 "SA_SIGINFO) y el campo I<si_fd> de esta estructura contiene el descriptor de "
2281 "fichero que produjo la notificación (útil cuando se establecen "
2282 "notificaciones en varios directorios)."
2283
2284 #. type: Plain text
2285 #: debian-trixie fedora-44 fedora-rawhide
2286 msgid ""
2287 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
2288 "notification, so that multiple notifications can be queued."
2289 msgstr ""
2290 "Especialmente cuando se usa B<DN_MULTISHOT>, se debería usar una señal de "
2291 "tiempo real para notificación, de tal manera que se pueden encolar multiples "
2292 "notificaciones."
2293
2294 #. type: Plain text
2295 #: debian-trixie fedora-44 fedora-rawhide
2296 msgid ""
2297 "B<NOTE:> New applications should use the I<inotify> interface (available "
2298 "since Linux 2.6.13), which provides a much superior interface for obtaining "
2299 "notifications of filesystem events. See B<inotify>(7)."
2300 msgstr ""
2301
2302 #. type: TP
2303 #: debian-trixie fedora-44 fedora-rawhide
2304 #, no-wrap
2305 msgid "B<F_SETPIPE_SZ> (I<int>; since Linux 2.6.35)"
2306 msgstr "B<F_SETPIPE_SZ> (I<int>; desde Linux 2.6.35)"
2307
2308 #. type: Plain text
2309 #: debian-trixie fedora-44 fedora-rawhide
2310 msgid ""
2311 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
2312 "bytes. An unprivileged process can adjust the pipe capacity to any value "
2313 "between the system page size and the limit defined in I</proc/sys/fs/pipe-"
2314 "max-size> (see B<proc>(5)). Attempts to set the pipe capacity below the "
2315 "page size are silently rounded up to the page size. Attempts by an "
2316 "unprivileged process to set the pipe capacity above the limit in I</proc/sys/"
2317 "fs/pipe-max-size> yield the error B<EPERM>; a privileged process "
2318 "(B<CAP_SYS_RESOURCE>) can override the limit."
2319 msgstr ""
2320
2321 #. type: Plain text
2322 #: debian-trixie fedora-44 fedora-rawhide
2323 msgid ""
2324 "When allocating the buffer for the pipe, the kernel may use a capacity "
2325 "larger than I<arg>, if that is convenient for the implementation. (In the "
2326 "current implementation, the allocation is the next higher power-of-two page-"
2327 "size multiple of the requested size.) The actual capacity (in bytes) that "
2328 "is set is returned as the function result."
2329 msgstr ""
2330
2331 #. type: Plain text
2332 #: debian-trixie fedora-44 fedora-rawhide
2333 msgid ""
2334 "Attempting to set the pipe capacity smaller than the amount of buffer space "
2335 "currently used to store data produces the error B<EBUSY>."
2336 msgstr ""
2337
2338 #. type: Plain text
2339 #: debian-trixie fedora-44 fedora-rawhide
2340 msgid ""
2341 "Note that because of the way the pages of the pipe buffer are employed when "
2342 "data is written to the pipe, the number of bytes that can be written may be "
2343 "less than the nominal size, depending on the size of the writes."
2344 msgstr ""
2345
2346 #. type: TP
2347 #: debian-trixie fedora-44 fedora-rawhide
2348 #, no-wrap
2349 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
2350 msgstr "B<F_GETPIPE_SZ> (I<void>; desde Linux 2.6.35)"
2351
2352 #. type: Plain text
2353 #: debian-trixie fedora-44 fedora-rawhide
2354 msgid ""
2355 "Return (as the function result) the capacity of the pipe referred to by "
2356 "I<fd>."
2357 msgstr ""
2358
2359 #. type: Plain text
2360 #: debian-trixie fedora-44 fedora-rawhide
2361 msgid ""
2362 "File seals limit the set of allowed operations on a given file. For each "
2363 "seal that is set on a file, a specific set of operations will fail with "
2364 "B<EPERM> on this file from now on. The file is said to be sealed. The "
2365 "default set of seals depends on the type of the underlying file and "
2366 "filesystem. For an overview of file sealing, a discussion of its purpose, "
2367 "and some code examples, see B<memfd_create>(2)."
2368 msgstr ""
2369
2370 #. type: Plain text
2371 #: debian-trixie fedora-44 fedora-rawhide
2372 msgid ""
2373 "Currently, file seals can be applied only to a file descriptor returned by "
2374 "B<memfd_create>(2) (if the B<MFD_ALLOW_SEALING> was employed). On other "
2375 "filesystems, all B<fcntl>() operations that operate on seals will return "
2376 "B<EINVAL>."
2377 msgstr ""
2378
2379 #. type: Plain text
2380 #: debian-trixie fedora-44 fedora-rawhide
2381 msgid ""
2382 "Seals are a property of an inode. Thus, all open file descriptors referring "
2383 "to the same inode share the same set of seals. Furthermore, seals can never "
2384 "be removed, only added."
2385 msgstr ""
2386
2387 #. type: TP
2388 #: debian-trixie fedora-44 fedora-rawhide
2389 #, no-wrap
2390 msgid "B<F_ADD_SEALS> (I<int>; since Linux 3.17)"
2391 msgstr "B<F_ADD_SEALS> (I<int>; desde Linux 3.17)"
2392
2393 #. type: Plain text
2394 #: debian-trixie fedora-44 fedora-rawhide
2395 msgid ""
2396 "Add the seals given in the bit-mask argument I<arg> to the set of seals of "
2397 "the inode referred to by the file descriptor I<fd>. Seals cannot be removed "
2398 "again. Once this call succeeds, the seals are enforced by the kernel "
2399 "immediately. If the current set of seals includes B<F_SEAL_SEAL> (see "
2400 "below), then this call will be rejected with B<EPERM>. Adding a seal that "
2401 "is already set is a no-op, in case B<F_SEAL_SEAL> is not set already. In "
2402 "order to place a seal, the file descriptor I<fd> must be writable."
2403 msgstr ""
2404
2405 #. type: TP
2406 #: debian-trixie fedora-44 fedora-rawhide
2407 #, no-wrap
2408 msgid "B<F_GET_SEALS> (I<void>; since Linux 3.17)"
2409 msgstr "B<F_GET_SEALS> (I<void>; desde Linux 3.17)"
2410
2411 #. type: Plain text
2412 #: debian-trixie fedora-44 fedora-rawhide
2413 msgid ""
2414 "Return (as the function result) the current set of seals of the inode "
2415 "referred to by I<fd>. If no seals are set, 0 is returned. If the file does "
2416 "not support sealing, -1 is returned and I<errno> is set to B<EINVAL>."
2417 msgstr ""
2418
2419 #. type: Plain text
2420 #: debian-trixie fedora-44 fedora-rawhide
2421 msgid "The following seals are available:"
2422 msgstr ""
2423
2424 #. type: TP
2425 #: debian-trixie fedora-44 fedora-rawhide
2426 #, no-wrap
2427 msgid "B<F_SEAL_SEAL>"
2428 msgstr "B<F_SEAL_SEAL>"
2429
2430 #. type: Plain text
2431 #: debian-trixie fedora-44 fedora-rawhide
2432 msgid ""
2433 "If this seal is set, any further call to B<fcntl>() with B<F_ADD_SEALS> "
2434 "fails with the error B<EPERM>. Therefore, this seal prevents any "
2435 "modifications to the set of seals itself. If the initial set of seals of a "
2436 "file includes B<F_SEAL_SEAL>, then this effectively causes the set of seals "
2437 "to be constant and locked."
2438 msgstr ""
2439
2440 #. type: TP
2441 #: debian-trixie fedora-44 fedora-rawhide
2442 #, no-wrap
2443 msgid "B<F_SEAL_SHRINK>"
2444 msgstr "B<F_SEAL_SHRINK>"
2445
2446 #. type: Plain text
2447 #: debian-trixie fedora-44 fedora-rawhide
2448 msgid ""
2449 "If this seal is set, the file in question cannot be reduced in size. This "
2450 "affects B<open>(2) with the B<O_TRUNC> flag as well as B<truncate>(2) and "
2451 "B<ftruncate>(2). Those calls fail with B<EPERM> if you try to shrink the "
2452 "file in question. Increasing the file size is still possible."
2453 msgstr ""
2454
2455 #. type: TP
2456 #: debian-trixie fedora-44 fedora-rawhide
2457 #, no-wrap
2458 msgid "B<F_SEAL_GROW>"
2459 msgstr "B<F_SEAL_GROW>"
2460
2461 #. type: Plain text
2462 #: debian-trixie fedora-44 fedora-rawhide
2463 msgid ""
2464 "If this seal is set, the size of the file in question cannot be increased. "
2465 "This affects B<write>(2) beyond the end of the file, B<truncate>(2), "
2466 "B<ftruncate>(2), and B<fallocate>(2). These calls fail with B<EPERM> if you "
2467 "use them to increase the file size. If you keep the size or shrink it, "
2468 "those calls still work as expected."
2469 msgstr ""
2470
2471 #. type: TP
2472 #: debian-trixie fedora-44 fedora-rawhide
2473 #, no-wrap
2474 msgid "B<F_SEAL_WRITE>"
2475 msgstr "B<F_SEAL_WRITE>"
2476
2477 #. One or more other seals are typically used with F_SEAL_WRITE
2478 #. because, given a file with the F_SEAL_WRITE seal set, then,
2479 #. while it would no longer be possible to (say) write zeros into
2480 #. the last 100 bytes of a file, it would still be possible
2481 #. to (say) shrink the file by 100 bytes using ftruncate(), and
2482 #. then increase the file size by 100 bytes, which would have
2483 #. the effect of replacing the last hundred bytes by zeros.
2484 #. type: Plain text
2485 #: debian-trixie fedora-44 fedora-rawhide
2486 msgid ""
2487 "If this seal is set, you cannot modify the contents of the file. Note that "
2488 "shrinking or growing the size of the file is still possible and allowed. "
2489 "Thus, this seal is normally used in combination with one of the other "
2490 "seals. This seal affects B<write>(2) and B<fallocate>(2) (only in "
2491 "combination with the B<FALLOC_FL_PUNCH_HOLE> flag). Those calls fail with "
2492 "B<EPERM> if this seal is set. Furthermore, trying to create new shared, "
2493 "writable memory-mappings via B<mmap>(2) will also fail with B<EPERM>."
2494 msgstr ""
2495
2496 #. type: Plain text
2497 #: debian-trixie fedora-44 fedora-rawhide
2498 msgid ""
2499 "Using the B<F_ADD_SEALS> operation to set the B<F_SEAL_WRITE> seal fails "
2500 "with B<EBUSY> if any writable, shared mapping exists. Such mappings must be "
2501 "unmapped before you can add this seal. Furthermore, if there are any "
2502 "asynchronous I/O operations (B<io_submit>(2)) pending on the file, all "
2503 "outstanding writes will be discarded."
2504 msgstr ""
2505
2506 #. type: TP
2507 #: debian-trixie fedora-44 fedora-rawhide
2508 #, no-wrap
2509 msgid "B<F_SEAL_FUTURE_WRITE> (since Linux 5.1)"
2510 msgstr "B<F_SEAL_FUTURE_WRITE> (desde Linux 5.1)"
2511
2512 #. type: Plain text
2513 #: debian-trixie fedora-44 fedora-rawhide
2514 msgid ""
2515 "The effect of this seal is similar to B<F_SEAL_WRITE>, but the contents of "
2516 "the file can still be modified via shared writable mappings that were "
2517 "created prior to the seal being set. Any attempt to create a new writable "
2518 "mapping on the file via B<mmap>(2) will fail with B<EPERM>. Likewise, an "
2519 "attempt to write to the file via B<write>(2) will fail with B<EPERM>."
2520 msgstr ""
2521
2522 #. type: Plain text
2523 #: debian-trixie fedora-44 fedora-rawhide
2524 msgid ""
2525 "Using this seal, one process can create a memory buffer that it can continue "
2526 "to modify while sharing that buffer on a \"read-only\" basis with other "
2527 "processes."
2528 msgstr ""
2529
2530 #. type: Plain text
2531 #: debian-trixie fedora-44 fedora-rawhide
2532 msgid ""
2533 "Write lifetime hints can be used to inform the kernel about the relative "
2534 "expected lifetime of writes on a given inode or via a particular open file "
2535 "description. (See B<open>(2) for an explanation of open file "
2536 "descriptions.) In this context, the term \"write lifetime\" means the "
2537 "expected time the data will live on media, before being overwritten or "
2538 "erased."
2539 msgstr ""
2540
2541 #. type: Plain text
2542 #: debian-trixie fedora-44 fedora-rawhide
2543 msgid ""
2544 "An application may use the different hint values specified below to separate "
2545 "writes into different write classes, so that multiple users or applications "
2546 "running on a single storage back-end can aggregate their I/O patterns in a "
2547 "consistent manner. However, there are no functional semantics implied by "
2548 "these flags, and different I/O classes can use the write lifetime hints in "
2549 "arbitrary ways, so long as the hints are used consistently."
2550 msgstr ""
2551
2552 #. type: Plain text
2553 #: debian-trixie fedora-44 fedora-rawhide
2554 msgid "The following operations can be applied to the file descriptor, I<fd>:"
2555 msgstr ""
2556
2557 #. type: TP
2558 #: debian-trixie fedora-44 fedora-rawhide
2559 #, no-wrap
2560 msgid "B<F_GET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2561 msgstr "B<F_GET_RW_HINT> (I<uint64_t *>; desde Linux 4.13)"
2562
2563 #. type: Plain text
2564 #: debian-trixie fedora-44 fedora-rawhide
2565 msgid ""
2566 "Returns the value of the read/write hint associated with the underlying "
2567 "inode referred to by I<fd>."
2568 msgstr ""
2569
2570 #. type: TP
2571 #: debian-trixie fedora-44 fedora-rawhide
2572 #, no-wrap
2573 msgid "B<F_SET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2574 msgstr "B<F_SET_RW_HINT> (I<uint64_t *>; desde Linux 4.13)"
2575
2576 #. type: Plain text
2577 #: debian-trixie fedora-44 fedora-rawhide
2578 msgid ""
2579 "Sets the read/write hint value associated with the underlying inode referred "
2580 "to by I<fd>. This hint persists until either it is explicitly modified or "
2581 "the underlying filesystem is unmounted."
2582 msgstr ""
2583
2584 #. type: TP
2585 #: debian-trixie fedora-44 fedora-rawhide
2586 #, no-wrap
2587 msgid "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2588 msgstr "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; desde Linux 4.13)"
2589
2590 #. type: Plain text
2591 #: debian-trixie fedora-44 fedora-rawhide
2592 msgid ""
2593 "Returns the value of the read/write hint associated with the open file "
2594 "description referred to by I<fd>."
2595 msgstr ""
2596
2597 #. type: TP
2598 #: debian-trixie fedora-44 fedora-rawhide
2599 #, no-wrap
2600 msgid "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2601 msgstr "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; desde Linux 4.13)"
2602
2603 #. type: Plain text
2604 #: debian-trixie fedora-44 fedora-rawhide
2605 msgid ""
2606 "Sets the read/write hint value associated with the open file description "
2607 "referred to by I<fd>."
2608 msgstr ""
2609
2610 #. type: Plain text
2611 #: debian-trixie fedora-44 fedora-rawhide
2612 msgid ""
2613 "If an open file description has not been assigned a read/write hint, then it "
2614 "shall use the value assigned to the inode, if any."
2615 msgstr ""
2616
2617 #. type: Plain text
2618 #: debian-trixie fedora-44 fedora-rawhide
2619 msgid "The following read/write hints are valid since Linux 4.13:"
2620 msgstr ""
2621
2622 #. type: TP
2623 #: debian-trixie fedora-44 fedora-rawhide
2624 #, no-wrap
2625 msgid "B<RWH_WRITE_LIFE_NOT_SET>"
2626 msgstr "B<RWH_WRITE_LIFE_NOT_SET>"
2627
2628 #. type: Plain text
2629 #: debian-trixie fedora-44 fedora-rawhide
2630 msgid "No specific hint has been set. This is the default value."
2631 msgstr ""
2632
2633 #. type: TP
2634 #: debian-trixie fedora-44 fedora-rawhide
2635 #, no-wrap
2636 msgid "B<RWH_WRITE_LIFE_NONE>"
2637 msgstr "B<RWH_WRITE_LIFE_NONE>"
2638
2639 #. type: Plain text
2640 #: debian-trixie fedora-44 fedora-rawhide
2641 msgid "No specific write lifetime is associated with this file or inode."
2642 msgstr ""
2643
2644 #. type: TP
2645 #: debian-trixie fedora-44 fedora-rawhide
2646 #, no-wrap
2647 msgid "B<RWH_WRITE_LIFE_SHORT>"
2648 msgstr "B<RWH_WRITE_LIFE_SHORT>"
2649
2650 #. type: Plain text
2651 #: debian-trixie fedora-44 fedora-rawhide
2652 msgid ""
2653 "Data written to this inode or via this open file description is expected to "
2654 "have a short lifetime."
2655 msgstr ""
2656
2657 #. type: TP
2658 #: debian-trixie fedora-44 fedora-rawhide
2659 #, no-wrap
2660 msgid "B<RWH_WRITE_LIFE_MEDIUM>"
2661 msgstr "B<RWH_WRITE_LIFE_MEDIUM>"
2662
2663 #. type: Plain text
2664 #: debian-trixie fedora-44 fedora-rawhide
2665 msgid ""
2666 "Data written to this inode or via this open file description is expected to "
2667 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_SHORT>."
2668 msgstr ""
2669
2670 #. type: TP
2671 #: debian-trixie fedora-44 fedora-rawhide
2672 #, no-wrap
2673 msgid "B<RWH_WRITE_LIFE_LONG>"
2674 msgstr "B<RWH_WRITE_LIFE_LONG>"
2675
2676 #. type: Plain text
2677 #: debian-trixie fedora-44 fedora-rawhide
2678 msgid ""
2679 "Data written to this inode or via this open file description is expected to "
2680 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_MEDIUM>."
2681 msgstr ""
2682
2683 #. type: TP
2684 #: debian-trixie fedora-44 fedora-rawhide
2685 #, no-wrap
2686 msgid "B<RWH_WRITE_LIFE_EXTREME>"
2687 msgstr "B<RWH_WRITE_LIFE_EXTREME>"
2688
2689 #. type: Plain text
2690 #: debian-trixie fedora-44 fedora-rawhide
2691 msgid ""
2692 "Data written to this inode or via this open file description is expected to "
2693 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_LONG>."
2694 msgstr ""
2695
2696 #. type: Plain text
2697 #: debian-trixie fedora-44 fedora-rawhide
2698 msgid ""
2699 "All the write-specific hints are relative to each other, and no individual "
2700 "absolute meaning should be attributed to them."
2701 msgstr ""
2702
2703 #. type: Plain text
2704 #: debian-trixie fedora-44 fedora-rawhide
2705 msgid "For a successful call, the return value depends on the operation:"
2706 msgstr "Para una llamada con éxito, el valor devuelto depende de la operación:"
2707
2708 #. type: TP
2709 #: debian-trixie fedora-44 fedora-rawhide
2710 #, no-wrap
2711 msgid "B<F_DUPFD>"
2712 msgstr "B<F_DUPFD>"
2713
2714 #. type: Plain text
2715 #: debian-trixie fedora-44 fedora-rawhide
2716 #, fuzzy
2717 #| msgid "The new descriptor."
2718 msgid "The new file descriptor."
2719 msgstr "El nuevo descriptor."
2720
2721 #. type: TP
2722 #: debian-trixie fedora-44 fedora-rawhide
2723 #, no-wrap
2724 msgid "B<F_GETFD>"
2725 msgstr "B<F_GETFD>"
2726
2727 #. type: Plain text
2728 #: debian-trixie fedora-44 fedora-rawhide
2729 #, fuzzy
2730 #| msgid "Read the file descriptor's flags."
2731 msgid "Value of file descriptor flags."
2732 msgstr "Lee las banderas de un descriptor de fichero."
2733
2734 #. type: TP
2735 #: debian-trixie fedora-44 fedora-rawhide
2736 #, no-wrap
2737 msgid "B<F_GETFL>"
2738 msgstr "B<F_GETFL>"
2739
2740 #. type: Plain text
2741 #: debian-trixie fedora-44 fedora-rawhide
2742 #, fuzzy
2743 #| msgid "The file status flags"
2744 msgid "Value of file status flags."
2745 msgstr "Banderas de situación de un fichero"
2746
2747 #. type: TP
2748 #: debian-trixie fedora-44 fedora-rawhide
2749 #, no-wrap
2750 msgid "B<F_GETLEASE>"
2751 msgstr "B<F_GETLEASE>"
2752
2753 #. type: Plain text
2754 #: debian-trixie fedora-44 fedora-rawhide
2755 #, fuzzy
2756 #| msgid "The new descriptor."
2757 msgid "Type of lease held on file descriptor."
2758 msgstr "El nuevo descriptor."
2759
2760 #. type: TP
2761 #: debian-trixie fedora-44 fedora-rawhide
2762 #, no-wrap
2763 msgid "B<F_GETOWN>"
2764 msgstr "B<F_GETOWN>"
2765
2766 #. type: Plain text
2767 #: debian-trixie fedora-44 fedora-rawhide
2768 #, fuzzy
2769 #| msgid "Value of descriptor owner."
2770 msgid "Value of file descriptor owner."
2771 msgstr "Valor del propietario del descriptor."
2772
2773 #. type: TP
2774 #: debian-trixie fedora-44 fedora-rawhide
2775 #, no-wrap
2776 msgid "B<F_GETSIG>"
2777 msgstr "B<F_GETSIG>"
2778
2779 #. type: Plain text
2780 #: debian-trixie fedora-44 fedora-rawhide
2781 msgid ""
2782 "Value of signal sent when read or write becomes possible, or zero for "
2783 "traditional B<SIGIO> behavior."
2784 msgstr ""
2785 "Valor de la señal enviada cuando la lectura o la escritura son posibles o "
2786 "cero para el comportamiento tradicional con B<SIGIO>."
2787
2788 #. type: TP
2789 #: debian-trixie fedora-44 fedora-rawhide
2790 #, fuzzy, no-wrap
2791 #| msgid "B<F_GETLEASE>"
2792 msgid "B<F_GETPIPE_SZ>"
2793 msgstr "B<F_GETLEASE>"
2794
2795 #. type: TQ
2796 #: debian-trixie fedora-44 fedora-rawhide
2797 #, fuzzy, no-wrap
2798 #| msgid "B<EPIPE>"
2799 msgid "B<F_SETPIPE_SZ>"
2800 msgstr "B<EPIPE>"
2801
2802 #. type: Plain text
2803 #: debian-trixie fedora-44 fedora-rawhide
2804 msgid "The pipe capacity."
2805 msgstr ""
2806
2807 #. type: TP
2808 #: debian-trixie fedora-44 fedora-rawhide
2809 #, no-wrap
2810 msgid "B<F_GET_SEALS>"
2811 msgstr "B<F_GET_SEALS>"
2812
2813 #. type: Plain text
2814 #: debian-trixie fedora-44 fedora-rawhide
2815 msgid ""
2816 "A bit mask identifying the seals that have been set for the inode referred "
2817 "to by I<fd>."
2818 msgstr ""
2819
2820 #. type: TP
2821 #: debian-trixie fedora-44 fedora-rawhide
2822 #, fuzzy, no-wrap
2823 #| msgid "All other commands"
2824 msgid "All other operations"
2825 msgstr "Para cualquier otra orden"
2826
2827 #. type: Plain text
2828 #: debian-trixie fedora-44 fedora-rawhide
2829 msgid "Zero."
2830 msgstr "Cero."
2831
2832 #. type: Plain text
2833 #: debian-trixie fedora-44 fedora-rawhide
2834 #, fuzzy
2835 #| msgid ""
2836 #| "I<fd> is not an open file descriptor, or the command was B<F_SETLK> or "
2837 #| "B<F_SETLKW> and the file descriptor open mode doesn't match with the type "
2838 #| "of lock requested."
2839 msgid ""
2840 "I<op> is B<F_SETLK> or B<F_SETLKW> and the file descriptor open mode doesn't "
2841 "match with the type of lock requested."
2842 msgstr ""
2843 "I<fd> no es un descriptor de fichero abierto o la orden era B<F_SETLK> o "
2844 "B<F_SETLKW> y el modo de apertura del descriptor de fichero no coincide con "
2845 "el tipo de bloqueo solicitado."
2846
2847 #. type: TP
2848 #: debian-trixie fedora-44 fedora-rawhide
2849 #, no-wrap
2850 msgid "B<EBUSY>"
2851 msgstr "B<EBUSY>"
2852
2853 #. type: Plain text
2854 #: debian-trixie fedora-44 fedora-rawhide
2855 msgid ""
2856 "I<op> is B<F_SETPIPE_SZ> and the new pipe capacity specified in I<arg> is "
2857 "smaller than the amount of buffer space currently used to store data in the "
2858 "pipe."
2859 msgstr ""
2860
2861 #. type: Plain text
2862 #: debian-trixie fedora-44 fedora-rawhide
2863 msgid ""
2864 "I<op> is B<F_ADD_SEALS>, I<arg> includes B<F_SEAL_WRITE>, and there exists a "
2865 "writable, shared mapping on the file referred to by I<fd>."
2866 msgstr ""
2867
2868 #. type: TP
2869 #: debian-trixie fedora-44 fedora-rawhide
2870 #, no-wrap
2871 msgid "B<EDEADLK>"
2872 msgstr "B<EDEADLK>"
2873
2874 #. type: Plain text
2875 #: debian-trixie fedora-44 fedora-rawhide
2876 #, fuzzy
2877 #| msgid ""
2878 #| "It was detected that the specified B<F_SETLKW> command would cause a "
2879 #| "deadlock."
2880 msgid ""
2881 "It was detected that the specified B<F_SETLKW> operation would cause a "
2882 "deadlock."
2883 msgstr ""
2884 "Se ha detectado que la orden B<F_SETLKW> especificada provocaría un "
2885 "interbloqueo."
2886
2887 #. type: TP
2888 #: debian-trixie fedora-44 fedora-rawhide
2889 #, no-wrap
2890 msgid "B<EFAULT>"
2891 msgstr "B<EFAULT>"
2892
2893 #. type: Plain text
2894 #: debian-trixie fedora-44 fedora-rawhide
2895 msgid "I<lock> is outside your accessible address space."
2896 msgstr "I<lock> está fuera de su espacio de direcciones accesible."
2897
2898 #. type: TP
2899 #: debian-trixie fedora-44 fedora-rawhide
2900 #, no-wrap
2901 msgid "B<EINTR>"
2902 msgstr "B<EINTR>"
2903
2904 #. type: Plain text
2905 #: debian-trixie fedora-44 fedora-rawhide
2906 #, fuzzy
2907 #| msgid "The call was interrupted by a signal; see B<signal>(7)."
2908 msgid ""
2909 "I<op> is B<F_SETLKW> or B<F_OFD_SETLKW> and the operation was interrupted by "
2910 "a signal; see B<signal>(7)."
2911 msgstr "La llamada fue interrumpida por una señal; vea B<signal>(7)."
2912
2913 #. type: Plain text
2914 #: debian-trixie fedora-44 fedora-rawhide
2915 #, fuzzy
2916 #| msgid ""
2917 #| "For B<F_SETLKW>, the command was interrupted by a signal. For B<F_GETLK> "
2918 #| "and B<F_SETLK>, the command was interrupted by a signal before the lock "
2919 #| "was checked or acquired. Most likely when locking a remote file (e.g. "
2920 #| "locking over NFS), but can sometimes happen locally."
2921 msgid ""
2922 "I<op> is B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK>, or B<F_OFD_SETLK>, and the "
2923 "operation was interrupted by a signal before the lock was checked or "
2924 "acquired. Most likely when locking a remote file (e.g., locking over NFS), "
2925 "but can sometimes happen locally."
2926 msgstr ""
2927 "Para B<F_SETLKW>, la orden ha sido interrumpida por una señal. Para "
2928 "B<F_GETLK> y B<F_SETLK>, la orden ha sido interrumpida por una señal antes "
2929 "de que el bloqueo se haya comprobado o adquirido. Esto ocurre con más "
2930 "probabilidad al poner un bloqueo en un fichero remoto (por ejemplo, un "
2931 "bloqueo sobre NFS) pero algunas veces puede ocurrir localmente."
2932
2933 #. type: Plain text
2934 #: debian-trixie fedora-44 fedora-rawhide
2935 msgid ""
2936 "I<op> is B<F_ADD_SEALS> and I<arg> includes an unrecognized sealing bit."
2937 msgstr ""
2938
2939 #. type: Plain text
2940 #: debian-trixie fedora-44 fedora-rawhide
2941 msgid ""
2942 "I<op> is B<F_ADD_SEALS> or B<F_GET_SEALS> and the filesystem containing the "
2943 "inode referred to by I<fd> does not support sealing."
2944 msgstr ""
2945
2946 #. type: Plain text
2947 #: debian-trixie fedora-44 fedora-rawhide
2948 #, fuzzy
2949 #| msgid ""
2950 #| "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum "
2951 #| "allowable value. For B<F_SETSIG>, I<arg> is not an allowable signal "
2952 #| "number."
2953 msgid ""
2954 "I<op> is B<F_DUPFD> and I<arg> is negative or is greater than the maximum "
2955 "allowable value (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
2956 msgstr ""
2957 "Para B<F_DUPFD>, I<arg> es negativo o mayor que el valor máximo permitido. "
2958 "Para B<F_SETSIG>, I<arg> no es un número de señal permitido."
2959
2960 #. type: Plain text
2961 #: debian-trixie fedora-44 fedora-rawhide
2962 msgid "I<op> is B<F_SETSIG> and I<arg> is not an allowable signal number."
2963 msgstr ""
2964
2965 #. type: Plain text
2966 #: debian-trixie fedora-44 fedora-rawhide
2967 msgid ""
2968 "I<op> is B<F_OFD_SETLK>, B<F_OFD_SETLKW>, or B<F_OFD_GETLK>, and I<l_pid> "
2969 "was not specified as zero."
2970 msgstr ""
2971
2972 #. type: TP
2973 #: debian-trixie fedora-44 fedora-rawhide
2974 #, no-wrap
2975 msgid "B<EMFILE>"
2976 msgstr "B<EMFILE>"
2977
2978 #. type: Plain text
2979 #: debian-trixie fedora-44 fedora-rawhide
2980 #, fuzzy
2981 #| msgid ""
2982 #| "For B<F_DUPFD>, the process already has the maximum number of file "
2983 #| "descriptors open."
2984 msgid ""
2985 "I<op> is B<F_DUPFD> and the per-process limit on the number of open file "
2986 "descriptors has been reached."
2987 msgstr ""
2988 "Para B<F_DUPFD>, el proceso ya ha llegado al número máximo de descriptores "
2989 "de ficheros abiertos."
2990
2991 #. type: TP
2992 #: debian-trixie fedora-44 fedora-rawhide
2993 #, no-wrap
2994 msgid "B<ENOLCK>"
2995 msgstr "B<ENOLCK>"
2996
2997 #. type: Plain text
2998 #: debian-trixie fedora-44 fedora-rawhide
2999 msgid ""
3000 "Too many segment locks open, lock table is full, or a remote locking "
3001 "protocol failed (e.g., locking over NFS)."
3002 msgstr ""
3003 "Demasiados bloqueos de segmentos abiertos, la tabla de bloqueos está llena o "
3004 "ha fallado un protocolo de bloqueos remoto (por ejemplo, un bloqueo sobre "
3005 "NFS)."
3006
3007 #. type: TP
3008 #: debian-trixie fedora-44 fedora-rawhide
3009 #, no-wrap
3010 msgid "B<ENOTDIR>"
3011 msgstr "B<ENOTDIR>"
3012
3013 #. type: Plain text
3014 #: debian-trixie fedora-44 fedora-rawhide
3015 msgid ""
3016 "B<F_NOTIFY> was specified in I<op>, but I<fd> does not refer to a directory."
3017 msgstr ""
3018
3019 #. type: TP
3020 #: debian-trixie fedora-44 fedora-rawhide
3021 #, no-wrap
3022 msgid "B<EPERM>"
3023 msgstr "B<EPERM>"
3024
3025 #. type: Plain text
3026 #: debian-trixie fedora-44 fedora-rawhide
3027 msgid ""
3028 "I<op> is B<F_SETPIPE_SZ> and the soft or hard user pipe limit has been "
3029 "reached; see B<pipe>(7)."
3030 msgstr ""
3031
3032 #. type: Plain text
3033 #: debian-trixie fedora-44 fedora-rawhide
3034 msgid ""
3035 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
3036 "attribute set."
3037 msgstr ""
3038 "Se ha intentado quitar la bandera B<O_APPEND> sobre un fichero que tiene "
3039 "activo el atributo de ``sólo añadir'' (append-only)."
3040
3041 #. type: Plain text
3042 #: debian-trixie fedora-44 fedora-rawhide
3043 msgid ""
3044 "I<op> was B<F_ADD_SEALS>, but I<fd> was not open for writing or the current "
3045 "set of seals on the file already includes B<F_SEAL_SEAL>."
3046 msgstr ""
3047
3048 #. type: Plain text
3049 #: debian-trixie fedora-44 fedora-rawhide
3050 msgid "POSIX.1-2008."
3051 msgstr "POSIX.1-2008."
3052
3053 #. .P
3054 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
3055 #. type: Plain text
3056 #: debian-trixie fedora-44 fedora-rawhide
3057 msgid ""
3058 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
3059 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
3060 "Linux-specific. (Define the B<_GNU_SOURCE> macro to obtain these "
3061 "definitions.)"
3062 msgstr ""
3063
3064 #. type: Plain text
3065 #: debian-trixie fedora-44 fedora-rawhide
3066 msgid ""
3067 "B<F_OFD_SETLK>, B<F_OFD_SETLKW>, and B<F_OFD_GETLK> are Linux-specific (and "
3068 "one must define B<_GNU_SOURCE> to obtain their definitions), but work is "
3069 "being done to have them included in the next version of POSIX.1."
3070 msgstr ""
3071
3072 #. FIXME . Once glibc adds support, add a note about FTM requirements
3073 #. type: Plain text
3074 #: debian-trixie fedora-44 fedora-rawhide
3075 msgid "B<F_ADD_SEALS> and B<F_GET_SEALS> are Linux-specific."
3076 msgstr ""
3077
3078 #. type: Plain text
3079 #: debian-trixie fedora-44 fedora-rawhide
3080 msgid "SVr4, 4.3BSD, POSIX.1-2001."
3081 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
3082
3083 #. type: Plain text
3084 #: debian-trixie fedora-44 fedora-rawhide
3085 msgid ""
3086 "Only the operations B<F_DUPFD>, B<F_GETFD>, B<F_SETFD>, B<F_GETFL>, "
3087 "B<F_SETFL>, B<F_GETLK>, B<F_SETLK>, and B<F_SETLKW> are specified in "
3088 "POSIX.1-2001."
3089 msgstr ""
3090
3091 #. .BR _BSD_SOURCE ,
3092 #. or
3093 #. type: Plain text
3094 #: debian-trixie fedora-44 fedora-rawhide
3095 msgid ""
3096 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001. (To get their "
3097 "definitions, define either B<_XOPEN_SOURCE> with the value 500 or greater, "
3098 "or B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
3099 msgstr ""
3100
3101 #. type: Plain text
3102 #: debian-trixie fedora-44 fedora-rawhide
3103 msgid ""
3104 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008. (To get this definition, "
3105 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
3106 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
3107 msgstr ""
3108
3109 #. type: SH
3110 #: debian-trixie fedora-44 fedora-rawhide
3111 #, no-wrap
3112 msgid "NOTES"
3113 msgstr "NOTAS"
3114
3115 #. type: Plain text
3116 #: debian-trixie fedora-44 fedora-rawhide
3117 msgid ""
3118 "The errors returned by B<dup2>(2) are different from those returned by "
3119 "B<F_DUPFD>."
3120 msgstr ""
3121 "Los errores devueltos por B<dup2>(2) son distintos de aquéllos dados por "
3122 "B<F_DUPFD>."
3123
3124 #. type: SS
3125 #: debian-trixie fedora-44 fedora-rawhide
3126 #, fuzzy, no-wrap
3127 #| msgid "Advisory locking"
3128 msgid "File locking"
3129 msgstr "Bloqueos (candados) consultivos"
3130
3131 #. type: Plain text
3132 #: debian-trixie fedora-44 fedora-rawhide
3133 msgid ""
3134 "The original Linux B<fcntl>() system call was not designed to handle large "
3135 "file offsets (in the I<flock> structure). Consequently, an B<fcntl64>() "
3136 "system call was added in Linux 2.4. The newer system call employs a "
3137 "different structure for file locking, I<flock64>, and corresponding "
3138 "operations, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>. However, these "
3139 "details can be ignored by applications using glibc, whose B<fcntl>() "
3140 "wrapper function transparently employs the more recent system call where it "
3141 "is available."
3142 msgstr ""
3143
3144 #. type: SS
3145 #: debian-trixie fedora-44 fedora-rawhide
3146 #, no-wrap
3147 msgid "Record locks"
3148 msgstr ""
3149
3150 #. type: Plain text
3151 #: debian-trixie fedora-44 fedora-rawhide
3152 #, fuzzy
3153 #| msgid ""
3154 #| "Since kernel 2.0, there is no interaction between the types of lock "
3155 #| "placed by B<flock>(2) and B<fcntl>()."
3156 msgid ""
3157 "Since Linux 2.0, there is no interaction between the types of lock placed by "
3158 "B<flock>(2) and B<fcntl>()."
3159 msgstr ""
3160 "Desde el núcleo 2.0, no hay interacción entre los tipos de bloqueo colocados "
3161 "por B<flock>(2) y B<fcntl>()."
3162
3163 #. e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
3164 #. documents it in fcntl(5). mtk, May 2007
3165 #. Also, FreeBSD documents it (Apr 2014).
3166 #. type: Plain text
3167 #: debian-trixie fedora-44 fedora-rawhide
3168 #, fuzzy
3169 #| msgid ""
3170 #| "Several systems have more fields in I<struct flock> such as e.g. "
3171 #| "I<l_sysid>. Clearly, I<l_pid> alone is not going to be very useful if "
3172 #| "the process holding the lock may live on a different machine."
3173 msgid ""
3174 "Several systems have more fields in I<struct flock> such as, for example, "
3175 "I<l_sysid> (to identify the machine where the lock is held). Clearly, "
3176 "I<l_pid> alone is not going to be very useful if the process holding the "
3177 "lock may live on a different machine; on Linux, while present on some "
3178 "architectures (such as MIPS32), this field is not used."
3179 msgstr ""
3180 "Otros sistemas tienen más campos en I<struct flock> como, por ejemplo, "
3181 "I<l_sysid>. Evidentemente, I<l_pid> sólo no va a ser muy útil si el proceso "
3182 "que posee el bloqueo puede residir en una máquina diferente."
3183
3184 #. type: SS
3185 #: debian-trixie fedora-44 fedora-rawhide
3186 #, no-wrap
3187 msgid "Record locking and NFS"
3188 msgstr ""
3189
3190 #
3191 #
3192 #
3193 #. Neil Brown: With NFSv3 the failure mode is the reverse. If
3194 #. the server loses contact with a client then any lock stays in place
3195 #. indefinitely ("why can't I read my mail"... I remember it well).
3196 #. Jeff Layton:
3197 #. Note that this is not a firm timeout. The server runs a job
3198 #. periodically to clean out expired stateful objects, and it's likely
3199 #. that there is some time (maybe even up to another whole lease period)
3200 #. between when the timeout expires and the job actually runs. If the
3201 #. client gets a RENEW in there within that window, its lease will be
3202 #. renewed and its state preserved.
3203 #. type: Plain text
3204 #: debian-trixie fedora-44 fedora-rawhide
3205 msgid ""
3206 "Before Linux 3.12, if an NFSv4 client loses contact with the server for a "
3207 "period of time (defined as more than 90 seconds with no communication), it "
3208 "might lose and regain a lock without ever being aware of the fact. (The "
3209 "period of time after which contact is assumed lost is known as the NFSv4 "
3210 "leasetime. On a Linux NFS server, this can be determined by looking at I</"
3211 "proc/fs/nfsd/nfsv4leasetime>, which expresses the period in seconds. The "
3212 "default value for this file is 90.) This scenario potentially risks data "
3213 "corruption, since another process might acquire a lock in the intervening "
3214 "period and perform file I/O."
3215 msgstr ""
3216
3217 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
3218 #. commit f6de7a39c181dfb8a2c534661a53c73afb3081cd
3219 #. type: Plain text
3220 #: debian-trixie fedora-44 fedora-rawhide
3221 msgid ""
3222 "Since Linux 3.12, if an NFSv4 client loses contact with the server, any I/O "
3223 "to the file by a process which \"thinks\" it holds a lock will fail until "
3224 "that process closes and reopens the file. A kernel parameter, "
3225 "I<nfs.recover_lost_locks>, can be set to 1 to obtain the pre-3.12 behavior, "
3226 "whereby the client will attempt to recover lost locks when contact is "
3227 "reestablished with the server. Because of the attendant risk of data "
3228 "corruption, this parameter defaults to 0 (disabled)."
3229 msgstr ""
3230
3231 #. type: SH
3232 #: debian-trixie fedora-44 fedora-rawhide
3233 #, no-wrap
3234 msgid "BUGS"
3235 msgstr "ERRORES"
3236
3237 #. type: SS
3238 #: debian-trixie fedora-44 fedora-rawhide
3239 #, no-wrap
3240 msgid "F_SETFL"
3241 msgstr "F_SETFL"
3242
3243 #. FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
3244 #. via fcntl(2), but currently Linux does not permit this
3245 #. See http://bugzilla.kernel.org/show_bug.cgi?id=5994
3246 #. type: Plain text
3247 #: debian-trixie fedora-44 fedora-rawhide
3248 msgid ""
3249 "It is not possible to use B<F_SETFL> to change the state of the B<O_DSYNC> "
3250 "and B<O_SYNC> flags. Attempts to change the state of these flags are "
3251 "silently ignored."
3252 msgstr ""
3253
3254 #. type: SS
3255 #: debian-trixie fedora-44 fedora-rawhide
3256 #, no-wrap
3257 msgid "F_GETOWN"
3258 msgstr "F_GETOWN"
3259
3260 #. glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
3261 #. mtk, Dec 04: some limited testing on alpha and ia64 seems to
3262 #. indicate that ANY negative PGID value will cause F_GETOWN
3263 #. to misinterpret the return as an error. Some other architectures
3264 #. seem to have the same range check as i386.
3265 #. type: Plain text
3266 #: debian-trixie fedora-44 fedora-rawhide
3267 msgid ""
3268 "A limitation of the Linux system call conventions on some architectures "
3269 "(notably i386) means that if a (negative) process group ID to be returned "
3270 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
3271 "wrongly interpreted by glibc as an error in the system call; that is, the "
3272 "return value of B<fcntl>() will be -1, and I<errno> will contain the "
3273 "(positive) process group ID. The Linux-specific B<F_GETOWN_EX> operation "
3274 "avoids this problem. Since glibc 2.11, glibc makes the kernel B<F_GETOWN> "
3275 "problem invisible by implementing B<F_GETOWN> using B<F_GETOWN_EX>."
3276 msgstr ""
3277
3278 #. type: SS
3279 #: debian-trixie fedora-44 fedora-rawhide
3280 #, no-wrap
3281 msgid "F_SETOWN"
3282 msgstr "F_SETOWN"
3283
3284 #. type: Plain text
3285 #: debian-trixie fedora-44 fedora-rawhide
3286 msgid ""
3287 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
3288 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
3289 "a process (group) other than the caller. In this case, B<fcntl>() can "
3290 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
3291 "is one that the caller has permission to send signals to. Despite this "
3292 "error return, the file descriptor owner is set, and signals will be sent to "
3293 "the owner."
3294 msgstr ""
3295
3296 #. type: SS
3297 #: debian-trixie fedora-44 fedora-rawhide
3298 #, no-wrap
3299 msgid "Deadlock detection"
3300 msgstr ""
3301
3302 #. type: Plain text
3303 #: debian-trixie fedora-44 fedora-rawhide
3304 msgid ""
3305 "The deadlock-detection algorithm employed by the kernel when dealing with "
3306 "B<F_SETLKW> requests can yield both false negatives (failures to detect "
3307 "deadlocks, leaving a set of deadlocked processes blocked indefinitely) and "
3308 "false positives (B<EDEADLK> errors when there is no deadlock). For example, "
3309 "the kernel limits the lock depth of its dependency search to 10 steps, "
3310 "meaning that circular deadlock chains that exceed that size will not be "
3311 "detected. In addition, the kernel may falsely indicate a deadlock when two "
3312 "or more processes created using the B<clone>(2) B<CLONE_FILES> flag place "
3313 "locks that appear (to the kernel) to conflict."
3314 msgstr ""
3315
3316 #
3317 #. http://marc.info/?l=linux-kernel&m=119013491707153&w=2
3318 #. Reconfirmed by Jeff Layton
3319 #. From: Jeff Layton <jlayton <at> redhat.com>
3320 #. Subject: Re: Status of fcntl() mandatory locking
3321 #. Newsgroups: gmane.linux.file-systems
3322 #. Date: 2014-04-28 10:07:57 GMT
3323 #. http://thread.gmane.org/gmane.linux.file-systems/84481/focus=84518
3324 #. type: Plain text
3325 #: debian-trixie fedora-44 fedora-rawhide
3326 msgid ""
3327 "The Linux implementation of mandatory locking is subject to race conditions "
3328 "which render it unreliable: a B<write>(2) call that overlaps with a lock "
3329 "may modify data after the mandatory lock is acquired; a B<read>(2) call "
3330 "that overlaps with a lock may detect changes to data that were made only "
3331 "after a write lock was acquired. Similar races exist between mandatory "
3332 "locks and B<mmap>(2). It is therefore inadvisable to rely on mandatory "
3333 "locking."
3334 msgstr ""
3335
3336 #. type: Plain text
3337 #: debian-trixie fedora-44 fedora-rawhide
3338 msgid ""
3339 "I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the Linux "
3340 "kernel source directory I<Documentation/filesystems/> (on older kernels, "
3341 "these files are directly under the I<Documentation/> directory, and "
3342 "I<mandatory-locking.txt> is called I<mandatory.txt>)"
3343 msgstr ""
3344
3345 #. type: TH
3346 #: fedora-44 fedora-rawhide
3347 #, no-wrap
3348 msgid "2024-07-23"
3349 msgstr "23 ​​Julio 2024"
3350
3351 #. type: TH
3352 #: fedora-44 fedora-rawhide
3353 #, no-wrap
3354 msgid "Linux man-pages 6.13"
3355 msgstr "Páginas de Manual de Linux 6.13"
3356
3357 #. type: TH
3358 #: mageia-cauldron
3359 #, no-wrap
3360 msgid "Linux man-pages 6.17"
3361 msgstr "Páginas de Manual de Linux 6.17"
3362
3363 #. type: TH
3364 #: opensuse-leap-16-1 opensuse-tumbleweed
3365 #, no-wrap
3366 msgid "Linux man-pages (unreleased)"
3367 msgstr "Páginas de Manual de Linux (no publicadas)"