Debian Codegraph @

po/nl/man2/select.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]>, 2022-2023, 2024, 2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 2.15\n"
10 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
11 "PO-Revision-Date: 2025-04-21 10:09+0200\n"
12 "Last-Translator: Luc Castermans <[email protected]>\n"
13 "Language-Team: Dutch <[email protected]>\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 24.12.0\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 "select"
26 msgstr "select"
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 ""
53 "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O "
54 "multiplexing"
55 msgstr ""
56 "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO fd_set- synchrone Invoer/"
57 "Uitvoer multiplexing"
58
59 #. type: SH
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "LIBRARY"
64 msgstr "BIBLIOTHEEK"
65
66 #. type: Plain text
67 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 msgid "Standard C library (I<libc>,\\ I<-lc>)"
70 msgstr "Standaard C bibliotheek (I<libc>, I<-lc>)"
71
72 #. type: SH
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "SYNOPSIS"
77 msgstr "SAMENVATTING"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<#include E<lt>sys/select.hE<gt>>\n"
84 msgstr "B<#include E<lt>sys/select.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
88 #: opensuse-tumbleweed
89 #, fuzzy, no-wrap
90 #| msgid "B<typedef> /* ... */ B<fd_set;>\n"
91 msgid "B<typedef> /* .\\|.\\|.\\& */ B<fd_set;>\n"
92 msgstr "B<typedef> /* ... */ B<fd_set;>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
100 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
101 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
102 "B< struct timeval *_Nullable restrict >I<timeout>B<);>\n"
103 msgstr ""
104 "B<int select(int >I<nfds>B<, fd_set *restrict >I<leesbi>B<,>\n"
105 "B< fd_set *restrict >I<schrijfbi>B<, fd_set *restrict >I<uitzondbi>B<,>\n"
106 "B< struct timeval *_NULL_baar restrict >I<tijdslimiet>B<);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
110 #: opensuse-tumbleweed
111 #, fuzzy, no-wrap
112 #| msgid ""
113 #| "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
114 #| "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
115 #| "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
116 #| "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
117 msgid ""
118 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
119 "B<int FD_ISSET(int >I<fd>B<, const fd_set *>I<set>B<);>\n"
120 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
121 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
122 msgstr ""
123 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
124 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
125 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
126 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid ""
133 "B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
134 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
135 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
136 "B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n"
137 "B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n"
138 msgstr ""
139 "B<int select(int >I<nfds>B<, fd_set *restrict >I<leesbi>B<,>\n"
140 "B< fd_set *restrict >I<schrijfbi>B<, fd_set *restrict >I<uitzondbi>B<,>\n"
141 "B< const struct timespec *restrict >I<tijdslimiet>B<,>\n"
142 "B< const sigset_t *_NULL_baar restrict >I<sigmask>B<);>\n"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
149 msgstr ""
150 "Feature Test Macro Requirements voor glibc (zie B<feature_test_macros>(7)):"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid "B<pselect>():"
156 msgstr "B<pselect>():"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid " _POSIX_C_SOURCE E<gt>= 200112L\n"
163 msgstr " _POSIX_C_SOURCE E<gt>= 200112L\n"
164
165 #. type: SH
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "DESCRIPTION"
170 msgstr "BESCHRIJVING"
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 "B<WARNING>: B<select>() can monitor only file descriptors numbers that are "
177 "less than B<FD_SETSIZE> (1024)\\[em]an unreasonably low limit for many "
178 "modern applications\\[em]and this limitation will not change. All modern "
179 "applications should instead use B<poll>(2) or B<epoll>(7), which do not "
180 "suffer this limitation."
181 msgstr ""
182 "B<WAARSCHUWING>: B<select>() kan alleen bestandsindicator nummers monitoren "
183 "die kleiner zijn dan B<FD_SETSIZE> (1024)\\[em]een onmogelijk kleine limiet "
184 "voor veel moderne applicaties\\[em]en deze limiet zal niet veranderen. Alle "
185 "moderne applicaties gebruiken daarom beter B<poll>(2) of B<epoll>(7), die "
186 "geen last hebben van deze beperking."
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "B<select>() allows a program to monitor multiple file descriptors, waiting "
193 "until one or more of the file descriptors become \"ready\" for some class of "
194 "I/O operation (e.g., input possible). A file descriptor is considered ready "
195 "if it is possible to perform a corresponding I/O operation (e.g., "
196 "B<read>(2), or a sufficiently small B<write>(2)) without blocking."
197 msgstr ""
198 "B<select>() staat een programma toe meerdere bestandsindicators te "
199 "monitoren, het wacht totdat een of meer bestandsindicators \"gereed\" worden "
200 "voor een aantal klassen van Invoer/Uitvoer operaties (b.v. invoer mogelijk). "
201 "Een bestandsindicator wordt gereed geacht als het mogelijk is de "
202 "overeenkomende Invoer/Uitvoer operatie uit te voeren (b.v. B<read>(2), of "
203 "een voldoende kleine B<write>(2)) zonder blokkering."
204
205 #. type: SS
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "fd_set"
210 msgstr "fd_set"
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "A structure type that can represent a set of file descriptors. According to "
217 "POSIX, the maximum number of file descriptors in an I<fd_set> structure is "
218 "the value of the macro B<FD_SETSIZE>."
219 msgstr ""
220 "Een structure type dat een verzameling bestandsindicatoren kan "
221 "representeren. Volgens POSIX, is de waarde van de macro B<FD_SETSIZE> het "
222 "maximum aantal bestandsindicatoren dat een I<fd_set> structure kan bevatten."
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 "File descriptor sets"
229 msgstr "Bestandsindicator verzamelingen"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "The principal arguments of B<select>() are three \"sets\" of file "
236 "descriptors (declared with the type I<fd_set>), which allow the caller to "
237 "wait for three classes of events on the specified set of file descriptors. "
238 "Each of the I<fd_set> arguments may be specified as NULL if no file "
239 "descriptors are to be watched for the corresponding class of events."
240 msgstr ""
241 "Het hoofdargument van B<select>() zijn drie \"verzamelingen\" van "
242 "bestandsindicators (gedeclareerd met het type I<fd_set>), dat de aanroeper "
243 "toestaat te wachten op drie klassen van gebeurtenissen op de gespecificeerde "
244 "verzameling van bestandsindicators. Elk van de I<fd_set> argumenten mag als "
245 "NULL worden opgegeven als geen bestandsindicators moeten in de gaten worden "
246 "gehouden voor de overeenkomende klasse van gebeurtenissen."
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "B<Note well>: Upon return, each of the file descriptor sets is modified in "
253 "place to indicate which file descriptors are currently \"ready\". Thus, if "
254 "using B<select>() within a loop, the sets I<must be reinitialized> before "
255 "each call."
256 msgstr ""
257 "B<Let op>: Bij terugkeer wordt elke bestandsindicator verzameling ter "
258 "plekke gemodificeerd om aan te geven welke bestandsindicator op dat moment "
259 "\"gereed\" is. Daarom, als B<select>() in een lus wordt gebruikt I<moeten de "
260 "verzamelingen geinitialiseerd worden> voorafgaand aan elke aanroep."
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "The contents of a file descriptor set can be manipulated using the following "
267 "macros:"
268 msgstr ""
269 "De inhoud van een bestandsindicator verzameling kan aangepast worden door de "
270 "volgende macro´s te gebruiken:"
271
272 #. type: TP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "B<FD_ZERO>()"
277 msgstr "B<FD_ZERO>()"
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "This macro clears (removes all file descriptors from) I<set>. It should be "
284 "employed as the first step in initializing a file descriptor set."
285 msgstr ""
286 "Deze macro wist (verwijdert alle bestandsindicators van) I<verzameling>. Hij "
287 "moet worden gebruikt als een eerste stap bij het initialiseren van een "
288 "bestandsindicator verzameling."
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<FD_SET>()"
295 msgstr "B<FD_SET>()"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "This macro adds the file descriptor I<fd> to I<set>. Adding a file "
302 "descriptor that is already present in the set is a no-op, and does not "
303 "produce an error."
304 msgstr ""
305 "Deze macro voegt een bestandsindicator I<bi> toe aan I<verzameling>. Het "
306 "toevoegen van een reeds bestaande indicator aan een verzameling doet niets, "
307 "en produceert geen fout. "
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<FD_CLR>()"
314 msgstr "B<FD_CLR>()"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "This macro removes the file descriptor I<fd> from I<set>. Removing a file "
321 "descriptor that is not present in the set is a no-op, and does not produce "
322 "an error."
323 msgstr ""
324 "Deze macro verwijderd een bestandsindicator I<bi> van een I<verzameling>. "
325 "Het verwijderen van een niet-aanwezige indicator in de verzameling doet "
326 "niks, en produceert geen fout."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<FD_ISSET>()"
333 msgstr "B<FD_ISSET>()"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "B<select>() modifies the contents of the sets according to the rules "
340 "described below. After calling B<select>(), the B<FD_ISSET>() macro can be "
341 "used to test if a file descriptor is still present in a set. B<FD_ISSET>() "
342 "returns nonzero if the file descriptor I<fd> is present in I<set>, and zero "
343 "if it is not."
344 msgstr ""
345 "B<select>() modificeert de inhoud van verzamelingen volgens de hieronder "
346 "beschreven regels. Na het aanroepen van B<select>() kan de B<FD_ISSET>() "
347 "macro worden gebruikt om te testen of een bestandsindicator nog aanwezig is "
348 "in de verzameling. B<FD_ISSET>() retourneert niet-nul als de "
349 "bestandsindicator I<bi> aanwezig is in I<verzameling>, en nul als hij niet "
350 "aanwezig is."
351
352 #. type: SS
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "Arguments"
357 msgstr "Argumenten"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid "The arguments of B<select>() are as follows:"
363 msgstr "De argumenten van B<select>() zij als volgt:"
364
365 #. type: TP
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "I<readfds>"
370 msgstr "I<leesbi>"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "The file descriptors in this set are watched to see if they are ready for "
377 "reading. A file descriptor is ready for reading if a read operation will "
378 "not block; in particular, a file descriptor is also ready on end-of-file."
379 msgstr ""
380 "De bestandsindicators in deze verzameling worden bekeken om te zien of deze "
381 "gereed zijn om te lezen. Een bestandsindicator is gereed om te lezen als een "
382 "lees operatie niet zal blokkeren; in het bijzonder is een bestandsindicator "
383 "ook gereed bij het bestand-einde."
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "After B<select>() has returned, I<readfds> will be cleared of all file "
390 "descriptors except for those that are ready for reading."
391 msgstr ""
392 "Nadat B<select>() is teruggekeerd zullen alle bestandsindicators in "
393 "I<leesbi> worden gewist behalve die, die gereed zijn om te lezen. "
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "I<writefds>"
400 msgstr "I<schrijfbi>"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "The file descriptors in this set are watched to see if they are ready for "
407 "writing. A file descriptor is ready for writing if a write operation will "
408 "not block. However, even if a file descriptor indicates as writable, a "
409 "large write may still block."
410 msgstr ""
411 "De bestandsindicators in deze verzameling worden bekeken om te zien of deze "
412 "gereed zijn om te schrijven. Een bestandsindicator is gereed om te schrijven "
413 "als een schrijf operatie niet zal blokkeren. Hoewel zelfs als een "
414 "bestandsindicator aangeeft schrijfbaar te zijn, kan een grote schrijfactie "
415 "toch blokkeren ."
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "After B<select>() has returned, I<writefds> will be cleared of all file "
422 "descriptors except for those that are ready for writing."
423 msgstr ""
424 "Nadat B<select>() is teruggekeerd zullen alle bestandsindicators in "
425 "I<schrijfbi> worden gewist behalve die, die gereed zijn om te schrijven. "
426
427 #. type: TP
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "I<exceptfds>"
432 msgstr "I<uitzondbi>"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "The file descriptors in this set are watched for \"exceptional "
439 "conditions\". For examples of some exceptional conditions, see the "
440 "discussion of B<POLLPRI> in B<poll>(2)."
441 msgstr ""
442 "De bestandsindicators in deze verzameling worden bekeken op \"uitzonderlijke "
443 "condities\". Voor e"
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "After B<select>() has returned, I<exceptfds> will be cleared of all file "
450 "descriptors except for those for which an exceptional condition has occurred."
451 msgstr ""
452 "Nadat B<select>() is teruggekeerd zullen alle bestandsindicators in "
453 "I<uitzondbi> worden gewist behalve die, waarvoor een uitzonderlijke conditie "
454 "is opgetreden. "
455
456 #. type: TP
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "I<nfds>"
461 msgstr "I<nfds>"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "This argument should be set to the highest-numbered file descriptor in any "
468 "of the three sets, plus 1. The indicated file descriptors in each set are "
469 "checked, up to this limit (but see BUGS)."
470 msgstr ""
471 "Dit argument dient gezet te worden op de hoogst-genummerde "
472 "bestandsindicator in enige van de drie verzamelingen, plus 1. De aangegeven "
473 "bestandsindicators in elke verzameling worden gecontroleerd, tot deze limiet "
474 "(let op, zie BUGS)."
475
476 #. type: TP
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "I<timeout>"
481 msgstr "I<tijdslimiet>"
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "The I<timeout> argument is a I<timeval> structure (shown below) that "
488 "specifies the interval that B<select>() should block waiting for a file "
489 "descriptor to become ready. The call will block until either:"
490 msgstr ""
491 "Het I<tijdslimiet> argument is een I<timeval> structure (hieronder) die het "
492 "interval specificeert dat B<select>() moet blokkeren terwijl hij wacht op "
493 "een bestandsindicator om \"gereed\" te worden. De aanroep zal blokkeren "
494 "totdat ofwel:"
495
496 #. type: IP
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "\\[bu]"
501 msgstr "\\[bu]"
502
503 #. type: Plain text
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 msgid "a file descriptor becomes ready;"
507 msgstr "een bestandsindicator wordt gereed;"
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid "the call is interrupted by a signal handler; or"
513 msgstr "een aanroep werd onderbroken door een signaal afhandelaar; of"
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid "the timeout expires."
519 msgstr "de tijdslimiet verliep."
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid ""
525 "Note that the I<timeout> interval will be rounded up to the system clock "
526 "granularity, and kernel scheduling delays mean that the blocking interval "
527 "may overrun by a small amount."
528 msgstr ""
529 "Let op dat het I<tijdslimiet> interval wordt afgerond op de systeem klok "
530 "korrel, en de vertraging door het schedulen van de kernel betekent dat het "
531 "blokkeer interval kan worden overschreden met een kleine hoeveelheid."
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid ""
537 "If both fields of the I<timeval> structure are zero, then B<select>() "
538 "returns immediately. (This is useful for polling.)"
539 msgstr ""
540 "Als beide velden van de I<tijdslimiet> structure nul zijn, dan keert "
541 "B<select>() meteen terug. (Dit is bruikbaar om te pollen)"
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid ""
547 "If I<timeout> is specified as NULL, B<select>() blocks indefinitely waiting "
548 "for a file descriptor to become ready."
549 msgstr ""
550 "Als I<tijdslimiet> werd opgegeven als NULL, dan wacht B<select>() oneindig "
551 "lang totdat een bestandsindicator \"gereed\" wordt."
552
553 #. type: SS
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "pselect()"
558 msgstr "pselect()"
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "The B<pselect>() system call allows an application to safely wait until "
565 "either a file descriptor becomes ready or until a signal is caught."
566 msgstr ""
567 "De B<pselect>() systeem aanroep staat een applicatie toe om veilig te "
568 "wachten totdat een bestandsindicator gereed wordt of een signaal wordt "
569 "ontvangen."
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 msgid ""
575 "The operation of B<select>() and B<pselect>() is identical, other than "
576 "these three differences:"
577 msgstr ""
578 "De werking van B<select>() en B<pselect>() is identiek, anders dan deze "
579 "drie verschillen:"
580
581 #. type: Plain text
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 msgid ""
585 "B<select>() uses a timeout that is a I<struct timeval> (with seconds and "
586 "microseconds), while B<pselect>() uses a I<struct timespec> (with seconds "
587 "and nanoseconds)."
588 msgstr ""
589 "B<select>() gebruikt een tijdslimiet welk een I<struct timeval> (met "
590 "seconden en microseconden) is, terwijl B<pselect>() een I<struct timespec> "
591 "is (met seconden en nanosecondsen)."
592
593 #. type: Plain text
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 msgid ""
597 "B<select>() may update the I<timeout> argument to indicate how much time "
598 "was left. B<pselect>() does not change this argument."
599 msgstr ""
600 "B<select>() kan het I<tijdslimiet> argument updaten om aan te geven hoeveel "
601 "tijd er overbleef. B<pselect>() verandert dit argument niet."
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 msgid ""
607 "B<select>() has no I<sigmask> argument, and behaves as B<pselect>() called "
608 "with NULL I<sigmask>."
609 msgstr ""
610 "B<select>() heeft geen I<sigmask> argument en gedraagt zich als een "
611 "B<pselect>() aanroep met I<sigmask> gelijk aan NULL."
612
613 #. type: Plain text
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 msgid ""
617 "I<sigmask> is a pointer to a signal mask (see B<sigprocmask>(2)); if it is "
618 "not NULL, then B<pselect>() first replaces the current signal mask by the "
619 "one pointed to by I<sigmask>, then does the \"select\" function, and then "
620 "restores the original signal mask. (If I<sigmask> is NULL, the signal mask "
621 "is not modified during the B<pselect>() call.)"
622 msgstr ""
623 "I<sigmask> is een wijzer naar een signaal masker (zie B<sigprocmask>(2)); "
624 "als het niet NULL is, dan vervangt B<pselect>() eerst het huidige sigmaal "
625 "masker door het masker aangewezen door I<sigmask>, voert vervolgens de "
626 "\"select\" functie uit, en hersteld het het originele signaal masker. (Als "
627 "I<sigmask> is NULL, dan wordt het signaal masker niet gewijzigd door de "
628 "B<pselect>() aanroep."
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "Other than the difference in the precision of the I<timeout> argument, the "
635 "following B<pselect>() call:"
636 msgstr ""
637 "Anders dan het verschil in de precisie van het I<tijdslimiet> argument, is "
638 "de volgende B<pselect>() aanroep:"
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 #, no-wrap
644 msgid ""
645 "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n"
646 " timeout, &sigmask);\n"
647 msgstr ""
648 "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n"
649 " timeout, &sigmask);\n"
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid "is equivalent to I<atomically> executing the following calls:"
655 msgstr "equivalent aan het atomair uitvoeren van de volgende aanroepen:"
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 #, no-wrap
661 msgid ""
662 "sigset_t origmask;\n"
663 "\\&\n"
664 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
665 "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n"
666 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
667 msgstr ""
668 "sigset_t origmask;\n"
669 "\\&\n"
670 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
671 "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n"
672 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 msgid ""
678 "The reason that B<pselect>() is needed is that if one wants to wait for "
679 "either a signal or for a file descriptor to become ready, then an atomic "
680 "test is needed to prevent race conditions. (Suppose the signal handler sets "
681 "a global flag and returns. Then a test of this global flag followed by a "
682 "call of B<select>() could hang indefinitely if the signal arrived just "
683 "after the test but just before the call. By contrast, B<pselect>() allows "
684 "one to first block signals, handle the signals that have come in, then call "
685 "B<pselect>() with the desired I<sigmask>, avoiding the race.)"
686 msgstr ""
687 "De reden dat B<pselect>() nodig is, is dat als men wil wachten op ofwel een "
688 "signaal of het \"gereed\" worden van een bestandsindicator, dan voorkomt "
689 "een atomaire test race-condities. (Veronderstel dat de signaal afhandelaar "
690 "een globale vlag zet en terug keert. Dan zou een test van deze globale vlag "
691 "gevolgd door een aanroep van B<select>() oneindig lang hangen als het "
692 "signaal precies na de test aankwam maar precies vóór de aanroep. In "
693 "tegenstelling hiermee staat B<pselect>() toe om eerst het signaal te "
694 "blokkeren, het ontvangen signaal af te handelen, en dat B<pselect>() aan te "
695 "roepen, met het gewenste I<sigmask>, daarmee de race te voorkomen. "
696
697 #. type: SS
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "The timeout"
702 msgstr "De tijdslimiet"
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid ""
708 "The I<timeout> argument for B<select>() is a structure of the following "
709 "type:"
710 msgstr ""
711 "Het I<tijdslimiet> argument van B<select>() is een structure van het "
712 "volgende type:"
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid ""
719 "struct timeval {\n"
720 " time_t tv_sec; /* seconds */\n"
721 " suseconds_t tv_usec; /* microseconds */\n"
722 "};\n"
723 msgstr ""
724 "struct timeval {\n"
725 " time_t tv_sec; /* seconden */\n"
726 " suseconds_t tv_usec; /* microseconden */\n"
727 "};\n"
728
729 #. type: Plain text
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 msgid ""
733 "The corresponding argument for B<pselect>() is a B<timespec>(3) structure."
734 msgstr ""
735 "Het overeenkomende argument voor B<pselect>() is een B<timespec>(3) "
736 "structure:"
737
738 #. .P - it is rumored that:
739 #. On BSD, when a timeout occurs, the file descriptor bits are not changed.
740 #. - it is certainly true that:
741 #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout.
742 #. type: Plain text
743 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
744 #: opensuse-tumbleweed
745 #, fuzzy
746 #| msgid ""
747 #| "On Linux, B<select>() modifies I<timeout> to reflect the amount of time "
748 #| "not slept; most other implementations do not do this. (POSIX.1 permits "
749 #| "either behavior.) This causes problems both when Linux code which reads "
750 #| "I<timeout> is ported to other operating systems, and when code is ported "
751 #| "to Linux that reuses a I<struct timeval> for multiple B<select>()s in a "
752 #| "loop without reinitializing it. Consider I<timeout> to be undefined "
753 #| "after B<select>() returns."
754 msgid ""
755 "On Linux, B<select>() modifies I<timeout> to reflect the amount of time not "
756 "slept; most other implementations do not do this. (POSIX.1 permits either "
757 "behavior.) This causes problems both when Linux code which reads I<timeout> "
758 "is ported to other operating systems, and when code is ported to Linux that "
759 "reuses a I<struct\\ timeval> for multiple B<select>()s in a loop without "
760 "reinitializing it. Consider I<timeout> to be undefined after B<select>() "
761 "returns."
762 msgstr ""
763 "Op Linux, wijzigt B<select>() I<tijdslimiet> om de niet geslapen tijd weer "
764 "te geven; de meeste andere implementaties doen dit niet. (POSIX.1 staat "
765 "beide gedragingen toe.) Dit veroorzaakt problemen zowel wanneer Linux code "
766 "die I<tijdslimiet> leest, wordt overgezet op andere besturingssystemen, als "
767 "wanneer code wordt overgezet naar Linux, die I<struct timeval> hergebruikt "
768 "voor meerdere B<select>() in een lus zonder deze te her-initialiseren. "
769 "Beschouw I<tijdslimiet> niet gedefinieerd nadat B<select> terugkeert"
770
771 #. type: SH
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 #, no-wrap
775 msgid "RETURN VALUE"
776 msgstr "EIND WAARDE"
777
778 #. type: Plain text
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 msgid ""
782 "On success, B<select>() and B<pselect>() return the number of file "
783 "descriptors contained in the three returned descriptor sets (that is, the "
784 "total number of bits that are set in I<readfds>, I<writefds>, "
785 "I<exceptfds>). The return value may be zero if the timeout expired before "
786 "any file descriptors became ready."
787 msgstr ""
788 "Bij succes geven B<select>() en B<pselect>() het aantal bestandsindicators "
789 "terug die bevat zijn in de drie geretourneerde indicator verzamelingen (dat "
790 "is, het totaal aantal bits die gezet zijn in I<leesbi>, I<schrijfbi>, "
791 "I<uitzondbi>). De uitvoer waarde mag nul zijn als de tijdslimiet verliep "
792 "voordat een van de indicators \"gereed\" werd."
793
794 #. type: Plain text
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 msgid ""
798 "On error, -1 is returned, and I<errno> is set to indicate the error; the "
799 "file descriptor sets are unmodified, and I<timeout> becomes undefined."
800 msgstr ""
801 "Bij een fout wordt -1 teruggegeven en I<errno> wordt overeenkomstig gezet; "
802 "de bestandsindicators verzamelingen blijven ongewijzigd en I<tijdslimiet> "
803 "wordt ongedefinieerd."
804
805 #. type: SH
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 #, no-wrap
809 msgid "ERRORS"
810 msgstr "FOUTEN"
811
812 #. type: TP
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, no-wrap
816 msgid "B<EBADF>"
817 msgstr "B<EBADF>"
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "An invalid file descriptor was given in one of the sets. (Perhaps a file "
824 "descriptor that was already closed, or one on which an error has occurred.) "
825 "However, see BUGS."
826 msgstr ""
827 "Een ongeldige bestandsindicator werd opgegeven in een van de verzamelingen. "
828 "(Misschien een bestandsindicator die al gesloten werd, of een waarop een "
829 "fout is opgetreden.) Hoewel, zie BUGS."
830
831 #. type: TP
832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
834 #, no-wrap
835 msgid "B<EINTR>"
836 msgstr "B<EINTR>"
837
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid "A signal was caught; see B<signal>(7)."
842 msgstr "Een signaal werd gevangen; zie B<signal>(7)."
843
844 #. type: TP
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 #, no-wrap
848 msgid "B<EINVAL>"
849 msgstr "B<EINVAL>"
850
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "I<nfds> is negative or exceeds the B<RLIMIT_NOFILE> resource limit (see "
856 "B<getrlimit>(2))."
857 msgstr ""
858 "I<nfds> is negatief of overschrijdt de B<RLIMIT_NOFILE> hulpbron limiet "
859 "(zie B<getrlimit>(2))."
860
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 msgid "The value contained within I<timeout> is invalid."
865 msgstr "De waarde bevat in I<tijdslimiet> is ongeldig."
866
867 #. type: TP
868 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
869 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid "B<ENOMEM>"
872 msgstr "B<ENOMEM>"
873
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 msgid "Unable to allocate memory for internal tables."
878 msgstr ""
879 "Het was niet mogelijk om voldoende geheugen de bemachtigen voor interne "
880 "tabellen."
881
882 #. type: SH
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 #, no-wrap
886 msgid "VERSIONS"
887 msgstr "VERSIES"
888
889 #. Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett
890 #. type: Plain text
891 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
892 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
893 msgid ""
894 "On some other UNIX systems, B<select>() can fail with the error B<EAGAIN> "
895 "if the system fails to allocate kernel-internal resources, rather than "
896 "B<ENOMEM> as Linux does. POSIX specifies this error for B<poll>(2), but not "
897 "for B<select>(). Portable programs may wish to check for B<EAGAIN> and "
898 "loop, just as with B<EINTR>."
899 msgstr ""
900 "Op sommige andere UNIX systemen, kan B<select>() falen met de fout B<EAGAIN> "
901 "als het systeem faalt om kernel-interne hulpbronnen toe te kennen, in plaats "
902 "van B<ENOMEM> zoals Linux doet. POSIX specificeert deze fout voor "
903 "B<poll>(2), maar niet voor B<select>(). Overdraagbare programma´s "
904 "controleren beter op B<EAGAIN> en lussen dan, net als bij B<EINTR>."
905
906 #. type: SH
907 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
908 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
909 #, no-wrap
910 msgid "STANDARDS"
911 msgstr "STANDAARDEN"
912
913 #. type: Plain text
914 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
915 #: opensuse-tumbleweed
916 msgid "POSIX.1-2024."
917 msgstr "POSIX.1-2024."
918
919 #. type: SH
920 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
921 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
922 #, no-wrap
923 msgid "HISTORY"
924 msgstr "HISTORIE"
925
926 #. type: TP
927 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
928 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
929 #, no-wrap
930 msgid "B<select>()"
931 msgstr "B<select>()"
932
933 #. type: Plain text
934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
936 msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)."
937 msgstr "POSIX.1-2001, 4.4BSD (verscheen voor het eerst in 4.2BSD)."
938
939 #. type: Plain text
940 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
941 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
942 msgid ""
943 "Generally portable to/from non-BSD systems supporting clones of the BSD "
944 "socket layer (including System\\ V variants). However, note that the "
945 "System\\ V variant typically sets the timeout variable before returning, but "
946 "the BSD variant does not."
947 msgstr ""
948 "Algemeen overdraagbaar naar/van niet-BSD systemen daarbij de klonen met de "
949 "BSD socket laag ondersteunend (inclusief System\\ V varianten). Let op dat "
950 "de System\\ V varianten typisch de tijdslimiet variabele zet voor terugkeer, "
951 "maar dat de BSD variant dit niet doet."
952
953 #. type: TP
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 #, no-wrap
957 msgid "B<pselect>()"
958 msgstr "B<pselect>()"
959
960 #. type: Plain text
961 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
962 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
963 msgid "Linux 2.6.16. POSIX.1g, POSIX.1-2001."
964 msgstr "Linux 2.6.16. POSIX.1g, POSIX.1-2001."
965
966 #. type: Plain text
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 msgid "Prior to this, it was emulated in glibc (but see BUGS)."
970 msgstr "Voordien werd het geëmuleerd in glibc (echter zie BUGS)"
971
972 #. type: TP
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 #, no-wrap
976 msgid "B<fd_set>"
977 msgstr "B<fd_set>"
978
979 #. type: Plain text
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 msgid "POSIX.1-2001."
983 msgstr "POSIX.1-2001."
984
985 #. type: SH
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 #, no-wrap
989 msgid "NOTES"
990 msgstr "OPMERKINGEN"
991
992 #. type: Plain text
993 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
994 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
995 msgid ""
996 "The following header also provides the I<fd_set> type: I<E<lt>sys/"
997 "time.hE<gt>>."
998 msgstr ""
999 "De volgende header voorziet ook in het I<fd_set> type: I<E<lt>sys/"
1000 "time.hE<gt>>."
1001
1002 #. type: Plain text
1003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1005 msgid ""
1006 "An I<fd_set> is a fixed size buffer. Executing B<FD_CLR>() or B<FD_SET>() "
1007 "with a value of I<fd> that is negative or is equal to or larger than "
1008 "B<FD_SETSIZE> will result in undefined behavior. Moreover, POSIX requires "
1009 "I<fd> to be a valid file descriptor."
1010 msgstr ""
1011 "Als I<fd_set> een vaste buffer grootte is. Uitvoeren van B<FD_CLR>() of "
1012 "B<FD_SET>() met een waarden van I<bi> die negatief is of groter of gelijk is "
1013 "aan B<FD_SETSIZE> zal resulteren in onbepaald gedrag. Bovendien vereist "
1014 "POSIX dat I<bi> een geldige bestandsindicator is."
1015
1016 #. type: Plain text
1017 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1018 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1019 msgid ""
1020 "The operation of B<select>() and B<pselect>() is not affected by the "
1021 "B<O_NONBLOCK> flag."
1022 msgstr ""
1023 "De werking van B<select>() en B<pselect>() wordt niet beïnvloed door de "
1024 "B<O_NONBLOCK> vlag."
1025
1026 #. type: SS
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 #, no-wrap
1030 msgid "The self-pipe trick"
1031 msgstr "De zelf-pijp truc"
1032
1033 #. type: Plain text
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 msgid ""
1037 "On systems that lack B<pselect>(), reliable (and more portable) signal "
1038 "trapping can be achieved using the self-pipe trick. In this technique, a "
1039 "signal handler writes a byte to a pipe whose other end is monitored by "
1040 "B<select>() in the main program. (To avoid possibly blocking when writing "
1041 "to a pipe that may be full or reading from a pipe that may be empty, "
1042 "nonblocking I/O is used when reading from and writing to the pipe.)"
1043 msgstr ""
1044 "Op systemen waar B<pselect>() ontbreekt, betrouwbare (en meer overdraagbare) "
1045 "signaal trapping kan worden bereikt met de zelf-pijp truc. In deze truc "
1046 "schrijft een signaal afhandelaar een byte naar een pijp wiens andere einde "
1047 "wordt gemonitord door B<select>() in het hoofdprogramma. (Om blokkeren te "
1048 "voorkomen bij het schrijven naar een volle pijp, of lezen van een lege pijp, "
1049 "dient niet-blokkerende Invoer/Uitvoer gebruikt te worden bij het lezen van "
1050 "en schrijven naar een pijp.)"
1051
1052 #. type: SS
1053 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1054 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1055 #, no-wrap
1056 msgid "Emulating usleep(3)"
1057 msgstr "Emuleren usleep(3)"
1058
1059 #. type: Plain text
1060 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1061 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1062 msgid ""
1063 "Before the advent of B<usleep>(3), some code employed a call to B<select>() "
1064 "with all three sets empty, I<nfds> zero, and a non-NULL I<timeout> as a "
1065 "fairly portable way to sleep with subsecond precision."
1066 msgstr ""
1067 "Voor het verschijnen van B<usleep>(3) gebruikte sommige code de aanroep van "
1068 "B<select>() met alle verzamelingen leeg, I<nfds> nul, en een niet-NULL "
1069 "I<tijdslimiet> als een enigszins overdraagbare manier om met subseconde "
1070 "precisie te slapen."
1071
1072 #. type: SS
1073 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1074 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1075 #, no-wrap
1076 msgid "Correspondence between select() and poll() notifications"
1077 msgstr "Overeenkomsten tussen select() en poll() meldingen"
1078
1079 #. fs/select.c
1080 #. type: Plain text
1081 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1082 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1083 msgid ""
1084 "Within the Linux kernel source, we find the following definitions which show "
1085 "the correspondence between the readable, writable, and exceptional condition "
1086 "notifications of B<select>() and the event notifications provided by "
1087 "B<poll>(2) and B<epoll>(7):"
1088 msgstr ""
1089 "In de Linux kernel broncode vinden we de volgende definities die de "
1090 "overeenkomsten tussen de leesbare, schrijfbare en uitzondering condities "
1091 "notificaties van B<select>() tonen en de gebeurtenis notificaties voorzien "
1092 "door B<poll>(2) en B<epoll>(7):"
1093
1094 #. type: Plain text
1095 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1096 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1097 #, no-wrap
1098 msgid ""
1099 "#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n"
1100 " EPOLLHUP | EPOLLERR)\n"
1101 " /* Ready for reading */\n"
1102 "#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n"
1103 " EPOLLERR)\n"
1104 " /* Ready for writing */\n"
1105 "#define POLLEX_SET (EPOLLPRI)\n"
1106 " /* Exceptional condition */\n"
1107 msgstr ""
1108 "#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n"
1109 " EPOLLHUP | EPOLLERR)\n"
1110 " /* Gereed om te lezen */\n"
1111 "#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n"
1112 " EPOLLERR)\n"
1113 " /* Gereed om te schrijven */\n"
1114 "#define POLLEX_SET (EPOLLPRI)\n"
1115 " /* Uitzondering conditie */\n"
1116
1117 #. type: SS
1118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1120 #, no-wrap
1121 msgid "Multithreaded applications"
1122 msgstr "Multithreaded applicaties"
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid ""
1128 "If a file descriptor being monitored by B<select>() is closed in another "
1129 "thread, the result is unspecified. On some UNIX systems, B<select>() "
1130 "unblocks and returns, with an indication that the file descriptor is ready "
1131 "(a subsequent I/O operation will likely fail with an error, unless another "
1132 "process reopens the file descriptor between the time B<select>() returned "
1133 "and the I/O operation is performed). On Linux (and some other systems), "
1134 "closing the file descriptor in another thread has no effect on B<select>(). "
1135 "In summary, any application that relies on a particular behavior in this "
1136 "scenario must be considered buggy."
1137 msgstr ""
1138 "Als een bestandsindicator die door B<select>() wordt gemonitord wordt "
1139 "gesloten in een andere thread, dan is het resultaat niet gespecificeerd. Op "
1140 "sommige UNIX systemen zal B<select>() uit blokkeren gaan en terug keren met "
1141 "een indicatie dat de bestandsindicator gereed is (een opvolgende Invoer/"
1142 "Uitvoer operatie zal mogelijk falen met een fout, behalve als een ander "
1143 "proces de bestandsindicator heropent tussen het tijdstip dat B<select>() "
1144 "terug gaf en de Invoer/Uitvoer operatie werd uitgevoerd). Op Linux (en "
1145 "sommige andere systemen) heeft het sluiten van de bestandsindicator in een "
1146 "andere thread geen effect op B<select>(). Samenvattend: een applicatie die "
1147 "vertrouwt op een specifiek gedrag in dit scenario moet als buggy beschouwd "
1148 "worden."
1149
1150 #. type: SS
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 #, no-wrap
1154 msgid "C library/kernel differences"
1155 msgstr "C library/kernel verschillen"
1156
1157 #. type: Plain text
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 msgid ""
1161 "The Linux kernel allows file descriptor sets of arbitrary size, determining "
1162 "the length of the sets to be checked from the value of I<nfds>. However, in "
1163 "the glibc implementation, the I<fd_set> type is fixed in size. See also "
1164 "BUGS."
1165 msgstr ""
1166 "De Linux kernel staat bestandsindicator verzamelingen van willekeurige "
1167 "grootte toe, waarbij de lengte van de verzamelingen kan worden bepaald aan "
1168 "de hand van de waarde van I<nfds>. Hoewel in de glibc implementatie het type "
1169 "I<fs_set> een vaste grootte heeft. Zie ook BUGS."
1170
1171 #. type: Plain text
1172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid ""
1175 "The B<pselect>() interface described in this page is implemented by glibc. "
1176 "The underlying Linux system call is named B<pselect6>(). This system call "
1177 "has somewhat different behavior from the glibc wrapper function."
1178 msgstr ""
1179 "Het B<pselect>() interface beschreven op deze pagina is geïmplementeerd in "
1180 "glibc. De onderliggende Linux systeem aanroep is B<pselect6>() genaamd. "
1181 "Deze systeem aanroep verschilt iet of wat in gedrag van de glibc omwikkel "
1182 "functie."
1183
1184 #. type: Plain text
1185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1187 msgid ""
1188 "The Linux B<pselect6>() system call modifies its I<timeout> argument. "
1189 "However, the glibc wrapper function hides this behavior by using a local "
1190 "variable for the timeout argument that is passed to the system call. Thus, "
1191 "the glibc B<pselect>() function does not modify its I<timeout> argument; "
1192 "this is the behavior required by POSIX.1-2001."
1193 msgstr ""
1194 "De Linux B<pselect6>() systeem aanroep verandert zijn I<tijdslimiet> "
1195 "argument. Hoewel de glibc omwikkel functie dit gedrag verbergt door het "
1196 "gebruik van een lokale variabele voor het timeout argument dat wordt door "
1197 "gegeven aan de systeem aanroep. Dus modificeert de glibc B<pselect>() "
1198 "functie zijn argument I<tijdslimiet> niet; dit gedrag wordt ook vereist door "
1199 "POSIX.1-2001."
1200
1201 #. type: Plain text
1202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1204 msgid ""
1205 "The final argument of the B<pselect6>() system call is not a I<sigset_t\\ "
1206 "*> pointer, but is instead a structure of the form:"
1207 msgstr ""
1208 "Het laatste argument van de B<pselect6>() systeem aanroep is geen "
1209 "I<sigset_t\\ *> wijzer, maar in plaats daarvan een structure van de vorm:"
1210
1211 #. type: Plain text
1212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1214 #, no-wrap
1215 msgid ""
1216 "struct {\n"
1217 " const kernel_sigset_t *ss; /* Pointer to signal set */\n"
1218 " size_t ss_len; /* Size (in bytes) of object\n"
1219 " pointed to by \\[aq]ss\\[aq] */\n"
1220 "};\n"
1221 msgstr ""
1222 "struct {\n"
1223 " const kernel_sigset_t *ss; /* Wijzer naar een signaal verzameling */\n"
1224 " size_t ss_len; /* Grootte (in bytes) van het object\n"
1225 " aangewezen door \\[aq]ss\\[aq] */\n"
1226 "};\n"
1227
1228 #. type: Plain text
1229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1231 msgid ""
1232 "This allows the system call to obtain both a pointer to the signal set and "
1233 "its size, while allowing for the fact that most architectures support a "
1234 "maximum of 6 arguments to a system call. See B<sigprocmask>(2) for a "
1235 "discussion of the difference between the kernel and libc notion of the "
1236 "signal set."
1237 msgstr ""
1238 "Dit staat de systeem aanroep toe om zowel een wijzer naar de signaal "
1239 "verzameling als ook zijn grootte te hebben, terwijl gelijkertijd wordt "
1240 "toegestaan op de meeste architecturen een maximum van 6 argumenten te "
1241 "ondersteunen voor de systeem aanroep. Zie B<sigprocmask>(2) voor een "
1242 "discussie over de verschillen tussen de kernel en de libc notatie van de "
1243 "signaal verzameling."
1244
1245 #. type: SS
1246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1248 #, no-wrap
1249 msgid "Historical glibc details"
1250 msgstr "Historische glibc details"
1251
1252 #. type: Plain text
1253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1255 msgid ""
1256 "glibc 2.0 provided an incorrect version of B<pselect>() that did not take a "
1257 "I<sigmask> argument."
1258 msgstr ""
1259 "glibc 2.0 voorzag in een incorrecte versie van B<pselect>() die niet om een "
1260 "I<sigmask> argument vroeg."
1261
1262 #. type: Plain text
1263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1265 msgid ""
1266 "From glibc 2.1 to glibc 2.2.1, one must define B<_GNU_SOURCE> in order to "
1267 "obtain the declaration of B<pselect>() from I<E<lt>sys/select.hE<gt>>."
1268 msgstr ""
1269 "In de glibc 2.1 tot 2.2.1 moest men B<_GNU_SOURCE> definiëren om de "
1270 "declaratie van B<pselect>() uit I<E<lt>sys/select.hE<gt>> te verkrijgen."
1271
1272 #. type: SH
1273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1275 #, no-wrap
1276 msgid "BUGS"
1277 msgstr "BUGS"
1278
1279 #. type: Plain text
1280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1282 msgid ""
1283 "POSIX allows an implementation to define an upper limit, advertised via the "
1284 "constant B<FD_SETSIZE>, on the range of file descriptors that can be "
1285 "specified in a file descriptor set. The Linux kernel imposes no fixed "
1286 "limit, but the glibc implementation makes I<fd_set> a fixed-size type, with "
1287 "B<FD_SETSIZE> defined as 1024, and the B<FD_*>() macros operating according "
1288 "to that limit. To monitor file descriptors greater than 1023, use "
1289 "B<poll>(2) or B<epoll>(7) instead."
1290 msgstr ""
1291 "POSIX staat een implementatie toe om een bovenlimiet te definiëren, die "
1292 "wordt geadverteerd door de constante B<FD_SETSIZE>, voor de het bereik van "
1293 "bestandsindicatoren dat kan worden opgegeven in een bestandsindicator "
1294 "verzameling. De Linux kernel legt geen vaste limiet op, maar de glibc "
1295 "implementatie maakt van I<fd_set> een type van vaste grootte, met "
1296 "B<FD_SETSIZE> gedefinieerd als 1024, en de B<FD_*>() macro´s werkend conform "
1297 "deze limiet. Om bestandsindicatoren te monitoren die groter dan deze limiet "
1298 "zijn, moet u B<poll>(2) of B<epoll>(7) gebruiken."
1299
1300 #. type: Plain text
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 msgid ""
1304 "The implementation of the I<fd_set> arguments as value-result arguments is a "
1305 "design error that is avoided in B<poll>(2) and B<epoll>(7)."
1306 msgstr ""
1307 "De implementatie van de I<fd_sets> argumenten als het resultaat van een "
1308 "waarde argument is een ontwerpfout die werd voorkomen in B<poll>(2) en "
1309 "B<epoll>(7)"
1310
1311 #. type: Plain text
1312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1314 msgid ""
1315 "According to POSIX, B<select>() should check all specified file descriptors "
1316 "in the three file descriptor sets, up to the limit I<nfds-1>. However, the "
1317 "current implementation ignores any file descriptor in these sets that is "
1318 "greater than the maximum file descriptor number that the process currently "
1319 "has open. According to POSIX, any such file descriptor that is specified in "
1320 "one of the sets should result in the error B<EBADF>."
1321 msgstr ""
1322 "Volgens POSIX zou B<select>() alle opgegeven bestandsindicatoren in de drie "
1323 "bestandsindicatoren verzamelingen moeten controleren, tot aan de limiet "
1324 "I<nfds-1>. Hoewel de huidige implementatie elke bestandsindicator in deze "
1325 "verzamelingen negeert die groter is dan het maximum bestandsindicator getal "
1326 "dat het proces momenteel geopend heeft. Volgens POSIX zou elke "
1327 "bestandsindicator die werd opgegeven in een van de verzamelingen moeten "
1328 "resulteren in de B<EBADF> fout."
1329
1330 #. type: Plain text
1331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1333 msgid ""
1334 "Starting with glibc 2.1, glibc provided an emulation of B<pselect>() that "
1335 "was implemented using B<sigprocmask>(2) and B<select>(). This "
1336 "implementation remained vulnerable to the very race condition that "
1337 "B<pselect>() was designed to prevent. Modern versions of glibc use the "
1338 "(race-free) B<pselect>() system call on kernels where it is provided."
1339 msgstr ""
1340 "Vanaf glibc 2.1 voorzag glibc in een emulatie van B<pselect>() die werd "
1341 "geïmplementeerd gebruikmakend van B<sigprocmask>(2) en B<select>(). Deze "
1342 "implementatie was gevoelig voor dezelfde race conditie waarvoor nu precies "
1343 "B<pselect>() ontworpen was om te voorkomen. Moderne versies van glibc "
1344 "gebruiken de (race-vrije) B<pselect>() systeem aanroep op kernels waarin "
1345 "deze is voorzien."
1346
1347 #. Stevens discusses a case where accept can block after select
1348 #. returns successfully because of an intervening RST from the client.
1349 #. Maybe the kernel should have returned EIO in such a situation?
1350 #. type: Plain text
1351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1353 msgid ""
1354 "On Linux, B<select>() may report a socket file descriptor as \"ready for "
1355 "reading\", while nevertheless a subsequent read blocks. This could for "
1356 "example happen when data has arrived but upon examination has the wrong "
1357 "checksum and is discarded. There may be other circumstances in which a file "
1358 "descriptor is spuriously reported as ready. Thus it may be safer to use "
1359 "B<O_NONBLOCK> on sockets that should not block."
1360 msgstr ""
1361 "Op Linux kan B<select>() een socket bestandsindicator rapporteren als "
1362 "\"gereed om te lezen\", terwijl tegelijkertijd een opeenvolgende lees-actie "
1363 "blokkeert. Dit kan bijvoorbeeld optreden wanneer data werd ontvangen maar "
1364 "bij het onderzoeken blijkt dat de controlesom verkeerd is en wordt "
1365 "verworpen. Er kunnen andere omstandigheden zijn waarin bestandsindicatoren "
1366 "ten onrechte worden gerapporteerd als gereed. Het kan daarom veiliger zijn "
1367 "om B<O_NONBLOCK> te gebruiken op sockets die niet mogen blokkeren."
1368
1369 #. type: Plain text
1370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1372 msgid ""
1373 "On Linux, B<select>() also modifies I<timeout> if the call is interrupted "
1374 "by a signal handler (i.e., the B<EINTR> error return). This is not "
1375 "permitted by POSIX.1. The Linux B<pselect>() system call has the same "
1376 "behavior, but the glibc wrapper hides this behavior by internally copying "
1377 "the I<timeout> to a local variable and passing that variable to the system "
1378 "call."
1379 msgstr ""
1380 "Op Linux wijzigt B<select>() ook I<tijdslimiet> als de aanroep werd "
1381 "onderbroken door een signaal afhandelaar (m.a.w. de B<EINTR> foutmelding). "
1382 "Dit wordt niet toegestaan door POSIX.1. De Linux B<pselect>() systeem "
1383 "aanroep heeft hetzelfde gedrag, maar de glibc omwikkel functie verstopt dit "
1384 "gedrag door de I<tijdslimiet> intern te kopiëren naar een lokale variabele "
1385 "en deze variabele door te geven naar de systeem aanroep."
1386
1387 #. type: SH
1388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1390 #, no-wrap
1391 msgid "EXAMPLES"
1392 msgstr "VOORBEELDEN"
1393
1394 #. type: Plain text
1395 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1396 #: opensuse-tumbleweed
1397 #, fuzzy, no-wrap
1398 #| msgid ""
1399 #| "#include E<lt>stdio.hE<gt>\n"
1400 #| "#include E<lt>stdlib.hE<gt>\n"
1401 #| "#include E<lt>sys/select.hE<gt>\n"
1402 #| "#include E<lt>sys/time.hE<gt>\n"
1403 #| "\\&\n"
1404 #| "int\n"
1405 #| "main(void)\n"
1406 #| "{\n"
1407 #| " int retval;\n"
1408 #| " fd_set rfds;\n"
1409 #| " struct timeval tv;\n"
1410 #| "\\&\n"
1411 #| " /* Watch stdin (fd 0) to see when it has input. */\n"
1412 #| "\\&\n"
1413 #| " FD_ZERO(&rfds);\n"
1414 #| " FD_SET(0, &rfds);\n"
1415 #| "\\&\n"
1416 #| " /* Wait up to five seconds. */\n"
1417 #| "\\&\n"
1418 #| " tv.tv_sec = 5;\n"
1419 #| " tv.tv_usec = 0;\n"
1420 #| "\\&\n"
1421 #| " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1422 #| " /* Don\\[aq]t rely on the value of tv now! */\n"
1423 #| "\\&\n"
1424 #| " if (retval == -1)\n"
1425 #| " perror(\"select()\");\n"
1426 #| " else if (retval)\n"
1427 #| " printf(\"Data is available now.\\[rs]n\");\n"
1428 #| " /* FD_ISSET(0, &rfds) will be true. */\n"
1429 #| " else\n"
1430 #| " printf(\"No data within five seconds.\\[rs]n\");\n"
1431 #| "\\&\n"
1432 #| " exit(EXIT_SUCCESS);\n"
1433 #| "}\n"
1434 msgid ""
1435 "#include E<lt>stdio.hE<gt>\n"
1436 "#include E<lt>stdlib.hE<gt>\n"
1437 "#include E<lt>sys/select.hE<gt>\n"
1438 "#include E<lt>sys/time.hE<gt>\n"
1439 "\\&\n"
1440 "int\n"
1441 "main(void)\n"
1442 "{\n"
1443 " int retval;\n"
1444 " fd_set rfds;\n"
1445 " struct timeval tv;\n"
1446 "\\&\n"
1447 " /* Watch stdin (fd 0) to see when it has input. */\n"
1448 "\\&\n"
1449 " FD_ZERO(&rfds);\n"
1450 " FD_SET(0, &rfds);\n"
1451 "\\&\n"
1452 " /* Wait up to five seconds. */\n"
1453 "\\&\n"
1454 " tv.tv_sec = 5;\n"
1455 " tv.tv_usec = 0;\n"
1456 "\\&\n"
1457 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1458 " /* Don\\[aq]t rely on the value of tv now! */\n"
1459 "\\&\n"
1460 " if (retval == -1)\n"
1461 " perror(\"select()\");\n"
1462 " else if (retval)\n"
1463 " printf(\"Data is available now.\\[rs]n\");\n"
1464 " /* FD_ISSET(0, &rfds) will be true. */\n"
1465 " else\n"
1466 " printf(\"No data within five seconds.\\[rs]n\");\n"
1467 "\\&\n"
1468 " exit(EXIT_SUCCESS);\n"
1469 "}\n"
1470 msgstr ""
1471 "#include E<lt>stdio.hE<gt>\n"
1472 "#include E<lt>stdlib.hE<gt>\n"
1473 "#include E<lt>sys/select.hE<gt>\n"
1474 "#include E<lt>sys/time.hE<gt>\n"
1475 "\\&\n"
1476 "int\n"
1477 "main(void)\n"
1478 "{\n"
1479 " int retval;\n"
1480 " fd_set rfds;\n"
1481 " struct timeval tv;\n"
1482 "\\&\n"
1483 " /* Watch stdin (fd 0) to see when it has input. */\n"
1484 "\\&\n"
1485 " FD_ZERO(&rfds);\n"
1486 " FD_SET(0, &rfds);\n"
1487 "\\&\n"
1488 " /* Wait up to five seconds. */\n"
1489 "\\&\n"
1490 " tv.tv_sec = 5;\n"
1491 " tv.tv_usec = 0;\n"
1492 "\\&\n"
1493 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1494 " /* Don\\[aq]t rely on the value of tv now! */\n"
1495 "\\&\n"
1496 " if (retval == -1)\n"
1497 " perror(\"select()\");\n"
1498 " else if (retval)\n"
1499 " printf(\"Data is available now.\\[rs]n\");\n"
1500 " /* FD_ISSET(0, &rfds) will be true. */\n"
1501 " else\n"
1502 " printf(\"No data within five seconds.\\[rs]n\");\n"
1503 "\\&\n"
1504 " exit(EXIT_SUCCESS);\n"
1505 "}\n"
1506
1507 #. SRC END
1508 #. type: SH
1509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1511 #, no-wrap
1512 msgid "SEE ALSO"
1513 msgstr "ZIE OOK"
1514
1515 #. type: Plain text
1516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1518 msgid ""
1519 "B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), "
1520 "B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), "
1521 "B<timespec>(3), B<epoll>(7), B<time>(7)"
1522 msgstr ""
1523 "B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), "
1524 "B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), "
1525 "B<timespec>(3), B<epoll>(7), B<time>(7)"
1526
1527 #. type: Plain text
1528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1530 msgid "For a tutorial with discussion and examples, see B<select_tut>(2)."
1531 msgstr "Voor een inleiding met discussie en voorbeelden zie B<select_tut>(2)."
1532
1533 #. type: TH
1534 #: debian-trixie
1535 #, no-wrap
1536 msgid "2024-06-15"
1537 msgstr "15 juni 2024"
1538
1539 #. type: TH
1540 #: debian-trixie
1541 #, no-wrap
1542 msgid "Linux man-pages 6.9.1"
1543 msgstr "Linux man-paginas 6.9.1"
1544
1545 #. type: Plain text
1546 #: debian-trixie
1547 msgid "Standard C library (I<libc>, I<-lc>)"
1548 msgstr "Standaard C bibliotheek (I<libc>, I<-lc>)"
1549
1550 #. type: Plain text
1551 #: debian-trixie fedora-44 fedora-rawhide
1552 #, no-wrap
1553 msgid "B<typedef> /* ... */ B<fd_set;>\n"
1554 msgstr "B<typedef> /* ... */ B<fd_set;>\n"
1555
1556 #. type: Plain text
1557 #: debian-trixie fedora-44 fedora-rawhide
1558 #, no-wrap
1559 msgid ""
1560 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1561 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1562 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1563 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
1564 msgstr ""
1565 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1566 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1567 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1568 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
1569
1570 #. .P - it is rumored that:
1571 #. On BSD, when a timeout occurs, the file descriptor bits are not changed.
1572 #. - it is certainly true that:
1573 #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout.
1574 #. type: Plain text
1575 #: debian-trixie fedora-44 fedora-rawhide
1576 msgid ""
1577 "On Linux, B<select>() modifies I<timeout> to reflect the amount of time not "
1578 "slept; most other implementations do not do this. (POSIX.1 permits either "
1579 "behavior.) This causes problems both when Linux code which reads I<timeout> "
1580 "is ported to other operating systems, and when code is ported to Linux that "
1581 "reuses a I<struct timeval> for multiple B<select>()s in a loop without "
1582 "reinitializing it. Consider I<timeout> to be undefined after B<select>() "
1583 "returns."
1584 msgstr ""
1585 "Op Linux, wijzigt B<select>() I<tijdslimiet> om de niet geslapen tijd weer "
1586 "te geven; de meeste andere implementaties doen dit niet. (POSIX.1 staat "
1587 "beide gedragingen toe.) Dit veroorzaakt problemen zowel wanneer Linux code "
1588 "die I<tijdslimiet> leest, wordt overgezet op andere besturingssystemen, als "
1589 "wanneer code wordt overgezet naar Linux, die I<struct timeval> hergebruikt "
1590 "voor meerdere B<select>() in een lus zonder deze te her-initialiseren. "
1591 "Beschouw I<tijdslimiet> niet gedefinieerd nadat B<select> terugkeert"
1592
1593 #. type: Plain text
1594 #: debian-trixie fedora-44 fedora-rawhide
1595 msgid "POSIX.1-2008."
1596 msgstr "POSIX.1-2008."
1597
1598 #. type: Plain text
1599 #: debian-trixie
1600 #, no-wrap
1601 msgid ""
1602 "#include E<lt>stdio.hE<gt>\n"
1603 "#include E<lt>stdlib.hE<gt>\n"
1604 "#include E<lt>sys/select.hE<gt>\n"
1605 "\\&\n"
1606 "int\n"
1607 "main(void)\n"
1608 "{\n"
1609 " int retval;\n"
1610 " fd_set rfds;\n"
1611 " struct timeval tv;\n"
1612 "\\&\n"
1613 " /* Watch stdin (fd 0) to see when it has input. */\n"
1614 "\\&\n"
1615 " FD_ZERO(&rfds);\n"
1616 " FD_SET(0, &rfds);\n"
1617 "\\&\n"
1618 " /* Wait up to five seconds. */\n"
1619 "\\&\n"
1620 " tv.tv_sec = 5;\n"
1621 " tv.tv_usec = 0;\n"
1622 "\\&\n"
1623 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1624 " /* Don\\[aq]t rely on the value of tv now! */\n"
1625 "\\&\n"
1626 " if (retval == -1)\n"
1627 " perror(\"select()\");\n"
1628 " else if (retval)\n"
1629 " printf(\"Data is available now.\\[rs]n\");\n"
1630 " /* FD_ISSET(0, &rfds) will be true. */\n"
1631 " else\n"
1632 " printf(\"No data within five seconds.\\[rs]n\");\n"
1633 "\\&\n"
1634 " exit(EXIT_SUCCESS);\n"
1635 "}\n"
1636 msgstr ""
1637 "#include E<lt>stdio.hE<gt>\n"
1638 "#include E<lt>stdlib.hE<gt>\n"
1639 "#include E<lt>sys/select.hE<gt>\n"
1640 "\\&\n"
1641 "int\n"
1642 "main(void)\n"
1643 "{\n"
1644 " int retval;\n"
1645 " fd_set rfds;\n"
1646 " struct timeval tv;\n"
1647 "\\&\n"
1648 " /* Watch stdin (fd 0) to see when it has input. */\n"
1649 "\\&\n"
1650 " FD_ZERO(&rfds);\n"
1651 " FD_SET(0, &rfds);\n"
1652 "\\&\n"
1653 " /* Wait up to five seconds. */\n"
1654 "\\&\n"
1655 " tv.tv_sec = 5;\n"
1656 " tv.tv_usec = 0;\n"
1657 "\\&\n"
1658 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1659 " /* Don\\[aq]t rely on the value of tv now! */\n"
1660 "\\&\n"
1661 " if (retval == -1)\n"
1662 " perror(\"select()\");\n"
1663 " else if (retval)\n"
1664 " printf(\"Data is available now.\\[rs]n\");\n"
1665 " /* FD_ISSET(0, &rfds) will be true. */\n"
1666 " else\n"
1667 " printf(\"No data within five seconds.\\[rs]n\");\n"
1668 "\\&\n"
1669 " exit(EXIT_SUCCESS);\n"
1670 "}\n"
1671
1672 #. type: TH
1673 #: fedora-44 fedora-rawhide
1674 #, no-wrap
1675 msgid "2024-11-03"
1676 msgstr "3 november 2024"
1677
1678 #. type: TH
1679 #: fedora-44 fedora-rawhide
1680 #, no-wrap
1681 msgid "Linux man-pages 6.13"
1682 msgstr "Linux man-paginas 6.13"
1683
1684 #. type: Plain text
1685 #: fedora-44 fedora-rawhide
1686 #, no-wrap
1687 msgid ""
1688 "#include E<lt>stdio.hE<gt>\n"
1689 "#include E<lt>stdlib.hE<gt>\n"
1690 "#include E<lt>sys/select.hE<gt>\n"
1691 "#include E<lt>sys/time.hE<gt>\n"
1692 "\\&\n"
1693 "int\n"
1694 "main(void)\n"
1695 "{\n"
1696 " int retval;\n"
1697 " fd_set rfds;\n"
1698 " struct timeval tv;\n"
1699 "\\&\n"
1700 " /* Watch stdin (fd 0) to see when it has input. */\n"
1701 "\\&\n"
1702 " FD_ZERO(&rfds);\n"
1703 " FD_SET(0, &rfds);\n"
1704 "\\&\n"
1705 " /* Wait up to five seconds. */\n"
1706 "\\&\n"
1707 " tv.tv_sec = 5;\n"
1708 " tv.tv_usec = 0;\n"
1709 "\\&\n"
1710 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1711 " /* Don\\[aq]t rely on the value of tv now! */\n"
1712 "\\&\n"
1713 " if (retval == -1)\n"
1714 " perror(\"select()\");\n"
1715 " else if (retval)\n"
1716 " printf(\"Data is available now.\\[rs]n\");\n"
1717 " /* FD_ISSET(0, &rfds) will be true. */\n"
1718 " else\n"
1719 " printf(\"No data within five seconds.\\[rs]n\");\n"
1720 "\\&\n"
1721 " exit(EXIT_SUCCESS);\n"
1722 "}\n"
1723 msgstr ""
1724 "#include E<lt>stdio.hE<gt>\n"
1725 "#include E<lt>stdlib.hE<gt>\n"
1726 "#include E<lt>sys/select.hE<gt>\n"
1727 "#include E<lt>sys/time.hE<gt>\n"
1728 "\\&\n"
1729 "int\n"
1730 "main(void)\n"
1731 "{\n"
1732 " int retval;\n"
1733 " fd_set rfds;\n"
1734 " struct timeval tv;\n"
1735 "\\&\n"
1736 " /* Watch stdin (fd 0) to see when it has input. */\n"
1737 "\\&\n"
1738 " FD_ZERO(&rfds);\n"
1739 " FD_SET(0, &rfds);\n"
1740 "\\&\n"
1741 " /* Wait up to five seconds. */\n"
1742 "\\&\n"
1743 " tv.tv_sec = 5;\n"
1744 " tv.tv_usec = 0;\n"
1745 "\\&\n"
1746 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1747 " /* Don\\[aq]t rely on the value of tv now! */\n"
1748 "\\&\n"
1749 " if (retval == -1)\n"
1750 " perror(\"select()\");\n"
1751 " else if (retval)\n"
1752 " printf(\"Data is available now.\\[rs]n\");\n"
1753 " /* FD_ISSET(0, &rfds) will be true. */\n"
1754 " else\n"
1755 " printf(\"No data within five seconds.\\[rs]n\");\n"
1756 "\\&\n"
1757 " exit(EXIT_SUCCESS);\n"
1758 "}\n"
1759
1760 #. type: TH
1761 #: mageia-cauldron
1762 #, no-wrap
1763 msgid "Linux man-pages 6.17"
1764 msgstr "Linux man-paginas 6.17"
1765
1766 #. type: TH
1767 #: opensuse-leap-16-1 opensuse-tumbleweed
1768 #, no-wrap
1769 msgid "Linux man-pages (unreleased)"
1770 msgstr "Linux man-paginas (niet vrijgegeven)"