| 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 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Alexey <[email protected]>, 2015. |
| 6 |
# Azamat Hackimov <[email protected]>, 2013-2017. |
| 7 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 8 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 9 |
# ITriskTI <[email protected]>, 2013. |
| 10 |
# Max Is <[email protected]>, 2016. |
| 11 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 12 |
# Иван Павлов <[email protected]>, 2017. |
| 13 |
# Малянов Евгений Викторович <[email protected]>, 2014. |
| 14 |
msgid "" |
| 15 |
msgstr "" |
| 16 |
"Project-Id-Version: manpages-l10n\n" |
| 17 |
"POT-Creation-Date: 2026-06-05 06:31+0200\n" |
| 18 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 19 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 20 |
"Language-Team: Russian <[email protected]>\n" |
| 21 |
"Language: ru\n" |
| 22 |
"MIME-Version: 1.0\n" |
| 23 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 24 |
"Content-Transfer-Encoding: 8bit\n" |
| 25 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 26 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 27 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 28 |
"X-Generator: Lokalize 2.0\n" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 32 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "mmap" |
| 35 |
msgstr "mmap" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 39 |
#, no-wrap |
| 40 |
msgid "2026-03-19" |
| 41 |
msgstr "19 марта 2026 г." |
| 42 |
|
| 43 |
#. type: TH |
| 44 |
#: archlinux debian-unstable |
| 45 |
#, fuzzy, no-wrap |
| 46 |
#| msgid "Linux man-pages 6.17" |
| 47 |
msgid "Linux man-pages 6.18" |
| 48 |
msgstr "Справочные страницы Linux 6.17" |
| 49 |
|
| 50 |
#. type: SH |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
#, no-wrap |
| 54 |
msgid "NAME" |
| 55 |
msgstr "НАИМЕНОВАНИЕ" |
| 56 |
|
| 57 |
#. type: Plain text |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
msgid "mmap, munmap - map or unmap files or devices into memory" |
| 61 |
msgstr "" |
| 62 |
"mmap, munmap - отображает файлы или устройства в памяти, или удаляет их " |
| 63 |
"отображение" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "LIBRARY" |
| 70 |
msgstr "БИБЛИОТЕКА" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 74 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 76 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 77 |
|
| 78 |
#. type: SH |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "SYNOPSIS" |
| 83 |
msgstr "СИНТАКСИС" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "B<#include E<lt>sys/mman.hE<gt>>\n" |
| 90 |
msgstr "B<#include E<lt>sys/mman.hE<gt>>\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 94 |
#: opensuse-tumbleweed |
| 95 |
#, fuzzy, no-wrap |
| 96 |
#| msgid "" |
| 97 |
#| "B<void *mmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n" |
| 98 |
#| "B< int >I<fd>B<, off_t >I<offset>B<);>\n" |
| 99 |
#| "B<int munmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<);>\n" |
| 100 |
msgid "" |
| 101 |
"B<void *mmap(>size_t length;\n" |
| 102 |
"B< void >I<addr>B<[>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n" |
| 103 |
"B< int >I<fd>B<, off_t >I<offset>B<);>\n" |
| 104 |
"B<int munmap(>size_t length;\n" |
| 105 |
"B< void >I<addr>B<[>I<length>B<], size_t >I<length>B<);>\n" |
| 106 |
msgstr "" |
| 107 |
"B<void *mmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n" |
| 108 |
"B< int >I<fd>B<, off_t >I<offset>B<);>\n" |
| 109 |
"B<int munmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<);>\n" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 113 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, fuzzy |
| 115 |
#| msgid "See NOTES for information on feature test macro requirements." |
| 116 |
msgid "See VERSIONS for information on feature test macro requirements." |
| 117 |
msgstr "" |
| 118 |
"Информацию по требованиям макроса тестирования свойств смотрите в разделе " |
| 119 |
"ЗАМЕЧАНИЯ." |
| 120 |
|
| 121 |
#. type: SH |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, no-wrap |
| 125 |
msgid "DESCRIPTION" |
| 126 |
msgstr "ОПИСАНИЕ" |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
msgid "" |
| 132 |
"B<mmap>() creates a new mapping in the virtual address space of the calling " |
| 133 |
"process. The starting address for the new mapping is specified in I<addr>. " |
| 134 |
"The I<length> argument specifies the length of the mapping (which must be " |
| 135 |
"greater than 0)." |
| 136 |
msgstr "" |
| 137 |
"Вызов B<mmap>() создаёт новое отображение в виртуальном адресном " |
| 138 |
"пространстве вызывающего процесса. Адрес начала нового отображения " |
| 139 |
"указывается в I<addr>. В аргументе I<length> задаётся длина отображения " |
| 140 |
"(должна быть больше 0)." |
| 141 |
|
| 142 |
#. Before Linux 2.6.24, the address was rounded up to the next page |
| 143 |
#. boundary; since Linux 2.6.24, it is rounded down! |
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "" |
| 148 |
"If I<addr> is NULL, then the kernel chooses the (page-aligned) address at " |
| 149 |
"which to create the mapping; this is the most portable method of creating a " |
| 150 |
"new mapping. If I<addr> is not NULL, then the kernel takes it as a hint " |
| 151 |
"about where to place the mapping; on Linux, the kernel will pick a nearby " |
| 152 |
"page boundary (but always above or equal to the value specified by I</proc/" |
| 153 |
"sys/vm/mmap_min_addr>) and attempt to create the mapping there. If another " |
| 154 |
"mapping already exists there, the kernel picks a new address that may or may " |
| 155 |
"not depend on the hint. The address of the new mapping is returned as the " |
| 156 |
"result of the call." |
| 157 |
msgstr "" |
| 158 |
"Если значение I<addr> равно NULL, то ядро само выбирает адрес (выровненный " |
| 159 |
"по странице), по которому создаётся отображение; это наиболее переносимый " |
| 160 |
"метод создания нового отображения. Если значение I<addr> не равно NULL, то " |
| 161 |
"ядро учитывает это при размещении отображения; в Linux ядро выберет " |
| 162 |
"ближайшую к границе страницу (но всегда выше или равною значению, заданному " |
| 163 |
"в I</proc/sys/vm/mmap_min_addr>) и попытается создать отображение. Если по " |
| 164 |
"этому адресу уже есть отображение, то ядро выберет новый адрес, который " |
| 165 |
"может и не зависеть от подсказки. Адрес нового отображения возвращается как " |
| 166 |
"результат вызова." |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"The contents of a file mapping (as opposed to an anonymous mapping; see " |
| 173 |
"B<MAP_ANONYMOUS> below), are initialized using I<length> bytes starting at " |
| 174 |
"offset I<offset> in the file (or other object) referred to by the file " |
| 175 |
"descriptor I<fd>. I<offset> must be a multiple of the page size as returned " |
| 176 |
"by I<sysconf(_SC_PAGE_SIZE)>." |
| 177 |
msgstr "" |
| 178 |
"Содержимое файлового отображения (в отличие от анонимного отображения; " |
| 179 |
"смотрите B<MAP_ANONYMOUS> далее) инициализируется данными из файла (или " |
| 180 |
"объекта), на который указывает файловый дескриптор I<fd>, длиной I<length> " |
| 181 |
"байт, начиная со смещения I<offset>. Значение I<offset> должно быть кратно " |
| 182 |
"размеру (возвращается I<sysconf(_SC_PAGE_SIZE)>) страницы." |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"After the B<mmap>() call has returned, the file descriptor, I<fd>, can be " |
| 189 |
"closed immediately without invalidating the mapping." |
| 190 |
msgstr "" |
| 191 |
"После возврата из вызова B<mmap>() файловый дескриптор I<fd> может быть " |
| 192 |
"немедленно закрыт без признания отображения недействительным." |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"The I<prot> argument describes the desired memory protection of the mapping " |
| 199 |
"(and must not conflict with the open mode of the file). It is either " |
| 200 |
"B<PROT_NONE> or the bitwise OR of one or more of the following flags:" |
| 201 |
msgstr "" |
| 202 |
"В аргументе I<prot> указывается желаемая защита памяти отображения (не " |
| 203 |
"должна конфликтовать с режимом открытого файла). Значением может быть " |
| 204 |
"B<PROT_NONE> или побитово сложенные (OR) следующие флаги:" |
| 205 |
|
| 206 |
#. type: TP |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "B<PROT_EXEC>" |
| 211 |
msgstr "B<PROT_EXEC>" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "Pages may be executed." |
| 217 |
msgstr "Страницы доступны для исполнения." |
| 218 |
|
| 219 |
#. type: TP |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "B<PROT_READ>" |
| 224 |
msgstr "B<PROT_READ>" |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "Pages may be read." |
| 230 |
msgstr "Страницы доступны для чтения." |
| 231 |
|
| 232 |
#. type: TP |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
#, no-wrap |
| 236 |
msgid "B<PROT_WRITE>" |
| 237 |
msgstr "B<PROT_WRITE>" |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "Pages may be written." |
| 243 |
msgstr "Страницы доступны для записи." |
| 244 |
|
| 245 |
#. type: TP |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
#, no-wrap |
| 249 |
msgid "B<PROT_NONE>" |
| 250 |
msgstr "B<PROT_NONE>" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "Pages may not be accessed." |
| 256 |
msgstr "Страницы недоступны." |
| 257 |
|
| 258 |
#. type: SS |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
#, no-wrap |
| 262 |
msgid "The flags argument" |
| 263 |
msgstr "Аргумент флагов" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
msgid "" |
| 269 |
"The I<flags> argument determines whether updates to the mapping are visible " |
| 270 |
"to other processes mapping the same region, and whether updates are carried " |
| 271 |
"through to the underlying file. This behavior is determined by including " |
| 272 |
"exactly one of the following values in I<flags>:" |
| 273 |
msgstr "" |
| 274 |
"В аргументе I<flags> задаётся будут ли изменения отображения видимы другим " |
| 275 |
"процессам, отображающим ту же область, и будут ли изменения перенесены в " |
| 276 |
"отображённый файл. Данное поведение определяется в I<flags> одним из " |
| 277 |
"следующих значений:" |
| 278 |
|
| 279 |
#. type: TP |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "B<MAP_SHARED>" |
| 284 |
msgstr "B<MAP_SHARED>" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"Share this mapping. Updates to the mapping are visible to other processes " |
| 291 |
"mapping the same region, and (in the case of file-backed mappings) are " |
| 292 |
"carried through to the underlying file. (To precisely control when updates " |
| 293 |
"are carried through to the underlying file requires the use of B<msync>(2).)" |
| 294 |
msgstr "" |
| 295 |
"Сделать отображение общим. Изменения отображения видимы всем процессам, " |
| 296 |
"отображающим ту же область и (если отображение выполняется из файла) " |
| 297 |
"изменения заносятся в отображённый файл (для более точного контроля над " |
| 298 |
"изменениями файла нужно использовать B<msync>(2))." |
| 299 |
|
| 300 |
#. type: TP |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "B<MAP_SHARED_VALIDATE> (since Linux 4.15)" |
| 305 |
msgstr "B<MAP_SHARED_VALIDATE> (начиная с Linux 4.15)" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
msgid "" |
| 311 |
"This flag provides the same behavior as B<MAP_SHARED> except that " |
| 312 |
"B<MAP_SHARED> mappings ignore unknown flags in I<flags>. By contrast, when " |
| 313 |
"creating a mapping using B<MAP_SHARED_VALIDATE>, the kernel verifies all " |
| 314 |
"passed flags are known and fails the mapping with the error B<EOPNOTSUPP> " |
| 315 |
"for unknown flags. This mapping type is also required to be able to use " |
| 316 |
"some mapping flags (e.g., B<MAP_SYNC>)." |
| 317 |
msgstr "" |
| 318 |
"Данный флаг представляет тоже, что и B<MAP_SHARED>, отображения " |
| 319 |
"B<MAP_SHARED> игнорируют неизвестные флаги I<flags>. Если же отображение " |
| 320 |
"создаётся с B<MAP_SHARED_VALIDATE>, ядро проверят, что ему известны все " |
| 321 |
"переданные флаги и завершает отображение ошибкой B<EOPNOTSUPP>, если есть " |
| 322 |
"неизвестные флаги. Этот тип отображения также требуется для использования " |
| 323 |
"некоторых флагов отображения (например, B<MAP_SYNC>)." |
| 324 |
|
| 325 |
#. type: TP |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "B<MAP_PRIVATE>" |
| 330 |
msgstr "B<MAP_PRIVATE>" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"Create a private copy-on-write mapping. Updates to the mapping are not " |
| 337 |
"visible to other processes mapping the same file, and are not carried " |
| 338 |
"through to the underlying file. It is unspecified whether changes made to " |
| 339 |
"the file after the B<mmap>() call are visible in the mapped region." |
| 340 |
msgstr "" |
| 341 |
"Создать закрытое отображение с механизмом копирования при записи. Изменения " |
| 342 |
"отображения невидимы другим процессам, отображающим тот же файл, и сам файл " |
| 343 |
"не изменяется. Не определено, будут ли видимы в отображённой области " |
| 344 |
"изменения в файле, сделанные после вызова B<mmap>()." |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
msgid "" |
| 350 |
"Both B<MAP_SHARED> and B<MAP_PRIVATE> are described in POSIX.1-2001 and " |
| 351 |
"POSIX.1-2008. B<MAP_SHARED_VALIDATE> is a Linux extension." |
| 352 |
msgstr "" |
| 353 |
"Флаги B<MAP_SHARED> и B<MAP_PRIVATE> описаны в POSIX.1-2001 и POSIX.1-2008. " |
| 354 |
"Флаг B<MAP_SHARED_VALIDATE> является расширением Linux." |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
msgid "" |
| 360 |
"In addition, zero or more of the following values can be ORed in I<flags>:" |
| 361 |
msgstr "Кроме этого в I<flags> могут быть указаны (побитовым сложением):" |
| 362 |
|
| 363 |
#. type: TP |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
#, no-wrap |
| 367 |
msgid "B<MAP_32BIT> (since Linux 2.4.20, 2.6)" |
| 368 |
msgstr "B<MAP_32BIT> (начиная с Linux 2.4.20, 2.6)" |
| 369 |
|
| 370 |
#. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08 |
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"Put the mapping into the first 2 Gigabytes of the process address space. " |
| 376 |
"This flag is supported only on x86-64, for 64-bit programs. It was added to " |
| 377 |
"allow thread stacks to be allocated somewhere in the first 2\\ GB of memory, " |
| 378 |
"so as to improve context-switch performance on some early 64-bit " |
| 379 |
"processors. Modern x86-64 processors no longer have this performance " |
| 380 |
"problem, so use of this flag is not required on those systems. The " |
| 381 |
"B<MAP_32BIT> flag is ignored when B<MAP_FIXED> is set." |
| 382 |
msgstr "" |
| 383 |
"Поместить отображение в первые 2 гигабайта адресного пространства процесса. " |
| 384 |
"Этот флаг поддерживается только на архитектуре x86-64 для 64-битных " |
| 385 |
"программ. Он был добавлен для размещения стеков нитей в первых 2\\ ГБ " |
| 386 |
"памяти, что даёт увеличение производительности при переключения контекста на " |
| 387 |
"некоторых первых 64-битных процессорах. В современных процессорах x86-64 " |
| 388 |
"такой проблемы с производительностью больше нет, поэтому на таких системах " |
| 389 |
"данный флаг больше не требуется. Он игнорируется, если указан флаг " |
| 390 |
"B<MAP_FIXED>." |
| 391 |
|
| 392 |
#. type: TP |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
#, no-wrap |
| 396 |
msgid "B<MAP_ANON>" |
| 397 |
msgstr "B<MAP_ANON>" |
| 398 |
|
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"Synonym for B<MAP_ANONYMOUS>; provided for compatibility with other " |
| 404 |
"implementations." |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: TP |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
#, no-wrap |
| 411 |
msgid "B<MAP_ANONYMOUS>" |
| 412 |
msgstr "B<MAP_ANONYMOUS>" |
| 413 |
|
| 414 |
#. See the pgoff overflow check in do_mmap(). |
| 415 |
#. See the offset check in sys_mmap in arch/x86/kernel/sys_x86_64.c. |
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
#, fuzzy |
| 420 |
#| msgid "" |
| 421 |
#| "The mapping is not backed by any file; its contents are initialized to " |
| 422 |
#| "zero. The I<fd> argument is ignored; however, some implementations " |
| 423 |
#| "require I<fd> to be -1 if B<MAP_ANONYMOUS> (or B<MAP_ANON>) is " |
| 424 |
#| "specified, and portable applications should ensure this. The I<offset> " |
| 425 |
#| "argument should be zero. The use of B<MAP_ANONYMOUS> in conjunction with " |
| 426 |
#| "B<MAP_SHARED> is supported on Linux only since kernel 2.4." |
| 427 |
msgid "" |
| 428 |
"The mapping is not backed by any file; its contents are initialized to " |
| 429 |
"zero. The I<fd> argument is ignored; however, some implementations require " |
| 430 |
"I<fd> to be -1 if B<MAP_ANONYMOUS> (or B<MAP_ANON>) is specified, and " |
| 431 |
"portable applications should ensure this. The I<offset> argument should be " |
| 432 |
"zero. Support for B<MAP_ANONYMOUS> in conjunction with B<MAP_SHARED> was " |
| 433 |
"added in Linux 2.4." |
| 434 |
msgstr "" |
| 435 |
"Отображение не привязанное к файлу; его содержимое инициализируется нулями. " |
| 436 |
"Аргумент I<fd> игнорируется ; однако в некоторых реализациях при указании " |
| 437 |
"B<MAP_ANONYMOUS> (или B<MAP_ANON>) требуется указывать I<fd> равное -1, и " |
| 438 |
"так нужно поступать для переносимости приложений. Аргумент I<offset> должен " |
| 439 |
"быть ноль. Использование B<MAP_ANONYMOUS> вместе с B<MAP_SHARED> " |
| 440 |
"поддерживается в Linux только начиная с ядра версии 2.4." |
| 441 |
|
| 442 |
#. type: TP |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid "B<MAP_DENYWRITE>" |
| 447 |
msgstr "B<MAP_DENYWRITE>" |
| 448 |
|
| 449 |
#. Introduced in 1.1.36, removed in 1.3.24. |
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, fuzzy |
| 454 |
#| msgid "" |
| 455 |
#| "This flag is ignored. (Long ago\\(emLinux 2.0 and earlier\\(emit " |
| 456 |
#| "signaled that attempts to write to the underlying file should fail with " |
| 457 |
#| "B<ETXTBSY>. But this was a source of denial-of-service attacks.)" |
| 458 |
msgid "" |
| 459 |
"This flag is ignored. (Long ago\\[em]Linux 2.0 and earlier\\[em]it signaled " |
| 460 |
"that attempts to write to the underlying file should fail with B<ETXTBSY>. " |
| 461 |
"But this was a source of denial-of-service attacks.)" |
| 462 |
msgstr "" |
| 463 |
"Этот флаг игнорируется (раньше — Linux 2.0 и старее — он обозначал, что " |
| 464 |
"попытки записи в подчинённые файлы должны завершаться с кодом ошибки " |
| 465 |
"B<ETXTBSY>. Но это стало основой для атак типа отказа в обслуживании)." |
| 466 |
|
| 467 |
#. type: TP |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, no-wrap |
| 471 |
msgid "B<MAP_EXECUTABLE>" |
| 472 |
msgstr "B<MAP_EXECUTABLE>" |
| 473 |
|
| 474 |
#. #-#-#-#-# archlinux: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 475 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 476 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 477 |
#. However, that information was not really used anywhere.) |
| 478 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 479 |
#. MAP_DENYWRITE? |
| 480 |
#. type: Plain text |
| 481 |
#. #-#-#-#-# debian-trixie: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 482 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 483 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 484 |
#. However, that information was not really used anywhere.) |
| 485 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 486 |
#. MAP_DENYWRITE? |
| 487 |
#. type: Plain text |
| 488 |
#. #-#-#-#-# debian-unstable: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 489 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 490 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 491 |
#. However, that information was not really used anywhere.) |
| 492 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 493 |
#. MAP_DENYWRITE? |
| 494 |
#. type: Plain text |
| 495 |
#. #-#-#-#-# fedora-44: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 496 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 497 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 498 |
#. However, that information was not really used anywhere.) |
| 499 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 500 |
#. MAP_DENYWRITE? |
| 501 |
#. type: Plain text |
| 502 |
#. #-#-#-#-# fedora-rawhide: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 503 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 504 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 505 |
#. However, that information was not really used anywhere.) |
| 506 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 507 |
#. MAP_DENYWRITE? |
| 508 |
#. type: Plain text |
| 509 |
#. #-#-#-#-# mageia-cauldron: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 510 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 511 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 512 |
#. However, that information was not really used anywhere.) |
| 513 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 514 |
#. MAP_DENYWRITE? |
| 515 |
#. type: Plain text |
| 516 |
#. #-#-#-#-# opensuse-leap-16-1: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 517 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 518 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 519 |
#. However, that information was not really used anywhere.) |
| 520 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 521 |
#. MAP_DENYWRITE? |
| 522 |
#. type: Plain text |
| 523 |
#. #-#-#-#-# opensuse-tumbleweed: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 524 |
#. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. |
| 525 |
#. (Long ago, it signaled that the underlying file is an executable. |
| 526 |
#. However, that information was not really used anywhere.) |
| 527 |
#. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of |
| 528 |
#. MAP_DENYWRITE? |
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "This flag is ignored." |
| 533 |
msgstr "Этот флаг игнорируется." |
| 534 |
|
| 535 |
#. type: TP |
| 536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "B<MAP_FILE>" |
| 540 |
msgstr "B<MAP_FILE>" |
| 541 |
|
| 542 |
#. On some systems, this was required as the opposite of |
| 543 |
#. MAP_ANONYMOUS -- mtk, 1 May 2007 |
| 544 |
#. type: Plain text |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "Compatibility flag. Ignored." |
| 548 |
msgstr "Флаг для совместимости, игнорируется." |
| 549 |
|
| 550 |
#. type: TP |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
#, no-wrap |
| 554 |
msgid "B<MAP_FIXED>" |
| 555 |
msgstr "B<MAP_FIXED>" |
| 556 |
|
| 557 |
#. type: Plain text |
| 558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 559 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 560 |
msgid "" |
| 561 |
"Don't interpret I<addr> as a hint: place the mapping at exactly that " |
| 562 |
"address. I<addr> must be suitably aligned: for most architectures a " |
| 563 |
"multiple of the page size is sufficient; however, some architectures may " |
| 564 |
"impose additional restrictions. If the memory region specified by I<addr> " |
| 565 |
"and I<length> overlaps pages of any existing mapping(s), then the overlapped " |
| 566 |
"part of the existing mapping(s) will be discarded. If the specified address " |
| 567 |
"cannot be used, B<mmap>() will fail." |
| 568 |
msgstr "" |
| 569 |
"Не учитывать I<addr> как подсказку: помещать отображение точно по этому " |
| 570 |
"адресу. Значение I<addr> должно быть выровнено соответствующим образом: на " |
| 571 |
"большинстве архитектур оно должно быть кратно размеру страницы; однако " |
| 572 |
"некоторые архитектуры могут накладывать дополнительные ограничения. Если " |
| 573 |
"область памяти, задаваемая I<addr> и I<length>, перекрывается со страницами " |
| 574 |
"существующих отображений, то перекрывающаяся часть существующих отображений " |
| 575 |
"будет отброшена. Если заданный адрес не может быть использован, то вызов " |
| 576 |
"B<mmap>() завершается ошибкой." |
| 577 |
|
| 578 |
#. type: Plain text |
| 579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 580 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 581 |
#, fuzzy |
| 582 |
#| msgid "" |
| 583 |
#| "Software that aspires to be portable should use the B<MAP_FIXED> flag " |
| 584 |
#| "with care, keeping in mind that the exact layout of a process's memory " |
| 585 |
#| "mappings is allowed to change significantly between kernel versions, C " |
| 586 |
#| "library versions, and operating system releases. I<Carefully read the " |
| 587 |
#| "discussion of this flag in NOTES!>" |
| 588 |
msgid "" |
| 589 |
"Software that aspires to be portable should use the B<MAP_FIXED> flag with " |
| 590 |
"care, keeping in mind that the exact layout of a process's memory mappings " |
| 591 |
"is allowed to change significantly between Linux versions, C library " |
| 592 |
"versions, and operating system releases. I<Carefully read the discussion of " |
| 593 |
"this flag in NOTES!>" |
| 594 |
msgstr "" |
| 595 |
"В переносимом ПО флаг B<MAP_FIXED> нужно использовать осторожно, так как " |
| 596 |
"точная раскладка процесса в памяти, доступная для изменения, может " |
| 597 |
"значительно отличаться в разных версиях ядер, библиотеки С и выпусках " |
| 598 |
"операционной системы. I<Внимательно прочитайте описание этого флага в " |
| 599 |
"ЗАМЕЧАНИЯХ!>" |
| 600 |
|
| 601 |
#. type: TP |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
#, no-wrap |
| 605 |
msgid "B<MAP_FIXED_NOREPLACE> (since Linux 4.17)" |
| 606 |
msgstr "B<MAP_FIXED_NOREPLACE> (начиная с Linux 4.17)" |
| 607 |
|
| 608 |
#. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843 |
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 611 |
#: opensuse-tumbleweed |
| 612 |
#, fuzzy |
| 613 |
#| msgid "" |
| 614 |
#| "This flag provides behavior that is similar to B<MAP_FIXED> with respect " |
| 615 |
#| "to the I<addr> enforcement, but differs in that B<MAP_FIXED_NOREPLACE> " |
| 616 |
#| "never clobbers a preexisting mapped range. If the requested range would " |
| 617 |
#| "collide with an existing mapping, then this call fails with the error " |
| 618 |
#| "B<EEXIST.> This flag can therefore be used as a way to atomically (with " |
| 619 |
#| "respect to other threads) attempt to map an address range: one thread " |
| 620 |
#| "will succeed; all others will report failure." |
| 621 |
msgid "" |
| 622 |
"This flag provides behavior that is similar to B<MAP_FIXED> with respect to " |
| 623 |
"the I<addr> enforcement, but differs in that B<MAP_FIXED_NOREPLACE> never " |
| 624 |
"clobbers a preexisting mapped range. If the requested range would collide " |
| 625 |
"with an existing mapping, then this call fails with the error B<EEXIST.> " |
| 626 |
"This flag can therefore be used as a way to atomically (with respect to " |
| 627 |
"other threads) attempt to map an address range: one thread will succeed; " |
| 628 |
"all others will report failure." |
| 629 |
msgstr "" |
| 630 |
"Данный флаг действует схожим с B<MAP_FIXED> образом при контроле I<addr>, но " |
| 631 |
"в отличие от него, флаг B<MAP_FIXED_NOREPLACE> никогда не разделяет уже " |
| 632 |
"существующий отображённый диапазон. Если запрошенный диапазон пересекается с " |
| 633 |
"существующим отображением, то такой вызов завершается ошибкой B<EEXIST>. " |
| 634 |
"Поэтому данный флаг можно использовать как атомарную (если есть другие нити) " |
| 635 |
"попытку отображения адресного диапазона: для одной нити она закончится " |
| 636 |
"успешно; все остальные получат ошибку." |
| 637 |
|
| 638 |
#. type: Plain text |
| 639 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 640 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 641 |
#, fuzzy |
| 642 |
#| msgid "" |
| 643 |
#| "Note that older kernels which do not recognize the B<MAP_FIXED_NOREPLACE> " |
| 644 |
#| "flag will typically (upon detecting a collision with a preexisting " |
| 645 |
#| "mapping) fall back to a \"non-B<MAP_FIXED>\" type of behavior: they will " |
| 646 |
#| "return an address that is different from the requested address. " |
| 647 |
#| "Therefore, backward-compatible software should check the returned address " |
| 648 |
#| "against the requested address." |
| 649 |
msgid "" |
| 650 |
"Note that older kernels which do not recognize the B<MAP_FIXED_NOREPLACE> " |
| 651 |
"flag will typically (upon detecting a collision with a preexisting mapping) " |
| 652 |
"fall back to a \\[lq]non-B<MAP_FIXED>\\[rq] type of behavior: they will " |
| 653 |
"return an address that is different from the requested address. Therefore, " |
| 654 |
"backward-compatible software should check the returned address against the " |
| 655 |
"requested address." |
| 656 |
msgstr "" |
| 657 |
"Заметим, что старые ядра, не понимающие флаг B<MAP_FIXED_NOREPLACE>, обычно " |
| 658 |
"(при обнаружении пересечения с существующим отображением) переходят к " |
| 659 |
"запасному варианту поведения, «не B<MAP_FIXED>»: они возвращают адрес, " |
| 660 |
"отличающийся от запрашиваемого адреса. Поэтому, ПО с обратной совместимостью " |
| 661 |
"должно сравнивать возращённый адрес с запрашиваемым." |
| 662 |
|
| 663 |
#. type: TP |
| 664 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 665 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
#, no-wrap |
| 667 |
msgid "B<MAP_GROWSDOWN>" |
| 668 |
msgstr "B<MAP_GROWSDOWN>" |
| 669 |
|
| 670 |
#. type: Plain text |
| 671 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 672 |
#, fuzzy |
| 673 |
#| msgid "" |
| 674 |
#| "This flag is used for stacks. It indicates to the kernel virtual memory " |
| 675 |
#| "system that the mapping should extend downward in memory. The return " |
| 676 |
#| "address is one page lower than the memory area that is actually created " |
| 677 |
#| "in the process's virtual address space. Touching an address in the " |
| 678 |
#| "\"guard\" page below the mapping will cause the mapping to grow by a " |
| 679 |
#| "page. This growth can be repeated until the mapping grows to within a " |
| 680 |
#| "page of the high end of the next lower mapping, at which point touching " |
| 681 |
#| "the \"guard\" page will result in a B<SIGSEGV> signal." |
| 682 |
msgid "" |
| 683 |
"This flag is used for stacks. It indicates to the kernel virtual memory " |
| 684 |
"system that the mapping should extend downward in memory. Touching an " |
| 685 |
"address in the \"guard\" page below the mapping will cause the mapping to " |
| 686 |
"grow by a page. This growth can be repeated until the mapping grows to " |
| 687 |
"within a page of the high end of the next lower mapping, at which point " |
| 688 |
"touching the \"guard\" page will result in a B<SIGSEGV> signal." |
| 689 |
msgstr "" |
| 690 |
"Этот флаг используется для стеков. Для виртуальной системы памяти ядра он " |
| 691 |
"обозначает, что отображение должно расширяться вниз по памяти. Возвращаемый " |
| 692 |
"адрес указывает на одну страницу ниже области памяти, которая в " |
| 693 |
"действительности создаётся в виртуальном адресном пространстве процесса. " |
| 694 |
"Обращение к адресу ниже «защитной» страницы отображения приведёт к " |
| 695 |
"расширению отображения на страницу. Увеличение таким способом можно " |
| 696 |
"повторять до тех пор, пока рост отображения страницы верхним концом не " |
| 697 |
"достигнет следующего нижнего отображения, при таком обращении к «защитной» " |
| 698 |
"страницы возникнет сигнал B<SIGSEGV>." |
| 699 |
|
| 700 |
#. type: TP |
| 701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 703 |
#, no-wrap |
| 704 |
msgid "B<MAP_HUGETLB> (since Linux 2.6.32)" |
| 705 |
msgstr "B<MAP_HUGETLB> (начиная с Linux 2.6.32)" |
| 706 |
|
| 707 |
#. type: Plain text |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
msgid "" |
| 711 |
"Allocate the mapping using \"huge\" pages. See the Linux kernel source file " |
| 712 |
"I<Documentation/admin-guide/mm/hugetlbpage.rst> for further information, as " |
| 713 |
"well as NOTES, below." |
| 714 |
msgstr "" |
| 715 |
"Выделять отображение используя «огромные страницы». Дополнительную " |
| 716 |
"информацию смотрите в файле исходного кода ядра Linux I<Documentation/admin-" |
| 717 |
"guide/mm/hugetlbpage.rst>, а также следующее дополнение." |
| 718 |
|
| 719 |
#. type: TP |
| 720 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 721 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 722 |
#, no-wrap |
| 723 |
msgid "B<MAP_HUGE_2MB>" |
| 724 |
msgstr "B<MAP_HUGE_2MB>" |
| 725 |
|
| 726 |
#. type: TQ |
| 727 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 728 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 729 |
#, no-wrap |
| 730 |
msgid "B<MAP_HUGE_1GB> (since Linux 3.8)" |
| 731 |
msgstr "B<MAP_HUGE_1GB> (начиная с Linux 3.8)" |
| 732 |
|
| 733 |
#. See https://lwn.net/Articles/533499/ |
| 734 |
#. type: Plain text |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
msgid "" |
| 738 |
"Used in conjunction with B<MAP_HUGETLB> to select alternative hugetlb page " |
| 739 |
"sizes (respectively, 2\\ MB and 1\\ GB) on systems that support multiple " |
| 740 |
"hugetlb page sizes." |
| 741 |
msgstr "" |
| 742 |
"Используется как дополнение к B<MAP_HUGETLB> для выбора размера страницы " |
| 743 |
"hugetlb (2\\ МБ и 1\\ ГБ, соответственно), сработает только в системе " |
| 744 |
"которая поддерживает различные размеры больших страниц." |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"More generally, the desired huge page size can be configured by encoding the " |
| 751 |
"base-2 logarithm of the desired page size in the six bits at the offset " |
| 752 |
"B<MAP_HUGE_SHIFT>. (A value of zero in this bit field provides the default " |
| 753 |
"huge page size; the default huge page size can be discovered via the " |
| 754 |
"I<Hugepagesize> field exposed by I</proc/meminfo>.) Thus, the above two " |
| 755 |
"constants are defined as:" |
| 756 |
msgstr "" |
| 757 |
"Вообще, желаемый размер огромной страницы можно настроить закодировав " |
| 758 |
"логарифм 2 от желаемого размера страницы в шести битах со смещением " |
| 759 |
"B<MAP_HUGE_SHIFT> (значение нуля в этом битовом поле означает выбор значения " |
| 760 |
"огромной страницы по умолчанию; это значение можно найти в поле " |
| 761 |
"I<Hugepagesize> просмотрев файл I</proc/meminfo>). Таким образом две " |
| 762 |
"показанные выше константы определены как:" |
| 763 |
|
| 764 |
#. type: Plain text |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
#, no-wrap |
| 768 |
msgid "" |
| 769 |
"#define MAP_HUGE_2MB (21 E<lt>E<lt> MAP_HUGE_SHIFT)\n" |
| 770 |
"#define MAP_HUGE_1GB (30 E<lt>E<lt> MAP_HUGE_SHIFT)\n" |
| 771 |
msgstr "" |
| 772 |
"#define MAP_HUGE_2MB (21 E<lt>E<lt> MAP_HUGE_SHIFT)\n" |
| 773 |
"#define MAP_HUGE_1GB (30 E<lt>E<lt> MAP_HUGE_SHIFT)\n" |
| 774 |
|
| 775 |
#. type: Plain text |
| 776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 777 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 778 |
msgid "" |
| 779 |
"The range of huge page sizes that are supported by the system can be " |
| 780 |
"discovered by listing the subdirectories in I</sys/kernel/mm/hugepages>." |
| 781 |
msgstr "" |
| 782 |
"Рабочий диапазон страниц огромного размера может быть обнаружен, перечислив " |
| 783 |
"подкаталоги в I</sys/kernel/mm/hugepages>." |
| 784 |
|
| 785 |
#. type: TP |
| 786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 787 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 788 |
#, no-wrap |
| 789 |
msgid "B<MAP_LOCKED> (since Linux 2.5.37)" |
| 790 |
msgstr "B<MAP_LOCKED> (начиная с Linux 2.5.37)" |
| 791 |
|
| 792 |
#. If set, the mapped pages will not be swapped out. |
| 793 |
#. type: Plain text |
| 794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 795 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 796 |
msgid "" |
| 797 |
"Mark the mapped region to be locked in the same way as B<mlock>(2). This " |
| 798 |
"implementation will try to populate (prefault) the whole range but the " |
| 799 |
"B<mmap>() call doesn't fail with B<ENOMEM> if this fails. Therefore major " |
| 800 |
"faults might happen later on. So the semantic is not as strong as " |
| 801 |
"B<mlock>(2). One should use B<mmap>() plus B<mlock>(2) when major faults " |
| 802 |
"are not acceptable after the initialization of the mapping. The " |
| 803 |
"B<MAP_LOCKED> flag is ignored in older kernels." |
| 804 |
msgstr "" |
| 805 |
"Пометить отображаемую область как заблокированную таким же образом как с " |
| 806 |
"помощью B<mlock>(2). Данная реализация будет пытаться заполнить (предотказ) " |
| 807 |
"область полностью, но вызов B<mmap>() не завершится ошибкой B<ENOMEM>, если " |
| 808 |
"это не удастся сделать. Поэтому действительные отказы могут произойти " |
| 809 |
"позднее. Такой алгоритм не совпадает с B<mlock>(2). Нужно использовать " |
| 810 |
"B<mmap>() плюс B<mlock>(2), если действительные отказы недопустимы после " |
| 811 |
"инициализации отображения. В старых ядрах флаг B<MAP_LOCKED> игнорируется." |
| 812 |
|
| 813 |
#. type: TP |
| 814 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 815 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 816 |
#, no-wrap |
| 817 |
msgid "B<MAP_NONBLOCK> (since Linux 2.5.46)" |
| 818 |
msgstr "B<MAP_NONBLOCK> (начиная с Linux 2.5.46)" |
| 819 |
|
| 820 |
#. commit 54cb8821de07f2ffcd28c380ce9b93d5784b40d7 |
| 821 |
#. type: Plain text |
| 822 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 823 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 824 |
msgid "" |
| 825 |
"This flag is meaningful only in conjunction with B<MAP_POPULATE>. Don't " |
| 826 |
"perform read-ahead: create page tables entries only for pages that are " |
| 827 |
"already present in RAM. Since Linux 2.6.23, this flag causes " |
| 828 |
"B<MAP_POPULATE> to do nothing. One day, the combination of B<MAP_POPULATE> " |
| 829 |
"and B<MAP_NONBLOCK> may be reimplemented." |
| 830 |
msgstr "" |
| 831 |
"Данный флаг имеет смысл только вместе с B<MAP_POPULATE>. Не выполнять " |
| 832 |
"упреждающее чтение: только создать записи в таблице страниц для страниц, " |
| 833 |
"которые уже есть ОЗУ. Начиная с Linux 2.6.23 этот флаг приводит к тому, что " |
| 834 |
"выполнение работы B<MAP_POPULATE> отменяется. Когда-нибудь комбинация " |
| 835 |
"B<MAP_POPULATE> и B<MAP_NONBLOCK> может быть реализована заново." |
| 836 |
|
| 837 |
#. type: TP |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
#, no-wrap |
| 841 |
msgid "B<MAP_NORESERVE>" |
| 842 |
msgstr "B<MAP_NORESERVE>" |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 846 |
#: opensuse-tumbleweed |
| 847 |
#, fuzzy |
| 848 |
#| msgid "" |
| 849 |
#| "Do not reserve swap space for this mapping. When swap space is reserved, " |
| 850 |
#| "one has the guarantee that it is possible to modify the mapping. When " |
| 851 |
#| "swap space is not reserved one might get B<SIGSEGV> upon a write if no " |
| 852 |
#| "physical memory is available. See also the discussion of the file I</" |
| 853 |
#| "proc/sys/vm/overcommit_memory> in B<proc>(5). In kernels before 2.6, " |
| 854 |
#| "this flag had effect only for private writable mappings." |
| 855 |
msgid "" |
| 856 |
"Do not reserve swap space for this mapping. When swap space is reserved, " |
| 857 |
"one has the guarantee that it is possible to modify the mapping. When swap " |
| 858 |
"space is not reserved one might get B<SIGSEGV> upon a write if no physical " |
| 859 |
"memory is available. See also the discussion of the file I</proc/sys/vm/" |
| 860 |
"overcommit_memory> in B<proc_sys_vm>(5). Before Linux 2.6, this flag had " |
| 861 |
"effect only for private writable mappings." |
| 862 |
msgstr "" |
| 863 |
"Не резервировать страницы пространства подкачки для этого отображения. Если " |
| 864 |
"пространство подкачки резервируется, то для отображения гарантируется " |
| 865 |
"возможность изменения. Если оно не резервируется, то можно получить сигнал " |
| 866 |
"B<SIGSEGV> при записи, если физическая память будет недоступна. Смотрите " |
| 867 |
"также описание файла I</proc/sys/vm/overcommit_memory> в B<proc>(5). В ядрах " |
| 868 |
"до 2.6 этот флаг действовал только для частных доступных на запись " |
| 869 |
"отображений." |
| 870 |
|
| 871 |
#. type: TP |
| 872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 874 |
#, no-wrap |
| 875 |
msgid "B<MAP_POPULATE> (since Linux 2.5.46)" |
| 876 |
msgstr "B<MAP_POPULATE> (начиная с Linux 2.5.46)" |
| 877 |
|
| 878 |
#. type: Plain text |
| 879 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 880 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 881 |
#, fuzzy |
| 882 |
#| msgid "" |
| 883 |
#| "Populate (prefault) page tables for a mapping. For a file mapping, this " |
| 884 |
#| "causes read-ahead on the file. This will help to reduce blocking on page " |
| 885 |
#| "faults later. B<MAP_POPULATE> is supported for private mappings only " |
| 886 |
#| "since Linux 2.6.23." |
| 887 |
msgid "" |
| 888 |
"Populate (prefault) page tables for a mapping. For a file mapping, this " |
| 889 |
"causes read-ahead on the file. This will help to reduce blocking on page " |
| 890 |
"faults later. The B<mmap>() call doesn't fail if the mapping cannot be " |
| 891 |
"populated (for example, due to limitations on the number of mapped huge " |
| 892 |
"pages when using B<MAP_HUGETLB>). Support for B<MAP_POPULATE> in " |
| 893 |
"conjunction with private mappings was added in Linux 2.6.23." |
| 894 |
msgstr "" |
| 895 |
"Наполнить (до возникновения страничного прерывания, prefault) страничные " |
| 896 |
"таблицы отображения. Для файлового отображения это приводит к опережающему " |
| 897 |
"чтению из файла. В дальнейшем это помогает сократить блокировку по отказу " |
| 898 |
"страниц. Флаг B<MAP_POPULATE> поддерживается для закрытых отображений только " |
| 899 |
"начиная с Linux 2.6.23." |
| 900 |
|
| 901 |
#. type: TP |
| 902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 903 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 904 |
#, no-wrap |
| 905 |
msgid "B<MAP_STACK> (since Linux 2.6.27)" |
| 906 |
msgstr "B<MAP_STACK> (начиная с Linux 2.6.27)" |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 910 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 911 |
msgid "" |
| 912 |
"Allocate the mapping at an address suitable for a process or thread stack." |
| 913 |
msgstr "" |
| 914 |
|
| 915 |
#. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08 |
| 916 |
#. commit cd98a04a59e2f94fa64d5bf1e26498d27427d5e7 |
| 917 |
#. http://thread.gmane.org/gmane.linux.kernel/720412 |
| 918 |
#. "pthread_create() slow for many threads; also time to revisit 64b |
| 919 |
#. context switch optimization?" |
| 920 |
#. type: Plain text |
| 921 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 922 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 923 |
msgid "" |
| 924 |
"This flag is currently a no-op on Linux. However, by employing this flag, " |
| 925 |
"applications can ensure that they transparently obtain support if the flag " |
| 926 |
"is implemented in the future. Thus, it is used in the glibc threading " |
| 927 |
"implementation to allow for the fact that some architectures may (later) " |
| 928 |
"require special treatment for stack allocations. A further reason to employ " |
| 929 |
"this flag is portability: B<MAP_STACK> exists (and has an effect) on some " |
| 930 |
"other systems (e.g., some of the BSDs)." |
| 931 |
msgstr "" |
| 932 |
|
| 933 |
#. type: TP |
| 934 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 935 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 936 |
#, no-wrap |
| 937 |
msgid "B<MAP_SYNC> (since Linux 4.15)" |
| 938 |
msgstr "B<MAP_SYNC> (начиная с Linux 4.15)" |
| 939 |
|
| 940 |
#. type: Plain text |
| 941 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 942 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 943 |
msgid "" |
| 944 |
"This flag is available only with the B<MAP_SHARED_VALIDATE> mapping type; " |
| 945 |
"mappings of type B<MAP_SHARED> will silently ignore this flag. This flag is " |
| 946 |
"supported only for files supporting DAX (direct mapping of persistent " |
| 947 |
"memory). For other files, creating a mapping with this flag results in an " |
| 948 |
"B<EOPNOTSUPP> error." |
| 949 |
msgstr "" |
| 950 |
"Данный флаг доступен только с типом отображения B<MAP_SHARED_VALIDATE>; " |
| 951 |
"отображения с типом B<MAP_SHARED> будут просто игнорировать этот флаг. Этот " |
| 952 |
"флаг поддерживается только для файлов поддерживаемых DAX (прямое отображение " |
| 953 |
"в постоянную память). Для остальных файлов, создание отображения с этим " |
| 954 |
"флагом приводит к возврату ошибки B<EOPNOTSUPP>." |
| 955 |
|
| 956 |
#. type: Plain text |
| 957 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 958 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 959 |
msgid "" |
| 960 |
"Shared file mappings with this flag provide the guarantee that while some " |
| 961 |
"memory is mapped writable in the address space of the process, it will be " |
| 962 |
"visible in the same file at the same offset even after the system crashes or " |
| 963 |
"is rebooted. In conjunction with the use of appropriate CPU instructions, " |
| 964 |
"this provides users of such mappings with a more efficient way of making " |
| 965 |
"data modifications persistent." |
| 966 |
msgstr "" |
| 967 |
"Общие файловые отображения с этим флагом представляют гарантию того, что " |
| 968 |
"пока есть часть памяти отображённая для записи в адресном пространстве " |
| 969 |
"процесса, она будет видима в том же файле по тому же смещению даже после " |
| 970 |
"падения или перезагрузки системы. Вместе с использованием соответствующих " |
| 971 |
"инструкций ЦП это позволяет пользователям таких отображений эффективней " |
| 972 |
"выполнять устойчивые изменения данных." |
| 973 |
|
| 974 |
#. type: TP |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
#, no-wrap |
| 978 |
msgid "B<MAP_UNINITIALIZED> (since Linux 2.6.33)" |
| 979 |
msgstr "B<MAP_UNINITIALIZED> (начиная с Linux 2.6.33)" |
| 980 |
|
| 981 |
#. type: Plain text |
| 982 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 983 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 984 |
msgid "" |
| 985 |
"Don't clear anonymous pages. This flag is intended to improve performance " |
| 986 |
"on embedded devices. This flag is honored only if the kernel was configured " |
| 987 |
"with the B<CONFIG_MMAP_ALLOW_UNINITIALIZED> option. Because of the security " |
| 988 |
"implications, that option is normally enabled only on embedded devices " |
| 989 |
"(i.e., devices where one has complete control of the contents of user " |
| 990 |
"memory)." |
| 991 |
msgstr "" |
| 992 |
"Не очищать анонимные страницы. Этот флаг предназначен для повышения " |
| 993 |
"производительности на встраиваемых устройствах. Он учитывается, только если " |
| 994 |
"ядро было собрано с поддержкой параметра B<CONFIG_MMAP_ALLOW_UNINITIALIZED>. " |
| 995 |
"Так как этот параметр может привести к нарушению безопасности, обычно он " |
| 996 |
"устанавливается только на встраиваемых устройствах (то есть, устройствах, " |
| 997 |
"где только один человек имеет полный контроль над содержимым " |
| 998 |
"пользовательской памяти)." |
| 999 |
|
| 1000 |
#. FIXME . for later review when Issue 8 is one day released... |
| 1001 |
#. POSIX may add MAP_ANON in the future |
| 1002 |
#. http://austingroupbugs.net/tag_view_page.php?tag_id=8 |
| 1003 |
#. http://austingroupbugs.net/view.php?id=850 |
| 1004 |
#. type: Plain text |
| 1005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1006 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1007 |
msgid "" |
| 1008 |
"Of the above flags, only B<MAP_FIXED> is specified in POSIX.1-2001 and " |
| 1009 |
"POSIX.1-2008. However, most systems also support B<MAP_ANONYMOUS> (or its " |
| 1010 |
"synonym B<MAP_ANON>)." |
| 1011 |
msgstr "" |
| 1012 |
"Из флагов, перечисленных выше, в POSIX.1-2001 и POSIX.1-2008 определён " |
| 1013 |
"только B<MAP_FIXED>. Однако, большинство систем также поддерживают " |
| 1014 |
"B<MAP_ANONYMOUS> (или его синоним B<MAP_ANON>)." |
| 1015 |
|
| 1016 |
#. type: SS |
| 1017 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1018 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1019 |
#, no-wrap |
| 1020 |
msgid "munmap()" |
| 1021 |
msgstr "munmap()" |
| 1022 |
|
| 1023 |
#. type: Plain text |
| 1024 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1025 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1026 |
msgid "" |
| 1027 |
"The B<munmap>() system call deletes the mappings for the specified address " |
| 1028 |
"range, and causes further references to addresses within the range to " |
| 1029 |
"generate invalid memory references. The region is also automatically " |
| 1030 |
"unmapped when the process is terminated. On the other hand, closing the " |
| 1031 |
"file descriptor does not unmap the region." |
| 1032 |
msgstr "" |
| 1033 |
"Системный вызов B<munmap>() удаляет отображение для указанного адресного " |
| 1034 |
"диапазона и это приводит к тому, что дальнейшее обращение по адресам внутри " |
| 1035 |
"диапазона приводит к генерации неправильных ссылок на память. Также для " |
| 1036 |
"диапазона отображение автоматически удаляется при завершении работы " |
| 1037 |
"процесса. С другой стороны, закрытие файлового дескриптора не приводит к " |
| 1038 |
"удалению отображения диапазона." |
| 1039 |
|
| 1040 |
#. type: Plain text |
| 1041 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1042 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1043 |
msgid "" |
| 1044 |
"The address I<addr> must be a multiple of the page size (but I<length> need " |
| 1045 |
"not be). All pages containing a part of the indicated range are unmapped, " |
| 1046 |
"and subsequent references to these pages will generate B<SIGSEGV>. It is " |
| 1047 |
"not an error if the indicated range does not contain any mapped pages." |
| 1048 |
msgstr "" |
| 1049 |
"Адрес I<addr> должен быть кратен размеру страницы (но значения I<length> это " |
| 1050 |
"не касается). Все страницы, содержащие часть указанного диапазона, удаляются " |
| 1051 |
"из отображения и последующие ссылки на эти страницы приводят к генерации " |
| 1052 |
"сигнала B<SIGSEGV>. Это не ошибка, если указанный диапазон не содержит каких-" |
| 1053 |
"либо отображённых страниц." |
| 1054 |
|
| 1055 |
#. type: SH |
| 1056 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1057 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1058 |
#, no-wrap |
| 1059 |
msgid "RETURN VALUE" |
| 1060 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 1061 |
|
| 1062 |
#. type: Plain text |
| 1063 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1064 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1065 |
#, fuzzy |
| 1066 |
#| msgid "" |
| 1067 |
#| "On success, B<mmap>() returns a pointer to the mapped area. On error, " |
| 1068 |
#| "the value B<MAP_FAILED> (that is, I<(void\\ *)\\ -1>) is returned, and " |
| 1069 |
#| "I<errno> is set to indicate the cause of the error." |
| 1070 |
msgid "" |
| 1071 |
"On success, B<mmap>() returns a pointer to the mapped area. On error, the " |
| 1072 |
"value B<MAP_FAILED> (that is, I<(void\\ *)\\ -1>) is returned, and I<errno> " |
| 1073 |
"is set to indicate the error." |
| 1074 |
msgstr "" |
| 1075 |
"При успешном выполнении B<mmap>() возвращается указатель на отображённую " |
| 1076 |
"область. При ошибке возвращается значение B<MAP_FAILED> (а именно, I<(void\\ " |
| 1077 |
"*)\\ -1>) и I<errno> устанавливается в соответствующее значение. " |
| 1078 |
|
| 1079 |
#. type: Plain text |
| 1080 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1081 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1082 |
#, fuzzy |
| 1083 |
#| msgid "" |
| 1084 |
#| "On success, B<munmap>() returns 0. On failure, it returns -1, and " |
| 1085 |
#| "I<errno> is set to indicate the cause of the error (probably to " |
| 1086 |
#| "B<EINVAL>)." |
| 1087 |
msgid "" |
| 1088 |
"On success, B<munmap>() returns 0. On failure, it returns -1, and I<errno> " |
| 1089 |
"is set to indicate the error (probably to B<EINVAL>)." |
| 1090 |
msgstr "" |
| 1091 |
"При успешном выполнении B<munmap>() возвращает 0. При сбои возвращается -1, " |
| 1092 |
"и код ошибки кладётся в I<errno> (скорее всего B<EINVAL>)." |
| 1093 |
|
| 1094 |
#. type: SH |
| 1095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1096 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1097 |
#, no-wrap |
| 1098 |
msgid "ERRORS" |
| 1099 |
msgstr "ОШИБКИ" |
| 1100 |
|
| 1101 |
#. type: TP |
| 1102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1104 |
#, no-wrap |
| 1105 |
msgid "B<EACCES>" |
| 1106 |
msgstr "B<EACCES>" |
| 1107 |
|
| 1108 |
#. type: Plain text |
| 1109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1111 |
msgid "" |
| 1112 |
"A file descriptor refers to a non-regular file. Or a file mapping was " |
| 1113 |
"requested, but I<fd> is not open for reading. Or B<MAP_SHARED> was " |
| 1114 |
"requested and B<PROT_WRITE> is set, but I<fd> is not open in read/write " |
| 1115 |
"(B<O_RDWR>) mode. Or B<PROT_WRITE> is set, but the file is append-only." |
| 1116 |
msgstr "" |
| 1117 |
"Файловый дескриптор указывает на не обычный файл. Или было запрошено " |
| 1118 |
"отображение файла (mapping), но I<fd> не открыт на чтение. Или был указан " |
| 1119 |
"флаг B<MAP_SHARED> и установлен бит B<PROT_WRITE>, но I<fd> не открыт в " |
| 1120 |
"режиме чтения/записи (B<O_RDWR>). Или был указан флаг B<PROT_WRITE>, но файл " |
| 1121 |
"доступен только для дополнения." |
| 1122 |
|
| 1123 |
#. type: TP |
| 1124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1126 |
#, no-wrap |
| 1127 |
msgid "B<EAGAIN>" |
| 1128 |
msgstr "B<EAGAIN>" |
| 1129 |
|
| 1130 |
#. type: Plain text |
| 1131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1133 |
msgid "" |
| 1134 |
"The file has been locked, or too much memory has been locked (see " |
| 1135 |
"B<setrlimit>(2))." |
| 1136 |
msgstr "" |
| 1137 |
"Файл заблокирован, или блокируется слишком много памяти (смотрите " |
| 1138 |
"B<setrlimit>(2))." |
| 1139 |
|
| 1140 |
#. type: TP |
| 1141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1143 |
#, no-wrap |
| 1144 |
msgid "B<EBADF>" |
| 1145 |
msgstr "B<EBADF>" |
| 1146 |
|
| 1147 |
#. type: Plain text |
| 1148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1150 |
msgid "" |
| 1151 |
"I<fd> is not a valid file descriptor (and B<MAP_ANONYMOUS> was not set)." |
| 1152 |
msgstr "" |
| 1153 |
"Значение I<fd> не является правильным файловым дескриптором (и " |
| 1154 |
"B<MAP_ANONYMOUS> не установлен)." |
| 1155 |
|
| 1156 |
#. type: TP |
| 1157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1159 |
#, no-wrap |
| 1160 |
msgid "B<EEXIST>" |
| 1161 |
msgstr "B<EEXIST>" |
| 1162 |
|
| 1163 |
#. type: Plain text |
| 1164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1166 |
msgid "" |
| 1167 |
"B<MAP_FIXED_NOREPLACE> was specified in I<flags>, and the range covered by " |
| 1168 |
"I<addr> and I<length> clashes with an existing mapping." |
| 1169 |
msgstr "" |
| 1170 |
"В I<flags> указан B<MAP_FIXED_NOREPLACE> и диапазон, покрываемый I<addr> и " |
| 1171 |
"I<length>, пересекается с существующим отображением." |
| 1172 |
|
| 1173 |
#. type: TP |
| 1174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1176 |
#, no-wrap |
| 1177 |
msgid "B<EINVAL>" |
| 1178 |
msgstr "B<EINVAL>" |
| 1179 |
|
| 1180 |
#. type: Plain text |
| 1181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1183 |
msgid "" |
| 1184 |
"We don't like I<addr>, I<length>, or I<offset> (e.g., they are too large, or " |
| 1185 |
"not aligned on a page boundary)." |
| 1186 |
msgstr "" |
| 1187 |
"Неправильное значение I<addr>, I<length> или I<offset> (например, оно либо " |
| 1188 |
"слишком велико, либо не выровнено по границе страницы)." |
| 1189 |
|
| 1190 |
#. type: Plain text |
| 1191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1193 |
msgid "(since Linux 2.6.12) I<length> was 0." |
| 1194 |
msgstr "(начиная с Linux 2.6.12) Значение I<length> равно 0." |
| 1195 |
|
| 1196 |
#. type: Plain text |
| 1197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1199 |
msgid "" |
| 1200 |
"I<flags> contained none of B<MAP_PRIVATE>, B<MAP_SHARED>, or " |
| 1201 |
"B<MAP_SHARED_VALIDATE>." |
| 1202 |
msgstr "" |
| 1203 |
"В I<flags> отсутствует B<MAP_PRIVATE>, B<MAP_SHARED> или " |
| 1204 |
"B<MAP_SHARED_VALIDATE>." |
| 1205 |
|
| 1206 |
#. type: TP |
| 1207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1209 |
#, no-wrap |
| 1210 |
msgid "B<ENFILE>" |
| 1211 |
msgstr "B<ENFILE>" |
| 1212 |
|
| 1213 |
#. This is for shared anonymous segments |
| 1214 |
#. [2.6.7] shmem_zero_setup()-->shmem_file_setup()-->get_empty_filp() |
| 1215 |
#. .TP |
| 1216 |
#. .B ENOEXEC |
| 1217 |
#. A file could not be mapped for reading. |
| 1218 |
#. type: Plain text |
| 1219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1221 |
msgid "" |
| 1222 |
"The system-wide limit on the total number of open files has been reached." |
| 1223 |
msgstr "Достигнуто максимальное количество открытых файлов в системе." |
| 1224 |
|
| 1225 |
#. type: TP |
| 1226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1228 |
#, no-wrap |
| 1229 |
msgid "B<ENODEV>" |
| 1230 |
msgstr "B<ENODEV>" |
| 1231 |
|
| 1232 |
#. type: Plain text |
| 1233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1235 |
msgid "" |
| 1236 |
"The underlying filesystem of the specified file does not support memory " |
| 1237 |
"mapping." |
| 1238 |
msgstr "" |
| 1239 |
"Используемая файловая система для указанного файла не поддерживает " |
| 1240 |
"отображение памяти." |
| 1241 |
|
| 1242 |
#. type: TP |
| 1243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1245 |
#, no-wrap |
| 1246 |
msgid "B<ENOMEM>" |
| 1247 |
msgstr "B<ENOMEM>" |
| 1248 |
|
| 1249 |
#. type: Plain text |
| 1250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1252 |
msgid "No memory is available." |
| 1253 |
msgstr "Больше нет доступной памяти." |
| 1254 |
|
| 1255 |
#. type: Plain text |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
msgid "" |
| 1259 |
"The process's maximum number of mappings would have been exceeded. This " |
| 1260 |
"error can also occur for B<munmap>(), when unmapping a region in the middle " |
| 1261 |
"of an existing mapping, since this results in two smaller mappings on either " |
| 1262 |
"side of the region being unmapped." |
| 1263 |
msgstr "" |
| 1264 |
"Процесс превысил бы ограничение на максимальное количество отображений. Эта " |
| 1265 |
"ошибка также может возникнуть в B<munmap>() при удалении отображения области " |
| 1266 |
"в середине существующего отображения, так как при этом выполняется удаление " |
| 1267 |
"отображения двух отображений меньшего размера на любом конце области." |
| 1268 |
|
| 1269 |
#. type: Plain text |
| 1270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1272 |
msgid "" |
| 1273 |
"(since Linux 4.7) The process's B<RLIMIT_DATA> limit, described in " |
| 1274 |
"B<getrlimit>(2), would have been exceeded." |
| 1275 |
msgstr "" |
| 1276 |
"(начиная с Linux 4.7) Было бы превышено ограничение процесса B<RLIMIT_DATA>, " |
| 1277 |
"описанное в B<getrlimit>(2)." |
| 1278 |
|
| 1279 |
#. type: Plain text |
| 1280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1282 |
msgid "" |
| 1283 |
"We don't like I<addr>, because it exceeds the virtual address space of the " |
| 1284 |
"CPU." |
| 1285 |
msgstr "" |
| 1286 |
|
| 1287 |
#. type: TP |
| 1288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1290 |
#, no-wrap |
| 1291 |
msgid "B<EOVERFLOW>" |
| 1292 |
msgstr "B<EOVERFLOW>" |
| 1293 |
|
| 1294 |
#. type: Plain text |
| 1295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1297 |
msgid "" |
| 1298 |
"On 32-bit architecture together with the large file extension (i.e., using " |
| 1299 |
"64-bit I<off_t>): the number of pages used for I<length> plus number of " |
| 1300 |
"pages used for I<offset> would overflow I<unsigned long> (32 bits)." |
| 1301 |
msgstr "" |
| 1302 |
"На 32-битной архитектуре вместе с расширением для больших файлов (т.е., " |
| 1303 |
"используется 64-битный I<off_t>): количество страниц, используемых для " |
| 1304 |
"I<length> плюс количество страниц, используемых для I<offset> приводит к " |
| 1305 |
"переполнению I<unsigned long> (32 бита)." |
| 1306 |
|
| 1307 |
#. type: TP |
| 1308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1310 |
#, no-wrap |
| 1311 |
msgid "B<EPERM>" |
| 1312 |
msgstr "B<EPERM>" |
| 1313 |
|
| 1314 |
#. (Since Linux 2.4.25 / Linux 2.6.0.) |
| 1315 |
#. type: Plain text |
| 1316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1318 |
msgid "" |
| 1319 |
"The I<prot> argument asks for B<PROT_EXEC> but the mapped area belongs to a " |
| 1320 |
"file on a filesystem that was mounted no-exec." |
| 1321 |
msgstr "" |
| 1322 |
"Аргументом I<prot> запрашивается B<PROT_EXEC>, но отображённая область " |
| 1323 |
"принадлежит файлу на файловой системе, которая смонтирована с флагом no-exec." |
| 1324 |
|
| 1325 |
#. type: Plain text |
| 1326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1328 |
msgid "The operation was prevented by a file seal; see B<fcntl>(2)." |
| 1329 |
msgstr "" |
| 1330 |
"Выполнение операции предотвращено опечатыванием (file seal); смотрите " |
| 1331 |
"B<fcntl>(2)." |
| 1332 |
|
| 1333 |
#. type: Plain text |
| 1334 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1335 |
#: opensuse-tumbleweed |
| 1336 |
msgid "" |
| 1337 |
"The B<MAP_HUGETLB> flag was specified, but the caller was not privileged " |
| 1338 |
"(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the " |
| 1339 |
"I<hugetlb_shm_group> group; see the description of I</proc/sys/vm/" |
| 1340 |
"hugetlb_shm_group> in B<proc_sys_vm>(5)." |
| 1341 |
msgstr "" |
| 1342 |
|
| 1343 |
#. type: TP |
| 1344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1346 |
#, no-wrap |
| 1347 |
msgid "B<ETXTBSY>" |
| 1348 |
msgstr "B<ETXTBSY>" |
| 1349 |
|
| 1350 |
#. type: Plain text |
| 1351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1353 |
msgid "" |
| 1354 |
"B<MAP_DENYWRITE> was set but the object specified by I<fd> is open for " |
| 1355 |
"writing." |
| 1356 |
msgstr "" |
| 1357 |
"Был задан флаг B<MAP_DENYWRITE>, но объект, указываемый I<fd>, открыт на " |
| 1358 |
"запись." |
| 1359 |
|
| 1360 |
#. type: Plain text |
| 1361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1363 |
msgid "Use of a mapped region can result in these signals:" |
| 1364 |
msgstr "" |
| 1365 |
"При использовании отображаемой области памяти могут возникать следующие " |
| 1366 |
"сигналы:" |
| 1367 |
|
| 1368 |
#. type: TP |
| 1369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1371 |
#, no-wrap |
| 1372 |
msgid "B<SIGSEGV>" |
| 1373 |
msgstr "B<SIGSEGV>" |
| 1374 |
|
| 1375 |
#. type: Plain text |
| 1376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1378 |
msgid "Attempted write into a region mapped as read-only." |
| 1379 |
msgstr "Попытка записи в область, отображённую только для чтения." |
| 1380 |
|
| 1381 |
#. type: TP |
| 1382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1384 |
#, no-wrap |
| 1385 |
msgid "B<SIGBUS>" |
| 1386 |
msgstr "B<SIGBUS>" |
| 1387 |
|
| 1388 |
#. type: Plain text |
| 1389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1391 |
msgid "" |
| 1392 |
"Attempted access to a page of the buffer that lies beyond the end of the " |
| 1393 |
"mapped file. For an explanation of the treatment of the bytes in the page " |
| 1394 |
"that corresponds to the end of a mapped file that is not a multiple of the " |
| 1395 |
"page size, see NOTES." |
| 1396 |
msgstr "" |
| 1397 |
|
| 1398 |
#. type: SH |
| 1399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1401 |
#, no-wrap |
| 1402 |
msgid "ATTRIBUTES" |
| 1403 |
msgstr "АТРИБУТЫ" |
| 1404 |
|
| 1405 |
#. type: Plain text |
| 1406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1408 |
msgid "" |
| 1409 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 1410 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 1411 |
|
| 1412 |
#. type: tbl table |
| 1413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1415 |
#, no-wrap |
| 1416 |
msgid "Interface" |
| 1417 |
msgstr "Интерфейс" |
| 1418 |
|
| 1419 |
#. type: tbl table |
| 1420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1422 |
#, no-wrap |
| 1423 |
msgid "Attribute" |
| 1424 |
msgstr "Атрибут" |
| 1425 |
|
| 1426 |
#. type: tbl table |
| 1427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1429 |
#, no-wrap |
| 1430 |
msgid "Value" |
| 1431 |
msgstr "Значение" |
| 1432 |
|
| 1433 |
#. type: tbl table |
| 1434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1436 |
#, no-wrap |
| 1437 |
msgid ".na\n" |
| 1438 |
msgstr ".na\n" |
| 1439 |
|
| 1440 |
#. type: tbl table |
| 1441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1443 |
#, no-wrap |
| 1444 |
msgid ".nh\n" |
| 1445 |
msgstr ".nh\n" |
| 1446 |
|
| 1447 |
#. type: tbl table |
| 1448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1450 |
#, no-wrap |
| 1451 |
msgid "" |
| 1452 |
"B<mmap>(),\n" |
| 1453 |
"B<munmap>()" |
| 1454 |
msgstr "" |
| 1455 |
"B<mmap>(),\n" |
| 1456 |
"B<munmap>()" |
| 1457 |
|
| 1458 |
#. type: tbl table |
| 1459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1461 |
#, no-wrap |
| 1462 |
msgid "Thread safety" |
| 1463 |
msgstr "Безвредность в нитях" |
| 1464 |
|
| 1465 |
#. type: tbl table |
| 1466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1468 |
#, no-wrap |
| 1469 |
msgid "MT-Safe" |
| 1470 |
msgstr "MT-Safe" |
| 1471 |
|
| 1472 |
#. type: SH |
| 1473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1475 |
#, no-wrap |
| 1476 |
msgid "VERSIONS" |
| 1477 |
msgstr "ВЕРСИИ" |
| 1478 |
|
| 1479 |
#. type: Plain text |
| 1480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1482 |
msgid "" |
| 1483 |
"On some hardware architectures (e.g., i386), B<PROT_WRITE> implies " |
| 1484 |
"B<PROT_READ>. It is architecture dependent whether B<PROT_READ> implies " |
| 1485 |
"B<PROT_EXEC> or not. Portable programs should always set B<PROT_EXEC> if " |
| 1486 |
"they intend to execute code in the new mapping." |
| 1487 |
msgstr "" |
| 1488 |
"На некоторых архитектурах (например, i386), флаг B<PROT_WRITE> подразумевает " |
| 1489 |
"флаг B<PROT_READ>. Также от архитектуры зависит подразумевает ли " |
| 1490 |
"B<PROT_READ> флаг B<PROT_EXEC> или нет. Переносимые программы должны всегда " |
| 1491 |
"устанавливать B<PROT_EXEC>, если они собираются выполнять код, находящийся в " |
| 1492 |
"отображении." |
| 1493 |
|
| 1494 |
#. type: Plain text |
| 1495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1497 |
msgid "" |
| 1498 |
"The portable way to create a mapping is to specify I<addr> as 0 (NULL), and " |
| 1499 |
"omit B<MAP_FIXED> from I<flags>. In this case, the system chooses the " |
| 1500 |
"address for the mapping; the address is chosen so as not to conflict with " |
| 1501 |
"any existing mapping, and will not be 0. If the B<MAP_FIXED> flag is " |
| 1502 |
"specified, and I<addr> is 0 (NULL), then the mapped address will be 0 (NULL)." |
| 1503 |
msgstr "" |
| 1504 |
"Переносимый способ создания отображения: указать в I<addr> значение 0 (NULL) " |
| 1505 |
"и убрать B<MAP_FIXED> из I<flags>. В этом случае, система сама выберет адрес " |
| 1506 |
"для отображения; адрес, выбранный таким образом, не будет будет " |
| 1507 |
"конфликтовать с существующими отображениями и не будет равен 0. Если указан " |
| 1508 |
"флаг B<MAP_FIXED> и значение I<addr> равно 0 (NULL), то адрес отображения " |
| 1509 |
"будет равен 0 (NULL)." |
| 1510 |
|
| 1511 |
#. type: Plain text |
| 1512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1514 |
msgid "" |
| 1515 |
"Certain I<flags> constants are defined only if suitable feature test macros " |
| 1516 |
"are defined (possibly by default): B<_DEFAULT_SOURCE> with glibc 2.19 or " |
| 1517 |
"later; or B<_BSD_SOURCE> or B<_SVID_SOURCE> in glibc 2.19 and earlier. " |
| 1518 |
"(Employing B<_GNU_SOURCE> also suffices, and requiring that macro " |
| 1519 |
"specifically would have been more logical, since these flags are all Linux-" |
| 1520 |
"specific.) The relevant flags are: B<MAP_32BIT>, B<MAP_ANONYMOUS> (and the " |
| 1521 |
"synonym B<MAP_ANON>), B<MAP_DENYWRITE>, B<MAP_EXECUTABLE>, B<MAP_FILE>, " |
| 1522 |
"B<MAP_GROWSDOWN>, B<MAP_HUGETLB>, B<MAP_LOCKED>, B<MAP_NONBLOCK>, " |
| 1523 |
"B<MAP_NORESERVE>, B<MAP_POPULATE>, and B<MAP_STACK>." |
| 1524 |
msgstr "" |
| 1525 |
"Некоторые константы I<flags> определены только, если определён подходящий " |
| 1526 |
"макрос тестирования свойств (возможно, по умолчанию): B<_DEFAULT_SOURCE> в " |
| 1527 |
"glibc 2.19 и новее; B<_BSD_SOURCE> или B<_SVID_SOURCE> в glibc 2.19 и старее " |
| 1528 |
"(также достаточно использовать B<_GNU_SOURCE> и требовать, этот макрос " |
| 1529 |
"логично, так как данные флаги есть только в Linux). Соответственно, флаги: " |
| 1530 |
"B<MAP_32BIT>, B<MAP_ANONYMOUS> (и синоним B<MAP_ANON>), B<MAP_DENYWRITE>, " |
| 1531 |
"B<MAP_EXECUTABLE>, B<MAP_FILE>, B<MAP_GROWSDOWN>, B<MAP_HUGETLB>, " |
| 1532 |
"B<MAP_LOCKED>, B<MAP_NONBLOCK>, B<MAP_NORESERVE>, B<MAP_POPULATE> и " |
| 1533 |
"B<MAP_STACK>." |
| 1534 |
|
| 1535 |
#. type: SS |
| 1536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1538 |
#, no-wrap |
| 1539 |
msgid "C library/kernel differences" |
| 1540 |
msgstr "Отличия между библиотекой C и ядром" |
| 1541 |
|
| 1542 |
#. Since around glibc 2.1/2.2, depending on the platform. |
| 1543 |
#. type: Plain text |
| 1544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1546 |
#, fuzzy |
| 1547 |
#| msgid "" |
| 1548 |
#| "This page describes the interface provided by the glibc B<mmap>() " |
| 1549 |
#| "wrapper function. Originally, this function invoked a system call of the " |
| 1550 |
#| "same name. Since kernel 2.4, that system call has been superseded by " |
| 1551 |
#| "B<mmap2>(2), and nowadays the glibc B<mmap>() wrapper function invokes " |
| 1552 |
#| "B<mmap2>(2) with a suitably adjusted value for I<offset>." |
| 1553 |
msgid "" |
| 1554 |
"This page describes the interface provided by the glibc B<mmap>() wrapper " |
| 1555 |
"function. Originally, this function invoked a system call of the same " |
| 1556 |
"name. Since Linux 2.4, that system call has been superseded by B<mmap2>(2), " |
| 1557 |
"and nowadays the glibc B<mmap>() wrapper function invokes B<mmap2>(2) with " |
| 1558 |
"a suitably adjusted value for I<offset>." |
| 1559 |
msgstr "" |
| 1560 |
"В данной странице описывается интерфейс, предоставляемый обёрточной функцией " |
| 1561 |
"glibc B<mmap>(). Раньше, эта функция обращалась к системному вызову с тем же " |
| 1562 |
"именем. Начиная с ядра 2.4, данный системный вызов был заменён на " |
| 1563 |
"B<mmap2>(2). В настоящее время обёрточная функция glibc, B<mmap>(), вызывает " |
| 1564 |
"B<mmap2>(2) с подходящим подкорректированным значением I<offset>." |
| 1565 |
|
| 1566 |
#. type: SH |
| 1567 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1568 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1569 |
#, no-wrap |
| 1570 |
msgid "STANDARDS" |
| 1571 |
msgstr "СТАНДАРТЫ" |
| 1572 |
|
| 1573 |
#. type: Plain text |
| 1574 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1575 |
#: opensuse-tumbleweed |
| 1576 |
msgid "POSIX.1-2024." |
| 1577 |
msgstr "POSIX.1-2024." |
| 1578 |
|
| 1579 |
#. type: SH |
| 1580 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1581 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1582 |
#, no-wrap |
| 1583 |
msgid "HISTORY" |
| 1584 |
msgstr "ИСТОРИЯ" |
| 1585 |
|
| 1586 |
#. SVr4 documents additional error codes ENXIO and ENODEV. |
| 1587 |
#. SUSv2 documents additional error codes EMFILE and EOVERFLOW. |
| 1588 |
#. type: Plain text |
| 1589 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1590 |
#: opensuse-tumbleweed |
| 1591 |
#, fuzzy |
| 1592 |
#| msgid "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 1593 |
msgid "SVr4, 4.4BSD, SUSv1, POSIX.1-1996." |
| 1594 |
msgstr "SVr4, 4.3BSD, C89, POSIX.1-2001." |
| 1595 |
|
| 1596 |
#. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L. |
| 1597 |
#. -1: unavailable, 0: ask using sysconf(). |
| 1598 |
#. glibc defines it to 1. |
| 1599 |
#. type: Plain text |
| 1600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1602 |
msgid "" |
| 1603 |
"On POSIX systems on which B<mmap>(), B<msync>(2), and B<munmap>() are " |
| 1604 |
"available, B<_POSIX_MAPPED_FILES> is defined in I<E<lt>unistd.hE<gt>> to a " |
| 1605 |
"value greater than 0. (See also B<sysconf>(3).)" |
| 1606 |
msgstr "" |
| 1607 |
"В системах POSIX, в которых есть вызовы B<mmap>(), B<msync>(2) и " |
| 1608 |
"B<munmap>(), значение B<_POSIX_MAPPED_FILES>, определённое в " |
| 1609 |
"I<E<lt>unistd.hE<gt>>, больше 0 (смотрите также B<sysconf>(3))." |
| 1610 |
|
| 1611 |
#. type: SH |
| 1612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1614 |
#, no-wrap |
| 1615 |
msgid "NOTES" |
| 1616 |
msgstr "ПРИМЕЧАНИЯ" |
| 1617 |
|
| 1618 |
#. type: Plain text |
| 1619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1621 |
msgid "" |
| 1622 |
"Memory mapped by B<mmap>() is preserved across B<fork>(2), with the same " |
| 1623 |
"attributes." |
| 1624 |
msgstr "" |
| 1625 |
"Память, отображённая с помощью B<mmap>(), сохраняется при B<fork>(2) с теми " |
| 1626 |
"же атрибутами." |
| 1627 |
|
| 1628 |
#. type: Plain text |
| 1629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1631 |
#, fuzzy |
| 1632 |
#| msgid "" |
| 1633 |
#| "A file is mapped in multiples of the page size. For a file that is not a " |
| 1634 |
#| "multiple of the page size, the remaining memory is zeroed when mapped, " |
| 1635 |
#| "and writes to that region are not written out to the file. The effect of " |
| 1636 |
#| "changing the size of the underlying file of a mapping on the pages that " |
| 1637 |
#| "correspond to added or removed regions of the file is unspecified." |
| 1638 |
msgid "" |
| 1639 |
"A file is mapped in multiples of the page size. For a file that is not a " |
| 1640 |
"multiple of the page size, the remaining bytes in the partial page at the " |
| 1641 |
"end of the mapping are zeroed when mapped, and modifications to that region " |
| 1642 |
"are not written out to the file. The effect of changing the size of the " |
| 1643 |
"underlying file of a mapping on the pages that correspond to added or " |
| 1644 |
"removed regions of the file is unspecified." |
| 1645 |
msgstr "" |
| 1646 |
"Файл отображается по кратному размеру страницы. Для файла, который не кратен " |
| 1647 |
"размеру страницы, оставшаяся память при отображении заполняется нулями, и " |
| 1648 |
"запись в эту область не приводит к изменению файла. Действия при изменении " |
| 1649 |
"размера отображаемого файла на страницы, которые соответствуют добавленным " |
| 1650 |
"или удалённым областям файла, не определены." |
| 1651 |
|
| 1652 |
#. type: Plain text |
| 1653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1654 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1655 |
msgid "" |
| 1656 |
"An application can determine which pages of a mapping are currently resident " |
| 1657 |
"in the buffer/page cache using B<mincore>(2)." |
| 1658 |
msgstr "" |
| 1659 |
"Приложение может определить какие страницы отображены в данный момент в " |
| 1660 |
"буфере/страничном кэше с помощью B<mincore>(2)." |
| 1661 |
|
| 1662 |
#. type: SS |
| 1663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1664 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1665 |
#, no-wrap |
| 1666 |
msgid "Using MAP_FIXED safely" |
| 1667 |
msgstr "Безопасное использование MAP_FIXED" |
| 1668 |
|
| 1669 |
#. type: Plain text |
| 1670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1672 |
msgid "" |
| 1673 |
"The only safe use for B<MAP_FIXED> is where the address range specified by " |
| 1674 |
"I<addr> and I<length> was previously reserved using another mapping; " |
| 1675 |
"otherwise, the use of B<MAP_FIXED> is hazardous because it forcibly removes " |
| 1676 |
"preexisting mappings, making it easy for a multithreaded process to corrupt " |
| 1677 |
"its own address space." |
| 1678 |
msgstr "" |
| 1679 |
"Единственным вариантом безопасного использования B<MAP_FIXED> является " |
| 1680 |
"предварительное резервирование адресного пространства, указываемого в " |
| 1681 |
"I<addr> и I<length>, другим отображением; в остальных случаях использование " |
| 1682 |
"B<MAP_FIXED> опасно, так как оно выполняет принудительное удаление " |
| 1683 |
"существующих отображений, что позволяет легко повредить собственное адресное " |
| 1684 |
"пространство многонитевого процесса." |
| 1685 |
|
| 1686 |
#. type: Plain text |
| 1687 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1688 |
#: opensuse-tumbleweed |
| 1689 |
#, fuzzy |
| 1690 |
#| msgid "" |
| 1691 |
#| "For example, suppose that thread A looks through I</proc/E<lt>pidE<gt>/" |
| 1692 |
#| "maps> in order to locate an unused address range that it can map using " |
| 1693 |
#| "B<MAP_FIXED>, while thread B simultaneously acquires part or all of that " |
| 1694 |
#| "same address range. When thread A subsequently employs " |
| 1695 |
#| "B<mmap(MAP_FIXED)>, it will effectively clobber the mapping that thread B " |
| 1696 |
#| "created. In this scenario, thread B need not create a mapping directly; " |
| 1697 |
#| "simply making a library call that, internally, uses B<dlopen>(3) to load " |
| 1698 |
#| "some other shared library, will suffice. The B<dlopen>(3) call will map " |
| 1699 |
#| "the library into the process's address space. Furthermore, almost any " |
| 1700 |
#| "library call may be implemented in a way that adds memory mappings to the " |
| 1701 |
#| "address space, either with this technique, or by simply allocating " |
| 1702 |
#| "memory. Examples include B<brk>(2), B<malloc>(3), B<pthread_create>(3), " |
| 1703 |
#| "and the PAM libraries E<.UR http://www.linux-pam.org> E<.UE .>" |
| 1704 |
msgid "" |
| 1705 |
"For example, suppose that thread A looks through I</proc/>pidI</maps> in " |
| 1706 |
"order to locate an unused address range that it can map using B<MAP_FIXED>, " |
| 1707 |
"while thread B simultaneously acquires part or all of that same address " |
| 1708 |
"range. When thread A subsequently employs B<mmap(MAP_FIXED)>, it will " |
| 1709 |
"effectively clobber the mapping that thread B created. In this scenario, " |
| 1710 |
"thread B need not create a mapping directly; simply making a library call " |
| 1711 |
"that, internally, uses B<dlopen>(3) to load some other shared library, will " |
| 1712 |
"suffice. The B<dlopen>(3) call will map the library into the process's " |
| 1713 |
"address space. Furthermore, almost any library call may be implemented in a " |
| 1714 |
"way that adds memory mappings to the address space, either with this " |
| 1715 |
"technique, or by simply allocating memory. Examples include B<brk>(2), " |
| 1716 |
"B<malloc>(3), B<pthread_create>(3), and the PAM libraries E<.UR http:\\://" |
| 1717 |
"www.linux-pam.org> E<.UE .>" |
| 1718 |
msgstr "" |
| 1719 |
"Предположим, например, что нить A просматривает I</proc/E<lt>pidE<gt>/maps>в " |
| 1720 |
"поиске неиспользуемого адресного диапазона, который она сможет отобразить " |
| 1721 |
"используя B<MAP_FIXED>, но одновременно с этим нить B захватывает часть или " |
| 1722 |
"весь этот же адресный диапазон. Когда после этого нить A запустит " |
| 1723 |
"B<mmap(MAP_FIXED)>, это, фактически, разобьёт отображение, созданное нитью " |
| 1724 |
"B. В этом сценарии нити B не нужно создавать отображение явным образом; " |
| 1725 |
"будет достаточно просто сделать библиотечный вызов, например, B<dlopen>(3) " |
| 1726 |
"для загрузки какой-то другой общей библиотеки. Вызов B<dlopen>(3) отобразит " |
| 1727 |
"библиотеку в адресное пространство процесса. Более того, почти каждый " |
| 1728 |
"библиотечный вызов можно реализовать так, чтобы он добавлял отображения " |
| 1729 |
"памяти в адресное пространство с помощью этого метода или просто выделяя " |
| 1730 |
"память. Например, такими вызовами являются B<brk>(2), B<malloc>(3), " |
| 1731 |
"B<pthread_create>(3) и библиотеки PAM E<.UR http://www.linux-pam.org> " |
| 1732 |
"E<.UE .>" |
| 1733 |
|
| 1734 |
#. type: Plain text |
| 1735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1737 |
msgid "" |
| 1738 |
"Since Linux 4.17, a multithreaded program can use the B<MAP_FIXED_NOREPLACE> " |
| 1739 |
"flag to avoid the hazard described above when attempting to create a mapping " |
| 1740 |
"at a fixed address that has not been reserved by a preexisting mapping." |
| 1741 |
msgstr "" |
| 1742 |
"Начиная с Linux 4.17, в многонитевых программах можно использовать флаг " |
| 1743 |
"B<MAP_FIXED_NOREPLACE> и, тем самым, избежать опасности, описанной выше, " |
| 1744 |
"когда выполняется попытка создать отображение по фиксированному адресу, " |
| 1745 |
"который не был зарезервирован существующим отображением." |
| 1746 |
|
| 1747 |
#. type: SS |
| 1748 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1749 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1750 |
#, no-wrap |
| 1751 |
msgid "Timestamps changes for file-backed mappings" |
| 1752 |
msgstr "Изменение временных отметок для отображённых файлов" |
| 1753 |
|
| 1754 |
#. type: Plain text |
| 1755 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1756 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1757 |
msgid "" |
| 1758 |
"For file-backed mappings, the I<st_atime> field for the mapped file may be " |
| 1759 |
"updated at any time between the B<mmap>() and the corresponding unmapping; " |
| 1760 |
"the first reference to a mapped page will update the field if it has not " |
| 1761 |
"been already." |
| 1762 |
msgstr "" |
| 1763 |
"У отображённых файлов поле I<st_atime> может измениться в любой момент между " |
| 1764 |
"вызовом B<mmap>() и соответствующим удалением отображения; первое обращение " |
| 1765 |
"к отображённой странице приведёт к обновлению поля, если это ещё не было " |
| 1766 |
"сделано." |
| 1767 |
|
| 1768 |
#. type: Plain text |
| 1769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1771 |
msgid "" |
| 1772 |
"The I<st_ctime> and I<st_mtime> field for a file mapped with B<PROT_WRITE> " |
| 1773 |
"and B<MAP_SHARED> will be updated after a write to the mapped region, and " |
| 1774 |
"before a subsequent B<msync>(2) with the B<MS_SYNC> or B<MS_ASYNC> flag, if " |
| 1775 |
"one occurs." |
| 1776 |
msgstr "" |
| 1777 |
"Поля I<st_ctime> и I<st_mtime> у отображённого с помощью флагов " |
| 1778 |
"B<PROT_WRITE> и B<MAP_SHARED> файла будут обновлены после записи " |
| 1779 |
"отображённой области и перед последующим вызовом B<msync>(2) с флагом " |
| 1780 |
"B<MS_SYNC> или B<MS_ASYNC>, если он будет вызван." |
| 1781 |
|
| 1782 |
#. type: SS |
| 1783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1785 |
#, no-wrap |
| 1786 |
msgid "Huge page (Huge TLB) mappings" |
| 1787 |
msgstr "Отображения огромных страниц (Huge TLB)" |
| 1788 |
|
| 1789 |
#. type: Plain text |
| 1790 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1791 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1792 |
msgid "" |
| 1793 |
"For mappings that employ huge pages, the requirements for the arguments of " |
| 1794 |
"B<mmap>() and B<munmap>() differ somewhat from the requirements for " |
| 1795 |
"mappings that use the native system page size." |
| 1796 |
msgstr "" |
| 1797 |
"Для отображений, работающих с огромными страницами, требования к аргументам " |
| 1798 |
"B<mmap>() и B<munmap>() несколько отличаются от требований к отображениям, в " |
| 1799 |
"которых используются страницы с системным размером." |
| 1800 |
|
| 1801 |
#. type: Plain text |
| 1802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1803 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1804 |
msgid "" |
| 1805 |
"For B<mmap>(), I<offset> must be a multiple of the underlying huge page " |
| 1806 |
"size. The system automatically aligns I<length> to be a multiple of the " |
| 1807 |
"underlying huge page size." |
| 1808 |
msgstr "" |
| 1809 |
"Для B<mmap>(), I<offset> должно быть кратно размеру нижележащей огромной " |
| 1810 |
"страницы. Система автоматически выравнивает I<length> до кратного значения " |
| 1811 |
"размера нижележащей огромной страницы." |
| 1812 |
|
| 1813 |
#. type: Plain text |
| 1814 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1815 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1816 |
msgid "" |
| 1817 |
"For B<munmap>(), I<addr>, and I<length> must both be a multiple of the " |
| 1818 |
"underlying huge page size." |
| 1819 |
msgstr "" |
| 1820 |
"Для B<munmap>(), I<addr> и I<length> должны быть кратны размеру нижележащей " |
| 1821 |
"огромной страницы." |
| 1822 |
|
| 1823 |
#. type: SH |
| 1824 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1825 |
#: opensuse-tumbleweed |
| 1826 |
#, no-wrap |
| 1827 |
msgid "CAVEATS" |
| 1828 |
msgstr "" |
| 1829 |
|
| 1830 |
#. type: Plain text |
| 1831 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1832 |
#: opensuse-tumbleweed |
| 1833 |
msgid "" |
| 1834 |
"Unlike typical B<malloc>(3) implementations, B<mmap>() does not prevent " |
| 1835 |
"creating objects larger than B<PTRDIFF_MAX>. Objects that are larger than " |
| 1836 |
"B<PTRDIFF_MAX> only work in limited ways in C (in particular, pointer " |
| 1837 |
"subtraction results in undefined behavior if the result would be bigger than " |
| 1838 |
"B<PTRDIFF_MAX>). On top of that, GCC also assumes that no object is bigger " |
| 1839 |
"than B<PTRDIFF_MAX>. B<PTRDIFF_MAX> is usually half of the address space " |
| 1840 |
"size; so for 32-bit processes, it is usually B<0x7fffffff> (almost 2 GiB)." |
| 1841 |
msgstr "" |
| 1842 |
|
| 1843 |
#. type: SH |
| 1844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1845 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1846 |
#, no-wrap |
| 1847 |
msgid "BUGS" |
| 1848 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 1849 |
|
| 1850 |
#. type: Plain text |
| 1851 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1852 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1853 |
msgid "" |
| 1854 |
"On Linux, there are no guarantees like those suggested above under " |
| 1855 |
"B<MAP_NORESERVE>. By default, any process can be killed at any moment when " |
| 1856 |
"the system runs out of memory." |
| 1857 |
msgstr "" |
| 1858 |
"В Linux не гарантируется результат флага B<MAP_NORESERVE>, описанный выше. " |
| 1859 |
"По умолчанию, любой процесс может быть принудительно завершён в любой " |
| 1860 |
"момент, если в системе закончилась память." |
| 1861 |
|
| 1862 |
#. type: Plain text |
| 1863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1864 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1865 |
#, fuzzy |
| 1866 |
#| msgid "" |
| 1867 |
#| "In kernels before 2.6.7, the B<MAP_POPULATE> flag has effect only if " |
| 1868 |
#| "I<prot> is specified as B<PROT_NONE>." |
| 1869 |
msgid "" |
| 1870 |
"Before Linux 2.6.7, the B<MAP_POPULATE> flag has effect only if I<prot> is " |
| 1871 |
"specified as B<PROT_NONE>." |
| 1872 |
msgstr "" |
| 1873 |
"В ядрах до версии 2.6.7 флаг B<MAP_POPULATE> учитывается только, если " |
| 1874 |
"значение I<prot> равно B<PROT_NONE>." |
| 1875 |
|
| 1876 |
#. type: Plain text |
| 1877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1878 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1879 |
#, fuzzy |
| 1880 |
#| msgid "" |
| 1881 |
#| "SUSv3 specifies that B<mmap>() should fail if I<length> is 0. However, " |
| 1882 |
#| "in kernels before 2.6.12, B<mmap>() succeeded in this case: no mapping " |
| 1883 |
#| "was created and the call returned I<addr>. Since kernel 2.6.12, " |
| 1884 |
#| "B<mmap>() fails with the error B<EINVAL> for this case." |
| 1885 |
msgid "" |
| 1886 |
"SUSv3 specifies that B<mmap>() should fail if I<length> is 0. However, " |
| 1887 |
"before Linux 2.6.12, B<mmap>() succeeded in this case: no mapping was " |
| 1888 |
"created and the call returned I<addr>. Since Linux 2.6.12, B<mmap>() fails " |
| 1889 |
"with the error B<EINVAL> for this case." |
| 1890 |
msgstr "" |
| 1891 |
"В SUSv3 указано, что B<mmap>() должен завершаться с ошибкой, если I<length> " |
| 1892 |
"равно 0. Однако в ядрах до версии 2.6.12 вызов B<mmap>() в этом случае " |
| 1893 |
"выполняется успешно: отображение не создаётся и вызов возвращает I<addr>. " |
| 1894 |
"Начиная с ядра версии 2.6.12, в этом случае вызов B<mmap>() завершается с " |
| 1895 |
"ошибкой B<EINVAL>." |
| 1896 |
|
| 1897 |
#. type: Plain text |
| 1898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1899 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1900 |
msgid "" |
| 1901 |
"POSIX specifies that the system shall always zero fill any partial page at " |
| 1902 |
"the end of the object and that system will never write any modification of " |
| 1903 |
"the object beyond its end. On Linux, when you write data to such partial " |
| 1904 |
"page after the end of the object, the data stays in the page cache even " |
| 1905 |
"after the file is closed and unmapped and even though the data is never " |
| 1906 |
"written to the file itself, subsequent mappings may see the modified " |
| 1907 |
"content. In some cases, this could be fixed by calling B<msync>(2) before " |
| 1908 |
"the unmap takes place; however, this doesn't work on B<tmpfs>(5) (for " |
| 1909 |
"example, when using the POSIX shared memory interface documented in " |
| 1910 |
"B<shm_overview>(7))." |
| 1911 |
msgstr "" |
| 1912 |
"В POSIX сказано, что система всегда должна заполнять нулями любую частичную " |
| 1913 |
"страницу у конца объекта и что система никогда не должна вносить любые " |
| 1914 |
"изменения вне пределов объекта. В Linux, если вы пишите данные в такую " |
| 1915 |
"частичную страницу за концом объекта, то данные остаются в страничном кэше " |
| 1916 |
"даже после закрытия и выключения отображения файла и хотя данные никогда не " |
| 1917 |
"пишутся в сам файл, последующие отображения могут увидеть изменённое " |
| 1918 |
"содержимое. В некоторых случаях это можно исправить вызвав B<msync>(2) перед " |
| 1919 |
"выключением отображения; однако это не работает на B<tmpfs>(5) (например, " |
| 1920 |
"когда используется интерфейс общей памяти POSIX, описанный в " |
| 1921 |
"B<shm_overview>(7))." |
| 1922 |
|
| 1923 |
#. type: SH |
| 1924 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1925 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1926 |
#, no-wrap |
| 1927 |
msgid "EXAMPLES" |
| 1928 |
msgstr "ПРИМЕРЫ" |
| 1929 |
|
| 1930 |
#. FIXME . Add an example here that uses an anonymous shared region for |
| 1931 |
#. IPC between parent and child. |
| 1932 |
#. type: Plain text |
| 1933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1934 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1935 |
msgid "" |
| 1936 |
"The following program prints part of the file specified in its first command-" |
| 1937 |
"line argument to standard output. The range of bytes to be printed is " |
| 1938 |
"specified via offset and length values in the second and third command-line " |
| 1939 |
"arguments. The program creates a memory mapping of the required pages of " |
| 1940 |
"the file and then uses B<write>(2) to output the desired bytes." |
| 1941 |
msgstr "" |
| 1942 |
"Следующая программа выводит часть файла, указанного в первом аргументе " |
| 1943 |
"командной строки, в стандартный вывод. Диапазон выдаваемых байт задаётся " |
| 1944 |
"смещением и длиной во втором и третьем аргументах командной строки. " |
| 1945 |
"Программа создаёт отображение требуемых страниц файла и затем использует " |
| 1946 |
"B<write>(2) для вывода запрошенных байт." |
| 1947 |
|
| 1948 |
#. type: SS |
| 1949 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1950 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1951 |
#, no-wrap |
| 1952 |
msgid "Program source" |
| 1953 |
msgstr "Исходный код программы" |
| 1954 |
|
| 1955 |
#. type: Plain text |
| 1956 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1957 |
#: opensuse-tumbleweed |
| 1958 |
#, no-wrap |
| 1959 |
msgid "" |
| 1960 |
"#include E<lt>err.hE<gt>\n" |
| 1961 |
"#include E<lt>fcntl.hE<gt>\n" |
| 1962 |
"#include E<lt>stdio.hE<gt>\n" |
| 1963 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1964 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 1965 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 1966 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1967 |
"#include E<lt>unistd.hE<gt>\n" |
| 1968 |
"\\&\n" |
| 1969 |
"int\n" |
| 1970 |
"main(int argc, char *argv[])\n" |
| 1971 |
"{\n" |
| 1972 |
" int fd;\n" |
| 1973 |
" char *addr;\n" |
| 1974 |
" off_t offset, pa_offset;\n" |
| 1975 |
" size_t length;\n" |
| 1976 |
" ssize_t s;\n" |
| 1977 |
" struct stat sb;\n" |
| 1978 |
"\\&\n" |
| 1979 |
" if (argc E<lt> 3 || argc E<gt> 4) {\n" |
| 1980 |
" fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" |
| 1981 |
" exit(EXIT_FAILURE);\n" |
| 1982 |
" }\n" |
| 1983 |
"\\&\n" |
| 1984 |
" fd = open(argv[1], O_RDONLY);\n" |
| 1985 |
" if (fd == -1)\n" |
| 1986 |
" err(EXIT_FAILURE, \"open\");\n" |
| 1987 |
"\\&\n" |
| 1988 |
" if (fstat(fd, &sb) == -1) /* To obtain file size */\n" |
| 1989 |
" err(EXIT_FAILURE, \"fstat\");\n" |
| 1990 |
"\\&\n" |
| 1991 |
" offset = atoi(argv[2]);\n" |
| 1992 |
" pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" |
| 1993 |
" /* offset for mmap() must be page aligned */\n" |
| 1994 |
"\\&\n" |
| 1995 |
" if (offset E<gt>= sb.st_size) {\n" |
| 1996 |
" fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" |
| 1997 |
" exit(EXIT_FAILURE);\n" |
| 1998 |
" }\n" |
| 1999 |
"\\&\n" |
| 2000 |
" if (argc == 4) {\n" |
| 2001 |
" length = atoi(argv[3]);\n" |
| 2002 |
" if (offset + length E<gt> sb.st_size)\n" |
| 2003 |
" length = sb.st_size - offset;\n" |
| 2004 |
" /* Can\\[aq]t display bytes past end of file */\n" |
| 2005 |
"\\&\n" |
| 2006 |
" } else { /* No length arg ==E<gt> display to end of file */\n" |
| 2007 |
" length = sb.st_size - offset;\n" |
| 2008 |
" }\n" |
| 2009 |
"\\&\n" |
| 2010 |
" addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" |
| 2011 |
" MAP_PRIVATE, fd, pa_offset);\n" |
| 2012 |
" if (addr == MAP_FAILED)\n" |
| 2013 |
" err(EXIT_FAILURE, \"mmap\");\n" |
| 2014 |
"\\&\n" |
| 2015 |
" s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" |
| 2016 |
" if (s != length) {\n" |
| 2017 |
" if (s == -1)\n" |
| 2018 |
" err(EXIT_FAILURE, \"write\");\n" |
| 2019 |
"\\&\n" |
| 2020 |
" fprintf(stderr, \"partial write\");\n" |
| 2021 |
" exit(EXIT_FAILURE);\n" |
| 2022 |
" }\n" |
| 2023 |
"\\&\n" |
| 2024 |
" munmap(addr, length + offset - pa_offset);\n" |
| 2025 |
" close(fd);\n" |
| 2026 |
"\\&\n" |
| 2027 |
" exit(EXIT_SUCCESS);\n" |
| 2028 |
"}\n" |
| 2029 |
msgstr "" |
| 2030 |
|
| 2031 |
#. SRC END |
| 2032 |
#. type: SH |
| 2033 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2034 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2035 |
#, no-wrap |
| 2036 |
msgid "SEE ALSO" |
| 2037 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 2038 |
|
| 2039 |
#. type: Plain text |
| 2040 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2041 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2042 |
msgid "" |
| 2043 |
"B<ftruncate>(2), B<getpagesize>(2), B<memfd_create>(2), B<mincore>(2), " |
| 2044 |
"B<mlock>(2), B<mmap2>(2), B<mprotect>(2), B<mremap>(2), B<msync>(2), " |
| 2045 |
"B<remap_file_pages>(2), B<setrlimit>(2), B<shmat>(2), B<userfaultfd>(2), " |
| 2046 |
"B<shm_open>(3), B<shm_overview>(7)" |
| 2047 |
msgstr "" |
| 2048 |
"B<ftruncate>(2), B<getpagesize>(2), B<memfd_create>(2), B<mincore>(2), " |
| 2049 |
"B<mlock>(2), B<mmap2>(2), B<mprotect>(2), B<mremap>(2), B<msync>(2), " |
| 2050 |
"B<remap_file_pages>(2), B<setrlimit>(2), B<shmat>(2), B<userfaultfd>(2), " |
| 2051 |
"B<shm_open>(3), B<shm_overview>(7)" |
| 2052 |
|
| 2053 |
#. type: Plain text |
| 2054 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2055 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2056 |
#, fuzzy |
| 2057 |
#| msgid "" |
| 2058 |
#| "The descriptions of the following files in B<proc>(5): I</proc/[pid]/" |
| 2059 |
#| "maps>, I</proc/[pid]/map_files>, and I</proc/[pid]/smaps>." |
| 2060 |
msgid "" |
| 2061 |
"The descriptions of the following files in B<proc>(5): I</proc/>pidI</maps>, " |
| 2062 |
"I</proc/>pidI</map_files>, and I</proc/>pidI</smaps>." |
| 2063 |
msgstr "" |
| 2064 |
"Описание в B<proc>(5) следующих файлов: I</proc/[pid]/maps>, I</proc/[pid]/" |
| 2065 |
"map_files> и I</proc/[pid]/smaps>." |
| 2066 |
|
| 2067 |
#. type: Plain text |
| 2068 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2069 |
#: opensuse-tumbleweed |
| 2070 |
#, fuzzy |
| 2071 |
#| msgid "" |
| 2072 |
#| "B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\\[en]129 and 389\\[en]391." |
| 2073 |
msgid "" |
| 2074 |
"B.O.\\& Gallmeister, POSIX.4, O'Reilly, pp.\\& 128\\[en]129 and 389\\[en]391." |
| 2075 |
msgstr "B.O. Gallmeister, POSIX.4, O'Reilly, стр. 128\\[en]129 и 389\\[en]391." |
| 2076 |
|
| 2077 |
#. type: TH |
| 2078 |
#: debian-trixie |
| 2079 |
#, no-wrap |
| 2080 |
msgid "2024-06-15" |
| 2081 |
msgstr "15 июня 2024 г." |
| 2082 |
|
| 2083 |
#. type: TH |
| 2084 |
#: debian-trixie |
| 2085 |
#, no-wrap |
| 2086 |
msgid "Linux man-pages 6.9.1" |
| 2087 |
msgstr "Страницы руководства Linux 6.9.1" |
| 2088 |
|
| 2089 |
#. type: Plain text |
| 2090 |
#: debian-trixie |
| 2091 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 2092 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 2093 |
|
| 2094 |
#. type: Plain text |
| 2095 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2096 |
#, no-wrap |
| 2097 |
msgid "" |
| 2098 |
"B<void *mmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n" |
| 2099 |
"B< int >I<fd>B<, off_t >I<offset>B<);>\n" |
| 2100 |
"B<int munmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<);>\n" |
| 2101 |
msgstr "" |
| 2102 |
"B<void *mmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<, int >I<prot>B<, int >I<flags>B<,>\n" |
| 2103 |
"B< int >I<fd>B<, off_t >I<offset>B<);>\n" |
| 2104 |
"B<int munmap(void >I<addr>B<[.>I<length>B<], size_t >I<length>B<);>\n" |
| 2105 |
|
| 2106 |
#. type: Plain text |
| 2107 |
#: debian-trixie |
| 2108 |
msgid "See NOTES for information on feature test macro requirements." |
| 2109 |
msgstr "" |
| 2110 |
"Информацию по требованиям макроса тестирования свойств смотрите в разделе " |
| 2111 |
"ЗАМЕЧАНИЯ." |
| 2112 |
|
| 2113 |
#. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843 |
| 2114 |
#. type: Plain text |
| 2115 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2116 |
msgid "" |
| 2117 |
"This flag provides behavior that is similar to B<MAP_FIXED> with respect to " |
| 2118 |
"the I<addr> enforcement, but differs in that B<MAP_FIXED_NOREPLACE> never " |
| 2119 |
"clobbers a preexisting mapped range. If the requested range would collide " |
| 2120 |
"with an existing mapping, then this call fails with the error B<EEXIST.> " |
| 2121 |
"This flag can therefore be used as a way to atomically (with respect to " |
| 2122 |
"other threads) attempt to map an address range: one thread will succeed; all " |
| 2123 |
"others will report failure." |
| 2124 |
msgstr "" |
| 2125 |
"Данный флаг действует схожим с B<MAP_FIXED> образом при контроле I<addr>, но " |
| 2126 |
"в отличие от него, флаг B<MAP_FIXED_NOREPLACE> никогда не разделяет уже " |
| 2127 |
"существующий отображённый диапазон. Если запрошенный диапазон пересекается с " |
| 2128 |
"существующим отображением, то такой вызов завершается ошибкой B<EEXIST>. " |
| 2129 |
"Поэтому данный флаг можно использовать как атомарную (если есть другие нити) " |
| 2130 |
"попытку отображения адресного диапазона: для одной нити она закончится " |
| 2131 |
"успешно; все остальные получат ошибку." |
| 2132 |
|
| 2133 |
#. type: Plain text |
| 2134 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 2135 |
msgid "" |
| 2136 |
"This flag is used for stacks. It indicates to the kernel virtual memory " |
| 2137 |
"system that the mapping should extend downward in memory. The return " |
| 2138 |
"address is one page lower than the memory area that is actually created in " |
| 2139 |
"the process's virtual address space. Touching an address in the \"guard\" " |
| 2140 |
"page below the mapping will cause the mapping to grow by a page. This " |
| 2141 |
"growth can be repeated until the mapping grows to within a page of the high " |
| 2142 |
"end of the next lower mapping, at which point touching the \"guard\" page " |
| 2143 |
"will result in a B<SIGSEGV> signal." |
| 2144 |
msgstr "" |
| 2145 |
"Этот флаг используется для стеков. Для виртуальной системы памяти ядра он " |
| 2146 |
"обозначает, что отображение должно расширяться вниз по памяти. Возвращаемый " |
| 2147 |
"адрес указывает на одну страницу ниже области памяти, которая в " |
| 2148 |
"действительности создаётся в виртуальном адресном пространстве процесса. " |
| 2149 |
"Обращение к адресу ниже «защитной» страницы отображения приведёт к " |
| 2150 |
"расширению отображения на страницу. Увеличение таким способом можно " |
| 2151 |
"повторять до тех пор, пока рост отображения страницы верхним концом не " |
| 2152 |
"достигнет следующего нижнего отображения, при таком обращении к «защитной» " |
| 2153 |
"страницы возникнет сигнал B<SIGSEGV>." |
| 2154 |
|
| 2155 |
#. type: Plain text |
| 2156 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2157 |
#, fuzzy |
| 2158 |
#| msgid "" |
| 2159 |
#| "Do not reserve swap space for this mapping. When swap space is reserved, " |
| 2160 |
#| "one has the guarantee that it is possible to modify the mapping. When " |
| 2161 |
#| "swap space is not reserved one might get B<SIGSEGV> upon a write if no " |
| 2162 |
#| "physical memory is available. See also the discussion of the file I</" |
| 2163 |
#| "proc/sys/vm/overcommit_memory> in B<proc>(5). In kernels before 2.6, " |
| 2164 |
#| "this flag had effect only for private writable mappings." |
| 2165 |
msgid "" |
| 2166 |
"Do not reserve swap space for this mapping. When swap space is reserved, " |
| 2167 |
"one has the guarantee that it is possible to modify the mapping. When swap " |
| 2168 |
"space is not reserved one might get B<SIGSEGV> upon a write if no physical " |
| 2169 |
"memory is available. See also the discussion of the file I</proc/sys/vm/" |
| 2170 |
"overcommit_memory> in B<proc>(5). Before Linux 2.6, this flag had effect " |
| 2171 |
"only for private writable mappings." |
| 2172 |
msgstr "" |
| 2173 |
"Не резервировать страницы пространства подкачки для этого отображения. Если " |
| 2174 |
"пространство подкачки резервируется, то для отображения гарантируется " |
| 2175 |
"возможность изменения. Если оно не резервируется, то можно получить сигнал " |
| 2176 |
"B<SIGSEGV> при записи, если физическая память будет недоступна. Смотрите " |
| 2177 |
"также описание файла I</proc/sys/vm/overcommit_memory> в B<proc>(5). В ядрах " |
| 2178 |
"до 2.6 этот флаг действовал только для частных доступных на запись " |
| 2179 |
"отображений." |
| 2180 |
|
| 2181 |
#. type: Plain text |
| 2182 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2183 |
msgid "" |
| 2184 |
"The B<MAP_HUGETLB> flag was specified, but the caller was not privileged " |
| 2185 |
"(did not have the B<CAP_IPC_LOCK> capability) and is not a member of the " |
| 2186 |
"I<sysctl_hugetlb_shm_group> group; see the description of I</proc/sys/vm/" |
| 2187 |
"sysctl_hugetlb_shm_group> in B<proc_sys>(5)." |
| 2188 |
msgstr "" |
| 2189 |
|
| 2190 |
#. type: Plain text |
| 2191 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2192 |
msgid "POSIX.1-2008." |
| 2193 |
msgstr "POSIX.1-2008." |
| 2194 |
|
| 2195 |
#. SVr4 documents additional error codes ENXIO and ENODEV. |
| 2196 |
#. SUSv2 documents additional error codes EMFILE and EOVERFLOW. |
| 2197 |
#. type: Plain text |
| 2198 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2199 |
msgid "POSIX.1-2001, SVr4, 4.4BSD." |
| 2200 |
msgstr "POSIX.1-2001, SVr4, 4.4BSD." |
| 2201 |
|
| 2202 |
#. type: Plain text |
| 2203 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2204 |
#, fuzzy |
| 2205 |
#| msgid "" |
| 2206 |
#| "For example, suppose that thread A looks through I</proc/E<lt>pidE<gt>/" |
| 2207 |
#| "maps> in order to locate an unused address range that it can map using " |
| 2208 |
#| "B<MAP_FIXED>, while thread B simultaneously acquires part or all of that " |
| 2209 |
#| "same address range. When thread A subsequently employs " |
| 2210 |
#| "B<mmap(MAP_FIXED)>, it will effectively clobber the mapping that thread B " |
| 2211 |
#| "created. In this scenario, thread B need not create a mapping directly; " |
| 2212 |
#| "simply making a library call that, internally, uses B<dlopen>(3) to load " |
| 2213 |
#| "some other shared library, will suffice. The B<dlopen>(3) call will map " |
| 2214 |
#| "the library into the process's address space. Furthermore, almost any " |
| 2215 |
#| "library call may be implemented in a way that adds memory mappings to the " |
| 2216 |
#| "address space, either with this technique, or by simply allocating " |
| 2217 |
#| "memory. Examples include B<brk>(2), B<malloc>(3), B<pthread_create>(3), " |
| 2218 |
#| "and the PAM libraries E<.UR http://www.linux-pam.org> E<.UE .>" |
| 2219 |
msgid "" |
| 2220 |
"For example, suppose that thread A looks through I</proc/>pidI</maps> in " |
| 2221 |
"order to locate an unused address range that it can map using B<MAP_FIXED>, " |
| 2222 |
"while thread B simultaneously acquires part or all of that same address " |
| 2223 |
"range. When thread A subsequently employs B<mmap(MAP_FIXED)>, it will " |
| 2224 |
"effectively clobber the mapping that thread B created. In this scenario, " |
| 2225 |
"thread B need not create a mapping directly; simply making a library call " |
| 2226 |
"that, internally, uses B<dlopen>(3) to load some other shared library, will " |
| 2227 |
"suffice. The B<dlopen>(3) call will map the library into the process's " |
| 2228 |
"address space. Furthermore, almost any library call may be implemented in a " |
| 2229 |
"way that adds memory mappings to the address space, either with this " |
| 2230 |
"technique, or by simply allocating memory. Examples include B<brk>(2), " |
| 2231 |
"B<malloc>(3), B<pthread_create>(3), and the PAM libraries E<.UR http://" |
| 2232 |
"www.linux-pam.org> E<.UE .>" |
| 2233 |
msgstr "" |
| 2234 |
"Предположим, например, что нить A просматривает I</proc/E<lt>pidE<gt>/maps>в " |
| 2235 |
"поиске неиспользуемого адресного диапазона, который она сможет отобразить " |
| 2236 |
"используя B<MAP_FIXED>, но одновременно с этим нить B захватывает часть или " |
| 2237 |
"весь этот же адресный диапазон. Когда после этого нить A запустит " |
| 2238 |
"B<mmap(MAP_FIXED)>, это, фактически, разобьёт отображение, созданное нитью " |
| 2239 |
"B. В этом сценарии нити B не нужно создавать отображение явным образом; " |
| 2240 |
"будет достаточно просто сделать библиотечный вызов, например, B<dlopen>(3) " |
| 2241 |
"для загрузки какой-то другой общей библиотеки. Вызов B<dlopen>(3) отобразит " |
| 2242 |
"библиотеку в адресное пространство процесса. Более того, почти каждый " |
| 2243 |
"библиотечный вызов можно реализовать так, чтобы он добавлял отображения " |
| 2244 |
"памяти в адресное пространство с помощью этого метода или просто выделяя " |
| 2245 |
"память. Например, такими вызовами являются B<brk>(2), B<malloc>(3), " |
| 2246 |
"B<pthread_create>(3) и библиотеки PAM E<.UR http://www.linux-pam.org> " |
| 2247 |
"E<.UE .>" |
| 2248 |
|
| 2249 |
#. type: Plain text |
| 2250 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2251 |
#, no-wrap |
| 2252 |
msgid "" |
| 2253 |
"#include E<lt>fcntl.hE<gt>\n" |
| 2254 |
"#include E<lt>stdio.hE<gt>\n" |
| 2255 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2256 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 2257 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 2258 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2259 |
"#include E<lt>unistd.hE<gt>\n" |
| 2260 |
"\\&\n" |
| 2261 |
"#define handle_error(msg) \\[rs]\n" |
| 2262 |
" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" |
| 2263 |
"\\&\n" |
| 2264 |
"int\n" |
| 2265 |
"main(int argc, char *argv[])\n" |
| 2266 |
"{\n" |
| 2267 |
" int fd;\n" |
| 2268 |
" char *addr;\n" |
| 2269 |
" off_t offset, pa_offset;\n" |
| 2270 |
" size_t length;\n" |
| 2271 |
" ssize_t s;\n" |
| 2272 |
" struct stat sb;\n" |
| 2273 |
"\\&\n" |
| 2274 |
" if (argc E<lt> 3 || argc E<gt> 4) {\n" |
| 2275 |
" fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" |
| 2276 |
" exit(EXIT_FAILURE);\n" |
| 2277 |
" }\n" |
| 2278 |
"\\&\n" |
| 2279 |
" fd = open(argv[1], O_RDONLY);\n" |
| 2280 |
" if (fd == -1)\n" |
| 2281 |
" handle_error(\"open\");\n" |
| 2282 |
"\\&\n" |
| 2283 |
" if (fstat(fd, &sb) == -1) /* To obtain file size */\n" |
| 2284 |
" handle_error(\"fstat\");\n" |
| 2285 |
"\\&\n" |
| 2286 |
" offset = atoi(argv[2]);\n" |
| 2287 |
" pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" |
| 2288 |
" /* offset for mmap() must be page aligned */\n" |
| 2289 |
"\\&\n" |
| 2290 |
" if (offset E<gt>= sb.st_size) {\n" |
| 2291 |
" fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" |
| 2292 |
" exit(EXIT_FAILURE);\n" |
| 2293 |
" }\n" |
| 2294 |
"\\&\n" |
| 2295 |
" if (argc == 4) {\n" |
| 2296 |
" length = atoi(argv[3]);\n" |
| 2297 |
" if (offset + length E<gt> sb.st_size)\n" |
| 2298 |
" length = sb.st_size - offset;\n" |
| 2299 |
" /* Can\\[aq]t display bytes past end of file */\n" |
| 2300 |
"\\&\n" |
| 2301 |
" } else { /* No length arg ==E<gt> display to end of file */\n" |
| 2302 |
" length = sb.st_size - offset;\n" |
| 2303 |
" }\n" |
| 2304 |
"\\&\n" |
| 2305 |
" addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" |
| 2306 |
" MAP_PRIVATE, fd, pa_offset);\n" |
| 2307 |
" if (addr == MAP_FAILED)\n" |
| 2308 |
" handle_error(\"mmap\");\n" |
| 2309 |
"\\&\n" |
| 2310 |
" s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" |
| 2311 |
" if (s != length) {\n" |
| 2312 |
" if (s == -1)\n" |
| 2313 |
" handle_error(\"write\");\n" |
| 2314 |
"\\&\n" |
| 2315 |
" fprintf(stderr, \"partial write\");\n" |
| 2316 |
" exit(EXIT_FAILURE);\n" |
| 2317 |
" }\n" |
| 2318 |
"\\&\n" |
| 2319 |
" munmap(addr, length + offset - pa_offset);\n" |
| 2320 |
" close(fd);\n" |
| 2321 |
"\\&\n" |
| 2322 |
" exit(EXIT_SUCCESS);\n" |
| 2323 |
"}\n" |
| 2324 |
msgstr "" |
| 2325 |
|
| 2326 |
#. type: Plain text |
| 2327 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2328 |
msgid "B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\\[en]129 and 389\\[en]391." |
| 2329 |
msgstr "B.O. Gallmeister, POSIX.4, O'Reilly, стр. 128\\[en]129 и 389\\[en]391." |
| 2330 |
|
| 2331 |
#. type: TH |
| 2332 |
#: fedora-44 fedora-rawhide |
| 2333 |
#, no-wrap |
| 2334 |
msgid "2024-07-23" |
| 2335 |
msgstr "23 июля 2024 г." |
| 2336 |
|
| 2337 |
#. type: TH |
| 2338 |
#: fedora-44 fedora-rawhide |
| 2339 |
#, no-wrap |
| 2340 |
msgid "Linux man-pages 6.13" |
| 2341 |
msgstr "Страницы руководства Linux 6.13" |
| 2342 |
|
| 2343 |
#. type: TH |
| 2344 |
#: mageia-cauldron |
| 2345 |
#, no-wrap |
| 2346 |
msgid "2026-02-11" |
| 2347 |
msgstr "11 февраля 2026 г." |
| 2348 |
|
| 2349 |
#. type: TH |
| 2350 |
#: mageia-cauldron |
| 2351 |
#, no-wrap |
| 2352 |
msgid "Linux man-pages 6.17" |
| 2353 |
msgstr "Страницы руководства Linux 6.17" |
| 2354 |
|
| 2355 |
#. type: TH |
| 2356 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2357 |
#, no-wrap |
| 2358 |
msgid "Linux man-pages (unreleased)" |
| 2359 |
msgstr "Страницы руководства Linux (не выпущены)" |