Debian Codegraph @

po/ru/man2/pipe.2.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:35+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "pipe"
32 msgstr "pipe"
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-08"
39 msgstr "8 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "pipe, pipe2 - create pipe"
59 msgstr "pipe, pipe2 - создаёт канал"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "LIBRARY"
66 msgstr "БИБЛИОТЕКА"
67
68 #. type: Plain text
69 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
70 #: opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "Standard C library (I<libc>,\\ I<-lc>)"
72 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
73
74 #. type: SH
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "SYNOPSIS"
79 msgstr "СИНТАКСИС"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<#include E<lt>unistd.hE<gt>>\n"
86 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "B<int pipe(int >I<pipefd>B<[2]);>\n"
93 msgstr "B<int pipe(int >I<pipefd>B<[2]);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
101 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103 msgstr ""
104 "B<#define _GNU_SOURCE> /* См. feature_test_macros(7) */\n"
105 "B<#include E<lt>fcntl.hE<gt>> /* Определение констант B<O_*> */\n"
106 "B<#include E<lt>unistd.hE<gt>>\n"
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 #, no-wrap
112 msgid "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
113 msgstr "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid ""
120 "/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the\n"
121 " following prototype; see VERSIONS */\n"
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<struct fd_pair {>\n"
130 "B<long fd[2];>\n"
131 "B<};>\n"
132 "B<struct fd_pair pipe(void);>\n"
133 msgstr ""
134 "B<struct fd_pair {>\n"
135 "B<long fd[2];>\n"
136 "B<};>\n"
137 "B<struct fd_pair pipe(void);>\n"
138
139 #. type: SH
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "DESCRIPTION"
144 msgstr "ОПИСАНИЕ"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "B<pipe>() creates a pipe, a unidirectional data channel that can be used "
151 "for interprocess communication. The array I<pipefd> is used to return two "
152 "file descriptors referring to the ends of the pipe. I<pipefd[0]> refers to "
153 "the read end of the pipe. I<pipefd[1]> refers to the write end of the "
154 "pipe. Data written to the write end of the pipe is buffered by the kernel "
155 "until it is read from the read end of the pipe. For further details, see "
156 "B<pipe>(7)."
157 msgstr ""
158 "B<pipe>() создаёт однонаправленный канал данных, который можно использовать "
159 "для взаимодействия между процессами. Массив I<pipefd> используется для "
160 "возврата двух файловых описателей, указывающих на концы канала. I<pipefd[0]> "
161 "указывает на конец канала для чтения. I<pipefd[1]> указывает на конец канала "
162 "для записи. Данные, записанные в конец канала, буферизируются ядром до тех "
163 "пор, пока не будут прочитаны из конца канала для чтения. Подробней см. "
164 "B<pipe>(7)."
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 "If I<flags> is 0, then B<pipe2>() is the same as B<pipe>(). The following "
171 "values can be bitwise ORed in I<flags> to obtain different behavior:"
172 msgstr ""
173 "Если I<flags> равно 0, то B<pipe2>() выполняет то же что и B<pipe>(). "
174 "Следующие значения могут быть побитово сложены в I<flags> для получения "
175 "различного поведения:"
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "B<O_CLOEXEC>"
182 msgstr "B<O_CLOEXEC>"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the two new file "
189 "descriptors. See the description of the same flag in B<open>(2) for "
190 "reasons why this may be useful."
191 msgstr ""
192 "Устанавливает флаг close-on-exec (B<FD_CLOEXEC>) для двух новых открытых "
193 "файловых дескрипторов. Смотрите описание того же флага в B<open>(2) для "
194 "того, чтобы узнать как это может пригодиться."
195
196 #. type: TP
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "B<O_DIRECT> (since Linux 3.4)"
201 msgstr "B<O_DIRECT> (начиная с Linux 3.4)"
202
203 #. commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "Create a pipe that performs I/O in \"packet\" mode. Each B<write>(2) to "
209 "the pipe is dealt with as a separate packet, and B<read>(2)s from the pipe "
210 "will read one packet at a time. Note the following points:"
211 msgstr ""
212 "Создаёт канал, в котором ввод-вывод выполняется в «пакетном» режиме. Каждый "
213 "B<write>(2) в канал рассматривается как отдельный пакет, а B<read>(2) из "
214 "канала читает один пакет за раз. Заметим следующее:"
215
216 #. type: IP
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "\\[bu]"
221 msgstr "\\[bu]"
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "Writes of greater than B<PIPE_BUF> bytes (see B<pipe>(7)) will be split "
228 "into multiple packets. The constant B<PIPE_BUF> is defined in "
229 "I<E<lt>limits.hE<gt>>."
230 msgstr ""
231 "Запись более B<PIPE_BUF> байт (смотрите B<pipe>(7)) будет разделена на "
232 "несколько пакетов. Константа B<PIPE_BUF> определена в I<E<lt>limits.hE<gt>>."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "If a B<read>(2) specifies a buffer size that is smaller than the next "
239 "packet, then the requested number of bytes are read, and the excess bytes in "
240 "the packet are discarded. Specifying a buffer size of B<PIPE_BUF> will be "
241 "sufficient to read the largest possible packets (see the previous point)."
242 msgstr ""
243 "Если в B<read>(2) указан размер буфера меньше чем следующий пакет, то "
244 "читается запрашиваемое количество байт, а лишние байты пакета отбрасываются. "
245 "Указание B<PIPE_BUF> в качестве размера буфера будет достаточно для чтения "
246 "самых больших пакетов (смотрите предыдущее примечание)."
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "Zero-length packets are not supported. (A B<read>(2) that specifies a "
253 "buffer size of zero is a no-op, and returns 0.)"
254 msgstr ""
255 "Пакеты нулевой длины не поддерживаются (вызов B<read>(2) с нулевым размером "
256 "буфера ничего не делает и возвращает 0)."
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "Older kernels that do not support this flag will indicate this via an "
263 "B<EINVAL> error."
264 msgstr ""
265 "Старые ядра, которые не поддерживают этот флаг, возвращают ошибку B<EINVAL>."
266
267 #. commit 0dbf5f20652108106cb822ad7662c786baaa03ff
268 #. FIXME . But, it is not possible to specify O_DIRECT when opening a FIFO
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "Since Linux 4.5, it is possible to change the B<O_DIRECT> setting of a pipe "
274 "file descriptor using B<fcntl>(2)."
275 msgstr ""
276 "Начиная с Linux 4.5, у файлового дескриптора канала возможно менять "
277 "установку B<O_DIRECT> с помощью B<fcntl>(2)."
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<O_NONBLOCK>"
284 msgstr "B<O_NONBLOCK>"
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "Set the B<O_NONBLOCK> file status flag on the open file descriptions "
291 "referred to by the new file descriptors. Using this flag saves extra calls "
292 "to B<fcntl>(2) to achieve the same result."
293 msgstr ""
294 "Устанавливает флаг состояния файла B<O_NONBLOCK> для открытого файлового "
295 "описания, на которое ссылаются новые файловые дескрипторы. Использование "
296 "данного флага делает ненужными дополнительные вызовы B<fcntl>(2) для "
297 "достижения того же результата."
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<O_NOTIFICATION_PIPE>"
304 msgstr "B<O_NOTIFICATION_PIPE>"
305
306 #. commit c73be61cede5882f9605a852414db559c0ebedfd
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "Since Linux 5.8, general notification mechanism is built on the top of the "
312 "pipe where kernel splices notification messages into pipes opened by user "
313 "space. The owner of the pipe has to tell the kernel which sources of events "
314 "to watch and filters can also be applied to select which subevents should be "
315 "placed into the pipe."
316 msgstr ""
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "RETURN VALUE"
323 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, fuzzy
329 #| msgid ""
330 #| "On success, zero is returned. On error, -1 is returned, I<errno> is set "
331 #| "appropriately, and I<pipefd> is left unchanged."
332 msgid ""
333 "On success, zero is returned. On error, -1 is returned, I<errno> is set to "
334 "indicate the error, and I<pipefd> is left unchanged."
335 msgstr ""
336 "При успешном выполнении возвращается 0. В случае ошибки возвращается -1, "
337 "I<errno> устанавливается в соответствующее значение, а I<pipefd> не "
338 "изменяется."
339
340 #. http://austingroupbugs.net/view.php?id=467
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "On Linux (and other systems), B<pipe>() does not modify I<pipefd> on "
346 "failure. A requirement standardizing this behavior was added in "
347 "POSIX.1-2008 TC2. The Linux-specific B<pipe2>() system call likewise does "
348 "not modify I<pipefd> on failure."
349 msgstr ""
350 "В Linux (и других системах) B<pipe>() не изменяет I<pipefd> при ошибке. "
351 "Требование стандартизации этого поведения было добавлено в POSIX.1-2008 TC2. "
352 "Системный вызов Linux B<pipe2>() также не изменяет I<pipefd> при ошибке."
353
354 #. type: SH
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "ERRORS"
359 msgstr "ОШИБКИ"
360
361 #. type: TP
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "B<EFAULT>"
366 msgstr "B<EFAULT>"
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid "I<pipefd> is not valid."
372 msgstr "I<pipefd> задан некорректно."
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<EINVAL>"
379 msgstr "B<EINVAL>"
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid "(B<pipe2>()) Invalid value in I<flags>."
385 msgstr "(B<pipe2>()) Некорректное значение I<flags>."
386
387 #. type: TP
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "B<EMFILE>"
392 msgstr "B<EMFILE>"
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "The per-process limit on the number of open file descriptors has been "
399 "reached."
400 msgstr ""
401 "Было достигнуто ограничение по количеству открытых файловых дескрипторов на "
402 "процесс."
403
404 #. type: TP
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "B<ENFILE>"
409 msgstr "B<ENFILE>"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "The system-wide limit on the total number of open files has been reached."
416 msgstr "Достигнуто максимальное количество открытых файлов в системе."
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid ""
422 "The user hard limit on memory that can be allocated for pipes has been "
423 "reached and the caller is not privileged; see B<pipe>(7)."
424 msgstr ""
425 "Достигнуто жёсткое пользовательское ограничение на выделение памяти для "
426 "каналов и вызывающий не имеет дополнительных прав; смотрите B<pipe>(7)."
427
428 #. type: TP
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "B<ENOPKG>"
433 msgstr "B<ENOPKG>"
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid ""
439 "(B<pipe2>()) B<O_NOTIFICATION_PIPE> was passed in I<flags> and support for "
440 "notifications (B<CONFIG_WATCH_QUEUE>) is not compiled into the kernel."
441 msgstr ""
442
443 #. type: SH
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid "VERSIONS"
448 msgstr "ВЕРСИИ"
449
450 #. See http://math-atlas.sourceforge.net/devel/assembly/64.psabi.1.33.ps.Z
451 #. for example, section 3.2.1 "Registers and the Stack Frame".
452 #. type: Plain text
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 msgid ""
456 "The System V ABI on some architectures allows the use of more than one "
457 "register for returning multiple values; several architectures (namely, "
458 "Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64) (ab)use this feature in "
459 "order to implement the B<pipe>() system call in a functional manner: the "
460 "call doesn't take any arguments and returns a pair of file descriptors as "
461 "the return value on success. The glibc B<pipe>() wrapper function "
462 "transparently deals with this. See B<syscall>(2) for information regarding "
463 "registers used for storing second file descriptor."
464 msgstr ""
465 "System V ABI на некоторых архитектурах позволяет использовать более одного "
466 "регистра для возврата нескольких значений; в нескольких архитектурах (Alpha, "
467 "IA-64, MIPS, SuperH и SPARC/SPARC64) использована эта возможность для "
468 "реализации системного вызова B<pipe>() подобно функциям: вызов не использует "
469 "параметры и при успешном выполнении возвращает пару файловых дескрипторов "
470 "как результат. Обёрточная функция glibc B<pipe>() учитывает это. Описание "
471 "регистров хранения второго файлового дескриптора смотрите в B<syscall>(2)."
472
473 #. type: SH
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "STANDARDS"
478 msgstr "СТАНДАРТЫ"
479
480 #. type: Plain text
481 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
482 #: opensuse-tumbleweed
483 msgid "POSIX.1-2024."
484 msgstr "POSIX.1-2024."
485
486 #. type: SH
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "HISTORY"
491 msgstr "ИСТОРИЯ"
492
493 #. type: TP
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, fuzzy, no-wrap
497 #| msgid "B<pipe>(2)"
498 msgid "B<pipe>()"
499 msgstr "B<pipe>(2)"
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid "POSIX.1-2001."
505 msgstr "POSIX.1-2001."
506
507 #. type: TP
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, fuzzy, no-wrap
511 #| msgid "B<pipe>(2)"
512 msgid "B<pipe2>()"
513 msgstr "B<pipe>(2)"
514
515 #. type: Plain text
516 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
517 #: opensuse-tumbleweed
518 #, fuzzy
519 #| msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
520 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
521 msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
522
523 #. type: SH
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 #, no-wrap
527 msgid "EXAMPLES"
528 msgstr "ПРИМЕРЫ"
529
530 #. fork.2 refers to this example program.
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "The following program creates a pipe, and then B<fork>(2)s to create a child "
536 "process; the child inherits a duplicate set of file descriptors that refer "
537 "to the same pipe. After the B<fork>(2), each process closes the file "
538 "descriptors that it doesn't need for the pipe (see B<pipe>(7)). The parent "
539 "then writes the string contained in the program's command-line argument to "
540 "the pipe, and the child reads this string a byte at a time from the pipe and "
541 "echoes it on standard output."
542 msgstr ""
543 "Следующая программа создаёт канал, и затем выполняет B<fork>(2) для создания "
544 "потомка; потомок наследует скопированный набор файловых дескрипторов, "
545 "которые указывают на тот же канал. После B<fork>(2) каждый процесс закрывает "
546 "файловые дескрипторы, которые ненужны каналу (см. B<pipe>(7)). Затем "
547 "родитель записывает строку, переданную в качестве аргумента командной "
548 "строки, в канал, а потомок читает эту строку из канала по байту за раз, и "
549 "выводит её на стандартный вывод."
550
551 #. type: SS
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "Program source"
556 msgstr "Исходный код программы"
557
558 #. type: Plain text
559 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
560 #: opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid ""
563 "#include E<lt>err.hE<gt>\n"
564 "#include E<lt>stdio.hE<gt>\n"
565 "#include E<lt>stdlib.hE<gt>\n"
566 "#include E<lt>string.hE<gt>\n"
567 "#include E<lt>sys/types.hE<gt>\n"
568 "#include E<lt>sys/wait.hE<gt>\n"
569 "#include E<lt>unistd.hE<gt>\n"
570 "\\&\n"
571 "int\n"
572 "main(int argc, char *argv[])\n"
573 "{\n"
574 " int pipefd[2];\n"
575 " char buf;\n"
576 " pid_t cpid;\n"
577 "\\&\n"
578 " if (argc != 2) {\n"
579 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
580 " exit(EXIT_FAILURE);\n"
581 " }\n"
582 "\\&\n"
583 " if (pipe(pipefd) == -1)\n"
584 " err(EXIT_FAILURE, \"pipe\");\n"
585 "\\&\n"
586 " cpid = fork();\n"
587 " if (cpid == -1)\n"
588 " err(EXIT_FAILURE, \"fork\");\n"
589 "\\&\n"
590 " if (cpid == 0) { /* Child reads from pipe */\n"
591 " if (close(pipefd[1]) == -1) /* Close unused write end */\n"
592 " err(EXIT_FAILURE, \"close\");\n"
593 "\\&\n"
594 " while (read(pipefd[0], &buf, 1) E<gt> 0) {\n"
595 " if (write(STDOUT_FILENO, &buf, 1) != 1)\n"
596 " err(EXIT_FAILURE, \"write\");\n"
597 " }\n"
598 "\\&\n"
599 " if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n"
600 " err(EXIT_FAILURE, \"write\");\n"
601 " if (close(pipefd[0]) == -1)\n"
602 " err(EXIT_FAILURE, \"close\");\n"
603 " _exit(EXIT_SUCCESS);\n"
604 "\\&\n"
605 " } else { /* Parent writes argv[1] to pipe */\n"
606 " if (close(pipefd[0]) == -1) /* Close unused read end */\n"
607 " err(EXIT_FAILURE, \"close\");\n"
608 " if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n"
609 " err(EXIT_FAILURE, \"write\");\n"
610 " if (close(pipefd[1]) == -1) /* Reader will see EOF */\n"
611 " err(EXIT_FAILURE, \"close\");\n"
612 " if (wait(NULL) == -1) /* Wait for child */\n"
613 " err(EXIT_FAILURE, \"wait\");\n"
614 " exit(EXIT_SUCCESS);\n"
615 " }\n"
616 "}\n"
617 msgstr ""
618
619 #. SRC END
620 #. type: SH
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "SEE ALSO"
625 msgstr "СМОТРИТЕ ТАКЖЕ"
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid ""
631 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
632 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
633 msgstr ""
634 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
635 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
636
637 #. type: TH
638 #: debian-trixie
639 #, no-wrap
640 msgid "2024-06-15"
641 msgstr "15 июня 2024 г."
642
643 #. type: TH
644 #: debian-trixie
645 #, no-wrap
646 msgid "Linux man-pages 6.9.1"
647 msgstr "Страницы руководства Linux 6.9.1"
648
649 #. type: Plain text
650 #: debian-trixie
651 msgid "Standard C library (I<libc>, I<-lc>)"
652 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
653
654 #. type: Plain text
655 #: debian-trixie fedora-44 fedora-rawhide
656 msgid "POSIX.1-2008."
657 msgstr "POSIX.1-2008."
658
659 #. type: Plain text
660 #: debian-trixie fedora-44 fedora-rawhide
661 msgid "Linux."
662 msgstr "Linux."
663
664 #. type: Plain text
665 #: debian-trixie fedora-44 fedora-rawhide
666 msgid "Linux 2.6.27, glibc 2.9."
667 msgstr "Linux 2.6.27, glibc 2.9."
668
669 #. type: Plain text
670 #: debian-trixie
671 #, no-wrap
672 msgid ""
673 "#include E<lt>stdio.hE<gt>\n"
674 "#include E<lt>stdlib.hE<gt>\n"
675 "#include E<lt>string.hE<gt>\n"
676 "#include E<lt>sys/types.hE<gt>\n"
677 "#include E<lt>sys/wait.hE<gt>\n"
678 "#include E<lt>unistd.hE<gt>\n"
679 "\\&\n"
680 "int\n"
681 "main(int argc, char *argv[])\n"
682 "{\n"
683 " int pipefd[2];\n"
684 " char buf;\n"
685 " pid_t cpid;\n"
686 "\\&\n"
687 " if (argc != 2) {\n"
688 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
689 " exit(EXIT_FAILURE);\n"
690 " }\n"
691 "\\&\n"
692 " if (pipe(pipefd) == -1) {\n"
693 " perror(\"pipe\");\n"
694 " exit(EXIT_FAILURE);\n"
695 " }\n"
696 "\\&\n"
697 " cpid = fork();\n"
698 " if (cpid == -1) {\n"
699 " perror(\"fork\");\n"
700 " exit(EXIT_FAILURE);\n"
701 " }\n"
702 "\\&\n"
703 " if (cpid == 0) { /* Child reads from pipe */\n"
704 " close(pipefd[1]); /* Close unused write end */\n"
705 "\\&\n"
706 " while (read(pipefd[0], &buf, 1) E<gt> 0)\n"
707 " write(STDOUT_FILENO, &buf, 1);\n"
708 "\\&\n"
709 " write(STDOUT_FILENO, \"\\[rs]n\", 1);\n"
710 " close(pipefd[0]);\n"
711 " _exit(EXIT_SUCCESS);\n"
712 "\\&\n"
713 " } else { /* Parent writes argv[1] to pipe */\n"
714 " close(pipefd[0]); /* Close unused read end */\n"
715 " write(pipefd[1], argv[1], strlen(argv[1]));\n"
716 " close(pipefd[1]); /* Reader will see EOF */\n"
717 " wait(NULL); /* Wait for child */\n"
718 " exit(EXIT_SUCCESS);\n"
719 " }\n"
720 "}\n"
721 msgstr ""
722
723 #. type: TH
724 #: fedora-44 fedora-rawhide
725 #, no-wrap
726 msgid "2024-07-23"
727 msgstr "23 июля 2024 г."
728
729 #. type: TH
730 #: fedora-44 fedora-rawhide
731 #, no-wrap
732 msgid "Linux man-pages 6.13"
733 msgstr "Страницы руководства Linux 6.13"
734
735 #. type: TH
736 #: mageia-cauldron
737 #, no-wrap
738 msgid "Linux man-pages 6.17"
739 msgstr "Страницы руководства Linux 6.17"
740
741 #. type: TH
742 #: opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid "Linux man-pages (unreleased)"
745 msgstr "Страницы руководства Linux (не выпущены)"