Debian Codegraph @

templates/man7/pipe.7.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:35+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "pipe"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "pipe - overview of pipes and FIFOs"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "DESCRIPTION"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid ""
63 "Pipes and FIFOs (also known as named pipes) provide a unidirectional "
64 "interprocess communication channel. A pipe has a I<read end> and a I<write "
65 "end>. Data written to the write end of a pipe can be read from the read end "
66 "of the pipe."
67 msgstr ""
68
69 #. type: Plain text
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 msgid ""
73 "A pipe is created using B<pipe>(2), which creates a new pipe and returns two "
74 "file descriptors, one referring to the read end of the pipe, the other "
75 "referring to the write end. Pipes can be used to create a communication "
76 "channel between related processes; see B<pipe>(2) for an example."
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 msgid ""
83 "A FIFO (short for First In First Out) has a name within the filesystem "
84 "(created using B<mkfifo>(3)), and is opened using B<open>(2). Any process "
85 "may open a FIFO, assuming the file permissions allow it. The read end is "
86 "opened using the B<O_RDONLY> flag; the write end is opened using the "
87 "B<O_WRONLY> flag. See B<fifo>(7) for further details. I<Note>: although "
88 "FIFOs have a pathname in the filesystem, I/O on FIFOs does not involve "
89 "operations on the underlying device (if there is one)."
90 msgstr ""
91
92 #. type: SS
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "I/O on pipes and FIFOs"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "The only difference between pipes and FIFOs is the manner in which they are "
104 "created and opened. Once these tasks have been accomplished, I/O on pipes "
105 "and FIFOs has exactly the same semantics."
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "If a process attempts to read from an empty pipe, then B<read>(2) will "
113 "block until data is available. If a process attempts to write to a full "
114 "pipe (see below), then B<write>(2) blocks until sufficient data has been "
115 "read from the pipe to allow the write to complete."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "Nonblocking I/O is possible by using the B<fcntl>(2) B<F_SETFL> operation "
123 "to enable the B<O_NONBLOCK> open file status flag or by opening a "
124 "B<fifo>(7) with B<O_NONBLOCK>. If any process has the pipe open for "
125 "writing, reads fail with B<EAGAIN>; otherwise\\[em]with no potential "
126 "writers\\[em]reads succeed and return empty."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "The communication channel provided by a pipe is a I<byte stream>: there is "
134 "no concept of message boundaries."
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "If all file descriptors referring to the write end of a pipe have been "
142 "closed, then an attempt to B<read>(2) from the pipe will see end-of-file "
143 "(B<read>(2) will return 0). If all file descriptors referring to the read "
144 "end of a pipe have been closed, then a B<write>(2) will cause a B<SIGPIPE> "
145 "signal to be generated for the calling process. If the calling process is "
146 "ignoring this signal, then B<write>(2) fails with the error B<EPIPE>. An "
147 "application that uses B<pipe>(2) and B<fork>(2) should use suitable "
148 "B<close>(2) calls to close unnecessary duplicate file descriptors; this "
149 "ensures that end-of-file and B<SIGPIPE>/B<EPIPE> are delivered when "
150 "appropriate."
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid "It is not possible to apply B<lseek>(2) to a pipe."
157 msgstr ""
158
159 #. type: SS
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "Pipe capacity"
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "A pipe has a limited capacity. If the pipe is full, then a B<write>(2) "
171 "will block or fail, depending on whether the B<O_NONBLOCK> flag is set (see "
172 "below). Different implementations have different limits for the pipe "
173 "capacity. Applications should not rely on a particular capacity: an "
174 "application should be designed so that a reading process consumes data as "
175 "soon as it is available, so that a writing process does not remain blocked."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
180 #: opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "Before Linux 2.6.11, the capacity of a pipe was the same as the system page "
183 "size (e.g., 4096 bytes on i386). Since Linux 2.6.11, the pipe capacity is "
184 "16 pages (i.e., 65,536 bytes in a system with a page size of 4096 bytes). "
185 "Since Linux 2.6.35, the default pipe capacity is 16 pages, but the capacity "
186 "can be queried and set using the B<fcntl>(2) B<F_GETPIPE_SZ> and "
187 "B<F_SETPIPE_SZ> operations. See B<fcntl>(2) for more information. Since "
188 "Linux 4.5, the default pipe capacity is lower than 16 pages when the I<pipe-"
189 "user-pages-soft> limit is exceeded."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The following B<ioctl>(2) operation, which can be applied to a file "
197 "descriptor that refers to either end of a pipe, places a count of the number "
198 "of unread bytes in the pipe in the I<int> buffer pointed to by the final "
199 "argument of the call:"
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "ioctl(fd, FIONREAD, &nbytes);\n"
207 msgstr ""
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The B<FIONREAD> operation is not specified in any standard, but is provided "
214 "on many implementations."
215 msgstr ""
216
217 #. type: SS
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "/proc files"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "On Linux, the following files control how much memory can be used for pipes:"
229 msgstr ""
230
231 #. type: TP
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "I</proc/sys/fs/pipe-max-pages> (only in Linux 2.6.34)"
236 msgstr ""
237
238 #. commit b492e95be0ae672922f4734acf3f5d35c30be948
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "An upper limit, in pages, on the capacity that an unprivileged user (one "
244 "without the B<CAP_SYS_RESOURCE> capability) can set for a pipe."
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "The default value for this limit is 16 times the default pipe capacity (see "
252 "above); the lower limit is two pages."
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "This interface was removed in Linux 2.6.35, in favor of I</proc/sys/fs/pipe-"
260 "max-size>."
261 msgstr ""
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "I</proc/sys/fs/pipe-max-size> (since Linux 2.6.35)"
268 msgstr ""
269
270 #. commit ff9da691c0498ff81fdd014e7a0731dab2337dac
271 #. This limit is not checked on pipe creation, where the capacity is
272 #. always PIPE_DEF_BUFS, regardless of pipe-max-size
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "The maximum size (in bytes) of individual pipes that can be set by users "
278 "without the B<CAP_SYS_RESOURCE> capability. The value assigned to this file "
279 "may be rounded upward, to reflect the value actually employed for a "
280 "convenient implementation. To determine the rounded-up value, display the "
281 "contents of this file after assigning a value to it."
282 msgstr ""
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "The default value for this file is 1048576 (1\\ MiB). The minimum value "
289 "that can be assigned to this file is the system page size. Attempts to set "
290 "a limit less than the page size cause B<write>(2) to fail with the error "
291 "B<EINVAL>."
292 msgstr ""
293
294 #. commit 086e774a57fba4695f14383c0818994c0b31da7c
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "Since Linux 4.9, the value on this file also acts as a ceiling on the "
300 "default capacity of a new pipe or newly opened FIFO."
301 msgstr ""
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "I</proc/sys/fs/pipe-user-pages-hard> (since Linux 4.5)"
308 msgstr ""
309
310 #. commit 759c01142a5d0f364a462346168a56de28a80f52
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "The hard limit on the total size (in pages) of all pipes created or set by a "
316 "single unprivileged user (i.e., one with neither the B<CAP_SYS_RESOURCE> nor "
317 "the B<CAP_SYS_ADMIN> capability). So long as the total number of pages "
318 "allocated to pipe buffers for this user is at this limit, attempts to create "
319 "new pipes will be denied, and attempts to increase a pipe's capacity will be "
320 "denied."
321 msgstr ""
322
323 #. The default was chosen to avoid breaking existing applications that
324 #. make intensive use of pipes (e.g., for splicing).
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "When the value of this limit is zero (which is the default), no hard limit "
330 "is applied."
331 msgstr ""
332
333 #. type: TP
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "I</proc/sys/fs/pipe-user-pages-soft> (since Linux 4.5)"
338 msgstr ""
339
340 #. commit 759c01142a5d0f364a462346168a56de28a80f52
341 #. type: Plain text
342 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
343 #: opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "The soft limit on the total size (in pages) of all pipes created or set by a "
346 "single unprivileged user (i.e., one with neither the B<CAP_SYS_RESOURCE> nor "
347 "the B<CAP_SYS_ADMIN> capability). So long as the total number of pages "
348 "allocated to pipe buffers for this user is at this limit, individual pipes "
349 "created by a user will be limited to two pages (one page before Linux 5.14), "
350 "and attempts to increase a pipe's capacity will be denied."
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "When the value of this limit is zero, no soft limit is applied. The default "
358 "value for this file is 16384, which permits creating up to 1024 pipes with "
359 "the default capacity."
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "Before Linux 4.9, some bugs affected the handling of the I<pipe-user-pages-"
367 "soft> and I<pipe-user-pages-hard> limits; see BUGS."
368 msgstr ""
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 "PIPE_BUF"
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "POSIX.1 says that writes of less than B<PIPE_BUF> bytes must be atomic: the "
382 "output data is written to the pipe as a contiguous sequence. Writes of more "
383 "than B<PIPE_BUF> bytes may be nonatomic: the kernel may interleave the data "
384 "with data written by other processes. POSIX.1 requires B<PIPE_BUF> to be at "
385 "least 512 bytes. (On Linux, B<PIPE_BUF> is 4096 bytes.) The precise "
386 "semantics depend on whether the file descriptor is nonblocking "
387 "(B<O_NONBLOCK>), whether there are multiple writers to the pipe, and on "
388 "I<n>, the number of bytes to be written:"
389 msgstr ""
390
391 #. type: TP
392 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
393 #: opensuse-tumbleweed
394 #, no-wrap
395 msgid "B<O_NONBLOCK> disabled, \\f[I]n\\fR E<lt>= B<PIPE_BUF>"
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "All I<n> bytes are written atomically; B<write>(2) may block if there is "
403 "not room for I<n> bytes to be written immediately"
404 msgstr ""
405
406 #. type: TP
407 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
408 #: opensuse-tumbleweed
409 #, no-wrap
410 msgid "B<O_NONBLOCK> enabled, \\f[I]n\\fR E<lt>= B<PIPE_BUF>"
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "If there is room to write I<n> bytes to the pipe, then B<write>(2) succeeds "
418 "immediately, writing all I<n> bytes; otherwise B<write>(2) fails, with "
419 "I<errno> set to B<EAGAIN>."
420 msgstr ""
421
422 #. type: TP
423 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
424 #: opensuse-tumbleweed
425 #, no-wrap
426 msgid "B<O_NONBLOCK> disabled, \\f[I]n\\fR E<gt> B<PIPE_BUF>"
427 msgstr ""
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "The write is nonatomic: the data given to B<write>(2) may be interleaved "
434 "with B<write>(2)s by other process; the B<write>(2) blocks until I<n> bytes "
435 "have been written."
436 msgstr ""
437
438 #. type: TP
439 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
440 #: opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<O_NONBLOCK> enabled, \\f[I]n\\fR E<gt> B<PIPE_BUF>"
443 msgstr ""
444
445 #. type: Plain text
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "If the pipe is full, then B<write>(2) fails, with I<errno> set to "
450 "B<EAGAIN>. Otherwise, from 1 to I<n> bytes may be written (i.e., a "
451 "\"partial write\" may occur; the caller should check the return value from "
452 "B<write>(2) to see how many bytes were actually written), and these bytes "
453 "may be interleaved with writes by other processes."
454 msgstr ""
455
456 #. type: SS
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "Open file status flags"
461 msgstr ""
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "The only open file status flags that can be meaningfully applied to a pipe "
468 "or FIFO are B<O_NONBLOCK> and B<O_ASYNC>."
469 msgstr ""
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "Setting the B<O_ASYNC> flag for the read end of a pipe causes a signal "
476 "(B<SIGIO> by default) to be generated when new input becomes available on "
477 "the pipe. The target for delivery of signals must be set using the "
478 "B<fcntl>(2) B<F_SETOWN> command. On Linux, B<O_ASYNC> is supported for "
479 "pipes and FIFOs only since Linux 2.6."
480 msgstr ""
481
482 #. type: SS
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "Portability notes"
487 msgstr ""
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "On some systems (but not Linux), pipes are bidirectional: data can be "
494 "transmitted in both directions between the pipe ends. POSIX.1 requires only "
495 "unidirectional pipes. Portable applications should avoid reliance on "
496 "bidirectional pipe semantics."
497 msgstr ""
498
499 #. type: SS
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "BUGS"
504 msgstr ""
505
506 #. These bugs where remedied by a series of patches, in particular,
507 #. commit b0b91d18e2e97b741b294af9333824ecc3fadfd8 and
508 #. commit a005ca0e6813e1d796a7422a7e31d8b8d6555df1
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid ""
513 "Before Linux 4.9, some bugs affected the handling of the I<pipe-user-pages-"
514 "soft> and I<pipe-user-pages-hard> limits when using the B<fcntl>(2) "
515 "B<F_SETPIPE_SZ> operation to change a pipe's capacity:"
516 msgstr ""
517
518 #. type: IP
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "(a)"
523 msgstr ""
524
525 #. type: Plain text
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 msgid ""
529 "When increasing the pipe capacity, the checks against the soft and hard "
530 "limits were made against existing consumption, and excluded the memory "
531 "required for the increased pipe capacity. The new increase in pipe capacity "
532 "could then push the total memory used by the user for pipes (possibly far) "
533 "over a limit. (This could also trigger the problem described next.)"
534 msgstr ""
535
536 #. type: Plain text
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 msgid ""
540 "Starting with Linux 4.9, the limit checking includes the memory required for "
541 "the new pipe capacity."
542 msgstr ""
543
544 #. type: IP
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "(b)"
549 msgstr ""
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid ""
555 "The limit checks were performed even when the new pipe capacity was less "
556 "than the existing pipe capacity. This could lead to problems if a user set "
557 "a large pipe capacity, and then the limits were lowered, with the result "
558 "that the user could no longer decrease the pipe capacity."
559 msgstr ""
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "Starting with Linux 4.9, checks against the limits are performed only when "
566 "increasing a pipe's capacity; an unprivileged user can always decrease a "
567 "pipe's capacity."
568 msgstr ""
569
570 #. type: IP
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "(c)"
575 msgstr ""
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid "The accounting and checking against the limits were done as follows:"
581 msgstr ""
582
583 #. type: IP
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "(1)"
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid "Test whether the user has exceeded the limit."
594 msgstr ""
595
596 #. type: IP
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "(2)"
601 msgstr ""
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 msgid "Make the new pipe buffer allocation."
607 msgstr ""
608
609 #. type: IP
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "(3)"
614 msgstr ""
615
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 msgid "Account new allocation against the limits."
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "This was racey. Multiple processes could pass point (1) simultaneously, and "
627 "then allocate pipe buffers that were accounted for only in step (3), with "
628 "the result that the user's pipe buffer allocation could be pushed over the "
629 "limit."
630 msgstr ""
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid ""
636 "Starting with Linux 4.9, the accounting step is performed before doing the "
637 "allocation, and the operation fails if the limit would be exceeded."
638 msgstr ""
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid ""
644 "Before Linux 4.9, bugs similar to points (a) and (c) could also occur when "
645 "the kernel allocated memory for a new pipe buffer; that is, when calling "
646 "B<pipe>(2) and when opening a previously unopened FIFO."
647 msgstr ""
648
649 #. type: SH
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 #, no-wrap
653 msgid "SEE ALSO"
654 msgstr ""
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid ""
660 "B<mkfifo>(1), B<dup>(2), B<fcntl>(2), B<open>(2), B<pipe>(2), B<poll>(2), "
661 "B<select>(2), B<socketpair>(2), B<splice>(2), B<stat>(2), B<tee>(2), "
662 "B<vmsplice>(2), B<mkfifo>(3), B<epoll>(7), B<fifo>(7)"
663 msgstr ""
664
665 #. type: TH
666 #: debian-trixie
667 #, no-wrap
668 msgid "2024-05-02"
669 msgstr ""
670
671 #. type: TH
672 #: debian-trixie
673 #, no-wrap
674 msgid "Linux man-pages 6.9.1"
675 msgstr ""
676
677 #. type: Plain text
678 #: debian-trixie
679 msgid ""
680 "Before Linux 2.6.11, the capacity of a pipe was the same as the system page "
681 "size (e.g., 4096 bytes on i386). Since Linux 2.6.11, the pipe capacity is "
682 "16 pages (i.e., 65,536 bytes in a system with a page size of 4096 bytes). "
683 "Since Linux 2.6.35, the default pipe capacity is 16 pages, but the capacity "
684 "can be queried and set using the B<fcntl>(2) B<F_GETPIPE_SZ> and "
685 "B<F_SETPIPE_SZ> operations. See B<fcntl>(2) for more information."
686 msgstr ""
687
688 #. commit 759c01142a5d0f364a462346168a56de28a80f52
689 #. type: Plain text
690 #: debian-trixie
691 msgid ""
692 "The soft limit on the total size (in pages) of all pipes created or set by a "
693 "single unprivileged user (i.e., one with neither the B<CAP_SYS_RESOURCE> nor "
694 "the B<CAP_SYS_ADMIN> capability). So long as the total number of pages "
695 "allocated to pipe buffers for this user is at this limit, individual pipes "
696 "created by a user will be limited to one page, and attempts to increase a "
697 "pipe's capacity will be denied."
698 msgstr ""
699
700 #. type: TP
701 #: debian-trixie fedora-44 fedora-rawhide
702 #, no-wrap
703 msgid "B<O_NONBLOCK> disabled, I<n> E<lt>= B<PIPE_BUF>"
704 msgstr ""
705
706 #. type: TP
707 #: debian-trixie fedora-44 fedora-rawhide
708 #, no-wrap
709 msgid "B<O_NONBLOCK> enabled, I<n> E<lt>= B<PIPE_BUF>"
710 msgstr ""
711
712 #. type: TP
713 #: debian-trixie fedora-44 fedora-rawhide
714 #, no-wrap
715 msgid "B<O_NONBLOCK> disabled, I<n> E<gt> B<PIPE_BUF>"
716 msgstr ""
717
718 #. type: TP
719 #: debian-trixie fedora-44 fedora-rawhide
720 #, no-wrap
721 msgid "B<O_NONBLOCK> enabled, I<n> E<gt> B<PIPE_BUF>"
722 msgstr ""
723
724 #. type: TH
725 #: fedora-44 fedora-rawhide
726 #, no-wrap
727 msgid "2024-08-29"
728 msgstr ""
729
730 #. type: TH
731 #: fedora-44 fedora-rawhide
732 #, no-wrap
733 msgid "Linux man-pages 6.13"
734 msgstr ""
735
736 #. type: TH
737 #: mageia-cauldron
738 #, no-wrap
739 msgid "Linux man-pages 6.17"
740 msgstr ""
741
742 #. type: TH
743 #: opensuse-leap-16-1 opensuse-tumbleweed
744 #, no-wrap
745 msgid "Linux man-pages (unreleased)"
746 msgstr ""