| 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 |
# Yuri Kozlov <[email protected]>, 2012-2019. |
| 5 |
# Иван Павлов <[email protected]>, 2017. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 10 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 11 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 12 |
"Language-Team: Russian <[email protected]>\n" |
| 13 |
"Language: ru\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 18 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 19 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 20 |
"X-Generator: Lokalize 2.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "dup" |
| 27 |
msgstr "dup" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 31 |
#: opensuse-tumbleweed |
| 32 |
#, no-wrap |
| 33 |
msgid "2026-02-08" |
| 34 |
msgstr "8 февраля 2026 г." |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable |
| 38 |
#, fuzzy, no-wrap |
| 39 |
#| msgid "Linux man-pages 6.17" |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Справочные страницы Linux 6.17" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "НАИМЕНОВАНИЕ" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
msgid "dup, dup2, dup3 - duplicate a file descriptor" |
| 54 |
msgstr "dup, dup2, dup3 - создать дубликат файлового дескриптора" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "БИБЛИОТЕКА" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "СИНТАКСИС" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 81 |
msgstr "B<#include E<lt>unistd.hE<gt>>\n" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "" |
| 88 |
"B<int dup(int >I<oldfd>B<);>\n" |
| 89 |
"B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
"B<int dup(int >I<oldfd>B<);>\n" |
| 92 |
"B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 96 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 97 |
#, no-wrap |
| 98 |
msgid "" |
| 99 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 100 |
"B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n" |
| 101 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 102 |
msgstr "" |
| 103 |
"B<#define _GNU_SOURCE> /* См. feature_test_macros(7) */\n" |
| 104 |
"B<#include E<lt>fcntl.hE<gt>> /* Определение констант B<O_*> */\n" |
| 105 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n" |
| 112 |
msgstr "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n" |
| 113 |
|
| 114 |
#. type: SH |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "DESCRIPTION" |
| 119 |
msgstr "ОПИСАНИЕ" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"The B<dup>() system call allocates a new file descriptor that refers to the " |
| 126 |
"same open file description as the descriptor I<oldfd>. (For an explanation " |
| 127 |
"of open file descriptions, see B<open>(2).) The new file descriptor number " |
| 128 |
"is guaranteed to be the lowest-numbered file descriptor that was unused in " |
| 129 |
"the calling process." |
| 130 |
msgstr "" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
#, fuzzy |
| 136 |
#| msgid "" |
| 137 |
#| "After a successful return, the old and new file descriptors may be used " |
| 138 |
#| "interchangeably. They refer to the same open file description (see " |
| 139 |
#| "B<open>(2)) and thus share file offset and file status flags; for " |
| 140 |
#| "example, if the file offset is modified by using B<lseek>(2) on one of " |
| 141 |
#| "the file descriptors, the offset is also changed for the other." |
| 142 |
msgid "" |
| 143 |
"After a successful return, the old and new file descriptors may be used " |
| 144 |
"interchangeably. Since the two file descriptors refer to the same open file " |
| 145 |
"description, they share file offset and file status flags; for example, if " |
| 146 |
"the file offset is modified by using B<lseek>(2) on one of the file " |
| 147 |
"descriptors, the offset is also changed for the other file descriptor." |
| 148 |
msgstr "" |
| 149 |
"После успешного выполнения старый и новый файловые дескрипторы являются " |
| 150 |
"взаимозаменяемыми. Они указывают на одно и то же открытое файловое описание " |
| 151 |
"(смотрите B<open>(2)) и поэтому имеют общее файловое смещение и флаги " |
| 152 |
"состояния файла; например, если файловое смещение изменить с помощью " |
| 153 |
"B<lseek>(2) через один из файловых дескрипторов, то смещение изменится и для " |
| 154 |
"другого." |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The two file descriptors do not share file descriptor flags (the close-on-" |
| 161 |
"exec flag). The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2)) for " |
| 162 |
"the duplicate descriptor is off." |
| 163 |
msgstr "" |
| 164 |
"Эти два файловых дескриптора имеют различные флаги дескриптора файла (флаг " |
| 165 |
"close-on-exec). Флаг close-on-exec (B<FD_CLOEXEC>; см. B<fcntl>(2)) у копии " |
| 166 |
"дескриптора сбрасывается." |
| 167 |
|
| 168 |
#. type: SS |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
#, no-wrap |
| 172 |
msgid "dup2()" |
| 173 |
msgstr "dup2()" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, fuzzy |
| 179 |
#| msgid "" |
| 180 |
#| "The B<dup2>() system call performs the same task as B<dup>(), but " |
| 181 |
#| "instead of using the lowest-numbered unused file descriptor, it uses the " |
| 182 |
#| "file descriptor number specified in I<newfd>. If the file descriptor " |
| 183 |
#| "I<newfd> was previously open, it is silently closed before being reused." |
| 184 |
msgid "" |
| 185 |
"The B<dup2>() system call performs the same task as B<dup>(), but instead " |
| 186 |
"of using the lowest-numbered unused file descriptor, it uses the file " |
| 187 |
"descriptor number specified in I<newfd>. In other words, the file " |
| 188 |
"descriptor I<newfd> is adjusted so that it now refers to the same open file " |
| 189 |
"description as I<oldfd>." |
| 190 |
msgstr "" |
| 191 |
"Системный вызов B<dup2>() выполняет ту же задачу, что и B<dup>(), но вместо " |
| 192 |
"использования самого маленького неиспользуемого номера файлового " |
| 193 |
"дескриптора, он использует номер файлового дескриптора, указанного в " |
| 194 |
"I<newfd>. Если файловый дескриптор I<newfd> уже открыт, то он закрывается " |
| 195 |
"перед повторным использованием." |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"If the file descriptor I<newfd> was previously open, it is closed before " |
| 202 |
"being reused; the close is performed silently (i.e., any errors during the " |
| 203 |
"close are not reported by B<dup2>())." |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"The steps of closing and reusing the file descriptor I<newfd> are performed " |
| 211 |
"I<atomically>. This is important, because trying to implement equivalent " |
| 212 |
"functionality using B<close>(2) and B<dup>() would be subject to race " |
| 213 |
"conditions, whereby I<newfd> might be reused between the two steps. Such " |
| 214 |
"reuse could happen because the main program is interrupted by a signal " |
| 215 |
"handler that allocates a file descriptor, or because a parallel thread " |
| 216 |
"allocates a file descriptor." |
| 217 |
msgstr "" |
| 218 |
"Шаги по закрытию и повторному использованию файлового дескриптора I<newfd> " |
| 219 |
"выполняются I<атомарно>. Это важно, так как попытка реализовать подобное с " |
| 220 |
"помощью B<close>(2) и B<dup>() привело бы к состязательности, в силу чего " |
| 221 |
"I<newfd> мог быть задействован повторно между этими двумя шагами. Такое " |
| 222 |
"повторное использование может произойти, из-за прерывания основной программы " |
| 223 |
"обработчиком сигналов, который выделяет файловый дескриптор, или из-за " |
| 224 |
"параллельной нити, выделяющей файловый дескриптор." |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "Note the following points:" |
| 230 |
msgstr "Также заметим следующее:" |
| 231 |
|
| 232 |
#. type: IP |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
#, no-wrap |
| 236 |
msgid "\\[bu]" |
| 237 |
msgstr "\\[bu]" |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "" |
| 243 |
"If I<oldfd> is not a valid file descriptor, then the call fails, and " |
| 244 |
"I<newfd> is not closed." |
| 245 |
msgstr "" |
| 246 |
"Если I<oldfd> является некорректным файловым дескриптором, то вызов " |
| 247 |
"завершается с ошибкой, а I<newfd> не закрывается." |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "" |
| 253 |
"If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as " |
| 254 |
"I<oldfd>, then B<dup2>() does nothing, and returns I<newfd>." |
| 255 |
msgstr "" |
| 256 |
"Если I<oldfd> является корректным файловым дескриптором, а номер I<newfd> " |
| 257 |
"совпадает с I<oldfd>, то B<dup2>() не делает ничего и возвращает значение " |
| 258 |
"I<newfd>." |
| 259 |
|
| 260 |
#. type: SS |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "dup3()" |
| 265 |
msgstr "dup3()" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "B<dup3>() is the same as B<dup2>(), except that:" |
| 271 |
msgstr "B<dup3>() похож на B<dup2>(). Отличия заключаются в следующем:" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"The caller can force the close-on-exec flag to be set for the new file " |
| 278 |
"descriptor by specifying B<O_CLOEXEC> in I<flags>. See the description of " |
| 279 |
"the same flag in B<open>(2) for reasons why this may be useful." |
| 280 |
msgstr "" |
| 281 |
"Вызывающий может принудительно установить флаг close-on-exec flag у нового " |
| 282 |
"файлового дескриптора, указав B<O_CLOEXEC> в I<flags>. Зачем это может быть " |
| 283 |
"нужно смотрите в B<open>(2)." |
| 284 |
|
| 285 |
#. Ulrich Drepper, LKML, 2008-10-09: |
| 286 |
#. We deliberately decided on this change. Otherwise, what is the |
| 287 |
#. result of dup3(fd, fd, O_CLOEXEC)? |
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"If I<oldfd> equals I<newfd>, then B<dup3>() fails with the error B<EINVAL>." |
| 293 |
msgstr "Если I<oldfd> равно I<newfd>, то B<dup3>() выдает ошибку B<EINVAL>." |
| 294 |
|
| 295 |
#. type: SH |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
#, no-wrap |
| 299 |
msgid "RETURN VALUE" |
| 300 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, fuzzy |
| 306 |
#| msgid "" |
| 307 |
#| "On success, these system calls return the new file descriptor. On error, " |
| 308 |
#| "-1 is returned, and I<errno> is set appropriately." |
| 309 |
msgid "" |
| 310 |
"On success, these system calls return the new file descriptor. On error, -1 " |
| 311 |
"is returned, and I<errno> is set to indicate the error." |
| 312 |
msgstr "" |
| 313 |
"В случае успеха данные системные вызовы возвращают новый файловый дескриптор " |
| 314 |
"или -1, если произошла ошибка (в этом случае I<errno> устанавливается " |
| 315 |
"должным образом)." |
| 316 |
|
| 317 |
#. type: SH |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "ERRORS" |
| 322 |
msgstr "ОШИБКИ" |
| 323 |
|
| 324 |
#. type: TP |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "B<EBADF>" |
| 329 |
msgstr "B<EBADF>" |
| 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 "I<oldfd> isn't an open file descriptor." |
| 335 |
msgstr "Значение I<oldfd> не является открытым файловым дескриптором." |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
msgid "" |
| 341 |
"I<newfd> is out of the allowed range for file descriptors (see the " |
| 342 |
"discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 343 |
msgstr "" |
| 344 |
"Значение I<newfd> находится вне допустимого диапазона файловых дескрипторов " |
| 345 |
"(смотрите описание B<RLIMIT_NOFILE> в B<getrlimit>(2))." |
| 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<EBUSY>" |
| 352 |
msgstr "B<EBUSY>" |
| 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 "" |
| 358 |
"(Linux only) This may be returned by B<dup2>() or B<dup3>() during a race " |
| 359 |
"condition with B<open>(2) and B<dup>()." |
| 360 |
msgstr "" |
| 361 |
"(только в Linux) Может случиться в B<dup2>() или B<dup3>() при возникновении " |
| 362 |
"состязательности вызовов B<open>(2) и B<dup>()." |
| 363 |
|
| 364 |
#. type: TP |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "B<EINTR>" |
| 369 |
msgstr "B<EINTR>" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"The B<dup2>() or B<dup3>() call was interrupted by a signal; see " |
| 376 |
"B<signal>(7)." |
| 377 |
msgstr "" |
| 378 |
"Вызов B<dup2>() или B<dup3>() был прерван каким-либо сигналом. Смотрите " |
| 379 |
"B<signal>(7)." |
| 380 |
|
| 381 |
#. type: TP |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "B<EINVAL>" |
| 386 |
msgstr "B<EINVAL>" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "(B<dup3>()) I<flags> contain an invalid value." |
| 392 |
msgstr "(B<dup3>()) I<flags> содержит некорректное значение." |
| 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 "(B<dup3>()) I<oldfd> was equal to I<newfd>." |
| 398 |
msgstr "(B<dup3>()) I<oldfd> было равно I<newfd>." |
| 399 |
|
| 400 |
#. type: TP |
| 401 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 402 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 403 |
#, no-wrap |
| 404 |
msgid "B<EMFILE>" |
| 405 |
msgstr "B<EMFILE>" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
msgid "" |
| 411 |
"The per-process limit on the number of open file descriptors has been " |
| 412 |
"reached (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 413 |
msgstr "" |
| 414 |
"Было достигнуто ограничение по количеству открытых файловых дескрипторов на " |
| 415 |
"процесс (смотрите описание B<RLIMIT_NOFILE> в B<getrlimit>(2))." |
| 416 |
|
| 417 |
#. type: TP |
| 418 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 419 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
#, no-wrap |
| 421 |
msgid "B<ENOMEM>" |
| 422 |
msgstr "B<ENOMEM>" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 426 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
msgid "Insufficient kernel memory was available." |
| 428 |
msgstr "Недостаточное количество памяти ядра." |
| 429 |
|
| 430 |
#. type: SH |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
#, no-wrap |
| 434 |
msgid "STANDARDS" |
| 435 |
msgstr "СТАНДАРТЫ" |
| 436 |
|
| 437 |
#. type: Plain text |
| 438 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 439 |
#: opensuse-tumbleweed |
| 440 |
msgid "POSIX.1-2024." |
| 441 |
msgstr "POSIX.1-2024." |
| 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 "HISTORY" |
| 448 |
msgstr "ИСТОРИЯ" |
| 449 |
|
| 450 |
#. type: TP |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, no-wrap |
| 454 |
msgid "B<dup>()" |
| 455 |
msgstr "B<dup>()" |
| 456 |
|
| 457 |
#. type: TQ |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
#, no-wrap |
| 461 |
msgid "B<dup2>()" |
| 462 |
msgstr "B<dup2>()" |
| 463 |
|
| 464 |
#. SVr4 documents additional |
| 465 |
#. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR. |
| 466 |
#. The EBUSY return is Linux-specific. |
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 469 |
#: opensuse-tumbleweed |
| 470 |
#, fuzzy |
| 471 |
#| msgid "4.4BSD, SVr4, POSIX.1-2001." |
| 472 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 473 |
msgstr "4.4BSD, SVr4, POSIX.1-2001." |
| 474 |
|
| 475 |
#. type: TP |
| 476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
#, no-wrap |
| 479 |
msgid "B<dup3>()" |
| 480 |
msgstr "B<dup3>()" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 484 |
#: opensuse-tumbleweed |
| 485 |
#, fuzzy |
| 486 |
#| msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 487 |
msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9." |
| 488 |
msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 489 |
|
| 490 |
#. type: SH |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
#, no-wrap |
| 494 |
msgid "NOTES" |
| 495 |
msgstr "ПРИМЕЧАНИЯ" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
msgid "" |
| 501 |
"The error returned by B<dup2>() is different from that returned by " |
| 502 |
"B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range. On some " |
| 503 |
"systems, B<dup2>() also sometimes returns B<EINVAL> like B<F_DUPFD>." |
| 504 |
msgstr "" |
| 505 |
"Ошибка, которую возвращает B<dup2>(), отличается от той, что возвращает " |
| 506 |
"B<fcntl(>…, B<F_DUPFD>, …B<)>, когда I<newfd> находится вне допустимых " |
| 507 |
"пределов. На некоторых системах B<dup2>() также иногда возвращает B<EINVAL> " |
| 508 |
"— как B<F_DUPFD>." |
| 509 |
|
| 510 |
#. type: Plain text |
| 511 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 512 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 513 |
#, fuzzy |
| 514 |
#| msgid "" |
| 515 |
#| "If I<newfd> was open, any errors that would have been reported at " |
| 516 |
#| "B<close>(2) time are lost. If this is of concern, then\\(emunless the " |
| 517 |
#| "program is single-threaded and does not allocate file descriptors in " |
| 518 |
#| "signal handlers\\(emthe correct approach is I<not> to close I<newfd> " |
| 519 |
#| "before calling B<dup2>(), because of the race condition described above. " |
| 520 |
#| "Instead, code something like the following could be used:" |
| 521 |
msgid "" |
| 522 |
"If I<newfd> was open, any errors that would have been reported at " |
| 523 |
"B<close>(2) time are lost. If this is of concern, then\\[em]unless the " |
| 524 |
"program is single-threaded and does not allocate file descriptors in signal " |
| 525 |
"handlers\\[em]the correct approach is I<not> to close I<newfd> before " |
| 526 |
"calling B<dup2>(), because of the race condition described above. Instead, " |
| 527 |
"code something like the following could be used:" |
| 528 |
msgstr "" |
| 529 |
"Если был открыт I<newfd>, то любые ошибки, о которых было бы сообщено " |
| 530 |
"B<close>(2), теряются. Если это важно, то (если программа однонитевая и не " |
| 531 |
"выделяет файловые дескрипторы в обработчиках сигналов) правильней будет " |
| 532 |
"I<не> закрывать I<newfd> перед вызовом B<dup2>(), из-за состязательности, " |
| 533 |
"описанной выше. Вместо этого можно использовать, например, такой код:" |
| 534 |
|
| 535 |
#. type: Plain text |
| 536 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 537 |
#: opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "" |
| 540 |
"/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n" |
| 541 |
" be used to check for close() errors; an EBADF error\n" |
| 542 |
" means that \\[aq]newfd\\[aq] was not open. */\n" |
| 543 |
"\\&\n" |
| 544 |
"tmpfd = dup(newfd);\n" |
| 545 |
"if (tmpfd == -1 && errno != EBADF) {\n" |
| 546 |
" /* Handle unexpected dup() error. */\n" |
| 547 |
"}\n" |
| 548 |
"\\&\n" |
| 549 |
"/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n" |
| 550 |
"\\&\n" |
| 551 |
"if (dup2(oldfd, newfd) == -1) {\n" |
| 552 |
" /* Handle dup2() error. */\n" |
| 553 |
"}\n" |
| 554 |
"\\&\n" |
| 555 |
"/* Now check for close() errors on the file originally\n" |
| 556 |
" referred to by \\[aq]newfd\\[aq]. */\n" |
| 557 |
"\\&\n" |
| 558 |
"if (tmpfd != -1) {\n" |
| 559 |
" if (close(tmpfd) == -1) {\n" |
| 560 |
" /* Handle errors from close. */\n" |
| 561 |
" }\n" |
| 562 |
"}\n" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: SH |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
#, no-wrap |
| 569 |
msgid "SEE ALSO" |
| 570 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 571 |
|
| 572 |
#. type: Plain text |
| 573 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 574 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 575 |
msgid "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)" |
| 576 |
msgstr "B<close>(2), B<fcntl>(2), B<open>(2), B<pidfd_getfd>(2)" |
| 577 |
|
| 578 |
#. type: TH |
| 579 |
#: debian-trixie |
| 580 |
#, no-wrap |
| 581 |
msgid "2024-05-02" |
| 582 |
msgstr "2 мая 2024 г." |
| 583 |
|
| 584 |
#. type: TH |
| 585 |
#: debian-trixie |
| 586 |
#, no-wrap |
| 587 |
msgid "Linux man-pages 6.9.1" |
| 588 |
msgstr "Страницы руководства Linux 6.9.1" |
| 589 |
|
| 590 |
#. type: Plain text |
| 591 |
#: debian-trixie |
| 592 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 593 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 594 |
|
| 595 |
#. type: Plain text |
| 596 |
#: debian-trixie fedora-44 fedora-rawhide |
| 597 |
msgid "POSIX.1-2008." |
| 598 |
msgstr "POSIX.1-2008." |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: debian-trixie fedora-44 fedora-rawhide |
| 602 |
msgid "Linux." |
| 603 |
msgstr "Linux." |
| 604 |
|
| 605 |
#. SVr4 documents additional |
| 606 |
#. EINTR and ENOLINK error conditions. POSIX.1 adds EINTR. |
| 607 |
#. The EBUSY return is Linux-specific. |
| 608 |
#. type: Plain text |
| 609 |
#: debian-trixie fedora-44 fedora-rawhide |
| 610 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 611 |
msgstr "POSIX.1-2001, SVr4, 4.3BSD." |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: debian-trixie fedora-44 fedora-rawhide |
| 615 |
msgid "Linux 2.6.27, glibc 2.9." |
| 616 |
msgstr "Linux 2.6.27, glibc 2.9." |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: debian-trixie fedora-44 fedora-rawhide |
| 620 |
#, no-wrap |
| 621 |
msgid "" |
| 622 |
"/* Obtain a duplicate of \\[aq]newfd\\[aq] that can subsequently\n" |
| 623 |
" be used to check for close() errors; an EBADF error\n" |
| 624 |
" means that \\[aq]newfd\\[aq] was not open. */\n" |
| 625 |
"\\&\n" |
| 626 |
"tmpfd = dup(newfd);\n" |
| 627 |
"if (tmpfd == -1 && errno != EBADF) {\n" |
| 628 |
" /* Handle unexpected dup() error. */\n" |
| 629 |
"}\n" |
| 630 |
"\\&\n" |
| 631 |
"/* Atomically duplicate \\[aq]oldfd\\[aq] on \\[aq]newfd\\[aq]. */\n" |
| 632 |
"\\&\n" |
| 633 |
"if (dup2(oldfd, newfd) == -1) {\n" |
| 634 |
" /* Handle dup2() error. */\n" |
| 635 |
"}\n" |
| 636 |
"\\&\n" |
| 637 |
"/* Now check for close() errors on the file originally\n" |
| 638 |
" referred to by \\[aq]newfd\\[aq]. */\n" |
| 639 |
"\\&\n" |
| 640 |
"if (tmpfd != -1) {\n" |
| 641 |
" if (close(tmpfd) == -1) {\n" |
| 642 |
" /* Handle errors from close. */\n" |
| 643 |
" }\n" |
| 644 |
"}\n" |
| 645 |
msgstr "" |
| 646 |
|
| 647 |
#. type: TH |
| 648 |
#: fedora-44 fedora-rawhide |
| 649 |
#, no-wrap |
| 650 |
msgid "2024-11-01" |
| 651 |
msgstr "1 ноября 2024 г." |
| 652 |
|
| 653 |
#. type: TH |
| 654 |
#: fedora-44 fedora-rawhide |
| 655 |
#, no-wrap |
| 656 |
msgid "Linux man-pages 6.13" |
| 657 |
msgstr "Страницы руководства Linux 6.13" |
| 658 |
|
| 659 |
#. type: TH |
| 660 |
#: mageia-cauldron |
| 661 |
#, no-wrap |
| 662 |
msgid "Linux man-pages 6.17" |
| 663 |
msgstr "Страницы руководства Linux 6.17" |
| 664 |
|
| 665 |
#. type: TH |
| 666 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
#, no-wrap |
| 668 |
msgid "Linux man-pages (unreleased)" |
| 669 |
msgstr "Страницы руководства Linux (не выпущены)" |