| 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 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:44+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "splice" |
| 33 |
msgstr "splice" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2026-02-08" |
| 40 |
msgstr "8 февраля 2026 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "splice - splice data to/from a pipe" |
| 60 |
msgstr "splice - подключает данные к каналу/выбирает данные из канала" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "LIBRARY" |
| 67 |
msgstr "БИБЛИОТЕКА" |
| 68 |
|
| 69 |
#. type: Plain text |
| 70 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 71 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 73 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 74 |
|
| 75 |
#. type: SH |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "SYNOPSIS" |
| 80 |
msgstr "СИНТАКСИС" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 88 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 89 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 90 |
msgstr "" |
| 91 |
"B<#define _GNU_SOURCE> /* см. feature_test_macros(7) */\n" |
| 92 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 93 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 94 |
|
| 95 |
#. Return type was long before glibc 2.7 |
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 98 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, fuzzy, no-wrap |
| 100 |
#| msgid "" |
| 101 |
#| "B<ssize_t splice(int >I<fd_in>B<, loff_t *>I<off_in>B<, int >I<fd_out>B<,>\n" |
| 102 |
#| "B< loff_t *>I<off_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 103 |
msgid "" |
| 104 |
"B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 105 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 106 |
"B< size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 107 |
msgstr "" |
| 108 |
"B<ssize_t splice(int >I<fd_in>B<, loff_t *>I<off_in>B<, int >I<fd_out>B<,>\n" |
| 109 |
"B< loff_t *>I<off_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 110 |
|
| 111 |
#. type: SH |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "DESCRIPTION" |
| 116 |
msgstr "ОПИСАНИЕ" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 120 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, fuzzy |
| 122 |
#| msgid "" |
| 123 |
#| "B<splice>() moves data between two file descriptors without copying " |
| 124 |
#| "between kernel address space and user address space. It transfers up to " |
| 125 |
#| "I<len> bytes of data from the file descriptor I<fd_in> to the file " |
| 126 |
#| "descriptor I<fd_out>, where one of the file descriptors must refer to a " |
| 127 |
#| "pipe." |
| 128 |
msgid "" |
| 129 |
"B<splice>() moves data between two file descriptors without copying between " |
| 130 |
"kernel address space and user address space. It transfers up to I<size> " |
| 131 |
"bytes of data from the file descriptor I<fd_in> to the file descriptor " |
| 132 |
"I<fd_out>, where one of the file descriptors must refer to a pipe." |
| 133 |
msgstr "" |
| 134 |
"Вызов B<splice>() перемещает данные между двумя файловыми дескрипторами не " |
| 135 |
"выполняя при этом копирование между адресным пространством пользователя и " |
| 136 |
"ядра. Он пересылает до I<len> байт данных из файлового дескриптора I<fd_in> " |
| 137 |
"в файловый дескриптор I<fd_out>, где один из файловых дескрипторов должен " |
| 138 |
"ссылаться на канал." |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
msgid "The following semantics apply for I<fd_in> and I<off_in>:" |
| 144 |
msgstr "К I<fd_in> и I<off_in> применяются следующие правила:" |
| 145 |
|
| 146 |
#. type: IP |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "\\[bu]" |
| 151 |
msgstr "\\[bu]" |
| 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 "If I<fd_in> refers to a pipe, then I<off_in> must be NULL." |
| 157 |
msgstr "" |
| 158 |
"Если I<fd_in> указывает на канал, то значение I<off_in> должно быть NULL." |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"If I<fd_in> does not refer to a pipe and I<off_in> is NULL, then bytes are " |
| 165 |
"read from I<fd_in> starting from the file offset, and the file offset is " |
| 166 |
"adjusted appropriately." |
| 167 |
msgstr "" |
| 168 |
"Если I<fd_in> не указывает на канал и I<off_in> равно NULL, то из I<fd_in> " |
| 169 |
"читаются байты начиная с смещения файла и это смещение соответственно " |
| 170 |
"изменяется." |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 174 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, fuzzy |
| 176 |
#| msgid "" |
| 177 |
#| "If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then " |
| 178 |
#| "I<off_in> must point to a buffer which specifies the starting offset from " |
| 179 |
#| "which bytes will be read from I<fd_in>; in this case, the file offset of " |
| 180 |
#| "I<fd_in> is not changed." |
| 181 |
msgid "" |
| 182 |
"If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then " |
| 183 |
"I<off_in> must point to a buffer which specifies the starting offset from " |
| 184 |
"which bytes will be read from I<fd_in>; in this case, the file offset of " |
| 185 |
"I<fd_in> is not changed, and the offset pointed to by I<off_in> is adjusted " |
| 186 |
"appropriately instead." |
| 187 |
msgstr "" |
| 188 |
"Если I<fd_in> не указывает на канал и I<off_in> не равно NULL, то I<off_in> " |
| 189 |
"должен указывать на буфер, в котором задаётся начальное смещение для чтения " |
| 190 |
"байтов из I<fd_in>; в этом случае файловое смещение I<fd_in> не изменяется." |
| 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 "Analogous statements apply for I<fd_out> and I<off_out>." |
| 196 |
msgstr "Аналогичные правила относятся и к I<fd_out> и I<off_out>." |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"The I<flags> argument is a bit mask that is composed by ORing together zero " |
| 203 |
"or more of the following values:" |
| 204 |
msgstr "" |
| 205 |
"Аргумент I<flags> представляет собой битовую маску, которая составляется " |
| 206 |
"логическим сложением (OR) следующих значений:" |
| 207 |
|
| 208 |
#. type: TP |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
#, no-wrap |
| 212 |
msgid "B<SPLICE_F_MOVE>" |
| 213 |
msgstr "B<SPLICE_F_MOVE>" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"Attempt to move pages instead of copying. This is only a hint to the " |
| 220 |
"kernel: pages may still be copied if the kernel cannot move the pages from " |
| 221 |
"the pipe, or if the pipe buffers don't refer to full pages. The initial " |
| 222 |
"implementation of this flag was buggy: therefore starting in Linux 2.6.21 it " |
| 223 |
"is a no-op (but is still permitted in a B<splice>() call); in the future, a " |
| 224 |
"correct implementation may be restored." |
| 225 |
msgstr "" |
| 226 |
"Пытаться переместить страницы, а не копировать их. Используется только как " |
| 227 |
"подсказка ядру: страницы всё равно будут копироваться, если ядро не сможет " |
| 228 |
"переместить страницы из канала, или если буферы канала не ссылаются на " |
| 229 |
"полные страницы. Первая реализация этого флага была с дефектами: поэтому " |
| 230 |
"начиная с Linux 2.6.21 этот флаг ни на что не влияет (но по прежнему " |
| 231 |
"разрешён в вызове B<splice>()); в будущем, возможно появится корректная " |
| 232 |
"реализация." |
| 233 |
|
| 234 |
#. type: TP |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
#, no-wrap |
| 238 |
msgid "B<SPLICE_F_NONBLOCK>" |
| 239 |
msgstr "B<SPLICE_F_NONBLOCK>" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
msgid "" |
| 245 |
"Do not block on I/O. This makes the splice pipe operations nonblocking, but " |
| 246 |
"B<splice>() may nevertheless block because the file descriptors that are " |
| 247 |
"spliced to/from may block (unless they have the B<O_NONBLOCK> flag set)." |
| 248 |
msgstr "" |
| 249 |
"Не блокировать при вводе-выводе. Это делает операции соединения с каналом " |
| 250 |
"неблокируемыми, но B<splice>(), тем не менее, может заблокироваться, так как " |
| 251 |
"файловые дескрипторы, с которыми ведётся работа, могут блокироваться (если у " |
| 252 |
"них не установлен флаг B<O_NONBLOCK>)." |
| 253 |
|
| 254 |
#. type: TP |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "B<SPLICE_F_MORE>" |
| 259 |
msgstr "B<SPLICE_F_MORE>" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"More data will be coming in a subsequent splice. This is a helpful hint " |
| 266 |
"when the I<fd_out> refers to a socket (see also the description of " |
| 267 |
"B<MSG_MORE> in B<send>(2), and the description of B<TCP_CORK> in B<tcp>(7))." |
| 268 |
msgstr "" |
| 269 |
"В следующем подключении будут дополнительные данные. Полезно указывать, " |
| 270 |
"когда I<fd_out> ссылается на сокет (смотрите также описание B<MSG_MORE> в " |
| 271 |
"B<send>(2) и описание B<TCP_CORK> в B<tcp>(7))." |
| 272 |
|
| 273 |
#. type: TP |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
#, no-wrap |
| 277 |
msgid "B<SPLICE_F_GIFT>" |
| 278 |
msgstr "B<SPLICE_F_GIFT>" |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
msgid "Unused for B<splice>(); see B<vmsplice>(2)." |
| 284 |
msgstr "Не используется в B<splice>(); смотрите B<vmsplice>(2)." |
| 285 |
|
| 286 |
#. type: SH |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, no-wrap |
| 290 |
msgid "RETURN VALUE" |
| 291 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
msgid "" |
| 297 |
"Upon successful completion, B<splice>() returns the number of bytes spliced " |
| 298 |
"to or from the pipe." |
| 299 |
msgstr "" |
| 300 |
"При успешном выполнении B<splice>() возвращает количество байт, которые были " |
| 301 |
"записаны или получены из канала." |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "" |
| 307 |
"A return value of 0 means end of input. If I<fd_in> refers to a pipe, then " |
| 308 |
"this means that there was no data to transfer, and it would not make sense " |
| 309 |
"to block because there are no writers connected to the write end of the pipe." |
| 310 |
msgstr "" |
| 311 |
"Возвращаемое значение 0 означает конец ввода. Если I<fd_in> указывает на " |
| 312 |
"канал, то это означает, что нет данных для передачи и и блокировка не имела " |
| 313 |
"бы смысла, так как нет писателей, подключённых к пишущему концу канала." |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"On error, B<splice>() returns -1 and I<errno> is set to indicate the error." |
| 320 |
msgstr "" |
| 321 |
"В случае ошибки B<splice>() возвращает -1, а I<errno> устанавливается в " |
| 322 |
"соответствующее значение." |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "ERRORS" |
| 329 |
msgstr "ОШИБКИ" |
| 330 |
|
| 331 |
#. type: TP |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
#, no-wrap |
| 335 |
msgid "B<EAGAIN>" |
| 336 |
msgstr "B<EAGAIN>" |
| 337 |
|
| 338 |
#. type: Plain text |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
msgid "" |
| 342 |
"B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file " |
| 343 |
"descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the " |
| 344 |
"operation would block." |
| 345 |
msgstr "" |
| 346 |
"В I<flags> указан B<SPLICE_F_NONBLOCK> или один из файловых дескрипторов был " |
| 347 |
"помечен как неблокирующий (B<O_NONBLOCK>)B<,> и операция вызвала бы " |
| 348 |
"блокировку." |
| 349 |
|
| 350 |
#. type: TP |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
#, no-wrap |
| 354 |
msgid "B<EBADF>" |
| 355 |
msgstr "B<EBADF>" |
| 356 |
|
| 357 |
#. type: Plain text |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
msgid "" |
| 361 |
"One or both file descriptors are not valid, or do not have proper read-write " |
| 362 |
"mode." |
| 363 |
msgstr "" |
| 364 |
"Один или оба файловых дескриптора недействительны или в неправильном режиме " |
| 365 |
"чтения-записи." |
| 366 |
|
| 367 |
#. type: TP |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid "B<EINVAL>" |
| 372 |
msgstr "B<EINVAL>" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
msgid "The target filesystem doesn't support splicing." |
| 378 |
msgstr "" |
| 379 |
"Целевая файловая система не поддерживает подключение данных (splicing)." |
| 380 |
|
| 381 |
#. The append-mode error is given since Linux 2.6.27; in earlier kernels, |
| 382 |
#. splice() in append mode was broken |
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "The target file is opened in append mode." |
| 387 |
msgstr "Файл назначения открыт в режиме добавления." |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "Neither of the file descriptors refers to a pipe." |
| 393 |
msgstr "Ни один из файловых дескрипторов не ссылается на канал." |
| 394 |
|
| 395 |
#. type: Plain text |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
msgid "An offset was given for nonseekable device (e.g., a pipe)." |
| 399 |
msgstr "" |
| 400 |
"Указано смещение для устройства этого не поддерживающего (например, канала)." |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
msgid "I<fd_in> and I<fd_out> refer to the same pipe." |
| 406 |
msgstr "Значение I<fd_in> и I<fd_out> указывают на один и тот же канал." |
| 407 |
|
| 408 |
#. type: TP |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "B<ENOMEM>" |
| 413 |
msgstr "B<ENOMEM>" |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
msgid "Out of memory." |
| 419 |
msgstr "Не хватает памяти." |
| 420 |
|
| 421 |
#. type: TP |
| 422 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 423 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 424 |
#, no-wrap |
| 425 |
msgid "B<ESPIPE>" |
| 426 |
msgstr "B<ESPIPE>" |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 430 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 431 |
msgid "" |
| 432 |
"Either I<off_in> or I<off_out> was not NULL, but the corresponding file " |
| 433 |
"descriptor refers to a pipe." |
| 434 |
msgstr "" |
| 435 |
"Значение I<off_in> или I<off_out> не равно NULL, но соответствующий файловый " |
| 436 |
"дескриптор ссылается на канал." |
| 437 |
|
| 438 |
#. type: SH |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "STANDARDS" |
| 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 "Linux." |
| 449 |
msgstr "Linux." |
| 450 |
|
| 451 |
#. type: SH |
| 452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 453 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
#, no-wrap |
| 455 |
msgid "HISTORY" |
| 456 |
msgstr "ИСТОРИЯ" |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
msgid "Linux 2.6.17, glibc 2.5." |
| 462 |
msgstr "Linux 2.6.17, glibc 2.5." |
| 463 |
|
| 464 |
#. commit 7c77f0b3f9208c339a4b40737bb2cb0f0319bb8d |
| 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 "" |
| 469 |
"In Linux 2.6.30 and earlier, exactly one of I<fd_in> and I<fd_out> was " |
| 470 |
"required to be a pipe. Since Linux 2.6.31, both arguments may refer to " |
| 471 |
"pipes." |
| 472 |
msgstr "" |
| 473 |
"В Linux 2.6.30 и старее, только один из I<fd_in> и I<fd_out> должен быть " |
| 474 |
"каналом. Начиная с Linux 2.6.31 оба параметра должны быть каналами." |
| 475 |
|
| 476 |
#. type: SH |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "NOTES" |
| 481 |
msgstr "ПРИМЕЧАНИЯ" |
| 482 |
|
| 483 |
#. type: Plain text |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
msgid "" |
| 487 |
"The three system calls B<splice>(), B<vmsplice>(2), and B<tee>(2), provide " |
| 488 |
"user-space programs with full control over an arbitrary kernel buffer, " |
| 489 |
"implemented within the kernel using the same type of buffer that is used for " |
| 490 |
"a pipe. In overview, these system calls perform the following tasks:" |
| 491 |
msgstr "" |
| 492 |
"Три системных вызова — B<splice>(), B<vmsplice>(2), and B<tee>(2), " |
| 493 |
"предоставляют пользовательским программам полный контроль над произвольным " |
| 494 |
"буфером ядра; они реализованы в ядре на базе того же типа буферов, который " |
| 495 |
"используется для канала. Эти системные вызовы выполняют следующие задачи:" |
| 496 |
|
| 497 |
#. type: TP |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, no-wrap |
| 501 |
msgid "B<splice>()" |
| 502 |
msgstr "B<splice>()" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
msgid "" |
| 508 |
"moves data from the buffer to an arbitrary file descriptor, or vice versa, " |
| 509 |
"or from one buffer to another." |
| 510 |
msgstr "" |
| 511 |
"перемещает данные из буфера в произвольный файловый дескриптор или наоборот, " |
| 512 |
"и из одного буфера в другой." |
| 513 |
|
| 514 |
#. type: TP |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
#, no-wrap |
| 518 |
msgid "B<tee>(2)" |
| 519 |
msgstr "B<tee>(2)" |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
msgid "\"copies\" the data from one buffer to another." |
| 525 |
msgstr "«копирует» данные из одного буфера в другой." |
| 526 |
|
| 527 |
#. type: TP |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "B<vmsplice>(2)" |
| 532 |
msgstr "B<vmsplice>(2)" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
msgid "\"copies\" data from user space into the buffer." |
| 538 |
msgstr "«копирует» данные из пользовательского пространства в буфер." |
| 539 |
|
| 540 |
#. Linus: Now, imagine using the above in a media server, for example. |
| 541 |
#. Let's say that a year or two has passed, so that the video drivers |
| 542 |
#. have been updated to be able to do the splice thing, and what can |
| 543 |
#. you do? You can: |
| 544 |
#. - splice from the (mpeg or whatever - let's just assume that the video |
| 545 |
#. input is either digital or does the encoding on its own - like they |
| 546 |
#. pretty much all do) video input into a pipe (remember: no copies - the |
| 547 |
#. video input will just DMA directly into memory, and splice will just |
| 548 |
#. set up the pages in the pipe buffer) |
| 549 |
#. - tee that pipe to split it up |
| 550 |
#. - splice one end to a file (ie "save the compressed stream to disk") |
| 551 |
#. - splice the other end to a real-time video decoder window for your |
| 552 |
#. real-time viewing pleasure. |
| 553 |
#. Linus: Now, the advantage of splice()/tee() is that you can |
| 554 |
#. do zero-copy movement of data, and unlike sendfile() you can |
| 555 |
#. do it on _arbitrary_ data (and, as shown by "tee()", it's more |
| 556 |
#. than just sending the data to somebody else: you can duplicate |
| 557 |
#. the data and choose to forward it to two or more different |
| 558 |
#. users - for things like logging etc.). |
| 559 |
#. type: Plain text |
| 560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 561 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 562 |
msgid "" |
| 563 |
"Though we talk of copying, actual copies are generally avoided. The kernel " |
| 564 |
"does this by implementing a pipe buffer as a set of reference-counted " |
| 565 |
"pointers to pages of kernel memory. The kernel creates \"copies\" of pages " |
| 566 |
"in a buffer by creating new pointers (for the output buffer) referring to " |
| 567 |
"the pages, and increasing the reference counts for the pages: only pointers " |
| 568 |
"are copied, not the pages of the buffer." |
| 569 |
msgstr "" |
| 570 |
"Хотя мы говорим о копировании, на самом деле копирования, обычно, не " |
| 571 |
"происходит. Ядро реализует канальный буфер как набор указателей со счётчиком " |
| 572 |
"ссылок на страницы памяти ядра. Ядро создаёт «копии» страниц в буфере " |
| 573 |
"посредством создания новых указателей (для выходного буфера), указывающих на " |
| 574 |
"страницы, и увеличивает счётчики ссылок страниц: копируются только " |
| 575 |
"указатели, а не страницы буфера." |
| 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 "" |
| 581 |
"B<_FILE_OFFSET_BITS> should be defined to be 64 in code that uses non-null " |
| 582 |
"I<off_in> or I<off_out> or that takes the address of B<splice>, if the code " |
| 583 |
"is intended to be portable to traditional 32-bit x86 and ARM platforms where " |
| 584 |
"B<off_t>'s width defaults to 32 bits." |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. type: SH |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
#, no-wrap |
| 591 |
msgid "EXAMPLES" |
| 592 |
msgstr "ПРИМЕРЫ" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 596 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
msgid "See B<tee>(2) for another example." |
| 598 |
msgstr "" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 602 |
#: opensuse-tumbleweed |
| 603 |
#, no-wrap |
| 604 |
msgid "" |
| 605 |
"\\&\n" |
| 606 |
"#define _GNU_SOURCE\n" |
| 607 |
"#define _FILE_OFFSET_BITS 64\n" |
| 608 |
"#include E<lt>err.hE<gt>\n" |
| 609 |
"#include E<lt>fcntl.hE<gt>\n" |
| 610 |
"#include E<lt>stdint.hE<gt>\n" |
| 611 |
"#include E<lt>stdio.hE<gt>\n" |
| 612 |
"#include E<lt>stdlib.hE<gt>\n" |
| 613 |
"#include E<lt>sys/types.hE<gt>\n" |
| 614 |
"#include E<lt>unistd.hE<gt>\n" |
| 615 |
"\\&\n" |
| 616 |
"int\n" |
| 617 |
"main(void)\n" |
| 618 |
"{\n" |
| 619 |
" int fd;\n" |
| 620 |
" int pfd[2];\n" |
| 621 |
" off_t off;\n" |
| 622 |
" [[gnu::nonstring]]\n" |
| 623 |
"\tconst char s[12] = \"Hello, world\";\n" |
| 624 |
"\\&\n" |
| 625 |
" fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n" |
| 626 |
" if (fd == -1)\n" |
| 627 |
" err(EXIT_FAILURE, \"open\");\n" |
| 628 |
"\\&\n" |
| 629 |
" if (pipe(pfd) == -1)\n" |
| 630 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 631 |
"\\&\n" |
| 632 |
" if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n" |
| 633 |
" err(EXIT_FAILURE, \"write\");\n" |
| 634 |
" if (close(pfd[1]) == -1)\n" |
| 635 |
" err(EXIT_FAILURE, \"close\");\n" |
| 636 |
"\\&\n" |
| 637 |
" off = 10;\n" |
| 638 |
" if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n" |
| 639 |
" err(EXIT_FAILURE, \"splice\");\n" |
| 640 |
" if (close(pfd[0]) == -1)\n" |
| 641 |
" err(EXIT_FAILURE, \"close\");\n" |
| 642 |
"\\&\n" |
| 643 |
" printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n" |
| 644 |
"\\&\n" |
| 645 |
" if (close(fd) == -1)\n" |
| 646 |
" err(EXIT_FAILURE, \"close\");\n" |
| 647 |
" exit(EXIT_SUCCESS);\n" |
| 648 |
"}\n" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#. #-#-#-#-# archlinux: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 652 |
#. SRC END |
| 653 |
#. type: SH |
| 654 |
#. #-#-#-#-# debian-trixie: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 655 |
#. type: SH |
| 656 |
#. #-#-#-#-# debian-unstable: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 657 |
#. SRC END |
| 658 |
#. type: SH |
| 659 |
#. #-#-#-#-# fedora-44: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 660 |
#. SRC END |
| 661 |
#. type: SH |
| 662 |
#. #-#-#-#-# fedora-rawhide: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 663 |
#. SRC END |
| 664 |
#. type: SH |
| 665 |
#. #-#-#-#-# mageia-cauldron: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 666 |
#. SRC END |
| 667 |
#. type: SH |
| 668 |
#. #-#-#-#-# opensuse-leap-16-1: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 669 |
#. SRC END |
| 670 |
#. type: SH |
| 671 |
#. #-#-#-#-# opensuse-tumbleweed: splice.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 672 |
#. SRC END |
| 673 |
#. type: SH |
| 674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 675 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 676 |
#, no-wrap |
| 677 |
msgid "SEE ALSO" |
| 678 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 679 |
|
| 680 |
#. type: Plain text |
| 681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 682 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 683 |
msgid "" |
| 684 |
"B<copy_file_range>(2), B<sendfile>(2), B<tee>(2), B<vmsplice>(2), B<pipe>(7)" |
| 685 |
msgstr "" |
| 686 |
"B<copy_file_range>(2), B<sendfile>(2), B<tee>(2), B<vmsplice>(2), B<pipe>(7)" |
| 687 |
|
| 688 |
#. type: TH |
| 689 |
#: debian-trixie |
| 690 |
#, no-wrap |
| 691 |
msgid "2024-05-02" |
| 692 |
msgstr "2 мая 2024 г." |
| 693 |
|
| 694 |
#. type: TH |
| 695 |
#: debian-trixie |
| 696 |
#, no-wrap |
| 697 |
msgid "Linux man-pages 6.9.1" |
| 698 |
msgstr "Страницы руководства Linux 6.9.1" |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: debian-trixie |
| 702 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 703 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 704 |
|
| 705 |
#. Return type was long before glibc 2.7 |
| 706 |
#. type: Plain text |
| 707 |
#: debian-trixie |
| 708 |
#, fuzzy, no-wrap |
| 709 |
#| msgid "" |
| 710 |
#| "B<ssize_t splice(int >I<fd_in>B<, loff_t *>I<off_in>B<, int >I<fd_out>B<,>\n" |
| 711 |
#| "B< loff_t *>I<off_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 712 |
msgid "" |
| 713 |
"B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 714 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 715 |
"B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 716 |
msgstr "" |
| 717 |
"B<ssize_t splice(int >I<fd_in>B<, loff_t *>I<off_in>B<, int >I<fd_out>B<,>\n" |
| 718 |
"B< loff_t *>I<off_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 719 |
|
| 720 |
#. type: Plain text |
| 721 |
#: debian-trixie |
| 722 |
msgid "" |
| 723 |
"B<splice>() moves data between two file descriptors without copying between " |
| 724 |
"kernel address space and user address space. It transfers up to I<len> " |
| 725 |
"bytes of data from the file descriptor I<fd_in> to the file descriptor " |
| 726 |
"I<fd_out>, where one of the file descriptors must refer to a pipe." |
| 727 |
msgstr "" |
| 728 |
"Вызов B<splice>() перемещает данные между двумя файловыми дескрипторами не " |
| 729 |
"выполняя при этом копирование между адресным пространством пользователя и " |
| 730 |
"ядра. Он пересылает до I<len> байт данных из файлового дескриптора I<fd_in> " |
| 731 |
"в файловый дескриптор I<fd_out>, где один из файловых дескрипторов должен " |
| 732 |
"ссылаться на канал." |
| 733 |
|
| 734 |
#. type: Plain text |
| 735 |
#: debian-trixie |
| 736 |
msgid "" |
| 737 |
"If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then " |
| 738 |
"I<off_in> must point to a buffer which specifies the starting offset from " |
| 739 |
"which bytes will be read from I<fd_in>; in this case, the file offset of " |
| 740 |
"I<fd_in> is not changed." |
| 741 |
msgstr "" |
| 742 |
"Если I<fd_in> не указывает на канал и I<off_in> не равно NULL, то I<off_in> " |
| 743 |
"должен указывать на буфер, в котором задаётся начальное смещение для чтения " |
| 744 |
"байтов из I<fd_in>; в этом случае файловое смещение I<fd_in> не изменяется." |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: debian-trixie |
| 748 |
msgid "See B<tee>(2)." |
| 749 |
msgstr "См. B<tee>(2)." |
| 750 |
|
| 751 |
#. type: TH |
| 752 |
#: fedora-44 fedora-rawhide |
| 753 |
#, no-wrap |
| 754 |
msgid "2024-11-17" |
| 755 |
msgstr "17 ноября 2024 г." |
| 756 |
|
| 757 |
#. type: TH |
| 758 |
#: fedora-44 fedora-rawhide |
| 759 |
#, no-wrap |
| 760 |
msgid "Linux man-pages 6.13" |
| 761 |
msgstr "Страницы руководства Linux 6.13" |
| 762 |
|
| 763 |
#. type: Plain text |
| 764 |
#: fedora-44 fedora-rawhide |
| 765 |
#, no-wrap |
| 766 |
msgid "" |
| 767 |
"\\&\n" |
| 768 |
"#define _GNU_SOURCE\n" |
| 769 |
"#define _FILE_OFFSET_BITS 64\n" |
| 770 |
"#include E<lt>err.hE<gt>\n" |
| 771 |
"#include E<lt>fcntl.hE<gt>\n" |
| 772 |
"#include E<lt>stdint.hE<gt>\n" |
| 773 |
"#include E<lt>stdio.hE<gt>\n" |
| 774 |
"#include E<lt>stdlib.hE<gt>\n" |
| 775 |
"#include E<lt>sys/types.hE<gt>\n" |
| 776 |
"#include E<lt>unistd.hE<gt>\n" |
| 777 |
"\\&\n" |
| 778 |
"int\n" |
| 779 |
"main(void)\n" |
| 780 |
"{\n" |
| 781 |
" int fd;\n" |
| 782 |
" int pfd[2];\n" |
| 783 |
" off_t off;\n" |
| 784 |
" const char s[12] = \"Hello, world\";\n" |
| 785 |
"\\&\n" |
| 786 |
" fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n" |
| 787 |
" if (fd == -1)\n" |
| 788 |
" err(EXIT_FAILURE, \"open\");\n" |
| 789 |
"\\&\n" |
| 790 |
" if (pipe(pfd) == -1)\n" |
| 791 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 792 |
"\\&\n" |
| 793 |
" if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n" |
| 794 |
" err(EXIT_FAILURE, \"write\");\n" |
| 795 |
" if (close(pfd[1]) == -1)\n" |
| 796 |
" err(EXIT_FAILURE, \"close\");\n" |
| 797 |
"\\&\n" |
| 798 |
" off = 10;\n" |
| 799 |
" if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n" |
| 800 |
" err(EXIT_FAILURE, \"splice\");\n" |
| 801 |
" if (close(pfd[0]) == -1)\n" |
| 802 |
" err(EXIT_FAILURE, \"close\");\n" |
| 803 |
"\\&\n" |
| 804 |
" printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n" |
| 805 |
"\\&\n" |
| 806 |
" if (close(fd) == -1)\n" |
| 807 |
" err(EXIT_FAILURE, \"close\");\n" |
| 808 |
" exit(EXIT_SUCCESS);\n" |
| 809 |
"}\n" |
| 810 |
msgstr "" |
| 811 |
|
| 812 |
#. type: TH |
| 813 |
#: mageia-cauldron |
| 814 |
#, no-wrap |
| 815 |
msgid "Linux man-pages 6.17" |
| 816 |
msgstr "Страницы руководства Linux 6.17" |
| 817 |
|
| 818 |
#. type: TH |
| 819 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 820 |
#, no-wrap |
| 821 |
msgid "Linux man-pages (unreleased)" |
| 822 |
msgstr "Страницы руководства Linux (не выпущены)" |