Debian Codegraph @

po/nl/man2/dup.2.po

raw
1 # Dutch translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Jos Boersema <[email protected]>, 2001.
5 # Mario Blättermann <[email protected]>, 2019, 2020.
6 # Luc Castermans <[email protected]>, 2021-2023, 2024.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 2.15\n"
10 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
11 "PO-Revision-Date: 2024-08-31 09:12+0200\n"
12 "Last-Translator: luc <[email protected]>\n"
13 "Language-Team: Dutch <>\n"
14 "Language: nl_NL\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 22.12.3\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 "dup"
26 msgstr "dup"
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 februari 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-paginas 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 "NAAM"
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 - kopieer een bestandsindicator"
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 "BIBLIOTHEEK"
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 "Standaard C bibliotheek (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 "SAMENVATTING"
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<oudebi>B<);>\n"
91 "B<int dup2(int >I<oudebi>B<, int >I<nieuwebi>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 #, no-wrap
97 msgid ""
98 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
99 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
100 "B<#include E<lt>unistd.hE<gt>>\n"
101 msgstr ""
102 "B<#define _GNU_SOURCE> /* Zie feature_test_macros(7) */\n"
103 "B<#include E<lt>fcntl.hE<gt>> /* Definitie van B<O_*> constanten */\n"
104 "B<#include E<lt>unistd.hE<gt>>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
111 msgstr "B<int dup3(int >I<oudebi>B<, int >I<nieuwebi>B<, int >I<vlaggen>B<);>\n"
112
113 #. type: SH
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid "DESCRIPTION"
118 msgstr "BESCHRIJVING"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "The B<dup>() system call allocates a new file descriptor that refers to the "
125 "same open file description as the descriptor I<oldfd>. (For an explanation "
126 "of open file descriptions, see B<open>(2).) The new file descriptor number "
127 "is guaranteed to be the lowest-numbered file descriptor that was unused in "
128 "the calling process."
129 msgstr ""
130 "De B<dup>() systeem aanroep wijst een nieuwe bestandsindicator toe die wijst "
131 "naar hetzelfde open bestandsindicator als de indicator I<oudebi>. (Voor een "
132 "uitleg over de open bestandsindicatoren, zie B<open>(2).) Het nieuwe "
133 "bestandsindicator getal is gegarandeerd de laagst genummerde "
134 "bestandsindicator die ongebruikt was in het aanroepende proces."
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "After a successful return, the old and new file descriptors may be used "
141 "interchangeably. Since the two file descriptors refer to the same open file "
142 "description, they share file offset and file status flags; for example, if "
143 "the file offset is modified by using B<lseek>(2) on one of the file "
144 "descriptors, the offset is also changed for the other file descriptor."
145 msgstr ""
146 "Na een geslaagde terugkeer zijn de oude en nieuwe bestandsindicatoren "
147 "uitwisselbaar (gelijk). Omdat de twee bestandsindicatoren naar dezelfde open "
148 "bestandsindicator wijzen, delen ze dezelfde bestands positie en de bestands "
149 "status vlaggen; bij voorbeeld, als de bestandspositie werd gewijzigd door "
150 "B<lseek>(2) te gebruiken op de een van de bestandsindicatoren, dan is de "
151 "positie ook gewijzigde in de andere bestandsindicator."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "The two file descriptors do not share file descriptor flags (the close-on-"
158 "exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for "
159 "the duplicate descriptor is off."
160 msgstr ""
161 "De twee bestandsindicatoren delen de bestandsindicator vlag niet (de sluit-"
162 "bij-uitvoer vlag). De sluit-bij-uitvoer vlag (B<FD_CLOEXEC>; zie "
163 "B<fcntl>(2)) voor als de duplicaat indicator uit staat."
164
165 #. type: SS
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "dup2()"
170 msgstr "dup2()"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "The B<dup2>() system call performs the same task as B<dup>(), but instead "
177 "of using the lowest-numbered unused file descriptor, it uses the file "
178 "descriptor number specified in I<newfd>. In other words, the file "
179 "descriptor I<newfd> is adjusted so that it now refers to the same open file "
180 "description as I<oldfd>."
181 msgstr ""
182 "De B<dup2>() systeem aanroep voert dezelfde taak uit als B<dup>(), maar in "
183 "plaats van het gebruiken van de laagst-genummerde niet gebruikte "
184 "bestandsindicator, gebruikt deze het bestandsindicator nummer zoals "
185 "gespecificeerd in I<nieuwebi>. Met andere woorden, de bestandsindicator "
186 "I<nieuwebi> wordt aangepast zodat deze nu wijst naar dezelfde open "
187 "bestandsindicator als I<oudebi>. "
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "If the file descriptor I<newfd> was previously open, it is closed before "
194 "being reused; the close is performed silently (i.e., any errors during the "
195 "close are not reported by B<dup2>())."
196 msgstr ""
197 "Als de bestandsindicator I<nieuwebi> eerder open was, dan wordt deze "
198 "gesloten voordat hij wordt hergebruikt; het sluiten gebeurd stilzwijgend "
199 "(m.a.w. opgetreden fouten tijdens het sluiten worden niet gerapporteerd door "
200 "B<dup2>())."
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "The steps of closing and reusing the file descriptor I<newfd> are performed "
207 "I<atomically>. This is important, because trying to implement equivalent "
208 "functionality using B<close>(2) and B<dup>() would be subject to race "
209 "conditions, whereby I<newfd> might be reused between the two steps. Such "
210 "reuse could happen because the main program is interrupted by a signal "
211 "handler that allocates a file descriptor, or because a parallel thread "
212 "allocates a file descriptor."
213 msgstr ""
214 "De stappen van het sluiten en hergebruiken van de bestandsindicator "
215 "I<nieuwebi> worden I<atomair> uitgevoerd. Dit is belangrijk, want het "
216 "implementeren van equivalente functionaliteit door het gebruik van "
217 "B<close>(2) en B<dup>() zou een race conditie kunnen inhouden, waardoor "
218 "I<nieuwebi> zou kunnen worden geweigerd tussen de twee stappen. Zulk "
219 "hergebruik kan optreden wanneer een hoofdprogramma wordt onderbroken door "
220 "een signaal afhandelaar die een bestandsindicator toekent, of omdat een "
221 "parallelle thread een bestandsindicator toekent. "
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "Note the following points:"
227 msgstr "Let op de volgende punten:"
228
229 #. type: IP
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "\\[bu]"
234 msgstr "\\[bu]"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
241 "I<newfd> is not closed."
242 msgstr ""
243 "Als I<oudebi> is geen geldige bestandsindicator, dan zal de aanroep falen, "
244 "en I<nieuwebi> wordt niet gesloten."
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 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
251 "I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>."
252 msgstr ""
253 "Als I<oudebi> een geldige bestandsindicator is, en I<nieuwebi> heeft "
254 "dezelfde waarde als I<oudebi>, dan doet B<dup2>() niets, en retourneert "
255 "I<nieuwebi>."
256
257 #. type: SS
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "dup3()"
262 msgstr "dup3()"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid "B<dup3>() is the same as B<dup2>(), except that:"
268 msgstr "B<dup3>() is hetzelfde als B<dup2>(), met uitname van:"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "The caller can force the close-on-exec flag to be set for the new file "
275 "descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of "
276 "the same flag in B<open>(2) for reasons why this may be useful."
277 msgstr ""
278 "De aanroeper kan het zetten van een sluit-bij-uitvoer vlag forceren voor "
279 "een nieuwe bestandsindicator door B<O_CLOEXEC> te specificeren in I<flags>. "
280 "Zie de beschrijving van dezelfde vlag in B<open>(2) met redenen waarom dit "
281 "nuttig is."
282
283 #. Ulrich Drepper, LKML, 2008-10-09:
284 #. We deliberately decided on this change. Otherwise, what is the
285 #. result of dup3(fd, fd, O_CLOEXEC)?
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>."
291 msgstr ""
292 "Als I<oudebi> gelijk is aan I<nieuwebi>, dan faalt B<dup3>() met de fout "
293 "B<EINVAL>."
294
295 #. type: SH
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "RETURN VALUE"
300 msgstr "EIND WAARDE"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "On success, these system calls return the new file descriptor. On error, -1 "
307 "is returned, and I<errno> is set to indicate the error."
308 msgstr ""
309 "Bij succes, retourneren deze systeem aanroepen de nieuwe bestandsindicator. "
310 "Bij een fout wordt -1 teruggegeven, en I<errno> wordt overeenkomstig gezet "
311 "om de fout te aan te geven."
312
313 #. type: SH
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "ERRORS"
318 msgstr "FOUTEN"
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<EBADF>"
325 msgstr "B<EBADF>"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid "I<oldfd> isn't an open file descriptor."
331 msgstr "I<oudebi> is geen open bestandindicator."
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid ""
337 "I<newfd> is out of the allowed range for file descriptors (see the "
338 "discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
339 msgstr ""
340 "I<nieuwebi> ligt buiten de toegestane waardes voor bestandsindicators. (zie "
341 "de discussie over B<RLIMIT_NOFILE> in B<getrlimit>(2))."
342
343 #. type: TP
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "B<EBUSY>"
348 msgstr "B<EBUSY>"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race "
355 "condition with B<open>(2) and B<dup>()."
356 msgstr ""
357 "(Alleen Linux) Dit kan worden teruggegeven door B<dup2>() of B<dup3> "
358 "gedurende een race conditie met B<open>(2) en B<dup>()."
359
360 #. type: TP
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "B<EINTR>"
365 msgstr "B<EINTR>"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "The B<dup2>() or B<dup3>() call was interrupted by a signal; see "
372 "B<signal>(7)."
373 msgstr ""
374 "De B<dup2>() of B<dup3>() aanroep werd onderbroken door een signaal; zie "
375 "B<signal>(7)."
376
377 #. type: TP
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<EINVAL>"
382 msgstr "B<EINVAL>"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid "(B<dup3>()) I<flags> contain an invalid value."
388 msgstr "(B<dup3>()) I<flags> bevatten een ongeldige waarde.."
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "(B<dup3>()) I<oldfd> was equal to I<newfd>."
394 msgstr "(B<dup3>()) I<oudebi> was gelijk aan I<nieuwebi>."
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<EMFILE>"
401 msgstr "B<EMFILE>"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "The per-process limit on the number of open file descriptors has been "
408 "reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
409 msgstr ""
410 "De per-proces limiet van het aantal open bestandsindicatoren is bereikt (zie "
411 "de discussie over B<RLIMIT_NOFILE> in B<getrlimit>(2))."
412
413 #. type: TP
414 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
415 #: opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "B<ENOMEM>"
418 msgstr "B<ENOMEM>"
419
420 #. type: Plain text
421 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
422 #: opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "Insufficient kernel memory was available."
424 msgstr "Onvoldoende kernelgeheugen voorhanden."
425
426 #. type: SH
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "STANDARDS"
431 msgstr "STANDAARDEN"
432
433 #. type: Plain text
434 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
435 #: opensuse-tumbleweed
436 msgid "POSIX.1-2024."
437 msgstr "POSIX.1-2024."
438
439 #. type: SH
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "HISTORY"
444 msgstr "HISTORIE"
445
446 #. type: TP
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "B<dup>()"
451 msgstr "B<dup>()"
452
453 #. type: TQ
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "B<dup2>()"
458 msgstr "B<dup2>()"
459
460 #. SVr4 documents additional
461 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
462 #. The EBUSY return is Linux-specific.
463 #. type: Plain text
464 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
465 #: opensuse-tumbleweed
466 #, fuzzy
467 #| msgid "SVr4, 4.3BSD, C89, POSIX.1-2001."
468 msgid "4.3BSD, SVr4, POSIX.1-1988."
469 msgstr "SVr4, 4.3BSD, C89, POSIX.1-2001."
470
471 #. type: TP
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "B<dup3>()"
476 msgstr "B<dup3>()"
477
478 #. type: Plain text
479 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
480 #: opensuse-tumbleweed
481 #, fuzzy
482 #| msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
483 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
484 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
485
486 #. type: SH
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "NOTES"
491 msgstr "OPMERKINGEN"
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 ""
497 "The error returned by B<dup2>() is different from that returned by "
498 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some "
499 "systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>."
500 msgstr ""
501 "De teruggegeven fout door B<dup2>() is anders dan die zoals teruggegeven "
502 "door B<fcntl(>..., B<F_DUPFD>, ...B<)> wanneer I<nieuwebi> buiten bereik "
503 "is. Op sommige systemen, retourneert B<dup2>() ook soms B<EINVAL> zoals "
504 "B<F_DUPFD>."
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 "If I<newfd> was open, any errors that would have been reported at "
511 "B<close>(2) time are lost. If this is of concern, then\\[em]unless the "
512 "program is single-threaded and does not allocate file descriptors in signal "
513 "handlers\\[em]the correct approach is I<not> to close I<newfd> before "
514 "calling B<dup2>(), because of the race condition described above. Instead, "
515 "code something like the following could be used:"
516 msgstr ""
517 "Als I<nieuwebi> open was, dan zullen fouten die gerapporteerd zouden worden "
518 "tijdens B<close>(2) verloren geraakt zijn. Als dit een zorg is, \\"
519 "[em]behalve als het programma single-threaded is en geen bestandsindicatoren "
520 "in signaal afhandelaren alloceert)\\[em] dan is de correcte aanpak om de "
521 "I<nieuwebi> I<niet> te sluiten I<dup2>(), vanwege de race conditie zoals "
522 "hierboven beschreven. In plaats daarvan zou de bijvoorbeeld de hieronder "
523 "gegeven code gebruikt kunnen worden: "
524
525 #. type: Plain text
526 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
527 #: opensuse-tumbleweed
528 #, fuzzy, no-wrap
529 #| msgid ""
530 #| "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
531 #| " be used to check for close() errors; an EBADF error\n"
532 #| " means that \\[aq]newfd\\[aq] was not open. */\n"
533 #| "\\&\n"
534 #| "tmpfd = dup(newfd);\n"
535 #| "if (tmpfd == -1 && errno != EBADF) {\n"
536 #| " /* Handle unexpected dup() error. */\n"
537 #| "}\n"
538 #| "\\&\n"
539 #| "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
540 #| "\\&\n"
541 #| "if (dup2(oldfd, newfd) == -1) {\n"
542 #| " /* Handle dup2() error. */\n"
543 #| "}\n"
544 #| "\\&\n"
545 #| "/* Now check for close() errors on the file originally\n"
546 #| " referred to by \\[aq]newfd\\[aq]. */\n"
547 #| "\\&\n"
548 #| "if (tmpfd != -1) {\n"
549 #| " if (close(tmpfd) == -1) {\n"
550 #| " /* Handle errors from close. */\n"
551 #| " }\n"
552 #| "}\n"
553 msgid ""
554 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
555 " be used to check for close() errors; an EBADF error\n"
556 " means that \\[aq]newfd\\[aq] was not open. */\n"
557 "\\&\n"
558 "tmpfd = dup(newfd);\n"
559 "if (tmpfd == -1 && errno != EBADF) {\n"
560 " /* Handle unexpected dup() error. */\n"
561 "}\n"
562 "\\&\n"
563 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
564 "\\&\n"
565 "if (dup2(oldfd, newfd) == -1) {\n"
566 " /* Handle dup2() error. */\n"
567 "}\n"
568 "\\&\n"
569 "/* Now check for close() errors on the file originally\n"
570 " referred to by \\[aq]newfd\\[aq]. */\n"
571 "\\&\n"
572 "if (tmpfd != -1) {\n"
573 " if (close(tmpfd) == -1) {\n"
574 " /* Handle errors from close. */\n"
575 " }\n"
576 "}\n"
577 msgstr ""
578 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
579 " be used to check for close() errors; an EBADF error\n"
580 " means that \\[aq]newfd\\[aq] was not open. */\n"
581 "\\&\n"
582 "tmpfd = dup(newfd);\n"
583 "if (tmpfd == -1 && errno != EBADF) {\n"
584 " /* Handle unexpected dup() error. */\n"
585 "}\n"
586 "\\&\n"
587 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
588 "\\&\n"
589 "if (dup2(oldfd, newfd) == -1) {\n"
590 " /* Handle dup2() error. */\n"
591 "}\n"
592 "\\&\n"
593 "/* Now check for close() errors on the file originally\n"
594 " referred to by \\[aq]newfd\\[aq]. */\n"
595 "\\&\n"
596 "if (tmpfd != -1) {\n"
597 " if (close(tmpfd) == -1) {\n"
598 " /* Handle errors from close. */\n"
599 " }\n"
600 "}\n"
601
602 #. type: SH
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 #, no-wrap
606 msgid "SEE ALSO"
607 msgstr "ZIE OOK"
608
609 #. type: Plain text
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 msgid "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
613 msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
614
615 #. type: TH
616 #: debian-trixie
617 #, no-wrap
618 msgid "2024-05-02"
619 msgstr "2 mei 2024"
620
621 #. type: TH
622 #: debian-trixie
623 #, no-wrap
624 msgid "Linux man-pages 6.9.1"
625 msgstr "Linux man-paginas 6.9.1"
626
627 #. type: Plain text
628 #: debian-trixie
629 msgid "Standard C library (I<libc>, I<-lc>)"
630 msgstr "Standaard C bibliotheek (I<libc>, I<-lc>)"
631
632 #. type: Plain text
633 #: debian-trixie fedora-44 fedora-rawhide
634 msgid "POSIX.1-2008."
635 msgstr "POSIX.1-2008."
636
637 #. type: Plain text
638 #: debian-trixie fedora-44 fedora-rawhide
639 msgid "Linux."
640 msgstr "Linux."
641
642 #. SVr4 documents additional
643 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
644 #. The EBUSY return is Linux-specific.
645 #. type: Plain text
646 #: debian-trixie fedora-44 fedora-rawhide
647 msgid "POSIX.1-2001, SVr4, 4.3BSD."
648 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
649
650 #. type: Plain text
651 #: debian-trixie fedora-44 fedora-rawhide
652 msgid "Linux 2.6.27, glibc 2.9."
653 msgstr "Linux 2.6.27, glibc 2.9."
654
655 #. type: Plain text
656 #: debian-trixie fedora-44 fedora-rawhide
657 #, no-wrap
658 msgid ""
659 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
660 " be used to check for close() errors; an EBADF error\n"
661 " means that \\[aq]newfd\\[aq] was not open. */\n"
662 "\\&\n"
663 "tmpfd = dup(newfd);\n"
664 "if (tmpfd == -1 && errno != EBADF) {\n"
665 " /* Handle unexpected dup() error. */\n"
666 "}\n"
667 "\\&\n"
668 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
669 "\\&\n"
670 "if (dup2(oldfd, newfd) == -1) {\n"
671 " /* Handle dup2() error. */\n"
672 "}\n"
673 "\\&\n"
674 "/* Now check for close() errors on the file originally\n"
675 " referred to by \\[aq]newfd\\[aq]. */\n"
676 "\\&\n"
677 "if (tmpfd != -1) {\n"
678 " if (close(tmpfd) == -1) {\n"
679 " /* Handle errors from close. */\n"
680 " }\n"
681 "}\n"
682 msgstr ""
683 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
684 " be used to check for close() errors; an EBADF error\n"
685 " means that \\[aq]newfd\\[aq] was not open. */\n"
686 "\\&\n"
687 "tmpfd = dup(newfd);\n"
688 "if (tmpfd == -1 && errno != EBADF) {\n"
689 " /* Handle unexpected dup() error. */\n"
690 "}\n"
691 "\\&\n"
692 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
693 "\\&\n"
694 "if (dup2(oldfd, newfd) == -1) {\n"
695 " /* Handle dup2() error. */\n"
696 "}\n"
697 "\\&\n"
698 "/* Now check for close() errors on the file originally\n"
699 " referred to by \\[aq]newfd\\[aq]. */\n"
700 "\\&\n"
701 "if (tmpfd != -1) {\n"
702 " if (close(tmpfd) == -1) {\n"
703 " /* Handle errors from close. */\n"
704 " }\n"
705 "}\n"
706
707 #. type: TH
708 #: fedora-44 fedora-rawhide
709 #, no-wrap
710 msgid "2024-11-01"
711 msgstr "1 november 2024"
712
713 #. type: TH
714 #: fedora-44 fedora-rawhide
715 #, no-wrap
716 msgid "Linux man-pages 6.13"
717 msgstr "Linux man-paginas 6.13"
718
719 #. type: TH
720 #: mageia-cauldron
721 #, no-wrap
722 msgid "Linux man-pages 6.17"
723 msgstr "Linux man-paginas 6.17"
724
725 #. type: TH
726 #: opensuse-leap-16-1 opensuse-tumbleweed
727 #, no-wrap
728 msgid "Linux man-pages (unreleased)"
729 msgstr "Linux man-paginas (niet vrijgegeven)"