Debian Codegraph @

po/ko/man2/dup.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:23+0200\n"
9 "PO-Revision-Date: 2000-04-20 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 "dup"
23 msgstr "dup"
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 "dup, dup2, dup3 - duplicate a file descriptor"
49 msgstr "dup, dup2, dup3 - 파일 디스크립터를 복사한다"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "라이브러리"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "요약"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<#include E<lt>unistd.hE<gt>>\n"
76 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<int dup(int >I<oldfd>B<);>\n"
84 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
85 msgstr ""
86 "B<int dup(int >I<oldfd>B<);>\n"
87 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid ""
94 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
95 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
96 "B<#include E<lt>unistd.hE<gt>>\n"
97 msgstr ""
98 "B<#define _GNU_SOURCE> /* feature_test_macros(7) 참고 */\n"
99 "B<#include E<lt>fcntl.hE<gt>> /* B<O_*> 상수의 정의 */\n"
100 "B<#include E<lt>unistd.hE<gt>>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
107 msgstr "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
108
109 #. type: SH
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 #, no-wrap
113 msgid "DESCRIPTION"
114 msgstr "설명"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "The B<dup>() system call allocates a new file descriptor that refers to the "
121 "same open file description as the descriptor I<oldfd>. (For an explanation "
122 "of open file descriptions, see B<open>(2).) The new file descriptor number "
123 "is guaranteed to be the lowest-numbered file descriptor that was unused in "
124 "the calling process."
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 #, fuzzy
131 #| msgid ""
132 #| "After successful return of B<dup> or B<dup2>, the old and new descriptors "
133 #| "may be used interchangeably. They share locks, file position pointers and "
134 #| "flags; for example, if the file position is modified by using B<lseek> on "
135 #| "one of the descriptors, the position is also changed for the other."
136 msgid ""
137 "After a successful return, the old and new file descriptors may be used "
138 "interchangeably. Since the two file descriptors refer to the same open file "
139 "description, they share file offset and file status flags; for example, if "
140 "the file offset is modified by using B<lseek>(2) on one of the file "
141 "descriptors, the offset is also changed for the other file descriptor."
142 msgstr ""
143 "B<dup> 또는 B<dup2>가 성공적으로 수행되면, I<oldfd> 디스크립터와 복사된 새로"
144 "운 디스크립터는 서로 공유되어 사용될 것이다. 이 디스크립터들은 락(lock), 파"
145 "일 위치 포인터 그리고 플래그를 공유한다; 예를 들어, 만약 파일 위치가 한 디스"
146 "크립터에서 B<lseek>를 사용해 변경되면 이 변경된 위치는 다른 디스크립터에도 영"
147 "향을 미친다."
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 ""
153 "The two file descriptors do not share file descriptor flags (the close-on-"
154 "exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for "
155 "the duplicate descriptor is off."
156 msgstr ""
157
158 #. type: SS
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "dup2()"
163 msgstr "dup2()"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "The B<dup2>() system call performs the same task as B<dup>(), but instead "
170 "of using the lowest-numbered unused file descriptor, it uses the file "
171 "descriptor number specified in I<newfd>. In other words, the file "
172 "descriptor I<newfd> is adjusted so that it now refers to the same open file "
173 "description as I<oldfd>."
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 "If the file descriptor I<newfd> was previously open, it is closed before "
181 "being reused; the close is performed silently (i.e., any errors during the "
182 "close are not reported by B<dup2>())."
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "The steps of closing and reusing the file descriptor I<newfd> are performed "
190 "I<atomically>. This is important, because trying to implement equivalent "
191 "functionality using B<close>(2) and B<dup>() would be subject to race "
192 "conditions, whereby I<newfd> might be reused between the two steps. Such "
193 "reuse could happen because the main program is interrupted by a signal "
194 "handler that allocates a file descriptor, or because a parallel thread "
195 "allocates a file descriptor."
196 msgstr ""
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 "Note the following points:"
202 msgstr ""
203
204 #. type: IP
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "\\[bu]"
209 msgstr "\\[bu]"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, fuzzy
215 #| msgid "I<fd> is not a valid file descriptor or is not open for reading."
216 msgid ""
217 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
218 "I<newfd> is not closed."
219 msgstr "I<fd>가 유효한 파일 기술자가 아니거나 읽기 위해 열려지지 않았다."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
226 "I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>."
227 msgstr ""
228
229 #. type: SS
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "dup3()"
234 msgstr "dup3()"
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 "B<dup3>() is the same as B<dup2>(), except that:"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "The caller can force the close-on-exec flag to be set for the new file "
247 "descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of "
248 "the same flag in B<open>(2) for reasons why this may be useful."
249 msgstr ""
250
251 #. Ulrich Drepper, LKML, 2008-10-09:
252 #. We deliberately decided on this change. Otherwise, what is the
253 #. result of dup3(fd, fd, O_CLOEXEC)?
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>."
259 msgstr ""
260
261 #. type: SH
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "RETURN VALUE"
266 msgstr "반환값"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, fuzzy
272 #| msgid ""
273 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
274 #| "set appropriately."
275 msgid ""
276 "On success, these system calls return the new file descriptor. On error, -1 "
277 "is returned, and I<errno> is set to indicate the error."
278 msgstr ""
279 "성공시, 0이 리턴된다. 에러시, -1이 리턴되며, I<errno>는 적당한 값으로 설정된"
280 "다."
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "ERRORS"
287 msgstr "에러"
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EBADF>"
294 msgstr "B<EBADF>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "I<oldfd> isn't an open file descriptor."
300 msgstr "I<oldfd> 는 파일열기 디스크립터가 아니다."
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "I<newfd> is out of the allowed range for file descriptors (see the "
307 "discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
308 msgstr ""
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EBUSY>"
315 msgstr "B<EBUSY>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race "
322 "condition with B<open>(2) and B<dup>()."
323 msgstr ""
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<EINTR>"
330 msgstr "B<EINTR>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "The B<dup2>() or B<dup3>() call was interrupted by a signal; see "
337 "B<signal>(7)."
338 msgstr ""
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<EINVAL>"
345 msgstr "B<EINVAL>"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "(B<dup3>()) I<flags> contain an invalid value."
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid "(B<dup3>()) I<oldfd> was equal to I<newfd>."
357 msgstr ""
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<EMFILE>"
364 msgstr "B<EMFILE>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "The per-process limit on the number of open file descriptors has been "
371 "reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
372 msgstr ""
373
374 #. type: TP
375 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
376 #: opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<ENOMEM>"
379 msgstr "B<ENOMEM>"
380
381 #. type: Plain text
382 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
383 #: opensuse-leap-16-1 opensuse-tumbleweed
384 msgid "Insufficient kernel memory was available."
385 msgstr "이용할수 있는 커널 메모리가 충분하지 않다."
386
387 #. type: SH
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "STANDARDS"
392 msgstr "표준"
393
394 #. type: Plain text
395 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
396 #: opensuse-tumbleweed
397 msgid "POSIX.1-2024."
398 msgstr "POSIX.1-2024."
399
400 #. type: SH
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "HISTORY"
405 msgstr "이력"
406
407 #. type: TP
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "B<dup>()"
412 msgstr "B<dup>()"
413
414 #. type: TQ
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<dup2>()"
419 msgstr "B<dup2>()"
420
421 #. SVr4 documents additional
422 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
423 #. The EBUSY return is Linux-specific.
424 #. type: Plain text
425 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
426 #: opensuse-tumbleweed
427 msgid "4.3BSD, SVr4, POSIX.1-1988."
428 msgstr "4.3BSD, SVr4, POSIX.1-1988."
429
430 #. type: TP
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid "B<dup3>()"
435 msgstr "B<dup3>()"
436
437 #. type: Plain text
438 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
439 #: opensuse-tumbleweed
440 #, fuzzy
441 #| msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
442 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
443 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
444
445 #. type: SH
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "NOTES"
450 msgstr "주의"
451
452 #. type: Plain text
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 msgid ""
456 "The error returned by B<dup2>() is different from that returned by "
457 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some "
458 "systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>."
459 msgstr ""
460 "I<newfd>가 허용 가능한 범위 밖의 값일 때, B<dup2>()에 의해 리턴된 에러값은 "
461 "B<fcntl(>..., B<F_DUPFD>, ...B<)>에 의해 리턴된 에러값과는 다르다. 어떤 시스"
462 "템에서는 B<dup2>()가 B<F_DUPFD>와 같은 B<EINVAL>을 리턴하기도 한다."
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid ""
468 "If I<newfd> was open, any errors that would have been reported at "
469 "B<close>(2) time are lost. If this is of concern, then\\[em]unless the "
470 "program is single-threaded and does not allocate file descriptors in signal "
471 "handlers\\[em]the correct approach is I<not> to close I<newfd> before "
472 "calling B<dup2>(), because of the race condition described above. Instead, "
473 "code something like the following could be used:"
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
478 #: opensuse-tumbleweed
479 #, no-wrap
480 msgid ""
481 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
482 " be used to check for close() errors; an EBADF error\n"
483 " means that \\[aq]newfd\\[aq] was not open. */\n"
484 "\\&\n"
485 "tmpfd = dup(newfd);\n"
486 "if (tmpfd == -1 && errno != EBADF) {\n"
487 " /* Handle unexpected dup() error. */\n"
488 "}\n"
489 "\\&\n"
490 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
491 "\\&\n"
492 "if (dup2(oldfd, newfd) == -1) {\n"
493 " /* Handle dup2() error. */\n"
494 "}\n"
495 "\\&\n"
496 "/* Now check for close() errors on the file originally\n"
497 " referred to by \\[aq]newfd\\[aq]. */\n"
498 "\\&\n"
499 "if (tmpfd != -1) {\n"
500 " if (close(tmpfd) == -1) {\n"
501 " /* Handle errors from close. */\n"
502 " }\n"
503 "}\n"
504 msgstr ""
505
506 #. type: SH
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "SEE ALSO"
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 "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
517 msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)"
518
519 #. type: TH
520 #: debian-trixie
521 #, no-wrap
522 msgid "2024-05-02"
523 msgstr "2024년 5월 2일"
524
525 #. type: TH
526 #: debian-trixie
527 #, no-wrap
528 msgid "Linux man-pages 6.9.1"
529 msgstr "Linux man-pages 6.9.1"
530
531 #. type: Plain text
532 #: debian-trixie
533 msgid "Standard C library (I<libc>, I<-lc>)"
534 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
535
536 #. type: Plain text
537 #: debian-trixie fedora-44 fedora-rawhide
538 msgid "POSIX.1-2008."
539 msgstr "POSIX.1-2008."
540
541 #. type: Plain text
542 #: debian-trixie fedora-44 fedora-rawhide
543 msgid "Linux."
544 msgstr "리눅스."
545
546 #. SVr4 documents additional
547 #. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR.
548 #. The EBUSY return is Linux-specific.
549 #. type: Plain text
550 #: debian-trixie fedora-44 fedora-rawhide
551 msgid "POSIX.1-2001, SVr4, 4.3BSD."
552 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
553
554 #. type: Plain text
555 #: debian-trixie fedora-44 fedora-rawhide
556 msgid "Linux 2.6.27, glibc 2.9."
557 msgstr "Linux 2.6.27, glibc 2.9."
558
559 #. type: Plain text
560 #: debian-trixie fedora-44 fedora-rawhide
561 #, no-wrap
562 msgid ""
563 "/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n"
564 " be used to check for close() errors; an EBADF error\n"
565 " means that \\[aq]newfd\\[aq] was not open. */\n"
566 "\\&\n"
567 "tmpfd = dup(newfd);\n"
568 "if (tmpfd == -1 && errno != EBADF) {\n"
569 " /* Handle unexpected dup() error. */\n"
570 "}\n"
571 "\\&\n"
572 "/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n"
573 "\\&\n"
574 "if (dup2(oldfd, newfd) == -1) {\n"
575 " /* Handle dup2() error. */\n"
576 "}\n"
577 "\\&\n"
578 "/* Now check for close() errors on the file originally\n"
579 " referred to by \\[aq]newfd\\[aq]. */\n"
580 "\\&\n"
581 "if (tmpfd != -1) {\n"
582 " if (close(tmpfd) == -1) {\n"
583 " /* Handle errors from close. */\n"
584 " }\n"
585 "}\n"
586 msgstr ""
587
588 #. type: TH
589 #: fedora-44 fedora-rawhide
590 #, no-wrap
591 msgid "2024-11-01"
592 msgstr "2024년 11월 1일"
593
594 #. type: TH
595 #: fedora-44 fedora-rawhide
596 #, no-wrap
597 msgid "Linux man-pages 6.13"
598 msgstr "Linux man-pages 6.13"
599
600 #. type: TH
601 #: mageia-cauldron
602 #, no-wrap
603 msgid "Linux man-pages 6.17"
604 msgstr "Linux man-pages 6.17"
605
606 #. type: TH
607 #: opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "Linux man-pages (unreleased)"
610 msgstr "Linux man-pages (미공개)"