| 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 |
# Azamat Hackimov <[email protected]>, 2014. |
| 5 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 6 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 9 |
# Иван Павлов <[email protected]>, 2017. |
| 10 |
msgid "" |
| 11 |
msgstr "" |
| 12 |
"Project-Id-Version: manpages-l10n\n" |
| 13 |
"POT-Creation-Date: 2026-06-05 06:21+0200\n" |
| 14 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 15 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 16 |
"Language-Team: Russian <[email protected]>\n" |
| 17 |
"Language: ru\n" |
| 18 |
"MIME-Version: 1.0\n" |
| 19 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 20 |
"Content-Transfer-Encoding: 8bit\n" |
| 21 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 22 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 23 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 24 |
"X-Generator: Lokalize 2.0\n" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 28 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "copy_file_range" |
| 31 |
msgstr "copy_file_range" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 35 |
#: opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "2026-02-08" |
| 38 |
msgstr "8 февраля 2026 г." |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable |
| 42 |
#, fuzzy, no-wrap |
| 43 |
#| msgid "Linux man-pages 6.17" |
| 44 |
msgid "Linux man-pages 6.18" |
| 45 |
msgstr "Справочные страницы Linux 6.17" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
#, no-wrap |
| 51 |
msgid "NAME" |
| 52 |
msgstr "НАИМЕНОВАНИЕ" |
| 53 |
|
| 54 |
#. type: Plain text |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
msgid "copy_file_range - Copy a range of data from one file to another" |
| 58 |
msgstr "copy_file_range - копирует часть данных из одного файла в другой" |
| 59 |
|
| 60 |
#. type: SH |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
#, no-wrap |
| 64 |
msgid "LIBRARY" |
| 65 |
msgstr "БИБЛИОТЕКА" |
| 66 |
|
| 67 |
#. type: Plain text |
| 68 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 69 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 71 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 72 |
|
| 73 |
#. type: SH |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "SYNOPSIS" |
| 78 |
msgstr "СИНТАКСИС" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<#define _GNU_SOURCE>\n" |
| 86 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 87 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 88 |
msgstr "" |
| 89 |
"B<#define _GNU_SOURCE>\n" |
| 90 |
"B<#define _FILE_OFFSET_BITS 64>\n" |
| 91 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 95 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, fuzzy, no-wrap |
| 97 |
#| msgid "" |
| 98 |
#| "B<ssize_t copy_file_range(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 99 |
#| "B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 100 |
#| "B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 101 |
msgid "" |
| 102 |
"B<ssize_t copy_file_range(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 103 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 104 |
"B< size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 105 |
msgstr "" |
| 106 |
"B<ssize_t copy_file_range(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 107 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 108 |
"B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 109 |
|
| 110 |
#. type: SH |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
#, no-wrap |
| 114 |
msgid "DESCRIPTION" |
| 115 |
msgstr "ОПИСАНИЕ" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 119 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, fuzzy |
| 121 |
#| msgid "" |
| 122 |
#| "The B<copy_file_range>() system call performs an in-kernel copy between " |
| 123 |
#| "two file descriptors without the additional cost of transferring data " |
| 124 |
#| "from the kernel to user space and then back into the kernel. It copies " |
| 125 |
#| "up to I<len> bytes of data from the source file descriptor I<fd_in> to " |
| 126 |
#| "the target file descriptor I<fd_out>, overwriting any data that exists " |
| 127 |
#| "within the requested range of the target file." |
| 128 |
msgid "" |
| 129 |
"The B<copy_file_range>() system call performs an in-kernel copy between two " |
| 130 |
"file descriptors without the additional cost of transferring data from the " |
| 131 |
"kernel to user space and then back into the kernel. It copies up to I<size> " |
| 132 |
"bytes of data from the source file descriptor I<fd_in> to the target file " |
| 133 |
"descriptor I<fd_out>, overwriting any data that exists within the requested " |
| 134 |
"range of the target file." |
| 135 |
msgstr "" |
| 136 |
"Системный вызов B<copy_file_range>() выполняет внутриядерное копирование " |
| 137 |
"между двумя файловыми дескрипторами без дополнительных накладных расходов по " |
| 138 |
"передаче данных из ядра в пользовательское пространство и затем обратно в " |
| 139 |
"ядро. Он копирует до I<len> байт данных из файлового дескриптора I<fd_in> " |
| 140 |
"источника в файловый дескриптор I<fd_out> приёмника, перезаписывая " |
| 141 |
"существующие данные внутри запрашиваемой области файла назначения." |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"The following semantics apply for I<off_in>, and similar statements apply to " |
| 148 |
"I<off_out>:" |
| 149 |
msgstr "" |
| 150 |
"Следующая семантика применяется к I<off_in> и подобная ей к I<off_out>:" |
| 151 |
|
| 152 |
#. type: IP |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "\\[bu]" |
| 157 |
msgstr "\\[bu]" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"If I<off_in> is NULL, then bytes are read from I<fd_in> starting from the " |
| 164 |
"file offset, and the file offset is adjusted by the number of bytes copied." |
| 165 |
msgstr "" |
| 166 |
"Если I<off_in> равно NULL, то байты читаются из I<fd_in> начиная с файлового " |
| 167 |
"смещения, а файловое смещение корректируется на количество скопированных " |
| 168 |
"байт." |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "" |
| 174 |
"If I<off_in> is not NULL, then I<off_in> must point to a buffer that " |
| 175 |
"specifies the starting offset where bytes from I<fd_in> will be read. The " |
| 176 |
"file offset of I<fd_in> is not changed, but I<off_in> is adjusted " |
| 177 |
"appropriately." |
| 178 |
msgstr "" |
| 179 |
"Если I<off_in> не равно NULL, то I<off_in> должно указывать на буфер, " |
| 180 |
"задающий начальное смещение в I<fd_in>, из которого будут читаться байты. " |
| 181 |
"Файловое смещение I<fd_in> не изменяется, но I<off_in> изменяется " |
| 182 |
"соответствующим образом." |
| 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 |
"I<fd_in> and I<fd_out> can refer to the same file. If they refer to the " |
| 189 |
"same file, then the source and target ranges are not allowed to overlap." |
| 190 |
msgstr "" |
| 191 |
"Значения I<fd_in> и I<fd_out> могут ссылаться на один и тот же файл. Если " |
| 192 |
"это так, то диапазонам источника и приёмника нельзя перекрываться." |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"The I<flags> argument is provided to allow for future extensions and " |
| 199 |
"currently must be set to 0." |
| 200 |
msgstr "" |
| 201 |
"Аргумент I<flags> предназначен для будущих расширений, а пока его значение " |
| 202 |
"должно быть равно 0." |
| 203 |
|
| 204 |
#. type: SH |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "RETURN VALUE" |
| 209 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 213 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
#, fuzzy |
| 215 |
#| msgid "" |
| 216 |
#| "Upon successful completion, B<copy_file_range>() will return the number " |
| 217 |
#| "of bytes copied between files. This could be less than the length " |
| 218 |
#| "originally requested. If the file offset of I<fd_in> is at or past the " |
| 219 |
#| "end of file, no bytes are copied, and B<copy_file_range>() returns zero." |
| 220 |
msgid "" |
| 221 |
"Upon successful completion, B<copy_file_range>() will return the number of " |
| 222 |
"bytes copied between files. This could be less than the size originally " |
| 223 |
"requested. If the file offset of I<fd_in> is at or past the end of file, no " |
| 224 |
"bytes are copied, and B<copy_file_range>() returns zero." |
| 225 |
msgstr "" |
| 226 |
"При успешном выполнении B<copy_file_range>() возвращает количество " |
| 227 |
"скопированных между файлами байт. Оно может быть меньше запрашиваемой длины. " |
| 228 |
"Если файловое смещение I<fd_in> в конце или за концом файла, то байты не " |
| 229 |
"копирются и B<copy_file_range>() возвращает ноль." |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"On error, B<copy_file_range>() returns -1 and I<errno> is set to indicate " |
| 236 |
"the error." |
| 237 |
msgstr "" |
| 238 |
"В случае ошибки B<copy_file_range>() возвращает -1, а I<errno> " |
| 239 |
"устанавливается в соответствующее значение." |
| 240 |
|
| 241 |
#. type: SH |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "ERRORS" |
| 246 |
msgstr "ОШИБКИ" |
| 247 |
|
| 248 |
#. type: TP |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "B<EBADF>" |
| 253 |
msgstr "B<EBADF>" |
| 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 "One or more file descriptors are not valid." |
| 259 |
msgstr "Один или оба файловых дескриптора недействительны." |
| 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 "I<fd_in> is not open for reading; or I<fd_out> is not open for writing." |
| 265 |
msgstr "" |
| 266 |
"Дескриптор I<fd_in> не открыт на чтение или дескриптор I<fd_out> не открыт " |
| 267 |
"на запись." |
| 268 |
|
| 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 |
"The B<O_APPEND> flag is set for the open file description (see B<open>(2)) " |
| 274 |
"referred to by the file descriptor I<fd_out>." |
| 275 |
msgstr "" |
| 276 |
"В открытом файловом описании, на которое ссылается файловый дескриптор " |
| 277 |
"I<fd_out>, установлен флаг B<O_APPEND> (смотрите B<open>(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<EFBIG>" |
| 284 |
msgstr "B<EFBIG>" |
| 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 |
"An attempt was made to write at a position past the maximum file offset the " |
| 291 |
"kernel supports." |
| 292 |
msgstr "" |
| 293 |
"Попытка записать в позицию вне максимально поддерживаемого ядром файлового " |
| 294 |
"смещения." |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "" |
| 300 |
"An attempt was made to write a range that exceeds the allowed maximum file " |
| 301 |
"size. The maximum file size differs between filesystem implementations and " |
| 302 |
"can be different from the maximum allowed file offset." |
| 303 |
msgstr "" |
| 304 |
"Попытка записи диапазона, который превышает разрешённый максимальный размер " |
| 305 |
"файла. Максимальный размер файла различается в реализациях файловых систем и " |
| 306 |
"может отличаться от разрешённого максимального файлового смещения." |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
msgid "" |
| 312 |
"An attempt was made to write beyond the process's file size resource limit. " |
| 313 |
"This may also result in the process receiving a B<SIGXFSZ> signal." |
| 314 |
msgstr "" |
| 315 |
"Попытка записи, выходящее за ограничение ресурса процесса на размер файла. " |
| 316 |
"Также это может вызвать получение процессом сигнала B<SIGXFSZ>." |
| 317 |
|
| 318 |
#. type: TP |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "B<EINVAL>" |
| 323 |
msgstr "B<EINVAL>" |
| 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 |
msgid "The I<flags> argument is not 0." |
| 329 |
msgstr "Аргумент I<flags> не равен 0." |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "" |
| 335 |
"I<fd_in> and I<fd_out> refer to the same file and the source and target " |
| 336 |
"ranges overlap." |
| 337 |
msgstr "" |
| 338 |
"Значения I<fd_in> и I<fd_out> ссылаются на один и тот же файл и диапазоны " |
| 339 |
"источника и приёмника перекрываются." |
| 340 |
|
| 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 "Either I<fd_in> or I<fd_out> is not a regular file." |
| 345 |
msgstr "Значение I<fd_in> или I<fd_out> указывает на необычный файл." |
| 346 |
|
| 347 |
#. type: TP |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "B<EIO>" |
| 352 |
msgstr "B<EIO>" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
msgid "A low-level I/O error occurred while copying." |
| 358 |
msgstr "Во время копирования возникла низкоуровневая ошибка ввода-вывода." |
| 359 |
|
| 360 |
#. type: TP |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "B<EISDIR>" |
| 365 |
msgstr "B<EISDIR>" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
msgid "Either I<fd_in> or I<fd_out> refers to a directory." |
| 371 |
msgstr "Значение I<fd_in> или I<fd_out> указывает на каталог." |
| 372 |
|
| 373 |
#. type: TP |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
#, no-wrap |
| 377 |
msgid "B<ENOMEM>" |
| 378 |
msgstr "B<ENOMEM>" |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 382 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 383 |
msgid "Out of memory." |
| 384 |
msgstr "Не хватает памяти." |
| 385 |
|
| 386 |
#. type: TP |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
#, no-wrap |
| 390 |
msgid "B<ENOSPC>" |
| 391 |
msgstr "B<ENOSPC>" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 395 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 396 |
msgid "" |
| 397 |
"There is not enough space on the target filesystem to complete the copy." |
| 398 |
msgstr "" |
| 399 |
"Недостаточно места на файловой системе назначения для завершения копирования." |
| 400 |
|
| 401 |
#. type: TP |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
#, no-wrap |
| 405 |
msgid "B<EOPNOTSUPP> (since Linux 5.19)" |
| 406 |
msgstr "B<EOPNOTSUPP> (начиная с Linux 5.19)" |
| 407 |
|
| 408 |
#. commit 868f9f2f8e004bfe0d3935b1976f625b2924893b |
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "The filesystem does not support this operation." |
| 413 |
msgstr "Файловая система не поддерживает эту операцию." |
| 414 |
|
| 415 |
#. type: TP |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "B<EOVERFLOW>" |
| 420 |
msgstr "B<EOVERFLOW>" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"The requested source or destination range is too large to represent in the " |
| 427 |
"specified data types." |
| 428 |
msgstr "" |
| 429 |
"Запрошенный диапазон источника и приёмника слишком большой для представления " |
| 430 |
"в указанном типе данных." |
| 431 |
|
| 432 |
#. type: TP |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
#, no-wrap |
| 436 |
msgid "B<EPERM>" |
| 437 |
msgstr "B<EPERM>" |
| 438 |
|
| 439 |
#. type: Plain text |
| 440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 442 |
msgid "I<fd_out> refers to an immutable file." |
| 443 |
msgstr "" |
| 444 |
"Значение I<fd_out> ссылается на файл с постоянными данными (immutable)." |
| 445 |
|
| 446 |
#. type: TP |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "B<ETXTBSY>" |
| 451 |
msgstr "B<ETXTBSY>" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "Either I<fd_in> or I<fd_out> refers to an active swap file." |
| 457 |
msgstr "Значение I<fd_in> или I<fd_out> указывает на активный файл подкачки." |
| 458 |
|
| 459 |
#. type: TP |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
#, no-wrap |
| 463 |
msgid "B<EXDEV> (before Linux 5.3)" |
| 464 |
msgstr "B<EXDEV> (до Linux 5.3)" |
| 465 |
|
| 466 |
#. commit 5dae222a5ff0c269730393018a5539cc970a4726 |
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, fuzzy |
| 471 |
#| msgid "" |
| 472 |
#| "The files referred to by I<file_in> and I<file_out> are not on the same " |
| 473 |
#| "mounted filesystem (pre Linux 5.3)." |
| 474 |
msgid "" |
| 475 |
"The files referred to by I<fd_in> and I<fd_out> are not on the same " |
| 476 |
"filesystem." |
| 477 |
msgstr "" |
| 478 |
"Файлы, на которые ссылаются I<file_in> и I<file_out>, находятся не в одной " |
| 479 |
"смонтированной файловой системе (до Linux 5.3)." |
| 480 |
|
| 481 |
#. type: TP |
| 482 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 483 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 484 |
#, no-wrap |
| 485 |
msgid "B<EXDEV> (since Linux 5.19)" |
| 486 |
msgstr "B<EXDEV> (начиная с Linux 5.19)" |
| 487 |
|
| 488 |
#. commit 868f9f2f8e004bfe0d3935b1976f625b2924893b |
| 489 |
#. type: Plain text |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
#, fuzzy |
| 493 |
#| msgid "" |
| 494 |
#| "The files referred to by I<file_in> and I<file_out> are not on the same " |
| 495 |
#| "mounted filesystem (pre Linux 5.3)." |
| 496 |
msgid "" |
| 497 |
"The files referred to by I<fd_in> and I<fd_out> are not on the same " |
| 498 |
"filesystem, and the source and target filesystems are not of the same type, " |
| 499 |
"or do not support cross-filesystem copy." |
| 500 |
msgstr "" |
| 501 |
"Файлы, на которые ссылаются I<file_in> и I<file_out>, находятся не в одной " |
| 502 |
"смонтированной файловой системе (до Linux 5.3)." |
| 503 |
|
| 504 |
#. type: SH |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "VERSIONS" |
| 509 |
msgstr "ВЕРСИИ" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, fuzzy |
| 515 |
#| msgid "" |
| 516 |
#| "A major rework of the kernel implementation occurred in 5.3. Areas of " |
| 517 |
#| "the API that weren't clearly defined were clarified and the API bounds " |
| 518 |
#| "are much more strictly checked than on earlier kernels. Applications " |
| 519 |
#| "should target the behaviour and requirements of 5.3 kernels." |
| 520 |
msgid "" |
| 521 |
"A major rework of the kernel implementation occurred in Linux 5.3. Areas of " |
| 522 |
"the API that weren't clearly defined were clarified and the API bounds are " |
| 523 |
"much more strictly checked than on earlier kernels." |
| 524 |
msgstr "" |
| 525 |
"В ядре версии 5.3 произошли значительные перемены. Уточнены области API, " |
| 526 |
"которые были нечётно определены, и границы API теперь строже проверяются, по " |
| 527 |
"сравнению с ранними ядрами. Приложения должны следовать поведению и " |
| 528 |
"требованиям ядер 5.3." |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
msgid "" |
| 534 |
"Since Linux 5.19, cross-filesystem copies can be achieved when both " |
| 535 |
"filesystems are of the same type, and that filesystem implements support for " |
| 536 |
"it. See BUGS for behavior prior to Linux 5.19." |
| 537 |
msgstr "" |
| 538 |
|
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 541 |
#: opensuse-tumbleweed |
| 542 |
#, fuzzy |
| 543 |
#| msgid "" |
| 544 |
#| "Applications should target the behaviour and requirements of Linux 5.19, " |
| 545 |
#| "that was also backported to earlier stable kernels." |
| 546 |
msgid "" |
| 547 |
"Applications should target the behavior and requirements of Linux 5.19, that " |
| 548 |
"was also backported to earlier stable kernels." |
| 549 |
msgstr "" |
| 550 |
"Приложения должны ориентироваться на поведение и требования Linux 5.19, " |
| 551 |
"который также был перенесен в более ранние стабильные ядра." |
| 552 |
|
| 553 |
#. type: SH |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
#, no-wrap |
| 557 |
msgid "STANDARDS" |
| 558 |
msgstr "СТАНДАРТЫ" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "Linux, GNU." |
| 564 |
msgstr "Linux, GNU." |
| 565 |
|
| 566 |
#. type: SH |
| 567 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 568 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 569 |
#, no-wrap |
| 570 |
msgid "HISTORY" |
| 571 |
msgstr "ИСТОРИЯ" |
| 572 |
|
| 573 |
#. type: Plain text |
| 574 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 575 |
#: opensuse-tumbleweed |
| 576 |
#, fuzzy |
| 577 |
#| msgid "Linux 4.3." |
| 578 |
msgid "Linux 4.5." |
| 579 |
msgstr "Linux 4.3." |
| 580 |
|
| 581 |
#. glibc.git bad7a0c81f50 (2017-12-22; "copy_file_range: New function to copy file data") |
| 582 |
#. glibc.git 5a659ccc0ec2 (2019-06-28; "io: Remove copy_file_range emulation [BZ #24744]") |
| 583 |
#. type: Plain text |
| 584 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 585 |
#: opensuse-tumbleweed |
| 586 |
msgid "" |
| 587 |
"Before glibc 2.30, starting with glibc 2.27, the glibc wrapper function " |
| 588 |
"provided a user-space fallback implementation when the kernel did not " |
| 589 |
"implement this system call. Since glibc 2.30, that fallback has been " |
| 590 |
"removed; the function now fails with ENOSYS if the kernel lacks support " |
| 591 |
"for .BR copy_file_range ()." |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#. type: SH |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
#, no-wrap |
| 598 |
msgid "NOTES" |
| 599 |
msgstr "ПРИМЕЧАНИЯ" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"If I<fd_in> is a sparse file, then B<copy_file_range>() may expand any " |
| 606 |
"holes existing in the requested range. Users may benefit from calling " |
| 607 |
"B<copy_file_range>() in a loop, and using the B<lseek>(2) B<SEEK_DATA> and " |
| 608 |
"B<SEEK_HOLE> operations to find the locations of data segments." |
| 609 |
msgstr "" |
| 610 |
"Если файл I<fd_in> является разреженным (sparse), то B<copy_file_range>() " |
| 611 |
"может расширить дыры, существующие в запрашиваемой области. Пользователи " |
| 612 |
"могут получить преимущество от вызова B<copy_file_range>() в цикле, и " |
| 613 |
"используя операции B<lseek>(2) B<SEEK_DATA> и B<SEEK_HOLE> для поиска " |
| 614 |
"расположений сегментов данных." |
| 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 "" |
| 620 |
"B<copy_file_range>() gives filesystems an opportunity to implement \"copy " |
| 621 |
"acceleration\" techniques, such as the use of reflinks (i.e., two or more " |
| 622 |
"inodes that share pointers to the same copy-on-write disk blocks) or server-" |
| 623 |
"side-copy (in the case of NFS)." |
| 624 |
msgstr "" |
| 625 |
"Вызов B<copy_file_range>() даёт файловым системам возможность реализовать " |
| 626 |
"«ускорение копирования», например, использовать ссылочные связи (т. е., две " |
| 627 |
"или более инод, использующих общие указатели для одного копирования-при-" |
| 628 |
"записи дисковых блоков) или копирование-на-сервере (server-side-copy, в " |
| 629 |
"случае использования NFS)." |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "" |
| 635 |
"B<_FILE_OFFSET_BITS> should be defined to be 64 in code that uses non-null " |
| 636 |
"I<off_in> or I<off_out> or that takes the address of B<copy_file_range>, if " |
| 637 |
"the code is intended to be portable to traditional 32-bit x86 and ARM " |
| 638 |
"platforms where B<off_t>'s width defaults to 32 bits." |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#. type: SH |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
#, no-wrap |
| 645 |
msgid "BUGS" |
| 646 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 647 |
|
| 648 |
#. type: Plain text |
| 649 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 650 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
msgid "" |
| 652 |
"In Linux 5.3 to Linux 5.18, cross-filesystem copies were implemented by the " |
| 653 |
"kernel, if the operation was not supported by individual filesystems. " |
| 654 |
"However, on some virtual filesystems, the call failed to copy, while still " |
| 655 |
"reporting success." |
| 656 |
msgstr "" |
| 657 |
|
| 658 |
#. type: SH |
| 659 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 660 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 661 |
#, no-wrap |
| 662 |
msgid "EXAMPLES" |
| 663 |
msgstr "ПРИМЕРЫ" |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 667 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
#, fuzzy, no-wrap |
| 669 |
#| msgid "" |
| 670 |
#| "#define _GNU_SOURCE\n" |
| 671 |
#| "#define _FILE_OFFSET_BITS 64\n" |
| 672 |
#| "#include E<lt>fcntl.hE<gt>\n" |
| 673 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 674 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 675 |
#| "#include E<lt>sys/stat.hE<gt>\n" |
| 676 |
#| "#include E<lt>sys/types.hE<gt>\n" |
| 677 |
#| "#include E<lt>unistd.hE<gt>\n" |
| 678 |
#| "\\&\n" |
| 679 |
#| "int\n" |
| 680 |
#| "main(int argc, char *argv[])\n" |
| 681 |
#| "{\n" |
| 682 |
#| " int fd_in, fd_out;\n" |
| 683 |
#| " off_t len, ret;\n" |
| 684 |
#| " struct stat stat;\n" |
| 685 |
#| "\\&\n" |
| 686 |
#| " if (argc != 3) {\n" |
| 687 |
#| " fprintf(stderr, \"Usage: %s E<lt>sourceE<gt> E<lt>destinationE<gt>\\[rs]n\", argv[0]);\n" |
| 688 |
#| " exit(EXIT_FAILURE);\n" |
| 689 |
#| " }\n" |
| 690 |
#| "\\&\n" |
| 691 |
#| " fd_in = open(argv[1], O_RDONLY);\n" |
| 692 |
#| " if (fd_in == -1) {\n" |
| 693 |
#| " perror(\"open (argv[1])\");\n" |
| 694 |
#| " exit(EXIT_FAILURE);\n" |
| 695 |
#| " }\n" |
| 696 |
#| "\\&\n" |
| 697 |
#| " if (fstat(fd_in, &stat) == -1) {\n" |
| 698 |
#| " perror(\"fstat\");\n" |
| 699 |
#| " exit(EXIT_FAILURE);\n" |
| 700 |
#| " }\n" |
| 701 |
#| "\\&\n" |
| 702 |
#| " len = stat.st_size;\n" |
| 703 |
#| "\\&\n" |
| 704 |
#| " fd_out = open(argv[2], O_CREAT | O_WRONLY | O_TRUNC, 0644);\n" |
| 705 |
#| " if (fd_out == -1) {\n" |
| 706 |
#| " perror(\"open (argv[2])\");\n" |
| 707 |
#| " exit(EXIT_FAILURE);\n" |
| 708 |
#| " }\n" |
| 709 |
#| "\\&\n" |
| 710 |
#| " do {\n" |
| 711 |
#| " ret = copy_file_range(fd_in, NULL, fd_out, NULL, len, 0);\n" |
| 712 |
#| " if (ret == -1) {\n" |
| 713 |
#| " perror(\"copy_file_range\");\n" |
| 714 |
#| " exit(EXIT_FAILURE);\n" |
| 715 |
#| " }\n" |
| 716 |
#| "\\&\n" |
| 717 |
#| " len -= ret;\n" |
| 718 |
#| " } while (len E<gt> 0 && ret E<gt> 0);\n" |
| 719 |
#| "\\&\n" |
| 720 |
#| " close(fd_in);\n" |
| 721 |
#| " close(fd_out);\n" |
| 722 |
#| " exit(EXIT_SUCCESS);\n" |
| 723 |
#| "}\n" |
| 724 |
msgid "" |
| 725 |
"#define _GNU_SOURCE\n" |
| 726 |
"#define _FILE_OFFSET_BITS 64\n" |
| 727 |
"#include E<lt>fcntl.hE<gt>\n" |
| 728 |
"#include E<lt>stdio.hE<gt>\n" |
| 729 |
"#include E<lt>stdlib.hE<gt>\n" |
| 730 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 731 |
"#include E<lt>sys/types.hE<gt>\n" |
| 732 |
"#include E<lt>unistd.hE<gt>\n" |
| 733 |
"\\&\n" |
| 734 |
"int\n" |
| 735 |
"main(int argc, char *argv[])\n" |
| 736 |
"{\n" |
| 737 |
" int fd_in, fd_out;\n" |
| 738 |
" off_t size, ret;\n" |
| 739 |
" struct stat stat;\n" |
| 740 |
"\\&\n" |
| 741 |
" if (argc != 3) {\n" |
| 742 |
" fprintf(stderr, \"Usage: %s E<lt>sourceE<gt> E<lt>destinationE<gt>\\[rs]n\", argv[0]);\n" |
| 743 |
" exit(EXIT_FAILURE);\n" |
| 744 |
" }\n" |
| 745 |
"\\&\n" |
| 746 |
" fd_in = open(argv[1], O_RDONLY);\n" |
| 747 |
" if (fd_in == -1) {\n" |
| 748 |
" perror(\"open (argv[1])\");\n" |
| 749 |
" exit(EXIT_FAILURE);\n" |
| 750 |
" }\n" |
| 751 |
"\\&\n" |
| 752 |
" if (fstat(fd_in, &stat) == -1) {\n" |
| 753 |
" perror(\"fstat\");\n" |
| 754 |
" exit(EXIT_FAILURE);\n" |
| 755 |
" }\n" |
| 756 |
"\\&\n" |
| 757 |
" size = stat.st_size;\n" |
| 758 |
"\\&\n" |
| 759 |
" fd_out = open(argv[2], O_CREAT | O_WRONLY | O_TRUNC, 0644);\n" |
| 760 |
" if (fd_out == -1) {\n" |
| 761 |
" perror(\"open (argv[2])\");\n" |
| 762 |
" exit(EXIT_FAILURE);\n" |
| 763 |
" }\n" |
| 764 |
"\\&\n" |
| 765 |
" do {\n" |
| 766 |
" ret = copy_file_range(fd_in, NULL, fd_out, NULL, size, 0);\n" |
| 767 |
" if (ret == -1) {\n" |
| 768 |
" perror(\"copy_file_range\");\n" |
| 769 |
" exit(EXIT_FAILURE);\n" |
| 770 |
" }\n" |
| 771 |
"\\&\n" |
| 772 |
" size -= ret;\n" |
| 773 |
" } while (size E<gt> 0 && ret E<gt> 0);\n" |
| 774 |
"\\&\n" |
| 775 |
" close(fd_in);\n" |
| 776 |
" close(fd_out);\n" |
| 777 |
" exit(EXIT_SUCCESS);\n" |
| 778 |
"}\n" |
| 779 |
msgstr "" |
| 780 |
"#define _GNU_SOURCE\n" |
| 781 |
"#define _FILE_OFFSET_BITS 64\n" |
| 782 |
"#include E<lt>fcntl.hE<gt>\n" |
| 783 |
"#include E<lt>stdio.hE<gt>\n" |
| 784 |
"#include E<lt>stdlib.hE<gt>\n" |
| 785 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 786 |
"#include E<lt>sys/types.hE<gt>\n" |
| 787 |
"#include E<lt>unistd.hE<gt>\n" |
| 788 |
"\\&\n" |
| 789 |
"int\n" |
| 790 |
"main(int argc, char *argv[])\n" |
| 791 |
"{\n" |
| 792 |
" int fd_in, fd_out;\n" |
| 793 |
" off_t len, ret;\n" |
| 794 |
" struct stat stat;\n" |
| 795 |
"\\&\n" |
| 796 |
" if (argc != 3) {\n" |
| 797 |
" fprintf(stderr, \"Usage: %s E<lt>sourceE<gt> E<lt>destinationE<gt>\\[rs]n\", argv[0]);\n" |
| 798 |
" exit(EXIT_FAILURE);\n" |
| 799 |
" }\n" |
| 800 |
"\\&\n" |
| 801 |
" fd_in = open(argv[1], O_RDONLY);\n" |
| 802 |
" if (fd_in == -1) {\n" |
| 803 |
" perror(\"open (argv[1])\");\n" |
| 804 |
" exit(EXIT_FAILURE);\n" |
| 805 |
" }\n" |
| 806 |
"\\&\n" |
| 807 |
" if (fstat(fd_in, &stat) == -1) {\n" |
| 808 |
" perror(\"fstat\");\n" |
| 809 |
" exit(EXIT_FAILURE);\n" |
| 810 |
" }\n" |
| 811 |
"\\&\n" |
| 812 |
" len = stat.st_size;\n" |
| 813 |
"\\&\n" |
| 814 |
" fd_out = open(argv[2], O_CREAT | O_WRONLY | O_TRUNC, 0644);\n" |
| 815 |
" if (fd_out == -1) {\n" |
| 816 |
" perror(\"open (argv[2])\");\n" |
| 817 |
" exit(EXIT_FAILURE);\n" |
| 818 |
" }\n" |
| 819 |
"\\&\n" |
| 820 |
" do {\n" |
| 821 |
" ret = copy_file_range(fd_in, NULL, fd_out, NULL, len, 0);\n" |
| 822 |
" if (ret == -1) {\n" |
| 823 |
" perror(\"copy_file_range\");\n" |
| 824 |
" exit(EXIT_FAILURE);\n" |
| 825 |
" }\n" |
| 826 |
"\\&\n" |
| 827 |
" len -= ret;\n" |
| 828 |
" } while (len E<gt> 0 && ret E<gt> 0);\n" |
| 829 |
"\\&\n" |
| 830 |
" close(fd_in);\n" |
| 831 |
" close(fd_out);\n" |
| 832 |
" exit(EXIT_SUCCESS);\n" |
| 833 |
"}\n" |
| 834 |
|
| 835 |
#. SRC END |
| 836 |
#. type: SH |
| 837 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 838 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 839 |
#, no-wrap |
| 840 |
msgid "SEE ALSO" |
| 841 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 842 |
|
| 843 |
#. type: Plain text |
| 844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 845 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 846 |
msgid "B<lseek>(2), B<sendfile>(2), B<splice>(2)" |
| 847 |
msgstr "B<lseek>(2), B<sendfile>(2), B<splice>(2)" |
| 848 |
|
| 849 |
#. type: TH |
| 850 |
#: debian-trixie |
| 851 |
#, no-wrap |
| 852 |
msgid "2024-06-15" |
| 853 |
msgstr "15 июня 2024 г." |
| 854 |
|
| 855 |
#. type: TH |
| 856 |
#: debian-trixie |
| 857 |
#, no-wrap |
| 858 |
msgid "Linux man-pages 6.9.1" |
| 859 |
msgstr "Страницы руководства Linux 6.9.1" |
| 860 |
|
| 861 |
#. type: Plain text |
| 862 |
#: debian-trixie |
| 863 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 864 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 865 |
|
| 866 |
#. type: Plain text |
| 867 |
#: debian-trixie |
| 868 |
#, no-wrap |
| 869 |
msgid "" |
| 870 |
"B<ssize_t copy_file_range(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 871 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 872 |
"B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 873 |
msgstr "" |
| 874 |
"B<ssize_t copy_file_range(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n" |
| 875 |
"B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n" |
| 876 |
"B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 877 |
|
| 878 |
#. type: Plain text |
| 879 |
#: debian-trixie |
| 880 |
msgid "" |
| 881 |
"The B<copy_file_range>() system call performs an in-kernel copy between two " |
| 882 |
"file descriptors without the additional cost of transferring data from the " |
| 883 |
"kernel to user space and then back into the kernel. It copies up to I<len> " |
| 884 |
"bytes of data from the source file descriptor I<fd_in> to the target file " |
| 885 |
"descriptor I<fd_out>, overwriting any data that exists within the requested " |
| 886 |
"range of the target file." |
| 887 |
msgstr "" |
| 888 |
"Системный вызов B<copy_file_range>() выполняет внутриядерное копирование " |
| 889 |
"между двумя файловыми дескрипторами без дополнительных накладных расходов по " |
| 890 |
"передаче данных из ядра в пользовательское пространство и затем обратно в " |
| 891 |
"ядро. Он копирует до I<len> байт данных из файлового дескриптора I<fd_in> " |
| 892 |
"источника в файловый дескриптор I<fd_out> приёмника, перезаписывая " |
| 893 |
"существующие данные внутри запрашиваемой области файла назначения." |
| 894 |
|
| 895 |
#. type: Plain text |
| 896 |
#: debian-trixie |
| 897 |
msgid "" |
| 898 |
"Upon successful completion, B<copy_file_range>() will return the number of " |
| 899 |
"bytes copied between files. This could be less than the length originally " |
| 900 |
"requested. If the file offset of I<fd_in> is at or past the end of file, no " |
| 901 |
"bytes are copied, and B<copy_file_range>() returns zero." |
| 902 |
msgstr "" |
| 903 |
"При успешном выполнении B<copy_file_range>() возвращает количество " |
| 904 |
"скопированных между файлами байт. Оно может быть меньше запрашиваемой длины. " |
| 905 |
"Если файловое смещение I<fd_in> в конце или за концом файла, то байты не " |
| 906 |
"копирются и B<copy_file_range>() возвращает ноль." |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: debian-trixie fedora-44 fedora-rawhide |
| 910 |
msgid "" |
| 911 |
"Applications should target the behaviour and requirements of Linux 5.19, " |
| 912 |
"that was also backported to earlier stable kernels." |
| 913 |
msgstr "" |
| 914 |
"Приложения должны ориентироваться на поведение и требования Linux 5.19, " |
| 915 |
"который также был перенесен в более ранние стабильные ядра." |
| 916 |
|
| 917 |
#. https://sourceware.org/git/?p=glibc.git;a=commit;f=posix/unistd.h;h=bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f |
| 918 |
#. type: Plain text |
| 919 |
#: debian-trixie fedora-44 fedora-rawhide |
| 920 |
#, fuzzy |
| 921 |
#| msgid "" |
| 922 |
#| "The B<copy_file_range>() system call first appeared in Linux 4.5, but " |
| 923 |
#| "glibc 2.27 provides a user-space emulation when it is not available." |
| 924 |
msgid "" |
| 925 |
"Linux 4.5, but glibc 2.27 provides a user-space emulation when it is not " |
| 926 |
"available." |
| 927 |
msgstr "" |
| 928 |
"Системный вызов B<copy_file_range>() впервые появился в Linux 4.5, но если " |
| 929 |
"он недоступен, в glibc 2.27 предоставляется эмуляция в пользовательском " |
| 930 |
"пространстве." |
| 931 |
|
| 932 |
#. type: Plain text |
| 933 |
#: debian-trixie |
| 934 |
#, no-wrap |
| 935 |
msgid "" |
| 936 |
"#define _GNU_SOURCE\n" |
| 937 |
"#define _FILE_OFFSET_BITS 64\n" |
| 938 |
"#include E<lt>fcntl.hE<gt>\n" |
| 939 |
"#include E<lt>stdio.hE<gt>\n" |
| 940 |
"#include E<lt>stdlib.hE<gt>\n" |
| 941 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 942 |
"#include E<lt>sys/types.hE<gt>\n" |
| 943 |
"#include E<lt>unistd.hE<gt>\n" |
| 944 |
"\\&\n" |
| 945 |
"int\n" |
| 946 |
"main(int argc, char *argv[])\n" |
| 947 |
"{\n" |
| 948 |
" int fd_in, fd_out;\n" |
| 949 |
" off_t len, ret;\n" |
| 950 |
" struct stat stat;\n" |
| 951 |
"\\&\n" |
| 952 |
" if (argc != 3) {\n" |
| 953 |
" fprintf(stderr, \"Usage: %s E<lt>sourceE<gt> E<lt>destinationE<gt>\\[rs]n\", argv[0]);\n" |
| 954 |
" exit(EXIT_FAILURE);\n" |
| 955 |
" }\n" |
| 956 |
"\\&\n" |
| 957 |
" fd_in = open(argv[1], O_RDONLY);\n" |
| 958 |
" if (fd_in == -1) {\n" |
| 959 |
" perror(\"open (argv[1])\");\n" |
| 960 |
" exit(EXIT_FAILURE);\n" |
| 961 |
" }\n" |
| 962 |
"\\&\n" |
| 963 |
" if (fstat(fd_in, &stat) == -1) {\n" |
| 964 |
" perror(\"fstat\");\n" |
| 965 |
" exit(EXIT_FAILURE);\n" |
| 966 |
" }\n" |
| 967 |
"\\&\n" |
| 968 |
" len = stat.st_size;\n" |
| 969 |
"\\&\n" |
| 970 |
" fd_out = open(argv[2], O_CREAT | O_WRONLY | O_TRUNC, 0644);\n" |
| 971 |
" if (fd_out == -1) {\n" |
| 972 |
" perror(\"open (argv[2])\");\n" |
| 973 |
" exit(EXIT_FAILURE);\n" |
| 974 |
" }\n" |
| 975 |
"\\&\n" |
| 976 |
" do {\n" |
| 977 |
" ret = copy_file_range(fd_in, NULL, fd_out, NULL, len, 0);\n" |
| 978 |
" if (ret == -1) {\n" |
| 979 |
" perror(\"copy_file_range\");\n" |
| 980 |
" exit(EXIT_FAILURE);\n" |
| 981 |
" }\n" |
| 982 |
"\\&\n" |
| 983 |
" len -= ret;\n" |
| 984 |
" } while (len E<gt> 0 && ret E<gt> 0);\n" |
| 985 |
"\\&\n" |
| 986 |
" close(fd_in);\n" |
| 987 |
" close(fd_out);\n" |
| 988 |
" exit(EXIT_SUCCESS);\n" |
| 989 |
"}\n" |
| 990 |
msgstr "" |
| 991 |
"#define _GNU_SOURCE\n" |
| 992 |
"#define _FILE_OFFSET_BITS 64\n" |
| 993 |
"#include E<lt>fcntl.hE<gt>\n" |
| 994 |
"#include E<lt>stdio.hE<gt>\n" |
| 995 |
"#include E<lt>stdlib.hE<gt>\n" |
| 996 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 997 |
"#include E<lt>sys/types.hE<gt>\n" |
| 998 |
"#include E<lt>unistd.hE<gt>\n" |
| 999 |
"\\&\n" |
| 1000 |
"int\n" |
| 1001 |
"main(int argc, char *argv[])\n" |
| 1002 |
"{\n" |
| 1003 |
" int fd_in, fd_out;\n" |
| 1004 |
" off_t len, ret;\n" |
| 1005 |
" struct stat stat;\n" |
| 1006 |
"\\&\n" |
| 1007 |
" if (argc != 3) {\n" |
| 1008 |
" fprintf(stderr, \"Usage: %s E<lt>sourceE<gt> E<lt>destinationE<gt>\\[rs]n\", argv[0]);\n" |
| 1009 |
" exit(EXIT_FAILURE);\n" |
| 1010 |
" }\n" |
| 1011 |
"\\&\n" |
| 1012 |
" fd_in = open(argv[1], O_RDONLY);\n" |
| 1013 |
" if (fd_in == -1) {\n" |
| 1014 |
" perror(\"open (argv[1])\");\n" |
| 1015 |
" exit(EXIT_FAILURE);\n" |
| 1016 |
" }\n" |
| 1017 |
"\\&\n" |
| 1018 |
" if (fstat(fd_in, &stat) == -1) {\n" |
| 1019 |
" perror(\"fstat\");\n" |
| 1020 |
" exit(EXIT_FAILURE);\n" |
| 1021 |
" }\n" |
| 1022 |
"\\&\n" |
| 1023 |
" len = stat.st_size;\n" |
| 1024 |
"\\&\n" |
| 1025 |
" fd_out = open(argv[2], O_CREAT | O_WRONLY | O_TRUNC, 0644);\n" |
| 1026 |
" if (fd_out == -1) {\n" |
| 1027 |
" perror(\"open (argv[2])\");\n" |
| 1028 |
" exit(EXIT_FAILURE);\n" |
| 1029 |
" }\n" |
| 1030 |
"\\&\n" |
| 1031 |
" do {\n" |
| 1032 |
" ret = copy_file_range(fd_in, NULL, fd_out, NULL, len, 0);\n" |
| 1033 |
" if (ret == -1) {\n" |
| 1034 |
" perror(\"copy_file_range\");\n" |
| 1035 |
" exit(EXIT_FAILURE);\n" |
| 1036 |
" }\n" |
| 1037 |
"\\&\n" |
| 1038 |
" len -= ret;\n" |
| 1039 |
" } while (len E<gt> 0 && ret E<gt> 0);\n" |
| 1040 |
"\\&\n" |
| 1041 |
" close(fd_in);\n" |
| 1042 |
" close(fd_out);\n" |
| 1043 |
" exit(EXIT_SUCCESS);\n" |
| 1044 |
"}\n" |
| 1045 |
|
| 1046 |
#. type: TH |
| 1047 |
#: fedora-44 fedora-rawhide |
| 1048 |
#, no-wrap |
| 1049 |
msgid "2024-11-17" |
| 1050 |
msgstr "17 ноября 2024 г." |
| 1051 |
|
| 1052 |
#. type: TH |
| 1053 |
#: fedora-44 fedora-rawhide |
| 1054 |
#, no-wrap |
| 1055 |
msgid "Linux man-pages 6.13" |
| 1056 |
msgstr "Страницы руководства Linux 6.13" |
| 1057 |
|
| 1058 |
#. type: TH |
| 1059 |
#: mageia-cauldron |
| 1060 |
#, no-wrap |
| 1061 |
msgid "Linux man-pages 6.17" |
| 1062 |
msgstr "Страницы руководства Linux 6.17" |
| 1063 |
|
| 1064 |
#. type: TH |
| 1065 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1066 |
#, no-wrap |
| 1067 |
msgid "Linux man-pages (unreleased)" |
| 1068 |
msgstr "Страницы руководства Linux (не выпущены)" |