Debian Codegraph @

po/ko/man2/select.2.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # 정강훈 <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
9 "PO-Revision-Date: 2000-07-01 08:57+0900\n"
10 "Last-Translator: 정강훈 <[email protected]>\n"
11 "Language-Team: Korean <[email protected]>\n"
12 "Language: ko\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=1; plural=0;\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "select"
23 msgstr "select"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "2026년 2월 8일"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "이름"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid ""
49 "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O "
50 "multiplexing"
51 msgstr ""
52 "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - 동기적 I/O 다중"
53 "화"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "라이브러리"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "요약"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/select.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/select.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<typedef> /* ... */ B<fd_set;>\n"
87 msgid "B<typedef> /* .\\|.\\|.\\& */ B<fd_set;>\n"
88 msgstr "B<typedef> /* ... */ B<fd_set;>\n"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid ""
95 "B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
96 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
97 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
98 "B< struct timeval *_Nullable restrict >I<timeout>B<);>\n"
99 msgstr ""
100 "B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
101 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
102 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
103 "B< struct timeval *_Nullable restrict >I<timeout>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
107 #: opensuse-tumbleweed
108 #, fuzzy, no-wrap
109 #| msgid ""
110 #| "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
111 #| "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
112 #| "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
113 #| "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
114 msgid ""
115 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
116 "B<int FD_ISSET(int >I<fd>B<, const fd_set *>I<set>B<);>\n"
117 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
118 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
119 msgstr ""
120 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
121 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
122 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
123 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid ""
130 "B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
131 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
132 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
133 "B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n"
134 "B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n"
135 msgstr ""
136 "B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n"
137 "B< fd_set *_Nullable restrict >I<writefds>B<,>\n"
138 "B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n"
139 "B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n"
140 "B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
147 msgstr "c"
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid "B<pselect>():"
153 msgstr "B<pselect>():"
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid " _POSIX_C_SOURCE E<gt>= 200112L\n"
160 msgstr " _POSIX_C_SOURCE E<gt>= 200112L\n"
161
162 #. type: SH
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "DESCRIPTION"
167 msgstr "설명"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "B<WARNING>: B<select>() can monitor only file descriptors numbers that are "
174 "less than B<FD_SETSIZE> (1024)\\[em]an unreasonably low limit for many "
175 "modern applications\\[em]and this limitation will not change. All modern "
176 "applications should instead use B<poll>(2) or B<epoll>(7), which do not "
177 "suffer this limitation."
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "B<select>() allows a program to monitor multiple file descriptors, waiting "
185 "until one or more of the file descriptors become \"ready\" for some class of "
186 "I/O operation (e.g., input possible). A file descriptor is considered ready "
187 "if it is possible to perform a corresponding I/O operation (e.g., "
188 "B<read>(2), or a sufficiently small B<write>(2)) without blocking."
189 msgstr ""
190
191 #. type: SS
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid "fd_set"
196 msgstr "fd_set"
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "A structure type that can represent a set of file descriptors. According to "
203 "POSIX, the maximum number of file descriptors in an I<fd_set> structure is "
204 "the value of the macro B<FD_SETSIZE>."
205 msgstr ""
206
207 #. type: SS
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, fuzzy, no-wrap
211 #| msgid "Invalid file descriptor I<fd>."
212 msgid "File descriptor sets"
213 msgstr "유효 하지 않은 파일 기술자 I<fd>."
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "The principal arguments of B<select>() are three \"sets\" of file "
220 "descriptors (declared with the type I<fd_set>), which allow the caller to "
221 "wait for three classes of events on the specified set of file descriptors. "
222 "Each of the I<fd_set> arguments may be specified as NULL if no file "
223 "descriptors are to be watched for the corresponding class of events."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "B<Note well>: Upon return, each of the file descriptor sets is modified in "
231 "place to indicate which file descriptors are currently \"ready\". Thus, if "
232 "using B<select>() within a loop, the sets I<must be reinitialized> before "
233 "each call."
234 msgstr ""
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "The contents of a file descriptor set can be manipulated using the following "
241 "macros:"
242 msgstr ""
243
244 #. type: TP
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "B<FD_ZERO>()"
249 msgstr "B<FD_ZERO>()"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "This macro clears (removes all file descriptors from) I<set>. It should be "
256 "employed as the first step in initializing a file descriptor set."
257 msgstr ""
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<FD_SET>()"
264 msgstr "B<FD_SET>()"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "This macro adds the file descriptor I<fd> to I<set>. Adding a file "
271 "descriptor that is already present in the set is a no-op, and does not "
272 "produce an error."
273 msgstr ""
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<FD_CLR>()"
280 msgstr "B<FD_CLR>()"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "This macro removes the file descriptor I<fd> from I<set>. Removing a file "
287 "descriptor that is not present in the set is a no-op, and does not produce "
288 "an error."
289 msgstr ""
290
291 #. type: TP
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "B<FD_ISSET>()"
296 msgstr "B<FD_ISSET>()"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "B<select>() modifies the contents of the sets according to the rules "
303 "described below. After calling B<select>(), the B<FD_ISSET>() macro can be "
304 "used to test if a file descriptor is still present in a set. B<FD_ISSET>() "
305 "returns nonzero if the file descriptor I<fd> is present in I<set>, and zero "
306 "if it is not."
307 msgstr ""
308
309 #. type: SS
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "Arguments"
314 msgstr "인자"
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 #, fuzzy
320 #| msgid "The options are as follows:"
321 msgid "The arguments of B<select>() are as follows:"
322 msgstr "여기서 사용되는 옵션은 다음과 같다:"
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "I<readfds>"
329 msgstr "I<readfds>"
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid ""
335 "The file descriptors in this set are watched to see if they are ready for "
336 "reading. A file descriptor is ready for reading if a read operation will "
337 "not block; in particular, a file descriptor is also ready on end-of-file."
338 msgstr ""
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "After B<select>() has returned, I<readfds> will be cleared of all file "
345 "descriptors except for those that are ready for reading."
346 msgstr ""
347
348 #. type: TP
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid "I<writefds>"
353 msgstr "I<writefds>"
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "The file descriptors in this set are watched to see if they are ready for "
360 "writing. A file descriptor is ready for writing if a write operation will "
361 "not block. However, even if a file descriptor indicates as writable, a "
362 "large write may still block."
363 msgstr ""
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "After B<select>() has returned, I<writefds> will be cleared of all file "
370 "descriptors except for those that are ready for writing."
371 msgstr ""
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "I<exceptfds>"
378 msgstr "I<exceptfds>"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "The file descriptors in this set are watched for \"exceptional "
385 "conditions\". For examples of some exceptional conditions, see the "
386 "discussion of B<POLLPRI> in B<poll>(2)."
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "After B<select>() has returned, I<exceptfds> will be cleared of all file "
394 "descriptors except for those for which an exceptional condition has occurred."
395 msgstr ""
396
397 #. type: TP
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "I<nfds>"
402 msgstr "I<nfds>"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "This argument should be set to the highest-numbered file descriptor in any "
409 "of the three sets, plus 1. The indicated file descriptors in each set are "
410 "checked, up to this limit (but see BUGS)."
411 msgstr ""
412
413 #. type: TP
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "I<timeout>"
418 msgstr "I<timeout>"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "The I<timeout> argument is a I<timeval> structure (shown below) that "
425 "specifies the interval that B<select>() should block waiting for a file "
426 "descriptor to become ready. The call will block until either:"
427 msgstr ""
428
429 #. type: IP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "\\[bu]"
434 msgstr "\\[bu]"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, fuzzy
440 #| msgid "File descriptor does not refer to a directory."
441 msgid "a file descriptor becomes ready;"
442 msgstr "파일 기술자가 디렉토리를 가리키지 않는다."
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid "the call is interrupted by a signal handler; or"
448 msgstr ""
449
450 #. type: Plain text
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 msgid "the timeout expires."
454 msgstr ""
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "Note that the I<timeout> interval will be rounded up to the system clock "
461 "granularity, and kernel scheduling delays mean that the blocking interval "
462 "may overrun by a small amount."
463 msgstr ""
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid ""
469 "If both fields of the I<timeval> structure are zero, then B<select>() "
470 "returns immediately. (This is useful for polling.)"
471 msgstr ""
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "If I<timeout> is specified as NULL, B<select>() blocks indefinitely waiting "
478 "for a file descriptor to become ready."
479 msgstr ""
480
481 #. type: SS
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "pselect()"
486 msgstr "pselect()"
487
488 #. type: Plain text
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 msgid ""
492 "The B<pselect>() system call allows an application to safely wait until "
493 "either a file descriptor becomes ready or until a signal is caught."
494 msgstr ""
495
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 msgid ""
500 "The operation of B<select>() and B<pselect>() is identical, other than "
501 "these three differences:"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "B<select>() uses a timeout that is a I<struct timeval> (with seconds and "
509 "microseconds), while B<pselect>() uses a I<struct timespec> (with seconds "
510 "and nanoseconds)."
511 msgstr ""
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "B<select>() may update the I<timeout> argument to indicate how much time "
518 "was left. B<pselect>() does not change this argument."
519 msgstr ""
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 "B<select>() has no I<sigmask> argument, and behaves as B<pselect>() called "
526 "with NULL I<sigmask>."
527 msgstr ""
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "I<sigmask> is a pointer to a signal mask (see B<sigprocmask>(2)); if it is "
534 "not NULL, then B<pselect>() first replaces the current signal mask by the "
535 "one pointed to by I<sigmask>, then does the \"select\" function, and then "
536 "restores the original signal mask. (If I<sigmask> is NULL, the signal mask "
537 "is not modified during the B<pselect>() call.)"
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "Other than the difference in the precision of the I<timeout> argument, the "
545 "following B<pselect>() call:"
546 msgstr ""
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid ""
553 "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n"
554 " timeout, &sigmask);\n"
555 msgstr ""
556 "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n"
557 " timeout, &sigmask);\n"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid "is equivalent to I<atomically> executing the following calls:"
563 msgstr ""
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, fuzzy, no-wrap
569 #| msgid ""
570 #| "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
571 #| "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n"
572 #| "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
573 msgid ""
574 "sigset_t origmask;\n"
575 "\\&\n"
576 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
577 "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n"
578 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
579 msgstr ""
580 "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n"
581 "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n"
582 "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "The reason that B<pselect>() is needed is that if one wants to wait for "
589 "either a signal or for a file descriptor to become ready, then an atomic "
590 "test is needed to prevent race conditions. (Suppose the signal handler sets "
591 "a global flag and returns. Then a test of this global flag followed by a "
592 "call of B<select>() could hang indefinitely if the signal arrived just "
593 "after the test but just before the call. By contrast, B<pselect>() allows "
594 "one to first block signals, handle the signals that have come in, then call "
595 "B<pselect>() with the desired I<sigmask>, avoiding the race.)"
596 msgstr ""
597
598 #. type: SS
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, no-wrap
602 msgid "The timeout"
603 msgstr ""
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "The I<timeout> argument for B<select>() is a structure of the following "
610 "type:"
611 msgstr ""
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 #, no-wrap
617 msgid ""
618 "struct timeval {\n"
619 " time_t tv_sec; /* seconds */\n"
620 " suseconds_t tv_usec; /* microseconds */\n"
621 "};\n"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "The corresponding argument for B<pselect>() is a B<timespec>(3) structure."
629 msgstr ""
630
631 #. .P - it is rumored that:
632 #. On BSD, when a timeout occurs, the file descriptor bits are not changed.
633 #. - it is certainly true that:
634 #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout.
635 #. type: Plain text
636 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
637 #: opensuse-tumbleweed
638 #, fuzzy
639 #| msgid ""
640 #| "On Linux, I<timeout> is modified to reflect the amount of time not slept; "
641 #| "most other implementations do not do this. This causes problems both "
642 #| "when Linux code which reads I<timeout> is ported to other operating "
643 #| "systems, and when code is ported to Linux that reuses a struct timeval "
644 #| "for multiple B<select>s in a loop without reinitializing it. Consider "
645 #| "I<timeout> to be undefined after B<select> returns."
646 msgid ""
647 "On Linux, B<select>() modifies I<timeout> to reflect the amount of time not "
648 "slept; most other implementations do not do this. (POSIX.1 permits either "
649 "behavior.) This causes problems both when Linux code which reads I<timeout> "
650 "is ported to other operating systems, and when code is ported to Linux that "
651 "reuses a I<struct\\ timeval> for multiple B<select>()s in a loop without "
652 "reinitializing it. Consider I<timeout> to be undefined after B<select>() "
653 "returns."
654 msgstr ""
655 "리눅스에서, I<timeout> 은 잠복되지 않은 시간의 양을 반영하기 위해 수정된다; "
656 "대부분의 다른 수행들은 이렇게 되지 않는다. 이것은 I<timeout> 을 읽은 리눅스 "
657 "코드들이 다른 OS로 포팅되거나 코드들이 초기화를 다시 하지 않고 반복문에서 다"
658 "중 B<select>s 를 위해 timeval 구조체를 다시 사용하여 리눅스로 포팅할때 문제들"
659 "을 야기한다. B<select> 에서 반환된후 정의되지 않은 I<timeout> 을 고려해야 한"
660 "다."
661
662 #. type: SH
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 #, no-wrap
666 msgid "RETURN VALUE"
667 msgstr "반환값"
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "On success, B<select>() and B<pselect>() return the number of file "
674 "descriptors contained in the three returned descriptor sets (that is, the "
675 "total number of bits that are set in I<readfds>, I<writefds>, "
676 "I<exceptfds>). The return value may be zero if the timeout expired before "
677 "any file descriptors became ready."
678 msgstr ""
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "On error, -1 is returned, and I<errno> is set to indicate the error; the "
685 "file descriptor sets are unmodified, and I<timeout> becomes undefined."
686 msgstr ""
687
688 #. type: SH
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid "ERRORS"
693 msgstr "에러"
694
695 #. type: TP
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "B<EBADF>"
700 msgstr "B<EBADF>"
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid ""
706 "An invalid file descriptor was given in one of the sets. (Perhaps a file "
707 "descriptor that was already closed, or one on which an error has occurred.) "
708 "However, see BUGS."
709 msgstr ""
710
711 #. type: TP
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "B<EINTR>"
716 msgstr "B<EINTR>"
717
718 #. type: Plain text
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 msgid "A signal was caught; see B<signal>(7)."
722 msgstr ""
723
724 #. type: TP
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 #, no-wrap
728 msgid "B<EINVAL>"
729 msgstr "B<EINVAL>"
730
731 #. type: Plain text
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 msgid ""
735 "I<nfds> is negative or exceeds the B<RLIMIT_NOFILE> resource limit (see "
736 "B<getrlimit>(2))."
737 msgstr ""
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid "The value contained within I<timeout> is invalid."
743 msgstr ""
744
745 #. type: TP
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid "B<ENOMEM>"
750 msgstr "B<ENOMEM>"
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, fuzzy
756 #| msgid "B<select> was unable to allocate memory for internal tables."
757 msgid "Unable to allocate memory for internal tables."
758 msgstr "B<select> 가 내부 테이블들을 위한 메모리를 할당할수 없다."
759
760 #. type: SH
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "VERSIONS"
765 msgstr "버전S"
766
767 #. Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 msgid ""
772 "On some other UNIX systems, B<select>() can fail with the error B<EAGAIN> "
773 "if the system fails to allocate kernel-internal resources, rather than "
774 "B<ENOMEM> as Linux does. POSIX specifies this error for B<poll>(2), but not "
775 "for B<select>(). Portable programs may wish to check for B<EAGAIN> and "
776 "loop, just as with B<EINTR>."
777 msgstr ""
778
779 #. type: SH
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid "STANDARDS"
784 msgstr "표준"
785
786 #. type: Plain text
787 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
788 #: opensuse-tumbleweed
789 msgid "POSIX.1-2024."
790 msgstr "POSIX.1-2024."
791
792 #. type: SH
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, no-wrap
796 msgid "HISTORY"
797 msgstr "이력"
798
799 #. type: TP
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 #, no-wrap
803 msgid "B<select>()"
804 msgstr "B<select>()"
805
806 #. type: Plain text
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)."
810 msgstr ""
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, fuzzy
816 #| msgid ""
817 #| "4.4BSD (the B<select> function first appeared in 4.2BSD). Generally "
818 #| "portable to/from non-BSD systems supporting clones of the BSD socket "
819 #| "layer (including System V variants). However, note that the System V "
820 #| "variant typically sets the timeout variable before exit, but the BSD "
821 #| "variant does not."
822 msgid ""
823 "Generally portable to/from non-BSD systems supporting clones of the BSD "
824 "socket layer (including System\\ V variants). However, note that the "
825 "System\\ V variant typically sets the timeout variable before returning, but "
826 "the BSD variant does not."
827 msgstr ""
828 "4.4BSD ( B<select> 함수는 4.2BSD에서 처음 나타났다.). 일반적으로 BSD 소켓 층"
829 "(System V 변종들을 포함하여)의 복사판들을 지원하는 non-BSD계열과 호환된다. "
830 "그러나, System V 변종들은 전형적으로 종료전에 timeout 변수를 설정하지만, BSD "
831 "변종들은 그렇게 하지 않는다는것을 주의해라."
832
833 #. type: TP
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "B<pselect>()"
838 msgstr "B<pselect>()"
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 msgid "Linux 2.6.16. POSIX.1g, POSIX.1-2001."
844 msgstr "Linux 2.6.16. POSIX.1g, POSIX.1-2001."
845
846 #. type: Plain text
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 msgid "Prior to this, it was emulated in glibc (but see BUGS)."
850 msgstr ""
851
852 #. type: TP
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 #, no-wrap
856 msgid "B<fd_set>"
857 msgstr "B<fd_set>"
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid "POSIX.1-2001."
863 msgstr "POSIX.1-2001."
864
865 #. type: SH
866 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
867 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
868 #, no-wrap
869 msgid "NOTES"
870 msgstr "주의"
871
872 #. type: Plain text
873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
875 msgid ""
876 "The following header also provides the I<fd_set> type: I<E<lt>sys/"
877 "time.hE<gt>>."
878 msgstr ""
879
880 #. type: Plain text
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 msgid ""
884 "An I<fd_set> is a fixed size buffer. Executing B<FD_CLR>() or B<FD_SET>() "
885 "with a value of I<fd> that is negative or is equal to or larger than "
886 "B<FD_SETSIZE> will result in undefined behavior. Moreover, POSIX requires "
887 "I<fd> to be a valid file descriptor."
888 msgstr ""
889
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 "The operation of B<select>() and B<pselect>() is not affected by the "
895 "B<O_NONBLOCK> flag."
896 msgstr ""
897
898 #. type: SS
899 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
900 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
901 #, no-wrap
902 msgid "The self-pipe trick"
903 msgstr ""
904
905 #. type: Plain text
906 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
907 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
908 msgid ""
909 "On systems that lack B<pselect>(), reliable (and more portable) signal "
910 "trapping can be achieved using the self-pipe trick. In this technique, a "
911 "signal handler writes a byte to a pipe whose other end is monitored by "
912 "B<select>() in the main program. (To avoid possibly blocking when writing "
913 "to a pipe that may be full or reading from a pipe that may be empty, "
914 "nonblocking I/O is used when reading from and writing to the pipe.)"
915 msgstr ""
916
917 #. type: SS
918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
920 #, no-wrap
921 msgid "Emulating usleep(3)"
922 msgstr ""
923
924 #. type: Plain text
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 #, fuzzy
928 #| msgid ""
929 #| "Some code calls B<select> with all three sets empty, I<n> zero, and a non-"
930 #| "null I<timeout> as a fairly portable way to sleep with subsecond "
931 #| "precision."
932 msgid ""
933 "Before the advent of B<usleep>(3), some code employed a call to B<select>() "
934 "with all three sets empty, I<nfds> zero, and a non-NULL I<timeout> as a "
935 "fairly portable way to sleep with subsecond precision."
936 msgstr ""
937 "몇몇 코드들은 정확성을 가지고 잠복시키기 위해 꽤 호환되는 방법으로써 세개의 "
938 "집합을 비우고, I<n> 은 0, 그리고 I<timeout> 은 null이 아니게 설정하여 "
939 "B<select> 를 호출한다."
940
941 #. type: SS
942 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
943 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
944 #, no-wrap
945 msgid "Correspondence between select() and poll() notifications"
946 msgstr ""
947
948 #. fs/select.c
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid ""
953 "Within the Linux kernel source, we find the following definitions which show "
954 "the correspondence between the readable, writable, and exceptional condition "
955 "notifications of B<select>() and the event notifications provided by "
956 "B<poll>(2) and B<epoll>(7):"
957 msgstr ""
958
959 #. type: Plain text
960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
962 #, no-wrap
963 msgid ""
964 "#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n"
965 " EPOLLHUP | EPOLLERR)\n"
966 " /* Ready for reading */\n"
967 "#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n"
968 " EPOLLERR)\n"
969 " /* Ready for writing */\n"
970 "#define POLLEX_SET (EPOLLPRI)\n"
971 " /* Exceptional condition */\n"
972 msgstr ""
973
974 #. type: SS
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 #, no-wrap
978 msgid "Multithreaded applications"
979 msgstr ""
980
981 #. type: Plain text
982 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
983 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
984 msgid ""
985 "If a file descriptor being monitored by B<select>() is closed in another "
986 "thread, the result is unspecified. On some UNIX systems, B<select>() "
987 "unblocks and returns, with an indication that the file descriptor is ready "
988 "(a subsequent I/O operation will likely fail with an error, unless another "
989 "process reopens the file descriptor between the time B<select>() returned "
990 "and the I/O operation is performed). On Linux (and some other systems), "
991 "closing the file descriptor in another thread has no effect on B<select>(). "
992 "In summary, any application that relies on a particular behavior in this "
993 "scenario must be considered buggy."
994 msgstr ""
995
996 #. type: SS
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 #, no-wrap
1000 msgid "C library/kernel differences"
1001 msgstr ""
1002
1003 #. type: Plain text
1004 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1005 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1006 msgid ""
1007 "The Linux kernel allows file descriptor sets of arbitrary size, determining "
1008 "the length of the sets to be checked from the value of I<nfds>. However, in "
1009 "the glibc implementation, the I<fd_set> type is fixed in size. See also "
1010 "BUGS."
1011 msgstr ""
1012
1013 #. type: Plain text
1014 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1015 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1016 msgid ""
1017 "The B<pselect>() interface described in this page is implemented by glibc. "
1018 "The underlying Linux system call is named B<pselect6>(). This system call "
1019 "has somewhat different behavior from the glibc wrapper function."
1020 msgstr ""
1021
1022 #. type: Plain text
1023 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1024 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1025 msgid ""
1026 "The Linux B<pselect6>() system call modifies its I<timeout> argument. "
1027 "However, the glibc wrapper function hides this behavior by using a local "
1028 "variable for the timeout argument that is passed to the system call. Thus, "
1029 "the glibc B<pselect>() function does not modify its I<timeout> argument; "
1030 "this is the behavior required by POSIX.1-2001."
1031 msgstr ""
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 "The final argument of the B<pselect6>() system call is not a I<sigset_t\\ "
1038 "*> pointer, but is instead a structure of the form:"
1039 msgstr ""
1040
1041 #. type: Plain text
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 #, no-wrap
1045 msgid ""
1046 "struct {\n"
1047 " const kernel_sigset_t *ss; /* Pointer to signal set */\n"
1048 " size_t ss_len; /* Size (in bytes) of object\n"
1049 " pointed to by \\[aq]ss\\[aq] */\n"
1050 "};\n"
1051 msgstr ""
1052
1053 #. type: Plain text
1054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1056 msgid ""
1057 "This allows the system call to obtain both a pointer to the signal set and "
1058 "its size, while allowing for the fact that most architectures support a "
1059 "maximum of 6 arguments to a system call. See B<sigprocmask>(2) for a "
1060 "discussion of the difference between the kernel and libc notion of the "
1061 "signal set."
1062 msgstr ""
1063
1064 #. type: SS
1065 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1066 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1067 #, no-wrap
1068 msgid "Historical glibc details"
1069 msgstr ""
1070
1071 #. type: Plain text
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 msgid ""
1075 "glibc 2.0 provided an incorrect version of B<pselect>() that did not take a "
1076 "I<sigmask> argument."
1077 msgstr ""
1078
1079 #. type: Plain text
1080 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1081 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1082 msgid ""
1083 "From glibc 2.1 to glibc 2.2.1, one must define B<_GNU_SOURCE> in order to "
1084 "obtain the declaration of B<pselect>() from I<E<lt>sys/select.hE<gt>>."
1085 msgstr ""
1086
1087 #. type: SH
1088 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1089 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1090 #, no-wrap
1091 msgid "BUGS"
1092 msgstr "버그"
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 msgid ""
1098 "POSIX allows an implementation to define an upper limit, advertised via the "
1099 "constant B<FD_SETSIZE>, on the range of file descriptors that can be "
1100 "specified in a file descriptor set. The Linux kernel imposes no fixed "
1101 "limit, but the glibc implementation makes I<fd_set> a fixed-size type, with "
1102 "B<FD_SETSIZE> defined as 1024, and the B<FD_*>() macros operating according "
1103 "to that limit. To monitor file descriptors greater than 1023, use "
1104 "B<poll>(2) or B<epoll>(7) instead."
1105 msgstr ""
1106
1107 #. type: Plain text
1108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1110 msgid ""
1111 "The implementation of the I<fd_set> arguments as value-result arguments is a "
1112 "design error that is avoided in B<poll>(2) and B<epoll>(7)."
1113 msgstr ""
1114
1115 #. type: Plain text
1116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1118 msgid ""
1119 "According to POSIX, B<select>() should check all specified file descriptors "
1120 "in the three file descriptor sets, up to the limit I<nfds-1>. However, the "
1121 "current implementation ignores any file descriptor in these sets that is "
1122 "greater than the maximum file descriptor number that the process currently "
1123 "has open. According to POSIX, any such file descriptor that is specified in "
1124 "one of the sets should result in the error B<EBADF>."
1125 msgstr ""
1126
1127 #. type: Plain text
1128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1130 msgid ""
1131 "Starting with glibc 2.1, glibc provided an emulation of B<pselect>() that "
1132 "was implemented using B<sigprocmask>(2) and B<select>(). This "
1133 "implementation remained vulnerable to the very race condition that "
1134 "B<pselect>() was designed to prevent. Modern versions of glibc use the "
1135 "(race-free) B<pselect>() system call on kernels where it is provided."
1136 msgstr ""
1137
1138 #. Stevens discusses a case where accept can block after select
1139 #. returns successfully because of an intervening RST from the client.
1140 #. Maybe the kernel should have returned EIO in such a situation?
1141 #. type: Plain text
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 msgid ""
1145 "On Linux, B<select>() may report a socket file descriptor as \"ready for "
1146 "reading\", while nevertheless a subsequent read blocks. This could for "
1147 "example happen when data has arrived but upon examination has the wrong "
1148 "checksum and is discarded. There may be other circumstances in which a file "
1149 "descriptor is spuriously reported as ready. Thus it may be safer to use "
1150 "B<O_NONBLOCK> on sockets that should not block."
1151 msgstr ""
1152
1153 #. type: Plain text
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 msgid ""
1157 "On Linux, B<select>() also modifies I<timeout> if the call is interrupted "
1158 "by a signal handler (i.e., the B<EINTR> error return). This is not "
1159 "permitted by POSIX.1. The Linux B<pselect>() system call has the same "
1160 "behavior, but the glibc wrapper hides this behavior by internally copying "
1161 "the I<timeout> to a local variable and passing that variable to the system "
1162 "call."
1163 msgstr ""
1164
1165 #. type: SH
1166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1168 #, no-wrap
1169 msgid "EXAMPLES"
1170 msgstr "폐제"
1171
1172 #. type: Plain text
1173 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1174 #: opensuse-tumbleweed
1175 #, no-wrap
1176 msgid ""
1177 "#include E<lt>stdio.hE<gt>\n"
1178 "#include E<lt>stdlib.hE<gt>\n"
1179 "#include E<lt>sys/select.hE<gt>\n"
1180 "#include E<lt>sys/time.hE<gt>\n"
1181 "\\&\n"
1182 "int\n"
1183 "main(void)\n"
1184 "{\n"
1185 " int retval;\n"
1186 " fd_set rfds;\n"
1187 " struct timeval tv;\n"
1188 "\\&\n"
1189 " /* Watch stdin (fd 0) to see when it has input. */\n"
1190 "\\&\n"
1191 " FD_ZERO(&rfds);\n"
1192 " FD_SET(0, &rfds);\n"
1193 "\\&\n"
1194 " /* Wait up to five seconds. */\n"
1195 "\\&\n"
1196 " tv.tv_sec = 5;\n"
1197 " tv.tv_usec = 0;\n"
1198 "\\&\n"
1199 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1200 " /* Don\\[aq]t rely on the value of tv now! */\n"
1201 "\\&\n"
1202 " if (retval == -1)\n"
1203 " perror(\"select()\");\n"
1204 " else if (retval)\n"
1205 " printf(\"Data is available now.\\[rs]n\");\n"
1206 " /* FD_ISSET(0, &rfds) will be true. */\n"
1207 " else\n"
1208 " printf(\"No data within five seconds.\\[rs]n\");\n"
1209 "\\&\n"
1210 " exit(EXIT_SUCCESS);\n"
1211 "}\n"
1212 msgstr ""
1213
1214 #. SRC END
1215 #. type: SH
1216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1218 #, no-wrap
1219 msgid "SEE ALSO"
1220 msgstr "추가 참조"
1221
1222 #. type: Plain text
1223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1225 msgid ""
1226 "B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), "
1227 "B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), "
1228 "B<timespec>(3), B<epoll>(7), B<time>(7)"
1229 msgstr ""
1230 "B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), "
1231 "B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), "
1232 "B<timespec>(3), B<epoll>(7), B<time>(7)"
1233
1234 #. type: Plain text
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 msgid "For a tutorial with discussion and examples, see B<select_tut>(2)."
1238 msgstr ""
1239
1240 #. type: TH
1241 #: debian-trixie
1242 #, no-wrap
1243 msgid "2024-06-15"
1244 msgstr "2024년 6월 15일"
1245
1246 #. type: TH
1247 #: debian-trixie
1248 #, no-wrap
1249 msgid "Linux man-pages 6.9.1"
1250 msgstr "Linux man-pages 6.9.1"
1251
1252 #. type: Plain text
1253 #: debian-trixie
1254 msgid "Standard C library (I<libc>, I<-lc>)"
1255 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
1256
1257 #. type: Plain text
1258 #: debian-trixie fedora-44 fedora-rawhide
1259 #, no-wrap
1260 msgid "B<typedef> /* ... */ B<fd_set;>\n"
1261 msgstr "B<typedef> /* ... */ B<fd_set;>\n"
1262
1263 #. type: Plain text
1264 #: debian-trixie fedora-44 fedora-rawhide
1265 #, no-wrap
1266 msgid ""
1267 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1268 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1269 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1270 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
1271 msgstr ""
1272 "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1273 "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1274 "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n"
1275 "B<void FD_ZERO(fd_set *>I<set>B<);>\n"
1276
1277 #. .P - it is rumored that:
1278 #. On BSD, when a timeout occurs, the file descriptor bits are not changed.
1279 #. - it is certainly true that:
1280 #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout.
1281 #. type: Plain text
1282 #: debian-trixie fedora-44 fedora-rawhide
1283 #, fuzzy
1284 #| msgid ""
1285 #| "On Linux, I<timeout> is modified to reflect the amount of time not slept; "
1286 #| "most other implementations do not do this. This causes problems both "
1287 #| "when Linux code which reads I<timeout> is ported to other operating "
1288 #| "systems, and when code is ported to Linux that reuses a struct timeval "
1289 #| "for multiple B<select>s in a loop without reinitializing it. Consider "
1290 #| "I<timeout> to be undefined after B<select> returns."
1291 msgid ""
1292 "On Linux, B<select>() modifies I<timeout> to reflect the amount of time not "
1293 "slept; most other implementations do not do this. (POSIX.1 permits either "
1294 "behavior.) This causes problems both when Linux code which reads I<timeout> "
1295 "is ported to other operating systems, and when code is ported to Linux that "
1296 "reuses a I<struct timeval> for multiple B<select>()s in a loop without "
1297 "reinitializing it. Consider I<timeout> to be undefined after B<select>() "
1298 "returns."
1299 msgstr ""
1300 "리눅스에서, I<timeout> 은 잠복되지 않은 시간의 양을 반영하기 위해 수정된다; "
1301 "대부분의 다른 수행들은 이렇게 되지 않는다. 이것은 I<timeout> 을 읽은 리눅스 "
1302 "코드들이 다른 OS로 포팅되거나 코드들이 초기화를 다시 하지 않고 반복문에서 다"
1303 "중 B<select>s 를 위해 timeval 구조체를 다시 사용하여 리눅스로 포팅할때 문제들"
1304 "을 야기한다. B<select> 에서 반환된후 정의되지 않은 I<timeout> 을 고려해야 한"
1305 "다."
1306
1307 #. type: Plain text
1308 #: debian-trixie fedora-44 fedora-rawhide
1309 msgid "POSIX.1-2008."
1310 msgstr "POSIX.1-2008."
1311
1312 #. type: Plain text
1313 #: debian-trixie
1314 #, no-wrap
1315 msgid ""
1316 "#include E<lt>stdio.hE<gt>\n"
1317 "#include E<lt>stdlib.hE<gt>\n"
1318 "#include E<lt>sys/select.hE<gt>\n"
1319 "\\&\n"
1320 "int\n"
1321 "main(void)\n"
1322 "{\n"
1323 " int retval;\n"
1324 " fd_set rfds;\n"
1325 " struct timeval tv;\n"
1326 "\\&\n"
1327 " /* Watch stdin (fd 0) to see when it has input. */\n"
1328 "\\&\n"
1329 " FD_ZERO(&rfds);\n"
1330 " FD_SET(0, &rfds);\n"
1331 "\\&\n"
1332 " /* Wait up to five seconds. */\n"
1333 "\\&\n"
1334 " tv.tv_sec = 5;\n"
1335 " tv.tv_usec = 0;\n"
1336 "\\&\n"
1337 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1338 " /* Don\\[aq]t rely on the value of tv now! */\n"
1339 "\\&\n"
1340 " if (retval == -1)\n"
1341 " perror(\"select()\");\n"
1342 " else if (retval)\n"
1343 " printf(\"Data is available now.\\[rs]n\");\n"
1344 " /* FD_ISSET(0, &rfds) will be true. */\n"
1345 " else\n"
1346 " printf(\"No data within five seconds.\\[rs]n\");\n"
1347 "\\&\n"
1348 " exit(EXIT_SUCCESS);\n"
1349 "}\n"
1350 msgstr ""
1351
1352 #. type: TH
1353 #: fedora-44 fedora-rawhide
1354 #, no-wrap
1355 msgid "2024-11-03"
1356 msgstr "2024년 11월 3일"
1357
1358 #. type: TH
1359 #: fedora-44 fedora-rawhide
1360 #, no-wrap
1361 msgid "Linux man-pages 6.13"
1362 msgstr "Linux man-pages 6.13"
1363
1364 #. type: Plain text
1365 #: fedora-44 fedora-rawhide
1366 #, no-wrap
1367 msgid ""
1368 "#include E<lt>stdio.hE<gt>\n"
1369 "#include E<lt>stdlib.hE<gt>\n"
1370 "#include E<lt>sys/select.hE<gt>\n"
1371 "#include E<lt>sys/time.hE<gt>\n"
1372 "\\&\n"
1373 "int\n"
1374 "main(void)\n"
1375 "{\n"
1376 " int retval;\n"
1377 " fd_set rfds;\n"
1378 " struct timeval tv;\n"
1379 "\\&\n"
1380 " /* Watch stdin (fd 0) to see when it has input. */\n"
1381 "\\&\n"
1382 " FD_ZERO(&rfds);\n"
1383 " FD_SET(0, &rfds);\n"
1384 "\\&\n"
1385 " /* Wait up to five seconds. */\n"
1386 "\\&\n"
1387 " tv.tv_sec = 5;\n"
1388 " tv.tv_usec = 0;\n"
1389 "\\&\n"
1390 " retval = select(1, &rfds, NULL, NULL, &tv);\n"
1391 " /* Don\\[aq]t rely on the value of tv now! */\n"
1392 "\\&\n"
1393 " if (retval == -1)\n"
1394 " perror(\"select()\");\n"
1395 " else if (retval)\n"
1396 " printf(\"Data is available now.\\[rs]n\");\n"
1397 " /* FD_ISSET(0, &rfds) will be true. */\n"
1398 " else\n"
1399 " printf(\"No data within five seconds.\\[rs]n\");\n"
1400 "\\&\n"
1401 " exit(EXIT_SUCCESS);\n"
1402 "}\n"
1403 msgstr ""
1404
1405 #. type: TH
1406 #: mageia-cauldron
1407 #, no-wrap
1408 msgid "Linux man-pages 6.17"
1409 msgstr "Linux man-pages 6.17"
1410
1411 #. type: TH
1412 #: opensuse-leap-16-1 opensuse-tumbleweed
1413 #, no-wrap
1414 msgid "Linux man-pages (unreleased)"
1415 msgstr "Linux man-pages (미공개)"