Debian Codegraph @

templates/man2/epoll_wait.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "epoll_wait"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "epoll_wait, epoll_pwait, epoll_pwait2 - wait for an I/O event on an epoll "
51 "file descriptor"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>sys/epoll.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int epoll_wait(>int n;\n"
87 "B< int >I<epfd>B<, struct epoll_event >I<events>B<[>I<n>B<], int >I<n>B<,>\n"
88 "B< int >I<timeout>B<);>\n"
89 "B<int epoll_pwait(>int n;\n"
90 "B< int >I<epfd>B<, struct epoll_event >I<events>B<[>I<n>B<], int >I<n>B<,>\n"
91 "B< int >I<timeout>B<,>\n"
92 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
93 "B<int epoll_pwait2(>int n;\n"
94 "B< int >I<epfd>B<, struct epoll_event >I<events>B<[>I<n>B<], int >I<n>B<,>\n"
95 "B< const struct timespec *_Nullable >I<timeout>B<,>\n"
96 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
97 msgstr ""
98
99 #. type: SH
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "DESCRIPTION"
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
108 #: opensuse-tumbleweed
109 msgid ""
110 "The B<epoll_wait>() system call waits for events on the B<epoll>(7) "
111 "instance referred to by the file descriptor I<epfd>. The buffer pointed to "
112 "by I<events> is used to return information from the ready list about file "
113 "descriptors in the interest list that have some events available. Up to "
114 "I<n> are returned by B<epoll_wait>(). The I<n> argument must be greater "
115 "than zero."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "The I<timeout> argument specifies the number of milliseconds that "
123 "B<epoll_wait>() will block. Time is measured against the "
124 "B<CLOCK_MONOTONIC> clock."
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid "A call to B<epoll_wait>() will block until either:"
131 msgstr ""
132
133 #. type: IP
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "\\[bu]"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid "a file descriptor delivers an event;"
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid "the call is interrupted by a signal handler; or"
150 msgstr ""
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 "the timeout expires."
156 msgstr ""
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 msgid ""
162 "Note that the I<timeout> interval will be rounded up to the system clock "
163 "granularity, and kernel scheduling delays mean that the blocking interval "
164 "may overrun by a small amount. Specifying a I<timeout> of -1 causes "
165 "B<epoll_wait>() to block indefinitely, while specifying a I<timeout> equal "
166 "to zero causes B<epoll_wait>() to return immediately, even if no events are "
167 "available."
168 msgstr ""
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid "The I<struct epoll_event> is described in B<epoll_event>(3type)."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "The I<data> field of each returned I<epoll_event> structure contains the "
181 "same data as was specified in the most recent call to B<epoll_ctl>(2) "
182 "(B<EPOLL_CTL_ADD>, B<EPOLL_CTL_MOD>) for the corresponding open file "
183 "descriptor."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "The I<events> field is a bit mask that indicates the events that have "
191 "occurred for the corresponding open file description. See B<epoll_ctl>(2) "
192 "for a list of the bits that may appear in this mask."
193 msgstr ""
194
195 #. type: SS
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "epoll_pwait()"
200 msgstr ""
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 relationship between B<epoll_wait>() and B<epoll_pwait>() is analogous "
207 "to the relationship between B<select>(2) and B<pselect>(2): like "
208 "B<pselect>(2), B<epoll_pwait>() allows an application to safely wait until "
209 "either a file descriptor becomes ready or until a signal is caught."
210 msgstr ""
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 "The following B<epoll_pwait>() call:"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
220 #: opensuse-tumbleweed
221 #, no-wrap
222 msgid "ready = epoll_pwait(epfd, &events, n, timeout, &sigmask);\n"
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid "is equivalent to I<atomically> executing the following calls:"
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
233 #: opensuse-tumbleweed
234 #, no-wrap
235 msgid ""
236 "sigset_t origmask;\n"
237 "\\&\n"
238 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
239 "ready = epoll_wait(epfd, &events, n, timeout);\n"
240 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
241 msgstr ""
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "The I<sigmask> argument may be specified as NULL, in which case "
248 "B<epoll_pwait>() is equivalent to B<epoll_wait>()."
249 msgstr ""
250
251 #. type: SS
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "epoll_pwait2()"
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "The B<epoll_pwait2>() system call is equivalent to B<epoll_pwait>() except "
263 "for the I<timeout> argument. It takes an argument of type I<timespec> to be "
264 "able to specify nanosecond resolution timeout. This argument functions the "
265 "same as in B<pselect>(2) and B<ppoll>(2). If I<timeout> is NULL, then "
266 "B<epoll_pwait2>() can block indefinitely."
267 msgstr ""
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "RETURN VALUE"
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "On success, B<epoll_wait>() returns the number of file descriptors ready "
281 "for the requested I/O operation, or zero if no file descriptor became ready "
282 "during the requested I<timeout> milliseconds. On failure, B<epoll_wait>() "
283 "returns -1 and I<errno> is set to indicate the error."
284 msgstr ""
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "ERRORS"
291 msgstr ""
292
293 #. type: TP
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "B<EBADF>"
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "I<epfd> is not a valid file descriptor."
304 msgstr ""
305
306 #. type: TP
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "B<EFAULT>"
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid ""
317 "The memory area pointed to by I<events> is not accessible with write "
318 "permissions."
319 msgstr ""
320
321 #. type: TP
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "B<EINTR>"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid ""
332 "The call was interrupted by a signal handler before either (1) any of the "
333 "requested events occurred or (2) the I<timeout> expired; see B<signal>(7)."
334 msgstr ""
335
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "B<EINVAL>"
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
345 #: opensuse-tumbleweed
346 msgid ""
347 "I<epfd> is not an B<epoll> file descriptor, or I<n> is less than or equal to "
348 "zero."
349 msgstr ""
350
351 #. type: SH
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "STANDARDS"
356 msgstr ""
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid "Linux."
362 msgstr ""
363
364 #. type: SH
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "HISTORY"
369 msgstr ""
370
371 #. type: TP
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "B<epoll_wait>()"
376 msgstr ""
377
378 #. To be precise: Linux 2.5.44.
379 #. The interface should be finalized by Linux 2.5.66.
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid "Linux 2.6, glibc 2.3.2."
384 msgstr ""
385
386 #. type: TP
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "B<epoll_pwait>()"
391 msgstr ""
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid "Linux 2.6.19, glibc 2.6."
397 msgstr ""
398
399 #. type: TP
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "B<epoll_pwait2>()"
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid "Linux 5.11."
410 msgstr ""
411
412 #. type: SH
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "NOTES"
417 msgstr ""
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "While one thread is blocked in a call to B<epoll_wait>(), it is possible for "
424 "another thread to add a file descriptor to the waited-upon B<epoll> "
425 "instance. If the new file descriptor becomes ready, it will cause the "
426 "B<epoll_wait>() call to unblock."
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
431 #: opensuse-tumbleweed
432 msgid ""
433 "If more than I<n> file descriptors are ready when B<epoll_wait>() is "
434 "called, then successive B<epoll_wait>() calls will round robin through the "
435 "set of ready file descriptors. This behavior helps avoid starvation "
436 "scenarios, where a process fails to notice that additional file descriptors "
437 "are ready because it focuses on a set of file descriptors that are already "
438 "known to be ready."
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "Note that it is possible to call B<epoll_wait>() on an B<epoll> instance "
446 "whose interest list is currently empty (or whose interest list becomes empty "
447 "because file descriptors are closed or removed from the interest in another "
448 "thread). The call will block until some file descriptor is later added to "
449 "the interest list (in another thread) and that file descriptor becomes ready."
450 msgstr ""
451
452 #. type: SS
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "C library/kernel differences"
457 msgstr ""
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "The raw B<epoll_pwait>() and B<epoll_pwait2>() system calls have a sixth "
464 "argument, I<size_t sigsetsize>, which specifies the size in bytes of the "
465 "I<sigmask> argument. The glibc B<epoll_pwait>() wrapper function specifies "
466 "this argument as a fixed value (equal to I<sizeof(sigset_t)>)."
467 msgstr ""
468
469 #. type: SH
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "BUGS"
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid ""
480 "Before Linux 2.6.37, a I<timeout> value larger than approximately "
481 "I<LONG_MAX / HZ> milliseconds is treated as -1 (i.e., infinity). Thus, for "
482 "example, on a system where I<sizeof(long)> is 4 and the kernel I<HZ> value "
483 "is 1000, this means that timeouts greater than 35.79 minutes are treated as "
484 "infinity."
485 msgstr ""
486
487 #. type: SH
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "SEE ALSO"
492 msgstr ""
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid "B<epoll_create>(2), B<epoll_ctl>(2), B<epoll>(7)"
498 msgstr ""
499
500 #. type: TH
501 #: debian-trixie
502 #, no-wrap
503 msgid "2024-05-02"
504 msgstr ""
505
506 #. type: TH
507 #: debian-trixie
508 #, no-wrap
509 msgid "Linux man-pages 6.9.1"
510 msgstr ""
511
512 #. type: Plain text
513 #: debian-trixie
514 msgid "Standard C library (I<libc>, I<-lc>)"
515 msgstr ""
516
517 #. type: Plain text
518 #: debian-trixie
519 #, no-wrap
520 msgid ""
521 "B<int epoll_wait(int >I<epfd>B<, struct epoll_event *>I<events>B<,>\n"
522 "B< int >I<maxevents>B<, int >I<timeout>B<);>\n"
523 "B<int epoll_pwait(int >I<epfd>B<, struct epoll_event *>I<events>B<,>\n"
524 "B< int >I<maxevents>B<, int >I<timeout>B<,>\n"
525 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
526 "B<int epoll_pwait2(int >I<epfd>B<, struct epoll_event *>I<events>B<,>\n"
527 "B< int >I<maxevents>B<, const struct timespec *_Nullable >I<timeout>B<,>\n"
528 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
529 msgstr ""
530
531 #. type: Plain text
532 #: debian-trixie fedora-44 fedora-rawhide
533 msgid ""
534 "The B<epoll_wait>() system call waits for events on the B<epoll>(7) "
535 "instance referred to by the file descriptor I<epfd>. The buffer pointed to "
536 "by I<events> is used to return information from the ready list about file "
537 "descriptors in the interest list that have some events available. Up to "
538 "I<maxevents> are returned by B<epoll_wait>(). The I<maxevents> argument "
539 "must be greater than zero."
540 msgstr ""
541
542 #. type: Plain text
543 #: debian-trixie fedora-44 fedora-rawhide
544 #, no-wrap
545 msgid "ready = epoll_pwait(epfd, &events, maxevents, timeout, &sigmask);\n"
546 msgstr ""
547
548 #. type: Plain text
549 #: debian-trixie fedora-44 fedora-rawhide
550 #, no-wrap
551 msgid ""
552 "sigset_t origmask;\n"
553 "\\&\n"
554 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
555 "ready = epoll_wait(epfd, &events, maxevents, timeout);\n"
556 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
557 msgstr ""
558
559 #. type: Plain text
560 #: debian-trixie fedora-44 fedora-rawhide
561 msgid ""
562 "I<epfd> is not an B<epoll> file descriptor, or I<maxevents> is less than or "
563 "equal to zero."
564 msgstr ""
565
566 #. type: Plain text
567 #: debian-trixie fedora-44 fedora-rawhide
568 msgid ""
569 "If more than I<maxevents> file descriptors are ready when B<epoll_wait>() "
570 "is called, then successive B<epoll_wait>() calls will round robin through "
571 "the set of ready file descriptors. This behavior helps avoid starvation "
572 "scenarios, where a process fails to notice that additional file descriptors "
573 "are ready because it focuses on a set of file descriptors that are already "
574 "known to be ready."
575 msgstr ""
576
577 #. type: TH
578 #: fedora-44 fedora-rawhide
579 #, no-wrap
580 msgid "2024-12-14"
581 msgstr ""
582
583 #. type: TH
584 #: fedora-44 fedora-rawhide
585 #, no-wrap
586 msgid "Linux man-pages 6.13"
587 msgstr ""
588
589 #. type: Plain text
590 #: fedora-44 fedora-rawhide
591 #, no-wrap
592 msgid ""
593 "B<int epoll_wait(int >I<epfd>B<, struct epoll_event >I<events>B<[.>I<maxevents>B<],>\n"
594 "B< int >I<maxevents>B<, int >I<timeout>B<);>\n"
595 "B<int epoll_pwait(int >I<epfd>B<, struct epoll_event >I<events>B<[.>I<maxevents>B<],>\n"
596 "B< int >I<maxevents>B<, int >I<timeout>B<,>\n"
597 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
598 "B<int epoll_pwait2(int >I<epfd>B<, struct epoll_event >I<events>B<[.>I<maxevents>B<],>\n"
599 "B< int >I<maxevents>B<, const struct timespec *_Nullable >I<timeout>B<,>\n"
600 "B< const sigset_t *_Nullable >I<sigmask>B<);>\n"
601 msgstr ""
602
603 #. type: TH
604 #: mageia-cauldron
605 #, no-wrap
606 msgid "Linux man-pages 6.17"
607 msgstr ""
608
609 #. type: TH
610 #: opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "Linux man-pages (unreleased)"
613 msgstr ""