Debian Codegraph @

po/nl/man2/fcntl.2.po

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