Debian Codegraph @

po/ko/man2/fcntl.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 # ASPLINUX <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
9 "PO-Revision-Date: 2000-07-29 08:57+0900\n"
10 "Last-Translator: ASPLINUX <[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 "fcntl"
23 msgstr "fcntl"
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 "fcntl - manipulate file descriptor"
49 msgstr "fcntl - 파일 기술자(file descriptor) 조작"
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>fcntl.hE<gt>>\n"
76 msgstr "B<#include E<lt>fcntl.hE<gt>>\n"
77
78 #. type: Plain text
79 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
80 #: opensuse-tumbleweed
81 #, fuzzy, no-wrap
82 #| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
83 msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ...);>\n"
84 msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr "설명"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, fuzzy
97 #| msgid ""
98 #| "B<fcntl> performs one of various miscellaneous operations on I<fd>. The "
99 #| "operation in question is determined by I<cmd>:"
100 msgid ""
101 "B<fcntl>() performs one of the operations described below on the open file "
102 "descriptor I<fd>. The operation is determined by I<op>."
103 msgstr ""
104 "B<fcntl> I<fd>에서 다양한 연산들 중 하나를 수행한다. 문제 중 연산은 I<cmd>에 "
105 "의해 결정된다:"
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "Certain of the operations below are supported only since a particular Linux "
112 "kernel version. The preferred method of checking whether the host kernel "
113 "supports a particular operation is to invoke B<fcntl>() with the desired "
114 "I<op> value and then test whether the call failed with B<EINVAL>, indicating "
115 "that the kernel does not recognize this value."
116 msgstr ""
117
118 #. type: SS
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, fuzzy, no-wrap
122 #| msgid "fcntl - manipulate file descriptor"
123 msgid "Duplicating a file descriptor"
124 msgstr "fcntl - 파일 기술자(file descriptor) 조작"
125
126 #. type: TP
127 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
128 #: opensuse-tumbleweed
129 #, fuzzy, no-wrap
130 #| msgid "B<F_DUPFD> (I<int>)"
131 msgid "B<F_DUPFD>(2const)"
132 msgstr "B<F_DUPFD> (I<int>)"
133
134 #. type: TQ
135 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
136 #: opensuse-tumbleweed
137 #, fuzzy, no-wrap
138 #| msgid "B<F_DUPFD> (I<int>)"
139 msgid "B<F_DUPFD_CLOEXEC>(2const)"
140 msgstr "B<F_DUPFD> (I<int>)"
141
142 #. type: SS
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy, no-wrap
146 #| msgid "Invalid file descriptor I<fd>."
147 msgid "File descriptor flags"
148 msgstr "유효 하지 않은 파일 기술자 I<fd>."
149
150 #. type: TP
151 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
152 #: opensuse-tumbleweed
153 #, fuzzy, no-wrap
154 #| msgid "B<F_GETFD>"
155 msgid "B<F_GETFD>(2const)"
156 msgstr "B<F_GETFD>"
157
158 #. type: TQ
159 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
160 #: opensuse-tumbleweed
161 #, fuzzy, no-wrap
162 #| msgid "B<F_SETFD> (I<int>)"
163 msgid "B<F_SETFD>(2const)"
164 msgstr "B<F_SETFD> (I<int>)"
165
166 #. type: SS
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "File status flags"
171 msgstr ""
172
173 #. type: TP
174 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
175 #: opensuse-tumbleweed
176 #, fuzzy, no-wrap
177 #| msgid "B<F_GETFL>"
178 msgid "B<F_GETFL>(2const)"
179 msgstr "B<F_GETFL>"
180
181 #. type: TQ
182 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
183 #: opensuse-tumbleweed
184 #, fuzzy, no-wrap
185 #| msgid "B<F_SETFL> (I<int>)"
186 msgid "B<F_SETFL>(2const)"
187 msgstr "B<F_SETFL> (I<int>)"
188
189 #. type: SS
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "Advisory record locking"
194 msgstr ""
195
196 #. type: TP
197 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
198 #: opensuse-tumbleweed
199 #, fuzzy, no-wrap
200 #| msgid "B<F_SETFL> (I<int>)"
201 msgid "B<F_SETLK>(2const)"
202 msgstr "B<F_SETFL> (I<int>)"
203
204 #. type: TQ
205 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
206 #: opensuse-tumbleweed
207 #, fuzzy, no-wrap
208 #| msgid "B<F_SETFL> (I<int>)"
209 msgid "B<F_SETLKW>(2const)"
210 msgstr "B<F_SETFL> (I<int>)"
211
212 #. type: TQ
213 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
214 #: opensuse-tumbleweed
215 #, fuzzy, no-wrap
216 #| msgid "B<F_SETFL> (I<int>)"
217 msgid "B<F_GETLK>(2const)"
218 msgstr "B<F_SETFL> (I<int>)"
219
220 #. type: SS
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "Open file description locks (non-POSIX)"
225 msgstr ""
226
227 #. type: TP
228 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
229 #: opensuse-tumbleweed
230 #, fuzzy, no-wrap
231 #| msgid "B<F_OFD_SETLK> (I<struct flock *>)"
232 msgid "B<F_OFD_SETLK>(2const)"
233 msgstr "B<F_OFD_SETLK> (I<struct flock *>)"
234
235 #. type: TQ
236 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
237 #: opensuse-tumbleweed
238 #, fuzzy, no-wrap
239 #| msgid "B<F_OFD_SETLKW> (I<struct flock *>)"
240 msgid "B<F_OFD_SETLKW>(2const)"
241 msgstr "B<F_OFD_SETLKW> (I<struct flock *>)"
242
243 #. type: TQ
244 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
245 #: opensuse-tumbleweed
246 #, fuzzy, no-wrap
247 #| msgid "B<F_OFD_GETLK> (I<struct flock *>)"
248 msgid "B<F_OFD_GETLK>(2const)"
249 msgstr "B<F_OFD_GETLK> (I<struct flock *>)"
250
251 #. type: SS
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "Managing signals"
256 msgstr ""
257
258 #. type: TP
259 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
260 #: opensuse-tumbleweed
261 #, fuzzy, no-wrap
262 #| msgid "B<F_GETOWN>"
263 msgid "B<F_GETOWN>(2const)"
264 msgstr "B<F_GETOWN>"
265
266 #. type: TQ
267 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
268 #: opensuse-tumbleweed
269 #, fuzzy, no-wrap
270 #| msgid "B<F_SETOWN> (I<int>)"
271 msgid "B<F_SETOWN>(2const)"
272 msgstr "B<F_SETOWN> (I<int>)"
273
274 #. type: TQ
275 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
276 #: opensuse-tumbleweed
277 #, fuzzy, no-wrap
278 #| msgid "B<F_GETOWN>"
279 msgid "B<F_GETOWN_EX>(2const)"
280 msgstr "B<F_GETOWN>"
281
282 #. type: TQ
283 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
284 #: opensuse-tumbleweed
285 #, fuzzy, no-wrap
286 #| msgid "B<F_SETOWN> (I<int>)"
287 msgid "B<F_SETOWN_EX>(2const)"
288 msgstr "B<F_SETOWN> (I<int>)"
289
290 #. type: TQ
291 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
292 #: opensuse-tumbleweed
293 #, fuzzy, no-wrap
294 #| msgid "B<F_GETSIG>"
295 msgid "B<F_GETSIG>(2const)"
296 msgstr "B<F_GETSIG>"
297
298 #. type: TQ
299 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
300 #: opensuse-tumbleweed
301 #, fuzzy, no-wrap
302 #| msgid "B<F_SETSIG> (I<int>)"
303 msgid "B<F_SETSIG>(2const)"
304 msgstr "B<F_SETSIG> (I<int>)"
305
306 #. type: SS
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "Leases"
311 msgstr ""
312
313 #. type: TP
314 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
315 #: opensuse-tumbleweed
316 #, fuzzy, no-wrap
317 #| msgid "B<F_SETLEASE> (I<int>)"
318 msgid "B<F_SETLEASE>(2const)"
319 msgstr "B<F_SETLEASE> (I<int>)"
320
321 #. type: TQ
322 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
323 #: opensuse-tumbleweed
324 #, fuzzy, no-wrap
325 #| msgid "B<F_GETLEASE>"
326 msgid "B<F_GETLEASE>(2const)"
327 msgstr "B<F_GETLEASE>"
328
329 #. type: SS
330 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
331 #: opensuse-tumbleweed
332 #, no-wrap
333 msgid "Delegations"
334 msgstr ""
335
336 #. type: TP
337 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
338 #: opensuse-tumbleweed
339 #, fuzzy, no-wrap
340 #| msgid "B<F_SETFD> (I<int>)"
341 msgid "B<F_SETDELEG>(2const)"
342 msgstr "B<F_SETFD> (I<int>)"
343
344 #. type: TQ
345 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
346 #: opensuse-tumbleweed
347 #, fuzzy, no-wrap
348 #| msgid "B<F_GETFD>"
349 msgid "B<F_GETDELEG>(2const)"
350 msgstr "B<F_GETFD>"
351
352 #. type: SS
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "File and directory change notification (dnotify)"
357 msgstr ""
358
359 #. type: TP
360 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
361 #: opensuse-tumbleweed
362 #, fuzzy, no-wrap
363 #| msgid "B<F_NOTIFY> (I<int>)"
364 msgid "B<F_NOTIFY>(2const)"
365 msgstr "B<F_NOTIFY> (I<int>)"
366
367 #. type: SS
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "Changing the capacity of a pipe"
372 msgstr ""
373
374 #. type: TP
375 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
376 #: opensuse-tumbleweed
377 #, fuzzy, no-wrap
378 #| msgid "B<EPIPE>"
379 msgid "B<F_SETPIPE_SZ>(2const)"
380 msgstr "B<EPIPE>"
381
382 #. type: TQ
383 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
384 #: opensuse-tumbleweed
385 #, fuzzy, no-wrap
386 #| msgid "B<F_GETLEASE>"
387 msgid "B<F_GETPIPE_SZ>(2const)"
388 msgstr "B<F_GETLEASE>"
389
390 #. type: SS
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "File Sealing"
395 msgstr ""
396
397 #. type: TP
398 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
399 #: opensuse-tumbleweed
400 #, fuzzy, no-wrap
401 #| msgid "B<F_GET_SEALS>"
402 msgid "B<F_ADD_SEALS>(2const)"
403 msgstr "B<F_GET_SEALS>"
404
405 #. type: TQ
406 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
407 #: opensuse-tumbleweed
408 #, fuzzy, no-wrap
409 #| msgid "B<F_GET_SEALS>"
410 msgid "B<F_GET_SEALS>(2const)"
411 msgstr "B<F_GET_SEALS>"
412
413 #. type: SS
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "File read/write hints"
418 msgstr ""
419
420 #. type: TP
421 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
422 #: opensuse-tumbleweed
423 #, no-wrap
424 msgid "B<F_GET_RW_HINT>(2const)"
425 msgstr ""
426
427 #. type: TQ
428 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
429 #: opensuse-tumbleweed
430 #, fuzzy, no-wrap
431 #| msgid "B<F_SETOWN> (I<int>)"
432 msgid "B<F_SET_RW_HINT>(2const)"
433 msgstr "B<F_SETOWN> (I<int>)"
434
435 #. type: TQ
436 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
437 #: opensuse-tumbleweed
438 #, no-wrap
439 msgid "B<F_GET_FILE_RW_HINT>(2const)"
440 msgstr ""
441
442 #. type: TQ
443 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
444 #: opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<F_SET_FILE_RW_HINT>(2const)"
447 msgstr ""
448
449 #. type: SH
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "RETURN VALUE"
454 msgstr "반환값"
455
456 #. type: Plain text
457 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
458 #: opensuse-tumbleweed
459 #, fuzzy
460 #| msgid "For a successful call, the return value depends on the operation:"
461 msgid "For a successful call, the return value depends on the operation."
462 msgstr "성공적인 호출에 대하여, 리턴 값은 연산에 의존적이다."
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 #, fuzzy
468 #| msgid "On error, -1 is returned, and I<errno> is set appropriately."
469 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
470 msgstr "에러면, -1이 리턴되고, I<errno>는 적절하게 설정된다."
471
472 #. type: SH
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "ERRORS"
477 msgstr "에러"
478
479 #. type: TP
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "B<EACCES> or B<EAGAIN>"
484 msgstr "B<EACCES> 혹은 B<EAGAIN>"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid "Operation is prohibited by locks held by other processes."
490 msgstr "연산은 다른 프로세스에 의한 잠김에 의해 금지된다."
491
492 #. type: TP
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "B<EAGAIN>"
497 msgstr "B<EAGAIN>"
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, fuzzy
503 #| msgid "Operation is prohibited by locks held by other processes."
504 msgid ""
505 "The operation is prohibited because the file has been memory-mapped by "
506 "another process."
507 msgstr "연산은 다른 프로세스에 의한 잠김에 의해 금지된다."
508
509 #. type: TP
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "B<EBADF>"
514 msgstr "B<EBADF>"
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid "I<fd> is not an open file descriptor"
520 msgstr "I<fd>는 열린 파일 기술자가 아니다"
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<EINVAL>"
527 msgstr "B<EINVAL>"
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 "The value specified in I<op> is not recognized by this kernel."
533 msgstr ""
534
535 #. type: SH
536 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
537 #: opensuse-tumbleweed
538 #, no-wrap
539 msgid "VERSIONS"
540 msgstr "버전S"
541
542 #. type: Plain text
543 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
544 #: opensuse-tumbleweed
545 msgid ""
546 "POSIX.1-2024 specifies B<FD_CLOFORK> and B<F_DUPFD_CLOFORK>, but Linux "
547 "doesn't support them."
548 msgstr ""
549
550 #. type: SH
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "STANDARDS"
555 msgstr "표준"
556
557 #. .P
558 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
559 #. type: Plain text
560 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
561 #: opensuse-tumbleweed
562 msgid "POSIX.1-2024."
563 msgstr "POSIX.1-2024."
564
565 #. type: SH
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "HISTORY"
570 msgstr "이력"
571
572 #. type: Plain text
573 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
574 #: opensuse-tumbleweed
575 msgid "4.3BSD, SVr4, POSIX.1-1988."
576 msgstr "4.3BSD, SVr4, POSIX.1-1988."
577
578 #. type: SH
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 #, no-wrap
582 msgid "SEE ALSO"
583 msgstr "추가 참조"
584
585 #. type: Plain text
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 msgid ""
589 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
590 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
591 msgstr ""
592 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
593 "B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)"
594
595 #. type: TH
596 #: debian-trixie
597 #, no-wrap
598 msgid "2024-05-02"
599 msgstr "2024년 5월 2일"
600
601 #. type: TH
602 #: debian-trixie
603 #, no-wrap
604 msgid "Linux man-pages 6.9.1"
605 msgstr "Linux man-pages 6.9.1"
606
607 #. type: Plain text
608 #: debian-trixie
609 msgid "Standard C library (I<libc>, I<-lc>)"
610 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
611
612 #. type: Plain text
613 #: debian-trixie fedora-44 fedora-rawhide
614 #, fuzzy, no-wrap
615 #| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
616 msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ... /* >I<arg>B< */ );>\n"
617 msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
618
619 #. type: Plain text
620 #: debian-trixie fedora-44 fedora-rawhide
621 msgid ""
622 "B<fcntl>() can take an optional third argument. Whether or not this "
623 "argument is required is determined by I<op>. The required argument type is "
624 "indicated in parentheses after each I<op> name (in most cases, the required "
625 "type is I<int>, and we identify the argument using the name I<arg>), or "
626 "I<void> is specified if the argument is not required."
627 msgstr ""
628
629 #. type: TP
630 #: debian-trixie fedora-44 fedora-rawhide
631 #, no-wrap
632 msgid "B<F_DUPFD> (I<int>)"
633 msgstr "B<F_DUPFD> (I<int>)"
634
635 #. type: Plain text
636 #: debian-trixie fedora-44 fedora-rawhide
637 #, fuzzy
638 #| msgid ""
639 #| "Find the lowest numbered availiable file descriptor greater than or equal "
640 #| "to I<arg> and make it be a copy of I<fd>. This is different form "
641 #| "B<dup2>(2) which uses exactly the descriptor specified."
642 msgid ""
643 "Duplicate the file descriptor I<fd> using the lowest-numbered available file "
644 "descriptor greater than or equal to I<arg>. This is different from "
645 "B<dup2>(2), which uses exactly the file descriptor specified."
646 msgstr ""
647 "I<arg>보다 크거나 동일한 가장 낮은 숫자가 지명된 사용가능한 파일 기술자를 찾"
648 "고, 그것이 I<fd>의 복사본이 되도록 하라. 이는 엄밀하게 지정된 기술자를 사용하"
649 "는 B<dup2>(2)와는 다르다."
650
651 #. type: Plain text
652 #: debian-trixie fedora-44 fedora-rawhide
653 #, fuzzy
654 #| msgid "On success, the new descriptor is returned."
655 msgid "On success, the new file descriptor is returned."
656 msgstr "성공하면, 새로운 기술자는 리턴된다."
657
658 #. type: Plain text
659 #: debian-trixie fedora-44 fedora-rawhide
660 msgid "See B<dup>(2) for further details."
661 msgstr ""
662
663 #. type: TP
664 #: debian-trixie fedora-44 fedora-rawhide
665 #, no-wrap
666 msgid "B<F_DUPFD_CLOEXEC> (I<int>; since Linux 2.6.24)"
667 msgstr ""
668
669 #. type: Plain text
670 #: debian-trixie fedora-44 fedora-rawhide
671 msgid ""
672 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
673 "duplicate file descriptor. Specifying this flag permits a program to avoid "
674 "an additional B<fcntl>() B<F_SETFD> operation to set the B<FD_CLOEXEC> "
675 "flag. For an explanation of why this flag is useful, see the description of "
676 "B<O_CLOEXEC> in B<open>(2)."
677 msgstr ""
678
679 #. type: Plain text
680 #: debian-trixie fedora-44 fedora-rawhide
681 msgid ""
682 "The following operations manipulate the flags associated with a file "
683 "descriptor. Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
684 "close-on-exec flag. If the B<FD_CLOEXEC> bit is set, the file descriptor "
685 "will automatically be closed during a successful B<execve>(2). (If the "
686 "B<execve>(2) fails, the file descriptor is left open.) If the "
687 "B<FD_CLOEXEC> bit is not set, the file descriptor will remain open across an "
688 "B<execve>(2)."
689 msgstr ""
690
691 #. type: TP
692 #: debian-trixie fedora-44 fedora-rawhide
693 #, no-wrap
694 msgid "B<F_GETFD> (I<void>)"
695 msgstr "B<F_GETFD> (I<void>)"
696
697 #. type: Plain text
698 #: debian-trixie fedora-44 fedora-rawhide
699 msgid ""
700 "Return (as the function result) the file descriptor flags; I<arg> is ignored."
701 msgstr ""
702
703 #. type: TP
704 #: debian-trixie fedora-44 fedora-rawhide
705 #, no-wrap
706 msgid "B<F_SETFD> (I<int>)"
707 msgstr "B<F_SETFD> (I<int>)"
708
709 #. type: Plain text
710 #: debian-trixie fedora-44 fedora-rawhide
711 #, fuzzy
712 #| msgid ""
713 #| "Set the close-on-exec flag to the value specified by the B<FD_CLOEXEC> "
714 #| "bit of I<arg>."
715 msgid "Set the file descriptor flags to the value specified by I<arg>."
716 msgstr ""
717 "close-on-exec 플래그를 I<arg>의 B<FD_CLOEXEC> 비트에 의해 지정된 값으로 설정"
718 "한다."
719
720 #. type: Plain text
721 #: debian-trixie fedora-44 fedora-rawhide
722 msgid ""
723 "In multithreaded programs, using B<fcntl>() B<F_SETFD> to set the close-on-"
724 "exec flag at the same time as another thread performs a B<fork>(2) plus "
725 "B<execve>(2) is vulnerable to a race condition that may unintentionally "
726 "leak the file descriptor to the program executed in the child process. See "
727 "the discussion of the B<O_CLOEXEC> flag in B<open>(2) for details and a "
728 "remedy to the problem."
729 msgstr ""
730
731 #. or
732 #. .BR creat (2),
733 #. type: Plain text
734 #: debian-trixie fedora-44 fedora-rawhide
735 msgid ""
736 "Each open file description has certain associated status flags, initialized "
737 "by B<open>(2) and possibly modified by B<fcntl>(). Duplicated file "
738 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
739 "to the same open file description, and thus share the same file status flags."
740 msgstr ""
741
742 #. type: Plain text
743 #: debian-trixie fedora-44 fedora-rawhide
744 #, fuzzy
745 #| msgid "The flags and their semantics are described in B<open>(2)."
746 msgid "The file status flags and their semantics are described in B<open>(2)."
747 msgstr "플래그 및 그들의 의미는 B<open>(2)에 설명되어 있다."
748
749 #. type: TP
750 #: debian-trixie fedora-44 fedora-rawhide
751 #, no-wrap
752 msgid "B<F_GETFL> (I<void>)"
753 msgstr "B<F_GETFL> (I<void>)"
754
755 #. type: Plain text
756 #: debian-trixie fedora-44 fedora-rawhide
757 msgid ""
758 "Return (as the function result) the file access mode and the file status "
759 "flags; I<arg> is ignored."
760 msgstr ""
761
762 #. type: TP
763 #: debian-trixie fedora-44 fedora-rawhide
764 #, no-wrap
765 msgid "B<F_SETFL> (I<int>)"
766 msgstr "B<F_SETFL> (I<int>)"
767
768 #. type: Plain text
769 #: debian-trixie fedora-44 fedora-rawhide
770 msgid ""
771 "Set the file status flags to the value specified by I<arg>. File access "
772 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) and file creation flags (i.e., "
773 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) in I<arg> are ignored. On "
774 "Linux, this operation can change only the B<O_APPEND>, B<O_ASYNC>, "
775 "B<O_DIRECT>, B<O_NOATIME>, and B<O_NONBLOCK> flags. It is not possible to "
776 "change the B<O_DSYNC> and B<O_SYNC> flags; see BUGS, below."
777 msgstr ""
778
779 #. type: Plain text
780 #: debian-trixie fedora-44 fedora-rawhide
781 msgid ""
782 "Linux implements traditional (\"process-associated\") UNIX record locks, as "
783 "standardized by POSIX. For a Linux-specific alternative with better "
784 "semantics, see the discussion of open file description locks below."
785 msgstr ""
786
787 #. type: Plain text
788 #: debian-trixie fedora-44 fedora-rawhide
789 #, fuzzy
790 #| msgid ""
791 #| "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to manage discretionary "
792 #| "file locks. The third argument I<lock> is a pointer to a struct flock "
793 #| "(that may be overwritten by this call)."
794 msgid ""
795 "B<F_SETLK>, B<F_SETLKW>, and B<F_GETLK> are used to acquire, release, and "
796 "test for the existence of record locks (also known as byte-range, file-"
797 "segment, or file-region locks). The third argument, I<lock>, is a pointer "
798 "to a structure that has at least the following fields (in unspecified order)."
799 msgstr ""
800 "B<F_GETLK>, B<F_SETLK> 그리고 B<F_SETLKW> 들은 임의의 파일 잠금을 관리하는데 "
801 "사용된다. 세번째 인수 I<lock>은 구조체 flock(이 호출에 의해 겹쳐써질 수 있"
802 "는)에 대한 포인터이다."
803
804 #. type: Plain text
805 #: debian-trixie fedora-44 fedora-rawhide
806 #, no-wrap
807 msgid ""
808 "struct flock {\n"
809 " ...\n"
810 " short l_type; /* Type of lock: F_RDLCK,\n"
811 " F_WRLCK, F_UNLCK */\n"
812 " short l_whence; /* How to interpret l_start:\n"
813 " SEEK_SET, SEEK_CUR, SEEK_END */\n"
814 " off_t l_start; /* Starting offset for lock */\n"
815 " off_t l_len; /* Number of bytes to lock */\n"
816 " pid_t l_pid; /* PID of process blocking our lock\n"
817 " (set by F_GETLK and F_OFD_GETLK) */\n"
818 " ...\n"
819 "};\n"
820 msgstr ""
821
822 #. type: Plain text
823 #: debian-trixie fedora-44 fedora-rawhide
824 msgid ""
825 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
826 "the range of bytes we wish to lock. Bytes past the end of the file may be "
827 "locked, but not bytes before the start of the file."
828 msgstr ""
829
830 #. type: Plain text
831 #: debian-trixie fedora-44 fedora-rawhide
832 msgid ""
833 "I<l_start> is the starting offset for the lock, and is interpreted relative "
834 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
835 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
836 "(if I<l_whence> is B<SEEK_END>). In the final two cases, I<l_start> can be "
837 "a negative number provided the offset does not lie before the start of the "
838 "file."
839 msgstr ""
840
841 #. type: Plain text
842 #: debian-trixie fedora-44 fedora-rawhide
843 msgid ""
844 "I<l_len> specifies the number of bytes to be locked. If I<l_len> is "
845 "positive, then the range to be locked covers bytes I<l_start> up to and "
846 "including I<l_start>+I<l_len>-1. Specifying 0 for I<l_len> has the special "
847 "meaning: lock all bytes starting at the location specified by I<l_whence> "
848 "and I<l_start> through to the end of file, no matter how large the file "
849 "grows."
850 msgstr ""
851
852 #. type: Plain text
853 #: debian-trixie fedora-44 fedora-rawhide
854 msgid ""
855 "POSIX.1-2001 allows (but does not require) an implementation to support a "
856 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
857 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1. "
858 "This is supported since Linux 2.4.21 and Linux 2.5.49."
859 msgstr ""
860
861 #. type: Plain text
862 #: debian-trixie fedora-44 fedora-rawhide
863 msgid ""
864 "The I<l_type> field can be used to place a read (B<F_RDLCK>) or a write "
865 "(B<F_WRLCK>) lock on a file. Any number of processes may hold a read lock "
866 "(shared lock) on a file region, but only one process may hold a write lock "
867 "(exclusive lock). An exclusive lock excludes all other locks, both shared "
868 "and exclusive. A single process can hold only one type of lock on a file "
869 "region; if a new lock is applied to an already-locked region, then the "
870 "existing lock is converted to the new lock type. (Such conversions may "
871 "involve splitting, shrinking, or coalescing with an existing lock if the "
872 "byte range specified by the new lock does not precisely coincide with the "
873 "range of the existing lock.)"
874 msgstr ""
875
876 #. type: TP
877 #: debian-trixie fedora-44 fedora-rawhide
878 #, no-wrap
879 msgid "B<F_SETLK> (I<struct flock *>)"
880 msgstr "B<F_SETLK> (I<struct flock *>)"
881
882 #. type: Plain text
883 #: debian-trixie fedora-44 fedora-rawhide
884 msgid ""
885 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a "
886 "lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the "
887 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a conflicting "
888 "lock is held by another process, this call returns -1 and sets I<errno> to "
889 "B<EACCES> or B<EAGAIN>. (The error returned in this case differs across "
890 "implementations, so POSIX requires a portable application to check for both "
891 "errors.)"
892 msgstr ""
893
894 #. type: TP
895 #: debian-trixie fedora-44 fedora-rawhide
896 #, no-wrap
897 msgid "B<F_SETLKW> (I<struct flock *>)"
898 msgstr "B<F_SETLKW> (I<struct flock *>)"
899
900 #. type: Plain text
901 #: debian-trixie fedora-44 fedora-rawhide
902 #, fuzzy
903 #| msgid ""
904 #| "Like B<F_SETLK>, but instead of returning an error we wait for the lock "
905 #| "to be released. If a signal that is to be caught is received while "
906 #| "B<fcntl> is waiting, it is interrupted and (after the signal handler has "
907 #| "returned) returns immediately (with return value -1 and I<errno> set to "
908 #| "B<EINTR>)."
909 msgid ""
910 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
911 "for that lock to be released. If a signal is caught while waiting, then the "
912 "call is interrupted and (after the signal handler has returned) returns "
913 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
914 "B<signal>(7))."
915 msgstr ""
916 "B<F_SETLK>과 같지만, 에러를 리턴하는 대신에, 잠금이 풀려지기를 기다린다. 만"
917 "일 B<fcntl>이 기다리고 있을 때, 시그널이 잡히면, 이는 인터럽트되고, 시그널 처"
918 "리기가 리턴된 후에, 즉시 리턴값 -1과 I<errno>가 B<EINTR>로 설정되어 리턴된다."
919
920 #. type: TP
921 #: debian-trixie fedora-44 fedora-rawhide
922 #, no-wrap
923 msgid "B<F_GETLK> (I<struct flock *>)"
924 msgstr "B<F_GETLK> (I<struct flock *>)"
925
926 #. type: Plain text
927 #: debian-trixie fedora-44 fedora-rawhide
928 msgid ""
929 "On input to this call, I<lock> describes a lock we would like to place on "
930 "the file. If the lock could be placed, B<fcntl>() does not actually place "
931 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
932 "other fields of the structure unchanged."
933 msgstr ""
934
935 #. type: Plain text
936 #: debian-trixie fedora-44 fedora-rawhide
937 msgid ""
938 "If one or more incompatible locks would prevent this lock being placed, then "
939 "B<fcntl>() returns details about one of those locks in the I<l_type>, "
940 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If the conflicting "
941 "lock is a traditional (process-associated) record lock, then the I<l_pid> "
942 "field is set to the PID of the process holding that lock. If the "
943 "conflicting lock is an open file description lock, then I<l_pid> is set to "
944 "-1. Note that the returned information may already be out of date by the "
945 "time the caller inspects it."
946 msgstr ""
947
948 #. type: Plain text
949 #: debian-trixie fedora-44 fedora-rawhide
950 msgid ""
951 "In order to place a read lock, I<fd> must be open for reading. In order to "
952 "place a write lock, I<fd> must be open for writing. To place both types of "
953 "lock, open a file read-write."
954 msgstr ""
955
956 #. type: Plain text
957 #: debian-trixie fedora-44 fedora-rawhide
958 msgid ""
959 "When placing locks with B<F_SETLKW>, the kernel detects I<deadlocks>, "
960 "whereby two or more processes have their lock requests mutually blocked by "
961 "locks held by the other processes. For example, suppose process A holds a "
962 "write lock on byte 100 of a file, and process B holds a write lock on byte "
963 "200. If each process then attempts to lock the byte already locked by the "
964 "other process using B<F_SETLKW>, then, without deadlock detection, both "
965 "processes would remain blocked indefinitely. When the kernel detects such "
966 "deadlocks, it causes one of the blocking lock requests to immediately fail "
967 "with the error B<EDEADLK>; an application that encounters such an error "
968 "should release some of its locks to allow other applications to proceed "
969 "before attempting regain the locks that it requires. Circular deadlocks "
970 "involving more than two processes are also detected. Note, however, that "
971 "there are limitations to the kernel's deadlock-detection algorithm; see BUGS."
972 msgstr ""
973
974 #. type: Plain text
975 #: debian-trixie fedora-44 fedora-rawhide
976 msgid ""
977 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
978 "automatically released when the process terminates."
979 msgstr ""
980
981 #. type: Plain text
982 #: debian-trixie fedora-44 fedora-rawhide
983 msgid ""
984 "Record locks are not inherited by a child created via B<fork>(2), but are "
985 "preserved across an B<execve>(2)."
986 msgstr ""
987
988 #. type: Plain text
989 #: debian-trixie fedora-44 fedora-rawhide
990 msgid ""
991 "Because of the buffering performed by the B<stdio>(3) library, the use of "
992 "record locking with routines in that package should be avoided; use "
993 "B<read>(2) and B<write>(2) instead."
994 msgstr ""
995
996 #. type: Plain text
997 #: debian-trixie fedora-44 fedora-rawhide
998 msgid ""
999 "The record locks described above are associated with the process (unlike the "
1000 "open file description locks described below). This has some unfortunate "
1001 "consequences:"
1002 msgstr ""
1003
1004 #. type: IP
1005 #: debian-trixie fedora-44 fedora-rawhide
1006 #, no-wrap
1007 msgid "\\[bu]"
1008 msgstr "\\[bu]"
1009
1010 #. (Additional file descriptors referring to the same file
1011 #. may have been obtained by calls to
1012 #. .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
1013 #. type: Plain text
1014 #: debian-trixie fedora-44 fedora-rawhide
1015 msgid ""
1016 "If a process closes I<any> file descriptor referring to a file, then all of "
1017 "the process's locks on that file are released, regardless of the file "
1018 "descriptor(s) on which the locks were obtained. This is bad: it means that "
1019 "a process can lose its locks on a file such as I</etc/passwd> or I</etc/"
1020 "mtab> when for some reason a library function decides to open, read, and "
1021 "close the same file."
1022 msgstr ""
1023
1024 #. type: Plain text
1025 #: debian-trixie fedora-44 fedora-rawhide
1026 msgid ""
1027 "The threads in a process share locks. In other words, a multithreaded "
1028 "program can't use record locking to ensure that threads don't simultaneously "
1029 "access the same region of a file."
1030 msgstr ""
1031
1032 #. type: Plain text
1033 #: debian-trixie fedora-44 fedora-rawhide
1034 msgid "Open file description locks solve both of these problems."
1035 msgstr ""
1036
1037 #. FIXME . Review progress into POSIX
1038 #. http://austingroupbugs.net/view.php?id=768
1039 #. type: Plain text
1040 #: debian-trixie fedora-44 fedora-rawhide
1041 msgid ""
1042 "Open file description locks are advisory byte-range locks whose operation is "
1043 "in most respects identical to the traditional record locks described above. "
1044 "This lock type is Linux-specific, and available since Linux 3.15. (There is "
1045 "a proposal with the Austin Group to include this lock type in the next "
1046 "revision of POSIX.1.) For an explanation of open file descriptions, see "
1047 "B<open>(2)."
1048 msgstr ""
1049
1050 #. type: Plain text
1051 #: debian-trixie fedora-44 fedora-rawhide
1052 msgid ""
1053 "The principal difference between the two lock types is that whereas "
1054 "traditional record locks are associated with a process, open file "
1055 "description locks are associated with the open file description on which "
1056 "they are acquired, much like locks acquired with B<flock>(2). Consequently "
1057 "(and unlike traditional advisory record locks), open file description locks "
1058 "are inherited across B<fork>(2) (and B<clone>(2) with B<CLONE_FILES>), and "
1059 "are only automatically released on the last close of the open file "
1060 "description, instead of being released on any close of the file."
1061 msgstr ""
1062
1063 #. type: Plain text
1064 #: debian-trixie fedora-44 fedora-rawhide
1065 msgid ""
1066 "Conflicting lock combinations (i.e., a read lock and a write lock or two "
1067 "write locks) where one lock is an open file description lock and the other "
1068 "is a traditional record lock conflict even when they are acquired by the "
1069 "same process on the same file descriptor."
1070 msgstr ""
1071
1072 #. type: Plain text
1073 #: debian-trixie fedora-44 fedora-rawhide
1074 msgid ""
1075 "Open file description locks placed via the same open file description (i.e., "
1076 "via the same file descriptor, or via a duplicate of the file descriptor "
1077 "created by B<fork>(2), B<dup>(2), B<fcntl>() B<F_DUPFD>, and so on) are "
1078 "always compatible: if a new lock is placed on an already locked region, then "
1079 "the existing lock is converted to the new lock type. (Such conversions may "
1080 "result in splitting, shrinking, or coalescing with an existing lock as "
1081 "discussed above.)"
1082 msgstr ""
1083
1084 #. type: Plain text
1085 #: debian-trixie fedora-44 fedora-rawhide
1086 msgid ""
1087 "On the other hand, open file description locks may conflict with each other "
1088 "when they are acquired via different open file descriptions. Thus, the "
1089 "threads in a multithreaded program can use open file description locks to "
1090 "synchronize access to a file region by having each thread perform its own "
1091 "B<open>(2) on the file and applying locks via the resulting file descriptor."
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: debian-trixie fedora-44 fedora-rawhide
1096 msgid ""
1097 "As with traditional advisory locks, the third argument to B<fcntl>(), "
1098 "I<lock>, is a pointer to an I<flock> structure. By contrast with "
1099 "traditional record locks, the I<l_pid> field of that structure must be set "
1100 "to zero when using the operations described below."
1101 msgstr ""
1102
1103 #. type: Plain text
1104 #: debian-trixie fedora-44 fedora-rawhide
1105 msgid ""
1106 "The operations for working with open file description locks are analogous to "
1107 "those used with traditional locks:"
1108 msgstr ""
1109
1110 #. type: TP
1111 #: debian-trixie fedora-44 fedora-rawhide
1112 #, no-wrap
1113 msgid "B<F_OFD_SETLK> (I<struct flock *>)"
1114 msgstr "B<F_OFD_SETLK> (I<struct flock *>)"
1115
1116 #. type: Plain text
1117 #: debian-trixie fedora-44 fedora-rawhide
1118 #, fuzzy
1119 #| msgid ""
1120 #| "The lock is set (when B<l_type> is B<F_RDLCK> or B<F_WRLCK>) or cleared "
1121 #| "(when it is B<F_UNLCK>). If the lock is held by someone else, this call "
1122 #| "returns -1 and sets I<errno> to B<EACCES> or B<EAGAIN>."
1123 msgid ""
1124 "Acquire an open file description lock (when I<l_type> is B<F_RDLCK> or "
1125 "B<F_WRLCK>) or release an open file description lock (when I<l_type> is "
1126 "B<F_UNLCK>) on the bytes specified by the I<l_whence>, I<l_start>, and "
1127 "I<l_len> fields of I<lock>. If a conflicting lock is held by another "
1128 "process, this call returns -1 and sets I<errno> to B<EAGAIN>."
1129 msgstr ""
1130 "B<l_type>이 B<F_RDLCK> 혹은 B<F_WRLCK>일 때, 잠금이 설정된거나, B<l_type>이 "
1131 "B<F_UNLCK>일 때, 잠금은 소거된다. 다른 누군가에 의해 잠금(lock)이 이루어지"
1132 "면, 이 호출은 -1을 리턴하고, I<errno>를 B<EACCES> 혹은 B<EAGAIN>로 설정한다."
1133
1134 #. type: TP
1135 #: debian-trixie fedora-44 fedora-rawhide
1136 #, no-wrap
1137 msgid "B<F_OFD_SETLKW> (I<struct flock *>)"
1138 msgstr "B<F_OFD_SETLKW> (I<struct flock *>)"
1139
1140 #. type: Plain text
1141 #: debian-trixie fedora-44 fedora-rawhide
1142 #, fuzzy
1143 #| msgid ""
1144 #| "Like B<F_SETLK>, but instead of returning an error we wait for the lock "
1145 #| "to be released. If a signal that is to be caught is received while "
1146 #| "B<fcntl> is waiting, it is interrupted and (after the signal handler has "
1147 #| "returned) returns immediately (with return value -1 and I<errno> set to "
1148 #| "B<EINTR>)."
1149 msgid ""
1150 "As for B<F_OFD_SETLK>, but if a conflicting lock is held on the file, then "
1151 "wait for that lock to be released. If a signal is caught while waiting, "
1152 "then the call is interrupted and (after the signal handler has returned) "
1153 "returns immediately (with return value -1 and I<errno> set to B<EINTR>; see "
1154 "B<signal>(7))."
1155 msgstr ""
1156 "B<F_SETLK>과 같지만, 에러를 리턴하는 대신에, 잠금이 풀려지기를 기다린다. 만"
1157 "일 B<fcntl>이 기다리고 있을 때, 시그널이 잡히면, 이는 인터럽트되고, 시그널 처"
1158 "리기가 리턴된 후에, 즉시 리턴값 -1과 I<errno>가 B<EINTR>로 설정되어 리턴된다."
1159
1160 #. type: TP
1161 #: debian-trixie fedora-44 fedora-rawhide
1162 #, no-wrap
1163 msgid "B<F_OFD_GETLK> (I<struct flock *>)"
1164 msgstr "B<F_OFD_GETLK> (I<struct flock *>)"
1165
1166 #. type: Plain text
1167 #: debian-trixie fedora-44 fedora-rawhide
1168 msgid ""
1169 "On input to this call, I<lock> describes an open file description lock we "
1170 "would like to place on the file. If the lock could be placed, B<fcntl>() "
1171 "does not actually place it, but returns B<F_UNLCK> in the I<l_type> field of "
1172 "I<lock> and leaves the other fields of the structure unchanged. If one or "
1173 "more incompatible locks would prevent this lock being placed, then details "
1174 "about one of these locks are returned via I<lock>, as described above for "
1175 "B<F_GETLK>."
1176 msgstr ""
1177
1178 #. commit 57b65325fe34ec4c917bc4e555144b4a94d9e1f7
1179 #. type: Plain text
1180 #: debian-trixie fedora-44 fedora-rawhide
1181 msgid ""
1182 "In the current implementation, no deadlock detection is performed for open "
1183 "file description locks. (This contrasts with process-associated record "
1184 "locks, for which the kernel does perform deadlock detection.)"
1185 msgstr ""
1186
1187 #. type: SS
1188 #: debian-trixie fedora-44 fedora-rawhide
1189 #, no-wrap
1190 msgid "Mandatory locking"
1191 msgstr ""
1192
1193 #. type: Plain text
1194 #: debian-trixie fedora-44 fedora-rawhide
1195 msgid ""
1196 "I<Warning>: the Linux implementation of mandatory locking is unreliable. "
1197 "See BUGS below. Because of these bugs, and the fact that the feature is "
1198 "believed to be little used, since Linux 4.5, mandatory locking has been made "
1199 "an optional feature, governed by a configuration option "
1200 "(B<CONFIG_MANDATORY_FILE_LOCKING>). This feature is no longer supported at "
1201 "all in Linux 5.15 and above."
1202 msgstr ""
1203
1204 #. type: Plain text
1205 #: debian-trixie fedora-44 fedora-rawhide
1206 msgid ""
1207 "By default, both traditional (process-associated) and open file description "
1208 "record locks are advisory. Advisory locks are not enforced and are useful "
1209 "only between cooperating processes."
1210 msgstr ""
1211
1212 #. type: Plain text
1213 #: debian-trixie fedora-44 fedora-rawhide
1214 msgid ""
1215 "Both lock types can also be mandatory. Mandatory locks are enforced for all "
1216 "processes. If a process tries to perform an incompatible access (e.g., "
1217 "B<read>(2) or B<write>(2)) on a file region that has an incompatible "
1218 "mandatory lock, then the result depends upon whether the B<O_NONBLOCK> flag "
1219 "is enabled for its open file description. If the B<O_NONBLOCK> flag is not "
1220 "enabled, then the system call is blocked until the lock is removed or "
1221 "converted to a mode that is compatible with the access. If the "
1222 "B<O_NONBLOCK> flag is enabled, then the system call fails with the error "
1223 "B<EAGAIN>."
1224 msgstr ""
1225
1226 #. type: Plain text
1227 #: debian-trixie fedora-44 fedora-rawhide
1228 msgid ""
1229 "To make use of mandatory locks, mandatory locking must be enabled both on "
1230 "the filesystem that contains the file to be locked, and on the file itself. "
1231 "Mandatory locking is enabled on a filesystem using the \"-o mand\" option to "
1232 "B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2). Mandatory locking "
1233 "is enabled on a file by disabling group execute permission on the file and "
1234 "enabling the set-group-ID permission bit (see B<chmod>(1) and B<chmod>(2))."
1235 msgstr ""
1236
1237 #. type: Plain text
1238 #: debian-trixie fedora-44 fedora-rawhide
1239 msgid ""
1240 "Mandatory locking is not specified by POSIX. Some other systems also "
1241 "support mandatory locking, although the details of how to enable it vary "
1242 "across systems."
1243 msgstr ""
1244
1245 #. type: SS
1246 #: debian-trixie fedora-44 fedora-rawhide
1247 #, no-wrap
1248 msgid "Lost locks"
1249 msgstr ""
1250
1251 #. type: Plain text
1252 #: debian-trixie fedora-44 fedora-rawhide
1253 msgid ""
1254 "When an advisory lock is obtained on a networked filesystem such as NFS it "
1255 "is possible that the lock might get lost. This may happen due to "
1256 "administrative action on the server, or due to a network partition (i.e., "
1257 "loss of network connectivity with the server) which lasts long enough for "
1258 "the server to assume that the client is no longer functioning."
1259 msgstr ""
1260
1261 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
1262 #. type: Plain text
1263 #: debian-trixie fedora-44 fedora-rawhide
1264 msgid ""
1265 "When the filesystem determines that a lock has been lost, future B<read>(2) "
1266 "or B<write>(2) requests may fail with the error B<EIO>. This error will "
1267 "persist until the lock is removed or the file descriptor is closed. Since "
1268 "Linux 3.12, this happens at least for NFSv4 (including all minor versions)."
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: debian-trixie fedora-44 fedora-rawhide
1273 msgid ""
1274 "Some versions of UNIX send a signal (B<SIGLOST>) in this circumstance. "
1275 "Linux does not define this signal, and does not provide any asynchronous "
1276 "notification of lost locks."
1277 msgstr ""
1278
1279 #. type: Plain text
1280 #: debian-trixie fedora-44 fedora-rawhide
1281 msgid ""
1282 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1283 "B<F_SETSIG> are used to manage I/O availability signals:"
1284 msgstr ""
1285 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> 그리고 "
1286 "B<F_SETSIG> 입출력(I/O) 유용성 시그널을 관리하는데 사용된다."
1287
1288 #. type: TP
1289 #: debian-trixie fedora-44 fedora-rawhide
1290 #, no-wrap
1291 msgid "B<F_GETOWN> (I<void>)"
1292 msgstr "B<F_GETOWN> (I<void>)"
1293
1294 #. type: Plain text
1295 #: debian-trixie fedora-44 fedora-rawhide
1296 #, fuzzy
1297 #| msgid ""
1298 #| "Get the process ID or process group currently receiving SIGIO and SIGURG "
1299 #| "signals for events on file descriptor I<fd>. Process groups are returned "
1300 #| "as negative values."
1301 msgid ""
1302 "Return (as the function result) the process ID or process group ID "
1303 "currently receiving B<SIGIO> and B<SIGURG> signals for events on file "
1304 "descriptor I<fd>. Process IDs are returned as positive values; process "
1305 "group IDs are returned as negative values (but see BUGS below). I<arg> is "
1306 "ignored."
1307 msgstr ""
1308 "파일 기술자 I<fd>상에서 이벤트들에 대한 SIGIO 그리고 SIGURG 시그널들을 수신하"
1309 "는 프로세스 ID 또는 프로세스 그룹을 얻는다."
1310
1311 #. type: TP
1312 #: debian-trixie fedora-44 fedora-rawhide
1313 #, no-wrap
1314 msgid "B<F_SETOWN> (I<int>)"
1315 msgstr "B<F_SETOWN> (I<int>)"
1316
1317 #. type: Plain text
1318 #: debian-trixie fedora-44 fedora-rawhide
1319 #, fuzzy
1320 #| msgid ""
1321 #| "Set the process ID or process group that will receive SIGIO and SIGURG "
1322 #| "signals for events on file descriptor I<fd>. Process groups are "
1323 #| "specified using negative values. (B<F_SETSIG> can be used to specify a "
1324 #| "different signal instead of SIGIO)."
1325 msgid ""
1326 "Set the process ID or process group ID that will receive B<SIGIO> and "
1327 "B<SIGURG> signals for events on the file descriptor I<fd>. The target "
1328 "process or process group ID is specified in I<arg>. A process ID is "
1329 "specified as a positive value; a process group ID is specified as a negative "
1330 "value. Most commonly, the calling process specifies itself as the owner "
1331 "(that is, I<arg> is specified as B<getpid>(2))."
1332 msgstr ""
1333 "파일 기술자 I<fd>상에서 이벤트들에 대한 SIGIO 그리고 SIGURG 시그널들을 수신하"
1334 "는 프로세스 ID 또는 프로세스 그룹을 설정한다. 프로세스 그룹들은 음수값을 사"
1335 "용하여 지정된다. (B<F_SETSIG> 은 SIGIO 대신에 다른 시그널을 명시하는데 사용"
1336 "될 수 있다. 만일 파일 기술자에서 이 플래그에 I<open>(2) 호출을 제공하거나, "
1337 "B<fcntl>의 B<F_SETFL> 명령을 사용하여 B<O_ASYNC> 상태 플래그를 설정하려면, 입"
1338 "력 또는 출력이 그 파일 기술자에서 가능하게 될때마다, SIGIO 시그널이 전송된다."
1339
1340 #. type: Plain text
1341 #: debian-trixie fedora-44 fedora-rawhide
1342 msgid ""
1343 "As well as setting the file descriptor owner, one must also enable "
1344 "generation of signals on the file descriptor. This is done by using the "
1345 "B<fcntl>() B<F_SETFL> operation to set the B<O_ASYNC> file status flag on "
1346 "the file descriptor. Subsequently, a B<SIGIO> signal is sent whenever input "
1347 "or output becomes possible on the file descriptor. The B<fcntl>() "
1348 "B<F_SETSIG> operation can be used to obtain delivery of a signal other than "
1349 "B<SIGIO>."
1350 msgstr ""
1351
1352 #. type: Plain text
1353 #: debian-trixie fedora-44 fedora-rawhide
1354 msgid ""
1355 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
1356 "subject to the same permissions checks as are described for B<kill>(2), "
1357 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
1358 "below). If this permission check fails, then the signal is silently "
1359 "discarded. I<Note>: The B<F_SETOWN> operation records the caller's "
1360 "credentials at the time of the B<fcntl>() call, and it is these saved "
1361 "credentials that are used for the permission checks."
1362 msgstr ""
1363
1364 #
1365 #. The following appears to be rubbish. It doesn't seem to
1366 #. be true according to the kernel source, and I can write
1367 #. a program that gets a terminal-generated SIGIO even though
1368 #. it is not the foreground process group of the terminal.
1369 #. -- MTK, 8 Apr 05
1370 #. If the file descriptor
1371 #. .I fd
1372 #. refers to a terminal device, then SIGIO
1373 #. signals are sent to the foreground process group of the terminal.
1374 #. type: Plain text
1375 #: debian-trixie fedora-44 fedora-rawhide
1376 msgid ""
1377 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
1378 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
1379 "arrives on that socket. (B<SIGURG> is sent in any situation where "
1380 "B<select>(2) would report the socket as having an \"exceptional "
1381 "condition\".)"
1382 msgstr ""
1383
1384 #. type: Plain text
1385 #: debian-trixie fedora-44 fedora-rawhide
1386 msgid "The following was true in Linux 2.6.x up to and including Linux 2.6.11:"
1387 msgstr ""
1388
1389 #. The relevant place in the (2.6) kernel source is the
1390 #. 'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
1391 #. send_sigurg()/send_sigurg_to_task() bypasses
1392 #. kill_fasync()/send_sigio()/send_sigio_to_task()
1393 #. to directly call send_group_sig_info()
1394 #. -- MTK, Apr 2005 (kernel 2.6.11)
1395 #. type: Plain text
1396 #: debian-trixie fedora-44 fedora-rawhide
1397 msgid ""
1398 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
1399 "running with a threading library that supports thread groups (e.g., NPTL), "
1400 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
1401 "of being a process ID identifying a whole process, it is a thread ID "
1402 "identifying a specific thread within a process. Consequently, it may be "
1403 "necessary to pass B<F_SETOWN> the result of B<gettid>(2) instead of "
1404 "B<getpid>(2) to get sensible results when B<F_SETSIG> is used. (In current "
1405 "Linux threading implementations, a main thread's thread ID is the same as "
1406 "its process ID. This means that a single-threaded program can equally use "
1407 "B<gettid>(2) or B<getpid>(2) in this scenario.) Note, however, that the "
1408 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
1409 "for out-of-band data on a socket: this signal is always sent to either a "
1410 "process or a process group, depending on the value given to B<F_SETOWN>."
1411 msgstr ""
1412
1413 #. type: Plain text
1414 #: debian-trixie fedora-44 fedora-rawhide
1415 msgid ""
1416 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
1417 "restored. From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
1418 "and B<SIGURG> signals at a particular thread."
1419 msgstr ""
1420
1421 #. type: TP
1422 #: debian-trixie fedora-44 fedora-rawhide
1423 #, no-wrap
1424 msgid "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1425 msgstr ""
1426
1427 #. type: Plain text
1428 #: debian-trixie fedora-44 fedora-rawhide
1429 msgid ""
1430 "Return the current file descriptor owner settings as defined by a previous "
1431 "B<F_SETOWN_EX> operation. The information is returned in the structure "
1432 "pointed to by I<arg>, which has the following form:"
1433 msgstr ""
1434
1435 #. type: Plain text
1436 #: debian-trixie fedora-44 fedora-rawhide
1437 #, no-wrap
1438 msgid ""
1439 "struct f_owner_ex {\n"
1440 " int type;\n"
1441 " pid_t pid;\n"
1442 "};\n"
1443 msgstr ""
1444 "struct f_owner_ex {\n"
1445 " int type;\n"
1446 " pid_t pid;\n"
1447 "};\n"
1448
1449 #. type: Plain text
1450 #: debian-trixie fedora-44 fedora-rawhide
1451 msgid ""
1452 "The I<type> field will have one of the values B<F_OWNER_TID>, "
1453 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>. The I<pid> field is a positive integer "
1454 "representing a thread ID, process ID, or process group ID. See "
1455 "B<F_SETOWN_EX> for more details."
1456 msgstr ""
1457
1458 #. type: TP
1459 #: debian-trixie fedora-44 fedora-rawhide
1460 #, no-wrap
1461 msgid "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)"
1462 msgstr ""
1463
1464 #. type: Plain text
1465 #: debian-trixie fedora-44 fedora-rawhide
1466 msgid ""
1467 "This operation performs a similar task to B<F_SETOWN>. It allows the caller "
1468 "to direct I/O availability signals to a specific thread, process, or process "
1469 "group. The caller specifies the target of signals via I<arg>, which is a "
1470 "pointer to a I<f_owner_ex> structure. The I<type> field has one of the "
1471 "following values, which define how I<pid> is interpreted:"
1472 msgstr ""
1473
1474 #. type: TP
1475 #: debian-trixie fedora-44 fedora-rawhide
1476 #, no-wrap
1477 msgid "B<F_OWNER_TID>"
1478 msgstr "B<F_OWNER_TID>"
1479
1480 #. type: Plain text
1481 #: debian-trixie fedora-44 fedora-rawhide
1482 msgid ""
1483 "Send the signal to the thread whose thread ID (the value returned by a call "
1484 "to B<clone>(2) or B<gettid>(2)) is specified in I<pid>."
1485 msgstr ""
1486
1487 #. type: TP
1488 #: debian-trixie fedora-44 fedora-rawhide
1489 #, no-wrap
1490 msgid "B<F_OWNER_PID>"
1491 msgstr "B<F_OWNER_PID>"
1492
1493 #. type: Plain text
1494 #: debian-trixie fedora-44 fedora-rawhide
1495 msgid "Send the signal to the process whose ID is specified in I<pid>."
1496 msgstr ""
1497
1498 #. type: TP
1499 #: debian-trixie fedora-44 fedora-rawhide
1500 #, no-wrap
1501 msgid "B<F_OWNER_PGRP>"
1502 msgstr "B<F_OWNER_PGRP>"
1503
1504 #. type: Plain text
1505 #: debian-trixie fedora-44 fedora-rawhide
1506 msgid ""
1507 "Send the signal to the process group whose ID is specified in I<pid>. (Note "
1508 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
1509 "value here.)"
1510 msgstr ""
1511
1512 #. type: TP
1513 #: debian-trixie fedora-44 fedora-rawhide
1514 #, no-wrap
1515 msgid "B<F_GETSIG> (I<void>)"
1516 msgstr "B<F_GETSIG> (I<void>)"
1517
1518 #. type: Plain text
1519 #: debian-trixie fedora-44 fedora-rawhide
1520 #, fuzzy
1521 #| msgid ""
1522 #| "Get the signal sent when input or output becomes possible. A value of "
1523 #| "zero means SIGIO is sent. Any other value (including SIGIO) is the "
1524 #| "signal sent instead, and in this case additional info is available to the "
1525 #| "signal handler if installed with SA_SIGINFO."
1526 msgid ""
1527 "Return (as the function result) the signal sent when input or output "
1528 "becomes possible. A value of zero means B<SIGIO> is sent. Any other value "
1529 "(including B<SIGIO>) is the signal sent instead, and in this case "
1530 "additional info is available to the signal handler if installed with "
1531 "B<SA_SIGINFO>. I<arg> is ignored."
1532 msgstr ""
1533 "입력 또는 출력이 가능해질 때, 시그널이 전송되도록 한다. 제로 값은 SIGIO가 전"
1534 "송되었다는 것을 의미한다. 다른 값(SIGIO을 포함)은 대신 보내진 시그널이다. 이"
1535 "런 경우, SA_SIGINFO가 설치되어 있으면, 시그널 처리기에 대한 추가적인 정보가 "
1536 "사용가능하다."
1537
1538 #. type: TP
1539 #: debian-trixie fedora-44 fedora-rawhide
1540 #, no-wrap
1541 msgid "B<F_SETSIG> (I<int>)"
1542 msgstr "B<F_SETSIG> (I<int>)"
1543
1544 #. The following was true only up until Linux 2.6.11:
1545 #. Additionally, passing a nonzero value to
1546 #. .B F_SETSIG
1547 #. changes the signal recipient from a whole process to a specific thread
1548 #. within a process.
1549 #. See the description of
1550 #. .B F_SETOWN
1551 #. for more details.
1552 #. type: Plain text
1553 #: debian-trixie fedora-44 fedora-rawhide
1554 #, fuzzy
1555 #| msgid ""
1556 #| "Sets the signal sent when input or output becomes possible. A value of "
1557 #| "zero means to send the default SIGIO signal. Any other value (including "
1558 #| "SIGIO) is the signal to send instead, and in this case additional info is "
1559 #| "available to the signal handler if installed with SA_SIGINFO."
1560 msgid ""
1561 "Set the signal sent when input or output becomes possible to the value given "
1562 "in I<arg>. A value of zero means to send the default B<SIGIO> signal. Any "
1563 "other value (including B<SIGIO>) is the signal to send instead, and in this "
1564 "case additional info is available to the signal handler if installed with "
1565 "B<SA_SIGINFO>."
1566 msgstr ""
1567 "입력 또는 출력이 가능해질때, 시그널이 전송되도록 설정한다. 제로 값은 디폴트 "
1568 "SGSIO 시그널을 전송하는 것을 의미한다. 다른 값(SIGIO을 포함)은 대신 보내진 시"
1569 "그널이다. 이런 경우, SA_SIGINFO가 설치되어 있으면, 시그널 처리기에 대한 추가"
1570 "적인 정보가 사용가능하다."
1571
1572 #. type: Plain text
1573 #: debian-trixie fedora-44 fedora-rawhide
1574 #, fuzzy
1575 #| msgid ""
1576 #| "By using F_SETSIG with a non-zero value, and setting SA_SIGINFO for the "
1577 #| "signal handler (see B<sigaction>(2)), extra information about I/O events "
1578 #| "is passed to the handler in a I<siginfo_t> structure. If the I<si_code> "
1579 #| "field indicates the source is SI_SIGIO, the I<si_fd> field gives the file "
1580 #| "descriptor associated with the event. Otherwise, there is no indication "
1581 #| "which file descriptors are pending, and you should use the usual "
1582 #| "mechanisms (B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set "
1583 #| "etc.) to determine which file descriptors are available for I/O."
1584 msgid ""
1585 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
1586 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
1587 "passed to the handler in a I<siginfo_t> structure. If the I<si_code> field "
1588 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
1589 "descriptor associated with the event. Otherwise, there is no indication "
1590 "which file descriptors are pending, and you should use the usual mechanisms "
1591 "(B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set etc.) to "
1592 "determine which file descriptors are available for I/O."
1593 msgstr ""
1594 "제로가 아닌 값으로 F_SETSIG을 사용하고, 시그널 처리기에 대한 SA_SIGINFO를 설"
1595 "정( B<sigaction>(2) 참조할 것)함으로서, 입출력(I/O 이벤트에 대한) 기타 정보"
1596 "가 I<siginfo_t> 내의 처리기로 전달된다. I<si_code> 필드는 소스가 SI_SIGIO라"
1597 "는 것을 가리키고, I<si_fd> 필드는 파일 기술자와 이벤트를 관련시킨다. 그렇지 "
1598 "않으면, 어떤 파일 기술자들이 계류중인가에 대한 지시가 없고, 여러분은 입출력"
1599 "(I/O)에 사용가능한 파일 기술자들이 어떤 것인지를 결정하기 위해 유용한 메커니"
1600 "즘( (B<select>(2), B<poll>(2), B<read>(2) B<O_NONBLOCK> )을 사용해야 한다."
1601
1602 #. type: Plain text
1603 #: debian-trixie fedora-44 fedora-rawhide
1604 msgid ""
1605 "Note that the file descriptor provided in I<si_fd> is the one that was "
1606 "specified during the B<F_SETSIG> operation. This can lead to an unusual "
1607 "corner case. If the file descriptor is duplicated (B<dup>(2) or similar), "
1608 "and the original file descriptor is closed, then I/O events will continue to "
1609 "be generated, but the I<si_fd> field will contain the number of the now "
1610 "closed file descriptor."
1611 msgstr ""
1612
1613 #. type: Plain text
1614 #: debian-trixie fedora-44 fedora-rawhide
1615 #, fuzzy
1616 #| msgid ""
1617 #| "By selecting a POSIX.1b real time signal (value E<gt>= SIGRTMIN), "
1618 #| "multiple I/O events may be queued using the same signal numbers. "
1619 #| "(Queuing is dependent on available memory). Extra information is "
1620 #| "available if SA_SIGINFO is set for the signal handler, as above."
1621 msgid ""
1622 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
1623 "events may be queued using the same signal numbers. (Queuing is dependent "
1624 "on available memory.) Extra information is available if B<SA_SIGINFO> is "
1625 "set for the signal handler, as above."
1626 msgstr ""
1627 "POSIX.1b 실시간 시그널(값 E<gt>= SIGRTMIN)을 선택함으로서, 다중 입출력 이벤트"
1628 "들은 동일한 시그널 넘버들을 사용하여 대기행렬(큐)에 넣을 수 있다. (큐는 보통 "
1629 "사용가능한 메모리에 의존적이다.) 위와 같이 시그널 처리기에 대해 SA_SIGINFO"
1630 "가 설정되면, 기타 정보가 사용가능하다."
1631
1632 #. See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
1633 #. type: Plain text
1634 #: debian-trixie fedora-44 fedora-rawhide
1635 msgid ""
1636 "Note that Linux imposes a limit on the number of real-time signals that may "
1637 "be queued to a process (see B<getrlimit>(2) and B<signal>(7)) and if this "
1638 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
1639 "signal is delivered to the entire process rather than to a specific thread."
1640 msgstr ""
1641
1642 #. type: Plain text
1643 #: debian-trixie fedora-44 fedora-rawhide
1644 msgid ""
1645 "Using these mechanisms, a program can implement fully asynchronous I/O "
1646 "without using B<select>(2) or B<poll>(2) most of the time."
1647 msgstr ""
1648 "이러한 메커니즘을 사용하면, 프로그램은 대부분의 시간을 B<select>(2) 혹은 "
1649 "B<poll>(2)을 사용함 없이, 비동기적 입출력(I/O)을 구현할 수 있다."
1650
1651 #. type: Plain text
1652 #: debian-trixie fedora-44 fedora-rawhide
1653 #, fuzzy
1654 #| msgid ""
1655 #| "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
1656 #| "Linux. B<F_GETSIG> and B<F_SETSIG> are Linux-specific. POSIX has "
1657 #| "asynchronous I/O and the I<aio_sigevent> structure to achieve similar "
1658 #| "things; these are also available in Linux as part of the GNU C Library "
1659 #| "(Glibc)."
1660 msgid ""
1661 "The use of B<O_ASYNC> is specific to BSD and Linux. The only use of "
1662 "B<F_GETOWN> and B<F_SETOWN> specified in POSIX.1 is in conjunction with the "
1663 "use of the B<SIGURG> signal on sockets. (POSIX does not specify the "
1664 "B<SIGIO> signal.) B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and "
1665 "B<F_SETSIG> are Linux-specific. POSIX has asynchronous I/O and the "
1666 "I<aio_sigevent> structure to achieve similar things; these are also "
1667 "available in Linux as part of the GNU C Library (glibc)."
1668 msgstr ""
1669 "B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> 의 사용은 BSD 및 리눅스에 특정적이다. "
1670 "B<F_GETSIG> 와 B<F_SETSIG는> 리눅스에만 특정적이다. POSIX는 비슷한 것들을 이"
1671 "루는데 비동기적 입출력과 I<aio_sigevent> 구조를 이용한다. 이러한 것들은 또한 "
1672 "리눅스에서 GNU C 라이브러리(Glibc)의 부분으로서 사용할 수 있다."
1673
1674 #. type: Plain text
1675 #: debian-trixie fedora-44 fedora-rawhide
1676 msgid ""
1677 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used to establish a "
1678 "new lease, and retrieve the current lease, on the open file description "
1679 "referred to by the file descriptor I<fd>. A file lease provides a mechanism "
1680 "whereby the process holding the lease (the \"lease holder\") is notified "
1681 "(via delivery of a signal) when a process (the \"lease breaker\") tries to "
1682 "B<open>(2) or B<truncate>(2) the file referred to by that file descriptor."
1683 msgstr ""
1684
1685 #. type: TP
1686 #: debian-trixie fedora-44 fedora-rawhide
1687 #, no-wrap
1688 msgid "B<F_SETLEASE> (I<int>)"
1689 msgstr "B<F_SETLEASE> (I<int>)"
1690
1691 #. type: Plain text
1692 #: debian-trixie fedora-44 fedora-rawhide
1693 msgid ""
1694 "Set or remove a file lease according to which of the following values is "
1695 "specified in the integer I<arg>:"
1696 msgstr ""
1697
1698 #. type: TP
1699 #: debian-trixie fedora-44 fedora-rawhide
1700 #, no-wrap
1701 msgid "B<F_RDLCK>"
1702 msgstr "B<F_RDLCK>"
1703
1704 #. The following became true in Linux 2.6.10:
1705 #. See the man-pages-2.09 Changelog for further info.
1706 #. type: Plain text
1707 #: debian-trixie fedora-44 fedora-rawhide
1708 msgid ""
1709 "Take out a read lease. This will cause the calling process to be notified "
1710 "when the file is opened for writing or is truncated. A read lease can be "
1711 "placed only on a file descriptor that is opened read-only."
1712 msgstr ""
1713
1714 #. type: TP
1715 #: debian-trixie fedora-44 fedora-rawhide
1716 #, no-wrap
1717 msgid "B<F_WRLCK>"
1718 msgstr "B<F_WRLCK>"
1719
1720 #. type: Plain text
1721 #: debian-trixie fedora-44 fedora-rawhide
1722 msgid ""
1723 "Take out a write lease. This will cause the caller to be notified when the "
1724 "file is opened for reading or writing or is truncated. A write lease may be "
1725 "placed on a file only if there are no other open file descriptors for the "
1726 "file."
1727 msgstr ""
1728
1729 #. type: TP
1730 #: debian-trixie fedora-44 fedora-rawhide
1731 #, no-wrap
1732 msgid "B<F_UNLCK>"
1733 msgstr "B<F_UNLCK>"
1734
1735 #. type: Plain text
1736 #: debian-trixie fedora-44 fedora-rawhide
1737 msgid "Remove our lease from the file."
1738 msgstr ""
1739
1740 #. type: Plain text
1741 #: debian-trixie fedora-44 fedora-rawhide
1742 msgid ""
1743 "Leases are associated with an open file description (see B<open>(2)). This "
1744 "means that duplicate file descriptors (created by, for example, B<fork>(2) "
1745 "or B<dup>(2)) refer to the same lease, and this lease may be modified or "
1746 "released using any of these descriptors. Furthermore, the lease is released "
1747 "by either an explicit B<F_UNLCK> operation on any of these duplicate file "
1748 "descriptors, or when all such file descriptors have been closed."
1749 msgstr ""
1750
1751 #. type: Plain text
1752 #: debian-trixie fedora-44 fedora-rawhide
1753 msgid ""
1754 "Leases may be taken out only on regular files. An unprivileged process may "
1755 "take out a lease only on a file whose UID (owner) matches the filesystem UID "
1756 "of the process. A process with the B<CAP_LEASE> capability may take out "
1757 "leases on arbitrary files."
1758 msgstr ""
1759
1760 #. type: TP
1761 #: debian-trixie fedora-44 fedora-rawhide
1762 #, no-wrap
1763 msgid "B<F_GETLEASE> (I<void>)"
1764 msgstr "B<F_GETLEASE> (I<void>)"
1765
1766 #. type: Plain text
1767 #: debian-trixie fedora-44 fedora-rawhide
1768 msgid ""
1769 "Indicates what type of lease is associated with the file descriptor I<fd> by "
1770 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
1771 "respectively, a read lease , a write lease, or no lease. I<arg> is ignored."
1772 msgstr ""
1773
1774 #. type: Plain text
1775 #: debian-trixie fedora-44 fedora-rawhide
1776 msgid ""
1777 "When a process (the \"lease breaker\") performs an B<open>(2) or "
1778 "B<truncate>(2) that conflicts with a lease established via B<F_SETLEASE>, "
1779 "the system call is blocked by the kernel and the kernel notifies the lease "
1780 "holder by sending it a signal (B<SIGIO> by default). The lease holder "
1781 "should respond to receipt of this signal by doing whatever cleanup is "
1782 "required in preparation for the file to be accessed by another process "
1783 "(e.g., flushing cached buffers) and then either remove or downgrade its "
1784 "lease. A lease is removed by performing an B<F_SETLEASE> operation "
1785 "specifying I<arg> as B<F_UNLCK>. If the lease holder currently holds a "
1786 "write lease on the file, and the lease breaker is opening the file for "
1787 "reading, then it is sufficient for the lease holder to downgrade the lease "
1788 "to a read lease. This is done by performing an B<F_SETLEASE> operation "
1789 "specifying I<arg> as B<F_RDLCK>."
1790 msgstr ""
1791
1792 #. type: Plain text
1793 #: debian-trixie fedora-44 fedora-rawhide
1794 msgid ""
1795 "If the lease holder fails to downgrade or remove the lease within the number "
1796 "of seconds specified in I</proc/sys/fs/lease-break-time>, then the kernel "
1797 "forcibly removes or downgrades the lease holder's lease."
1798 msgstr ""
1799
1800 #. type: Plain text
1801 #: debian-trixie fedora-44 fedora-rawhide
1802 msgid ""
1803 "Once a lease break has been initiated, B<F_GETLEASE> returns the target "
1804 "lease type (either B<F_RDLCK> or B<F_UNLCK>, depending on what would be "
1805 "compatible with the lease breaker) until the lease holder voluntarily "
1806 "downgrades or removes the lease or the kernel forcibly does so after the "
1807 "lease break timer expires."
1808 msgstr ""
1809
1810 #. type: Plain text
1811 #: debian-trixie fedora-44 fedora-rawhide
1812 msgid ""
1813 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
1814 "assuming the lease breaker has not unblocked its system call, the kernel "
1815 "permits the lease breaker's system call to proceed."
1816 msgstr ""
1817
1818 #. type: Plain text
1819 #: debian-trixie fedora-44 fedora-rawhide
1820 msgid ""
1821 "If the lease breaker's blocked B<open>(2) or B<truncate>(2) is interrupted "
1822 "by a signal handler, then the system call fails with the error B<EINTR>, but "
1823 "the other steps still occur as described above. If the lease breaker is "
1824 "killed by a signal while blocked in B<open>(2) or B<truncate>(2), then the "
1825 "other steps still occur as described above. If the lease breaker specifies "
1826 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
1827 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
1828 "described above."
1829 msgstr ""
1830
1831 #. type: Plain text
1832 #: debian-trixie fedora-44 fedora-rawhide
1833 msgid ""
1834 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
1835 "be changed using the B<F_SETSIG> operation to B<fcntl>(). If a B<F_SETSIG> "
1836 "operation is performed (even one specifying B<SIGIO>), and the signal "
1837 "handler is established using B<SA_SIGINFO>, then the handler will receive a "
1838 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
1839 "this argument will hold the file descriptor of the leased file that has been "
1840 "accessed by another process. (This is useful if the caller holds leases "
1841 "against multiple files.)"
1842 msgstr ""
1843
1844 #. type: TP
1845 #: debian-trixie fedora-44 fedora-rawhide
1846 #, no-wrap
1847 msgid "B<F_NOTIFY> (I<int>)"
1848 msgstr "B<F_NOTIFY> (I<int>)"
1849
1850 #. type: Plain text
1851 #: debian-trixie fedora-44 fedora-rawhide
1852 msgid ""
1853 "(Linux 2.4 onward) Provide notification when the directory referred to by "
1854 "I<fd> or any of the files that it contains is changed. The events to be "
1855 "notified are specified in I<arg>, which is a bit mask specified by ORing "
1856 "together zero or more of the following bits:"
1857 msgstr ""
1858
1859 #. type: TP
1860 #: debian-trixie fedora-44 fedora-rawhide
1861 #, no-wrap
1862 msgid "B<DN_ACCESS>"
1863 msgstr "B<DN_ACCESS>"
1864
1865 #. type: Plain text
1866 #: debian-trixie fedora-44 fedora-rawhide
1867 msgid "A file was accessed (B<read>(2), B<pread>(2), B<readv>(2), and similar)"
1868 msgstr ""
1869
1870 #. type: TP
1871 #: debian-trixie fedora-44 fedora-rawhide
1872 #, no-wrap
1873 msgid "B<DN_MODIFY>"
1874 msgstr "B<DN_MODIFY>"
1875
1876 #. type: Plain text
1877 #: debian-trixie fedora-44 fedora-rawhide
1878 msgid ""
1879 "A file was modified (B<write>(2), B<pwrite>(2), B<writev>(2), "
1880 "B<truncate>(2), B<ftruncate>(2), and similar)."
1881 msgstr ""
1882
1883 #. type: TP
1884 #: debian-trixie fedora-44 fedora-rawhide
1885 #, no-wrap
1886 msgid "B<DN_CREATE>"
1887 msgstr "B<DN_CREATE>"
1888
1889 #. type: Plain text
1890 #: debian-trixie fedora-44 fedora-rawhide
1891 msgid ""
1892 "A file was created (B<open>(2), B<creat>(2), B<mknod>(2), B<mkdir>(2), "
1893 "B<link>(2), B<symlink>(2), B<rename>(2) into this directory)."
1894 msgstr ""
1895
1896 #. type: TP
1897 #: debian-trixie fedora-44 fedora-rawhide
1898 #, no-wrap
1899 msgid "B<DN_DELETE>"
1900 msgstr "B<DN_DELETE>"
1901
1902 #. type: Plain text
1903 #: debian-trixie fedora-44 fedora-rawhide
1904 msgid ""
1905 "A file was unlinked (B<unlink>(2), B<rename>(2) to another directory, "
1906 "B<rmdir>(2))."
1907 msgstr ""
1908
1909 #. type: TP
1910 #: debian-trixie fedora-44 fedora-rawhide
1911 #, no-wrap
1912 msgid "B<DN_RENAME>"
1913 msgstr "B<DN_RENAME>"
1914
1915 #. type: Plain text
1916 #: debian-trixie fedora-44 fedora-rawhide
1917 msgid "A file was renamed within this directory (B<rename>(2))."
1918 msgstr ""
1919
1920 #. type: TP
1921 #: debian-trixie fedora-44 fedora-rawhide
1922 #, no-wrap
1923 msgid "B<DN_ATTRIB>"
1924 msgstr "B<DN_ATTRIB>"
1925
1926 #. type: Plain text
1927 #: debian-trixie fedora-44 fedora-rawhide
1928 msgid ""
1929 "The attributes of a file were changed (B<chown>(2), B<chmod>(2), "
1930 "B<utime>(2), B<utimensat>(2), and similar)."
1931 msgstr ""
1932
1933 #. type: Plain text
1934 #: debian-trixie fedora-44 fedora-rawhide
1935 msgid ""
1936 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
1937 "must be defined before including I<any> header files.)"
1938 msgstr ""
1939
1940 #. type: Plain text
1941 #: debian-trixie fedora-44 fedora-rawhide
1942 msgid ""
1943 "Directory notifications are normally \"one-shot\", and the application must "
1944 "reregister to receive further notifications. Alternatively, if "
1945 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
1946 "effect until explicitly removed."
1947 msgstr ""
1948
1949 #. The following does seem a poor API-design choice...
1950 #. type: Plain text
1951 #: debian-trixie fedora-44 fedora-rawhide
1952 msgid ""
1953 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
1954 "being added to the set already monitored. To disable notification of all "
1955 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
1956 msgstr ""
1957
1958 #. type: Plain text
1959 #: debian-trixie fedora-44 fedora-rawhide
1960 msgid ""
1961 "Notification occurs via delivery of a signal. The default signal is "
1962 "B<SIGIO>, but this can be changed using the B<F_SETSIG> operation to "
1963 "B<fcntl>(). (Note that B<SIGIO> is one of the nonqueuing standard signals; "
1964 "switching to the use of a real-time signal means that multiple notifications "
1965 "can be queued to the process.) In the latter case, the signal handler "
1966 "receives a I<siginfo_t> structure as its second argument (if the handler was "
1967 "established using B<SA_SIGINFO>) and the I<si_fd> field of this structure "
1968 "contains the file descriptor which generated the notification (useful when "
1969 "establishing notification on multiple directories)."
1970 msgstr ""
1971
1972 #. type: Plain text
1973 #: debian-trixie fedora-44 fedora-rawhide
1974 msgid ""
1975 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
1976 "notification, so that multiple notifications can be queued."
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: debian-trixie fedora-44 fedora-rawhide
1981 msgid ""
1982 "B<NOTE:> New applications should use the I<inotify> interface (available "
1983 "since Linux 2.6.13), which provides a much superior interface for obtaining "
1984 "notifications of filesystem events. See B<inotify>(7)."
1985 msgstr ""
1986
1987 #. type: TP
1988 #: debian-trixie fedora-44 fedora-rawhide
1989 #, no-wrap
1990 msgid "B<F_SETPIPE_SZ> (I<int>; since Linux 2.6.35)"
1991 msgstr ""
1992
1993 #. type: Plain text
1994 #: debian-trixie fedora-44 fedora-rawhide
1995 msgid ""
1996 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
1997 "bytes. An unprivileged process can adjust the pipe capacity to any value "
1998 "between the system page size and the limit defined in I</proc/sys/fs/pipe-"
1999 "max-size> (see B<proc>(5)). Attempts to set the pipe capacity below the "
2000 "page size are silently rounded up to the page size. Attempts by an "
2001 "unprivileged process to set the pipe capacity above the limit in I</proc/sys/"
2002 "fs/pipe-max-size> yield the error B<EPERM>; a privileged process "
2003 "(B<CAP_SYS_RESOURCE>) can override the limit."
2004 msgstr ""
2005
2006 #. type: Plain text
2007 #: debian-trixie fedora-44 fedora-rawhide
2008 msgid ""
2009 "When allocating the buffer for the pipe, the kernel may use a capacity "
2010 "larger than I<arg>, if that is convenient for the implementation. (In the "
2011 "current implementation, the allocation is the next higher power-of-two page-"
2012 "size multiple of the requested size.) The actual capacity (in bytes) that "
2013 "is set is returned as the function result."
2014 msgstr ""
2015
2016 #. type: Plain text
2017 #: debian-trixie fedora-44 fedora-rawhide
2018 msgid ""
2019 "Attempting to set the pipe capacity smaller than the amount of buffer space "
2020 "currently used to store data produces the error B<EBUSY>."
2021 msgstr ""
2022
2023 #. type: Plain text
2024 #: debian-trixie fedora-44 fedora-rawhide
2025 msgid ""
2026 "Note that because of the way the pages of the pipe buffer are employed when "
2027 "data is written to the pipe, the number of bytes that can be written may be "
2028 "less than the nominal size, depending on the size of the writes."
2029 msgstr ""
2030
2031 #. type: TP
2032 #: debian-trixie fedora-44 fedora-rawhide
2033 #, no-wrap
2034 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
2035 msgstr ""
2036
2037 #. type: Plain text
2038 #: debian-trixie fedora-44 fedora-rawhide
2039 msgid ""
2040 "Return (as the function result) the capacity of the pipe referred to by "
2041 "I<fd>."
2042 msgstr ""
2043
2044 #. type: Plain text
2045 #: debian-trixie fedora-44 fedora-rawhide
2046 msgid ""
2047 "File seals limit the set of allowed operations on a given file. For each "
2048 "seal that is set on a file, a specific set of operations will fail with "
2049 "B<EPERM> on this file from now on. The file is said to be sealed. The "
2050 "default set of seals depends on the type of the underlying file and "
2051 "filesystem. For an overview of file sealing, a discussion of its purpose, "
2052 "and some code examples, see B<memfd_create>(2)."
2053 msgstr ""
2054
2055 #. type: Plain text
2056 #: debian-trixie fedora-44 fedora-rawhide
2057 msgid ""
2058 "Currently, file seals can be applied only to a file descriptor returned by "
2059 "B<memfd_create>(2) (if the B<MFD_ALLOW_SEALING> was employed). On other "
2060 "filesystems, all B<fcntl>() operations that operate on seals will return "
2061 "B<EINVAL>."
2062 msgstr ""
2063
2064 #. type: Plain text
2065 #: debian-trixie fedora-44 fedora-rawhide
2066 msgid ""
2067 "Seals are a property of an inode. Thus, all open file descriptors referring "
2068 "to the same inode share the same set of seals. Furthermore, seals can never "
2069 "be removed, only added."
2070 msgstr ""
2071
2072 #. type: TP
2073 #: debian-trixie fedora-44 fedora-rawhide
2074 #, no-wrap
2075 msgid "B<F_ADD_SEALS> (I<int>; since Linux 3.17)"
2076 msgstr ""
2077
2078 #. type: Plain text
2079 #: debian-trixie fedora-44 fedora-rawhide
2080 msgid ""
2081 "Add the seals given in the bit-mask argument I<arg> to the set of seals of "
2082 "the inode referred to by the file descriptor I<fd>. Seals cannot be removed "
2083 "again. Once this call succeeds, the seals are enforced by the kernel "
2084 "immediately. If the current set of seals includes B<F_SEAL_SEAL> (see "
2085 "below), then this call will be rejected with B<EPERM>. Adding a seal that "
2086 "is already set is a no-op, in case B<F_SEAL_SEAL> is not set already. In "
2087 "order to place a seal, the file descriptor I<fd> must be writable."
2088 msgstr ""
2089
2090 #. type: TP
2091 #: debian-trixie fedora-44 fedora-rawhide
2092 #, no-wrap
2093 msgid "B<F_GET_SEALS> (I<void>; since Linux 3.17)"
2094 msgstr ""
2095
2096 #. type: Plain text
2097 #: debian-trixie fedora-44 fedora-rawhide
2098 msgid ""
2099 "Return (as the function result) the current set of seals of the inode "
2100 "referred to by I<fd>. If no seals are set, 0 is returned. If the file does "
2101 "not support sealing, -1 is returned and I<errno> is set to B<EINVAL>."
2102 msgstr ""
2103
2104 #. type: Plain text
2105 #: debian-trixie fedora-44 fedora-rawhide
2106 #, fuzzy
2107 #| msgid "The following options are available:"
2108 msgid "The following seals are available:"
2109 msgstr "사용할 수 있는 옵션은 다음과 같다:"
2110
2111 #. type: TP
2112 #: debian-trixie fedora-44 fedora-rawhide
2113 #, no-wrap
2114 msgid "B<F_SEAL_SEAL>"
2115 msgstr "B<F_SEAL_SEAL>"
2116
2117 #. type: Plain text
2118 #: debian-trixie fedora-44 fedora-rawhide
2119 msgid ""
2120 "If this seal is set, any further call to B<fcntl>() with B<F_ADD_SEALS> "
2121 "fails with the error B<EPERM>. Therefore, this seal prevents any "
2122 "modifications to the set of seals itself. If the initial set of seals of a "
2123 "file includes B<F_SEAL_SEAL>, then this effectively causes the set of seals "
2124 "to be constant and locked."
2125 msgstr ""
2126
2127 #. type: TP
2128 #: debian-trixie fedora-44 fedora-rawhide
2129 #, no-wrap
2130 msgid "B<F_SEAL_SHRINK>"
2131 msgstr "B<F_SEAL_SHRINK>"
2132
2133 #. type: Plain text
2134 #: debian-trixie fedora-44 fedora-rawhide
2135 msgid ""
2136 "If this seal is set, the file in question cannot be reduced in size. This "
2137 "affects B<open>(2) with the B<O_TRUNC> flag as well as B<truncate>(2) and "
2138 "B<ftruncate>(2). Those calls fail with B<EPERM> if you try to shrink the "
2139 "file in question. Increasing the file size is still possible."
2140 msgstr ""
2141
2142 #. type: TP
2143 #: debian-trixie fedora-44 fedora-rawhide
2144 #, no-wrap
2145 msgid "B<F_SEAL_GROW>"
2146 msgstr "B<F_SEAL_GROW>"
2147
2148 #. type: Plain text
2149 #: debian-trixie fedora-44 fedora-rawhide
2150 msgid ""
2151 "If this seal is set, the size of the file in question cannot be increased. "
2152 "This affects B<write>(2) beyond the end of the file, B<truncate>(2), "
2153 "B<ftruncate>(2), and B<fallocate>(2). These calls fail with B<EPERM> if you "
2154 "use them to increase the file size. If you keep the size or shrink it, "
2155 "those calls still work as expected."
2156 msgstr ""
2157
2158 #. type: TP
2159 #: debian-trixie fedora-44 fedora-rawhide
2160 #, no-wrap
2161 msgid "B<F_SEAL_WRITE>"
2162 msgstr "B<F_SEAL_WRITE>"
2163
2164 #. One or more other seals are typically used with F_SEAL_WRITE
2165 #. because, given a file with the F_SEAL_WRITE seal set, then,
2166 #. while it would no longer be possible to (say) write zeros into
2167 #. the last 100 bytes of a file, it would still be possible
2168 #. to (say) shrink the file by 100 bytes using ftruncate(), and
2169 #. then increase the file size by 100 bytes, which would have
2170 #. the effect of replacing the last hundred bytes by zeros.
2171 #. type: Plain text
2172 #: debian-trixie fedora-44 fedora-rawhide
2173 msgid ""
2174 "If this seal is set, you cannot modify the contents of the file. Note that "
2175 "shrinking or growing the size of the file is still possible and allowed. "
2176 "Thus, this seal is normally used in combination with one of the other "
2177 "seals. This seal affects B<write>(2) and B<fallocate>(2) (only in "
2178 "combination with the B<FALLOC_FL_PUNCH_HOLE> flag). Those calls fail with "
2179 "B<EPERM> if this seal is set. Furthermore, trying to create new shared, "
2180 "writable memory-mappings via B<mmap>(2) will also fail with B<EPERM>."
2181 msgstr ""
2182
2183 #. type: Plain text
2184 #: debian-trixie fedora-44 fedora-rawhide
2185 msgid ""
2186 "Using the B<F_ADD_SEALS> operation to set the B<F_SEAL_WRITE> seal fails "
2187 "with B<EBUSY> if any writable, shared mapping exists. Such mappings must be "
2188 "unmapped before you can add this seal. Furthermore, if there are any "
2189 "asynchronous I/O operations (B<io_submit>(2)) pending on the file, all "
2190 "outstanding writes will be discarded."
2191 msgstr ""
2192
2193 #. type: TP
2194 #: debian-trixie fedora-44 fedora-rawhide
2195 #, no-wrap
2196 msgid "B<F_SEAL_FUTURE_WRITE> (since Linux 5.1)"
2197 msgstr ""
2198
2199 #. type: Plain text
2200 #: debian-trixie fedora-44 fedora-rawhide
2201 msgid ""
2202 "The effect of this seal is similar to B<F_SEAL_WRITE>, but the contents of "
2203 "the file can still be modified via shared writable mappings that were "
2204 "created prior to the seal being set. Any attempt to create a new writable "
2205 "mapping on the file via B<mmap>(2) will fail with B<EPERM>. Likewise, an "
2206 "attempt to write to the file via B<write>(2) will fail with B<EPERM>."
2207 msgstr ""
2208
2209 #. type: Plain text
2210 #: debian-trixie fedora-44 fedora-rawhide
2211 msgid ""
2212 "Using this seal, one process can create a memory buffer that it can continue "
2213 "to modify while sharing that buffer on a \"read-only\" basis with other "
2214 "processes."
2215 msgstr ""
2216
2217 #. type: Plain text
2218 #: debian-trixie fedora-44 fedora-rawhide
2219 msgid ""
2220 "Write lifetime hints can be used to inform the kernel about the relative "
2221 "expected lifetime of writes on a given inode or via a particular open file "
2222 "description. (See B<open>(2) for an explanation of open file "
2223 "descriptions.) In this context, the term \"write lifetime\" means the "
2224 "expected time the data will live on media, before being overwritten or "
2225 "erased."
2226 msgstr ""
2227
2228 #. type: Plain text
2229 #: debian-trixie fedora-44 fedora-rawhide
2230 msgid ""
2231 "An application may use the different hint values specified below to separate "
2232 "writes into different write classes, so that multiple users or applications "
2233 "running on a single storage back-end can aggregate their I/O patterns in a "
2234 "consistent manner. However, there are no functional semantics implied by "
2235 "these flags, and different I/O classes can use the write lifetime hints in "
2236 "arbitrary ways, so long as the hints are used consistently."
2237 msgstr ""
2238
2239 #. type: Plain text
2240 #: debian-trixie fedora-44 fedora-rawhide
2241 msgid "The following operations can be applied to the file descriptor, I<fd>:"
2242 msgstr ""
2243
2244 #. type: TP
2245 #: debian-trixie fedora-44 fedora-rawhide
2246 #, no-wrap
2247 msgid "B<F_GET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2248 msgstr ""
2249
2250 #. type: Plain text
2251 #: debian-trixie fedora-44 fedora-rawhide
2252 msgid ""
2253 "Returns the value of the read/write hint associated with the underlying "
2254 "inode referred to by I<fd>."
2255 msgstr ""
2256
2257 #. type: TP
2258 #: debian-trixie fedora-44 fedora-rawhide
2259 #, no-wrap
2260 msgid "B<F_SET_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2261 msgstr ""
2262
2263 #. type: Plain text
2264 #: debian-trixie fedora-44 fedora-rawhide
2265 msgid ""
2266 "Sets the read/write hint value associated with the underlying inode referred "
2267 "to by I<fd>. This hint persists until either it is explicitly modified or "
2268 "the underlying filesystem is unmounted."
2269 msgstr ""
2270
2271 #. type: TP
2272 #: debian-trixie fedora-44 fedora-rawhide
2273 #, no-wrap
2274 msgid "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2275 msgstr ""
2276
2277 #. type: Plain text
2278 #: debian-trixie fedora-44 fedora-rawhide
2279 msgid ""
2280 "Returns the value of the read/write hint associated with the open file "
2281 "description referred to by I<fd>."
2282 msgstr ""
2283
2284 #. type: TP
2285 #: debian-trixie fedora-44 fedora-rawhide
2286 #, no-wrap
2287 msgid "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)"
2288 msgstr ""
2289
2290 #. type: Plain text
2291 #: debian-trixie fedora-44 fedora-rawhide
2292 msgid ""
2293 "Sets the read/write hint value associated with the open file description "
2294 "referred to by I<fd>."
2295 msgstr ""
2296
2297 #. type: Plain text
2298 #: debian-trixie fedora-44 fedora-rawhide
2299 msgid ""
2300 "If an open file description has not been assigned a read/write hint, then it "
2301 "shall use the value assigned to the inode, if any."
2302 msgstr ""
2303
2304 #. type: Plain text
2305 #: debian-trixie fedora-44 fedora-rawhide
2306 msgid "The following read/write hints are valid since Linux 4.13:"
2307 msgstr ""
2308
2309 #. type: TP
2310 #: debian-trixie fedora-44 fedora-rawhide
2311 #, no-wrap
2312 msgid "B<RWH_WRITE_LIFE_NOT_SET>"
2313 msgstr "B<RWH_WRITE_LIFE_NOT_SET>"
2314
2315 #. type: Plain text
2316 #: debian-trixie fedora-44 fedora-rawhide
2317 msgid "No specific hint has been set. This is the default value."
2318 msgstr ""
2319
2320 #. type: TP
2321 #: debian-trixie fedora-44 fedora-rawhide
2322 #, no-wrap
2323 msgid "B<RWH_WRITE_LIFE_NONE>"
2324 msgstr "B<RWH_WRITE_LIFE_NONE>"
2325
2326 #. type: Plain text
2327 #: debian-trixie fedora-44 fedora-rawhide
2328 msgid "No specific write lifetime is associated with this file or inode."
2329 msgstr ""
2330
2331 #. type: TP
2332 #: debian-trixie fedora-44 fedora-rawhide
2333 #, no-wrap
2334 msgid "B<RWH_WRITE_LIFE_SHORT>"
2335 msgstr "B<RWH_WRITE_LIFE_SHORT>"
2336
2337 #. type: Plain text
2338 #: debian-trixie fedora-44 fedora-rawhide
2339 msgid ""
2340 "Data written to this inode or via this open file description is expected to "
2341 "have a short lifetime."
2342 msgstr ""
2343
2344 #. type: TP
2345 #: debian-trixie fedora-44 fedora-rawhide
2346 #, no-wrap
2347 msgid "B<RWH_WRITE_LIFE_MEDIUM>"
2348 msgstr "B<RWH_WRITE_LIFE_MEDIUM>"
2349
2350 #. type: Plain text
2351 #: debian-trixie fedora-44 fedora-rawhide
2352 msgid ""
2353 "Data written to this inode or via this open file description is expected to "
2354 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_SHORT>."
2355 msgstr ""
2356
2357 #. type: TP
2358 #: debian-trixie fedora-44 fedora-rawhide
2359 #, no-wrap
2360 msgid "B<RWH_WRITE_LIFE_LONG>"
2361 msgstr "B<RWH_WRITE_LIFE_LONG>"
2362
2363 #. type: Plain text
2364 #: debian-trixie fedora-44 fedora-rawhide
2365 msgid ""
2366 "Data written to this inode or via this open file description is expected to "
2367 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_MEDIUM>."
2368 msgstr ""
2369
2370 #. type: TP
2371 #: debian-trixie fedora-44 fedora-rawhide
2372 #, no-wrap
2373 msgid "B<RWH_WRITE_LIFE_EXTREME>"
2374 msgstr "B<RWH_WRITE_LIFE_EXTREME>"
2375
2376 #. type: Plain text
2377 #: debian-trixie fedora-44 fedora-rawhide
2378 msgid ""
2379 "Data written to this inode or via this open file description is expected to "
2380 "have a lifetime longer than data written with B<RWH_WRITE_LIFE_LONG>."
2381 msgstr ""
2382
2383 #. type: Plain text
2384 #: debian-trixie fedora-44 fedora-rawhide
2385 msgid ""
2386 "All the write-specific hints are relative to each other, and no individual "
2387 "absolute meaning should be attributed to them."
2388 msgstr ""
2389
2390 #. type: Plain text
2391 #: debian-trixie fedora-44 fedora-rawhide
2392 msgid "For a successful call, the return value depends on the operation:"
2393 msgstr "성공적인 호출에 대하여, 리턴 값은 연산에 의존적이다."
2394
2395 #. type: TP
2396 #: debian-trixie fedora-44 fedora-rawhide
2397 #, no-wrap
2398 msgid "B<F_DUPFD>"
2399 msgstr "B<F_DUPFD>"
2400
2401 #. type: Plain text
2402 #: debian-trixie fedora-44 fedora-rawhide
2403 #, fuzzy
2404 #| msgid "The new descriptor."
2405 msgid "The new file descriptor."
2406 msgstr "새로운 기술자"
2407
2408 #. type: TP
2409 #: debian-trixie fedora-44 fedora-rawhide
2410 #, no-wrap
2411 msgid "B<F_GETFD>"
2412 msgstr "B<F_GETFD>"
2413
2414 #. type: Plain text
2415 #: debian-trixie fedora-44 fedora-rawhide
2416 #, fuzzy
2417 #| msgid "Value of descriptor owner."
2418 msgid "Value of file descriptor flags."
2419 msgstr "기술자 소유자의 값"
2420
2421 #. type: TP
2422 #: debian-trixie fedora-44 fedora-rawhide
2423 #, no-wrap
2424 msgid "B<F_GETFL>"
2425 msgstr "B<F_GETFL>"
2426
2427 #. type: Plain text
2428 #: debian-trixie fedora-44 fedora-rawhide
2429 #, fuzzy
2430 #| msgid "Value of flag."
2431 msgid "Value of file status flags."
2432 msgstr "플래그의 값"
2433
2434 #. type: TP
2435 #: debian-trixie fedora-44 fedora-rawhide
2436 #, no-wrap
2437 msgid "B<F_GETLEASE>"
2438 msgstr "B<F_GETLEASE>"
2439
2440 #. type: Plain text
2441 #: debian-trixie fedora-44 fedora-rawhide
2442 #, fuzzy
2443 #| msgid "I<fd> is not a valid open file descriptor."
2444 msgid "Type of lease held on file descriptor."
2445 msgstr "I<fd> 는 유효한 열려진 파일 기술자가 아니다."
2446
2447 #. type: TP
2448 #: debian-trixie fedora-44 fedora-rawhide
2449 #, no-wrap
2450 msgid "B<F_GETOWN>"
2451 msgstr "B<F_GETOWN>"
2452
2453 #. type: Plain text
2454 #: debian-trixie fedora-44 fedora-rawhide
2455 #, fuzzy
2456 #| msgid "Value of descriptor owner."
2457 msgid "Value of file descriptor owner."
2458 msgstr "기술자 소유자의 값"
2459
2460 #. type: TP
2461 #: debian-trixie fedora-44 fedora-rawhide
2462 #, no-wrap
2463 msgid "B<F_GETSIG>"
2464 msgstr "B<F_GETSIG>"
2465
2466 #. type: Plain text
2467 #: debian-trixie fedora-44 fedora-rawhide
2468 #, fuzzy
2469 #| msgid ""
2470 #| "Value of signal sent when read or write becomes possible, or zero for "
2471 #| "traditional SIGIO behaviour."
2472 msgid ""
2473 "Value of signal sent when read or write becomes possible, or zero for "
2474 "traditional B<SIGIO> behavior."
2475 msgstr ""
2476 "읽기 또는 쓰기가 가능해졌을때 전송된 시그널의 값이나, 전통적인 SIGIO 행위에 "
2477 "대한 zero."
2478
2479 #. type: TP
2480 #: debian-trixie fedora-44 fedora-rawhide
2481 #, fuzzy, no-wrap
2482 #| msgid "B<F_GETLEASE>"
2483 msgid "B<F_GETPIPE_SZ>"
2484 msgstr "B<F_GETLEASE>"
2485
2486 #. type: TQ
2487 #: debian-trixie fedora-44 fedora-rawhide
2488 #, fuzzy, no-wrap
2489 #| msgid "B<EPIPE>"
2490 msgid "B<F_SETPIPE_SZ>"
2491 msgstr "B<EPIPE>"
2492
2493 #. type: Plain text
2494 #: debian-trixie fedora-44 fedora-rawhide
2495 msgid "The pipe capacity."
2496 msgstr ""
2497
2498 #. type: TP
2499 #: debian-trixie fedora-44 fedora-rawhide
2500 #, no-wrap
2501 msgid "B<F_GET_SEALS>"
2502 msgstr "B<F_GET_SEALS>"
2503
2504 #. type: Plain text
2505 #: debian-trixie fedora-44 fedora-rawhide
2506 msgid ""
2507 "A bit mask identifying the seals that have been set for the inode referred "
2508 "to by I<fd>."
2509 msgstr ""
2510
2511 #. type: TP
2512 #: debian-trixie fedora-44 fedora-rawhide
2513 #, fuzzy, no-wrap
2514 #| msgid "All other commands"
2515 msgid "All other operations"
2516 msgstr "다른 모든 명령어"
2517
2518 #. type: Plain text
2519 #: debian-trixie fedora-44 fedora-rawhide
2520 msgid "Zero."
2521 msgstr ""
2522
2523 #. type: Plain text
2524 #: debian-trixie fedora-44 fedora-rawhide
2525 msgid ""
2526 "I<op> is B<F_SETLK> or B<F_SETLKW> and the file descriptor open mode doesn't "
2527 "match with the type of lock requested."
2528 msgstr ""
2529
2530 #. type: TP
2531 #: debian-trixie fedora-44 fedora-rawhide
2532 #, no-wrap
2533 msgid "B<EBUSY>"
2534 msgstr "B<EBUSY>"
2535
2536 #. type: Plain text
2537 #: debian-trixie fedora-44 fedora-rawhide
2538 msgid ""
2539 "I<op> is B<F_SETPIPE_SZ> and the new pipe capacity specified in I<arg> is "
2540 "smaller than the amount of buffer space currently used to store data in the "
2541 "pipe."
2542 msgstr ""
2543
2544 #. type: Plain text
2545 #: debian-trixie fedora-44 fedora-rawhide
2546 msgid ""
2547 "I<op> is B<F_ADD_SEALS>, I<arg> includes B<F_SEAL_WRITE>, and there exists a "
2548 "writable, shared mapping on the file referred to by I<fd>."
2549 msgstr ""
2550
2551 #. type: TP
2552 #: debian-trixie fedora-44 fedora-rawhide
2553 #, no-wrap
2554 msgid "B<EDEADLK>"
2555 msgstr "B<EDEADLK>"
2556
2557 #. type: Plain text
2558 #: debian-trixie fedora-44 fedora-rawhide
2559 #, fuzzy
2560 #| msgid ""
2561 #| "It was detected that the specified B<F_SETLKW> command would cause a "
2562 #| "deadlock."
2563 msgid ""
2564 "It was detected that the specified B<F_SETLKW> operation would cause a "
2565 "deadlock."
2566 msgstr "지정된 B<F_SETLKW> 명령은 Deadlock을 초래할 것이라는 것이 감지되었다."
2567
2568 #. type: TP
2569 #: debian-trixie fedora-44 fedora-rawhide
2570 #, no-wrap
2571 msgid "B<EFAULT>"
2572 msgstr "B<EFAULT>"
2573
2574 #. type: Plain text
2575 #: debian-trixie fedora-44 fedora-rawhide
2576 msgid "I<lock> is outside your accessible address space."
2577 msgstr "I<lock>은 여러분이 접근할 수 있는 주소 공간의 바깥에 있다."
2578
2579 #. type: TP
2580 #: debian-trixie fedora-44 fedora-rawhide
2581 #, no-wrap
2582 msgid "B<EINTR>"
2583 msgstr "B<EINTR>"
2584
2585 #. type: Plain text
2586 #: debian-trixie fedora-44 fedora-rawhide
2587 msgid ""
2588 "I<op> is B<F_SETLKW> or B<F_OFD_SETLKW> and the operation was interrupted by "
2589 "a signal; see B<signal>(7)."
2590 msgstr ""
2591
2592 #. type: Plain text
2593 #: debian-trixie fedora-44 fedora-rawhide
2594 #, fuzzy
2595 #| msgid ""
2596 #| "For B<F_SETLKW>, the command was interrupted by a signal. For B<F_GETLK> "
2597 #| "and B<F_SETLK>, the command was interrupted by a signal before the lock "
2598 #| "was checked or acquired. Most likely when locking a remote file (e.g. "
2599 #| "locking over NFS), but can sometimes happen locally."
2600 msgid ""
2601 "I<op> is B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK>, or B<F_OFD_SETLK>, and the "
2602 "operation was interrupted by a signal before the lock was checked or "
2603 "acquired. Most likely when locking a remote file (e.g., locking over NFS), "
2604 "but can sometimes happen locally."
2605 msgstr ""
2606 "B<F_SETLKW>에 대하여, 명령은 시그널에 의해 인터럽트되었다. B<F_GETLK>과 "
2607 "B<F_SETLK>에 대하여, 명령은 잠김이 체크되거나, 이루어지기 전에 시그널에 의해 "
2608 "인터럽트되었다. 원격 파일을 잠그는(NFS 잠금) 것은 보통 로컬에서 발생한다."
2609
2610 #. type: Plain text
2611 #: debian-trixie fedora-44 fedora-rawhide
2612 msgid ""
2613 "I<op> is B<F_ADD_SEALS> and I<arg> includes an unrecognized sealing bit."
2614 msgstr ""
2615
2616 #. type: Plain text
2617 #: debian-trixie fedora-44 fedora-rawhide
2618 msgid ""
2619 "I<op> is B<F_ADD_SEALS> or B<F_GET_SEALS> and the filesystem containing the "
2620 "inode referred to by I<fd> does not support sealing."
2621 msgstr ""
2622
2623 #. type: Plain text
2624 #: debian-trixie fedora-44 fedora-rawhide
2625 #, fuzzy
2626 #| msgid ""
2627 #| "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum "
2628 #| "allowable value. For B<F_SETSIG>, I<arg> is not an allowable signal "
2629 #| "number."
2630 msgid ""
2631 "I<op> is B<F_DUPFD> and I<arg> is negative or is greater than the maximum "
2632 "allowable value (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
2633 msgstr ""
2634 "B<F_DUPFD>에 대하여, I<arg>은 음수 값이거나, 허용된 최대값보다는 크다. "
2635 "B<F_SETSIG>에 대하여, I<arg>은 허용될 수 있는 시그널 넘버가 아니다."
2636
2637 #. type: Plain text
2638 #: debian-trixie fedora-44 fedora-rawhide
2639 msgid "I<op> is B<F_SETSIG> and I<arg> is not an allowable signal number."
2640 msgstr ""
2641
2642 #. type: Plain text
2643 #: debian-trixie fedora-44 fedora-rawhide
2644 msgid ""
2645 "I<op> is B<F_OFD_SETLK>, B<F_OFD_SETLKW>, or B<F_OFD_GETLK>, and I<l_pid> "
2646 "was not specified as zero."
2647 msgstr ""
2648
2649 #. type: TP
2650 #: debian-trixie fedora-44 fedora-rawhide
2651 #, no-wrap
2652 msgid "B<EMFILE>"
2653 msgstr "B<EMFILE>"
2654
2655 #. type: Plain text
2656 #: debian-trixie fedora-44 fedora-rawhide
2657 #, fuzzy
2658 #| msgid ""
2659 #| "For B<F_DUPFD>, the process already has the maximum number of file "
2660 #| "descriptors open."
2661 msgid ""
2662 "I<op> is B<F_DUPFD> and the per-process limit on the number of open file "
2663 "descriptors has been reached."
2664 msgstr ""
2665 "B<F_DUPFD>에 대하여, 프로세스는 이미 파일 기술자들의 최대 넘버가 열리도록 한"
2666 "다."
2667
2668 #. type: TP
2669 #: debian-trixie fedora-44 fedora-rawhide
2670 #, no-wrap
2671 msgid "B<ENOLCK>"
2672 msgstr "B<ENOLCK>"
2673
2674 #. type: Plain text
2675 #: debian-trixie fedora-44 fedora-rawhide
2676 #, fuzzy
2677 #| msgid ""
2678 #| "Too many segment locks open, lock table is full, or a remote locking "
2679 #| "protocol failed (e.g. locking over NFS)."
2680 msgid ""
2681 "Too many segment locks open, lock table is full, or a remote locking "
2682 "protocol failed (e.g., locking over NFS)."
2683 msgstr ""
2684 "너무나 많은 시그먼트 잠금이 열렸고, 잠금 테이블은 꽉찼거나, 원격 잠금 프로토"
2685 "콜이 실패하였다. (NFS를 통해 잠그기)"
2686
2687 #. type: TP
2688 #: debian-trixie fedora-44 fedora-rawhide
2689 #, no-wrap
2690 msgid "B<ENOTDIR>"
2691 msgstr "B<ENOTDIR>"
2692
2693 #. type: Plain text
2694 #: debian-trixie fedora-44 fedora-rawhide
2695 #, fuzzy
2696 #| msgid "File descriptor does not refer to a directory."
2697 msgid ""
2698 "B<F_NOTIFY> was specified in I<op>, but I<fd> does not refer to a directory."
2699 msgstr "파일 기술자가 디렉토리를 가리키지 않는다."
2700
2701 #. type: TP
2702 #: debian-trixie fedora-44 fedora-rawhide
2703 #, no-wrap
2704 msgid "B<EPERM>"
2705 msgstr "B<EPERM>"
2706
2707 #. type: Plain text
2708 #: debian-trixie fedora-44 fedora-rawhide
2709 msgid ""
2710 "I<op> is B<F_SETPIPE_SZ> and the soft or hard user pipe limit has been "
2711 "reached; see B<pipe>(7)."
2712 msgstr ""
2713
2714 #. type: Plain text
2715 #: debian-trixie fedora-44 fedora-rawhide
2716 msgid ""
2717 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
2718 "attribute set."
2719 msgstr ""
2720 "추가 속성이 지정되도록 하는 파일에서 B<O_APPEND> 플래그를 소거하고자 함"
2721
2722 #. type: Plain text
2723 #: debian-trixie fedora-44 fedora-rawhide
2724 msgid ""
2725 "I<op> was B<F_ADD_SEALS>, but I<fd> was not open for writing or the current "
2726 "set of seals on the file already includes B<F_SEAL_SEAL>."
2727 msgstr ""
2728
2729 #. type: Plain text
2730 #: debian-trixie fedora-44 fedora-rawhide
2731 msgid "POSIX.1-2008."
2732 msgstr "POSIX.1-2008."
2733
2734 #. .P
2735 #. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
2736 #. type: Plain text
2737 #: debian-trixie fedora-44 fedora-rawhide
2738 msgid ""
2739 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
2740 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
2741 "Linux-specific. (Define the B<_GNU_SOURCE> macro to obtain these "
2742 "definitions.)"
2743 msgstr ""
2744
2745 #. type: Plain text
2746 #: debian-trixie fedora-44 fedora-rawhide
2747 msgid ""
2748 "B<F_OFD_SETLK>, B<F_OFD_SETLKW>, and B<F_OFD_GETLK> are Linux-specific (and "
2749 "one must define B<_GNU_SOURCE> to obtain their definitions), but work is "
2750 "being done to have them included in the next version of POSIX.1."
2751 msgstr ""
2752
2753 #. FIXME . Once glibc adds support, add a note about FTM requirements
2754 #. type: Plain text
2755 #: debian-trixie fedora-44 fedora-rawhide
2756 msgid "B<F_ADD_SEALS> and B<F_GET_SEALS> are Linux-specific."
2757 msgstr ""
2758
2759 #. type: Plain text
2760 #: debian-trixie fedora-44 fedora-rawhide
2761 msgid "SVr4, 4.3BSD, POSIX.1-2001."
2762 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
2763
2764 #. type: Plain text
2765 #: debian-trixie fedora-44 fedora-rawhide
2766 msgid ""
2767 "Only the operations B<F_DUPFD>, B<F_GETFD>, B<F_SETFD>, B<F_GETFL>, "
2768 "B<F_SETFL>, B<F_GETLK>, B<F_SETLK>, and B<F_SETLKW> are specified in "
2769 "POSIX.1-2001."
2770 msgstr ""
2771
2772 #. .BR _BSD_SOURCE ,
2773 #. or
2774 #. type: Plain text
2775 #: debian-trixie fedora-44 fedora-rawhide
2776 msgid ""
2777 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001. (To get their "
2778 "definitions, define either B<_XOPEN_SOURCE> with the value 500 or greater, "
2779 "or B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
2780 msgstr ""
2781
2782 #. type: Plain text
2783 #: debian-trixie fedora-44 fedora-rawhide
2784 msgid ""
2785 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008. (To get this definition, "
2786 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
2787 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
2788 msgstr ""
2789
2790 #. type: SH
2791 #: debian-trixie fedora-44 fedora-rawhide
2792 #, no-wrap
2793 msgid "NOTES"
2794 msgstr "주의"
2795
2796 #. type: Plain text
2797 #: debian-trixie fedora-44 fedora-rawhide
2798 msgid ""
2799 "The errors returned by B<dup2>(2) are different from those returned by "
2800 "B<F_DUPFD>."
2801 msgstr ""
2802 "B<dup2>(2)에 의해 리턴된 에러들은 B<F_DUPFD>에 의해 리턴된 에러들과는 다르다."
2803
2804 #. type: SS
2805 #: debian-trixie fedora-44 fedora-rawhide
2806 #, no-wrap
2807 msgid "File locking"
2808 msgstr ""
2809
2810 #. type: Plain text
2811 #: debian-trixie fedora-44 fedora-rawhide
2812 msgid ""
2813 "The original Linux B<fcntl>() system call was not designed to handle large "
2814 "file offsets (in the I<flock> structure). Consequently, an B<fcntl64>() "
2815 "system call was added in Linux 2.4. The newer system call employs a "
2816 "different structure for file locking, I<flock64>, and corresponding "
2817 "operations, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>. However, these "
2818 "details can be ignored by applications using glibc, whose B<fcntl>() "
2819 "wrapper function transparently employs the more recent system call where it "
2820 "is available."
2821 msgstr ""
2822
2823 #. type: SS
2824 #: debian-trixie fedora-44 fedora-rawhide
2825 #, no-wrap
2826 msgid "Record locks"
2827 msgstr ""
2828
2829 #. type: Plain text
2830 #: debian-trixie fedora-44 fedora-rawhide
2831 msgid ""
2832 "Since Linux 2.0, there is no interaction between the types of lock placed by "
2833 "B<flock>(2) and B<fcntl>()."
2834 msgstr ""
2835
2836 #. e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
2837 #. documents it in fcntl(5). mtk, May 2007
2838 #. Also, FreeBSD documents it (Apr 2014).
2839 #. type: Plain text
2840 #: debian-trixie fedora-44 fedora-rawhide
2841 msgid ""
2842 "Several systems have more fields in I<struct flock> such as, for example, "
2843 "I<l_sysid> (to identify the machine where the lock is held). Clearly, "
2844 "I<l_pid> alone is not going to be very useful if the process holding the "
2845 "lock may live on a different machine; on Linux, while present on some "
2846 "architectures (such as MIPS32), this field is not used."
2847 msgstr ""
2848
2849 #. type: SS
2850 #: debian-trixie fedora-44 fedora-rawhide
2851 #, no-wrap
2852 msgid "Record locking and NFS"
2853 msgstr ""
2854
2855 #
2856 #
2857 #
2858 #. Neil Brown: With NFSv3 the failure mode is the reverse. If
2859 #. the server loses contact with a client then any lock stays in place
2860 #. indefinitely ("why can't I read my mail"... I remember it well).
2861 #. Jeff Layton:
2862 #. Note that this is not a firm timeout. The server runs a job
2863 #. periodically to clean out expired stateful objects, and it's likely
2864 #. that there is some time (maybe even up to another whole lease period)
2865 #. between when the timeout expires and the job actually runs. If the
2866 #. client gets a RENEW in there within that window, its lease will be
2867 #. renewed and its state preserved.
2868 #. type: Plain text
2869 #: debian-trixie fedora-44 fedora-rawhide
2870 msgid ""
2871 "Before Linux 3.12, if an NFSv4 client loses contact with the server for a "
2872 "period of time (defined as more than 90 seconds with no communication), it "
2873 "might lose and regain a lock without ever being aware of the fact. (The "
2874 "period of time after which contact is assumed lost is known as the NFSv4 "
2875 "leasetime. On a Linux NFS server, this can be determined by looking at I</"
2876 "proc/fs/nfsd/nfsv4leasetime>, which expresses the period in seconds. The "
2877 "default value for this file is 90.) This scenario potentially risks data "
2878 "corruption, since another process might acquire a lock in the intervening "
2879 "period and perform file I/O."
2880 msgstr ""
2881
2882 #. commit ef1820f9be27b6ad158f433ab38002ab8131db4d
2883 #. commit f6de7a39c181dfb8a2c534661a53c73afb3081cd
2884 #. type: Plain text
2885 #: debian-trixie fedora-44 fedora-rawhide
2886 msgid ""
2887 "Since Linux 3.12, if an NFSv4 client loses contact with the server, any I/O "
2888 "to the file by a process which \"thinks\" it holds a lock will fail until "
2889 "that process closes and reopens the file. A kernel parameter, "
2890 "I<nfs.recover_lost_locks>, can be set to 1 to obtain the pre-3.12 behavior, "
2891 "whereby the client will attempt to recover lost locks when contact is "
2892 "reestablished with the server. Because of the attendant risk of data "
2893 "corruption, this parameter defaults to 0 (disabled)."
2894 msgstr ""
2895
2896 #. type: SH
2897 #: debian-trixie fedora-44 fedora-rawhide
2898 #, no-wrap
2899 msgid "BUGS"
2900 msgstr "버그"
2901
2902 #. type: SS
2903 #: debian-trixie fedora-44 fedora-rawhide
2904 #, no-wrap
2905 msgid "F_SETFL"
2906 msgstr "F_SETFL"
2907
2908 #. FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
2909 #. via fcntl(2), but currently Linux does not permit this
2910 #. See http://bugzilla.kernel.org/show_bug.cgi?id=5994
2911 #. type: Plain text
2912 #: debian-trixie fedora-44 fedora-rawhide
2913 msgid ""
2914 "It is not possible to use B<F_SETFL> to change the state of the B<O_DSYNC> "
2915 "and B<O_SYNC> flags. Attempts to change the state of these flags are "
2916 "silently ignored."
2917 msgstr ""
2918
2919 #. type: SS
2920 #: debian-trixie fedora-44 fedora-rawhide
2921 #, no-wrap
2922 msgid "F_GETOWN"
2923 msgstr "F_GETOWN"
2924
2925 #. glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
2926 #. mtk, Dec 04: some limited testing on alpha and ia64 seems to
2927 #. indicate that ANY negative PGID value will cause F_GETOWN
2928 #. to misinterpret the return as an error. Some other architectures
2929 #. seem to have the same range check as i386.
2930 #. type: Plain text
2931 #: debian-trixie fedora-44 fedora-rawhide
2932 msgid ""
2933 "A limitation of the Linux system call conventions on some architectures "
2934 "(notably i386) means that if a (negative) process group ID to be returned "
2935 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
2936 "wrongly interpreted by glibc as an error in the system call; that is, the "
2937 "return value of B<fcntl>() will be -1, and I<errno> will contain the "
2938 "(positive) process group ID. The Linux-specific B<F_GETOWN_EX> operation "
2939 "avoids this problem. Since glibc 2.11, glibc makes the kernel B<F_GETOWN> "
2940 "problem invisible by implementing B<F_GETOWN> using B<F_GETOWN_EX>."
2941 msgstr ""
2942
2943 #. type: SS
2944 #: debian-trixie fedora-44 fedora-rawhide
2945 #, no-wrap
2946 msgid "F_SETOWN"
2947 msgstr "F_SETOWN"
2948
2949 #. type: Plain text
2950 #: debian-trixie fedora-44 fedora-rawhide
2951 msgid ""
2952 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
2953 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
2954 "a process (group) other than the caller. In this case, B<fcntl>() can "
2955 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
2956 "is one that the caller has permission to send signals to. Despite this "
2957 "error return, the file descriptor owner is set, and signals will be sent to "
2958 "the owner."
2959 msgstr ""
2960
2961 #. type: SS
2962 #: debian-trixie fedora-44 fedora-rawhide
2963 #, no-wrap
2964 msgid "Deadlock detection"
2965 msgstr ""
2966
2967 #. type: Plain text
2968 #: debian-trixie fedora-44 fedora-rawhide
2969 msgid ""
2970 "The deadlock-detection algorithm employed by the kernel when dealing with "
2971 "B<F_SETLKW> requests can yield both false negatives (failures to detect "
2972 "deadlocks, leaving a set of deadlocked processes blocked indefinitely) and "
2973 "false positives (B<EDEADLK> errors when there is no deadlock). For example, "
2974 "the kernel limits the lock depth of its dependency search to 10 steps, "
2975 "meaning that circular deadlock chains that exceed that size will not be "
2976 "detected. In addition, the kernel may falsely indicate a deadlock when two "
2977 "or more processes created using the B<clone>(2) B<CLONE_FILES> flag place "
2978 "locks that appear (to the kernel) to conflict."
2979 msgstr ""
2980
2981 #
2982 #. http://marc.info/?l=linux-kernel&m=119013491707153&w=2
2983 #. Reconfirmed by Jeff Layton
2984 #. From: Jeff Layton <jlayton <at> redhat.com>
2985 #. Subject: Re: Status of fcntl() mandatory locking
2986 #. Newsgroups: gmane.linux.file-systems
2987 #. Date: 2014-04-28 10:07:57 GMT
2988 #. http://thread.gmane.org/gmane.linux.file-systems/84481/focus=84518
2989 #. type: Plain text
2990 #: debian-trixie fedora-44 fedora-rawhide
2991 msgid ""
2992 "The Linux implementation of mandatory locking is subject to race conditions "
2993 "which render it unreliable: a B<write>(2) call that overlaps with a lock "
2994 "may modify data after the mandatory lock is acquired; a B<read>(2) call "
2995 "that overlaps with a lock may detect changes to data that were made only "
2996 "after a write lock was acquired. Similar races exist between mandatory "
2997 "locks and B<mmap>(2). It is therefore inadvisable to rely on mandatory "
2998 "locking."
2999 msgstr ""
3000
3001 #. type: Plain text
3002 #: debian-trixie fedora-44 fedora-rawhide
3003 msgid ""
3004 "I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the Linux "
3005 "kernel source directory I<Documentation/filesystems/> (on older kernels, "
3006 "these files are directly under the I<Documentation/> directory, and "
3007 "I<mandatory-locking.txt> is called I<mandatory.txt>)"
3008 msgstr ""
3009
3010 #. type: TH
3011 #: fedora-44 fedora-rawhide
3012 #, no-wrap
3013 msgid "2024-07-23"
3014 msgstr "2024년 7월 23일"
3015
3016 #. type: TH
3017 #: fedora-44 fedora-rawhide
3018 #, no-wrap
3019 msgid "Linux man-pages 6.13"
3020 msgstr "Linux man-pages 6.13"
3021
3022 #. type: TH
3023 #: mageia-cauldron
3024 #, no-wrap
3025 msgid "Linux man-pages 6.17"
3026 msgstr "Linux man-pages 6.17"
3027
3028 #. type: TH
3029 #: opensuse-leap-16-1 opensuse-tumbleweed
3030 #, no-wrap
3031 msgid "Linux man-pages (unreleased)"
3032 msgstr "Linux man-pages (미공개)"