Debian Codegraph @

po/de/man2/dup.2.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Aldo Valente <[email protected]>
5 # Chris Leick <[email protected]>, 2010-2016.
6 # Helge Kreutzmann <[email protected]>, 2021.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 4.28.0\n"
10 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
11 "PO-Revision-Date: 2025-11-01 14:21+0100\n"
12 "Last-Translator: Chris Leick <[email protected]>\n"
13 "Language-Team: German <[email protected]>\n"
14 "Language: de\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
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "dup"
25 msgstr "dup"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8. Februar 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Linux man-pages 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "BEZEICHNUNG"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "dup, dup2, dup3 - duplicate a file descriptor"
51 msgstr "dup, dup2 - dupliziert einen Datei-Deskriptor"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTHEK"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "ÜBERSICHT"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>unistd.hE<gt>>\n"
78 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int dup(int >I<oldfd>B<);>\n"
86 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
87 msgstr ""
88 "B<int dup(int >I<altdd>B<);>\n"
89 "B<int dup2(int >I<altdd>B<, int >I<neudd>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
97 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
98 "B<#include E<lt>unistd.hE<gt>>\n"
99 msgstr ""
100 "B<#define _GNU_SOURCE> /* siehe feature_test_macros(7) */\n"
101 "B<#include E<lt>fcntl.hE<gt>> /* Definition der B<O_*>-Konstanten */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
109 msgstr "B<int dup3(int >I<altdd>B<, int >I<neudd>B<, int >I<schalter>B<);>\n"
110
111 #. type: SH
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid "DESCRIPTION"
116 msgstr "BESCHREIBUNG"
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "The B<dup>() system call allocates a new file descriptor that refers to the "
123 "same open file description as the descriptor I<oldfd>. (For an explanation "
124 "of open file descriptions, see B<open>(2).) The new file descriptor number "
125 "is guaranteed to be the lowest-numbered file descriptor that was unused in "
126 "the calling process."
127 msgstr ""
128 "Der Systemaufruf B<dup>() reserviert einen neuen Dateideskriptor, der sich "
129 "auf die gleiche offene Dateideskription wie der Deskriptor I<altdd> bezieht. "
130 "(Für eine Beschreibung von offenen Dateideskriptionen, siehe B<open>(2).) "
131 "Die neue Dateideskriptornummer ist garantiert der Dateideskriptor mit der "
132 "niedrigsten Nummer, die in dem aufrufenden Prozess verfügbar war."
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "After a successful return, the old and new file descriptors may be used "
139 "interchangeably. Since the two file descriptors refer to the same open file "
140 "description, they share file offset and file status flags; for example, if "
141 "the file offset is modified by using B<lseek>(2) on one of the file "
142 "descriptors, the offset is also changed for the other file descriptor."
143 msgstr ""
144 "Nach der erfolgreichen Rückkehr können die alten und neuen Datei-"
145 "Deskriptoren synonym benutzt werden. Da die zwei Dateideskriptoren sich auf "
146 "die gleichen offenen Dateideskriptionen beziehen, teilen sie sich dadurch "
147 "Dateiversatz (file offset) und Dateistatusschalter. Falls der Dateiversatz "
148 "zum Beispiel durch B<lseek>(2) auf einem der Dateideskriptoren geändert "
149 "wurde, wird der Versatz auch für den anderen Dateideskriptor verändert."
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "The two file descriptors do not share file descriptor flags (the close-on-"
156 "exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for "
157 "the duplicate descriptor is off."
158 msgstr ""
159 "Die beiden Dateideskriptoren teilen sich keine Datei-Deskriptor-Schalter "
160 "(den Schalter »close-on-exec«). Der Schalter »close-on-exec« (B<FD_CLOEXEC>; "
161 "siehe B<fcntl>(2)) für das Duplikat ist aus."
162
163 #. type: SS
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "dup2()"
168 msgstr "dup2()"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "The B<dup2>() system call performs the same task as B<dup>(), but instead "
175 "of using the lowest-numbered unused file descriptor, it uses the file "
176 "descriptor number specified in I<newfd>. In other words, the file "
177 "descriptor I<newfd> is adjusted so that it now refers to the same open file "
178 "description as I<oldfd>."
179 msgstr ""
180 "Der Systemaufruf B<dup2>() führt dieselben Aufgaben wie B<dup>() durch, "
181 "verwendet jedoch statt des kleinsten nicht benutzten Dateideskriptors die in "
182 "I<neudd> angegebene Zahl. Mit anderen Worten, der Dateideskriptor I<neudd> "
183 "wird angepasst, so dass er sich jetzt auf die gleiche offene "
184 "Dateideskription wie I<altdd> bezieht."
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "If the file descriptor I<newfd> was previously open, it is closed before "
191 "being reused; the close is performed silently (i.e., any errors during the "
192 "close are not reported by B<dup2>())."
193 msgstr ""
194 "Falls der Dateideskriptor I<neudd> vorher offen war, wird er vor der "
195 "erneuten Benutzung geschlossen; das Schließen erfolgt stillschweigend (d.h. "
196 "es werden mögliche Fehler während des Schließens nicht durch B<dup2>() "
197 "gemeldet)."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "The steps of closing and reusing the file descriptor I<newfd> are performed "
204 "I<atomically>. This is important, because trying to implement equivalent "
205 "functionality using B<close>(2) and B<dup>() would be subject to race "
206 "conditions, whereby I<newfd> might be reused between the two steps. Such "
207 "reuse could happen because the main program is interrupted by a signal "
208 "handler that allocates a file descriptor, or because a parallel thread "
209 "allocates a file descriptor."
210 msgstr ""
211 "Die Schritte zum Schließen und erneuten Verwenden des Dateideskriptors "
212 "I<neudd> werden I<atomar> (als logische Einheit) durchgeführt. Dies ist "
213 "wichtig, da der Versuch gleichwertige Funktionalität mittels B<close>(2) und "
214 "B<dup>()zu implementieren, Gegenstand von Race Conditions sein könnte, bei "
215 "denen I<neudd> zwischen zwei Schritten erneut benutzt wird. Ein derartiges "
216 "erneutes Verwenden kann vorkommen, da das Hauptprogramm durch ein "
217 "Signalverarbeitungsprogramm unterbrochen wird, der einen Dateideskriptor "
218 "reserviert oder weil ein paralleler Thread einen Dateideskriptor reserviert."
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "Note the following points:"
224 msgstr "Beachten Sie die folgenden Punkte:"
225
226 #. type: IP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "\\[bu]"
231 msgstr "\\[bu]"
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
238 "I<newfd> is not closed."
239 msgstr ""
240 "Falls I<altdd> kein gültiger Datei-Deskriptor ist, schlägt der Aufruf fehl "
241 "und I<neudd> wird nicht geschlossen."
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
248 "I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>."
249 msgstr ""
250 "Falls I<altdd> ein gültiger Datei-Deskriptor ist und I<neudd> den gleichen "
251 "Wert wie I<altdd> hat, dann tut B<dup2>() nichts und gibt I<neudd> zurück."
252
253 #. type: SS
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "dup3()"
258 msgstr "dup3()"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "B<dup3>() is the same as B<dup2>(), except that:"
264 msgstr "B<dup3>() entspricht B<dup2>(), außer dass:"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "The caller can force the close-on-exec flag to be set for the new file "
271 "descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of "
272 "the same flag in B<open>(2) for reasons why this may be useful."
273 msgstr ""
274 "Der Aufrufende kann erzwingen, dass der Schalter »close-on-exec« für den "
275 "neuen Datei-Deskriptor durch Angabe von B<O_CLOEXEC> in I<schalter> gesetzt "
276 "wird. Lesen Sie die Beschreibung des gleichnamigen Schalters in B<open>(2), "
277 "um zu erfahren, warum dies nützlich sein könnte."
278
279 #. Ulrich Drepper, LKML, 2008-10-09:
280 #. We deliberately decided on this change. Otherwise, what is the
281 #. result of dup3(fd, fd, O_CLOEXEC)?
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>."
287 msgstr ""
288 "Falls I<altdd> I<neudd> entspricht, schlägt B<dup3>() mit dem Fehler "
289 "B<EINVAL> fehl."
290
291 #. type: SH
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "RETURN VALUE"
296 msgstr "RÜCKGABEWERT"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "On success, these system calls return the new file descriptor. On error, -1 "
303 "is returned, and I<errno> is set to indicate the error."
304 msgstr ""
305 "Bei Erfolg geben diese Systemaufrufe den neuen Dateideskriptor zurück. Im "
306 "Fehlerfall wird -1 zurückgegeben und I<errno> gesetzt, um den Fehler "
307 "anzuzeigen."
308
309 #. type: SH
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "ERRORS"
314 msgstr "FEHLER"
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "B<EBADF>"
321 msgstr "B<EBADF>"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid "I<oldfd> isn't an open file descriptor."
327 msgstr "I<altdd> ist kein Deskriptor für eine geöffnete Datei."
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "I<newfd> is out of the allowed range for file descriptors (see the "
334 "discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
335 msgstr ""
336 "I<neudd> liegt außerhalb des erlaubten Bereichs für Datei-Deskriptoren "
337 "(siehe die Erläuterung von B<RLIMIT_NOFILE> in B<getrlimit>(2))."
338
339 #. type: TP
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "B<EBUSY>"
344 msgstr "B<EBUSY>"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race "
351 "condition with B<open>(2) and B<dup>()."
352 msgstr ""
353 "(nur Linux) Dies könnte von B<dup2>() oder B<dup3>() während einer "
354 "Gleichzeitigkeitsbedingung mit B<open>(2) und B<dup>() zurückgegeben werden."
355
356 #. type: TP
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "B<EINTR>"
361 msgstr "B<EINTR>"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "The B<dup2>() or B<dup3>() call was interrupted by a signal; see "
368 "B<signal>(7)."
369 msgstr ""
370 "Der Aufruf von B<dup2>() oder B<dup3>() wurde von einem Signal unterbrochen; "
371 "lesen Sie B<signal>(7)."
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<EINVAL>"
378 msgstr "B<EINVAL>"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid "(B<dup3>()) I<flags> contain an invalid value."
384 msgstr "(B<dup3>()) I<schalter> enthalten einen ungültigen Wert."
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid "(B<dup3>()) I<oldfd> was equal to I<newfd>."
390 msgstr "(B<dup3>()) I<altdd> entsprach I<neudd>."
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<EMFILE>"
397 msgstr "B<EMFILE>"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "The per-process limit on the number of open file descriptors has been "
404 "reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
405 msgstr ""
406 "Die Beschränkung der Anzahl offener Datei-Deskriptoren pro Prozess wurde "
407 "erreicht (siehe die Erläuterung von B<RLIMIT_NOFILE> in B<getrlimit>(2))."
408
409 #. type: TP
410 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
411 #: opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "B<ENOMEM>"
414 msgstr "B<ENOMEM>"
415
416 #. type: Plain text
417 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
418 #: opensuse-leap-16-1 opensuse-tumbleweed
419 msgid "Insufficient kernel memory was available."
420 msgstr "Es war nicht genügend Kernelspeicher verfügbar."
421
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "STANDARDS"
427 msgstr "STANDARDS"
428
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 msgid "POSIX.1-2024."
433 msgstr "POSIX.1-2024."
434
435 #. type: SH
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "HISTORY"
440 msgstr "GESCHICHTE"
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<dup>()"
447 msgstr "B<dup>()"
448
449 #. type: TQ
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "B<dup2>()"
454 msgstr "B<dup2>()"
455
456 #. SVr4 documents additional
457 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
458 #. The EBUSY return is Linux-specific.
459 #. type: Plain text
460 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
461 #: opensuse-tumbleweed
462 msgid "4.3BSD, SVr4, POSIX.1-1988."
463 msgstr "4.3BSD, SVr4, POSIX.1-1988."
464
465 #. type: TP
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "B<dup3>()"
470 msgstr "B<dup3>()"
471
472 #. type: Plain text
473 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
474 #: opensuse-tumbleweed
475 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
476 msgstr "POSIX.1-2024. Linux 2.6.27, Glibc 2.9."
477
478 #. type: SH
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "NOTES"
483 msgstr "ANMERKUNGEN"
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "The error returned by B<dup2>() is different from that returned by "
490 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some "
491 "systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>."
492 msgstr ""
493 "Der von B<dup2> zurückgegebene Fehler unterscheidet sich von dem, der von "
494 "B<fcntl(>…, B<F_DUPFD>,…B<)> zurückgegeben wird, wenn I<neudd> außerhalb des "
495 "Bereiches ist. Weiterhin gibt B<dup2> auf einigen Systemen B<EINVAL> wie "
496 "B<F_DUPFD> zurück."
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "If I<newfd> was open, any errors that would have been reported at "
503 "B<close>(2) time are lost. If this is of concern, then\\[em]unless the "
504 "program is single-threaded and does not allocate file descriptors in signal "
505 "handlers\\[em]the correct approach is I<not> to close I<newfd> before "
506 "calling B<dup2>(), because of the race condition described above. Instead, "
507 "code something like the following could be used:"
508 msgstr ""
509 "Falls I<neudd> geöffnet war, sind alle Fehler verlorengegangen, die in "
510 "dieser Zeit an B<close>(2) gemeldet worden wären. Falls dies von Bedeutung "
511 "ist, ist die korrekte Herangehensweise, – sofern das Programm nicht in einem "
512 "einzigen Thread läuft und keine Dateideskriptoren in "
513 "Signalverarbeitungsprogrammen reserviert –, I<neudd> vor dem Aufruf von "
514 "B<dup2>() wegen der oben beschriebenen Race Conditions I<nicht> zu "
515 "schließen. Stattdessen kann Code wie der folgende verwendet werden:"
516
517 #. type: Plain text
518 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
519 #: opensuse-tumbleweed
520 #, no-wrap
521 msgid ""
522 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
523 " be used to check for close() errors; an EBADF error\n"
524 " means that \\[aq]newfd\\[aq] was not open. */\n"
525 "\\&\n"
526 "tmpfd = dup(newfd);\n"
527 "if (tmpfd == -1 && errno != EBADF) {\n"
528 " /* Handle unexpected dup() error. */\n"
529 "}\n"
530 "\\&\n"
531 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
532 "\\&\n"
533 "if (dup2(oldfd, newfd) == -1) {\n"
534 " /* Handle dup2() error. */\n"
535 "}\n"
536 "\\&\n"
537 "/* Now check for close() errors on the file originally\n"
538 " referred to by \\[aq]newfd\\[aq]. */\n"
539 "\\&\n"
540 "if (tmpfd != -1) {\n"
541 " if (close(tmpfd) == -1) {\n"
542 " /* Handle errors from close. */\n"
543 " }\n"
544 "}\n"
545 msgstr ""
546 "/* Erhält ein Duplikat von »neudd«, das nachfolgend benutzt\n"
547 " werden kann, um auf Fehler von close() zu prüfen. Ein\n"
548 " EBADF-Fehler bedeutet, dass »neudd« nicht geöffnet war. */\n"
549 "\\&\n"
550 "tmpfd = dup(newfd);\n"
551 "if (tmpfd == -1 && errno != EBADF) {\n"
552 " /* behandelt unerwartete dup()-Fehler */\n"
553 "}\n"
554 "\\&\n"
555 "/* »altdd« atomar auf »neudd« duplizieren */\n"
556 "\\&\n"
557 "if (dup2(oldfd, newfd) == -1) {\n"
558 " /* dup2()-Fehler behandeln */\n"
559 "}\n"
560 "\\&\n"
561 "/* Nun wird auf close()-Fehler für die Datei, auf die sich\n"
562 " »neudd« ursprünglich bezog, geprüft. */\n"
563 "\\&\n"
564 "if (tmpfd != -1) {\n"
565 " if (close(tmpfd) == -1) {\n"
566 " /* close-Fehler behandeln */\n"
567 " }\n"
568 "}\n"
569
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "SEE ALSO"
575 msgstr "SIEHE AUCH"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
581 msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
582
583 #. type: TH
584 #: debian-trixie
585 #, no-wrap
586 msgid "2024-05-02"
587 msgstr "2. Mai 2024"
588
589 #. type: TH
590 #: debian-trixie
591 #, no-wrap
592 msgid "Linux man-pages 6.9.1"
593 msgstr "Linux man-pages 6.9.1"
594
595 #. type: Plain text
596 #: debian-trixie
597 msgid "Standard C library (I<libc>, I<-lc>)"
598 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
599
600 #. type: Plain text
601 #: debian-trixie fedora-44 fedora-rawhide
602 msgid "POSIX.1-2008."
603 msgstr "POSIX.1-2008."
604
605 #. type: Plain text
606 #: debian-trixie fedora-44 fedora-rawhide
607 msgid "Linux."
608 msgstr "Linux."
609
610 #. SVr4 documents additional
611 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
612 #. The EBUSY return is Linux-specific.
613 #. type: Plain text
614 #: debian-trixie fedora-44 fedora-rawhide
615 msgid "POSIX.1-2001, SVr4, 4.3BSD."
616 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
617
618 #. type: Plain text
619 #: debian-trixie fedora-44 fedora-rawhide
620 msgid "Linux 2.6.27, glibc 2.9."
621 msgstr "Linux 2.6.27, glibc 2.9."
622
623 #. type: Plain text
624 #: debian-trixie fedora-44 fedora-rawhide
625 #, no-wrap
626 msgid ""
627 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
628 " be used to check for close() errors; an EBADF error\n"
629 " means that \\[aq]newfd\\[aq] was not open. */\n"
630 "\\&\n"
631 "tmpfd = dup(newfd);\n"
632 "if (tmpfd == -1 && errno != EBADF) {\n"
633 " /* Handle unexpected dup() error. */\n"
634 "}\n"
635 "\\&\n"
636 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
637 "\\&\n"
638 "if (dup2(oldfd, newfd) == -1) {\n"
639 " /* Handle dup2() error. */\n"
640 "}\n"
641 "\\&\n"
642 "/* Now check for close() errors on the file originally\n"
643 " referred to by \\[aq]newfd\\[aq]. */\n"
644 "\\&\n"
645 "if (tmpfd != -1) {\n"
646 " if (close(tmpfd) == -1) {\n"
647 " /* Handle errors from close. */\n"
648 " }\n"
649 "}\n"
650 msgstr ""
651 "/* Erhält ein Duplikat von »neudd«, das nachfolgend benutzt\n"
652 " werden kann, um auf Fehler von close() zu prüfen. Ein\n"
653 " EBADF-Fehler bedeutet, dass »neudd« nicht geöffnet war. */\n"
654 "\\&\n"
655 "tmpfd = dup(newfd);\n"
656 "if (tmpfd == -1 && errno != EBADF) {\n"
657 " /* behandelt unerwartete dup()-Fehler */\n"
658 "}\n"
659 "\\&\n"
660 "/* »altdd« atomar auf »neudd« duplizieren */\n"
661 "\\&\n"
662 "if (dup2(oldfd, newfd) == -1) {\n"
663 " /* dup2()-Fehler behandeln */\n"
664 "}\n"
665 "\\&\n"
666 "/* Nun wird auf close()-Fehler für die Datei, auf die sich\n"
667 " »neudd« ursprünglich bezog, geprüft. */\n"
668 "\\&\n"
669 "if (tmpfd != -1) {\n"
670 " if (close(tmpfd) == -1) {\n"
671 " /* close-Fehler behandeln */\n"
672 " }\n"
673 "}\n"
674
675 #. type: TH
676 #: fedora-44 fedora-rawhide
677 #, no-wrap
678 msgid "2024-11-01"
679 msgstr "1. November 2024"
680
681 #. type: TH
682 #: fedora-44 fedora-rawhide
683 #, no-wrap
684 msgid "Linux man-pages 6.13"
685 msgstr "Linux man-pages 6.13"
686
687 #. type: TH
688 #: mageia-cauldron
689 #, no-wrap
690 msgid "Linux man-pages 6.17"
691 msgstr "Linux man-pages 6.17"
692
693 #. type: TH
694 #: opensuse-leap-16-1 opensuse-tumbleweed
695 #, no-wrap
696 msgid "Linux man-pages (unreleased)"
697 msgstr "Linux man-pages (unveröffentlicht)"