Debian Codegraph @

po/ko/man2/close.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:20+0200\n"
9 "PO-Revision-Date: 2000-07-02 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 "close"
23 msgstr "close"
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 "close - close a file descriptor"
49 msgstr "close - 파일 기술자를 닫는다."
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 "B<int close(int >I<fd>B<);>\n"
83 msgstr "B<int close(int >I<fd>B<);>\n"
84
85 #. type: SH
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "DESCRIPTION"
90 msgstr "설명"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy
96 #| msgid ""
97 #| "B<close> closes a file descriptor, so that it no longer refers to any "
98 #| "file and may be reused. Any locks held on the file it was associated "
99 #| "with, and owned by the process, are removed (regardless of the file "
100 #| "descriptor that was used to obtain the lock)."
101 msgid ""
102 "B<close>() closes a file descriptor, so that it no longer refers to any "
103 "file and may be reused. Any record locks (see B<fcntl>(2)) held on the "
104 "file it was associated with, and owned by the process, are removed "
105 "regardless of the file descriptor that was used to obtain the lock. This "
106 "has some unfortunate consequences and one should be extra careful when using "
107 "advisory record locking. See B<fcntl>(2) for discussion of the risks and "
108 "consequences as well as for the (probably preferred) open file description "
109 "locks."
110 msgstr ""
111 "B<close> 는 파일 기술자를 닫으며, 그래서 더이상 어떤 파일에 의해 참조되지 않"
112 "으며 다시 사용될수 있다. 프로세스와 관련되고 프로세스 소유의 파일에 잡혀져 "
113 "있는 어떤 잠금들은 제거된다(잠금을 포함하여 사용된 파일 기술자와 관계없이)."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, fuzzy
119 #| msgid ""
120 #| "If I<fd> is the last copy of a particular file descriptor the resources "
121 #| "associated with it are freed; if the descriptor was the last reference to "
122 #| "a file which has been removed using B<unlink>(2) the file is deleted."
123 msgid ""
124 "If I<fd> is the last file descriptor referring to the underlying open file "
125 "description (see B<open>(2)), the resources associated with the open file "
126 "description are freed; if the file descriptor was the last reference to a "
127 "file which has been removed using B<unlink>(2), the file is deleted."
128 msgstr ""
129 "만일 I<fd> 가 특별한 파일 기술자의 마지막 복사본이라면 그것과 관련된 자원들"
130 "은 해제된다; 만일 파일 기술자가 B<unlink>(2)를 사용하여 제거된 파일에 대한 마"
131 "지막 참조라면 이 파일은 제거된다."
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "RETURN VALUE"
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 #, fuzzy
144 #| msgid ""
145 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
146 #| "set appropriately."
147 msgid ""
148 "B<close>() returns zero on success. On error, -1 is returned, and I<errno> "
149 "is set to indicate the error."
150 msgstr ""
151 "성공시, 0이 리턴된다. 에러시, -1이 리턴되며, I<errno>는 적당한 값으로 설정된"
152 "다."
153
154 #. type: SH
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "ERRORS"
159 msgstr "에러"
160
161 #. type: TP
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "B<EBADF>"
166 msgstr "B<EBADF>"
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid "I<fd> isn't a valid open file descriptor."
172 msgstr "I<fd> 가 열려진 유효한 파일 기술자가 아니다."
173
174 #. type: TP
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "B<EINTR>"
179 msgstr "B<EINTR>"
180
181 #. Though, it's in doubt whether this error can ever occur; see
182 #. https://lwn.net/Articles/576478/ "Returning EINTR from close()"
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid "The B<close>() call was interrupted by a signal; see B<signal>(7)."
187 msgstr ""
188
189 #. type: TP
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "B<EIO>"
194 msgstr "B<EIO>"
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid "An I/O error occurred."
200 msgstr "I/O 에러가 발생했다."
201
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "B<ENOSPC>"
207 msgstr "B<ENOSPC>"
208
209 #. type: TQ
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<EDQUOT>"
214 msgstr "B<EDQUOT>"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "On NFS, these errors are not normally reported against the first write which "
221 "exceeds the available storage space, but instead against a subsequent "
222 "B<write>(2), B<fsync>(2), or B<close>()."
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
227 #: opensuse-tumbleweed
228 msgid ""
229 "See CAVEATS for a discussion of why B<close>() should not be retried after "
230 "an error."
231 msgstr ""
232
233 #. type: SH
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "STANDARDS"
238 msgstr "표준"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid "POSIX.1-2008."
244 msgstr "POSIX.1-2008."
245
246 #. type: SH
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "HISTORY"
251 msgstr "이력"
252
253 #. SVr4 documents an additional ENOLINK error condition.
254 #. type: Plain text
255 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
256 #: opensuse-tumbleweed
257 msgid "4.3BSD, SVr4, POSIX.1-1988."
258 msgstr "4.3BSD, SVr4, POSIX.1-1988."
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "NOTES"
265 msgstr "주의"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "The close-on-exec file descriptor flag can be used to ensure that a file "
272 "descriptor is automatically closed upon a successful B<execve>(2); see "
273 "B<fcntl>(2) for details."
274 msgstr ""
275
276 #. type: SH
277 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
278 #: opensuse-tumbleweed
279 #, no-wrap
280 msgid "CAVEATS"
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "A successful close does not guarantee that the data has been successfully "
288 "saved to disk, as the kernel uses the buffer cache to defer writes. "
289 "Typically, filesystems do not flush buffers when a file is closed. If you "
290 "need to be sure that the data is physically stored on the underlying disk, "
291 "use B<fsync>(2). (It will depend on the disk hardware at this point.)"
292 msgstr ""
293
294 #. type: SS
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "Multithreaded processes and close()"
299 msgstr ""
300
301 #. #-#-#-#-# archlinux: close.2.pot (PACKAGE VERSION) #-#-#-#-#
302 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
303 #. From: Fredrik Noring <[email protected]>
304 #. One such race involves signals and ERESTARTSYS. If a file descriptor
305 #. in use by a system call is closed and then reused by, e.g., an
306 #. independent open() in some unrelated thread, before the original system
307 #. call has restarted after ERESTARTSYS, the original system call will
308 #. later restart with the reused file descriptor. This is most likely a
309 #. serious programming error.
310 #. type: Plain text
311 #. #-#-#-#-# debian-trixie: close.2.pot (PACKAGE VERSION) #-#-#-#-#
312 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
313 #. From: Fredrik Noring <[email protected]>
314 #. One such race involves signals and ERESTARTSYS. If a file descriptor
315 #. in use by a system call is closed and then reused by e.g. an
316 #. independent open() in some unrelated thread, before the original system
317 #. call has restarted after ERESTARTSYS, the original system call will
318 #. later restart with the reused file descriptor. This is most likely a
319 #. serious programming error.
320 #. type: Plain text
321 #. #-#-#-#-# debian-unstable: close.2.pot (PACKAGE VERSION) #-#-#-#-#
322 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
323 #. From: Fredrik Noring <[email protected]>
324 #. One such race involves signals and ERESTARTSYS. If a file descriptor
325 #. in use by a system call is closed and then reused by, e.g., an
326 #. independent open() in some unrelated thread, before the original system
327 #. call has restarted after ERESTARTSYS, the original system call will
328 #. later restart with the reused file descriptor. This is most likely a
329 #. serious programming error.
330 #. type: Plain text
331 #. #-#-#-#-# fedora-44: close.2.pot (PACKAGE VERSION) #-#-#-#-#
332 #. type: Plain text
333 #. #-#-#-#-# fedora-rawhide: close.2.pot (PACKAGE VERSION) #-#-#-#-#
334 #. type: Plain text
335 #. #-#-#-#-# mageia-cauldron: close.2.pot (PACKAGE VERSION) #-#-#-#-#
336 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
337 #. From: Fredrik Noring <[email protected]>
338 #. One such race involves signals and ERESTARTSYS. If a file descriptor
339 #. in use by a system call is closed and then reused by, e.g., an
340 #. independent open() in some unrelated thread, before the original system
341 #. call has restarted after ERESTARTSYS, the original system call will
342 #. later restart with the reused file descriptor. This is most likely a
343 #. serious programming error.
344 #. type: Plain text
345 #. #-#-#-#-# opensuse-leap-16-1: close.2.pot (PACKAGE VERSION) #-#-#-#-#
346 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
347 #. From: Fredrik Noring <[email protected]>
348 #. One such race involves signals and ERESTARTSYS. If a file descriptor
349 #. in use by a system call is closed and then reused by, e.g., an
350 #. independent open() in some unrelated thread, before the original system
351 #. call has restarted after ERESTARTSYS, the original system call will
352 #. later restart with the reused file descriptor. This is most likely a
353 #. serious programming error.
354 #. type: Plain text
355 #. #-#-#-#-# opensuse-tumbleweed: close.2.pot (PACKAGE VERSION) #-#-#-#-#
356 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
357 #. From: Fredrik Noring <[email protected]>
358 #. One such race involves signals and ERESTARTSYS. If a file descriptor
359 #. in use by a system call is closed and then reused by, e.g., an
360 #. independent open() in some unrelated thread, before the original system
361 #. call has restarted after ERESTARTSYS, the original system call will
362 #. later restart with the reused file descriptor. This is most likely a
363 #. serious programming error.
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "It is probably unwise to close file descriptors while they may be in use by "
369 "system calls in other threads in the same process. Since a file descriptor "
370 "may be reused, there are some obscure race conditions that may cause "
371 "unintended side effects."
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "Furthermore, consider the following scenario where two threads are "
379 "performing operations on the same file descriptor:"
380 msgstr ""
381
382 #. type: IP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "(1)"
387 msgstr "(1)"
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 "One thread is blocked in an I/O system call on the file descriptor. For "
394 "example, it is trying to B<write>(2) to a pipe that is already full, or "
395 "trying to B<read>(2) from a stream socket which currently has no available "
396 "data."
397 msgstr ""
398
399 #. type: IP
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "(2)"
404 msgstr "(2)"
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 #, fuzzy
410 #| msgid "close - close a file descriptor"
411 msgid "Another thread closes the file descriptor."
412 msgstr "close - 파일 기술자를 닫는다."
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid ""
418 "The behavior in this situation varies across systems. On some systems, when "
419 "the file descriptor is closed, the blocking system call returns immediately "
420 "with an error."
421 msgstr ""
422
423 #. 'struct file' in kernel-speak
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "On Linux (and possibly some other systems), the behavior is different: the "
429 "blocking I/O system call holds a reference to the underlying open file "
430 "description, and this reference keeps the description open until the I/O "
431 "system call completes. (See B<open>(2) for a discussion of open file "
432 "descriptions.) Thus, the blocking system call in the first thread may "
433 "successfully complete after the B<close>() in the second thread."
434 msgstr ""
435
436 #. type: SS
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "Dealing with error returns from close()"
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "A careful programmer will check the return value of B<close>(), since it is "
448 "quite possible that errors on a previous B<write>(2) operation are reported "
449 "only on the final B<close>() that releases the open file description. "
450 "Failing to check the return value when closing a file may lead to I<silent> "
451 "loss of data. This can especially be observed with NFS and with disk quota."
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "Note, however, that a failure return should be used only for diagnostic "
459 "purposes (i.e., a warning to the application that there may still be I/O "
460 "pending or there may have been failed I/O) or remedial purposes (e.g., "
461 "writing the file once more or creating a backup)."
462 msgstr ""
463
464 #
465 #. The file descriptor is released early in close();
466 #. close() ==> __close_fd():
467 #. __put_unused_fd() ==> __clear_open_fd()
468 #. return filp_close(file, files);
469 #. The errors are returned by filp_close() after the FD has been
470 #. cleared for re-use.
471 #. filp_close()
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "Retrying the B<close>() after a failure return is the wrong thing to do, "
477 "since this may cause a reused file descriptor from another thread to be "
478 "closed. This can occur because the Linux kernel I<always> releases the file "
479 "descriptor early in the close operation, freeing it for reuse; the steps "
480 "that may return an error, such as flushing data to the filesystem or device, "
481 "occur only later in the close operation."
482 msgstr ""
483
484 #. FreeBSD documents this explicitly. From the look of the source code
485 #. SVR4, ancient SunOS, later Solaris, and AIX all do this.
486 #. type: Plain text
487 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
488 #: opensuse-tumbleweed
489 msgid ""
490 "Many other implementations similarly always close the file descriptor "
491 "(except in the case of B<EBADF>, meaning that the file descriptor was "
492 "invalid) even if they subsequently report an error on return from "
493 "B<close>(). POSIX.1-2008 was silent on this point."
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 "A careful programmer who wants to know about I/O errors may precede "
501 "B<close>() with a call to B<fsync>(2)."
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
506 #: opensuse-tumbleweed
507 msgid ""
508 "The B<EINTR> error is a somewhat special case. Regarding the B<EINTR> "
509 "error, POSIX.1-2008 said:"
510 msgstr ""
511
512 #. type: Plain text
513 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
514 #: opensuse-tumbleweed
515 msgid ""
516 "If B<close>() is interrupted by a signal that is to be caught, it shall "
517 "return -1 with I<errno> set to B<EINTR> and the state of I<fd> is "
518 "unspecified."
519 msgstr ""
520
521 #. type: Plain text
522 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
523 #: opensuse-tumbleweed
524 msgid ""
525 "This permits the behavior that occurs on Linux and many other "
526 "implementations, where, as with other errors that may be reported by "
527 "B<close>(), the file descriptor is guaranteed to be closed. However, it "
528 "also permits another possibility: that the implementation returns an "
529 "B<EINTR> error and keeps the file descriptor open. (According to its "
530 "documentation, HP-UX's B<close>() does this.) The caller must then once "
531 "more use B<close>() to close the file descriptor, to avoid file descriptor "
532 "leaks. This divergence in implementation behaviors provides a difficult "
533 "hurdle for portable applications, since on many implementations, B<close>() "
534 "must not be called again after an B<EINTR> error, and on at least one, "
535 "B<close>() must be called again."
536 msgstr ""
537
538 #. type: Plain text
539 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
540 #: opensuse-tumbleweed
541 msgid ""
542 "POSIX.1-2024 standardized the behavior of HP-UX, making Linux and many other "
543 "implementations non-conforming. There are no plans to change the behavior "
544 "on Linux."
545 msgstr ""
546
547 #. type: SH
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "SEE ALSO"
552 msgstr "추가 참조"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid ""
558 "B<close_range>(2), B<fcntl>(2), B<fsync>(2), B<open>(2), B<shutdown>(2), "
559 "B<unlink>(2), B<fclose>(3)"
560 msgstr ""
561 "B<close_range>(2), B<fcntl>(2), B<fsync>(2), B<open>(2), B<shutdown>(2), "
562 "B<unlink>(2), B<fclose>(3)"
563
564 #. type: TH
565 #: debian-trixie
566 #, no-wrap
567 msgid "2024-05-02"
568 msgstr "2024년 5월 2일"
569
570 #. type: TH
571 #: debian-trixie
572 #, no-wrap
573 msgid "Linux man-pages 6.9.1"
574 msgstr "Linux man-pages 6.9.1"
575
576 #. type: Plain text
577 #: debian-trixie
578 msgid "Standard C library (I<libc>, I<-lc>)"
579 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
580
581 #. type: Plain text
582 #: debian-trixie fedora-44 fedora-rawhide
583 msgid ""
584 "See NOTES for a discussion of why B<close>() should not be retried after an "
585 "error."
586 msgstr ""
587
588 #. SVr4 documents an additional ENOLINK error condition.
589 #. type: Plain text
590 #: debian-trixie fedora-44 fedora-rawhide
591 msgid "POSIX.1-2001, SVr4, 4.3BSD."
592 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
593
594 #. FreeBSD documents this explicitly. From the look of the source code
595 #. SVR4, ancient SunOS, later Solaris, and AIX all do this.
596 #. Issue 8
597 #. type: Plain text
598 #: debian-trixie fedora-44 fedora-rawhide
599 msgid ""
600 "Many other implementations similarly always close the file descriptor "
601 "(except in the case of B<EBADF>, meaning that the file descriptor was "
602 "invalid) even if they subsequently report an error on return from "
603 "B<close>(). POSIX.1 is currently silent on this point, but there are plans "
604 "to mandate this behavior in the next major release of the standard."
605 msgstr ""
606
607 #. type: Plain text
608 #: debian-trixie fedora-44 fedora-rawhide
609 msgid ""
610 "The B<EINTR> error is a somewhat special case. Regarding the B<EINTR> "
611 "error, POSIX.1-2008 says:"
612 msgstr ""
613
614 #. type: Plain text
615 #: debian-trixie fedora-44 fedora-rawhide
616 msgid ""
617 "If B<close>() is interrupted by a signal that is to be caught, it shall "
618 "return -1 with I<errno> set to B<EINTR> and the state of I<fildes> is "
619 "unspecified."
620 msgstr ""
621
622 #
623 #. FIXME . for later review when Issue 8 is one day released...
624 #. POSIX proposes further changes for EINTR
625 #. http://austingroupbugs.net/tag_view_page.php?tag_id=8
626 #. http://austingroupbugs.net/view.php?id=529
627 #. FIXME .
628 #. Review the following glibc bug later
629 #. https://sourceware.org/bugzilla/show_bug.cgi?id=14627
630 #. type: Plain text
631 #: debian-trixie fedora-44 fedora-rawhide
632 msgid ""
633 "This permits the behavior that occurs on Linux and many other "
634 "implementations, where, as with other errors that may be reported by "
635 "B<close>(), the file descriptor is guaranteed to be closed. However, it "
636 "also permits another possibility: that the implementation returns an "
637 "B<EINTR> error and keeps the file descriptor open. (According to its "
638 "documentation, HP-UX's B<close>() does this.) The caller must then once "
639 "more use B<close>() to close the file descriptor, to avoid file descriptor "
640 "leaks. This divergence in implementation behaviors provides a difficult "
641 "hurdle for portable applications, since on many implementations, B<close>() "
642 "must not be called again after an B<EINTR> error, and on at least one, "
643 "B<close>() must be called again. There are plans to address this conundrum "
644 "for the next major release of the POSIX.1 standard."
645 msgstr ""
646
647 #. type: TH
648 #: fedora-44 fedora-rawhide
649 #, no-wrap
650 msgid "2024-07-23"
651 msgstr "2024년 7월 23일"
652
653 #. type: TH
654 #: fedora-44 fedora-rawhide
655 #, no-wrap
656 msgid "Linux man-pages 6.13"
657 msgstr "Linux man-pages 6.13"
658
659 #. Date: Tue, 4 Sep 2007 13:57:35 +0200
660 #. From: Fredrik Noring <[email protected]>
661 #. One such race involves signals and ERESTARTSYS. If a file descriptor
662 #. in use by a system call is closed and then reused by e.g. an
663 #. independent open() in some unrelated thread, before the original system
664 #. call has restarted after ERESTARTSYS, the original system call will
665 #. later restart with the reused file descriptor. This is most likely a
666 #. serious programming error.
667 #. type: Plain text
668 #: fedora-44 fedora-rawhide
669 msgid ""
670 "When dealing with sockets, you have to be sure that there is no B<recv>(2) "
671 "still blocking on it on another thread, otherwise it might block forever, "
672 "since no more messages will be send via the socket. Be sure to use "
673 "B<shutdown>(2) to shut down all parts the connection before closing the "
674 "socket."
675 msgstr ""
676
677 #. type: TH
678 #: mageia-cauldron
679 #, no-wrap
680 msgid "Linux man-pages 6.17"
681 msgstr "Linux man-pages 6.17"
682
683 #. type: TH
684 #: opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "Linux man-pages (unreleased)"
687 msgstr "Linux man-pages (미공개)"