Debian Codegraph @

po/es/man2/dup.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 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
10 "PO-Revision-Date: 2000-01-08 19:53+0200\n"
11 "Last-Translator: Juan Piernas <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, fuzzy, no-wrap
24 #| msgid "dup2()"
25 msgid "dup"
26 msgstr "dup2()"
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 "dup, dup2, dup3 - duplicate a file descriptor"
53 msgstr "dup, dup2, dup3 - duplica un 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>unistd.hE<gt>>\n"
80 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<int dup(int >I<oldfd>B<);>\n"
88 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
89 msgstr ""
90 "B<int dup(int >I<oldfd>B<);>\n"
91 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
99 #| "B<#include E<lt>fcntl.hE<gt>>\n"
100 msgid ""
101 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
102 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
103 "B<#include E<lt>unistd.hE<gt>>\n"
104 msgstr ""
105 "B<#define _GNU_SOURCE> /* Vea feature_test_macros(7) */\n"
106 "B<#include E<lt>fcntl.hE<gt>>\n"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
113 msgstr "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
114
115 #. type: SH
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "DESCRIPTION"
120 msgstr "DESCRIPCIÓN"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The B<dup>() system call allocates a new file descriptor that refers to the "
127 "same open file description as the descriptor I<oldfd>. (For an explanation "
128 "of open file descriptions, see B<open>(2).) The new file descriptor number "
129 "is guaranteed to be the lowest-numbered file descriptor that was unused in "
130 "the calling process."
131 msgstr ""
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, fuzzy
137 #| msgid ""
138 #| "After successful return of B<dup> or B<dup2>, the old and new descriptors "
139 #| "may be used interchangeably. They share locks, file position pointers and "
140 #| "flags; for example, if the file position is modified by using B<lseek> on "
141 #| "one of the descriptors, the position is also changed for the other."
142 msgid ""
143 "After a successful return, the old and new file descriptors may be used "
144 "interchangeably. Since the two file descriptors refer to the same open file "
145 "description, they share file offset and file status flags; for example, if "
146 "the file offset is modified by using B<lseek>(2) on one of the file "
147 "descriptors, the offset is also changed for the other file descriptor."
148 msgstr ""
149 "Después de una llamada a B<dup> o B<dup2> con éxito, los descriptores "
150 "antiguo y nuevo pueden usarse indiferentemente. Comparten candados (locks), "
151 "indicadores de posición de fichero y banderas (flags); por ejemplo, si la "
152 "posición del fichero se modifica usando B<lseek> en uno de los descriptores, "
153 "la posición en el otro también cambia."
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "The two file descriptors do not share file descriptor flags (the close-on-"
160 "exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for "
161 "the duplicate descriptor is off."
162 msgstr ""
163
164 #. type: SS
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "dup2()"
169 msgstr "dup2()"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The B<dup2>() system call performs the same task as B<dup>(), but instead "
176 "of using the lowest-numbered unused file descriptor, it uses the file "
177 "descriptor number specified in I<newfd>. In other words, the file "
178 "descriptor I<newfd> is adjusted so that it now refers to the same open file "
179 "description as I<oldfd>."
180 msgstr ""
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "If the file descriptor I<newfd> was previously open, it is closed before "
187 "being reused; the close is performed silently (i.e., any errors during the "
188 "close are not reported by B<dup2>())."
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "The steps of closing and reusing the file descriptor I<newfd> are performed "
196 "I<atomically>. This is important, because trying to implement equivalent "
197 "functionality using B<close>(2) and B<dup>() would be subject to race "
198 "conditions, whereby I<newfd> might be reused between the two steps. Such "
199 "reuse could happen because the main program is interrupted by a signal "
200 "handler that allocates a file descriptor, or because a parallel thread "
201 "allocates a file descriptor."
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid "Note the following points:"
208 msgstr ""
209
210 #. type: IP
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "\\[bu]"
215 msgstr "\\[bu]"
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
222 "I<newfd> is not closed."
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
230 "I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>."
231 msgstr ""
232
233 #. type: SS
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "dup3()"
238 msgstr "dup3()"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid "B<dup3>() is the same as B<dup2>(), except that:"
244 msgstr ""
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "The caller can force the close-on-exec flag to be set for the new file "
251 "descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of "
252 "the same flag in B<open>(2) for reasons why this may be useful."
253 msgstr ""
254
255 #. Ulrich Drepper, LKML, 2008-10-09:
256 #. We deliberately decided on this change. Otherwise, what is the
257 #. result of dup3(fd, fd, O_CLOEXEC)?
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>."
263 msgstr ""
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "RETURN VALUE"
270 msgstr "VALOR DEVUELTO"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, fuzzy
276 #| msgid ""
277 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
278 #| "set appropriately."
279 msgid ""
280 "On success, these system calls return the new file descriptor. On error, -1 "
281 "is returned, and I<errno> is set to indicate the error."
282 msgstr ""
283 "En caso de éxito se devuelve cero. En caso de error se devuelve -1, y "
284 "I<errno> se configura adecuadamente."
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "ERRORS"
291 msgstr "ERRORES"
292
293 #. type: TP
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "B<EBADF>"
298 msgstr "B<EBADF>"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "I<oldfd> isn't an open file descriptor."
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "I<newfd> is out of the allowed range for file descriptors (see the "
311 "discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
312 msgstr ""
313
314 #. type: TP
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "B<EBUSY>"
319 msgstr "B<EBUSY>"
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race "
326 "condition with B<open>(2) and B<dup>()."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<EINTR>"
334 msgstr "B<EINTR>"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "The B<dup2>() or B<dup3>() call was interrupted by a signal; see "
341 "B<signal>(7)."
342 msgstr ""
343
344 #. type: TP
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "B<EINVAL>"
349 msgstr "B<EINVAL>"
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid "(B<dup3>()) I<flags> contain an invalid value."
355 msgstr ""
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "(B<dup3>()) I<oldfd> was equal to I<newfd>."
361 msgstr ""
362
363 #. type: TP
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "B<EMFILE>"
368 msgstr "B<EMFILE>"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "The per-process limit on the number of open file descriptors has been "
375 "reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
376 msgstr ""
377
378 #. type: TP
379 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
380 #: opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "B<ENOMEM>"
383 msgstr "B<ENOMEM>"
384
385 #. type: Plain text
386 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
387 #: opensuse-leap-16-1 opensuse-tumbleweed
388 msgid "Insufficient kernel memory was available."
389 msgstr "No hay disponible suficiente memoria del núcleo."
390
391 #. type: SH
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "STANDARDS"
396 msgstr "ESTÁNDARES"
397
398 #. type: Plain text
399 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
400 #: opensuse-tumbleweed
401 msgid "POSIX.1-2024."
402 msgstr "POSIX.1-2024."
403
404 #. type: SH
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "HISTORY"
409 msgstr "HISTORIAL"
410
411 #. type: TP
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "B<dup>()"
416 msgstr ""
417
418 #. type: TQ
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, fuzzy, no-wrap
422 #| msgid "dup2()"
423 msgid "B<dup2>()"
424 msgstr "dup2()"
425
426 #. SVr4 documents additional
427 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
428 #. The EBUSY return is Linux-specific.
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 msgid "4.3BSD, SVr4, POSIX.1-1988."
433 msgstr "4.3BSD, SVr4, POSIX.1-1988."
434
435 #. type: TP
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, fuzzy, no-wrap
439 #| msgid "dup3()"
440 msgid "B<dup3>()"
441 msgstr "dup3()"
442
443 #. type: Plain text
444 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
445 #: opensuse-tumbleweed
446 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
447 msgstr ""
448
449 #. type: SH
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "NOTES"
454 msgstr "NOTAS"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "The error returned by B<dup2>() is different from that returned by "
461 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some "
462 "systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>."
463 msgstr ""
464 "El error devuelto por B<dup2>() es diferente del devuelto por B<fcntl(>..., "
465 "B<F_DUPFD>, ...B<)> cuando I<newfd> está fuera de rango. En algunos sistemas "
466 "B<dup2>() a veces devuelve B<EINVAL> como B<F_DUPFD>."
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "If I<newfd> was open, any errors that would have been reported at "
473 "B<close>(2) time are lost. If this is of concern, then\\[em]unless the "
474 "program is single-threaded and does not allocate file descriptors in signal "
475 "handlers\\[em]the correct approach is I<not> to close I<newfd> before "
476 "calling B<dup2>(), because of the race condition described above. Instead, "
477 "code something like the following could be used:"
478 msgstr ""
479
480 #. type: Plain text
481 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
482 #: opensuse-tumbleweed
483 #, no-wrap
484 msgid ""
485 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
486 " be used to check for close() errors; an EBADF error\n"
487 " means that \\[aq]newfd\\[aq] was not open. */\n"
488 "\\&\n"
489 "tmpfd = dup(newfd);\n"
490 "if (tmpfd == -1 && errno != EBADF) {\n"
491 " /* Handle unexpected dup() error. */\n"
492 "}\n"
493 "\\&\n"
494 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
495 "\\&\n"
496 "if (dup2(oldfd, newfd) == -1) {\n"
497 " /* Handle dup2() error. */\n"
498 "}\n"
499 "\\&\n"
500 "/* Now check for close() errors on the file originally\n"
501 " referred to by \\[aq]newfd\\[aq]. */\n"
502 "\\&\n"
503 "if (tmpfd != -1) {\n"
504 " if (close(tmpfd) == -1) {\n"
505 " /* Handle errors from close. */\n"
506 " }\n"
507 "}\n"
508 msgstr ""
509
510 #. type: SH
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "SEE ALSO"
515 msgstr "VÉASE TAMBIÉN"
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
521 msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
522
523 #. type: TH
524 #: debian-trixie
525 #, no-wrap
526 msgid "2024-05-02"
527 msgstr "2 Mayo 2024"
528
529 #. type: TH
530 #: debian-trixie
531 #, no-wrap
532 msgid "Linux man-pages 6.9.1"
533 msgstr "Páginas de Manual de Linux 6.9.1"
534
535 #. type: Plain text
536 #: debian-trixie
537 msgid "Standard C library (I<libc>, I<-lc>)"
538 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
539
540 #. type: Plain text
541 #: debian-trixie fedora-44 fedora-rawhide
542 msgid "POSIX.1-2008."
543 msgstr "POSIX.1-2008."
544
545 #. type: Plain text
546 #: debian-trixie fedora-44 fedora-rawhide
547 msgid "Linux."
548 msgstr "Linux."
549
550 #. SVr4 documents additional
551 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
552 #. The EBUSY return is Linux-specific.
553 #. type: Plain text
554 #: debian-trixie fedora-44 fedora-rawhide
555 msgid "POSIX.1-2001, SVr4, 4.3BSD."
556 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
557
558 #. type: Plain text
559 #: debian-trixie fedora-44 fedora-rawhide
560 msgid "Linux 2.6.27, glibc 2.9."
561 msgstr "Linux 2.6.27, glibc 2.9."
562
563 #. type: Plain text
564 #: debian-trixie fedora-44 fedora-rawhide
565 #, no-wrap
566 msgid ""
567 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
568 " be used to check for close() errors; an EBADF error\n"
569 " means that \\[aq]newfd\\[aq] was not open. */\n"
570 "\\&\n"
571 "tmpfd = dup(newfd);\n"
572 "if (tmpfd == -1 && errno != EBADF) {\n"
573 " /* Handle unexpected dup() error. */\n"
574 "}\n"
575 "\\&\n"
576 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
577 "\\&\n"
578 "if (dup2(oldfd, newfd) == -1) {\n"
579 " /* Handle dup2() error. */\n"
580 "}\n"
581 "\\&\n"
582 "/* Now check for close() errors on the file originally\n"
583 " referred to by \\[aq]newfd\\[aq]. */\n"
584 "\\&\n"
585 "if (tmpfd != -1) {\n"
586 " if (close(tmpfd) == -1) {\n"
587 " /* Handle errors from close. */\n"
588 " }\n"
589 "}\n"
590 msgstr ""
591
592 #. type: TH
593 #: fedora-44 fedora-rawhide
594 #, no-wrap
595 msgid "2024-11-01"
596 msgstr "1 Noviembre 2024"
597
598 #. type: TH
599 #: fedora-44 fedora-rawhide
600 #, no-wrap
601 msgid "Linux man-pages 6.13"
602 msgstr "Páginas de Manual de Linux 6.13"
603
604 #. type: TH
605 #: mageia-cauldron
606 #, no-wrap
607 msgid "Linux man-pages 6.17"
608 msgstr "Páginas de Manual de Linux 6.17"
609
610 #. type: TH
611 #: opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "Linux man-pages (unreleased)"
614 msgstr "Páginas de Manual de Linux (no publicadas)"