| 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]>, 2017. |
| 5 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 6 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 7 |
# Иван Павлов <[email protected]>, 2017. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-l10n\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:24+0200\n" |
| 12 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 13 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 14 |
"Language-Team: Russian <[email protected]>\n" |
| 15 |
"Language: ru\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 20 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 21 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 22 |
"X-Generator: Lokalize 2.0\n" |
| 23 |
|
| 24 |
#. type: TH |
| 25 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 26 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 27 |
#, no-wrap |
| 28 |
msgid "fcntl" |
| 29 |
msgstr "fcntl" |
| 30 |
|
| 31 |
#. type: TH |
| 32 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 33 |
#: opensuse-tumbleweed |
| 34 |
#, no-wrap |
| 35 |
msgid "2026-02-08" |
| 36 |
msgstr "8 февраля 2026 г." |
| 37 |
|
| 38 |
#. type: TH |
| 39 |
#: archlinux debian-unstable |
| 40 |
#, fuzzy, no-wrap |
| 41 |
#| msgid "Linux man-pages 6.17" |
| 42 |
msgid "Linux man-pages 6.18" |
| 43 |
msgstr "Справочные страницы Linux 6.17" |
| 44 |
|
| 45 |
#. type: SH |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
#, no-wrap |
| 49 |
msgid "NAME" |
| 50 |
msgstr "НАИМЕНОВАНИЕ" |
| 51 |
|
| 52 |
#. type: Plain text |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
msgid "fcntl - manipulate file descriptor" |
| 56 |
msgstr "fcntl - работа с файловым дескриптором" |
| 57 |
|
| 58 |
#. type: SH |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, no-wrap |
| 62 |
msgid "LIBRARY" |
| 63 |
msgstr "БИБЛИОТЕКА" |
| 64 |
|
| 65 |
#. type: Plain text |
| 66 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 67 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 69 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 70 |
|
| 71 |
#. type: SH |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "SYNOPSIS" |
| 76 |
msgstr "СИНТАКСИС" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "B<#include E<lt>fcntl.hE<gt>>\n" |
| 83 |
msgstr "B<#include E<lt>fcntl.hE<gt>>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 87 |
#: opensuse-tumbleweed |
| 88 |
#, fuzzy, no-wrap |
| 89 |
#| msgid "B<int ioctl(int >I<fd>B<, int >I<op>B<, ...);>\n" |
| 90 |
msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ...);>\n" |
| 91 |
msgstr "B<int ioctl(int >I<fd>B<, int >I<op>B<, ...);>\n" |
| 92 |
|
| 93 |
#. type: SH |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "DESCRIPTION" |
| 98 |
msgstr "ОПИСАНИЕ" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, fuzzy |
| 104 |
#| msgid "" |
| 105 |
#| "B<fcntl>() performs one of the operations described below on the open " |
| 106 |
#| "file descriptor I<fd>. The operation is determined by I<cmd>." |
| 107 |
msgid "" |
| 108 |
"B<fcntl>() performs one of the operations described below on the open file " |
| 109 |
"descriptor I<fd>. The operation is determined by I<op>." |
| 110 |
msgstr "" |
| 111 |
"B<fcntl>() позволяет выполнять различные команды над открытым файловым " |
| 112 |
"дескриптором I<fd>. Команда определяется содержимым аргумента I<cmd>." |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, fuzzy |
| 118 |
#| msgid "" |
| 119 |
#| "Certain of the operations below are supported only since a particular " |
| 120 |
#| "Linux kernel version. The preferred method of checking whether the host " |
| 121 |
#| "kernel supports a particular operation is to invoke B<fcntl>() with the " |
| 122 |
#| "desired I<cmd> value and then test whether the call failed with " |
| 123 |
#| "B<EINVAL>, indicating that the kernel does not recognize this value." |
| 124 |
msgid "" |
| 125 |
"Certain of the operations below are supported only since a particular Linux " |
| 126 |
"kernel version. The preferred method of checking whether the host kernel " |
| 127 |
"supports a particular operation is to invoke B<fcntl>() with the desired " |
| 128 |
"I<op> value and then test whether the call failed with B<EINVAL>, indicating " |
| 129 |
"that the kernel does not recognize this value." |
| 130 |
msgstr "" |
| 131 |
"Некоторые операции, описанные далее, поддерживаются только начиная с " |
| 132 |
"определённой версии ядра Linux. Корректным методом проверки доступности " |
| 133 |
"операции в ядре является вызов B<fcntl>() с желаемой операцией в I<cmd> и " |
| 134 |
"сравнение кода возврата вызов с B<EINVAL>, который указывает на " |
| 135 |
"неподдерживаемость значения ядром." |
| 136 |
|
| 137 |
#. type: SS |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "Duplicating a file descriptor" |
| 142 |
msgstr "Создание дубликата файлового дескриптора" |
| 143 |
|
| 144 |
#. type: TP |
| 145 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 146 |
#: opensuse-tumbleweed |
| 147 |
#, fuzzy, no-wrap |
| 148 |
#| msgid "B<F_DUPFD> (I<int>)" |
| 149 |
msgid "B<F_DUPFD>(2const)" |
| 150 |
msgstr "B<F_DUPFD> (I<int>)" |
| 151 |
|
| 152 |
#. type: TQ |
| 153 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 154 |
#: opensuse-tumbleweed |
| 155 |
#, fuzzy, no-wrap |
| 156 |
#| msgid "B<FD_CLOEXEC>" |
| 157 |
msgid "B<F_DUPFD_CLOEXEC>(2const)" |
| 158 |
msgstr "B<FD_CLOEXEC>" |
| 159 |
|
| 160 |
#. type: SS |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "File descriptor flags" |
| 165 |
msgstr "Флаги файлового дескриптора" |
| 166 |
|
| 167 |
#. type: TP |
| 168 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 169 |
#: opensuse-tumbleweed |
| 170 |
#, fuzzy, no-wrap |
| 171 |
#| msgid "B<F_GETFD>" |
| 172 |
msgid "B<F_GETFD>(2const)" |
| 173 |
msgstr "B<F_GETFD>" |
| 174 |
|
| 175 |
#. type: TQ |
| 176 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 177 |
#: opensuse-tumbleweed |
| 178 |
#, fuzzy, no-wrap |
| 179 |
#| msgid "B<F_SETFD> (I<int>)" |
| 180 |
msgid "B<F_SETFD>(2const)" |
| 181 |
msgstr "B<F_SETFD> (I<int>)" |
| 182 |
|
| 183 |
#. type: SS |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
#, no-wrap |
| 187 |
msgid "File status flags" |
| 188 |
msgstr "Флаги состояния файла" |
| 189 |
|
| 190 |
#. type: TP |
| 191 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 192 |
#: opensuse-tumbleweed |
| 193 |
#, fuzzy, no-wrap |
| 194 |
#| msgid "B<F_GETFL>" |
| 195 |
msgid "B<F_GETFL>(2const)" |
| 196 |
msgstr "B<F_GETFL>" |
| 197 |
|
| 198 |
#. type: TQ |
| 199 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 200 |
#: opensuse-tumbleweed |
| 201 |
#, fuzzy, no-wrap |
| 202 |
#| msgid "B<F_SETFL> (I<int>)" |
| 203 |
msgid "B<F_SETFL>(2const)" |
| 204 |
msgstr "B<F_SETFL> (I<int>)" |
| 205 |
|
| 206 |
#. type: SS |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "Advisory record locking" |
| 211 |
msgstr "Консультативная (advisory) блокировка" |
| 212 |
|
| 213 |
#. type: TP |
| 214 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 215 |
#: opensuse-tumbleweed |
| 216 |
#, fuzzy, no-wrap |
| 217 |
#| msgid "B<F_SETFL> (I<int>)" |
| 218 |
msgid "B<F_SETLK>(2const)" |
| 219 |
msgstr "B<F_SETFL> (I<int>)" |
| 220 |
|
| 221 |
#. type: TQ |
| 222 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 223 |
#: opensuse-tumbleweed |
| 224 |
#, fuzzy, no-wrap |
| 225 |
#| msgid "B<F_SETFL> (I<int>)" |
| 226 |
msgid "B<F_SETLKW>(2const)" |
| 227 |
msgstr "B<F_SETFL> (I<int>)" |
| 228 |
|
| 229 |
#. type: TQ |
| 230 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 231 |
#: opensuse-tumbleweed |
| 232 |
#, fuzzy, no-wrap |
| 233 |
#| msgid "B<F_SETFL> (I<int>)" |
| 234 |
msgid "B<F_GETLK>(2const)" |
| 235 |
msgstr "B<F_SETFL> (I<int>)" |
| 236 |
|
| 237 |
#. type: SS |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "Open file description locks (non-POSIX)" |
| 242 |
msgstr "Блокировки открытых файловых описаний (не POSIX)" |
| 243 |
|
| 244 |
#. type: TP |
| 245 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 246 |
#: opensuse-tumbleweed |
| 247 |
#, fuzzy, no-wrap |
| 248 |
#| msgid "B<F_OFD_SETLK> (I<struct flock *>)" |
| 249 |
msgid "B<F_OFD_SETLK>(2const)" |
| 250 |
msgstr "B<F_OFD_SETLK> (I<struct flock *>)" |
| 251 |
|
| 252 |
#. type: TQ |
| 253 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 254 |
#: opensuse-tumbleweed |
| 255 |
#, fuzzy, no-wrap |
| 256 |
#| msgid "B<F_OFD_SETLKW> (I<struct flock *>)" |
| 257 |
msgid "B<F_OFD_SETLKW>(2const)" |
| 258 |
msgstr "B<F_OFD_SETLKW> (I<struct flock *>)" |
| 259 |
|
| 260 |
#. type: TQ |
| 261 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 262 |
#: opensuse-tumbleweed |
| 263 |
#, fuzzy, no-wrap |
| 264 |
#| msgid "B<F_OFD_GETLK> (I<struct flock *>)" |
| 265 |
msgid "B<F_OFD_GETLK>(2const)" |
| 266 |
msgstr "B<F_OFD_GETLK> (I<struct flock *>)" |
| 267 |
|
| 268 |
#. type: SS |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "Managing signals" |
| 273 |
msgstr "Управление сигналами" |
| 274 |
|
| 275 |
#. type: TP |
| 276 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 277 |
#: opensuse-tumbleweed |
| 278 |
#, fuzzy, no-wrap |
| 279 |
#| msgid "B<F_GETOWN>" |
| 280 |
msgid "B<F_GETOWN>(2const)" |
| 281 |
msgstr "B<F_GETOWN>" |
| 282 |
|
| 283 |
#. type: TQ |
| 284 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 285 |
#: opensuse-tumbleweed |
| 286 |
#, fuzzy, no-wrap |
| 287 |
#| msgid "B<F_SETOWN> (I<int>)" |
| 288 |
msgid "B<F_SETOWN>(2const)" |
| 289 |
msgstr "B<F_SETOWN> (I<int>)" |
| 290 |
|
| 291 |
#. type: TQ |
| 292 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 293 |
#: opensuse-tumbleweed |
| 294 |
#, fuzzy, no-wrap |
| 295 |
#| msgid "B<F_GETOWN>" |
| 296 |
msgid "B<F_GETOWN_EX>(2const)" |
| 297 |
msgstr "B<F_GETOWN>" |
| 298 |
|
| 299 |
#. type: TQ |
| 300 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 301 |
#: opensuse-tumbleweed |
| 302 |
#, fuzzy, no-wrap |
| 303 |
#| msgid "B<F_SETOWN> (I<int>)" |
| 304 |
msgid "B<F_SETOWN_EX>(2const)" |
| 305 |
msgstr "B<F_SETOWN> (I<int>)" |
| 306 |
|
| 307 |
#. type: TQ |
| 308 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 309 |
#: opensuse-tumbleweed |
| 310 |
#, fuzzy, no-wrap |
| 311 |
#| msgid "B<F_GETSIG>" |
| 312 |
msgid "B<F_GETSIG>(2const)" |
| 313 |
msgstr "B<F_GETSIG>" |
| 314 |
|
| 315 |
#. type: TQ |
| 316 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 317 |
#: opensuse-tumbleweed |
| 318 |
#, fuzzy, no-wrap |
| 319 |
#| msgid "B<F_SETSIG> (I<int>)" |
| 320 |
msgid "B<F_SETSIG>(2const)" |
| 321 |
msgstr "B<F_SETSIG> (I<int>)" |
| 322 |
|
| 323 |
#. type: SS |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
#, no-wrap |
| 327 |
msgid "Leases" |
| 328 |
msgstr "Аренда" |
| 329 |
|
| 330 |
#. type: TP |
| 331 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 332 |
#: opensuse-tumbleweed |
| 333 |
#, fuzzy, no-wrap |
| 334 |
#| msgid "B<F_SETLEASE> (I<int>)" |
| 335 |
msgid "B<F_SETLEASE>(2const)" |
| 336 |
msgstr "B<F_SETLEASE> (I<int>)" |
| 337 |
|
| 338 |
#. type: TQ |
| 339 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 340 |
#: opensuse-tumbleweed |
| 341 |
#, fuzzy, no-wrap |
| 342 |
#| msgid "B<F_GETLEASE>" |
| 343 |
msgid "B<F_GETLEASE>(2const)" |
| 344 |
msgstr "B<F_GETLEASE>" |
| 345 |
|
| 346 |
#. type: SS |
| 347 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 348 |
#: opensuse-tumbleweed |
| 349 |
#, fuzzy, no-wrap |
| 350 |
#| msgid "Special operations" |
| 351 |
msgid "Delegations" |
| 352 |
msgstr "Специальные операции" |
| 353 |
|
| 354 |
#. type: TP |
| 355 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 356 |
#: opensuse-tumbleweed |
| 357 |
#, fuzzy, no-wrap |
| 358 |
#| msgid "B<F_SETFD> (I<int>)" |
| 359 |
msgid "B<F_SETDELEG>(2const)" |
| 360 |
msgstr "B<F_SETFD> (I<int>)" |
| 361 |
|
| 362 |
#. type: TQ |
| 363 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 364 |
#: opensuse-tumbleweed |
| 365 |
#, fuzzy, no-wrap |
| 366 |
#| msgid "B<F_GETFD>" |
| 367 |
msgid "B<F_GETDELEG>(2const)" |
| 368 |
msgstr "B<F_GETFD>" |
| 369 |
|
| 370 |
#. type: SS |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "File and directory change notification (dnotify)" |
| 375 |
msgstr "Уведомления об изменении файла и каталога (dnotify)" |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 379 |
#: opensuse-tumbleweed |
| 380 |
#, fuzzy, no-wrap |
| 381 |
#| msgid "B<F_NOTIFY> (I<int>)" |
| 382 |
msgid "B<F_NOTIFY>(2const)" |
| 383 |
msgstr "B<F_NOTIFY> (I<int>)" |
| 384 |
|
| 385 |
#. type: SS |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
#, no-wrap |
| 389 |
msgid "Changing the capacity of a pipe" |
| 390 |
msgstr "Изменение ёмкости канала" |
| 391 |
|
| 392 |
#. type: TP |
| 393 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 394 |
#: opensuse-tumbleweed |
| 395 |
#, fuzzy, no-wrap |
| 396 |
#| msgid "B<EPIPE>" |
| 397 |
msgid "B<F_SETPIPE_SZ>(2const)" |
| 398 |
msgstr "B<EPIPE>" |
| 399 |
|
| 400 |
#. type: TQ |
| 401 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 402 |
#: opensuse-tumbleweed |
| 403 |
#, fuzzy, no-wrap |
| 404 |
#| msgid "B<F_GETLEASE>" |
| 405 |
msgid "B<F_GETPIPE_SZ>(2const)" |
| 406 |
msgstr "B<F_GETLEASE>" |
| 407 |
|
| 408 |
#. type: SS |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "File Sealing" |
| 413 |
msgstr "Опечатывание файла (file sealing)" |
| 414 |
|
| 415 |
#. type: TP |
| 416 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 417 |
#: opensuse-tumbleweed |
| 418 |
#, fuzzy, no-wrap |
| 419 |
#| msgid "B<F_GET_SEALS>" |
| 420 |
msgid "B<F_ADD_SEALS>(2const)" |
| 421 |
msgstr "B<F_GET_SEALS>" |
| 422 |
|
| 423 |
#. type: TQ |
| 424 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 425 |
#: opensuse-tumbleweed |
| 426 |
#, fuzzy, no-wrap |
| 427 |
#| msgid "B<F_GET_SEALS>" |
| 428 |
msgid "B<F_GET_SEALS>(2const)" |
| 429 |
msgstr "B<F_GET_SEALS>" |
| 430 |
|
| 431 |
#. type: SS |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
#, no-wrap |
| 435 |
msgid "File read/write hints" |
| 436 |
msgstr "Подсказки чтения/записи файла" |
| 437 |
|
| 438 |
#. type: TP |
| 439 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 440 |
#: opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "B<F_GET_RW_HINT>(2const)" |
| 443 |
msgstr "" |
| 444 |
|
| 445 |
#. type: TQ |
| 446 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 447 |
#: opensuse-tumbleweed |
| 448 |
#, fuzzy, no-wrap |
| 449 |
#| msgid "B<F_SETOWN> (I<int>)" |
| 450 |
msgid "B<F_SET_RW_HINT>(2const)" |
| 451 |
msgstr "B<F_SETOWN> (I<int>)" |
| 452 |
|
| 453 |
#. type: TQ |
| 454 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 455 |
#: opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "B<F_GET_FILE_RW_HINT>(2const)" |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: TQ |
| 461 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 462 |
#: opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "B<F_SET_FILE_RW_HINT>(2const)" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: SH |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, no-wrap |
| 471 |
msgid "RETURN VALUE" |
| 472 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 476 |
#: opensuse-tumbleweed |
| 477 |
#, fuzzy |
| 478 |
#| msgid "For a successful call, the return value depends on the operation:" |
| 479 |
msgid "For a successful call, the return value depends on the operation." |
| 480 |
msgstr "" |
| 481 |
"При успешном выполнении возвращаемое значение зависит от используемой " |
| 482 |
"команды:" |
| 483 |
|
| 484 |
#. type: Plain text |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
msgid "On error, -1 is returned, and I<errno> is set to indicate the error." |
| 488 |
msgstr "" |
| 489 |
"В случае ошибки возвращается -1, а I<errno> устанавливается в значение " |
| 490 |
"ошибки." |
| 491 |
|
| 492 |
#. type: SH |
| 493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
#, no-wrap |
| 496 |
msgid "ERRORS" |
| 497 |
msgstr "ОШИБКИ" |
| 498 |
|
| 499 |
#. type: TP |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "B<EACCES> or B<EAGAIN>" |
| 504 |
msgstr "B<EACCES> или B<EAGAIN>" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "Operation is prohibited by locks held by other processes." |
| 510 |
msgstr "" |
| 511 |
"Операция запрещена блокировками, которые удерживаются другими процессами." |
| 512 |
|
| 513 |
#. type: TP |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
#, no-wrap |
| 517 |
msgid "B<EAGAIN>" |
| 518 |
msgstr "B<EAGAIN>" |
| 519 |
|
| 520 |
#. type: Plain text |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
msgid "" |
| 524 |
"The operation is prohibited because the file has been memory-mapped by " |
| 525 |
"another process." |
| 526 |
msgstr "" |
| 527 |
"Операция запрещена, потому что файл отображается в память другим процессом." |
| 528 |
|
| 529 |
#. type: TP |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
#, no-wrap |
| 533 |
msgid "B<EBADF>" |
| 534 |
msgstr "B<EBADF>" |
| 535 |
|
| 536 |
#. type: Plain text |
| 537 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 538 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
msgid "I<fd> is not an open file descriptor" |
| 540 |
msgstr "Значение I<fd> не является открытым файловым дескриптором." |
| 541 |
|
| 542 |
#. type: TP |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
#, no-wrap |
| 546 |
msgid "B<EINVAL>" |
| 547 |
msgstr "B<EINVAL>" |
| 548 |
|
| 549 |
#. type: Plain text |
| 550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 551 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 552 |
#, fuzzy |
| 553 |
#| msgid "The value specified in I<cmd> is not recognized by this kernel." |
| 554 |
msgid "The value specified in I<op> is not recognized by this kernel." |
| 555 |
msgstr "Значение I<cmd> не распознано ядром." |
| 556 |
|
| 557 |
#. type: SH |
| 558 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 559 |
#: opensuse-tumbleweed |
| 560 |
#, no-wrap |
| 561 |
msgid "VERSIONS" |
| 562 |
msgstr "ВЕРСИИ" |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 566 |
#: opensuse-tumbleweed |
| 567 |
msgid "" |
| 568 |
"POSIX.1-2024 specifies B<FD_CLOFORK> and B<F_DUPFD_CLOFORK>, but Linux " |
| 569 |
"doesn't support them." |
| 570 |
msgstr "" |
| 571 |
|
| 572 |
#. type: SH |
| 573 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 574 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 575 |
#, no-wrap |
| 576 |
msgid "STANDARDS" |
| 577 |
msgstr "СТАНДАРТЫ" |
| 578 |
|
| 579 |
#. .P |
| 580 |
#. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions. |
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 583 |
#: opensuse-tumbleweed |
| 584 |
msgid "POSIX.1-2024." |
| 585 |
msgstr "POSIX.1-2024." |
| 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 "HISTORY" |
| 592 |
msgstr "ИСТОРИЯ" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 596 |
#: opensuse-tumbleweed |
| 597 |
#, fuzzy |
| 598 |
#| msgid "4.4BSD, SVr4, POSIX.1-2001." |
| 599 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 600 |
msgstr "4.4BSD, SVr4, POSIX.1-2001." |
| 601 |
|
| 602 |
#. type: SH |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
#, no-wrap |
| 606 |
msgid "SEE ALSO" |
| 607 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
msgid "" |
| 613 |
"B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), " |
| 614 |
"B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)" |
| 615 |
msgstr "" |
| 616 |
"B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), " |
| 617 |
"B<capabilities>(7), B<feature_test_macros>(7), B<lslocks>(8)" |
| 618 |
|
| 619 |
#. type: TH |
| 620 |
#: debian-trixie |
| 621 |
#, no-wrap |
| 622 |
msgid "2024-05-02" |
| 623 |
msgstr "2 мая 2024 г." |
| 624 |
|
| 625 |
#. type: TH |
| 626 |
#: debian-trixie |
| 627 |
#, no-wrap |
| 628 |
msgid "Linux man-pages 6.9.1" |
| 629 |
msgstr "Страницы руководства Linux 6.9.1" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: debian-trixie |
| 633 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 634 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 635 |
|
| 636 |
#. type: Plain text |
| 637 |
#: debian-trixie fedora-44 fedora-rawhide |
| 638 |
#, fuzzy, no-wrap |
| 639 |
#| msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n" |
| 640 |
msgid "B<int fcntl(int >I<fd>B<, int >I<op>B<, ... /* >I<arg>B< */ );>\n" |
| 641 |
msgstr "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n" |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: debian-trixie fedora-44 fedora-rawhide |
| 645 |
#, fuzzy |
| 646 |
#| msgid "" |
| 647 |
#| "B<fcntl>() can take an optional third argument. Whether or not this " |
| 648 |
#| "argument is required is determined by I<cmd>. The required argument type " |
| 649 |
#| "is indicated in parentheses after each I<cmd> name (in most cases, the " |
| 650 |
#| "required type is I<int>, and we identify the argument using the name " |
| 651 |
#| "I<arg>), or I<void> is specified if the argument is not required." |
| 652 |
msgid "" |
| 653 |
"B<fcntl>() can take an optional third argument. Whether or not this " |
| 654 |
"argument is required is determined by I<op>. The required argument type is " |
| 655 |
"indicated in parentheses after each I<op> name (in most cases, the required " |
| 656 |
"type is I<int>, and we identify the argument using the name I<arg>), or " |
| 657 |
"I<void> is specified if the argument is not required." |
| 658 |
msgstr "" |
| 659 |
"B<fcntl>() может принимать необязательный третий аргумент. Необходимость его " |
| 660 |
"указания зависит от значения, указанного в I<cmd>. Тип необходимого " |
| 661 |
"аргумента указан в скобках после каждого имени значения I<cmd> (в " |
| 662 |
"большинстве случаев требуется тип I<int>, и мы определяем аргумент с помощью " |
| 663 |
"имени I<arg>), или указывается I<void>, если аргумент не нужен." |
| 664 |
|
| 665 |
#. type: TP |
| 666 |
#: debian-trixie fedora-44 fedora-rawhide |
| 667 |
#, no-wrap |
| 668 |
msgid "B<F_DUPFD> (I<int>)" |
| 669 |
msgstr "B<F_DUPFD> (I<int>)" |
| 670 |
|
| 671 |
#. type: Plain text |
| 672 |
#: debian-trixie fedora-44 fedora-rawhide |
| 673 |
msgid "" |
| 674 |
"Duplicate the file descriptor I<fd> using the lowest-numbered available file " |
| 675 |
"descriptor greater than or equal to I<arg>. This is different from " |
| 676 |
"B<dup2>(2), which uses exactly the file descriptor specified." |
| 677 |
msgstr "" |
| 678 |
"Создаёт копию файлового дескриптора I<fd>, используя и наименьший доступный " |
| 679 |
"номер файлового дескриптора, который больше или равен I<arg>. Отличие от " |
| 680 |
"B<dup2>(2) в том, что там файловый дескриптор задаётся явно." |
| 681 |
|
| 682 |
#. type: Plain text |
| 683 |
#: debian-trixie fedora-44 fedora-rawhide |
| 684 |
msgid "On success, the new file descriptor is returned." |
| 685 |
msgstr "" |
| 686 |
"При успешном выполнении этой команды, возвращается новый файловый дескриптор." |
| 687 |
|
| 688 |
#. type: Plain text |
| 689 |
#: debian-trixie fedora-44 fedora-rawhide |
| 690 |
msgid "See B<dup>(2) for further details." |
| 691 |
msgstr "Дополнительную информацию смотрите в B<dup>(2)." |
| 692 |
|
| 693 |
#. type: TP |
| 694 |
#: debian-trixie fedora-44 fedora-rawhide |
| 695 |
#, no-wrap |
| 696 |
msgid "B<F_DUPFD_CLOEXEC> (I<int>; since Linux 2.6.24)" |
| 697 |
msgstr "B<F_DUPFD_CLOEXEC> (I<int>; начиная с Linux 2.6.24)" |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: debian-trixie fedora-44 fedora-rawhide |
| 701 |
msgid "" |
| 702 |
"As for B<F_DUPFD>, but additionally set the close-on-exec flag for the " |
| 703 |
"duplicate file descriptor. Specifying this flag permits a program to avoid " |
| 704 |
"an additional B<fcntl>() B<F_SETFD> operation to set the B<FD_CLOEXEC> " |
| 705 |
"flag. For an explanation of why this flag is useful, see the description of " |
| 706 |
"B<O_CLOEXEC> in B<open>(2)." |
| 707 |
msgstr "" |
| 708 |
"Как B<F_DUPFD>, но на новом файловом дескрипторе дополнительно " |
| 709 |
"устанавливается флаг закрытия-при-выполнении. Установка этого флага " |
| 710 |
"позволяет программам не делать дополнительный вызов B<fcntl>() с командой " |
| 711 |
"B<F_SETFD> для установки флага B<FD_CLOEXEC>. О том, зачем нужен этот флаг, " |
| 712 |
"смотрите описание B<O_CLOEXEC> в B<open>(2)." |
| 713 |
|
| 714 |
#. type: Plain text |
| 715 |
#: debian-trixie fedora-44 fedora-rawhide |
| 716 |
#, fuzzy |
| 717 |
#| msgid "" |
| 718 |
#| "The following commands manipulate the flags associated with a file " |
| 719 |
#| "descriptor. Currently, only one such flag is defined: B<FD_CLOEXEC>, the " |
| 720 |
#| "close-on-exec flag. If the B<FD_CLOEXEC> bit is set, the file descriptor " |
| 721 |
#| "will automatically be closed during a successful B<execve>(2). (If the " |
| 722 |
#| "B<execve>(2) fails, the file descriptor is left open.) If the " |
| 723 |
#| "B<FD_CLOEXEC> bit is not set, the file descriptor will remain open across " |
| 724 |
#| "an B<execve>(2)." |
| 725 |
msgid "" |
| 726 |
"The following operations manipulate the flags associated with a file " |
| 727 |
"descriptor. Currently, only one such flag is defined: B<FD_CLOEXEC>, the " |
| 728 |
"close-on-exec flag. If the B<FD_CLOEXEC> bit is set, the file descriptor " |
| 729 |
"will automatically be closed during a successful B<execve>(2). (If the " |
| 730 |
"B<execve>(2) fails, the file descriptor is left open.) If the " |
| 731 |
"B<FD_CLOEXEC> bit is not set, the file descriptor will remain open across an " |
| 732 |
"B<execve>(2)." |
| 733 |
msgstr "" |
| 734 |
"Следующие команды работают с флагами, связанными с файловым дескриптором. В " |
| 735 |
"настоящее время определён только один флаг: B<FD_CLOEXEC>, флаг close-on-" |
| 736 |
"exec. Если бит B<FD_CLOEXEC> равен 1, то файловый дескриптор будет " |
| 737 |
"автоматически закрыт при успешном вызове B<execve>(2) (если B<execve>(2) " |
| 738 |
"завершится с ошибкой, то файловый дескриптор останется открытым). Если бит " |
| 739 |
"B<FD_CLOEXEC> равен 0, то файловый дескриптор останется открытым после " |
| 740 |
"B<execve>(2)." |
| 741 |
|
| 742 |
#. type: TP |
| 743 |
#: debian-trixie fedora-44 fedora-rawhide |
| 744 |
#, no-wrap |
| 745 |
msgid "B<F_GETFD> (I<void>)" |
| 746 |
msgstr "B<F_GETFD> (I<void>)" |
| 747 |
|
| 748 |
#. type: Plain text |
| 749 |
#: debian-trixie fedora-44 fedora-rawhide |
| 750 |
msgid "" |
| 751 |
"Return (as the function result) the file descriptor flags; I<arg> is ignored." |
| 752 |
msgstr "" |
| 753 |
"Вернуть (как результат функции) флаги файлового дескриптора; значение I<arg> " |
| 754 |
"игнорируется." |
| 755 |
|
| 756 |
#. type: TP |
| 757 |
#: debian-trixie fedora-44 fedora-rawhide |
| 758 |
#, no-wrap |
| 759 |
msgid "B<F_SETFD> (I<int>)" |
| 760 |
msgstr "B<F_SETFD> (I<int>)" |
| 761 |
|
| 762 |
#. type: Plain text |
| 763 |
#: debian-trixie fedora-44 fedora-rawhide |
| 764 |
msgid "Set the file descriptor flags to the value specified by I<arg>." |
| 765 |
msgstr "" |
| 766 |
"Установить флаги файлового дескриптора согласно значению, указанному в " |
| 767 |
"аргументе I<arg>." |
| 768 |
|
| 769 |
#. type: Plain text |
| 770 |
#: debian-trixie fedora-44 fedora-rawhide |
| 771 |
msgid "" |
| 772 |
"In multithreaded programs, using B<fcntl>() B<F_SETFD> to set the close-on-" |
| 773 |
"exec flag at the same time as another thread performs a B<fork>(2) plus " |
| 774 |
"B<execve>(2) is vulnerable to a race condition that may unintentionally " |
| 775 |
"leak the file descriptor to the program executed in the child process. See " |
| 776 |
"the discussion of the B<O_CLOEXEC> flag in B<open>(2) for details and a " |
| 777 |
"remedy to the problem." |
| 778 |
msgstr "" |
| 779 |
"В многонитевых программах использование B<fcntl>() с B<F_SETFD> для " |
| 780 |
"установки флага close-on-exec в то время как другая нить выполняет " |
| 781 |
"B<fork>(2) плюс B<execve>(2) приводит к состязательности, что может вызвать " |
| 782 |
"передачу файлового дескриптора программе, запущенной в дочернем процессе. " |
| 783 |
"Смотрите обсуждение флага B<O_CLOEXEC> в B<open>(2) и решение проблемы." |
| 784 |
|
| 785 |
#. or |
| 786 |
#. .BR creat (2), |
| 787 |
#. type: Plain text |
| 788 |
#: debian-trixie fedora-44 fedora-rawhide |
| 789 |
msgid "" |
| 790 |
"Each open file description has certain associated status flags, initialized " |
| 791 |
"by B<open>(2) and possibly modified by B<fcntl>(). Duplicated file " |
| 792 |
"descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer " |
| 793 |
"to the same open file description, and thus share the same file status flags." |
| 794 |
msgstr "" |
| 795 |
"Каждое описание открытого файла имеет несколько связанных с ним флагов " |
| 796 |
"состояния, которые инициализируются вызовом B<open>(2) и, возможно, " |
| 797 |
"изменяются затем вызовом B<fcntl>(). Эти флаги совместно используются " |
| 798 |
"копиями файловых дескрипторов (сделанными с помощью B<dup>(2), " |
| 799 |
"B<fcntl>(F_DUPFD), B<fork>(2) и т.д.), которые указывают на одно описание " |
| 800 |
"открытого файла." |
| 801 |
|
| 802 |
#. type: Plain text |
| 803 |
#: debian-trixie fedora-44 fedora-rawhide |
| 804 |
msgid "The file status flags and their semantics are described in B<open>(2)." |
| 805 |
msgstr "Эти флаги состояния и их смысл описаны в B<open>(2)." |
| 806 |
|
| 807 |
#. type: TP |
| 808 |
#: debian-trixie fedora-44 fedora-rawhide |
| 809 |
#, no-wrap |
| 810 |
msgid "B<F_GETFL> (I<void>)" |
| 811 |
msgstr "B<F_GETFL> (I<void>)" |
| 812 |
|
| 813 |
#. type: Plain text |
| 814 |
#: debian-trixie fedora-44 fedora-rawhide |
| 815 |
msgid "" |
| 816 |
"Return (as the function result) the file access mode and the file status " |
| 817 |
"flags; I<arg> is ignored." |
| 818 |
msgstr "" |
| 819 |
"Вернуть (как результат функции) режим доступа к файлу и флаги состояния " |
| 820 |
"файла; значение I<arg> игнорируется." |
| 821 |
|
| 822 |
#. type: TP |
| 823 |
#: debian-trixie fedora-44 fedora-rawhide |
| 824 |
#, no-wrap |
| 825 |
msgid "B<F_SETFL> (I<int>)" |
| 826 |
msgstr "B<F_SETFL> (I<int>)" |
| 827 |
|
| 828 |
#. type: Plain text |
| 829 |
#: debian-trixie fedora-44 fedora-rawhide |
| 830 |
#, fuzzy |
| 831 |
#| msgid "" |
| 832 |
#| "Set the file status flags to the value specified by I<arg>. File access " |
| 833 |
#| "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) and file creation flags " |
| 834 |
#| "(i.e., B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) in I<arg> are " |
| 835 |
#| "ignored. On Linux, this command can change only the B<O_APPEND>, " |
| 836 |
#| "B<O_ASYNC>, B<O_DIRECT>, B<O_NOATIME>, and B<O_NONBLOCK> flags. It is " |
| 837 |
#| "not possible to change the B<O_DSYNC> and B<O_SYNC> flags; see BUGS, " |
| 838 |
#| "below." |
| 839 |
msgid "" |
| 840 |
"Set the file status flags to the value specified by I<arg>. File access " |
| 841 |
"mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) and file creation flags (i.e., " |
| 842 |
"B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) in I<arg> are ignored. On " |
| 843 |
"Linux, this operation can change only the B<O_APPEND>, B<O_ASYNC>, " |
| 844 |
"B<O_DIRECT>, B<O_NOATIME>, and B<O_NONBLOCK> flags. It is not possible to " |
| 845 |
"change the B<O_DSYNC> and B<O_SYNC> flags; see BUGS, below." |
| 846 |
msgstr "" |
| 847 |
"Установить флаги состояния файла согласно значению, указанному в аргументе " |
| 848 |
"I<arg>. Режим доступа к файлу (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>) и флаги " |
| 849 |
"создания файла (т. е., B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>) в " |
| 850 |
"I<arg> игнорируются. В Linux эта команда может изменять только флаги " |
| 851 |
"B<O_APPEND>, B<O_ASYNC>, B<O_DIRECT>, B<O_NOATIME> и B<O_NONBLOCK>. " |
| 852 |
"Невозможно изменить флаги B<O_DSYNC> и B<O_SYNC>; смотрите ДЕФЕКТЫ далее." |
| 853 |
|
| 854 |
#. type: Plain text |
| 855 |
#: debian-trixie fedora-44 fedora-rawhide |
| 856 |
msgid "" |
| 857 |
"Linux implements traditional (\"process-associated\") UNIX record locks, as " |
| 858 |
"standardized by POSIX. For a Linux-specific alternative with better " |
| 859 |
"semantics, see the discussion of open file description locks below." |
| 860 |
msgstr "" |
| 861 |
"В Linux реализована обычная («попроцессная») блокировка UNIX, " |
| 862 |
"стандартизованная POSIX. Описание Linux-альтернативную блокировку открытых " |
| 863 |
"файловых описаний с лучшей семантикой смотрите далее." |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: debian-trixie fedora-44 fedora-rawhide |
| 867 |
msgid "" |
| 868 |
"B<F_SETLK>, B<F_SETLKW>, and B<F_GETLK> are used to acquire, release, and " |
| 869 |
"test for the existence of record locks (also known as byte-range, file-" |
| 870 |
"segment, or file-region locks). The third argument, I<lock>, is a pointer " |
| 871 |
"to a structure that has at least the following fields (in unspecified order)." |
| 872 |
msgstr "" |
| 873 |
"Команды B<F_SETLK>, B<F_SETLKW> и B<F_GETLK> используются для установки, " |
| 874 |
"снятия и тестирования существования блокировок записей (также известных как " |
| 875 |
"блокировки байтового диапазона, сегмента или области файла). Третий " |
| 876 |
"аргумент, I<lock>, является указателем на структуру, которая имеет, по " |
| 877 |
"крайней мере, следующие поля (в произвольном порядке):" |
| 878 |
|
| 879 |
#. type: Plain text |
| 880 |
#: debian-trixie fedora-44 fedora-rawhide |
| 881 |
#, no-wrap |
| 882 |
msgid "" |
| 883 |
"struct flock {\n" |
| 884 |
" ...\n" |
| 885 |
" short l_type; /* Type of lock: F_RDLCK,\n" |
| 886 |
" F_WRLCK, F_UNLCK */\n" |
| 887 |
" short l_whence; /* How to interpret l_start:\n" |
| 888 |
" SEEK_SET, SEEK_CUR, SEEK_END */\n" |
| 889 |
" off_t l_start; /* Starting offset for lock */\n" |
| 890 |
" off_t l_len; /* Number of bytes to lock */\n" |
| 891 |
" pid_t l_pid; /* PID of process blocking our lock\n" |
| 892 |
" (set by F_GETLK and F_OFD_GETLK) */\n" |
| 893 |
" ...\n" |
| 894 |
"};\n" |
| 895 |
msgstr "" |
| 896 |
"struct flock {\n" |
| 897 |
" ...\n" |
| 898 |
" short l_type; /* Тип блокировки: F_RDLCK,\n" |
| 899 |
" F_WRLCK, F_UNLCK */\n" |
| 900 |
" short l_whence; /* Как интерпретировать l_start:\n" |
| 901 |
" SEEK_SET, SEEK_CUR, SEEK_END */\n" |
| 902 |
" off_t l_start; /* Начальное смещение блокировки */\n" |
| 903 |
" off_t l_len; /* Количество блокируемых байт */\n" |
| 904 |
" pid_t l_pid; /* PID процесса, блокирующего нашу блокировку\n" |
| 905 |
" (только для F_GETLK и F_OFD_GETLK) */\n" |
| 906 |
" ...\n" |
| 907 |
"};\n" |
| 908 |
|
| 909 |
#. type: Plain text |
| 910 |
#: debian-trixie fedora-44 fedora-rawhide |
| 911 |
msgid "" |
| 912 |
"The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify " |
| 913 |
"the range of bytes we wish to lock. Bytes past the end of the file may be " |
| 914 |
"locked, but not bytes before the start of the file." |
| 915 |
msgstr "" |
| 916 |
"Поля I<l_whence>, I<l_start> и I<l_len> этой структуры задают диапазон байт, " |
| 917 |
"который мы хотим заблокировать. Могут блокироваться байты за концом файла, " |
| 918 |
"но не перед началом файла." |
| 919 |
|
| 920 |
#. type: Plain text |
| 921 |
#: debian-trixie fedora-44 fedora-rawhide |
| 922 |
msgid "" |
| 923 |
"I<l_start> is the starting offset for the lock, and is interpreted relative " |
| 924 |
"to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the " |
| 925 |
"current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file " |
| 926 |
"(if I<l_whence> is B<SEEK_END>). In the final two cases, I<l_start> can be " |
| 927 |
"a negative number provided the offset does not lie before the start of the " |
| 928 |
"file." |
| 929 |
msgstr "" |
| 930 |
"I<l_start> \\(em это начальное смещение для блокировки, которое " |
| 931 |
"интерпретируется как начало файла (если значение I<l_whence> равно " |
| 932 |
"B<SEEK_SET>); как текущая позиция в файле (если значение I<l_whence> равно " |
| 933 |
"B<SEEK_CUR>); как конец файла (если значение I<l_whence> равно B<SEEK_END>). " |
| 934 |
"В последних двух случаях, I<l_start> может иметь отрицательное значение, " |
| 935 |
"предоставляя смещение, которого не может указать до начала файла." |
| 936 |
|
| 937 |
#. type: Plain text |
| 938 |
#: debian-trixie fedora-44 fedora-rawhide |
| 939 |
msgid "" |
| 940 |
"I<l_len> specifies the number of bytes to be locked. If I<l_len> is " |
| 941 |
"positive, then the range to be locked covers bytes I<l_start> up to and " |
| 942 |
"including I<l_start>+I<l_len>-1. Specifying 0 for I<l_len> has the special " |
| 943 |
"meaning: lock all bytes starting at the location specified by I<l_whence> " |
| 944 |
"and I<l_start> through to the end of file, no matter how large the file " |
| 945 |
"grows." |
| 946 |
msgstr "" |
| 947 |
"В I<l_len> задаётся количество байт, которые нужно заблокировать. Если " |
| 948 |
"I<l_len> положительно, то диапазон блокировки начинается со I<l_start> и " |
| 949 |
"кончается I<l_start>+I<l_len>-1 включительно. Если в I<l_len> указан 0, то " |
| 950 |
"блокируются все байты начиная с места, указанного I<l_whence> и I<l_start> и " |
| 951 |
"до конца файла, независимо от величины файла." |
| 952 |
|
| 953 |
#. type: Plain text |
| 954 |
#: debian-trixie fedora-44 fedora-rawhide |
| 955 |
#, fuzzy |
| 956 |
#| msgid "" |
| 957 |
#| "POSIX.1-2001 allows (but does not require) an implementation to support " |
| 958 |
#| "a negative I<l_len> value; if I<l_len> is negative, the interval " |
| 959 |
#| "described by I<lock> covers bytes I<l_start>+I<l_len> up to and including " |
| 960 |
#| "I<l_start>-1. This is supported by Linux since kernel versions 2.4.21 " |
| 961 |
#| "and 2.5.49." |
| 962 |
msgid "" |
| 963 |
"POSIX.1-2001 allows (but does not require) an implementation to support a " |
| 964 |
"negative I<l_len> value; if I<l_len> is negative, the interval described by " |
| 965 |
"I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1. " |
| 966 |
"This is supported since Linux 2.4.21 and Linux 2.5.49." |
| 967 |
msgstr "" |
| 968 |
"POSIX.1-2001 позволяет (но не требует) реализации поддерживать отрицательное " |
| 969 |
"значение I<l_len>; если I<l_len> отрицательно, то интервал, описываемый " |
| 970 |
"I<lock>, имеет размер I<l_start>+I<l_len> до I<l_start>-1 включительно. Это " |
| 971 |
"поддерживается в Linux начиная с ядер версии 2.4.21 и 2.5.49." |
| 972 |
|
| 973 |
#. type: Plain text |
| 974 |
#: debian-trixie fedora-44 fedora-rawhide |
| 975 |
msgid "" |
| 976 |
"The I<l_type> field can be used to place a read (B<F_RDLCK>) or a write " |
| 977 |
"(B<F_WRLCK>) lock on a file. Any number of processes may hold a read lock " |
| 978 |
"(shared lock) on a file region, but only one process may hold a write lock " |
| 979 |
"(exclusive lock). An exclusive lock excludes all other locks, both shared " |
| 980 |
"and exclusive. A single process can hold only one type of lock on a file " |
| 981 |
"region; if a new lock is applied to an already-locked region, then the " |
| 982 |
"existing lock is converted to the new lock type. (Such conversions may " |
| 983 |
"involve splitting, shrinking, or coalescing with an existing lock if the " |
| 984 |
"byte range specified by the new lock does not precisely coincide with the " |
| 985 |
"range of the existing lock.)" |
| 986 |
msgstr "" |
| 987 |
"Поле I<l_type> может быть использовано для указания типа блокировки файла: " |
| 988 |
"чтение (B<F_RDLCK>) или запись (B<F_WRLCK>). Любое количество процессов " |
| 989 |
"могут удерживать блокировку на чтение (общая блокировка) области файла, но " |
| 990 |
"только один процесс может удерживать блокировку на запись (эксклюзивная " |
| 991 |
"блокировка). Эксклюзивная блокировка исключает все другие блокировки, как " |
| 992 |
"общие так и эксклюзивные. Один процесс может удерживать только один тип " |
| 993 |
"блокировки области файла; если происходит новая блокировка уже " |
| 994 |
"заблокированной области, то существующая блокировка преобразуется в новый " |
| 995 |
"тип блокировки. (Такие преобразования могут привести к разбиению, уменьшению " |
| 996 |
"или срастанию с существующей блокировкой, если диапазон байт, заданный для " |
| 997 |
"новой блокировки, неточно совпадает с диапазоном существующей блокировки.)" |
| 998 |
|
| 999 |
#. type: TP |
| 1000 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1001 |
#, no-wrap |
| 1002 |
msgid "B<F_SETLK> (I<struct flock *>)" |
| 1003 |
msgstr "B<F_SETLK> (I<struct flock *>)" |
| 1004 |
|
| 1005 |
#. type: Plain text |
| 1006 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1007 |
msgid "" |
| 1008 |
"Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>) or release a " |
| 1009 |
"lock (when I<l_type> is B<F_UNLCK>) on the bytes specified by the " |
| 1010 |
"I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If a conflicting " |
| 1011 |
"lock is held by another process, this call returns -1 and sets I<errno> to " |
| 1012 |
"B<EACCES> or B<EAGAIN>. (The error returned in this case differs across " |
| 1013 |
"implementations, so POSIX requires a portable application to check for both " |
| 1014 |
"errors.)" |
| 1015 |
msgstr "" |
| 1016 |
"Установить блокировку (когда I<l_type> равен B<F_RDLCK> или B<F_WRLCK>) или " |
| 1017 |
"снять блокировку (когда I<l_type> равен B<F_UNLCK>) байтов, указанных " |
| 1018 |
"полями I<l_whence>, I<l_start> и I<l_len> структуры I<lock>. Если " |
| 1019 |
"конфликтующая блокировка удерживается другим процессом, то данный вызов " |
| 1020 |
"вернёт -1 и установит значение I<errno> в B<EACCES> или B<EAGAIN> (ошибка, " |
| 1021 |
"возвращаемая в этом случае, в разных реализациях разная, поэтому в POSIX для " |
| 1022 |
"переносимых приложений требуется проверять оба значения)." |
| 1023 |
|
| 1024 |
#. type: TP |
| 1025 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1026 |
#, no-wrap |
| 1027 |
msgid "B<F_SETLKW> (I<struct flock *>)" |
| 1028 |
msgstr "B<F_SETLKW> (I<struct flock *>)" |
| 1029 |
|
| 1030 |
#. type: Plain text |
| 1031 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1032 |
msgid "" |
| 1033 |
"As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait " |
| 1034 |
"for that lock to be released. If a signal is caught while waiting, then the " |
| 1035 |
"call is interrupted and (after the signal handler has returned) returns " |
| 1036 |
"immediately (with return value -1 and I<errno> set to B<EINTR>; see " |
| 1037 |
"B<signal>(7))." |
| 1038 |
msgstr "" |
| 1039 |
"Как B<F_SETLK>, но если конфликтующая блокировка удерживается на файле, то " |
| 1040 |
"выполняется ожидание снятия этой блокировки. Если во время ожидания поступил " |
| 1041 |
"сигнал, то данный вызов прерывается и (после возврата из обработчика " |
| 1042 |
"сигнала) из него происходит немедленный возврат (возвращается значение -1 и " |
| 1043 |
"I<errno> устанавливается в B<EINTR>; см. B<signal>(7))." |
| 1044 |
|
| 1045 |
#. type: TP |
| 1046 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1047 |
#, no-wrap |
| 1048 |
msgid "B<F_GETLK> (I<struct flock *>)" |
| 1049 |
msgstr "B<F_GETLK> (I<struct flock *>)" |
| 1050 |
|
| 1051 |
#. type: Plain text |
| 1052 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1053 |
msgid "" |
| 1054 |
"On input to this call, I<lock> describes a lock we would like to place on " |
| 1055 |
"the file. If the lock could be placed, B<fcntl>() does not actually place " |
| 1056 |
"it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the " |
| 1057 |
"other fields of the structure unchanged." |
| 1058 |
msgstr "" |
| 1059 |
"При входе в этот вызов, I<lock> описывает блокировку, которую мы хотели бы " |
| 1060 |
"установить на файл. Если такая блокировка не может быть установлена, " |
| 1061 |
"B<fcntl>() не устанавливает её, но возвращает B<F_UNLCK> в поле I<l_type> " |
| 1062 |
"структуры I<lock> и оставляет другие поля структуры неизменёнными." |
| 1063 |
|
| 1064 |
#. type: Plain text |
| 1065 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1066 |
msgid "" |
| 1067 |
"If one or more incompatible locks would prevent this lock being placed, then " |
| 1068 |
"B<fcntl>() returns details about one of those locks in the I<l_type>, " |
| 1069 |
"I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>. If the conflicting " |
| 1070 |
"lock is a traditional (process-associated) record lock, then the I<l_pid> " |
| 1071 |
"field is set to the PID of the process holding that lock. If the " |
| 1072 |
"conflicting lock is an open file description lock, then I<l_pid> is set to " |
| 1073 |
"-1. Note that the returned information may already be out of date by the " |
| 1074 |
"time the caller inspects it." |
| 1075 |
msgstr "" |
| 1076 |
"Если одна или более несовместимых блокировок мешают установке этой " |
| 1077 |
"блокировки, то B<fcntl>() возвращает подробности об одной из этих блокировок " |
| 1078 |
"в полях I<l_type>, I<l_whence>, I<l_start> и I<l_len> структуры I<lock>. " |
| 1079 |
"Если конфликтующая блокировка является обычной (попроцессной), то в I<l_pid> " |
| 1080 |
"записывается значение PID того процесса, который удерживает блокировку. Если " |
| 1081 |
"конфликтующая блокировка является блокировку открытого файлового описания, в " |
| 1082 |
"I<l_pid> записывается -1. Заметим, что возвращаемая информация может уже " |
| 1083 |
"устареть в момент проверки вызывающим." |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1087 |
msgid "" |
| 1088 |
"In order to place a read lock, I<fd> must be open for reading. In order to " |
| 1089 |
"place a write lock, I<fd> must be open for writing. To place both types of " |
| 1090 |
"lock, open a file read-write." |
| 1091 |
msgstr "" |
| 1092 |
"Для того, чтобы установить блокировку на чтение, I<fd> должен быть открыт на " |
| 1093 |
"чтение. Для того, чтобы установить блокировку на запись, I<fd> должен быть " |
| 1094 |
"открыт на запись. Чтобы установить оба типа блокировки, дескриптор должен " |
| 1095 |
"быть открыт на запись и на чтение." |
| 1096 |
|
| 1097 |
#. type: Plain text |
| 1098 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1099 |
msgid "" |
| 1100 |
"When placing locks with B<F_SETLKW>, the kernel detects I<deadlocks>, " |
| 1101 |
"whereby two or more processes have their lock requests mutually blocked by " |
| 1102 |
"locks held by the other processes. For example, suppose process A holds a " |
| 1103 |
"write lock on byte 100 of a file, and process B holds a write lock on byte " |
| 1104 |
"200. If each process then attempts to lock the byte already locked by the " |
| 1105 |
"other process using B<F_SETLKW>, then, without deadlock detection, both " |
| 1106 |
"processes would remain blocked indefinitely. When the kernel detects such " |
| 1107 |
"deadlocks, it causes one of the blocking lock requests to immediately fail " |
| 1108 |
"with the error B<EDEADLK>; an application that encounters such an error " |
| 1109 |
"should release some of its locks to allow other applications to proceed " |
| 1110 |
"before attempting regain the locks that it requires. Circular deadlocks " |
| 1111 |
"involving more than two processes are also detected. Note, however, that " |
| 1112 |
"there are limitations to the kernel's deadlock-detection algorithm; see BUGS." |
| 1113 |
msgstr "" |
| 1114 |
"При размещении блокировок с помощью B<F_SETLKW>, ядро обнаруживает " |
| 1115 |
"I<взаимные блокировки> (deadlocks), при которых два и более процессов " |
| 1116 |
"создают запросы на блокировку, блокируемые блокировками, удерживаемые " |
| 1117 |
"другими процессами. Например, предположим, что процесс А удерживает " |
| 1118 |
"блокировку на запись файла в байт 100, а процесс Б удерживает блокировку на " |
| 1119 |
"запись в байт 200. Если каждый процесс затем попытается заблокировать байт, " |
| 1120 |
"который уже заблокирован другим процессом с помощью B<F_SETLKW>, то без " |
| 1121 |
"обнаружения взаимных блокировок оба процесса останутся заблокированными " |
| 1122 |
"навсегда. Когда ядро обнаруживает такие взаимные блокировки оно сразу же " |
| 1123 |
"завершает одну из блокирующих блокировок с ошибкой B<EDEADLK>; приложение, " |
| 1124 |
"встретившее такую ошибку, должно освободить одну из своих блокировок перед " |
| 1125 |
"попыткой восстановить блокировки, которые ему нужны, позволив другому " |
| 1126 |
"приложению продолжить работу. Зацикленные взаимные блокировки обнаруживаются " |
| 1127 |
"и для более двух процессов. Однако заметим, что есть ограничения в алгоритме " |
| 1128 |
"обнаружения взаимных блокировок; смотрите ДЕФЕКТЫ." |
| 1129 |
|
| 1130 |
#. type: Plain text |
| 1131 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1132 |
msgid "" |
| 1133 |
"As well as being removed by an explicit B<F_UNLCK>, record locks are " |
| 1134 |
"automatically released when the process terminates." |
| 1135 |
msgstr "" |
| 1136 |
"Также как и при снятии блокировки через явное указание B<F_UNLCK>, " |
| 1137 |
"блокировка автоматически снимается, когда процесс завершается." |
| 1138 |
|
| 1139 |
#. type: Plain text |
| 1140 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1141 |
msgid "" |
| 1142 |
"Record locks are not inherited by a child created via B<fork>(2), but are " |
| 1143 |
"preserved across an B<execve>(2)." |
| 1144 |
msgstr "" |
| 1145 |
"Блокировки не наследуются потомком, созданным через B<fork>(2), но " |
| 1146 |
"сохраняются при вызове B<execve>(2)." |
| 1147 |
|
| 1148 |
#. type: Plain text |
| 1149 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1150 |
msgid "" |
| 1151 |
"Because of the buffering performed by the B<stdio>(3) library, the use of " |
| 1152 |
"record locking with routines in that package should be avoided; use " |
| 1153 |
"B<read>(2) and B<write>(2) instead." |
| 1154 |
msgstr "" |
| 1155 |
"Поскольку буферизация выполняется через библиотеку B<stdio>(3), " |
| 1156 |
"использование блокировок с функциями в этом пакете нужно избегать; вместо " |
| 1157 |
"этих функций используйте B<read>(2) и B<write>(2)." |
| 1158 |
|
| 1159 |
#. type: Plain text |
| 1160 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1161 |
msgid "" |
| 1162 |
"The record locks described above are associated with the process (unlike the " |
| 1163 |
"open file description locks described below). This has some unfortunate " |
| 1164 |
"consequences:" |
| 1165 |
msgstr "" |
| 1166 |
"Записи о блокировках, описанных выше, связаны с процессом (в отличие от " |
| 1167 |
"блокировках открытых файловых описаний, описанных далее). Это приводит к " |
| 1168 |
"некоторым печальным последствиям:" |
| 1169 |
|
| 1170 |
#. type: IP |
| 1171 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1172 |
#, no-wrap |
| 1173 |
msgid "\\[bu]" |
| 1174 |
msgstr "\\[bu]" |
| 1175 |
|
| 1176 |
#. (Additional file descriptors referring to the same file |
| 1177 |
#. may have been obtained by calls to |
| 1178 |
#. .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().) |
| 1179 |
#. type: Plain text |
| 1180 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1181 |
msgid "" |
| 1182 |
"If a process closes I<any> file descriptor referring to a file, then all of " |
| 1183 |
"the process's locks on that file are released, regardless of the file " |
| 1184 |
"descriptor(s) on which the locks were obtained. This is bad: it means that " |
| 1185 |
"a process can lose its locks on a file such as I</etc/passwd> or I</etc/" |
| 1186 |
"mtab> when for some reason a library function decides to open, read, and " |
| 1187 |
"close the same file." |
| 1188 |
msgstr "" |
| 1189 |
"Если процесс закрывает I<любой> файловый дескриптор, ссылающийся на файл, то " |
| 1190 |
"освобождаются все блокировки процесса для этого файла, независимо от " |
| 1191 |
"файлового дескриптора(ов), на который получена блокировка. Это плохо: это " |
| 1192 |
"означает, что процесс может потерять свои блокировки на файл, такой как I</" |
| 1193 |
"etc/passwd> или I</etc/mtab>, когда какой-либо причине библиотечная функция " |
| 1194 |
"решает их открыть, прочитать и закрыть." |
| 1195 |
|
| 1196 |
#. type: Plain text |
| 1197 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1198 |
msgid "" |
| 1199 |
"The threads in a process share locks. In other words, a multithreaded " |
| 1200 |
"program can't use record locking to ensure that threads don't simultaneously " |
| 1201 |
"access the same region of a file." |
| 1202 |
msgstr "" |
| 1203 |
"Нити процесса совместно используют блокировки процесса. Другими словами " |
| 1204 |
"многонитевая программа не может использовать блокировку для разграничения " |
| 1205 |
"доступа к одной области файла среди нитей." |
| 1206 |
|
| 1207 |
#. type: Plain text |
| 1208 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1209 |
msgid "Open file description locks solve both of these problems." |
| 1210 |
msgstr "Блокировки открытых файловых описаний решают обе эти проблемы." |
| 1211 |
|
| 1212 |
#. FIXME . Review progress into POSIX |
| 1213 |
#. http://austingroupbugs.net/view.php?id=768 |
| 1214 |
#. type: Plain text |
| 1215 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1216 |
msgid "" |
| 1217 |
"Open file description locks are advisory byte-range locks whose operation is " |
| 1218 |
"in most respects identical to the traditional record locks described above. " |
| 1219 |
"This lock type is Linux-specific, and available since Linux 3.15. (There is " |
| 1220 |
"a proposal with the Austin Group to include this lock type in the next " |
| 1221 |
"revision of POSIX.1.) For an explanation of open file descriptions, see " |
| 1222 |
"B<open>(2)." |
| 1223 |
msgstr "" |
| 1224 |
"Блокировки открытых файловых описаний являются консультативными блокировками " |
| 1225 |
"диапазона байт, чьё действие почти идентично обычным блокировкам, описанным " |
| 1226 |
"выше. Данный тип блокировок есть только в Linux и доступен с версии 3.15 " |
| 1227 |
"(есть предложение в Austin Group включить данный тип блокировки в следующую " |
| 1228 |
"версию POSIX.1). Описание открытых файловых описаний смотрите в B<open>(2)." |
| 1229 |
|
| 1230 |
#. type: Plain text |
| 1231 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1232 |
msgid "" |
| 1233 |
"The principal difference between the two lock types is that whereas " |
| 1234 |
"traditional record locks are associated with a process, open file " |
| 1235 |
"description locks are associated with the open file description on which " |
| 1236 |
"they are acquired, much like locks acquired with B<flock>(2). Consequently " |
| 1237 |
"(and unlike traditional advisory record locks), open file description locks " |
| 1238 |
"are inherited across B<fork>(2) (and B<clone>(2) with B<CLONE_FILES>), and " |
| 1239 |
"are only automatically released on the last close of the open file " |
| 1240 |
"description, instead of being released on any close of the file." |
| 1241 |
msgstr "" |
| 1242 |
"Принципиальное различие между двумя типами блокировок в том, что обычные " |
| 1243 |
"блокировки связаны с процессом, а блокировки открытых файловых описаний " |
| 1244 |
"связаны с открытым файловым описанием, для которого они получены (очень " |
| 1245 |
"похоже на блокировки, получаемые с помощью B<flock>(2). В следствие этого (и " |
| 1246 |
"в отличие от обычных консультативных блокировок), блокировки открытых " |
| 1247 |
"файловых описаний наследуются при B<fork>(2) (и при B<clone>(2) с " |
| 1248 |
"B<CLONE_FILES>), и освобождаются только автоматически при последнем закрытии " |
| 1249 |
"открытого файлового описания, а не при любом закрытии файла." |
| 1250 |
|
| 1251 |
#. type: Plain text |
| 1252 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1253 |
msgid "" |
| 1254 |
"Conflicting lock combinations (i.e., a read lock and a write lock or two " |
| 1255 |
"write locks) where one lock is an open file description lock and the other " |
| 1256 |
"is a traditional record lock conflict even when they are acquired by the " |
| 1257 |
"same process on the same file descriptor." |
| 1258 |
msgstr "" |
| 1259 |
"Конфликт комбинаций блокировок (блокировка чтения и блокировка записи или " |
| 1260 |
"две блокировки записи), при котором одна блокировка — открытое файловое " |
| 1261 |
"описание, а другая — обычная блокировка, конфликтуют даже когда они " |
| 1262 |
"запрашиваются одним процессом для одного и того же файлового дескриптора." |
| 1263 |
|
| 1264 |
#. type: Plain text |
| 1265 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1266 |
msgid "" |
| 1267 |
"Open file description locks placed via the same open file description (i.e., " |
| 1268 |
"via the same file descriptor, or via a duplicate of the file descriptor " |
| 1269 |
"created by B<fork>(2), B<dup>(2), B<fcntl>() B<F_DUPFD>, and so on) are " |
| 1270 |
"always compatible: if a new lock is placed on an already locked region, then " |
| 1271 |
"the existing lock is converted to the new lock type. (Such conversions may " |
| 1272 |
"result in splitting, shrinking, or coalescing with an existing lock as " |
| 1273 |
"discussed above.)" |
| 1274 |
msgstr "" |
| 1275 |
"Блокировки открытых файловых описаний, полученные для одного и того же " |
| 1276 |
"файлового описания (т. е., для одного и того же файлового дескриптора или " |
| 1277 |
"его копии, созданной в результате B<fork>(2), B<dup>(2), B<fcntl>() " |
| 1278 |
"B<F_DUPFD> и т. п.), всегда совместимы: если новая блокировка помещается на " |
| 1279 |
"уже заблокированную область, то существующая блокировка преобразуется в " |
| 1280 |
"блокировку нового типа (такие преобразования могут приводить к разделению, " |
| 1281 |
"сокращению или объединению существующей блокировки, как описывалось ранее)." |
| 1282 |
|
| 1283 |
#. type: Plain text |
| 1284 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1285 |
msgid "" |
| 1286 |
"On the other hand, open file description locks may conflict with each other " |
| 1287 |
"when they are acquired via different open file descriptions. Thus, the " |
| 1288 |
"threads in a multithreaded program can use open file description locks to " |
| 1289 |
"synchronize access to a file region by having each thread perform its own " |
| 1290 |
"B<open>(2) on the file and applying locks via the resulting file descriptor." |
| 1291 |
msgstr "" |
| 1292 |
"С другой стороны, блокировки открытых файловых описаний могут конфликтовать " |
| 1293 |
"друг с другом, когда они запрашиваются через разные открытые файловые " |
| 1294 |
"описания. То есть, нити в многонитевых программах могут использовать " |
| 1295 |
"блокировки открытых файловых описаний для синхронизации доступа к области " |
| 1296 |
"файла, если каждая нить выполняет отдельный вызов B<open>(2) на файл и " |
| 1297 |
"применяет блокировки для получаемого файлового дескриптора." |
| 1298 |
|
| 1299 |
#. type: Plain text |
| 1300 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1301 |
#, fuzzy |
| 1302 |
#| msgid "" |
| 1303 |
#| "As with traditional advisory locks, the third argument to B<fcntl>(), " |
| 1304 |
#| "I<lock>, is a pointer to an I<flock> structure. By contrast with " |
| 1305 |
#| "traditional record locks, the I<l_pid> field of that structure must be " |
| 1306 |
#| "set to zero when using the commands described below." |
| 1307 |
msgid "" |
| 1308 |
"As with traditional advisory locks, the third argument to B<fcntl>(), " |
| 1309 |
"I<lock>, is a pointer to an I<flock> structure. By contrast with " |
| 1310 |
"traditional record locks, the I<l_pid> field of that structure must be set " |
| 1311 |
"to zero when using the operations described below." |
| 1312 |
msgstr "" |
| 1313 |
"Как и у обычных блокировок, третий аргумент B<fcntl>(), I<lock>, является " |
| 1314 |
"указателем на структуру I<flock>. Но в отличие от обычных блокировок при " |
| 1315 |
"использовании команд, описанных далее, поле I<l_pid> этой структуры должно " |
| 1316 |
"иметь значение 0." |
| 1317 |
|
| 1318 |
#. type: Plain text |
| 1319 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1320 |
#, fuzzy |
| 1321 |
#| msgid "" |
| 1322 |
#| "The commands for working with open file description locks are analogous " |
| 1323 |
#| "to those used with traditional locks:" |
| 1324 |
msgid "" |
| 1325 |
"The operations for working with open file description locks are analogous to " |
| 1326 |
"those used with traditional locks:" |
| 1327 |
msgstr "" |
| 1328 |
"Команды для работы с блокировками открытых файловых описаний аналогичны " |
| 1329 |
"используемым для обычных блокировок:" |
| 1330 |
|
| 1331 |
#. type: TP |
| 1332 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1333 |
#, no-wrap |
| 1334 |
msgid "B<F_OFD_SETLK> (I<struct flock *>)" |
| 1335 |
msgstr "B<F_OFD_SETLK> (I<struct flock *>)" |
| 1336 |
|
| 1337 |
#. type: Plain text |
| 1338 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1339 |
msgid "" |
| 1340 |
"Acquire an open file description lock (when I<l_type> is B<F_RDLCK> or " |
| 1341 |
"B<F_WRLCK>) or release an open file description lock (when I<l_type> is " |
| 1342 |
"B<F_UNLCK>) on the bytes specified by the I<l_whence>, I<l_start>, and " |
| 1343 |
"I<l_len> fields of I<lock>. If a conflicting lock is held by another " |
| 1344 |
"process, this call returns -1 and sets I<errno> to B<EAGAIN>." |
| 1345 |
msgstr "" |
| 1346 |
"Установить блокировку открытого файлового описания (когда I<l_type> равен " |
| 1347 |
"B<F_RDLCK> или B<F_WRLCK>) или снять блокировку открытого файлового описания " |
| 1348 |
"(когда I<l_type> равен B<F_UNLCK>) байтов, указанных полями I<l_whence>, " |
| 1349 |
"I<l_start> и I<l_len> структуры I<lock>. Если конфликтующая блокировка " |
| 1350 |
"удерживается другим процессом, то данный вызов вернёт -1 и установит " |
| 1351 |
"значение I<errno> в B<EAGAIN>." |
| 1352 |
|
| 1353 |
#. type: TP |
| 1354 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1355 |
#, no-wrap |
| 1356 |
msgid "B<F_OFD_SETLKW> (I<struct flock *>)" |
| 1357 |
msgstr "B<F_OFD_SETLKW> (I<struct flock *>)" |
| 1358 |
|
| 1359 |
#. type: Plain text |
| 1360 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1361 |
msgid "" |
| 1362 |
"As for B<F_OFD_SETLK>, but if a conflicting lock is held on the file, then " |
| 1363 |
"wait for that lock to be released. If a signal is caught while waiting, " |
| 1364 |
"then the call is interrupted and (after the signal handler has returned) " |
| 1365 |
"returns immediately (with return value -1 and I<errno> set to B<EINTR>; see " |
| 1366 |
"B<signal>(7))." |
| 1367 |
msgstr "" |
| 1368 |
"Как B<F_OFD_SETLK>, но если конфликтующая блокировка удерживается на файле, " |
| 1369 |
"то выполняется ожидание снятия этой блокировки. Если во время ожидания " |
| 1370 |
"поступил сигнал, то данный вызов прерывается и (после возврата из " |
| 1371 |
"обработчика сигнала) из него происходит немедленный возврат (возвращается " |
| 1372 |
"значение -1 и I<errno> устанавливается в B<EINTR>; см. B<signal>(7))." |
| 1373 |
|
| 1374 |
#. type: TP |
| 1375 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1376 |
#, no-wrap |
| 1377 |
msgid "B<F_OFD_GETLK> (I<struct flock *>)" |
| 1378 |
msgstr "B<F_OFD_GETLK> (I<struct flock *>)" |
| 1379 |
|
| 1380 |
#. type: Plain text |
| 1381 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1382 |
msgid "" |
| 1383 |
"On input to this call, I<lock> describes an open file description lock we " |
| 1384 |
"would like to place on the file. If the lock could be placed, B<fcntl>() " |
| 1385 |
"does not actually place it, but returns B<F_UNLCK> in the I<l_type> field of " |
| 1386 |
"I<lock> and leaves the other fields of the structure unchanged. If one or " |
| 1387 |
"more incompatible locks would prevent this lock being placed, then details " |
| 1388 |
"about one of these locks are returned via I<lock>, as described above for " |
| 1389 |
"B<F_GETLK>." |
| 1390 |
msgstr "" |
| 1391 |
"В начала данного вызова значение I<lock> описывает блокировку открытого " |
| 1392 |
"файлового описания, которую мы бы хотели создать на файле. Если блокировка " |
| 1393 |
"возможна, то в действительности B<fcntl>() её не создаёт, а возвращает " |
| 1394 |
"B<F_UNLCK> в поле I<l_type> у I<lock>, оставляя остальные поля неизменными. " |
| 1395 |
"Если есть одна или более несовместимых блокировок, препятствующих получению, " |
| 1396 |
"то в I<lock> возвращается подробная информация об этих блокировках, как " |
| 1397 |
"описывалось выше для B<F_GETLK>." |
| 1398 |
|
| 1399 |
#. commit 57b65325fe34ec4c917bc4e555144b4a94d9e1f7 |
| 1400 |
#. type: Plain text |
| 1401 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1402 |
msgid "" |
| 1403 |
"In the current implementation, no deadlock detection is performed for open " |
| 1404 |
"file description locks. (This contrasts with process-associated record " |
| 1405 |
"locks, for which the kernel does perform deadlock detection.)" |
| 1406 |
msgstr "" |
| 1407 |
"В текущей реализации для блокировок открытых файловых описаний обнаружение " |
| 1408 |
"взаимных блокировок не выполняется (в этом отличие от попроцессных " |
| 1409 |
"блокировок, для которых ядро выполняет обнаружение взаимных блокировок)." |
| 1410 |
|
| 1411 |
#. type: SS |
| 1412 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1413 |
#, no-wrap |
| 1414 |
msgid "Mandatory locking" |
| 1415 |
msgstr "Обязательная (mandatory) блокировка" |
| 1416 |
|
| 1417 |
#. type: Plain text |
| 1418 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1419 |
#, fuzzy |
| 1420 |
#| msgid "" |
| 1421 |
#| "I<Warning>: the Linux implementation of mandatory locking is unreliable. " |
| 1422 |
#| "See BUGS below. Because of these bugs, and the fact that the feature is " |
| 1423 |
#| "believed to be little used, since Linux 4.5, mandatory locking has been " |
| 1424 |
#| "made an optional feature, governed by a configuration option " |
| 1425 |
#| "(B<CONFIG_MANDATORY_FILE_LOCKING>). This is an initial step toward " |
| 1426 |
#| "removing this feature completely." |
| 1427 |
msgid "" |
| 1428 |
"I<Warning>: the Linux implementation of mandatory locking is unreliable. " |
| 1429 |
"See BUGS below. Because of these bugs, and the fact that the feature is " |
| 1430 |
"believed to be little used, since Linux 4.5, mandatory locking has been made " |
| 1431 |
"an optional feature, governed by a configuration option " |
| 1432 |
"(B<CONFIG_MANDATORY_FILE_LOCKING>). This feature is no longer supported at " |
| 1433 |
"all in Linux 5.15 and above." |
| 1434 |
msgstr "" |
| 1435 |
"I<Предупреждение>: реализация Linux обязательного блокирования ненадёжна. " |
| 1436 |
"Смотрите раздел ДЕФЕКТЫ далее. Из-за этих дефектов и того факта, что это " |
| 1437 |
"свойство, вероятно, мало где будет использоваться, начиная с Linux 4.5 " |
| 1438 |
"обязательная блокировка был сделана необязательной, и включается параметром " |
| 1439 |
"настройки (B<CONFIG_MANDATORY_FILE_LOCKING>). Это первый шаг последующего " |
| 1440 |
"полного удаления данного свойства." |
| 1441 |
|
| 1442 |
#. type: Plain text |
| 1443 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1444 |
msgid "" |
| 1445 |
"By default, both traditional (process-associated) and open file description " |
| 1446 |
"record locks are advisory. Advisory locks are not enforced and are useful " |
| 1447 |
"only between cooperating processes." |
| 1448 |
msgstr "" |
| 1449 |
"По умолчанию, обычные (связанные с процессом) блокировки и блокировки " |
| 1450 |
"открытого файлового описания являются консультативными. Консультативные " |
| 1451 |
"блокировки не обязательны к выполнению и полезны только в сотрудничающих " |
| 1452 |
"процессах." |
| 1453 |
|
| 1454 |
#. type: Plain text |
| 1455 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1456 |
msgid "" |
| 1457 |
"Both lock types can also be mandatory. Mandatory locks are enforced for all " |
| 1458 |
"processes. If a process tries to perform an incompatible access (e.g., " |
| 1459 |
"B<read>(2) or B<write>(2)) on a file region that has an incompatible " |
| 1460 |
"mandatory lock, then the result depends upon whether the B<O_NONBLOCK> flag " |
| 1461 |
"is enabled for its open file description. If the B<O_NONBLOCK> flag is not " |
| 1462 |
"enabled, then the system call is blocked until the lock is removed or " |
| 1463 |
"converted to a mode that is compatible with the access. If the " |
| 1464 |
"B<O_NONBLOCK> flag is enabled, then the system call fails with the error " |
| 1465 |
"B<EAGAIN>." |
| 1466 |
msgstr "" |
| 1467 |
"Оба типа блокировки могут быть также обязательными. Если процесс пытается " |
| 1468 |
"получить несовместимый доступ (например, B<read>(2) и B<write>(2)) к области " |
| 1469 |
"файла, на которую установлена несовместимая обязательная блокировка, то " |
| 1470 |
"результат зависит от состояния флага B<O_NONBLOCK> в описании этого " |
| 1471 |
"открытого файла. Если флаг B<O_NONBLOCK> не установлен, то системный вызов " |
| 1472 |
"блокируется до удаления блокировки или преобразуется в режим, который " |
| 1473 |
"совместим с доступом. Если флаг B<O_NONBLOCK> установлен, то системный вызов " |
| 1474 |
"завершается с ошибкой B<EAGAIN>." |
| 1475 |
|
| 1476 |
#. type: Plain text |
| 1477 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1478 |
msgid "" |
| 1479 |
"To make use of mandatory locks, mandatory locking must be enabled both on " |
| 1480 |
"the filesystem that contains the file to be locked, and on the file itself. " |
| 1481 |
"Mandatory locking is enabled on a filesystem using the \"-o mand\" option to " |
| 1482 |
"B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2). Mandatory locking " |
| 1483 |
"is enabled on a file by disabling group execute permission on the file and " |
| 1484 |
"enabling the set-group-ID permission bit (see B<chmod>(1) and B<chmod>(2))." |
| 1485 |
msgstr "" |
| 1486 |
"Чтобы использовать обязательные блокировки, обязательное блокирование должно " |
| 1487 |
"быть включено в файловой системе, содержащей файл, и на самом файле. " |
| 1488 |
"Обязательное блокирование включается в файловой системе с помощью параметра " |
| 1489 |
"«-o mand» команды B<mount>(8) или с помощью флага B<MS_MANDLOCK> в " |
| 1490 |
"B<mount>(2). Обязательное блокирование включается на файле посредством " |
| 1491 |
"отключения права исполнения группе и установкой бита set-group-ID (см. " |
| 1492 |
"B<chmod>(1) и B<chmod>(2))." |
| 1493 |
|
| 1494 |
#. type: Plain text |
| 1495 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1496 |
msgid "" |
| 1497 |
"Mandatory locking is not specified by POSIX. Some other systems also " |
| 1498 |
"support mandatory locking, although the details of how to enable it vary " |
| 1499 |
"across systems." |
| 1500 |
msgstr "" |
| 1501 |
"Обязательная блокировка не описана в POSIX. В некоторых других системах " |
| 1502 |
"обязательная блокировка также поддерживается, хотя процесс её создания " |
| 1503 |
"различен." |
| 1504 |
|
| 1505 |
#. type: SS |
| 1506 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1507 |
#, no-wrap |
| 1508 |
msgid "Lost locks" |
| 1509 |
msgstr "Потерянные блокировки" |
| 1510 |
|
| 1511 |
#. type: Plain text |
| 1512 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1513 |
msgid "" |
| 1514 |
"When an advisory lock is obtained on a networked filesystem such as NFS it " |
| 1515 |
"is possible that the lock might get lost. This may happen due to " |
| 1516 |
"administrative action on the server, or due to a network partition (i.e., " |
| 1517 |
"loss of network connectivity with the server) which lasts long enough for " |
| 1518 |
"the server to assume that the client is no longer functioning." |
| 1519 |
msgstr "" |
| 1520 |
"При получении консультативной блокировки на сетевой файловой системе, " |
| 1521 |
"например NFS, возможна её потеря. Это может случиться из-за " |
| 1522 |
"административного действия или сетевой проблемы (т. е., потеря связи с " |
| 1523 |
"сервером), которая длится достаточно долго для того, чтобы сервер посчитал " |
| 1524 |
"клиента за неработающего." |
| 1525 |
|
| 1526 |
#. commit ef1820f9be27b6ad158f433ab38002ab8131db4d |
| 1527 |
#. type: Plain text |
| 1528 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1529 |
msgid "" |
| 1530 |
"When the filesystem determines that a lock has been lost, future B<read>(2) " |
| 1531 |
"or B<write>(2) requests may fail with the error B<EIO>. This error will " |
| 1532 |
"persist until the lock is removed or the file descriptor is closed. Since " |
| 1533 |
"Linux 3.12, this happens at least for NFSv4 (including all minor versions)." |
| 1534 |
msgstr "" |
| 1535 |
"Когда файловая система определяет, что блокировка потеряна, последующие " |
| 1536 |
"запросы B<read>(2) или B<write>(2) могут завершиться ошибкой B<EIO>. Эта " |
| 1537 |
"ошибка будет повторяться до тех пор, пока блокировка не удалится или не " |
| 1538 |
"закроется файловый дескриптор. Начиная с Linux 3.12, так работает, по " |
| 1539 |
"крайней мере, NFSv4 (включая все предыдущие версии)." |
| 1540 |
|
| 1541 |
#. type: Plain text |
| 1542 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1543 |
msgid "" |
| 1544 |
"Some versions of UNIX send a signal (B<SIGLOST>) in this circumstance. " |
| 1545 |
"Linux does not define this signal, and does not provide any asynchronous " |
| 1546 |
"notification of lost locks." |
| 1547 |
msgstr "" |
| 1548 |
"Некоторые версии UNIX при таких обстоятельствах посылают сигнал " |
| 1549 |
"(B<SIGLOST>). В Linux такой сигнал не определён и не существует какого-либо " |
| 1550 |
"асинхронного уведомления о потере блокировки." |
| 1551 |
|
| 1552 |
#. type: Plain text |
| 1553 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1554 |
msgid "" |
| 1555 |
"B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and " |
| 1556 |
"B<F_SETSIG> are used to manage I/O availability signals:" |
| 1557 |
msgstr "" |
| 1558 |
"Для управления сигналами доступности ввода/вывода используются команды " |
| 1559 |
"B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> и " |
| 1560 |
"B<F_SETSIG>:" |
| 1561 |
|
| 1562 |
#. type: TP |
| 1563 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1564 |
#, no-wrap |
| 1565 |
msgid "B<F_GETOWN> (I<void>)" |
| 1566 |
msgstr "B<F_GETOWN> (I<void>)" |
| 1567 |
|
| 1568 |
#. type: Plain text |
| 1569 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1570 |
#, fuzzy |
| 1571 |
#| msgid "" |
| 1572 |
#| "Return (as the function result) the process ID or process group " |
| 1573 |
#| "currently receiving B<SIGIO> and B<SIGURG> signals for events on file " |
| 1574 |
#| "descriptor I<fd>. Process IDs are returned as positive values; process " |
| 1575 |
#| "group IDs are returned as negative values (but see BUGS below). I<arg> " |
| 1576 |
#| "is ignored." |
| 1577 |
msgid "" |
| 1578 |
"Return (as the function result) the process ID or process group ID " |
| 1579 |
"currently receiving B<SIGIO> and B<SIGURG> signals for events on file " |
| 1580 |
"descriptor I<fd>. Process IDs are returned as positive values; process " |
| 1581 |
"group IDs are returned as negative values (but see BUGS below). I<arg> is " |
| 1582 |
"ignored." |
| 1583 |
msgstr "" |
| 1584 |
"Получить (как результат работы функции) идентификатор процесса или группы " |
| 1585 |
"процесса, который в текущий момент принимает сигналы B<SIGIO> и B<SIGURG> " |
| 1586 |
"для событий на файловом дескрипторе I<fd>. Идентификатор процесса " |
| 1587 |
"возвращается как положительное число; идентификатор группы возвращается как " |
| 1588 |
"отрицательное число (но см. раздел ДЕФЕКТЫ далее). Аргумент I<arg> " |
| 1589 |
"игнорируется." |
| 1590 |
|
| 1591 |
#. type: TP |
| 1592 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1593 |
#, no-wrap |
| 1594 |
msgid "B<F_SETOWN> (I<int>)" |
| 1595 |
msgstr "B<F_SETOWN> (I<int>)" |
| 1596 |
|
| 1597 |
#. type: Plain text |
| 1598 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1599 |
msgid "" |
| 1600 |
"Set the process ID or process group ID that will receive B<SIGIO> and " |
| 1601 |
"B<SIGURG> signals for events on the file descriptor I<fd>. The target " |
| 1602 |
"process or process group ID is specified in I<arg>. A process ID is " |
| 1603 |
"specified as a positive value; a process group ID is specified as a negative " |
| 1604 |
"value. Most commonly, the calling process specifies itself as the owner " |
| 1605 |
"(that is, I<arg> is specified as B<getpid>(2))." |
| 1606 |
msgstr "" |
| 1607 |
"Установить идентификатор процесса или группы процесса, которые будут " |
| 1608 |
"принимать сигналы B<SIGIO> и B<SIGURG> для событий на файловом дескрипторе " |
| 1609 |
"I<fd>. Идентификатор целевого процесса или группы процессов задаётся в " |
| 1610 |
"аргументе I<arg>. Идентификатор процесса задаётся положительным числом, " |
| 1611 |
"идентификатор группы задаётся отрицательным числом. Обычно, вызывающий " |
| 1612 |
"процесс указывает самого себя в качестве владельца (то есть в I<arg> " |
| 1613 |
"указывается результат B<getpid>(2))." |
| 1614 |
|
| 1615 |
#. type: Plain text |
| 1616 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1617 |
#, fuzzy |
| 1618 |
#| msgid "" |
| 1619 |
#| "As well as setting the file descriptor owner, one must also enable " |
| 1620 |
#| "generation of signals on the file descriptor. This is done by using the " |
| 1621 |
#| "B<fcntl>() B<F_SETFL> command to set the B<O_ASYNC> file status flag on " |
| 1622 |
#| "the file descriptor. Subsequently, a B<SIGIO> signal is sent whenever " |
| 1623 |
#| "input or output becomes possible on the file descriptor. The B<fcntl>() " |
| 1624 |
#| "B<F_SETSIG> command can be used to obtain delivery of a signal other than " |
| 1625 |
#| "B<SIGIO>." |
| 1626 |
msgid "" |
| 1627 |
"As well as setting the file descriptor owner, one must also enable " |
| 1628 |
"generation of signals on the file descriptor. This is done by using the " |
| 1629 |
"B<fcntl>() B<F_SETFL> operation to set the B<O_ASYNC> file status flag on " |
| 1630 |
"the file descriptor. Subsequently, a B<SIGIO> signal is sent whenever input " |
| 1631 |
"or output becomes possible on the file descriptor. The B<fcntl>() " |
| 1632 |
"B<F_SETSIG> operation can be used to obtain delivery of a signal other than " |
| 1633 |
"B<SIGIO>." |
| 1634 |
msgstr "" |
| 1635 |
"Помимо установки владельца дескриптора файла, также нужно включить генерацию " |
| 1636 |
"сигналов для файлового дескриптора. Это делается посредством установки флага " |
| 1637 |
"состояния B<O_ASYNC> в файловом дескрипторе с помощью B<fcntl>() с командой " |
| 1638 |
"B<F_SETFL>. После этого сигнал B<SIGIO> посылается всякий раз, когда для " |
| 1639 |
"данного файлового дескриптора становится возможным ввод или вывод. Для " |
| 1640 |
"включения доставки сигнала, отличного от B<SIGIO>, можно использовать " |
| 1641 |
"команду B<F_SETSIG> вызова B<fcntl>()." |
| 1642 |
|
| 1643 |
#. type: Plain text |
| 1644 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1645 |
msgid "" |
| 1646 |
"Sending a signal to the owner process (group) specified by B<F_SETOWN> is " |
| 1647 |
"subject to the same permissions checks as are described for B<kill>(2), " |
| 1648 |
"where the sending process is the one that employs B<F_SETOWN> (but see BUGS " |
| 1649 |
"below). If this permission check fails, then the signal is silently " |
| 1650 |
"discarded. I<Note>: The B<F_SETOWN> operation records the caller's " |
| 1651 |
"credentials at the time of the B<fcntl>() call, and it is these saved " |
| 1652 |
"credentials that are used for the permission checks." |
| 1653 |
msgstr "" |
| 1654 |
"Отправка сигнала процессу-владельцу (группе), указанному с помощью " |
| 1655 |
"B<F_SETOWN> — такая же проверка прав, как описано в B<kill>(2), где " |
| 1656 |
"посылающий процесс один из тех, который может пользоваться B<F_SETOWN> (но " |
| 1657 |
"смотрите раздел ДЕФЕКТЫ далее). Если проверка не проходит, то сигнал просто " |
| 1658 |
"отбрасывается. I<Замечание>: операция B<F_SETOWN> сохраняет мандаты " |
| 1659 |
"вызывающего на момент вызова B<fcntl>(), и эти сохранённые мандаты затем " |
| 1660 |
"используются при проверке прав." |
| 1661 |
|
| 1662 |
#. The following appears to be rubbish. It doesn't seem to |
| 1663 |
#. be true according to the kernel source, and I can write |
| 1664 |
#. a program that gets a terminal-generated SIGIO even though |
| 1665 |
#. it is not the foreground process group of the terminal. |
| 1666 |
#. -- MTK, 8 Apr 05 |
| 1667 |
#. If the file descriptor |
| 1668 |
#. .I fd |
| 1669 |
#. refers to a terminal device, then SIGIO |
| 1670 |
#. signals are sent to the foreground process group of the terminal. |
| 1671 |
#. type: Plain text |
| 1672 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1673 |
msgid "" |
| 1674 |
"If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects " |
| 1675 |
"the recipient of B<SIGURG> signals that are delivered when out-of-band data " |
| 1676 |
"arrives on that socket. (B<SIGURG> is sent in any situation where " |
| 1677 |
"B<select>(2) would report the socket as having an \"exceptional " |
| 1678 |
"condition\".)" |
| 1679 |
msgstr "" |
| 1680 |
"Если файловый дескриптор I<fd> указывает на сокет, то по команде B<F_SETOWN> " |
| 1681 |
"для него также выбирается получатель сигналов B<SIGURG>, которые " |
| 1682 |
"доставляются, когда на сокет поступают внеполосные данные. (B<SIGURG> " |
| 1683 |
"посылается во всех ситуациях, когда вызов B<select>(2) говорит, что сокет " |
| 1684 |
"находится в состоянии \"исключительной ситуации\".)" |
| 1685 |
|
| 1686 |
#. type: Plain text |
| 1687 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1688 |
#, fuzzy |
| 1689 |
#| msgid "" |
| 1690 |
#| "The following was true in 2.6.x kernels up to and including kernel 2.6.11:" |
| 1691 |
msgid "The following was true in Linux 2.6.x up to and including Linux 2.6.11:" |
| 1692 |
msgstr "Следующее верно для ядер 2.6.x, до 2.6.11 включительно:" |
| 1693 |
|
| 1694 |
#. The relevant place in the (2.6) kernel source is the |
| 1695 |
#. 'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005 |
| 1696 |
#. send_sigurg()/send_sigurg_to_task() bypasses |
| 1697 |
#. kill_fasync()/send_sigio()/send_sigio_to_task() |
| 1698 |
#. to directly call send_group_sig_info() |
| 1699 |
#. -- MTK, Apr 2005 (kernel 2.6.11) |
| 1700 |
#. type: Plain text |
| 1701 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1702 |
msgid "" |
| 1703 |
"If a nonzero value is given to B<F_SETSIG> in a multithreaded process " |
| 1704 |
"running with a threading library that supports thread groups (e.g., NPTL), " |
| 1705 |
"then a positive value given to B<F_SETOWN> has a different meaning: instead " |
| 1706 |
"of being a process ID identifying a whole process, it is a thread ID " |
| 1707 |
"identifying a specific thread within a process. Consequently, it may be " |
| 1708 |
"necessary to pass B<F_SETOWN> the result of B<gettid>(2) instead of " |
| 1709 |
"B<getpid>(2) to get sensible results when B<F_SETSIG> is used. (In current " |
| 1710 |
"Linux threading implementations, a main thread's thread ID is the same as " |
| 1711 |
"its process ID. This means that a single-threaded program can equally use " |
| 1712 |
"B<gettid>(2) or B<getpid>(2) in this scenario.) Note, however, that the " |
| 1713 |
"statements in this paragraph do not apply to the B<SIGURG> signal generated " |
| 1714 |
"for out-of-band data on a socket: this signal is always sent to either a " |
| 1715 |
"process or a process group, depending on the value given to B<F_SETOWN>." |
| 1716 |
msgstr "" |
| 1717 |
"Если для B<F_SETSIG> передаётся ненулевое значение в многонитевой процесс, " |
| 1718 |
"работающий с библиотекой нитей (например, NPTL), которая обеспечивает " |
| 1719 |
"поддержку групп нитей, то положительное значение, переданное B<F_SETOWN>, " |
| 1720 |
"имеет другой смысл: вместо указания ID процесса, описывающего весь процесс, " |
| 1721 |
"она является ID нити, указывающим на определённую нить процесса. Поэтому " |
| 1722 |
"может понадобиться передать в B<F_SETOWN> результат B<gettid>(2), а не " |
| 1723 |
"B<getpid>(2), чтобы получить правильный результат при использовании " |
| 1724 |
"B<F_SETSIG>. (В имеющихся реализациях Linux ID главной нити совпадает с ID " |
| 1725 |
"процесса. Это означает, что в программе с одной нитью можно использовать " |
| 1726 |
"любой вызов, B<gettid>(2) или B<getpid>(2), в этом случае.) Однако заметим, " |
| 1727 |
"что утверждения этого абзаца не применимы к сигналу B<SIGURG>, генерируемому " |
| 1728 |
"для внеполосных данных сокета: этот сигнал всегда посылается или процессу " |
| 1729 |
"или группе процессов, в зависимости от значения, указанного для B<F_SETOWN>." |
| 1730 |
|
| 1731 |
#. type: Plain text |
| 1732 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1733 |
msgid "" |
| 1734 |
"The above behavior was accidentally dropped in Linux 2.6.12, and won't be " |
| 1735 |
"restored. From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> " |
| 1736 |
"and B<SIGURG> signals at a particular thread." |
| 1737 |
msgstr "" |
| 1738 |
"Описанное выше поведение было случайно удалено из Linux 2.6.12, и так и не " |
| 1739 |
"восстановлено. Начиная с Linux 2.6.32 используйте B<F_SETOWN_EX> при " |
| 1740 |
"назначении сигналов B<SIGIO> и B<SIGURG> для определённой нити." |
| 1741 |
|
| 1742 |
#. type: TP |
| 1743 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1744 |
#, no-wrap |
| 1745 |
msgid "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)" |
| 1746 |
msgstr "B<F_GETOWN_EX> (I<struct f_owner_ex *>) (начиная с Linux 2.6.32)" |
| 1747 |
|
| 1748 |
#. type: Plain text |
| 1749 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1750 |
msgid "" |
| 1751 |
"Return the current file descriptor owner settings as defined by a previous " |
| 1752 |
"B<F_SETOWN_EX> operation. The information is returned in the structure " |
| 1753 |
"pointed to by I<arg>, which has the following form:" |
| 1754 |
msgstr "" |
| 1755 |
"Получить настройки владения текущим файловым дескриптором, установленные " |
| 1756 |
"предыдущей командой B<F_SETOWN_EX>. Информация возвращается в структуре, " |
| 1757 |
"указанной в I<arg>, которая имеет следующий вид:" |
| 1758 |
|
| 1759 |
#. type: Plain text |
| 1760 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1761 |
#, no-wrap |
| 1762 |
msgid "" |
| 1763 |
"struct f_owner_ex {\n" |
| 1764 |
" int type;\n" |
| 1765 |
" pid_t pid;\n" |
| 1766 |
"};\n" |
| 1767 |
msgstr "" |
| 1768 |
"struct f_owner_ex {\n" |
| 1769 |
" int type;\n" |
| 1770 |
" pid_t pid;\n" |
| 1771 |
"};\n" |
| 1772 |
|
| 1773 |
#. type: Plain text |
| 1774 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1775 |
msgid "" |
| 1776 |
"The I<type> field will have one of the values B<F_OWNER_TID>, " |
| 1777 |
"B<F_OWNER_PID>, or B<F_OWNER_PGRP>. The I<pid> field is a positive integer " |
| 1778 |
"representing a thread ID, process ID, or process group ID. See " |
| 1779 |
"B<F_SETOWN_EX> for more details." |
| 1780 |
msgstr "" |
| 1781 |
"Поле I<type> будет равно: B<F_OWNER_TID>, B<F_OWNER_PID> или " |
| 1782 |
"B<F_OWNER_PGRP>. Значением поля I<pid> будет положительное целое, " |
| 1783 |
"представляющее ID нити, ID процесса или ID группы процессов. Подробности " |
| 1784 |
"смотрите в описании B<F_SETOWN_EX>." |
| 1785 |
|
| 1786 |
#. type: TP |
| 1787 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1788 |
#, no-wrap |
| 1789 |
msgid "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (since Linux 2.6.32)" |
| 1790 |
msgstr "B<F_SETOWN_EX> (I<struct f_owner_ex *>) (начиная с Linux 2.6.32)" |
| 1791 |
|
| 1792 |
#. type: Plain text |
| 1793 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1794 |
msgid "" |
| 1795 |
"This operation performs a similar task to B<F_SETOWN>. It allows the caller " |
| 1796 |
"to direct I/O availability signals to a specific thread, process, or process " |
| 1797 |
"group. The caller specifies the target of signals via I<arg>, which is a " |
| 1798 |
"pointer to a I<f_owner_ex> structure. The I<type> field has one of the " |
| 1799 |
"following values, which define how I<pid> is interpreted:" |
| 1800 |
msgstr "" |
| 1801 |
"Эта команда выполняет задачу, подобную B<F_SETOWN>. Она позволяет " |
| 1802 |
"вызывающему назначить сигналы доступности ввода-вывода определённой нити, " |
| 1803 |
"процессу или группе процессов. Вызывающий указывает приёмник сигналов в " |
| 1804 |
"I<arg>, выражаемый указателем на структуру I<f_owner_ex>. Поле I<type> имеет " |
| 1805 |
"одно из следующих значений, которое определяет чем считать I<pid>:" |
| 1806 |
|
| 1807 |
#. type: TP |
| 1808 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1809 |
#, no-wrap |
| 1810 |
msgid "B<F_OWNER_TID>" |
| 1811 |
msgstr "B<F_OWNER_TID>" |
| 1812 |
|
| 1813 |
#. type: Plain text |
| 1814 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1815 |
msgid "" |
| 1816 |
"Send the signal to the thread whose thread ID (the value returned by a call " |
| 1817 |
"to B<clone>(2) or B<gettid>(2)) is specified in I<pid>." |
| 1818 |
msgstr "" |
| 1819 |
"Посылать сигнал нити, чей ID (значение, возвращаемое вызовом B<clone>(2) или " |
| 1820 |
"B<gettid>(2)) указан в I<pid>." |
| 1821 |
|
| 1822 |
#. type: TP |
| 1823 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1824 |
#, no-wrap |
| 1825 |
msgid "B<F_OWNER_PID>" |
| 1826 |
msgstr "B<F_OWNER_PID>" |
| 1827 |
|
| 1828 |
#. type: Plain text |
| 1829 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1830 |
msgid "Send the signal to the process whose ID is specified in I<pid>." |
| 1831 |
msgstr "Посылать сигнал процессу, чей ID указан в I<pid>." |
| 1832 |
|
| 1833 |
#. type: TP |
| 1834 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1835 |
#, no-wrap |
| 1836 |
msgid "B<F_OWNER_PGRP>" |
| 1837 |
msgstr "B<F_OWNER_PGRP>" |
| 1838 |
|
| 1839 |
#. type: Plain text |
| 1840 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1841 |
msgid "" |
| 1842 |
"Send the signal to the process group whose ID is specified in I<pid>. (Note " |
| 1843 |
"that, unlike with B<F_SETOWN>, a process group ID is specified as a positive " |
| 1844 |
"value here.)" |
| 1845 |
msgstr "" |
| 1846 |
"Посылать сигнал группе процессов, чей ID указан в I<pid>. (Заметим, что в " |
| 1847 |
"отличие от B<F_SETOWN>, ID группы процессов здесь задаётся как положительное " |
| 1848 |
"значение.)" |
| 1849 |
|
| 1850 |
#. type: TP |
| 1851 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1852 |
#, no-wrap |
| 1853 |
msgid "B<F_GETSIG> (I<void>)" |
| 1854 |
msgstr "B<F_GETSIG> (I<void>)" |
| 1855 |
|
| 1856 |
#. type: Plain text |
| 1857 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1858 |
msgid "" |
| 1859 |
"Return (as the function result) the signal sent when input or output " |
| 1860 |
"becomes possible. A value of zero means B<SIGIO> is sent. Any other value " |
| 1861 |
"(including B<SIGIO>) is the signal sent instead, and in this case " |
| 1862 |
"additional info is available to the signal handler if installed with " |
| 1863 |
"B<SA_SIGINFO>. I<arg> is ignored." |
| 1864 |
msgstr "" |
| 1865 |
"Получить (как результат функции) сигнал, посылаемый, когда становится " |
| 1866 |
"возможным ввод или вывод. Значение 0 означает сигнал B<SIGIO>. Любое другое " |
| 1867 |
"значение (включая B<SIGIO>) является другим сигналом, и в этом случае для " |
| 1868 |
"обработчика сигнала доступна дополнительная информация, если он был " |
| 1869 |
"установлен с B<SA_SIGINFO>. Аргумент I<arg> игнорируется." |
| 1870 |
|
| 1871 |
#. type: TP |
| 1872 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1873 |
#, no-wrap |
| 1874 |
msgid "B<F_SETSIG> (I<int>)" |
| 1875 |
msgstr "B<F_SETSIG> (I<int>)" |
| 1876 |
|
| 1877 |
#. The following was true only up until Linux 2.6.11: |
| 1878 |
#. Additionally, passing a nonzero value to |
| 1879 |
#. .B F_SETSIG |
| 1880 |
#. changes the signal recipient from a whole process to a specific thread |
| 1881 |
#. within a process. |
| 1882 |
#. See the description of |
| 1883 |
#. .B F_SETOWN |
| 1884 |
#. for more details. |
| 1885 |
#. type: Plain text |
| 1886 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1887 |
msgid "" |
| 1888 |
"Set the signal sent when input or output becomes possible to the value given " |
| 1889 |
"in I<arg>. A value of zero means to send the default B<SIGIO> signal. Any " |
| 1890 |
"other value (including B<SIGIO>) is the signal to send instead, and in this " |
| 1891 |
"case additional info is available to the signal handler if installed with " |
| 1892 |
"B<SA_SIGINFO>." |
| 1893 |
msgstr "" |
| 1894 |
"Установить сигнал, который будет посылаться когда станет возможен ввод или " |
| 1895 |
"вывод, в значение, указанное в I<arg>. Значение 0 означает сигнал по " |
| 1896 |
"умолчанию B<SIGIO>. Любое другое значение (включая B<SIGIO>) является другим " |
| 1897 |
"сигналом, и в этом случае, для обработчика сигнала доступна дополнительная " |
| 1898 |
"информация, если он был установлен с B<SA_SIGINFO>." |
| 1899 |
|
| 1900 |
#. type: Plain text |
| 1901 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1902 |
msgid "" |
| 1903 |
"By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the " |
| 1904 |
"signal handler (see B<sigaction>(2)), extra information about I/O events is " |
| 1905 |
"passed to the handler in a I<siginfo_t> structure. If the I<si_code> field " |
| 1906 |
"indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file " |
| 1907 |
"descriptor associated with the event. Otherwise, there is no indication " |
| 1908 |
"which file descriptors are pending, and you should use the usual mechanisms " |
| 1909 |
"(B<select>(2), B<poll>(2), B<read>(2) with B<O_NONBLOCK> set etc.) to " |
| 1910 |
"determine which file descriptors are available for I/O." |
| 1911 |
msgstr "" |
| 1912 |
"В случае использования B<F_SETSIG> с ненулевым значением и установкой " |
| 1913 |
"B<SA_SIGINFO> для обработчика сигнала (см. B<sigaction>(2)) обработчику " |
| 1914 |
"передаётся дополнительная информация о событиях ввода/вывода в структуре " |
| 1915 |
"I<siginfo_t>. Если поле I<si_code> показывает, что источник \\(em " |
| 1916 |
"B<SI_SIGIO>, то поле I<si_fd> содержит файловый дескриптор, ассоциированный " |
| 1917 |
"с событием. В противном случае не существует никакого механизма, чтобы " |
| 1918 |
"сообщить с каким файловым дескриптором связан полученный сигнал, и вы должны " |
| 1919 |
"использовать обычные механизмы (B<select>(2), B<poll>(2), B<read>(2) с " |
| 1920 |
"установленным B<O_NONBLOCK> и т.д.), чтобы определить какой файловый " |
| 1921 |
"дескриптор доступен для ввода/вывода." |
| 1922 |
|
| 1923 |
#. type: Plain text |
| 1924 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1925 |
msgid "" |
| 1926 |
"Note that the file descriptor provided in I<si_fd> is the one that was " |
| 1927 |
"specified during the B<F_SETSIG> operation. This can lead to an unusual " |
| 1928 |
"corner case. If the file descriptor is duplicated (B<dup>(2) or similar), " |
| 1929 |
"and the original file descriptor is closed, then I/O events will continue to " |
| 1930 |
"be generated, but the I<si_fd> field will contain the number of the now " |
| 1931 |
"closed file descriptor." |
| 1932 |
msgstr "" |
| 1933 |
"Заметим, что файловый дескриптор, предоставляемый в I<si_fd>, тот же, что " |
| 1934 |
"указывался при операции B<F_SETSIG>. Это может привести к редкой тупиковой " |
| 1935 |
"ситуации. Если с файлового дескриптора делался дубль (B<dup>(2) или подобным " |
| 1936 |
"вызовом), и оригинальный файловый дескриптор закрыт, то события ввода-вывода " |
| 1937 |
"будут продолжать генерироваться, но поле I<si_fd> будет содержать номер " |
| 1938 |
"теперь уже закрытого файлового дескриптора." |
| 1939 |
|
| 1940 |
#. type: Plain text |
| 1941 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1942 |
msgid "" |
| 1943 |
"By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O " |
| 1944 |
"events may be queued using the same signal numbers. (Queuing is dependent " |
| 1945 |
"on available memory.) Extra information is available if B<SA_SIGINFO> is " |
| 1946 |
"set for the signal handler, as above." |
| 1947 |
msgstr "" |
| 1948 |
"При выборе сигнала реального времени (значение E<gt>= B<SIGRTMIN>) в очередь " |
| 1949 |
"может добавляться несколько событий ввода-вывода с одинаковыми номерами " |
| 1950 |
"сигналов (размер очереди зависит от доступной памяти). Дополнительная " |
| 1951 |
"информация будет доступна как описано выше, если для обработчика сигнала " |
| 1952 |
"будет установлено B<SA_SIGINFO>." |
| 1953 |
|
| 1954 |
#. See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05 |
| 1955 |
#. type: Plain text |
| 1956 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1957 |
msgid "" |
| 1958 |
"Note that Linux imposes a limit on the number of real-time signals that may " |
| 1959 |
"be queued to a process (see B<getrlimit>(2) and B<signal>(7)) and if this " |
| 1960 |
"limit is reached, then the kernel reverts to delivering B<SIGIO>, and this " |
| 1961 |
"signal is delivered to the entire process rather than to a specific thread." |
| 1962 |
msgstr "" |
| 1963 |
"Заметим, что в Linux есть предел на количество сигналов реального времени, " |
| 1964 |
"которые могут находиться в очереди процесса (см. B<getrlimit>(2) и " |
| 1965 |
"B<signal>(7)), и если этот предел достигнут, то ядро изменяет пункт доставки " |
| 1966 |
"B<SIGIO>, и этот сигнал доставляется всему процессу, а не указанной нити." |
| 1967 |
|
| 1968 |
#. type: Plain text |
| 1969 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1970 |
msgid "" |
| 1971 |
"Using these mechanisms, a program can implement fully asynchronous I/O " |
| 1972 |
"without using B<select>(2) or B<poll>(2) most of the time." |
| 1973 |
msgstr "" |
| 1974 |
"Используя эти механизмы, программа может реализовать полностью асинхронный " |
| 1975 |
"ввод-вывод почти не используя в своей работе B<select>(2) или B<poll>(2)." |
| 1976 |
|
| 1977 |
#. type: Plain text |
| 1978 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1979 |
#, fuzzy |
| 1980 |
#| msgid "" |
| 1981 |
#| "The use of B<O_ASYNC> is specific to BSD and Linux. The only use of " |
| 1982 |
#| "B<F_GETOWN> and B<F_SETOWN> specified in POSIX.1 is in conjunction with " |
| 1983 |
#| "the use of the B<SIGURG> signal on sockets. (POSIX does not specify the " |
| 1984 |
#| "B<SIGIO> signal.) B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and " |
| 1985 |
#| "B<F_SETSIG> are Linux-specific. POSIX has asynchronous I/O and the " |
| 1986 |
#| "I<aio_sigevent> structure to achieve similar things; these are also " |
| 1987 |
#| "available in Linux as part of the GNU C Library (Glibc)." |
| 1988 |
msgid "" |
| 1989 |
"The use of B<O_ASYNC> is specific to BSD and Linux. The only use of " |
| 1990 |
"B<F_GETOWN> and B<F_SETOWN> specified in POSIX.1 is in conjunction with the " |
| 1991 |
"use of the B<SIGURG> signal on sockets. (POSIX does not specify the " |
| 1992 |
"B<SIGIO> signal.) B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and " |
| 1993 |
"B<F_SETSIG> are Linux-specific. POSIX has asynchronous I/O and the " |
| 1994 |
"I<aio_sigevent> structure to achieve similar things; these are also " |
| 1995 |
"available in Linux as part of the GNU C Library (glibc)." |
| 1996 |
msgstr "" |
| 1997 |
"Использование B<O_ASYNC>, является специфичным для BSD и Linux. В POSIX.1 " |
| 1998 |
"описано только использование B<F_GETOWN> и B<F_SETOWN> вместе с сигналом " |
| 1999 |
"B<SIGURG> для сокетов (в POSIX не определён сигнал B<SIGIO>). " |
| 2000 |
"B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and B<F_SETSIG> есть только в " |
| 2001 |
"Linux. В POSIX описан асинхронный ввод-вывод и структура I<aio_sigevent>, " |
| 2002 |
"используемая для сходных действий; они также доступны в Linux как часть " |
| 2003 |
"библиотеки GNU C (Glibc)." |
| 2004 |
|
| 2005 |
#. type: Plain text |
| 2006 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2007 |
msgid "" |
| 2008 |
"B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used to establish a " |
| 2009 |
"new lease, and retrieve the current lease, on the open file description " |
| 2010 |
"referred to by the file descriptor I<fd>. A file lease provides a mechanism " |
| 2011 |
"whereby the process holding the lease (the \"lease holder\") is notified " |
| 2012 |
"(via delivery of a signal) when a process (the \"lease breaker\") tries to " |
| 2013 |
"B<open>(2) or B<truncate>(2) the file referred to by that file descriptor." |
| 2014 |
msgstr "" |
| 2015 |
"Команды B<F_SETLEASE> и B<F_GETLEASE> (в Linux 2.4 и выше) используются для " |
| 2016 |
"установки новой и получения текущей аренды открытого описания файла, на " |
| 2017 |
"который указывает файловый дескриптор I<fd>. Аренда файла предоставляет " |
| 2018 |
"механизм, посредством которого процесс, который удерживает аренду " |
| 2019 |
"(«арендатор»), уведомляется (отправкой сигнала), когда процесс («нарушитель " |
| 2020 |
"аренды») пытается выполнить вызов B<open>(2) или B<truncate>(2) на файл, " |
| 2021 |
"указанный в этом файловом дескрипторе." |
| 2022 |
|
| 2023 |
#. type: TP |
| 2024 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2025 |
#, no-wrap |
| 2026 |
msgid "B<F_SETLEASE> (I<int>)" |
| 2027 |
msgstr "B<F_SETLEASE> (I<int>)" |
| 2028 |
|
| 2029 |
#. type: Plain text |
| 2030 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2031 |
msgid "" |
| 2032 |
"Set or remove a file lease according to which of the following values is " |
| 2033 |
"specified in the integer I<arg>:" |
| 2034 |
msgstr "" |
| 2035 |
"Установить или удалить аренду файла, в соответствии со значениями, " |
| 2036 |
"указываемыми в I<arg>:" |
| 2037 |
|
| 2038 |
#. type: TP |
| 2039 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2040 |
#, no-wrap |
| 2041 |
msgid "B<F_RDLCK>" |
| 2042 |
msgstr "B<F_RDLCK>" |
| 2043 |
|
| 2044 |
#. The following became true in Linux 2.6.10: |
| 2045 |
#. See the man-pages-2.09 Changelog for further info. |
| 2046 |
#. type: Plain text |
| 2047 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2048 |
msgid "" |
| 2049 |
"Take out a read lease. This will cause the calling process to be notified " |
| 2050 |
"when the file is opened for writing or is truncated. A read lease can be " |
| 2051 |
"placed only on a file descriptor that is opened read-only." |
| 2052 |
msgstr "" |
| 2053 |
"Установить аренду чтения. Это приведёт к генерации уведомления вызывающего " |
| 2054 |
"процесса, когда файл открывается для записи или усечения. Аренда чтения " |
| 2055 |
"может быть выделена только на файловый дескриптор, открытый только на чтение." |
| 2056 |
|
| 2057 |
#. type: TP |
| 2058 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2059 |
#, no-wrap |
| 2060 |
msgid "B<F_WRLCK>" |
| 2061 |
msgstr "B<F_WRLCK>" |
| 2062 |
|
| 2063 |
#. type: Plain text |
| 2064 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2065 |
msgid "" |
| 2066 |
"Take out a write lease. This will cause the caller to be notified when the " |
| 2067 |
"file is opened for reading or writing or is truncated. A write lease may be " |
| 2068 |
"placed on a file only if there are no other open file descriptors for the " |
| 2069 |
"file." |
| 2070 |
msgstr "" |
| 2071 |
"Установить аренду записи. Это приведёт к генерации уведомления вызывающего " |
| 2072 |
"процесса, когда файл открывается для чтения или записи или выполняется его " |
| 2073 |
"усечение. Аренда записи может быть установлена на файл, только если этот " |
| 2074 |
"файл не имеет других открытых файловых дескрипторов." |
| 2075 |
|
| 2076 |
#. type: TP |
| 2077 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2078 |
#, no-wrap |
| 2079 |
msgid "B<F_UNLCK>" |
| 2080 |
msgstr "B<F_UNLCK>" |
| 2081 |
|
| 2082 |
#. type: Plain text |
| 2083 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2084 |
msgid "Remove our lease from the file." |
| 2085 |
msgstr "Удалить аренду с указанного файла." |
| 2086 |
|
| 2087 |
#. type: Plain text |
| 2088 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2089 |
msgid "" |
| 2090 |
"Leases are associated with an open file description (see B<open>(2)). This " |
| 2091 |
"means that duplicate file descriptors (created by, for example, B<fork>(2) " |
| 2092 |
"or B<dup>(2)) refer to the same lease, and this lease may be modified or " |
| 2093 |
"released using any of these descriptors. Furthermore, the lease is released " |
| 2094 |
"by either an explicit B<F_UNLCK> operation on any of these duplicate file " |
| 2095 |
"descriptors, or when all such file descriptors have been closed." |
| 2096 |
msgstr "" |
| 2097 |
"Аренды ассоциируются с открытым файловым описанием (см. B<open>(2)). Это " |
| 2098 |
"значит, что дублированные файловые дескрипторы (созданные, например, " |
| 2099 |
"B<fork>(2) или B<dup>(2)) указывают на одну и ту же аренду, и эта аренда " |
| 2100 |
"может изменяться или освобождаться через любой из этих дескрипторов. Более " |
| 2101 |
"того, аренда освобождается или через явную команду B<F_UNLCK> на любом из " |
| 2102 |
"этих дублированных файловых дескрипторов, или когда все эти файловые " |
| 2103 |
"дескрипторы будут закрыты." |
| 2104 |
|
| 2105 |
#. type: Plain text |
| 2106 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2107 |
msgid "" |
| 2108 |
"Leases may be taken out only on regular files. An unprivileged process may " |
| 2109 |
"take out a lease only on a file whose UID (owner) matches the filesystem UID " |
| 2110 |
"of the process. A process with the B<CAP_LEASE> capability may take out " |
| 2111 |
"leases on arbitrary files." |
| 2112 |
msgstr "" |
| 2113 |
"Аренды могут быть выданы только на обычные файлы. Непривилегированный " |
| 2114 |
"процесс может получить аренду только на файл, чей UID (владельца) совпадает " |
| 2115 |
"с UID на файловой системе процесса. Процесс с мандатом B<CAP_LEASE> может " |
| 2116 |
"получить аренду на любые файлы." |
| 2117 |
|
| 2118 |
#. type: TP |
| 2119 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2120 |
#, no-wrap |
| 2121 |
msgid "B<F_GETLEASE> (I<void>)" |
| 2122 |
msgstr "B<F_GETLEASE> (I<void>)" |
| 2123 |
|
| 2124 |
#. type: Plain text |
| 2125 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2126 |
msgid "" |
| 2127 |
"Indicates what type of lease is associated with the file descriptor I<fd> by " |
| 2128 |
"returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, " |
| 2129 |
"respectively, a read lease , a write lease, or no lease. I<arg> is ignored." |
| 2130 |
msgstr "" |
| 2131 |
"Узнать какой тип аренды ассоциирован с файловым дескриптором I<fd>; " |
| 2132 |
"возвращается одно из значений B<F_RDLCK>, B<F_WRLCK> или B<F_UNLCK>, " |
| 2133 |
"соответственно означающих аренду на чтение, запись или что аренды нет. " |
| 2134 |
"Аргумент I<arg> игнорируется." |
| 2135 |
|
| 2136 |
#. type: Plain text |
| 2137 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2138 |
#, fuzzy |
| 2139 |
#| msgid "" |
| 2140 |
#| "When a process (the \"lease breaker\") performs an B<open>(2) or " |
| 2141 |
#| "B<truncate>(2) that conflicts with a lease established via " |
| 2142 |
#| "B<F_SETLEASE>, the system call is blocked by the kernel and the kernel " |
| 2143 |
#| "notifies the lease holder by sending it a signal (B<SIGIO> by default). " |
| 2144 |
#| "The lease holder should respond to receipt of this signal by doing " |
| 2145 |
#| "whatever cleanup is required in preparation for the file to be accessed " |
| 2146 |
#| "by another process (e.g., flushing cached buffers) and then either remove " |
| 2147 |
#| "or downgrade its lease. A lease is removed by performing an " |
| 2148 |
#| "B<F_SETLEASE> command specifying I<arg> as B<F_UNLCK>. If the lease " |
| 2149 |
#| "holder currently holds a write lease on the file, and the lease breaker " |
| 2150 |
#| "is opening the file for reading, then it is sufficient for the lease " |
| 2151 |
#| "holder to downgrade the lease to a read lease. This is done by " |
| 2152 |
#| "performing an B<F_SETLEASE> command specifying I<arg> as B<F_RDLCK>." |
| 2153 |
msgid "" |
| 2154 |
"When a process (the \"lease breaker\") performs an B<open>(2) or " |
| 2155 |
"B<truncate>(2) that conflicts with a lease established via B<F_SETLEASE>, " |
| 2156 |
"the system call is blocked by the kernel and the kernel notifies the lease " |
| 2157 |
"holder by sending it a signal (B<SIGIO> by default). The lease holder " |
| 2158 |
"should respond to receipt of this signal by doing whatever cleanup is " |
| 2159 |
"required in preparation for the file to be accessed by another process " |
| 2160 |
"(e.g., flushing cached buffers) and then either remove or downgrade its " |
| 2161 |
"lease. A lease is removed by performing an B<F_SETLEASE> operation " |
| 2162 |
"specifying I<arg> as B<F_UNLCK>. If the lease holder currently holds a " |
| 2163 |
"write lease on the file, and the lease breaker is opening the file for " |
| 2164 |
"reading, then it is sufficient for the lease holder to downgrade the lease " |
| 2165 |
"to a read lease. This is done by performing an B<F_SETLEASE> operation " |
| 2166 |
"specifying I<arg> as B<F_RDLCK>." |
| 2167 |
msgstr "" |
| 2168 |
"Когда процесс («нарушителя аренды») выполняет вызов B<open>(2) или " |
| 2169 |
"B<truncate>(2), который конфликтует с арендой, установленной через " |
| 2170 |
"B<F_SETLEASE>, то системный вызов блокируется ядром и ядро уведомляет " |
| 2171 |
"арендатора сигналом (по умолчанию B<SIGIO>). Арендатор должен при получении " |
| 2172 |
"этого сигнала выполнить все необходимые действия по очистке для подготовки " |
| 2173 |
"этого файла к использованию другим процессом (например, сбросить буферы " |
| 2174 |
"кэша) и затем удалить или снизить условия аренды. Аренда удаляется по " |
| 2175 |
"команде B<F_SETLEASE> с аргументом I<arg>, установленным в B<F_UNLCK>. Если " |
| 2176 |
"арендатор удерживает аренду на запись в файл, и нарушитель аренды открывает " |
| 2177 |
"файл на чтение, то достаточно того, что арендатор понизит условия аренды до " |
| 2178 |
"аренды на чтение. Это выполняется командой B<F_SETLEASE> с аргументом " |
| 2179 |
"I<arg>, установленным в B<F_RDLCK>." |
| 2180 |
|
| 2181 |
#. type: Plain text |
| 2182 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2183 |
msgid "" |
| 2184 |
"If the lease holder fails to downgrade or remove the lease within the number " |
| 2185 |
"of seconds specified in I</proc/sys/fs/lease-break-time>, then the kernel " |
| 2186 |
"forcibly removes or downgrades the lease holder's lease." |
| 2187 |
msgstr "" |
| 2188 |
"Если арендатор не освободит аренду или не снизит условия в течении " |
| 2189 |
"определённого количества секунд, указанного в файле I</proc/sys/fs/lease-" |
| 2190 |
"break-time>, то ядро принудительно удалит или снизит условия аренды для " |
| 2191 |
"арендатора." |
| 2192 |
|
| 2193 |
#. type: Plain text |
| 2194 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2195 |
msgid "" |
| 2196 |
"Once a lease break has been initiated, B<F_GETLEASE> returns the target " |
| 2197 |
"lease type (either B<F_RDLCK> or B<F_UNLCK>, depending on what would be " |
| 2198 |
"compatible with the lease breaker) until the lease holder voluntarily " |
| 2199 |
"downgrades or removes the lease or the kernel forcibly does so after the " |
| 2200 |
"lease break timer expires." |
| 2201 |
msgstr "" |
| 2202 |
"После того, как был начат разрыв аренды, B<F_GETLEASE> возвращает тип " |
| 2203 |
"назначения аренды (или B<F_RDLCK> или B<F_UNLCK>, в зависимости от " |
| 2204 |
"необходимости совместимости с нарушителем аренды) до тех пор, пока держатель " |
| 2205 |
"аренды добровольно не отдаст или не удалит аренду или ядро принудительно не " |
| 2206 |
"сделает это после истечения таймера разрыва аренды." |
| 2207 |
|
| 2208 |
#. type: Plain text |
| 2209 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2210 |
msgid "" |
| 2211 |
"Once the lease has been voluntarily or forcibly removed or downgraded, and " |
| 2212 |
"assuming the lease breaker has not unblocked its system call, the kernel " |
| 2213 |
"permits the lease breaker's system call to proceed." |
| 2214 |
msgstr "" |
| 2215 |
"После того как аренда снята держателем аренды или принудительно удалена и " |
| 2216 |
"снижены условия, и предполагая, что нарушитель аренды не выполнял " |
| 2217 |
"неблокирующий системный вызов, ядро позволяет продолжить работу системного " |
| 2218 |
"вызова нарушителя аренды." |
| 2219 |
|
| 2220 |
#. type: Plain text |
| 2221 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2222 |
msgid "" |
| 2223 |
"If the lease breaker's blocked B<open>(2) or B<truncate>(2) is interrupted " |
| 2224 |
"by a signal handler, then the system call fails with the error B<EINTR>, but " |
| 2225 |
"the other steps still occur as described above. If the lease breaker is " |
| 2226 |
"killed by a signal while blocked in B<open>(2) or B<truncate>(2), then the " |
| 2227 |
"other steps still occur as described above. If the lease breaker specifies " |
| 2228 |
"the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately " |
| 2229 |
"fails with the error B<EWOULDBLOCK>, but the other steps still occur as " |
| 2230 |
"described above." |
| 2231 |
msgstr "" |
| 2232 |
"Если нарушитель аренды, заблокированный в B<open>(2) или B<truncate>(2), " |
| 2233 |
"прерывается обработчиком сигнала, то системный вызов завершается неудачно с " |
| 2234 |
"ошибкой B<EINTR>, но другие шаги по-прежнему выполняются как описано ранее. " |
| 2235 |
"Если нарушитель аренды завершается по сигналу будучи блокированным в " |
| 2236 |
"B<open>(2) или B<truncate>(2), то другие шаги по-прежнему выполняются как " |
| 2237 |
"описано ранее. Если нарушитель аренды указал флаг B<O_NONBLOCK> при вызове " |
| 2238 |
"B<open>(2), то вызов немедленно завершается неудачей с ошибкой " |
| 2239 |
"B<EWOULDBLOCK>, но другие шаги по-прежнему выполняются как описано ранее. " |
| 2240 |
|
| 2241 |
#. type: Plain text |
| 2242 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2243 |
#, fuzzy |
| 2244 |
#| msgid "" |
| 2245 |
#| "The default signal used to notify the lease holder is B<SIGIO>, but this " |
| 2246 |
#| "can be changed using the B<F_SETSIG> command to B<fcntl>(). If a " |
| 2247 |
#| "B<F_SETSIG> command is performed (even one specifying B<SIGIO>), and the " |
| 2248 |
#| "signal handler is established using B<SA_SIGINFO>, then the handler will " |
| 2249 |
#| "receive a I<siginfo_t> structure as its second argument, and the I<si_fd> " |
| 2250 |
#| "field of this argument will hold the file descriptor of the leased file " |
| 2251 |
#| "that has been accessed by another process. (This is useful if the caller " |
| 2252 |
#| "holds leases against multiple files.)" |
| 2253 |
msgid "" |
| 2254 |
"The default signal used to notify the lease holder is B<SIGIO>, but this can " |
| 2255 |
"be changed using the B<F_SETSIG> operation to B<fcntl>(). If a B<F_SETSIG> " |
| 2256 |
"operation is performed (even one specifying B<SIGIO>), and the signal " |
| 2257 |
"handler is established using B<SA_SIGINFO>, then the handler will receive a " |
| 2258 |
"I<siginfo_t> structure as its second argument, and the I<si_fd> field of " |
| 2259 |
"this argument will hold the file descriptor of the leased file that has been " |
| 2260 |
"accessed by another process. (This is useful if the caller holds leases " |
| 2261 |
"against multiple files.)" |
| 2262 |
msgstr "" |
| 2263 |
"По умолчанию, для уведомления арендатора используется сигнал B<SIGIO>, но " |
| 2264 |
"его можно изменить, используя команду B<F_SETSIG> для B<fcntl>(). Если " |
| 2265 |
"выполняется команда B<F_SETSIG> (даже назначая сигнал B<SIGIO>), и при этом " |
| 2266 |
"обработчик сигнала устанавливается с использованием B<SA_SIGINFO>, то " |
| 2267 |
"обработчик получит в качестве второго аргумента структуру I<siginfo_t>, в " |
| 2268 |
"которой поле I<si_fd> будет содержать файловый дескриптор арендованного " |
| 2269 |
"файла, к которому пытается получить доступ другой процесс (это полезно, если " |
| 2270 |
"вызывающий процесс удерживает аренду на несколько файлов)." |
| 2271 |
|
| 2272 |
#. type: TP |
| 2273 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2274 |
#, no-wrap |
| 2275 |
msgid "B<F_NOTIFY> (I<int>)" |
| 2276 |
msgstr "B<F_NOTIFY> (I<int>)" |
| 2277 |
|
| 2278 |
#. type: Plain text |
| 2279 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2280 |
msgid "" |
| 2281 |
"(Linux 2.4 onward) Provide notification when the directory referred to by " |
| 2282 |
"I<fd> or any of the files that it contains is changed. The events to be " |
| 2283 |
"notified are specified in I<arg>, which is a bit mask specified by ORing " |
| 2284 |
"together zero or more of the following bits:" |
| 2285 |
msgstr "" |
| 2286 |
"(Начиная с Linux 2.4) Уведомлять при смене каталога, на который указывает " |
| 2287 |
"I<fd> или когда изменились файлы, которые в нём содержатся. События, о " |
| 2288 |
"наступлении которых делается уведомление, задаются в аргументе I<arg>, " |
| 2289 |
"который является битовой маской, получаемой сложением (OR) одного или более " |
| 2290 |
"следующих бит:" |
| 2291 |
|
| 2292 |
#. type: TP |
| 2293 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2294 |
#, no-wrap |
| 2295 |
msgid "B<DN_ACCESS>" |
| 2296 |
msgstr "B<DN_ACCESS>" |
| 2297 |
|
| 2298 |
#. type: Plain text |
| 2299 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2300 |
msgid "A file was accessed (B<read>(2), B<pread>(2), B<readv>(2), and similar)" |
| 2301 |
msgstr "" |
| 2302 |
"Был произведён доступ к файлу (B<read>(2), B<pread>(2), B<readv>(2) и " |
| 2303 |
"подобные)." |
| 2304 |
|
| 2305 |
#. type: TP |
| 2306 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2307 |
#, no-wrap |
| 2308 |
msgid "B<DN_MODIFY>" |
| 2309 |
msgstr "B<DN_MODIFY>" |
| 2310 |
|
| 2311 |
#. type: Plain text |
| 2312 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2313 |
msgid "" |
| 2314 |
"A file was modified (B<write>(2), B<pwrite>(2), B<writev>(2), " |
| 2315 |
"B<truncate>(2), B<ftruncate>(2), and similar)." |
| 2316 |
msgstr "" |
| 2317 |
"Файл был изменён (B<write>(2), B<pwrite>(2), B<writev>(2), B<truncate>(2), " |
| 2318 |
"B<ftruncate>(2) и подобные)." |
| 2319 |
|
| 2320 |
#. type: TP |
| 2321 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2322 |
#, no-wrap |
| 2323 |
msgid "B<DN_CREATE>" |
| 2324 |
msgstr "B<DN_CREATE>" |
| 2325 |
|
| 2326 |
#. type: Plain text |
| 2327 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2328 |
msgid "" |
| 2329 |
"A file was created (B<open>(2), B<creat>(2), B<mknod>(2), B<mkdir>(2), " |
| 2330 |
"B<link>(2), B<symlink>(2), B<rename>(2) into this directory)." |
| 2331 |
msgstr "" |
| 2332 |
"Файл был создан (B<open>(2), B<creat>(2), B<mknod>(2), B<mkdir>(2), " |
| 2333 |
"B<link>(2), B<symlink>(2), B<rename>(2) в этом каталоге)." |
| 2334 |
|
| 2335 |
#. type: TP |
| 2336 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2337 |
#, no-wrap |
| 2338 |
msgid "B<DN_DELETE>" |
| 2339 |
msgstr "B<DN_DELETE>" |
| 2340 |
|
| 2341 |
#. type: Plain text |
| 2342 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2343 |
msgid "" |
| 2344 |
"A file was unlinked (B<unlink>(2), B<rename>(2) to another directory, " |
| 2345 |
"B<rmdir>(2))." |
| 2346 |
msgstr "" |
| 2347 |
"Файл был удалён (B<unlink>(2), B<rename>(2) в другой каталог, B<rmdir>(2))." |
| 2348 |
|
| 2349 |
#. type: TP |
| 2350 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2351 |
#, no-wrap |
| 2352 |
msgid "B<DN_RENAME>" |
| 2353 |
msgstr "B<DN_RENAME>" |
| 2354 |
|
| 2355 |
#. type: Plain text |
| 2356 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2357 |
msgid "A file was renamed within this directory (B<rename>(2))." |
| 2358 |
msgstr "Файл был переименован внутри каталога (B<rename>(2))." |
| 2359 |
|
| 2360 |
#. type: TP |
| 2361 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2362 |
#, no-wrap |
| 2363 |
msgid "B<DN_ATTRIB>" |
| 2364 |
msgstr "B<DN_ATTRIB>" |
| 2365 |
|
| 2366 |
#. type: Plain text |
| 2367 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2368 |
msgid "" |
| 2369 |
"The attributes of a file were changed (B<chown>(2), B<chmod>(2), " |
| 2370 |
"B<utime>(2), B<utimensat>(2), and similar)." |
| 2371 |
msgstr "" |
| 2372 |
"У файла были изменены атрибуты (B<chown>(2), B<chmod>(2), B<utime>(2), " |
| 2373 |
"B<utimensat>(2) и подобные)." |
| 2374 |
|
| 2375 |
#. type: Plain text |
| 2376 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2377 |
msgid "" |
| 2378 |
"(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro " |
| 2379 |
"must be defined before including I<any> header files.)" |
| 2380 |
msgstr "" |
| 2381 |
"(Чтобы получить эти определения, нужно задать макрос тестирования свойств " |
| 2382 |
"B<_GNU_SOURCE> перед I<всеми> остальными заголовочными файлами.)" |
| 2383 |
|
| 2384 |
#. type: Plain text |
| 2385 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2386 |
msgid "" |
| 2387 |
"Directory notifications are normally \"one-shot\", and the application must " |
| 2388 |
"reregister to receive further notifications. Alternatively, if " |
| 2389 |
"B<DN_MULTISHOT> is included in I<arg>, then notification will remain in " |
| 2390 |
"effect until explicitly removed." |
| 2391 |
msgstr "" |
| 2392 |
"Уведомления об изменении состояния каталога обычно однократные и приложение " |
| 2393 |
"должно перерегистрировать установку уведомлений, чтобы и дальше получать их. " |
| 2394 |
"Однако, если в аргумент I<arg>, добавить B<DN_MULTISHOT>, то уведомления " |
| 2395 |
"будут приходить до тех пор, пока не будут явно отменены." |
| 2396 |
|
| 2397 |
#. The following does seem a poor API-design choice... |
| 2398 |
#. type: Plain text |
| 2399 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2400 |
msgid "" |
| 2401 |
"A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> " |
| 2402 |
"being added to the set already monitored. To disable notification of all " |
| 2403 |
"events, make an B<F_NOTIFY> call specifying I<arg> as 0." |
| 2404 |
msgstr "" |
| 2405 |
"Серии запросов B<F_NOTIFY> добавляются к событиям в I<arg>, которые уже " |
| 2406 |
"установлены. Чтобы выключить уведомления всех событий, выполните вызов " |
| 2407 |
"B<F_NOTIFY>, указав 0 в I<arg>." |
| 2408 |
|
| 2409 |
#. type: Plain text |
| 2410 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2411 |
#, fuzzy |
| 2412 |
#| msgid "" |
| 2413 |
#| "Notification occurs via delivery of a signal. The default signal is " |
| 2414 |
#| "B<SIGIO>, but this can be changed using the B<F_SETSIG> command to " |
| 2415 |
#| "B<fcntl>(). (Note that B<SIGIO> is one of the nonqueuing standard " |
| 2416 |
#| "signals; switching to the use of a real-time signal means that multiple " |
| 2417 |
#| "notifications can be queued to the process.) In the latter case, the " |
| 2418 |
#| "signal handler receives a I<siginfo_t> structure as its second argument " |
| 2419 |
#| "(if the handler was established using B<SA_SIGINFO>) and the I<si_fd> " |
| 2420 |
#| "field of this structure contains the file descriptor which generated the " |
| 2421 |
#| "notification (useful when establishing notification on multiple " |
| 2422 |
#| "directories)." |
| 2423 |
msgid "" |
| 2424 |
"Notification occurs via delivery of a signal. The default signal is " |
| 2425 |
"B<SIGIO>, but this can be changed using the B<F_SETSIG> operation to " |
| 2426 |
"B<fcntl>(). (Note that B<SIGIO> is one of the nonqueuing standard signals; " |
| 2427 |
"switching to the use of a real-time signal means that multiple notifications " |
| 2428 |
"can be queued to the process.) In the latter case, the signal handler " |
| 2429 |
"receives a I<siginfo_t> structure as its second argument (if the handler was " |
| 2430 |
"established using B<SA_SIGINFO>) and the I<si_fd> field of this structure " |
| 2431 |
"contains the file descriptor which generated the notification (useful when " |
| 2432 |
"establishing notification on multiple directories)." |
| 2433 |
msgstr "" |
| 2434 |
"Уведомление происходит посредством доставки сигнала. Сигналом по умолчанию " |
| 2435 |
"является B<SIGIO>, но это можно изменить с помощью команды B<F_SETSIG> " |
| 2436 |
"B<fcntl>() (заметим, что B<SIGIO> — один из безочерёдных стандартных " |
| 2437 |
"сигналов; переход к использованию сигнала реального времени означает, что " |
| 2438 |
"многократные уведомления могут попасть в очередь процесса). В последнем " |
| 2439 |
"случае, обработчик сигнала принимает структуру I<siginfo_t> в качестве " |
| 2440 |
"второго аргумента (если обработчик был установлен с помощью B<SA_SIGINFO>), " |
| 2441 |
"в поле I<si_fd> этой структуры содержится файловый описатель, для которого " |
| 2442 |
"сгенерировано уведомление (полезно при учёте уведомлений из нескольких " |
| 2443 |
"каталогов)." |
| 2444 |
|
| 2445 |
#. type: Plain text |
| 2446 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2447 |
msgid "" |
| 2448 |
"Especially when using B<DN_MULTISHOT>, a real time signal should be used for " |
| 2449 |
"notification, so that multiple notifications can be queued." |
| 2450 |
msgstr "" |
| 2451 |
"Кроме того, когда используется B<DN_MULTISHOT>, для уведомлений должен бы " |
| 2452 |
"быть использован сигнал реального времени, так что множественные уведомления " |
| 2453 |
"могут быть поставлены в очередь." |
| 2454 |
|
| 2455 |
#. type: Plain text |
| 2456 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2457 |
#, fuzzy |
| 2458 |
#| msgid "" |
| 2459 |
#| "B<NOTE:> New applications should use the I<inotify> interface (available " |
| 2460 |
#| "since kernel 2.6.13), which provides a much superior interface for " |
| 2461 |
#| "obtaining notifications of filesystem events. See B<inotify>(7)." |
| 2462 |
msgid "" |
| 2463 |
"B<NOTE:> New applications should use the I<inotify> interface (available " |
| 2464 |
"since Linux 2.6.13), which provides a much superior interface for obtaining " |
| 2465 |
"notifications of filesystem events. See B<inotify>(7)." |
| 2466 |
msgstr "" |
| 2467 |
"B<ЗАМЕЧАНИЕ:> В новых приложениях нужно использовать интерфейс I<inotify> " |
| 2468 |
"(доступен начиная с ядра 2.6.13), который предоставляет намного лучший " |
| 2469 |
"интерфейс для получения уведомлений о событиях в файловой системе. Смотрите " |
| 2470 |
"B<inotify>(7)." |
| 2471 |
|
| 2472 |
#. type: TP |
| 2473 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2474 |
#, no-wrap |
| 2475 |
msgid "B<F_SETPIPE_SZ> (I<int>; since Linux 2.6.35)" |
| 2476 |
msgstr "B<F_SETPIPE_SZ> (I<int>; начиная с Linux 2.6.35)" |
| 2477 |
|
| 2478 |
#. type: Plain text |
| 2479 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2480 |
msgid "" |
| 2481 |
"Change the capacity of the pipe referred to by I<fd> to be at least I<arg> " |
| 2482 |
"bytes. An unprivileged process can adjust the pipe capacity to any value " |
| 2483 |
"between the system page size and the limit defined in I</proc/sys/fs/pipe-" |
| 2484 |
"max-size> (see B<proc>(5)). Attempts to set the pipe capacity below the " |
| 2485 |
"page size are silently rounded up to the page size. Attempts by an " |
| 2486 |
"unprivileged process to set the pipe capacity above the limit in I</proc/sys/" |
| 2487 |
"fs/pipe-max-size> yield the error B<EPERM>; a privileged process " |
| 2488 |
"(B<CAP_SYS_RESOURCE>) can override the limit." |
| 2489 |
msgstr "" |
| 2490 |
"Изменяет ёмкость канала, на который указывает I<fd>; она становится равной " |
| 2491 |
"не менее I<arg> байт. Непривилегированный процесс может задать ёмкость " |
| 2492 |
"канала любого значения, начиная с размера системной страницы до ограничения, " |
| 2493 |
"заданного в I</proc/sys/fs/pipe-max-size> (смотрите B<proc>(5)). При задании " |
| 2494 |
"ёмкости меньше размера страницы, она будет без ошибок округлена до размера " |
| 2495 |
"страницы. При задании непривилегированным процессом ёмкости канала больше " |
| 2496 |
"ограничения из I</proc/sys/fs/pipe-max-size> приведёт к ошибке B<EPERM>; " |
| 2497 |
"привилегированный процесс (с B<CAP_SYS_RESOURCE>) может превысить это " |
| 2498 |
"ограничение." |
| 2499 |
|
| 2500 |
#. type: Plain text |
| 2501 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2502 |
msgid "" |
| 2503 |
"When allocating the buffer for the pipe, the kernel may use a capacity " |
| 2504 |
"larger than I<arg>, if that is convenient for the implementation. (In the " |
| 2505 |
"current implementation, the allocation is the next higher power-of-two page-" |
| 2506 |
"size multiple of the requested size.) The actual capacity (in bytes) that " |
| 2507 |
"is set is returned as the function result." |
| 2508 |
msgstr "" |
| 2509 |
"При выделении буфера под канал ядро может использовать большую ёмкость чем " |
| 2510 |
"указано в I<arg>, если это удобно для реализации (в текущей реализации " |
| 2511 |
"размером выделения является следующий кратный степени двойки размер страницы " |
| 2512 |
"больший запрашиваемого размера). Реальным размером (в байтах) считается " |
| 2513 |
"возвращаемый результат функции." |
| 2514 |
|
| 2515 |
#. type: Plain text |
| 2516 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2517 |
msgid "" |
| 2518 |
"Attempting to set the pipe capacity smaller than the amount of buffer space " |
| 2519 |
"currently used to store data produces the error B<EBUSY>." |
| 2520 |
msgstr "" |
| 2521 |
"Попытка задать ёмкость канала меньшую размера буферного пространства, " |
| 2522 |
"используемого в данный момент для хранения данных в канале приводит к ошибке " |
| 2523 |
"B<EBUSY>." |
| 2524 |
|
| 2525 |
#. type: Plain text |
| 2526 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2527 |
msgid "" |
| 2528 |
"Note that because of the way the pages of the pipe buffer are employed when " |
| 2529 |
"data is written to the pipe, the number of bytes that can be written may be " |
| 2530 |
"less than the nominal size, depending on the size of the writes." |
| 2531 |
msgstr "" |
| 2532 |
"Заметим, что из-за способа использования страниц буфера канала при записи " |
| 2533 |
"данных количество байт, которые могут быть записаны, может быть меньше, чем " |
| 2534 |
"номинальный размер, в зависимости от размера записей." |
| 2535 |
|
| 2536 |
#. type: TP |
| 2537 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2538 |
#, no-wrap |
| 2539 |
msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)" |
| 2540 |
msgstr "B<F_GETPIPE_SZ> (I<void>; начиная с Linux 2.6.35)" |
| 2541 |
|
| 2542 |
#. type: Plain text |
| 2543 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2544 |
msgid "" |
| 2545 |
"Return (as the function result) the capacity of the pipe referred to by " |
| 2546 |
"I<fd>." |
| 2547 |
msgstr "Возвращает (как результат функции) ёмкость канала, указываемого I<fd>." |
| 2548 |
|
| 2549 |
#. type: Plain text |
| 2550 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2551 |
msgid "" |
| 2552 |
"File seals limit the set of allowed operations on a given file. For each " |
| 2553 |
"seal that is set on a file, a specific set of operations will fail with " |
| 2554 |
"B<EPERM> on this file from now on. The file is said to be sealed. The " |
| 2555 |
"default set of seals depends on the type of the underlying file and " |
| 2556 |
"filesystem. For an overview of file sealing, a discussion of its purpose, " |
| 2557 |
"and some code examples, see B<memfd_create>(2)." |
| 2558 |
msgstr "" |
| 2559 |
"Опечатывание файла позволяет ограничить набор выполняемых над файлом " |
| 2560 |
"операций. Любая операция с файлом, попавшая в набор опечатанных, завершается " |
| 2561 |
"с ошибкой B<EPERM>. Набор печатей по умолчанию зависит от типа файла, к " |
| 2562 |
"которому он применяется и файловой системы. Описание опечатывания файла, " |
| 2563 |
"предназначение и примеры кода смотрите в B<memfd_create>(2)." |
| 2564 |
|
| 2565 |
#. type: Plain text |
| 2566 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2567 |
msgid "" |
| 2568 |
"Currently, file seals can be applied only to a file descriptor returned by " |
| 2569 |
"B<memfd_create>(2) (if the B<MFD_ALLOW_SEALING> was employed). On other " |
| 2570 |
"filesystems, all B<fcntl>() operations that operate on seals will return " |
| 2571 |
"B<EINVAL>." |
| 2572 |
msgstr "" |
| 2573 |
"В настоящее время опечатывание файла может применяться к файловому " |
| 2574 |
"дескриптору, возвращаемому B<memfd_create>(2) (если был указан " |
| 2575 |
"B<MFD_ALLOW_SEALING>). В других файловых системах все операции B<fcntl>(), " |
| 2576 |
"относящиеся к печатям, возвращают B<EINVAL>." |
| 2577 |
|
| 2578 |
#. type: Plain text |
| 2579 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2580 |
msgid "" |
| 2581 |
"Seals are a property of an inode. Thus, all open file descriptors referring " |
| 2582 |
"to the same inode share the same set of seals. Furthermore, seals can never " |
| 2583 |
"be removed, only added." |
| 2584 |
msgstr "" |
| 2585 |
"Печати (seals) — свойство inode. То есть все открытые файловые дескрипторы, " |
| 2586 |
"указывающие на один inode, имеют общий набор печатей. Кроме этого, печати " |
| 2587 |
"нельзя удалять, можно только добавлять." |
| 2588 |
|
| 2589 |
#. type: TP |
| 2590 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2591 |
#, no-wrap |
| 2592 |
msgid "B<F_ADD_SEALS> (I<int>; since Linux 3.17)" |
| 2593 |
msgstr "B<F_ADD_SEALS> (I<int>; начиная с Linux 3.17)" |
| 2594 |
|
| 2595 |
#. type: Plain text |
| 2596 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2597 |
msgid "" |
| 2598 |
"Add the seals given in the bit-mask argument I<arg> to the set of seals of " |
| 2599 |
"the inode referred to by the file descriptor I<fd>. Seals cannot be removed " |
| 2600 |
"again. Once this call succeeds, the seals are enforced by the kernel " |
| 2601 |
"immediately. If the current set of seals includes B<F_SEAL_SEAL> (see " |
| 2602 |
"below), then this call will be rejected with B<EPERM>. Adding a seal that " |
| 2603 |
"is already set is a no-op, in case B<F_SEAL_SEAL> is not set already. In " |
| 2604 |
"order to place a seal, the file descriptor I<fd> must be writable." |
| 2605 |
msgstr "" |
| 2606 |
"Добавляет печати из значения битовой маски I<arg> в набор печатей inode, на " |
| 2607 |
"которую ссылается файловый дескриптор I<fd>. Печати из набора нельзя " |
| 2608 |
"удалить. После успешного выполнения, печати сразу же учитываются ядром. Если " |
| 2609 |
"в текущий набор печатей входит B<F_SEAL_SEAL> (смотрите далее), то этот " |
| 2610 |
"вызов завершается с ошибкой B<EPERM>. Добавление уже установленной печати ни " |
| 2611 |
"к чему не приводит, если ещё не указана B<F_SEAL_SEAL>. Чтобы разместить " |
| 2612 |
"печать файловый дескриптор I<fd> должен быть доступен на запись." |
| 2613 |
|
| 2614 |
#. type: TP |
| 2615 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2616 |
#, no-wrap |
| 2617 |
msgid "B<F_GET_SEALS> (I<void>; since Linux 3.17)" |
| 2618 |
msgstr "B<F_GET_SEALS> (I<void>; начиная с Linux 3.17)" |
| 2619 |
|
| 2620 |
#. type: Plain text |
| 2621 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2622 |
msgid "" |
| 2623 |
"Return (as the function result) the current set of seals of the inode " |
| 2624 |
"referred to by I<fd>. If no seals are set, 0 is returned. If the file does " |
| 2625 |
"not support sealing, -1 is returned and I<errno> is set to B<EINVAL>." |
| 2626 |
msgstr "" |
| 2627 |
"Возвращает (в виде результата функции) текущий набор печатей inode, на " |
| 2628 |
"которую указывает I<fd>. Если печатей нет, возвращается 0. Если файл не " |
| 2629 |
"поддерживает опечатывание, то возвращается -1 и I<errno> присваивается " |
| 2630 |
"B<EINVAL>." |
| 2631 |
|
| 2632 |
#. type: Plain text |
| 2633 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2634 |
msgid "The following seals are available:" |
| 2635 |
msgstr "Доступны следующие печати:" |
| 2636 |
|
| 2637 |
#. type: TP |
| 2638 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2639 |
#, no-wrap |
| 2640 |
msgid "B<F_SEAL_SEAL>" |
| 2641 |
msgstr "B<F_SEAL_SEAL>" |
| 2642 |
|
| 2643 |
#. type: Plain text |
| 2644 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2645 |
msgid "" |
| 2646 |
"If this seal is set, any further call to B<fcntl>() with B<F_ADD_SEALS> " |
| 2647 |
"fails with the error B<EPERM>. Therefore, this seal prevents any " |
| 2648 |
"modifications to the set of seals itself. If the initial set of seals of a " |
| 2649 |
"file includes B<F_SEAL_SEAL>, then this effectively causes the set of seals " |
| 2650 |
"to be constant and locked." |
| 2651 |
msgstr "" |
| 2652 |
"Если печать установлена, то последующий вызов B<fcntl>() с B<F_ADD_SEALS> " |
| 2653 |
"завершится ошибкой B<EPERM>. Таки образом, данная печать предотвращает " |
| 2654 |
"изменения самого набора печатей. Если начальный набор печатей файла содержит " |
| 2655 |
"B<F_SEAL_SEAL>, то он является постоянным и неизменяемым." |
| 2656 |
|
| 2657 |
#. type: TP |
| 2658 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2659 |
#, no-wrap |
| 2660 |
msgid "B<F_SEAL_SHRINK>" |
| 2661 |
msgstr "B<F_SEAL_SHRINK>" |
| 2662 |
|
| 2663 |
#. type: Plain text |
| 2664 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2665 |
msgid "" |
| 2666 |
"If this seal is set, the file in question cannot be reduced in size. This " |
| 2667 |
"affects B<open>(2) with the B<O_TRUNC> flag as well as B<truncate>(2) and " |
| 2668 |
"B<ftruncate>(2). Those calls fail with B<EPERM> if you try to shrink the " |
| 2669 |
"file in question. Increasing the file size is still possible." |
| 2670 |
msgstr "" |
| 2671 |
"Если эта печать установлена, то нельзя уменьшить размер файла. Она влияет на " |
| 2672 |
"B<open>(2) с флагом B<O_TRUNC>, а также на B<truncate>(2) и B<ftruncate>(2). " |
| 2673 |
"Эти вызовы завершаются ошибкой B<EPERM>, если пытаются уменьшить файл. " |
| 2674 |
"Увеличение размера файла по-прежнему возможно." |
| 2675 |
|
| 2676 |
#. type: TP |
| 2677 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2678 |
#, no-wrap |
| 2679 |
msgid "B<F_SEAL_GROW>" |
| 2680 |
msgstr "B<F_SEAL_GROW>" |
| 2681 |
|
| 2682 |
#. type: Plain text |
| 2683 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2684 |
msgid "" |
| 2685 |
"If this seal is set, the size of the file in question cannot be increased. " |
| 2686 |
"This affects B<write>(2) beyond the end of the file, B<truncate>(2), " |
| 2687 |
"B<ftruncate>(2), and B<fallocate>(2). These calls fail with B<EPERM> if you " |
| 2688 |
"use them to increase the file size. If you keep the size or shrink it, " |
| 2689 |
"those calls still work as expected." |
| 2690 |
msgstr "" |
| 2691 |
"Если эта печать установлена, то нельзя увеличить размер файла. Она влияет на " |
| 2692 |
"B<write>(2) за концом файла, B<truncate>(2), B<ftruncate>(2) и " |
| 2693 |
"B<fallocate>(2). Эти вызовы завершаются ошибкой B<EPERM>, если пытаются " |
| 2694 |
"увеличить файл. Уменьшение размера файла по-прежнему возможно." |
| 2695 |
|
| 2696 |
#. type: TP |
| 2697 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2698 |
#, no-wrap |
| 2699 |
msgid "B<F_SEAL_WRITE>" |
| 2700 |
msgstr "B<F_SEAL_WRITE>" |
| 2701 |
|
| 2702 |
#. One or more other seals are typically used with F_SEAL_WRITE |
| 2703 |
#. because, given a file with the F_SEAL_WRITE seal set, then, |
| 2704 |
#. while it would no longer be possible to (say) write zeros into |
| 2705 |
#. the last 100 bytes of a file, it would still be possible |
| 2706 |
#. to (say) shrink the file by 100 bytes using ftruncate(), and |
| 2707 |
#. then increase the file size by 100 bytes, which would have |
| 2708 |
#. the effect of replacing the last hundred bytes by zeros. |
| 2709 |
#. type: Plain text |
| 2710 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2711 |
msgid "" |
| 2712 |
"If this seal is set, you cannot modify the contents of the file. Note that " |
| 2713 |
"shrinking or growing the size of the file is still possible and allowed. " |
| 2714 |
"Thus, this seal is normally used in combination with one of the other " |
| 2715 |
"seals. This seal affects B<write>(2) and B<fallocate>(2) (only in " |
| 2716 |
"combination with the B<FALLOC_FL_PUNCH_HOLE> flag). Those calls fail with " |
| 2717 |
"B<EPERM> if this seal is set. Furthermore, trying to create new shared, " |
| 2718 |
"writable memory-mappings via B<mmap>(2) will also fail with B<EPERM>." |
| 2719 |
msgstr "" |
| 2720 |
"Если эта печать установлена, то нельзя изменить содержимое файла. Заметим, " |
| 2721 |
"что уменьшение или увеличение файла по-прежнему возможно. То есть данная " |
| 2722 |
"печать, обычно, используется в комбинации с одной из этих печатей. Данная " |
| 2723 |
"печать влияет на B<write>(2) и B<fallocate>(2) (только для флага " |
| 2724 |
"B<FALLOC_FL_PUNCH_HOLE>). Эти вызовы завершаются ошибкой B<EPERM>. Кроме " |
| 2725 |
"этого, попытка создать новое общее, доступное на запись отображение через " |
| 2726 |
"B<mmap>(2) также завершится ошибкой B<EPERM>." |
| 2727 |
|
| 2728 |
#. type: Plain text |
| 2729 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2730 |
msgid "" |
| 2731 |
"Using the B<F_ADD_SEALS> operation to set the B<F_SEAL_WRITE> seal fails " |
| 2732 |
"with B<EBUSY> if any writable, shared mapping exists. Such mappings must be " |
| 2733 |
"unmapped before you can add this seal. Furthermore, if there are any " |
| 2734 |
"asynchronous I/O operations (B<io_submit>(2)) pending on the file, all " |
| 2735 |
"outstanding writes will be discarded." |
| 2736 |
msgstr "" |
| 2737 |
"Использование операции B<F_ADD_SEALS> для установки B<F_SEAL_WRITE> " |
| 2738 |
"завершается ошибкой B<EBUSY>, если существует доступное на запись общее " |
| 2739 |
"отображение. Такие отображения должны быть удалены перед добавлением данной " |
| 2740 |
"печати. Кроме этого, если у файла есть асинхронные операции, ожидающие ввода-" |
| 2741 |
"вывода (B<io_submit>(2)), то все отложенные операции записи будут отброшены." |
| 2742 |
|
| 2743 |
#. type: TP |
| 2744 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2745 |
#, no-wrap |
| 2746 |
msgid "B<F_SEAL_FUTURE_WRITE> (since Linux 5.1)" |
| 2747 |
msgstr "B<F_SEAL_FUTURE_WRITE> (начиная с Linux 5.1)" |
| 2748 |
|
| 2749 |
#. type: Plain text |
| 2750 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2751 |
msgid "" |
| 2752 |
"The effect of this seal is similar to B<F_SEAL_WRITE>, but the contents of " |
| 2753 |
"the file can still be modified via shared writable mappings that were " |
| 2754 |
"created prior to the seal being set. Any attempt to create a new writable " |
| 2755 |
"mapping on the file via B<mmap>(2) will fail with B<EPERM>. Likewise, an " |
| 2756 |
"attempt to write to the file via B<write>(2) will fail with B<EPERM>." |
| 2757 |
msgstr "" |
| 2758 |
|
| 2759 |
#. type: Plain text |
| 2760 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2761 |
msgid "" |
| 2762 |
"Using this seal, one process can create a memory buffer that it can continue " |
| 2763 |
"to modify while sharing that buffer on a \"read-only\" basis with other " |
| 2764 |
"processes." |
| 2765 |
msgstr "" |
| 2766 |
|
| 2767 |
#. type: Plain text |
| 2768 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2769 |
msgid "" |
| 2770 |
"Write lifetime hints can be used to inform the kernel about the relative " |
| 2771 |
"expected lifetime of writes on a given inode or via a particular open file " |
| 2772 |
"description. (See B<open>(2) for an explanation of open file " |
| 2773 |
"descriptions.) In this context, the term \"write lifetime\" means the " |
| 2774 |
"expected time the data will live on media, before being overwritten or " |
| 2775 |
"erased." |
| 2776 |
msgstr "" |
| 2777 |
"Подсказки срока службы записи можно использовать для уведомления ядра об " |
| 2778 |
"относительно ожидаемом сроке службы записи заданной иноды и открытого " |
| 2779 |
"файлового описания (об открытых файловых описаниях читайте в B<open>(2)). В " |
| 2780 |
"этом контексте термин «срок службы записи» (write lifetime) означает " |
| 2781 |
"ожидаемое время, которое будут существовать данные на носителе до их " |
| 2782 |
"перезаписи или стирания." |
| 2783 |
|
| 2784 |
#. type: Plain text |
| 2785 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2786 |
msgid "" |
| 2787 |
"An application may use the different hint values specified below to separate " |
| 2788 |
"writes into different write classes, so that multiple users or applications " |
| 2789 |
"running on a single storage back-end can aggregate their I/O patterns in a " |
| 2790 |
"consistent manner. However, there are no functional semantics implied by " |
| 2791 |
"these flags, and different I/O classes can use the write lifetime hints in " |
| 2792 |
"arbitrary ways, so long as the hints are used consistently." |
| 2793 |
msgstr "" |
| 2794 |
"В приложении можно использовать различные значения подсказок, перечисленные " |
| 2795 |
"ниже, для разделения записей на различные классы, чтобы несколько " |
| 2796 |
"пользователей или приложений, работающие на одном аппаратном хранилище могли " |
| 2797 |
"объединить свои шаблоны ввода-вывода в непротиворечивую форму. Однако, для " |
| 2798 |
"флагов не подразумевается какая-то функциональная семантика, и для различных " |
| 2799 |
"классов ввода-вывода можно использовать подсказки срока службы записи " |
| 2800 |
"произвольным образом, пока подсказки не противоречат друг другу." |
| 2801 |
|
| 2802 |
#. type: Plain text |
| 2803 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2804 |
msgid "The following operations can be applied to the file descriptor, I<fd>:" |
| 2805 |
msgstr "Следующие операции могут применяться к файловому дескриптору I<fd>:" |
| 2806 |
|
| 2807 |
#. type: TP |
| 2808 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2809 |
#, no-wrap |
| 2810 |
msgid "B<F_GET_RW_HINT> (I<uint64_t *>; since Linux 4.13)" |
| 2811 |
msgstr "B<F_GET_RW_HINT> (I<uint64_t *>; начиная с Linux 4.13)" |
| 2812 |
|
| 2813 |
#. type: Plain text |
| 2814 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2815 |
msgid "" |
| 2816 |
"Returns the value of the read/write hint associated with the underlying " |
| 2817 |
"inode referred to by I<fd>." |
| 2818 |
msgstr "" |
| 2819 |
"Возвращает значение подсказки чтения/записи, связанной с инодой, на которую " |
| 2820 |
"указывает I<fd>." |
| 2821 |
|
| 2822 |
#. type: TP |
| 2823 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2824 |
#, no-wrap |
| 2825 |
msgid "B<F_SET_RW_HINT> (I<uint64_t *>; since Linux 4.13)" |
| 2826 |
msgstr "B<F_SET_RW_HINT> (I<uint64_t *>; начиная с Linux 4.13)" |
| 2827 |
|
| 2828 |
#. type: Plain text |
| 2829 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2830 |
msgid "" |
| 2831 |
"Sets the read/write hint value associated with the underlying inode referred " |
| 2832 |
"to by I<fd>. This hint persists until either it is explicitly modified or " |
| 2833 |
"the underlying filesystem is unmounted." |
| 2834 |
msgstr "" |
| 2835 |
"Изменяет значение подсказки чтения/записи, связанной с инодой, на которую " |
| 2836 |
"указывает I<fd>. Данная подсказка действует до тех пор, пока не будет явно " |
| 2837 |
"изменена или не будет размонтирована нижележащая файловая система." |
| 2838 |
|
| 2839 |
#. type: TP |
| 2840 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2841 |
#, no-wrap |
| 2842 |
msgid "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)" |
| 2843 |
msgstr "B<F_GET_FILE_RW_HINT> (I<uint64_t *>; начиная с Linux 4.13)" |
| 2844 |
|
| 2845 |
#. type: Plain text |
| 2846 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2847 |
msgid "" |
| 2848 |
"Returns the value of the read/write hint associated with the open file " |
| 2849 |
"description referred to by I<fd>." |
| 2850 |
msgstr "" |
| 2851 |
"Возвращает значение подсказки чтения/записи, связанной с открытым файловым " |
| 2852 |
"описанием, на которое указывает I<fd>." |
| 2853 |
|
| 2854 |
#. type: TP |
| 2855 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2856 |
#, no-wrap |
| 2857 |
msgid "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; since Linux 4.13)" |
| 2858 |
msgstr "B<F_SET_FILE_RW_HINT> (I<uint64_t *>; начиная с Linux 4.13)" |
| 2859 |
|
| 2860 |
#. type: Plain text |
| 2861 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2862 |
msgid "" |
| 2863 |
"Sets the read/write hint value associated with the open file description " |
| 2864 |
"referred to by I<fd>." |
| 2865 |
msgstr "" |
| 2866 |
"Изменяет значение подсказки чтения/записи, связанной с открытым файловым " |
| 2867 |
"описанием, на которое указывает I<fd>." |
| 2868 |
|
| 2869 |
#. type: Plain text |
| 2870 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2871 |
msgid "" |
| 2872 |
"If an open file description has not been assigned a read/write hint, then it " |
| 2873 |
"shall use the value assigned to the inode, if any." |
| 2874 |
msgstr "" |
| 2875 |
"Если открытому файловому описанию не была назначена подсказка чтения/записи, " |
| 2876 |
"то будет использоваться значение (если есть), назначенное иноде." |
| 2877 |
|
| 2878 |
#. type: Plain text |
| 2879 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2880 |
msgid "The following read/write hints are valid since Linux 4.13:" |
| 2881 |
msgstr "Начиная с Linux 4.13, действуют следующие подсказки чтения/записи:" |
| 2882 |
|
| 2883 |
#. type: TP |
| 2884 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2885 |
#, no-wrap |
| 2886 |
msgid "B<RWH_WRITE_LIFE_NOT_SET>" |
| 2887 |
msgstr "B<RWH_WRITE_LIFE_NOT_SET>" |
| 2888 |
|
| 2889 |
#. type: Plain text |
| 2890 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2891 |
msgid "No specific hint has been set. This is the default value." |
| 2892 |
msgstr "Подсказка не задана. Это значение по умолчанию." |
| 2893 |
|
| 2894 |
#. type: TP |
| 2895 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2896 |
#, no-wrap |
| 2897 |
msgid "B<RWH_WRITE_LIFE_NONE>" |
| 2898 |
msgstr "B<RWH_WRITE_LIFE_NONE>" |
| 2899 |
|
| 2900 |
#. type: Plain text |
| 2901 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2902 |
msgid "No specific write lifetime is associated with this file or inode." |
| 2903 |
msgstr "Срока службы записи, связанного с этим файлом или инодой, не задано." |
| 2904 |
|
| 2905 |
#. type: TP |
| 2906 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2907 |
#, no-wrap |
| 2908 |
msgid "B<RWH_WRITE_LIFE_SHORT>" |
| 2909 |
msgstr "B<RWH_WRITE_LIFE_SHORT>" |
| 2910 |
|
| 2911 |
#. type: Plain text |
| 2912 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2913 |
msgid "" |
| 2914 |
"Data written to this inode or via this open file description is expected to " |
| 2915 |
"have a short lifetime." |
| 2916 |
msgstr "" |
| 2917 |
"Ожидается, что данные, записанные в эту иноду или через открытое файловое " |
| 2918 |
"описание, будут иметь короткий срок службы." |
| 2919 |
|
| 2920 |
#. type: TP |
| 2921 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2922 |
#, no-wrap |
| 2923 |
msgid "B<RWH_WRITE_LIFE_MEDIUM>" |
| 2924 |
msgstr "B<RWH_WRITE_LIFE_MEDIUM>" |
| 2925 |
|
| 2926 |
#. type: Plain text |
| 2927 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2928 |
msgid "" |
| 2929 |
"Data written to this inode or via this open file description is expected to " |
| 2930 |
"have a lifetime longer than data written with B<RWH_WRITE_LIFE_SHORT>." |
| 2931 |
msgstr "" |
| 2932 |
"Ожидается, что данные, записанные в эту иноду или через открытое файловое " |
| 2933 |
"описание, будут иметь срок службы длиннее, чем данные, записанные с " |
| 2934 |
"B<RWH_WRITE_LIFE_SHORT>." |
| 2935 |
|
| 2936 |
#. type: TP |
| 2937 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2938 |
#, no-wrap |
| 2939 |
msgid "B<RWH_WRITE_LIFE_LONG>" |
| 2940 |
msgstr "B<RWH_WRITE_LIFE_LONG>" |
| 2941 |
|
| 2942 |
#. type: Plain text |
| 2943 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2944 |
msgid "" |
| 2945 |
"Data written to this inode or via this open file description is expected to " |
| 2946 |
"have a lifetime longer than data written with B<RWH_WRITE_LIFE_MEDIUM>." |
| 2947 |
msgstr "" |
| 2948 |
"Ожидается, что данные, записанные в эту иноду или через открытое файловое " |
| 2949 |
"описание, будут иметь срок службы длиннее, чем данные, записанные с " |
| 2950 |
"B<RWH_WRITE_LIFE_MEDIUM>." |
| 2951 |
|
| 2952 |
#. type: TP |
| 2953 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2954 |
#, no-wrap |
| 2955 |
msgid "B<RWH_WRITE_LIFE_EXTREME>" |
| 2956 |
msgstr "B<RWH_WRITE_LIFE_EXTREME>" |
| 2957 |
|
| 2958 |
#. type: Plain text |
| 2959 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2960 |
msgid "" |
| 2961 |
"Data written to this inode or via this open file description is expected to " |
| 2962 |
"have a lifetime longer than data written with B<RWH_WRITE_LIFE_LONG>." |
| 2963 |
msgstr "" |
| 2964 |
"Ожидается, что данные, записанные в эту иноду или через открытое файловое " |
| 2965 |
"описание, будут иметь срок службы длиннее, чем данные, записанные с " |
| 2966 |
"B<RWH_WRITE_LIFE_LONG>." |
| 2967 |
|
| 2968 |
#. type: Plain text |
| 2969 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2970 |
msgid "" |
| 2971 |
"All the write-specific hints are relative to each other, and no individual " |
| 2972 |
"absolute meaning should be attributed to them." |
| 2973 |
msgstr "" |
| 2974 |
"Все подсказки записи соотносятся друг с другом и нет отдельного абсолютного " |
| 2975 |
"смысла им предписываемого." |
| 2976 |
|
| 2977 |
#. type: Plain text |
| 2978 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2979 |
msgid "For a successful call, the return value depends on the operation:" |
| 2980 |
msgstr "" |
| 2981 |
"При успешном выполнении возвращаемое значение зависит от используемой " |
| 2982 |
"команды:" |
| 2983 |
|
| 2984 |
#. type: TP |
| 2985 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2986 |
#, no-wrap |
| 2987 |
msgid "B<F_DUPFD>" |
| 2988 |
msgstr "B<F_DUPFD>" |
| 2989 |
|
| 2990 |
#. type: Plain text |
| 2991 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2992 |
msgid "The new file descriptor." |
| 2993 |
msgstr "Новый файловый дескриптор." |
| 2994 |
|
| 2995 |
#. type: TP |
| 2996 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2997 |
#, no-wrap |
| 2998 |
msgid "B<F_GETFD>" |
| 2999 |
msgstr "B<F_GETFD>" |
| 3000 |
|
| 3001 |
#. type: Plain text |
| 3002 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3003 |
msgid "Value of file descriptor flags." |
| 3004 |
msgstr "Значение флагов файлового дескриптора." |
| 3005 |
|
| 3006 |
#. type: TP |
| 3007 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3008 |
#, no-wrap |
| 3009 |
msgid "B<F_GETFL>" |
| 3010 |
msgstr "B<F_GETFL>" |
| 3011 |
|
| 3012 |
#. type: Plain text |
| 3013 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3014 |
msgid "Value of file status flags." |
| 3015 |
msgstr "Значение флагов состояния файла." |
| 3016 |
|
| 3017 |
#. type: TP |
| 3018 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3019 |
#, no-wrap |
| 3020 |
msgid "B<F_GETLEASE>" |
| 3021 |
msgstr "B<F_GETLEASE>" |
| 3022 |
|
| 3023 |
#. type: Plain text |
| 3024 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3025 |
msgid "Type of lease held on file descriptor." |
| 3026 |
msgstr "Тип аренды, установленной на файлом дескрипторе." |
| 3027 |
|
| 3028 |
#. type: TP |
| 3029 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3030 |
#, no-wrap |
| 3031 |
msgid "B<F_GETOWN>" |
| 3032 |
msgstr "B<F_GETOWN>" |
| 3033 |
|
| 3034 |
#. type: Plain text |
| 3035 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3036 |
msgid "Value of file descriptor owner." |
| 3037 |
msgstr "Значение, представляющее собой владельца файлового дескриптора." |
| 3038 |
|
| 3039 |
#. type: TP |
| 3040 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3041 |
#, no-wrap |
| 3042 |
msgid "B<F_GETSIG>" |
| 3043 |
msgstr "B<F_GETSIG>" |
| 3044 |
|
| 3045 |
#. type: Plain text |
| 3046 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3047 |
msgid "" |
| 3048 |
"Value of signal sent when read or write becomes possible, or zero for " |
| 3049 |
"traditional B<SIGIO> behavior." |
| 3050 |
msgstr "" |
| 3051 |
"Значение сигнала, посылаемого когда становится возможным чтение или запись " |
| 3052 |
"или ноль для традиционного поведения B<SIGIO>." |
| 3053 |
|
| 3054 |
#. type: TP |
| 3055 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3056 |
#, fuzzy, no-wrap |
| 3057 |
#| msgid "B<F_GETLEASE>" |
| 3058 |
msgid "B<F_GETPIPE_SZ>" |
| 3059 |
msgstr "B<F_GETLEASE>" |
| 3060 |
|
| 3061 |
#. type: TQ |
| 3062 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3063 |
#, fuzzy, no-wrap |
| 3064 |
#| msgid "B<EPIPE>" |
| 3065 |
msgid "B<F_SETPIPE_SZ>" |
| 3066 |
msgstr "B<EPIPE>" |
| 3067 |
|
| 3068 |
#. type: Plain text |
| 3069 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3070 |
msgid "The pipe capacity." |
| 3071 |
msgstr "Ёмкость канала." |
| 3072 |
|
| 3073 |
#. type: TP |
| 3074 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3075 |
#, no-wrap |
| 3076 |
msgid "B<F_GET_SEALS>" |
| 3077 |
msgstr "B<F_GET_SEALS>" |
| 3078 |
|
| 3079 |
#. type: Plain text |
| 3080 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3081 |
msgid "" |
| 3082 |
"A bit mask identifying the seals that have been set for the inode referred " |
| 3083 |
"to by I<fd>." |
| 3084 |
msgstr "Битовая маска, описывающая печати inode, на которую указывает I<fd>." |
| 3085 |
|
| 3086 |
#. type: TP |
| 3087 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3088 |
#, no-wrap |
| 3089 |
msgid "All other operations" |
| 3090 |
msgstr "Остальные операции" |
| 3091 |
|
| 3092 |
#. type: Plain text |
| 3093 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3094 |
msgid "Zero." |
| 3095 |
msgstr "Ноль." |
| 3096 |
|
| 3097 |
#. type: Plain text |
| 3098 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3099 |
#, fuzzy |
| 3100 |
#| msgid "" |
| 3101 |
#| "I<cmd> is B<F_SETLK> or B<F_SETLKW> and the file descriptor open mode " |
| 3102 |
#| "doesn't match with the type of lock requested." |
| 3103 |
msgid "" |
| 3104 |
"I<op> is B<F_SETLK> or B<F_SETLKW> and the file descriptor open mode doesn't " |
| 3105 |
"match with the type of lock requested." |
| 3106 |
msgstr "" |
| 3107 |
"Значение I<cmd> равно B<F_SETLK> или B<F_SETLKW>, но режим открытия " |
| 3108 |
"файлового дескриптора не совпадает с типом запрошенной блокировки." |
| 3109 |
|
| 3110 |
#. type: TP |
| 3111 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3112 |
#, no-wrap |
| 3113 |
msgid "B<EBUSY>" |
| 3114 |
msgstr "B<EBUSY>" |
| 3115 |
|
| 3116 |
#. type: Plain text |
| 3117 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3118 |
#, fuzzy |
| 3119 |
#| msgid "" |
| 3120 |
#| "I<cmd> is B<F_SETPIPE_SZ> and the new pipe capacity specified in I<arg> " |
| 3121 |
#| "is smaller than the amount of buffer space currently used to store data " |
| 3122 |
#| "in the pipe." |
| 3123 |
msgid "" |
| 3124 |
"I<op> is B<F_SETPIPE_SZ> and the new pipe capacity specified in I<arg> is " |
| 3125 |
"smaller than the amount of buffer space currently used to store data in the " |
| 3126 |
"pipe." |
| 3127 |
msgstr "" |
| 3128 |
"Значение I<cmd> равно B<F_SETPIPE_SZ> и новая ёмкость канала, указанная в " |
| 3129 |
"I<arg>, меньше размера буферного пространства, используемого в данный момент " |
| 3130 |
"для хранения данных в канале." |
| 3131 |
|
| 3132 |
#. type: Plain text |
| 3133 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3134 |
#, fuzzy |
| 3135 |
#| msgid "" |
| 3136 |
#| "I<cmd> is B<F_ADD_SEALS>, I<arg> includes B<F_SEAL_WRITE>, and there " |
| 3137 |
#| "exists a writable, shared mapping on the file referred to by I<fd>." |
| 3138 |
msgid "" |
| 3139 |
"I<op> is B<F_ADD_SEALS>, I<arg> includes B<F_SEAL_WRITE>, and there exists a " |
| 3140 |
"writable, shared mapping on the file referred to by I<fd>." |
| 3141 |
msgstr "" |
| 3142 |
"Значение I<cmd> равно B<F_ADD_SEALS>, в I<arg> содержится B<F_SEAL_WRITE> и " |
| 3143 |
"существует доступное на запись, общее отображение файла, на который " |
| 3144 |
"указывает I<fd>." |
| 3145 |
|
| 3146 |
#. type: TP |
| 3147 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3148 |
#, no-wrap |
| 3149 |
msgid "B<EDEADLK>" |
| 3150 |
msgstr "B<EDEADLK>" |
| 3151 |
|
| 3152 |
#. type: Plain text |
| 3153 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3154 |
#, fuzzy |
| 3155 |
#| msgid "" |
| 3156 |
#| "It was detected that the specified B<F_SETLKW> command would cause a " |
| 3157 |
#| "deadlock." |
| 3158 |
msgid "" |
| 3159 |
"It was detected that the specified B<F_SETLKW> operation would cause a " |
| 3160 |
"deadlock." |
| 3161 |
msgstr "" |
| 3162 |
"Было обнаружено, что указанная команда B<F_SETLKW> привела бы к взаимной " |
| 3163 |
"блокировке (deadlock)." |
| 3164 |
|
| 3165 |
#. type: TP |
| 3166 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3167 |
#, no-wrap |
| 3168 |
msgid "B<EFAULT>" |
| 3169 |
msgstr "B<EFAULT>" |
| 3170 |
|
| 3171 |
#. type: Plain text |
| 3172 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3173 |
msgid "I<lock> is outside your accessible address space." |
| 3174 |
msgstr "" |
| 3175 |
"Значение I<lock> находится за пределами доступного адресного пространства." |
| 3176 |
|
| 3177 |
#. type: TP |
| 3178 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3179 |
#, no-wrap |
| 3180 |
msgid "B<EINTR>" |
| 3181 |
msgstr "B<EINTR>" |
| 3182 |
|
| 3183 |
#. type: Plain text |
| 3184 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3185 |
#, fuzzy |
| 3186 |
#| msgid "" |
| 3187 |
#| "I<cmd> is B<F_SETLKW> or B<F_OFD_SETLKW> and the operation was " |
| 3188 |
#| "interrupted by a signal; see B<signal>(7)." |
| 3189 |
msgid "" |
| 3190 |
"I<op> is B<F_SETLKW> or B<F_OFD_SETLKW> and the operation was interrupted by " |
| 3191 |
"a signal; see B<signal>(7)." |
| 3192 |
msgstr "" |
| 3193 |
"Значение I<cmd> равно B<F_SETLKW> или B<F_OFD_SETLKW> и операция была " |
| 3194 |
"прервана сигналом; смотрите B<signal>(7))." |
| 3195 |
|
| 3196 |
#. type: Plain text |
| 3197 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3198 |
#, fuzzy |
| 3199 |
#| msgid "" |
| 3200 |
#| "I<cmd> is B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK>, or B<F_OFD_SETLK>, and " |
| 3201 |
#| "the operation was interrupted by a signal before the lock was checked or " |
| 3202 |
#| "acquired. Most likely when locking a remote file (e.g., locking over " |
| 3203 |
#| "NFS), but can sometimes happen locally." |
| 3204 |
msgid "" |
| 3205 |
"I<op> is B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK>, or B<F_OFD_SETLK>, and the " |
| 3206 |
"operation was interrupted by a signal before the lock was checked or " |
| 3207 |
"acquired. Most likely when locking a remote file (e.g., locking over NFS), " |
| 3208 |
"but can sometimes happen locally." |
| 3209 |
msgstr "" |
| 3210 |
"Значение I<cmd> равно B<F_GETLK>, B<F_SETLK>, B<F_OFD_GETLK> или " |
| 3211 |
"B<F_OFD_SETLK> и операция была прервана сигналом перед тем как блокировка " |
| 3212 |
"была проверена или установлена. Большинство таких ошибок случается при " |
| 3213 |
"блокировке удалённого файла (например, блокировка через NFS), но иногда " |
| 3214 |
"такое может случаться и с локальным файлом." |
| 3215 |
|
| 3216 |
#. type: Plain text |
| 3217 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3218 |
#, fuzzy |
| 3219 |
#| msgid "" |
| 3220 |
#| "I<cmd> is B<F_ADD_SEALS> and I<arg> includes an unrecognized sealing bit." |
| 3221 |
msgid "" |
| 3222 |
"I<op> is B<F_ADD_SEALS> and I<arg> includes an unrecognized sealing bit." |
| 3223 |
msgstr "" |
| 3224 |
"Значение I<cmd> равно B<F_ADD_SEALS> и I<arg> содержит бит не распознанной " |
| 3225 |
"печати." |
| 3226 |
|
| 3227 |
#. type: Plain text |
| 3228 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3229 |
#, fuzzy |
| 3230 |
#| msgid "" |
| 3231 |
#| "I<cmd> is B<F_ADD_SEALS> or B<F_GET_SEALS> and the filesystem containing " |
| 3232 |
#| "the inode referred to by I<fd> does not support sealing." |
| 3233 |
msgid "" |
| 3234 |
"I<op> is B<F_ADD_SEALS> or B<F_GET_SEALS> and the filesystem containing the " |
| 3235 |
"inode referred to by I<fd> does not support sealing." |
| 3236 |
msgstr "" |
| 3237 |
"Значение I<cmd> равно B<F_ADD_SEALS> или B<F_GET_SEALS> и файловая система, " |
| 3238 |
"содержащая inode, на которую указывает I<fd>, не поддерживает опечатывание." |
| 3239 |
|
| 3240 |
#. type: Plain text |
| 3241 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3242 |
#, fuzzy |
| 3243 |
#| msgid "" |
| 3244 |
#| "I<cmd> is B<F_DUPFD> and I<arg> is negative or is greater than the " |
| 3245 |
#| "maximum allowable value (see the discussion of B<RLIMIT_NOFILE> in " |
| 3246 |
#| "B<getrlimit>(2))." |
| 3247 |
msgid "" |
| 3248 |
"I<op> is B<F_DUPFD> and I<arg> is negative or is greater than the maximum " |
| 3249 |
"allowable value (see the discussion of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 3250 |
msgstr "" |
| 3251 |
"Значение I<cmd> равно B<F_DUPFD> и значение I<arg> отрицательное или больше " |
| 3252 |
"максимально возможного значения (смотрите описание B<RLIMIT_NOFILE> в " |
| 3253 |
"B<getrlimit>(2))." |
| 3254 |
|
| 3255 |
#. type: Plain text |
| 3256 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3257 |
#, fuzzy |
| 3258 |
#| msgid "I<cmd> is B<F_SETSIG> and I<arg> is not an allowable signal number." |
| 3259 |
msgid "I<op> is B<F_SETSIG> and I<arg> is not an allowable signal number." |
| 3260 |
msgstr "" |
| 3261 |
"Значение I<cmd> равно B<F_SETSIG> и значение I<arg> не содержит допустимый " |
| 3262 |
"номер сигнала." |
| 3263 |
|
| 3264 |
#. type: Plain text |
| 3265 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3266 |
#, fuzzy |
| 3267 |
#| msgid "" |
| 3268 |
#| "I<cmd> is B<F_OFD_SETLK>, B<F_OFD_SETLKW>, or B<F_OFD_GETLK>, and " |
| 3269 |
#| "I<l_pid> was not specified as zero." |
| 3270 |
msgid "" |
| 3271 |
"I<op> is B<F_OFD_SETLK>, B<F_OFD_SETLKW>, or B<F_OFD_GETLK>, and I<l_pid> " |
| 3272 |
"was not specified as zero." |
| 3273 |
msgstr "" |
| 3274 |
"Значение I<cmd> равно B<F_OFD_SETLK>, B<F_OFD_SETLKW> или B<F_OFD_GETLK>, но " |
| 3275 |
"значение I<l_pid> не равно нулю." |
| 3276 |
|
| 3277 |
#. type: TP |
| 3278 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3279 |
#, no-wrap |
| 3280 |
msgid "B<EMFILE>" |
| 3281 |
msgstr "B<EMFILE>" |
| 3282 |
|
| 3283 |
#. type: Plain text |
| 3284 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3285 |
#, fuzzy |
| 3286 |
#| msgid "" |
| 3287 |
#| "I<cmd> is B<F_DUPFD> and the per-process limit on the number of open file " |
| 3288 |
#| "descriptors has been reached." |
| 3289 |
msgid "" |
| 3290 |
"I<op> is B<F_DUPFD> and the per-process limit on the number of open file " |
| 3291 |
"descriptors has been reached." |
| 3292 |
msgstr "" |
| 3293 |
"Значение I<cmd> равно B<F_DUPFD> и было достигнуто ограничение по количеству " |
| 3294 |
"открытых файловых дескрипторов на процесс." |
| 3295 |
|
| 3296 |
#. type: TP |
| 3297 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3298 |
#, no-wrap |
| 3299 |
msgid "B<ENOLCK>" |
| 3300 |
msgstr "B<ENOLCK>" |
| 3301 |
|
| 3302 |
#. type: Plain text |
| 3303 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3304 |
msgid "" |
| 3305 |
"Too many segment locks open, lock table is full, or a remote locking " |
| 3306 |
"protocol failed (e.g., locking over NFS)." |
| 3307 |
msgstr "" |
| 3308 |
"Открыто слишком много блокировок сегментов, таблица блокировок заполнена или " |
| 3309 |
"ошибка протокола удалённой блокировки (например, при блокировке через NFS)." |
| 3310 |
|
| 3311 |
#. type: TP |
| 3312 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3313 |
#, no-wrap |
| 3314 |
msgid "B<ENOTDIR>" |
| 3315 |
msgstr "B<ENOTDIR>" |
| 3316 |
|
| 3317 |
#. type: Plain text |
| 3318 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3319 |
#, fuzzy |
| 3320 |
#| msgid "" |
| 3321 |
#| "B<F_NOTIFY> was specified in I<cmd>, but I<fd> does not refer to a " |
| 3322 |
#| "directory." |
| 3323 |
msgid "" |
| 3324 |
"B<F_NOTIFY> was specified in I<op>, but I<fd> does not refer to a directory." |
| 3325 |
msgstr "Значение I<cmd> равно B<F_NOTIFY>, I<fd> не ссылается на каталог." |
| 3326 |
|
| 3327 |
#. type: TP |
| 3328 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3329 |
#, no-wrap |
| 3330 |
msgid "B<EPERM>" |
| 3331 |
msgstr "B<EPERM>" |
| 3332 |
|
| 3333 |
#. type: Plain text |
| 3334 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3335 |
#, fuzzy |
| 3336 |
#| msgid "" |
| 3337 |
#| "I<cmd> is B<F_SETPIPE_SZ> and the soft or hard user pipe limit has been " |
| 3338 |
#| "reached; see B<pipe>(7)." |
| 3339 |
msgid "" |
| 3340 |
"I<op> is B<F_SETPIPE_SZ> and the soft or hard user pipe limit has been " |
| 3341 |
"reached; see B<pipe>(7)." |
| 3342 |
msgstr "" |
| 3343 |
"Значение I<cmd> равно B<F_SETPIPE_SZ> и достигнуто мягкое или жёсткое " |
| 3344 |
"ограничение канала пользователя; смотрите B<pipe>(7)." |
| 3345 |
|
| 3346 |
#. type: Plain text |
| 3347 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3348 |
msgid "" |
| 3349 |
"Attempted to clear the B<O_APPEND> flag on a file that has the append-only " |
| 3350 |
"attribute set." |
| 3351 |
msgstr "" |
| 3352 |
"Попытка сбросить флаг B<O_APPEND> на файле, который открыт с атрибутом " |
| 3353 |
"только для добавления." |
| 3354 |
|
| 3355 |
#. type: Plain text |
| 3356 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3357 |
#, fuzzy |
| 3358 |
#| msgid "" |
| 3359 |
#| "I<cmd> was B<F_ADD_SEALS>, but I<fd> was not open for writing or the " |
| 3360 |
#| "current set of seals on the file already includes B<F_SEAL_SEAL>." |
| 3361 |
msgid "" |
| 3362 |
"I<op> was B<F_ADD_SEALS>, but I<fd> was not open for writing or the current " |
| 3363 |
"set of seals on the file already includes B<F_SEAL_SEAL>." |
| 3364 |
msgstr "" |
| 3365 |
"Значение I<cmd> равно B<F_ADD_SEALS>, но I<fd> не открыт на запись или " |
| 3366 |
"текущий набор печатей файла уже содержит B<F_SEAL_SEAL>." |
| 3367 |
|
| 3368 |
#. type: Plain text |
| 3369 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3370 |
msgid "POSIX.1-2008." |
| 3371 |
msgstr "POSIX.1-2008." |
| 3372 |
|
| 3373 |
#. .P |
| 3374 |
#. SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions. |
| 3375 |
#. type: Plain text |
| 3376 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3377 |
msgid "" |
| 3378 |
"B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, " |
| 3379 |
"B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are " |
| 3380 |
"Linux-specific. (Define the B<_GNU_SOURCE> macro to obtain these " |
| 3381 |
"definitions.)" |
| 3382 |
msgstr "" |
| 3383 |
"Команды B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, " |
| 3384 |
"B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE> и B<F_SETLEASE> есть " |
| 3385 |
"только в Linux. Для задействования этих определений определите макрос " |
| 3386 |
"B<_GNU_SOURCE>." |
| 3387 |
|
| 3388 |
#. type: Plain text |
| 3389 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3390 |
msgid "" |
| 3391 |
"B<F_OFD_SETLK>, B<F_OFD_SETLKW>, and B<F_OFD_GETLK> are Linux-specific (and " |
| 3392 |
"one must define B<_GNU_SOURCE> to obtain their definitions), but work is " |
| 3393 |
"being done to have them included in the next version of POSIX.1." |
| 3394 |
msgstr "" |
| 3395 |
"Значения B<F_OFD_SETLK>, B<F_OFD_SETLKW> и B<F_OFD_GETLK> есть только в " |
| 3396 |
"Linux (и для получения их определений нужно определить B<_GNU_SOURCE>), но " |
| 3397 |
"ведётся работа по их включению в следующую версию POSIX.1." |
| 3398 |
|
| 3399 |
#. FIXME . Once glibc adds support, add a note about FTM requirements |
| 3400 |
#. type: Plain text |
| 3401 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3402 |
msgid "B<F_ADD_SEALS> and B<F_GET_SEALS> are Linux-specific." |
| 3403 |
msgstr "Значения B<F_ADD_SEALS> и B<F_GET_SEALS> есть только в Linux." |
| 3404 |
|
| 3405 |
#. type: Plain text |
| 3406 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3407 |
msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 3408 |
msgstr "SVr4, 4.3BSD, POSIX.1-2001." |
| 3409 |
|
| 3410 |
#. type: Plain text |
| 3411 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3412 |
#, fuzzy |
| 3413 |
#| msgid "" |
| 3414 |
#| "SVr4, 4.3BSD, POSIX.1-2001. Only the operations B<F_DUPFD>, B<F_GETFD>, " |
| 3415 |
#| "B<F_SETFD>, B<F_GETFL>, B<F_SETFL>, B<F_GETLK>, B<F_SETLK>, and " |
| 3416 |
#| "B<F_SETLKW> are specified in POSIX.1-2001." |
| 3417 |
msgid "" |
| 3418 |
"Only the operations B<F_DUPFD>, B<F_GETFD>, B<F_SETFD>, B<F_GETFL>, " |
| 3419 |
"B<F_SETFL>, B<F_GETLK>, B<F_SETLK>, and B<F_SETLKW> are specified in " |
| 3420 |
"POSIX.1-2001." |
| 3421 |
msgstr "" |
| 3422 |
"SVr4, 4.3BSD, POSIX.1-2001. В POSIX.1-2001 указаны только команды " |
| 3423 |
"B<F_DUPFD>, B<F_GETFD>, B<F_SETFD>, B<F_GETFL>, B<F_SETFL>, B<F_GETLK>, " |
| 3424 |
"B<F_SETLK> и B<F_SETLKW>." |
| 3425 |
|
| 3426 |
#. .BR _BSD_SOURCE , |
| 3427 |
#. or |
| 3428 |
#. type: Plain text |
| 3429 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3430 |
msgid "" |
| 3431 |
"B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001. (To get their " |
| 3432 |
"definitions, define either B<_XOPEN_SOURCE> with the value 500 or greater, " |
| 3433 |
"or B<_POSIX_C_SOURCE> with the value 200809L or greater.)" |
| 3434 |
msgstr "" |
| 3435 |
"Значения B<F_GETOWN> и B<F_SETOWN> определены в POSIX.1-2001. Для получения " |
| 3436 |
"их определений, определите B<_XOPEN_SOURCE> со значением 500 или больше или " |
| 3437 |
"B<_POSIX_C_SOURCE> со значением 200809L или больше." |
| 3438 |
|
| 3439 |
#. type: Plain text |
| 3440 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3441 |
msgid "" |
| 3442 |
"B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008. (To get this definition, " |
| 3443 |
"define B<_POSIX_C_SOURCE> with the value 200809L or greater, or " |
| 3444 |
"B<_XOPEN_SOURCE> with the value 700 or greater.)" |
| 3445 |
msgstr "" |
| 3446 |
"B<F_DUPFD_CLOEXEC> указана в POSIX.1-2008. Для получения определения, " |
| 3447 |
"определите B<_POSIX_C_SOURCE> со значением 200809L или больше, или " |
| 3448 |
"B<_XOPEN_SOURCE> со значением 700 или больше." |
| 3449 |
|
| 3450 |
#. type: SH |
| 3451 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3452 |
#, no-wrap |
| 3453 |
msgid "NOTES" |
| 3454 |
msgstr "ПРИМЕЧАНИЯ" |
| 3455 |
|
| 3456 |
#. type: Plain text |
| 3457 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3458 |
msgid "" |
| 3459 |
"The errors returned by B<dup2>(2) are different from those returned by " |
| 3460 |
"B<F_DUPFD>." |
| 3461 |
msgstr "" |
| 3462 |
"Ошибки, возвращаемые B<dup2>(2), отличаются от тех, что возвращаются при " |
| 3463 |
"B<F_DUPFD>." |
| 3464 |
|
| 3465 |
#. type: SS |
| 3466 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3467 |
#, no-wrap |
| 3468 |
msgid "File locking" |
| 3469 |
msgstr "Файловая блокировка" |
| 3470 |
|
| 3471 |
#. type: Plain text |
| 3472 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3473 |
#, fuzzy |
| 3474 |
#| msgid "" |
| 3475 |
#| "The original Linux B<fcntl>() system call was not designed to handle " |
| 3476 |
#| "large file offsets (in the I<flock> structure). Consequently, an " |
| 3477 |
#| "B<fcntl64>() system call was added in Linux 2.4. The newer system call " |
| 3478 |
#| "employs a different structure for file locking, I<flock64>, and " |
| 3479 |
#| "corresponding commands, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>. " |
| 3480 |
#| "However, these details can be ignored by applications using glibc, whose " |
| 3481 |
#| "B<fcntl>() wrapper function transparently employs the more recent system " |
| 3482 |
#| "call where it is available." |
| 3483 |
msgid "" |
| 3484 |
"The original Linux B<fcntl>() system call was not designed to handle large " |
| 3485 |
"file offsets (in the I<flock> structure). Consequently, an B<fcntl64>() " |
| 3486 |
"system call was added in Linux 2.4. The newer system call employs a " |
| 3487 |
"different structure for file locking, I<flock64>, and corresponding " |
| 3488 |
"operations, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>. However, these " |
| 3489 |
"details can be ignored by applications using glibc, whose B<fcntl>() " |
| 3490 |
"wrapper function transparently employs the more recent system call where it " |
| 3491 |
"is available." |
| 3492 |
msgstr "" |
| 3493 |
"Первоначальная версия системного вызова B<fcntl>() в Linux не умела работать " |
| 3494 |
"с большими файловыми смещениями (в структуре I<flock>). Позднее, в Linux 2.4 " |
| 3495 |
"был добавлен системный вызов B<fcntl64>(). Новый системный вызов использует " |
| 3496 |
"другую структуру для блокировки файлов — I<flock64> и соответствующие " |
| 3497 |
"команды — B<F_GETLK64>, B<F_SETLK64> и B<F_SETLKW64>. Однако, это различие " |
| 3498 |
"может игнорироваться приложениями, которые используют glibc, так как " |
| 3499 |
"имеющаяся в ней обёрточная функция B<fcntl>() самостоятельно задействует " |
| 3500 |
"более новый системный вызов, если он доступен." |
| 3501 |
|
| 3502 |
#. type: SS |
| 3503 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3504 |
#, no-wrap |
| 3505 |
msgid "Record locks" |
| 3506 |
msgstr "Обычные блокировки (Record locks)" |
| 3507 |
|
| 3508 |
#. type: Plain text |
| 3509 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3510 |
#, fuzzy |
| 3511 |
#| msgid "" |
| 3512 |
#| "Since kernel 2.0, there is no interaction between the types of lock " |
| 3513 |
#| "placed by B<flock>(2) and B<fcntl>()." |
| 3514 |
msgid "" |
| 3515 |
"Since Linux 2.0, there is no interaction between the types of lock placed by " |
| 3516 |
"B<flock>(2) and B<fcntl>()." |
| 3517 |
msgstr "" |
| 3518 |
"Начиная с ядра 2.0, не существует разницы между типами блокировки, которые " |
| 3519 |
"осуществляют B<flock>(2) и B<fcntl>()." |
| 3520 |
|
| 3521 |
#. e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5 |
| 3522 |
#. documents it in fcntl(5). mtk, May 2007 |
| 3523 |
#. Also, FreeBSD documents it (Apr 2014). |
| 3524 |
#. type: Plain text |
| 3525 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3526 |
msgid "" |
| 3527 |
"Several systems have more fields in I<struct flock> such as, for example, " |
| 3528 |
"I<l_sysid> (to identify the machine where the lock is held). Clearly, " |
| 3529 |
"I<l_pid> alone is not going to be very useful if the process holding the " |
| 3530 |
"lock may live on a different machine; on Linux, while present on some " |
| 3531 |
"architectures (such as MIPS32), this field is not used." |
| 3532 |
msgstr "" |
| 3533 |
"Некоторые системы имеют дополнительные поля в структуре I<struct flock>, " |
| 3534 |
"например, I<l_sysid> (признак машины, на которой удерживается блокировка). " |
| 3535 |
"Вообще говоря, один I<l_pid> не очень полезен, если процесс, удерживающий " |
| 3536 |
"блокировку, может работать на другой машине; в Linux, хотя это поле и есть " |
| 3537 |
"на некоторых архитектурах (например, MIPS32), но оно не используется." |
| 3538 |
|
| 3539 |
#. type: SS |
| 3540 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3541 |
#, no-wrap |
| 3542 |
msgid "Record locking and NFS" |
| 3543 |
msgstr "Блокировка и NFS" |
| 3544 |
|
| 3545 |
#. Neil Brown: With NFSv3 the failure mode is the reverse. If |
| 3546 |
#. the server loses contact with a client then any lock stays in place |
| 3547 |
#. indefinitely ("why can't I read my mail"... I remember it well). |
| 3548 |
#. Jeff Layton: |
| 3549 |
#. Note that this is not a firm timeout. The server runs a job |
| 3550 |
#. periodically to clean out expired stateful objects, and it's likely |
| 3551 |
#. that there is some time (maybe even up to another whole lease period) |
| 3552 |
#. between when the timeout expires and the job actually runs. If the |
| 3553 |
#. client gets a RENEW in there within that window, its lease will be |
| 3554 |
#. renewed and its state preserved. |
| 3555 |
#. type: Plain text |
| 3556 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3557 |
msgid "" |
| 3558 |
"Before Linux 3.12, if an NFSv4 client loses contact with the server for a " |
| 3559 |
"period of time (defined as more than 90 seconds with no communication), it " |
| 3560 |
"might lose and regain a lock without ever being aware of the fact. (The " |
| 3561 |
"period of time after which contact is assumed lost is known as the NFSv4 " |
| 3562 |
"leasetime. On a Linux NFS server, this can be determined by looking at I</" |
| 3563 |
"proc/fs/nfsd/nfsv4leasetime>, which expresses the period in seconds. The " |
| 3564 |
"default value for this file is 90.) This scenario potentially risks data " |
| 3565 |
"corruption, since another process might acquire a lock in the intervening " |
| 3566 |
"period and perform file I/O." |
| 3567 |
msgstr "" |
| 3568 |
"До Linux 3.12, если клиент NFSv4 теряет связь с сервером на некоторый период " |
| 3569 |
"времени (более 90 секунд), то он может потерять и перезапросить блокировки " |
| 3570 |
"даже не зная об этом (период времени, после которого контакт предполагается " |
| 3571 |
"потерянным в NFSv4 называется время аренды (leasetime). У Linux в сервере " |
| 3572 |
"NFS его можно узнать по значению в I</proc/fs/nfsd/nfsv4leasetime>, которое " |
| 3573 |
"отражает период в секундах. В этом файле значение по умолчанию равно 90). " |
| 3574 |
"Данный сценарий несёт потенциальный риск повреждения данных, так как в этот " |
| 3575 |
"перерыв другой процесс может установить блокировку и выполнить файловый ввод-" |
| 3576 |
"вывод." |
| 3577 |
|
| 3578 |
#. commit ef1820f9be27b6ad158f433ab38002ab8131db4d |
| 3579 |
#. commit f6de7a39c181dfb8a2c534661a53c73afb3081cd |
| 3580 |
#. type: Plain text |
| 3581 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3582 |
msgid "" |
| 3583 |
"Since Linux 3.12, if an NFSv4 client loses contact with the server, any I/O " |
| 3584 |
"to the file by a process which \"thinks\" it holds a lock will fail until " |
| 3585 |
"that process closes and reopens the file. A kernel parameter, " |
| 3586 |
"I<nfs.recover_lost_locks>, can be set to 1 to obtain the pre-3.12 behavior, " |
| 3587 |
"whereby the client will attempt to recover lost locks when contact is " |
| 3588 |
"reestablished with the server. Because of the attendant risk of data " |
| 3589 |
"corruption, this parameter defaults to 0 (disabled)." |
| 3590 |
msgstr "" |
| 3591 |
"Начиная с Linux 3.12, если клиент NFSv4 теряет контакт с сервером, то любой " |
| 3592 |
"файловый ввод-вывод, выполняемый процессом, который «думает», что имеет " |
| 3593 |
"блокировку, будет завершаться с ошибкой до тех пор, пока этот процесс не " |
| 3594 |
"закроет и не переоткроет файл. Чтобы вернуть поведение, которое было до " |
| 3595 |
"версии pre-3.12, можно параметру ядра I<nfs.recover_lost_locks> присвоить " |
| 3596 |
"значение 1, из-за чего клиент буде пытаться восстановить потерянные " |
| 3597 |
"блокировки при переустановлении связи с сервером. Из-за наличия " |
| 3598 |
"сопутствующего риска повреждения данных, значение данного параметра по " |
| 3599 |
"умолчанию равно 0 (отключено)." |
| 3600 |
|
| 3601 |
#. type: SH |
| 3602 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3603 |
#, no-wrap |
| 3604 |
msgid "BUGS" |
| 3605 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 3606 |
|
| 3607 |
#. type: SS |
| 3608 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3609 |
#, no-wrap |
| 3610 |
msgid "F_SETFL" |
| 3611 |
msgstr "F_SETFL" |
| 3612 |
|
| 3613 |
#. FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable |
| 3614 |
#. via fcntl(2), but currently Linux does not permit this |
| 3615 |
#. See http://bugzilla.kernel.org/show_bug.cgi?id=5994 |
| 3616 |
#. type: Plain text |
| 3617 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3618 |
msgid "" |
| 3619 |
"It is not possible to use B<F_SETFL> to change the state of the B<O_DSYNC> " |
| 3620 |
"and B<O_SYNC> flags. Attempts to change the state of these flags are " |
| 3621 |
"silently ignored." |
| 3622 |
msgstr "" |
| 3623 |
"Невозможно использовать B<F_SETFL> для смены состояния флагов B<O_DSYNC> и " |
| 3624 |
"B<O_SYNC>. Попытка изменить состояние этих флагов просто игнорируется." |
| 3625 |
|
| 3626 |
#. type: SS |
| 3627 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3628 |
#, no-wrap |
| 3629 |
msgid "F_GETOWN" |
| 3630 |
msgstr "F_GETOWN" |
| 3631 |
|
| 3632 |
#. glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h |
| 3633 |
#. mtk, Dec 04: some limited testing on alpha and ia64 seems to |
| 3634 |
#. indicate that ANY negative PGID value will cause F_GETOWN |
| 3635 |
#. to misinterpret the return as an error. Some other architectures |
| 3636 |
#. seem to have the same range check as i386. |
| 3637 |
#. type: Plain text |
| 3638 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3639 |
#, fuzzy |
| 3640 |
#| msgid "" |
| 3641 |
#| "A limitation of the Linux system call conventions on some architectures " |
| 3642 |
#| "(notably i386) means that if a (negative) process group ID to be " |
| 3643 |
#| "returned by B<F_GETOWN> falls in the range -1 to -4095, then the return " |
| 3644 |
#| "value is wrongly interpreted by glibc as an error in the system call; " |
| 3645 |
#| "that is, the return value of B<fcntl>() will be -1, and I<errno> will " |
| 3646 |
#| "contain the (positive) process group ID. The Linux-specific " |
| 3647 |
#| "B<F_GETOWN_EX> operation avoids this problem. Since glibc version 2.11, " |
| 3648 |
#| "glibc makes the kernel B<F_GETOWN> problem invisible by implementing " |
| 3649 |
#| "B<F_GETOWN> using B<F_GETOWN_EX>." |
| 3650 |
msgid "" |
| 3651 |
"A limitation of the Linux system call conventions on some architectures " |
| 3652 |
"(notably i386) means that if a (negative) process group ID to be returned " |
| 3653 |
"by B<F_GETOWN> falls in the range -1 to -4095, then the return value is " |
| 3654 |
"wrongly interpreted by glibc as an error in the system call; that is, the " |
| 3655 |
"return value of B<fcntl>() will be -1, and I<errno> will contain the " |
| 3656 |
"(positive) process group ID. The Linux-specific B<F_GETOWN_EX> operation " |
| 3657 |
"avoids this problem. Since glibc 2.11, glibc makes the kernel B<F_GETOWN> " |
| 3658 |
"problem invisible by implementing B<F_GETOWN> using B<F_GETOWN_EX>." |
| 3659 |
msgstr "" |
| 3660 |
"Ограничение в соглашениях по системным вызовам Linux на некоторых " |
| 3661 |
"архитектурах (в частности i386) приводит к тому, что если значение ID группы " |
| 3662 |
"процесса (отрицательное), возвращаемое по команде B<F_GETOWN>, попадает в " |
| 3663 |
"диапазон от -1 до -4095, то оно неправильно интерпретируется glibc и " |
| 3664 |
"считается ошибкой в системном вызове; то есть возвращаемое значение " |
| 3665 |
"B<fcntl>() будет равно -1, а I<errno> будет содержать значение ID группы " |
| 3666 |
"процесса (положительное). Команда B<F_GETOWN_EX> (есть только в Linux) не " |
| 3667 |
"подвержена этой проблеме. Начиная с glibc версии 2.11, glibc делает проблему " |
| 3668 |
"для B<F_GETOWN> невидимой, реализовав B<F_GETOWN> с помощью B<F_GETOWN_EX>." |
| 3669 |
|
| 3670 |
#. type: SS |
| 3671 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3672 |
#, no-wrap |
| 3673 |
msgid "F_SETOWN" |
| 3674 |
msgstr "F_SETOWN" |
| 3675 |
|
| 3676 |
#. type: Plain text |
| 3677 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3678 |
msgid "" |
| 3679 |
"In Linux 2.4 and earlier, there is bug that can occur when an unprivileged " |
| 3680 |
"process uses B<F_SETOWN> to specify the owner of a socket file descriptor as " |
| 3681 |
"a process (group) other than the caller. In this case, B<fcntl>() can " |
| 3682 |
"return -1 with I<errno> set to B<EPERM>, even when the owner process (group) " |
| 3683 |
"is one that the caller has permission to send signals to. Despite this " |
| 3684 |
"error return, the file descriptor owner is set, and signals will be sent to " |
| 3685 |
"the owner." |
| 3686 |
msgstr "" |
| 3687 |
"В Linux 2.4 и более раннем, есть ошибка, которая может произойти когда " |
| 3688 |
"непривилегированный процесс использует B<F_SETOWN> для задания владельца " |
| 3689 |
"дескриптора файла сокета как процесса (группу) отличного от вызывающего. В " |
| 3690 |
"этом случае B<fcntl>() может вернуть -1 с I<errno> равным B<EPERM>, даже " |
| 3691 |
"когда процесс (группа) владелец такая же как и вызывающий имеет право " |
| 3692 |
"посылать сигнал. Несмотря на возвращаемую ошибку, владелец файлового " |
| 3693 |
"дескриптора всё равно устанавливается и сигналы будут посылаться владельцу." |
| 3694 |
|
| 3695 |
#. type: SS |
| 3696 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3697 |
#, no-wrap |
| 3698 |
msgid "Deadlock detection" |
| 3699 |
msgstr "Обнаружение взаимных блокировок (deadlock)" |
| 3700 |
|
| 3701 |
#. type: Plain text |
| 3702 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3703 |
msgid "" |
| 3704 |
"The deadlock-detection algorithm employed by the kernel when dealing with " |
| 3705 |
"B<F_SETLKW> requests can yield both false negatives (failures to detect " |
| 3706 |
"deadlocks, leaving a set of deadlocked processes blocked indefinitely) and " |
| 3707 |
"false positives (B<EDEADLK> errors when there is no deadlock). For example, " |
| 3708 |
"the kernel limits the lock depth of its dependency search to 10 steps, " |
| 3709 |
"meaning that circular deadlock chains that exceed that size will not be " |
| 3710 |
"detected. In addition, the kernel may falsely indicate a deadlock when two " |
| 3711 |
"or more processes created using the B<clone>(2) B<CLONE_FILES> flag place " |
| 3712 |
"locks that appear (to the kernel) to conflict." |
| 3713 |
msgstr "" |
| 3714 |
"Алгоритм обнаружения взаимных блокировок задействуется ядром при работе с " |
| 3715 |
"запросами B<F_SETLKW> и может закончиться как ненахождением (не удалось " |
| 3716 |
"обнаружить взаимную блокировку и процессы блокируют друг друга навсегда), " |
| 3717 |
"так и ошибочным нахождением (ошибка B<EDEADLK>, но взаимная блокировка " |
| 3718 |
"отсутствует). Например, ограничение ядра на вложенность зависимостей " |
| 3719 |
"блокировки при поиске равна 10, что означает, что цепочки циклических " |
| 3720 |
"зависимостей, превышающие этот размер, не будут обнаружены. Также ядро может " |
| 3721 |
"ошибочно посчитать за взаимную блокировку ситуацию, когда два и более " |
| 3722 |
"процесса, созданных с помощью B<clone>(2) с флагом B<CLONE_FILES>, размещают " |
| 3723 |
"блокировки, которые похожи (для ядра) на конфликтующие." |
| 3724 |
|
| 3725 |
#. http://marc.info/?l=linux-kernel&m=119013491707153&w=2 |
| 3726 |
#. Reconfirmed by Jeff Layton |
| 3727 |
#. From: Jeff Layton <jlayton <at> redhat.com> |
| 3728 |
#. Subject: Re: Status of fcntl() mandatory locking |
| 3729 |
#. Newsgroups: gmane.linux.file-systems |
| 3730 |
#. Date: 2014-04-28 10:07:57 GMT |
| 3731 |
#. http://thread.gmane.org/gmane.linux.file-systems/84481/focus=84518 |
| 3732 |
#. type: Plain text |
| 3733 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3734 |
msgid "" |
| 3735 |
"The Linux implementation of mandatory locking is subject to race conditions " |
| 3736 |
"which render it unreliable: a B<write>(2) call that overlaps with a lock " |
| 3737 |
"may modify data after the mandatory lock is acquired; a B<read>(2) call " |
| 3738 |
"that overlaps with a lock may detect changes to data that were made only " |
| 3739 |
"after a write lock was acquired. Similar races exist between mandatory " |
| 3740 |
"locks and B<mmap>(2). It is therefore inadvisable to rely on mandatory " |
| 3741 |
"locking." |
| 3742 |
msgstr "" |
| 3743 |
"Реализация обязательной блокировки в Linux проводит к состязательности " |
| 3744 |
"процессов, что делает её ненадёжной: вызов B<write>(2), пересекающийся с " |
| 3745 |
"блокировкой, может изменить данные после установления обязательной " |
| 3746 |
"блокировки; вызов B<read>(2), пересекающийся с блокировкой, может обнаружить " |
| 3747 |
"изменившиеся данные, которые были внесены уже установления блокировки на " |
| 3748 |
"запись. Подобная состязательность существует между обязательными " |
| 3749 |
"блокировками и B<mmap>(2). Поэтому нецелесообразно полагаться на " |
| 3750 |
"обязательную блокировку." |
| 3751 |
|
| 3752 |
#. type: Plain text |
| 3753 |
#: debian-trixie fedora-44 fedora-rawhide |
| 3754 |
msgid "" |
| 3755 |
"I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the Linux " |
| 3756 |
"kernel source directory I<Documentation/filesystems/> (on older kernels, " |
| 3757 |
"these files are directly under the I<Documentation/> directory, and " |
| 3758 |
"I<mandatory-locking.txt> is called I<mandatory.txt>)" |
| 3759 |
msgstr "" |
| 3760 |
"Файлы I<locks.txt>, I<mandatory-locking.txt> и I<dnotify.txt> из каталога " |
| 3761 |
"I<Documentation/filesystems.> исходного кода ядра Linux (в старых ядрах эти " |
| 3762 |
"файлы были в каталоге I<Documentation/>, а I<mandatory-locking.txt> " |
| 3763 |
"назывался I<mandatory.txt>)." |
| 3764 |
|
| 3765 |
#. type: TH |
| 3766 |
#: fedora-44 fedora-rawhide |
| 3767 |
#, no-wrap |
| 3768 |
msgid "2024-07-23" |
| 3769 |
msgstr "23 июля 2024 г." |
| 3770 |
|
| 3771 |
#. type: TH |
| 3772 |
#: fedora-44 fedora-rawhide |
| 3773 |
#, no-wrap |
| 3774 |
msgid "Linux man-pages 6.13" |
| 3775 |
msgstr "Страницы руководства Linux 6.13" |
| 3776 |
|
| 3777 |
#. type: TH |
| 3778 |
#: mageia-cauldron |
| 3779 |
#, no-wrap |
| 3780 |
msgid "Linux man-pages 6.17" |
| 3781 |
msgstr "Страницы руководства Linux 6.17" |
| 3782 |
|
| 3783 |
#. type: TH |
| 3784 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 3785 |
#, no-wrap |
| 3786 |
msgid "Linux man-pages (unreleased)" |
| 3787 |
msgstr "Страницы руководства Linux (не выпущены)" |