| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Yuri Kozlov <[email protected]>, 2012-2019. |
| 5 |
# Иван Павлов <[email protected]>, 2017. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:22+0200\n" |
| 10 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 11 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 12 |
"Language-Team: Russian <[email protected]>\n" |
| 13 |
"Language: ru\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 18 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 19 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 20 |
"X-Generator: Lokalize 2.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, fuzzy, no-wrap |
| 26 |
#| msgid "dlopen()" |
| 27 |
msgid "dlopen" |
| 28 |
msgstr "dlopen()" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-08" |
| 35 |
msgstr "8 февраля 2026 г." |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, fuzzy, no-wrap |
| 40 |
#| msgid "Linux man-pages 6.17" |
| 41 |
msgid "Linux man-pages 6.18" |
| 42 |
msgstr "Справочные страницы Linux 6.17" |
| 43 |
|
| 44 |
#. type: SH |
| 45 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 46 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 47 |
#, no-wrap |
| 48 |
msgid "NAME" |
| 49 |
msgstr "НАИМЕНОВАНИЕ" |
| 50 |
|
| 51 |
#. type: Plain text |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
msgid "dlclose, dlopen, dlmopen - open and close a shared object" |
| 55 |
msgstr "dlclose, dlopen, dlmopen - открывает и закрывает общий объект" |
| 56 |
|
| 57 |
#. type: SH |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
#, no-wrap |
| 61 |
msgid "LIBRARY" |
| 62 |
msgstr "БИБЛИОТЕКА" |
| 63 |
|
| 64 |
#. type: Plain text |
| 65 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 66 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, fuzzy |
| 68 |
#| msgid "Math library (I<libm>, I<-lm>)" |
| 69 |
msgid "Dynamic linking library (I<libdl>,\\ I<-ldl>)" |
| 70 |
msgstr "Математическая библиотека (I<libm>, I<-lm>)" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "SYNOPSIS" |
| 77 |
msgstr "СИНТАКСИС" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 84 |
msgstr "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 88 |
#: opensuse-tumbleweed |
| 89 |
#, fuzzy, no-wrap |
| 90 |
#| msgid "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>" |
| 91 |
msgid "" |
| 92 |
"B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n" |
| 93 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 94 |
msgstr "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, fuzzy, no-wrap |
| 100 |
#| msgid "B<#define _GNU_SOURCE>" |
| 101 |
msgid "B<#define _GNU_SOURCE>\n" |
| 102 |
msgstr "B<#define _GNU_SOURCE>" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 106 |
#: opensuse-tumbleweed |
| 107 |
#, fuzzy, no-wrap |
| 108 |
#| msgid "B<void *dlmopen (Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>" |
| 109 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);>\n" |
| 110 |
msgstr "B<void *dlmopen (Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>" |
| 111 |
|
| 112 |
#. type: SH |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "DESCRIPTION" |
| 117 |
msgstr "ОПИСАНИЕ" |
| 118 |
|
| 119 |
#. type: SS |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
#, no-wrap |
| 123 |
msgid "dlopen()" |
| 124 |
msgstr "dlopen()" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 128 |
#: opensuse-tumbleweed |
| 129 |
#, fuzzy |
| 130 |
#| msgid "" |
| 131 |
#| "The function B<dlopen>() loads the dynamic shared object (shared " |
| 132 |
#| "library) file named by the null-terminated string I<filename> and " |
| 133 |
#| "returns an opaque \"handle\" for the loaded object. This handle is " |
| 134 |
#| "employed with other functions in the dlopen API, such as B<dlsym>(3), " |
| 135 |
#| "B<dladdr>(3), B<dlinfo>(3), and B<dlclose>()." |
| 136 |
msgid "" |
| 137 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 138 |
"file named by the null-terminated string I<path> and returns an opaque " |
| 139 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 140 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 141 |
"B<dlinfo>(3), and B<dlclose>()." |
| 142 |
msgstr "" |
| 143 |
"Функция B<dlopen>() загружает динамический общий объект (общую библиотеку) " |
| 144 |
"из файла, имя которого указано в строке I<filename> (завершается null) и " |
| 145 |
"возвращает скрытный описатель на загруженный объект. Данный описатель " |
| 146 |
"используется другими функциями программного интерфейса dlopen, такими как " |
| 147 |
"B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3) и B<dlclose>()." |
| 148 |
|
| 149 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 150 |
#. a handle for (something like) the root of the namespace. |
| 151 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 152 |
#. the path==NULL case returns a different handle than |
| 153 |
#. in the initial namespace. But, on glibc, the same handle is |
| 154 |
#. returned. This is probably a bug in glibc. |
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 157 |
#: opensuse-tumbleweed |
| 158 |
#, fuzzy |
| 159 |
#| msgid "" |
| 160 |
#| "If I<filename> is NULL, then the returned handle is for the main " |
| 161 |
#| "program. If I<filename> contains a slash (\"/\"), then it is interpreted " |
| 162 |
#| "as a (relative or absolute) pathname. Otherwise, the dynamic linker " |
| 163 |
#| "searches for the object as follows (see B<ld.so>(8) for further details):" |
| 164 |
msgid "" |
| 165 |
"If I<path> is NULL, then the returned handle is for the main program. If " |
| 166 |
"I<path> contains a slash (\"/\"), then it is interpreted as a (relative or " |
| 167 |
"absolute) pathname. Otherwise, the dynamic linker searches for the object " |
| 168 |
"as follows (see B<ld.so>(8) for further details):" |
| 169 |
msgstr "" |
| 170 |
"Если I<filename> равно NULL, то возвращается описатель основной программы. " |
| 171 |
"Если I<filename> содержит косую черту («/»), то это воспринимается как имя с " |
| 172 |
"путём (относительным или абсолютным). Иначе динамический компоновщик ищет " |
| 173 |
"объект в следующих местах (подробности смотрите в B<ld.so>(8)):" |
| 174 |
|
| 175 |
#. type: IP |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, no-wrap |
| 179 |
msgid "\\[bu]" |
| 180 |
msgstr "\\[bu]" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
#, fuzzy |
| 186 |
#| msgid "" |
| 187 |
#| "(ELF only) If the executable file for the calling program contains a " |
| 188 |
#| "DT_RPATH tag, and does not contain a DT_RUNPATH tag, then the directories " |
| 189 |
#| "listed in the DT_RPATH tag are searched." |
| 190 |
msgid "" |
| 191 |
"(ELF only) If the calling object (i.e., the shared library or executable " |
| 192 |
"from which B<dlopen>() is called) contains a DT_RPATH tag, and does not " |
| 193 |
"contain a DT_RUNPATH tag, then the directories listed in the DT_RPATH tag " |
| 194 |
"are searched." |
| 195 |
msgstr "" |
| 196 |
"(только в ELF) Если исполняемый файл вызывающей программы содержит метку " |
| 197 |
"DT_RPATH, т не содержит метки DT_RUNPATH, то производится поиск в каталогах, " |
| 198 |
"описанных в метке DT_RPATH." |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"If, at the time that the program was started, the environment variable " |
| 205 |
"B<LD_LIBRARY_PATH> was defined to contain a colon-separated list of " |
| 206 |
"directories, then these are searched. (As a security measure, this variable " |
| 207 |
"is ignored for set-user-ID and set-group-ID programs.)" |
| 208 |
msgstr "" |
| 209 |
"Если при запуске программы была определена переменная окружения " |
| 210 |
"B<LD_LIBRARY_PATH>, содержащая список каталогов через двоеточие, то " |
| 211 |
"производится поиск в этих каталогах (по соображениям безопасности эта " |
| 212 |
"переменная игнорируется для программ с установленными битами set-user-ID и " |
| 213 |
"set-group-ID)." |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, fuzzy |
| 219 |
#| msgid "" |
| 220 |
#| "(ELF only) If the executable file for the calling program contains a " |
| 221 |
#| "DT_RUNPATH tag, then the directories listed in that tag are searched." |
| 222 |
msgid "" |
| 223 |
"(ELF only) If the calling object contains a DT_RUNPATH tag, then the " |
| 224 |
"directories listed in that tag are searched." |
| 225 |
msgstr "" |
| 226 |
"(только в ELF) Если исполняемый файл вызывающей программы содержит метку " |
| 227 |
"DT_RUNPATH, то производится поиск по каталогам, перечисленным в этой метке." |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 231 |
#: opensuse-tumbleweed |
| 232 |
#, fuzzy |
| 233 |
#| msgid "" |
| 234 |
#| "The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 235 |
#| "checked to see whether it contains an entry for I<filename>." |
| 236 |
msgid "" |
| 237 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 238 |
"checked to see whether it contains an entry for I<path>." |
| 239 |
msgstr "" |
| 240 |
"Производится проверка в кэширующем файле I</etc/ld.so.cache> (обслуживается " |
| 241 |
"B<ldconfig>(8)) на предмет наличия записи для I<filename>." |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "The directories I</lib> and I</usr/lib> are searched (in that order)." |
| 247 |
msgstr "" |
| 248 |
"Просматриваются каталоги I</lib> и I</usr/lib> (именно в таком порядке)." |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 252 |
#: opensuse-tumbleweed |
| 253 |
#, fuzzy |
| 254 |
#| msgid "" |
| 255 |
#| "If the object specified by I<filename> has dependencies on other shared " |
| 256 |
#| "objects, then these are also automatically loaded by the dynamic linker " |
| 257 |
#| "using the same rules. (This process may occur recursively, if those " |
| 258 |
#| "objects in turn have dependencies, and so on.)" |
| 259 |
msgid "" |
| 260 |
"If the object specified by I<path> has dependencies on other shared objects, " |
| 261 |
"then these are also automatically loaded by the dynamic linker using the " |
| 262 |
"same rules. (This process may occur recursively, if those objects in turn " |
| 263 |
"have dependencies, and so on.)" |
| 264 |
msgstr "" |
| 265 |
"Если объект, указанный I<filename>, зависит от других общих объектов, то они " |
| 266 |
"также автоматически загружаются динамическим компоновщиком согласно этим же " |
| 267 |
"правилам (процесс может выполняться рекурсивно, если эти объекты, в свою " |
| 268 |
"очередь, зависят от других, и так далее)." |
| 269 |
|
| 270 |
#. type: Plain text |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
msgid "One of the following two values must be included in I<flags>:" |
| 274 |
msgstr "В I<flags> должно быть одно из двух следующих значений:" |
| 275 |
|
| 276 |
#. type: TP |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
#, no-wrap |
| 280 |
msgid "B<RTLD_LAZY>" |
| 281 |
msgstr "B<RTLD_LAZY>" |
| 282 |
|
| 283 |
#. commit 12b5b6b7f78ea111e89bbf638294a5413c791072 |
| 284 |
#. type: Plain text |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
msgid "" |
| 288 |
"Perform lazy binding. Resolve symbols only as the code that references them " |
| 289 |
"is executed. If the symbol is never referenced, then it is never resolved. " |
| 290 |
"(Lazy binding is performed only for function references; references to " |
| 291 |
"variables are always immediately bound when the shared object is loaded.) " |
| 292 |
"Since glibc 2.1.1, this flag is overridden by the effect of the " |
| 293 |
"B<LD_BIND_NOW> environment variable." |
| 294 |
msgstr "" |
| 295 |
"Выполнять позднее связывание (lazy binding). Выполняется поиск только тех " |
| 296 |
"символов, на которые есть ссылки из кода. Если на символ никогда не " |
| 297 |
"ссылаются, то он никогда не будет разрешён (позднее связывание выполняется " |
| 298 |
"только при ссылке на функции; ссылки на переменные всегда привязываются " |
| 299 |
"сразу при загрузке общего объекта). Начиная с libc 2.1.1, этот флаг " |
| 300 |
"заменяется на значение переменной окружения B<LD_BIND_NOW>." |
| 301 |
|
| 302 |
#. type: TP |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "B<RTLD_NOW>" |
| 307 |
msgstr "B<RTLD_NOW>" |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "" |
| 313 |
"If this value is specified, or the environment variable B<LD_BIND_NOW> is " |
| 314 |
"set to a nonempty string, all undefined symbols in the shared object are " |
| 315 |
"resolved before B<dlopen>() returns. If this cannot be done, an error is " |
| 316 |
"returned." |
| 317 |
msgstr "" |
| 318 |
"Если указано данное значение или переменная окружения B<LD_BIND_NOW> не " |
| 319 |
"пуста, то все неопределённые символы в общем объекте ищутся до возврата из " |
| 320 |
"B<dlopen>(). Если этого сделать не удаётся, то возвращается ошибка." |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "Zero or more of the following values may also be ORed in I<flags>:" |
| 326 |
msgstr "" |
| 327 |
"Также в В I<flags> может быть ноль или более значение, объединяемых по ИЛИ:" |
| 328 |
|
| 329 |
#. type: TP |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
#, no-wrap |
| 333 |
msgid "B<RTLD_GLOBAL>" |
| 334 |
msgstr "B<RTLD_GLOBAL>" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"The symbols defined by this shared object will be made available for symbol " |
| 341 |
"resolution of subsequently loaded shared objects." |
| 342 |
msgstr "" |
| 343 |
"Символы, определённые в этом общем объекте, будут доступны при поиске " |
| 344 |
"символов, для общих объектов, загружаемых далее." |
| 345 |
|
| 346 |
#. type: TP |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "B<RTLD_LOCAL>" |
| 351 |
msgstr "B<RTLD_LOCAL>" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
msgid "" |
| 357 |
"This is the converse of B<RTLD_GLOBAL>, and the default if neither flag is " |
| 358 |
"specified. Symbols defined in this shared object are not made available to " |
| 359 |
"resolve references in subsequently loaded shared objects." |
| 360 |
msgstr "" |
| 361 |
"Противоположность B<RTLD_GLOBAL>, используется по умолчанию, если не задано " |
| 362 |
"ни одного флага. Символы, определённые в этом общем объекте, не будут " |
| 363 |
"доступны при разрешении ссылок для общих объектов, загружаемых далее." |
| 364 |
|
| 365 |
#. type: TP |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
#, no-wrap |
| 369 |
msgid "B<RTLD_NODELETE> (since glibc 2.2)" |
| 370 |
msgstr "B<RTLD_NODELETE> (начиная с glibc 2.2)" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"Do not unload the shared object during B<dlclose>(). Consequently, the " |
| 377 |
"object's static and global variables are not reinitialized if the object is " |
| 378 |
"reloaded with B<dlopen>() at a later time." |
| 379 |
msgstr "" |
| 380 |
"Не выгружать общий объект при B<dlclose>(). В результате статические и " |
| 381 |
"глобальные переменные объекта не инициализируются повторно, если объект " |
| 382 |
"загружается снова по B<dlopen>()." |
| 383 |
|
| 384 |
#. type: TP |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, no-wrap |
| 388 |
msgid "B<RTLD_NOLOAD> (since glibc 2.2)" |
| 389 |
msgstr "B<RTLD_NOLOAD> (начиная с glibc 2.2)" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
msgid "" |
| 395 |
"Don't load the shared object. This can be used to test if the object is " |
| 396 |
"already resident (B<dlopen>() returns NULL if it is not, or the object's " |
| 397 |
"handle if it is resident). This flag can also be used to promote the flags " |
| 398 |
"on a shared object that is already loaded. For example, a shared object " |
| 399 |
"that was previously loaded with B<RTLD_LOCAL> can be reopened with " |
| 400 |
"B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>." |
| 401 |
msgstr "" |
| 402 |
"Не загружать общий объект. Это можно использовать для тестирования того, что " |
| 403 |
"объект уже загружен (B<dlopen>() возвращает NULL, если нет, или описатель " |
| 404 |
"объекта в противном случае). Данный флаг также можно использовать для " |
| 405 |
"изменения флагов уже загруженного объекта. Например, общий объект, который " |
| 406 |
"был загружен ранее с B<RTLD_LOCAL>, можно открыть повторно с B<RTLD_NOLOAD\\ " |
| 407 |
"|\\ RTLD_GLOBAL>." |
| 408 |
|
| 409 |
#. type: TP |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "B<RTLD_DEEPBIND> (since glibc 2.3.4)" |
| 414 |
msgstr "B<RTLD_DEEPBIND> (начиная с glibc 2.3.4)" |
| 415 |
|
| 416 |
#. Inimitably described by UD in |
| 417 |
#. http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html. |
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "" |
| 422 |
"Place the lookup scope of the symbols in this shared object ahead of the " |
| 423 |
"global scope. This means that a self-contained object will use its own " |
| 424 |
"symbols in preference to global symbols with the same name contained in " |
| 425 |
"objects that have already been loaded." |
| 426 |
msgstr "" |
| 427 |
"Задать объекта, в котором поиск символов будет осуществляться перед поиском " |
| 428 |
"в области глобальных символов. Это означает, что самодостаточный объект " |
| 429 |
"будет использовать свои собственные символы вместо глобальных символов с тем " |
| 430 |
"же именем, содержащихся в объектах, которые уже были загружены." |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 434 |
#: opensuse-tumbleweed |
| 435 |
#, fuzzy |
| 436 |
#| msgid "" |
| 437 |
#| "If I<filename> is NULL, then the returned handle is for the main " |
| 438 |
#| "program. When given to B<dlsym>(), this handle causes a search for a " |
| 439 |
#| "symbol in the main program, followed by all shared objects loaded at " |
| 440 |
#| "program startup, and then all shared objects loaded by B<dlopen>() with " |
| 441 |
#| "the flag B<RTLD_GLOBAL>." |
| 442 |
msgid "" |
| 443 |
"If I<path> is NULL, then the returned handle is for the main program. When " |
| 444 |
"given to B<dlsym>(3), this handle causes a search for a symbol in the main " |
| 445 |
"program, followed by all shared objects loaded at program startup, and then " |
| 446 |
"all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 447 |
msgstr "" |
| 448 |
"Если значение I<filename> равно NULL, то возвращается описатель для главной " |
| 449 |
"программы. При передаче в B<dlsym>(), этот описатель вызывает поиск символа " |
| 450 |
"в главной программе, затем во все общих объектах, загруженных при запуске " |
| 451 |
"программы, и затем во всех общих объектах, загруженных B<dlopen>() с флагом " |
| 452 |
"B<RTLD_GLOBAL>." |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "" |
| 458 |
"Symbol references in the shared object are resolved using (in order): " |
| 459 |
"symbols in the link map of objects loaded for the main program and its " |
| 460 |
"dependencies; symbols in shared objects (and their dependencies) that were " |
| 461 |
"previously opened with B<dlopen>() using the B<RTLD_GLOBAL> flag; and " |
| 462 |
"definitions in the shared object itself (and any dependencies that were " |
| 463 |
"loaded for that object)." |
| 464 |
msgstr "" |
| 465 |
"Поиск символьных ссылок общего объекта производится следующим образом (в " |
| 466 |
"таком порядке): символы в карте ссылок объектов, загруженных для главной " |
| 467 |
"программы и её зависимостей; символы в общих объектах (и их зависимостях), " |
| 468 |
"которые были открыты ранее с помощью B<dlopen>() и флага B<RTLD_GLOBAL>; " |
| 469 |
"определения в самом общем объекте (и любых зависимостях, которые были " |
| 470 |
"загружены для этого объекта)." |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
msgid "" |
| 476 |
"Any global symbols in the executable that were placed into its dynamic " |
| 477 |
"symbol table by B<ld>(1) can also be used to resolve references in a " |
| 478 |
"dynamically loaded shared object. Symbols may be placed in the dynamic " |
| 479 |
"symbol table either because the executable was linked with the flag \"-" |
| 480 |
"rdynamic\" (or, synonymously, \"--export-dynamic\"), which causes all of the " |
| 481 |
"executable's global symbols to be placed in the dynamic symbol table, or " |
| 482 |
"because B<ld>(1) noted a dependency on a symbol in another object during " |
| 483 |
"static linking." |
| 484 |
msgstr "" |
| 485 |
"Все глобальные символы в исполняемом файле, которые были помещены в его " |
| 486 |
"таблицу динамических символов посредством B<ld>(1), также могут быть " |
| 487 |
"использованы при поиске ссылок динамически загружаемого общего объекта. " |
| 488 |
"Символы могут попасть в таблицу динамических символов из-за того, что " |
| 489 |
"исполняемый файл был скомпонован с флагом «-rdynamic» (или его синонимом «--" |
| 490 |
"export-dynamic»), который помещает что все глобальные символы исполняемого " |
| 491 |
"файла в таблицу динамических символов, или из-за того, что B<ld>(1) " |
| 492 |
"определил зависимость от символа из другого объекта при статической " |
| 493 |
"компоновке." |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
msgid "" |
| 499 |
"If the same shared object is opened again with B<dlopen>(), the same object " |
| 500 |
"handle is returned. The dynamic linker maintains reference counts for " |
| 501 |
"object handles, so a dynamically loaded shared object is not deallocated " |
| 502 |
"until B<dlclose>() has been called on it as many times as B<dlopen>() has " |
| 503 |
"succeeded on it. Constructors (see below) are called only when the object " |
| 504 |
"is actually loaded into memory (i.e., when the reference count increases to " |
| 505 |
"1)." |
| 506 |
msgstr "" |
| 507 |
"Если общий объект загружается с помощью B<dlopen>() повторно, то " |
| 508 |
"возвращается тот же описатель на объект. Динамический компоновщик ведёт " |
| 509 |
"счётчик ссылок для описателей объектов, поэтому динамически загруженный " |
| 510 |
"общий объект не высвобождается B<dlclose>() до тех пор, пока он не будет " |
| 511 |
"вызвана столько же раз сколько и B<dlopen>(). Процедуры инициализации " |
| 512 |
"(смотрите ниже) вызываются только когда объект действительно загружается в " |
| 513 |
"память (т. е., когда счётчик ссылок увеличивается на 1)." |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "" |
| 519 |
"A subsequent B<dlopen>() call that loads the same shared object with " |
| 520 |
"B<RTLD_NOW> may force symbol resolution for a shared object earlier loaded " |
| 521 |
"with B<RTLD_LAZY>. Similarly, an object that was previously opened with " |
| 522 |
"B<RTLD_LOCAL> can be promoted to B<RTLD_GLOBAL> in a subsequent B<dlopen>()." |
| 523 |
msgstr "" |
| 524 |
"Последующий вызов B<dlopen>(), загружающий тот же общий объект с флагом " |
| 525 |
"B<RTLD_NOW>, может привести к поиску символов для общего объекта ранее " |
| 526 |
"загруженного с флагом B<RTLD_LAZY>. Схожим образом объект, открытый ранее с " |
| 527 |
"флагом B<RTLD_LOCAL>, в последующем вызове B<dlopen>() может быть " |
| 528 |
"преобразован в B<RTLD_GLOBAL>." |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
msgid "If B<dlopen>() fails for any reason, it returns NULL." |
| 534 |
msgstr "" |
| 535 |
"Если по какой-то причине B<dlopen>() завершается неудачно, то возвращается " |
| 536 |
"NULL." |
| 537 |
|
| 538 |
#. type: SS |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
#, no-wrap |
| 542 |
msgid "dlmopen()" |
| 543 |
msgstr "dlmopen()" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 547 |
#: opensuse-tumbleweed |
| 548 |
#, fuzzy |
| 549 |
#| msgid "" |
| 550 |
#| "This function performs the same task as B<dlopen>()\\(emthe I<filename> " |
| 551 |
#| "and I<flags> arguments, as well as the return value, are the same, except " |
| 552 |
#| "for the differences noted below." |
| 553 |
msgid "" |
| 554 |
"This function performs the same task as B<dlopen>()\\[em]the I<path> and " |
| 555 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 556 |
"the differences noted below." |
| 557 |
msgstr "" |
| 558 |
"Данная функция делает то же самое что и B<dlopen>(), аргументы I<filename> и " |
| 559 |
"I<flags>, а также возвращаемое значение — такие же, отличия описаны далее." |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"The B<dlmopen>() function differs from B<dlopen>() primarily in that it " |
| 566 |
"accepts an additional argument, I<lmid>, that specifies the link-map list " |
| 567 |
"(also referred to as a I<namespace>) in which the shared object should be " |
| 568 |
"loaded. (By comparison, B<dlopen>() adds the dynamically loaded shared " |
| 569 |
"object to the same namespace as the shared object from which the " |
| 570 |
"B<dlopen>() call is made.) The I<Lmid_t> type is an opaque handle that " |
| 571 |
"refers to a namespace." |
| 572 |
msgstr "" |
| 573 |
"Функция B<dlmopen>() отличается от B<dlopen>(), главным образом в том, что " |
| 574 |
"имеет дополнительный аргумент I<lmid>, в котором задаётся список карт связей " |
| 575 |
"(link-map list, ещё называемый I<пространством имён>), в который должен быть " |
| 576 |
"загружен общий объект (B<dlopen>() добавляет динамически загружаемый общий " |
| 577 |
"объект в тоже пространство имён, в котором находится общий объект, из " |
| 578 |
"которого был вызван B<dlopen>()). Тип I<Lmid_t> является скрытым описателем, " |
| 579 |
"который ссылается на пространство имён." |
| 580 |
|
| 581 |
#. FIXME: Is using dlinfo() RTLD_DI_LMID the right technique? |
| 582 |
#. type: Plain text |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
msgid "" |
| 586 |
"The I<lmid> argument is either the ID of an existing namespace (which can be " |
| 587 |
"obtained using the B<dlinfo>(3) B<RTLD_DI_LMID> request) or one of the " |
| 588 |
"following special values:" |
| 589 |
msgstr "" |
| 590 |
"В аргументе I<lmid> может быть указан ID существующего пространства имён " |
| 591 |
"(который может быть получен с помощью B<dlinfo>(3) с запросом " |
| 592 |
"B<RTLD_DI_LMID>) или одно из следующих специальных значений:" |
| 593 |
|
| 594 |
#. type: TP |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
#, no-wrap |
| 598 |
msgid "B<LM_ID_BASE>" |
| 599 |
msgstr "B<LM_ID_BASE>" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"Load the shared object in the initial namespace (i.e., the application's " |
| 606 |
"namespace)." |
| 607 |
msgstr "" |
| 608 |
"Загрузить общий объект в начальное пространство имён (т. е., в пространство " |
| 609 |
"имён приложения)." |
| 610 |
|
| 611 |
#. type: TP |
| 612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
#, no-wrap |
| 615 |
msgid "B<LM_ID_NEWLM>" |
| 616 |
msgstr "B<LM_ID_NEWLM>" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"Create a new namespace and load the shared object in that namespace. The " |
| 623 |
"object must have been correctly linked to reference all of the other shared " |
| 624 |
"objects that it requires, since the new namespace is initially empty." |
| 625 |
msgstr "" |
| 626 |
"Создать новое пространство имён и загрузить в него общий объект. Объект " |
| 627 |
"должен быть корректно скомпонован с ссылками на все остальные общие объекты, " |
| 628 |
"которые ему требуются, так как новое пространство имён изначально пустое." |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 632 |
#: opensuse-tumbleweed |
| 633 |
#, fuzzy |
| 634 |
#| msgid "" |
| 635 |
#| "If I<filename> is NULL, then the only permitted value for I<lmid> is " |
| 636 |
#| "B<LM_ID_BASE>." |
| 637 |
msgid "" |
| 638 |
"If I<path> is NULL, then the only permitted value for I<lmid> is " |
| 639 |
"B<LM_ID_BASE>." |
| 640 |
msgstr "" |
| 641 |
"Если I<filename> равно NULL, то для I<lmid> разрешено только значение " |
| 642 |
"B<LM_ID_BASE>." |
| 643 |
|
| 644 |
#. type: SS |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
#, no-wrap |
| 648 |
msgid "dlclose()" |
| 649 |
msgstr "dlclose()" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
msgid "" |
| 655 |
"The function B<dlclose>() decrements the reference count on the dynamically " |
| 656 |
"loaded shared object referred to by I<handle>." |
| 657 |
msgstr "" |
| 658 |
"Функция B<dlclose>() уменьшает счётчик ссылок на динамически загружаемый " |
| 659 |
"общий объект, на который ссылается I<handle>." |
| 660 |
|
| 661 |
#. type: Plain text |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
msgid "" |
| 665 |
"If the object's reference count drops to zero and no symbols in this object " |
| 666 |
"are required by other objects, then the object is unloaded after first " |
| 667 |
"calling any destructors defined for the object. (Symbols in this object " |
| 668 |
"might be required in another object because this object was opened with the " |
| 669 |
"B<RTLD_GLOBAL> flag and one of its symbols satisfied a relocation in another " |
| 670 |
"object.)" |
| 671 |
msgstr "" |
| 672 |
"Если счётчик ссылок достигает нуля и символы этого объекта не нужны другим " |
| 673 |
"объектам, то объект выгружается после первого вызова любого деструктора, " |
| 674 |
"определённого в объекте (символы в этом объекте могут требоваться в другом " |
| 675 |
"объекте из-за того, что этот объект был открыт с флагом B<RTLD_GLOBAL> и " |
| 676 |
"один из его символов совпадает с расположением из другого объекта)." |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
msgid "" |
| 682 |
"All shared objects that were automatically loaded when B<dlopen>() was " |
| 683 |
"invoked on the object referred to by I<handle> are recursively closed in the " |
| 684 |
"same manner." |
| 685 |
msgstr "" |
| 686 |
"Все общие объекты, которые были автоматически загружены при вызове " |
| 687 |
"B<dlopen>() для объекта, на который ссылается I<handle>, рекурсивно " |
| 688 |
"закрываются таким же способом." |
| 689 |
|
| 690 |
#. type: Plain text |
| 691 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 692 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 693 |
msgid "" |
| 694 |
"A successful return from B<dlclose>() does not guarantee that the symbols " |
| 695 |
"associated with I<handle> are removed from the caller's address space. In " |
| 696 |
"addition to references resulting from explicit B<dlopen>() calls, a shared " |
| 697 |
"object may have been implicitly loaded (and reference counted) because of " |
| 698 |
"dependencies in other shared objects. Only when all references have been " |
| 699 |
"released can the shared object be removed from the address space." |
| 700 |
msgstr "" |
| 701 |
"Успешный возврат из B<dlclose>() не гарантирует, что символы, связанные с " |
| 702 |
"I<handle> удалятся из адресного пространства вызывающего. В дополнении к " |
| 703 |
"ссылкам, полученным из-за явного вызова B<dlopen>(), общий объект может быть " |
| 704 |
"загружен неявно (и увеличится счётчик ссылок), так как от него зависят " |
| 705 |
"другие общие объекты. Общий объект будет удалён из адресного пространства " |
| 706 |
"только когда будут удалены все ссылки на него." |
| 707 |
|
| 708 |
#. type: SH |
| 709 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 710 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 711 |
#, no-wrap |
| 712 |
msgid "RETURN VALUE" |
| 713 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "" |
| 719 |
"On success, B<dlopen>() and B<dlmopen>() return a non-NULL handle for the " |
| 720 |
"loaded object. On error (file could not be found, was not readable, had the " |
| 721 |
"wrong format, or caused errors during loading), these functions return NULL." |
| 722 |
msgstr "" |
| 723 |
"При успешном выполнении B<dlopen>() и B<dlmopen>() для загруженного объекта " |
| 724 |
"возвращают описатель не равный NULL. При ошибке (файл не найден, недоступен " |
| 725 |
"для чтения, имеет неправильный формат или возникли ошибке при загрузке) эти " |
| 726 |
"функции возвращают NULL." |
| 727 |
|
| 728 |
#. type: Plain text |
| 729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 731 |
msgid "" |
| 732 |
"On success, B<dlclose>() returns 0; on error, it returns a nonzero value." |
| 733 |
msgstr "" |
| 734 |
"При успешном выполнении B<dlclose>() возвращает 0; при ошибке возвращается " |
| 735 |
"ненулевое значение." |
| 736 |
|
| 737 |
#. type: Plain text |
| 738 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 739 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 740 |
msgid "Errors from these functions can be diagnosed using B<dlerror>(3)." |
| 741 |
msgstr "" |
| 742 |
"Ошибки, возникшие в этих функциях, можно определить с помощью B<dlerror>(3)." |
| 743 |
|
| 744 |
#. type: SH |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
#, no-wrap |
| 748 |
msgid "ATTRIBUTES" |
| 749 |
msgstr "АТРИБУТЫ" |
| 750 |
|
| 751 |
#. type: Plain text |
| 752 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 753 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 754 |
msgid "" |
| 755 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 756 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 757 |
|
| 758 |
#. type: tbl table |
| 759 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 760 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 761 |
#, no-wrap |
| 762 |
msgid "Interface" |
| 763 |
msgstr "Интерфейс" |
| 764 |
|
| 765 |
#. type: tbl table |
| 766 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 767 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 768 |
#, no-wrap |
| 769 |
msgid "Attribute" |
| 770 |
msgstr "Атрибут" |
| 771 |
|
| 772 |
#. type: tbl table |
| 773 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 774 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 775 |
#, no-wrap |
| 776 |
msgid "Value" |
| 777 |
msgstr "Значение" |
| 778 |
|
| 779 |
#. type: tbl table |
| 780 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 781 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 782 |
#, no-wrap |
| 783 |
msgid ".na\n" |
| 784 |
msgstr ".na\n" |
| 785 |
|
| 786 |
#. type: tbl table |
| 787 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 788 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 789 |
#, no-wrap |
| 790 |
msgid ".nh\n" |
| 791 |
msgstr ".nh\n" |
| 792 |
|
| 793 |
#. type: tbl table |
| 794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 795 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 796 |
#, no-wrap |
| 797 |
msgid "" |
| 798 |
"B<dlopen>(),\n" |
| 799 |
"B<dlmopen>(),\n" |
| 800 |
"B<dlclose>()" |
| 801 |
msgstr "" |
| 802 |
"B<dlopen>(),\n" |
| 803 |
"B<dlmopen>(),\n" |
| 804 |
"B<dlclose>()" |
| 805 |
|
| 806 |
#. type: tbl table |
| 807 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 808 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 809 |
#, no-wrap |
| 810 |
msgid "Thread safety" |
| 811 |
msgstr "Безвредность в нитях" |
| 812 |
|
| 813 |
#. type: tbl table |
| 814 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 815 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 816 |
#, no-wrap |
| 817 |
msgid "MT-Safe" |
| 818 |
msgstr "MT-Safe" |
| 819 |
|
| 820 |
#. type: SH |
| 821 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 822 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 823 |
#, no-wrap |
| 824 |
msgid "STANDARDS" |
| 825 |
msgstr "СТАНДАРТЫ" |
| 826 |
|
| 827 |
#. type: TP |
| 828 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 829 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 830 |
#, fuzzy, no-wrap |
| 831 |
#| msgid "B<open>(2)" |
| 832 |
msgid "B<dlopen>()" |
| 833 |
msgstr "B<open>(2)" |
| 834 |
|
| 835 |
#. type: TQ |
| 836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 837 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 838 |
#, fuzzy, no-wrap |
| 839 |
#| msgid "B<close>(2)" |
| 840 |
msgid "B<dlclose>()" |
| 841 |
msgstr "B<close>(2)" |
| 842 |
|
| 843 |
#. type: Plain text |
| 844 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 845 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 846 |
msgid "POSIX.1-2008." |
| 847 |
msgstr "POSIX.1-2008." |
| 848 |
|
| 849 |
#. type: TP |
| 850 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 851 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
#, fuzzy, no-wrap |
| 853 |
#| msgid "dlmopen()" |
| 854 |
msgid "B<dlmopen>()" |
| 855 |
msgstr "dlmopen()" |
| 856 |
|
| 857 |
#. type: TQ |
| 858 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 859 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 860 |
#, fuzzy, no-wrap |
| 861 |
#| msgid "B<RTLD_LOCAL>" |
| 862 |
msgid "B<RTLD_NOLOAD>" |
| 863 |
msgstr "B<RTLD_LOCAL>" |
| 864 |
|
| 865 |
#. type: TQ |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
#, fuzzy, no-wrap |
| 869 |
#| msgid "B<RTLD_NOW>" |
| 870 |
msgid "B<RTLD_NODELETE>" |
| 871 |
msgstr "B<RTLD_NOW>" |
| 872 |
|
| 873 |
#. type: Plain text |
| 874 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 875 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 876 |
msgid "GNU." |
| 877 |
msgstr "GNU." |
| 878 |
|
| 879 |
#. type: TP |
| 880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 881 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 882 |
#, fuzzy, no-wrap |
| 883 |
#| msgid "B<RTLD_NOW>" |
| 884 |
msgid "B<RTLD_DEEPBIND>" |
| 885 |
msgstr "B<RTLD_NOW>" |
| 886 |
|
| 887 |
#. type: Plain text |
| 888 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 889 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 890 |
msgid "Solaris." |
| 891 |
msgstr "" |
| 892 |
|
| 893 |
#. type: SH |
| 894 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 895 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 896 |
#, no-wrap |
| 897 |
msgid "HISTORY" |
| 898 |
msgstr "ИСТОРИЯ" |
| 899 |
|
| 900 |
#. type: Plain text |
| 901 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 902 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 903 |
msgid "glibc 2.0. POSIX.1-2001." |
| 904 |
msgstr "glibc 2.0. POSIX.1-2001." |
| 905 |
|
| 906 |
#. type: Plain text |
| 907 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 908 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 909 |
msgid "glibc 2.3.4." |
| 910 |
msgstr "glibc 2.3.4." |
| 911 |
|
| 912 |
#. type: SH |
| 913 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 914 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 915 |
#, no-wrap |
| 916 |
msgid "NOTES" |
| 917 |
msgstr "ПРИМЕЧАНИЯ" |
| 918 |
|
| 919 |
#. type: SS |
| 920 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 921 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 922 |
#, no-wrap |
| 923 |
msgid "dlmopen() and namespaces" |
| 924 |
msgstr "Функция dlmopen() и пространства имён" |
| 925 |
|
| 926 |
#. type: Plain text |
| 927 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 928 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 929 |
msgid "" |
| 930 |
"A link-map list defines an isolated namespace for the resolution of symbols " |
| 931 |
"by the dynamic linker. Within a namespace, dependent shared objects are " |
| 932 |
"implicitly loaded according to the usual rules, and symbol references are " |
| 933 |
"likewise resolved according to the usual rules, but such resolution is " |
| 934 |
"confined to the definitions provided by the objects that have been " |
| 935 |
"(explicitly and implicitly) loaded into the namespace." |
| 936 |
msgstr "" |
| 937 |
"Списком карты связей задаётся изолированное пространство имён для " |
| 938 |
"определения символов динамическим компоновщиком. Внутри пространства имён " |
| 939 |
"зависимые общие объекты неявно загружаются по обычным правилам, символьные " |
| 940 |
"ссылки разрешаются подобным образом, но при этом учитываются только те " |
| 941 |
"объекты, которые были загружены (явно и неявно) в пространство имён." |
| 942 |
|
| 943 |
#. type: Plain text |
| 944 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 945 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 946 |
#, fuzzy |
| 947 |
#| msgid "" |
| 948 |
#| "The B<dlmopen>() function permits object-load isolation\\(emthe ability " |
| 949 |
#| "to load a shared object in a new namespace without exposing the rest of " |
| 950 |
#| "the application to the symbols made available by the new object. Note " |
| 951 |
#| "that the use of the B<RTLD_LOCAL> flag is not sufficient for this " |
| 952 |
#| "purpose, since it prevents a shared object's symbols from being available " |
| 953 |
#| "to I<any> other shared object. In some cases, we may want to make the " |
| 954 |
#| "symbols provided by a dynamically loaded shared object available to (a " |
| 955 |
#| "subset of) other shared objects without exposing those symbols to the " |
| 956 |
#| "entire application. This can be achieved by using a separate namespace " |
| 957 |
#| "and the B<RTLD_GLOBAL> flag." |
| 958 |
msgid "" |
| 959 |
"The B<dlmopen>() function permits object-load isolation\\[em]the ability to " |
| 960 |
"load a shared object in a new namespace without exposing the rest of the " |
| 961 |
"application to the symbols made available by the new object. Note that the " |
| 962 |
"use of the B<RTLD_LOCAL> flag is not sufficient for this purpose, since it " |
| 963 |
"prevents a shared object's symbols from being available to I<any> other " |
| 964 |
"shared object. In some cases, we may want to make the symbols provided by a " |
| 965 |
"dynamically loaded shared object available to (a subset of) other shared " |
| 966 |
"objects without exposing those symbols to the entire application. This can " |
| 967 |
"be achieved by using a separate namespace and the B<RTLD_GLOBAL> flag." |
| 968 |
msgstr "" |
| 969 |
"Функция B<dlmopen>() позволяет достичь изоляции загружаемых объектов — " |
| 970 |
"загружает общий объект в новое пространство имён без показа символов всему " |
| 971 |
"приложению, а только новому объекту. Заметим, что использование флага " |
| 972 |
"B<RTLD_LOCAL> недостаточно для этой цели, так как он делает недоступным " |
| 973 |
"символы общего объекта I<любому> другому общему объекту. В некоторых случаях " |
| 974 |
"может понадобиться, чтобы символы динамически загружаемого общего объекта " |
| 975 |
"были доступны другим общим объектам (но не всем объектам) без показа этих " |
| 976 |
"символов всему приложению. Этого можно достичь используя отдельное " |
| 977 |
"пространство имён и флаг B<RTLD_GLOBAL>." |
| 978 |
|
| 979 |
#. type: Plain text |
| 980 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 981 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 982 |
msgid "" |
| 983 |
"The B<dlmopen>() function also can be used to provide better isolation than " |
| 984 |
"the B<RTLD_LOCAL> flag. In particular, shared objects loaded with " |
| 985 |
"B<RTLD_LOCAL> may be promoted to B<RTLD_GLOBAL> if they are dependencies of " |
| 986 |
"another shared object loaded with B<RTLD_GLOBAL>. Thus, B<RTLD_LOCAL> is " |
| 987 |
"insufficient to isolate a loaded shared object except in the (uncommon) " |
| 988 |
"case where one has explicit control over all shared object dependencies." |
| 989 |
msgstr "" |
| 990 |
"Функцию B<dlmopen>() также можно использовать для получения изолированности, " |
| 991 |
"большей чем с флагом B<RTLD_LOCAL>. В частности, общие объекты, загруженные " |
| 992 |
"с B<RTLD_LOCAL>, могут быть видимы при флаге B<RTLD_GLOBAL>, если они " |
| 993 |
"зависят от другого общего объекта, загруженного с флагом B<RTLD_GLOBAL>. То " |
| 994 |
"есть, B<RTLD_LOCAL> недостаточно изолирует загружаемый общий объект, за " |
| 995 |
"исключением случая (редкого), где он явно контролирует зависимости всех " |
| 996 |
"загружаемых общих объектов." |
| 997 |
|
| 998 |
#. type: Plain text |
| 999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1000 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1001 |
msgid "" |
| 1002 |
"Possible uses of B<dlmopen>() are plugins where the author of the plugin-" |
| 1003 |
"loading framework can't trust the plugin authors and does not wish any " |
| 1004 |
"undefined symbols from the plugin framework to be resolved to plugin " |
| 1005 |
"symbols. Another use is to load the same object more than once. Without " |
| 1006 |
"the use of B<dlmopen>(), this would require the creation of distinct copies " |
| 1007 |
"of the shared object file. Using B<dlmopen>(), this can be achieved by " |
| 1008 |
"loading the same shared object file into different namespaces." |
| 1009 |
msgstr "" |
| 1010 |
"Возможный случай применения B<dlmopen>() — модули, где автор инфраструктуры " |
| 1011 |
"модулей не может доверять авторам модулей и не хочет, чтобы все " |
| 1012 |
"неопределённые символы инфраструктуры модулей определялись из модулей. " |
| 1013 |
"Другой случай использования — загрузка одного объекта несколько раз. Без " |
| 1014 |
"B<dlmopen>() это потребовало бы создание отдельных копий файлов общего " |
| 1015 |
"объекта. С помощью B<dlmopen>() можно загрузить один файл общего объекта в " |
| 1016 |
"разные пространства имён." |
| 1017 |
|
| 1018 |
#. DL_NNS |
| 1019 |
#. type: Plain text |
| 1020 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1021 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1022 |
msgid "The glibc implementation supports a maximum of 16 namespaces." |
| 1023 |
msgstr "В реализации glibc поддерживается до 16 пространств имён." |
| 1024 |
|
| 1025 |
#. type: SS |
| 1026 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1027 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1028 |
#, no-wrap |
| 1029 |
msgid "Initialization and finalization functions" |
| 1030 |
msgstr "Функции инициализации и завершения" |
| 1031 |
|
| 1032 |
#. info gcc "C Extensions" "Function attributes" |
| 1033 |
#. type: Plain text |
| 1034 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1035 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1036 |
msgid "" |
| 1037 |
"Shared objects may export functions using the " |
| 1038 |
"B<__attribute__((constructor))> and B<__attribute__((destructor))> function " |
| 1039 |
"attributes. Constructor functions are executed before B<dlopen>() returns, " |
| 1040 |
"and destructor functions are executed before B<dlclose>() returns. A " |
| 1041 |
"shared object may export multiple constructors and destructors, and " |
| 1042 |
"priorities can be associated with each function to determine the order in " |
| 1043 |
"which they are executed. See the B<gcc> info pages (under \"Function " |
| 1044 |
"attributes\") for further information." |
| 1045 |
msgstr "" |
| 1046 |
"Общие объекты могут экспортировать с помощью атрибутов функций " |
| 1047 |
"B<__attribute__((constructor))> и B<__attribute__((destructor))>. Функции-" |
| 1048 |
"конструкторы выполняются перед возвратом из B<dlopen>(), а функции-" |
| 1049 |
"деструкторы выполняются перед возвратом из B<dlclose>(). Общий объект может " |
| 1050 |
"экспортировать несколько конструкторов и деструкторов, с каждой функцией " |
| 1051 |
"может быть связан приоритет, которым определяется порядок выполнения " |
| 1052 |
"функций. Подробней смотрите info-страницу B<gcc> (раздел «Атрибуты функции»)." |
| 1053 |
|
| 1054 |
#. type: Plain text |
| 1055 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1056 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1057 |
msgid "" |
| 1058 |
"An older method of (partially) achieving the same result is via the use of " |
| 1059 |
"two special symbols recognized by the linker: B<_init> and B<_fini>. If a " |
| 1060 |
"dynamically loaded shared object exports a routine named B<_init>(), then " |
| 1061 |
"that code is executed after loading a shared object, before B<dlopen>() " |
| 1062 |
"returns. If the shared object exports a routine named B<_fini>(), then that " |
| 1063 |
"routine is called just before the object is unloaded. In this case, one " |
| 1064 |
"must avoid linking against the system startup files, which contain default " |
| 1065 |
"versions of these files; this can be done by using the B<gcc>(1) I<-" |
| 1066 |
"nostartfiles> command-line option." |
| 1067 |
msgstr "" |
| 1068 |
"Старым способом достижения того же (частично) результата является " |
| 1069 |
"использование двух специальных символов, распознаваемых компоновщиком: " |
| 1070 |
"B<_init> и B<_fini>. Если динамически загружаемый общий объект экспортирует " |
| 1071 |
"процедуру с именем B<_init>(), то её код выполняется после загрузки общего " |
| 1072 |
"объекта, но возвращения из B<dlopen>(). Если общий объект экспортирует " |
| 1073 |
"процедуру с именем B<_fini>(), то её код выполняется перед выгрузкой " |
| 1074 |
"объекта. В этом случае не должна выполняться компоновка с системными файлами " |
| 1075 |
"начального запуска, в которых содержатся версии по умолчанию этих файлов; " |
| 1076 |
"для этого нужно вызывать B<gcc>(1) с параметром командной строки I<-" |
| 1077 |
"nostartfiles>." |
| 1078 |
|
| 1079 |
#. Using these routines, or the gcc |
| 1080 |
#. .B \-nostartfiles |
| 1081 |
#. or |
| 1082 |
#. .B \-nostdlib |
| 1083 |
#. options, is not recommended. |
| 1084 |
#. Their use may result in undesired behavior, |
| 1085 |
#. since the constructor/destructor routines will not be executed |
| 1086 |
#. (unless special measures are taken). |
| 1087 |
#. .\" void _init(void) __attribute__((constructor)); |
| 1088 |
#. .\" void _fini(void) __attribute__((destructor)); |
| 1089 |
#. type: Plain text |
| 1090 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1091 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1092 |
msgid "" |
| 1093 |
"Use of B<_init> and B<_fini> is now deprecated in favor of the " |
| 1094 |
"aforementioned constructors and destructors, which among other advantages, " |
| 1095 |
"permit multiple initialization and finalization functions to be defined." |
| 1096 |
msgstr "" |
| 1097 |
"Использование B<_init> и B<_fini> теперь не рекомендуется, используйте " |
| 1098 |
"упомянутые конструкторы и деструкторы, которые, среди прочих преимуществ, " |
| 1099 |
"позволяют определять многократно вызываемые функции инициализации и " |
| 1100 |
"завершения." |
| 1101 |
|
| 1102 |
#. type: Plain text |
| 1103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1105 |
msgid "" |
| 1106 |
"Since glibc 2.2.3, B<atexit>(3) can be used to register an exit handler " |
| 1107 |
"that is automatically called when a shared object is unloaded." |
| 1108 |
msgstr "" |
| 1109 |
"Начиная с glibc 2.2.3, B<atexit>(3) может использоваться для регистрации " |
| 1110 |
"обработчика завершения работы, который автоматически вызывается при выгрузке " |
| 1111 |
"общего объекта." |
| 1112 |
|
| 1113 |
#. type: SS |
| 1114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1116 |
#, no-wrap |
| 1117 |
msgid "History" |
| 1118 |
msgstr "История" |
| 1119 |
|
| 1120 |
#. type: Plain text |
| 1121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1123 |
msgid "These functions are part of the dlopen API, derived from SunOS." |
| 1124 |
msgstr "" |
| 1125 |
"Эти функции являются часть программного интерфейса dlopen, возникшего в " |
| 1126 |
"SunOS." |
| 1127 |
|
| 1128 |
#. type: SH |
| 1129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1131 |
#, no-wrap |
| 1132 |
msgid "BUGS" |
| 1133 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 1134 |
|
| 1135 |
#. dlerror(): "invalid mode" |
| 1136 |
#. https://sourceware.org/bugzilla/show_bug.cgi?id=18684 |
| 1137 |
#. type: Plain text |
| 1138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1140 |
msgid "" |
| 1141 |
"As at glibc 2.24, specifying the B<RTLD_GLOBAL> flag when calling " |
| 1142 |
"B<dlmopen>() generates an error. Furthermore, specifying B<RTLD_GLOBAL> " |
| 1143 |
"when calling B<dlopen>() results in a program crash (B<SIGSEGV>) if the " |
| 1144 |
"call is made from any object loaded in a namespace other than the initial " |
| 1145 |
"namespace." |
| 1146 |
msgstr "" |
| 1147 |
"В glibc 2.24 указание флага B<RTLD_GLOBAL> при вызове B<dlmopen>() приводит " |
| 1148 |
"к ошибке. Кроме этого, указание B<RTLD_GLOBAL> при вызове B<dlopen>() " |
| 1149 |
"приводит к падению программы (B<SIGSEGV>), если вызов делается из любого " |
| 1150 |
"объекта, загруженного в пространство имён, отличное от начального " |
| 1151 |
"пространства имён." |
| 1152 |
|
| 1153 |
#. type: SH |
| 1154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1156 |
#, no-wrap |
| 1157 |
msgid "EXAMPLES" |
| 1158 |
msgstr "ПРИМЕРЫ" |
| 1159 |
|
| 1160 |
#. type: Plain text |
| 1161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1163 |
msgid "" |
| 1164 |
"The program below loads the (glibc) math library, looks up the address of " |
| 1165 |
"the B<cos>(3) function, and prints the cosine of 2.0. The following is an " |
| 1166 |
"example of building and running the program:" |
| 1167 |
msgstr "" |
| 1168 |
"Программа, представленная ниже, загружает библиотеку math (glibc), ищет " |
| 1169 |
"адрес функции B<cos>(3) и печатает косинус 2.0. Пример сборки и выполнения " |
| 1170 |
"программы:" |
| 1171 |
|
| 1172 |
#. type: Plain text |
| 1173 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1174 |
#: opensuse-tumbleweed |
| 1175 |
#, fuzzy, no-wrap |
| 1176 |
#| msgid "" |
| 1177 |
#| "$ B<cc dlopen_demo.c -ldl>\n" |
| 1178 |
#| "$ B<./a.out>\n" |
| 1179 |
#| "-0.416147\n" |
| 1180 |
msgid "" |
| 1181 |
"$B< cc dlopen_demo.c -ldl>;\n" |
| 1182 |
"$B< ./a.out>;\n" |
| 1183 |
"-0.416147\n" |
| 1184 |
msgstr "" |
| 1185 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1186 |
"$ B<./a.out>\n" |
| 1187 |
"-0.416147\n" |
| 1188 |
|
| 1189 |
#. type: SS |
| 1190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1192 |
#, no-wrap |
| 1193 |
msgid "Program source" |
| 1194 |
msgstr "Исходный код программы" |
| 1195 |
|
| 1196 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1197 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1198 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1199 |
#. type: Plain text |
| 1200 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1201 |
#: opensuse-tumbleweed |
| 1202 |
#, no-wrap |
| 1203 |
msgid "" |
| 1204 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1205 |
"#include E<lt>stdio.hE<gt>\n" |
| 1206 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1207 |
"\\&\n" |
| 1208 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1209 |
" string such as \"libm.so.6\") */\n" |
| 1210 |
"int\n" |
| 1211 |
"main(void)\n" |
| 1212 |
"{\n" |
| 1213 |
" void *handle;\n" |
| 1214 |
" typeof(double (double)) *cosine;\n" |
| 1215 |
" char *error;\n" |
| 1216 |
"\\&\n" |
| 1217 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1218 |
" if (!handle) {\n" |
| 1219 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1220 |
" exit(EXIT_FAILURE);\n" |
| 1221 |
" }\n" |
| 1222 |
"\\&\n" |
| 1223 |
" dlerror(); /* Clear any existing error */\n" |
| 1224 |
"\\&\n" |
| 1225 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1226 |
"\\&\n" |
| 1227 |
" /* According to the ISO C standard, casting between function\n" |
| 1228 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1229 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1230 |
" proposed the following workaround:\n" |
| 1231 |
"\\&\n" |
| 1232 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1233 |
"\\&\n" |
| 1234 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1235 |
" avoid any compiler warnings.\n" |
| 1236 |
"\\&\n" |
| 1237 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1238 |
" by requiring that conforming implementations support casting\n" |
| 1239 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1240 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1241 |
" cast used in this program. */\n" |
| 1242 |
"\\&\n" |
| 1243 |
" error = dlerror();\n" |
| 1244 |
" if (error != NULL) {\n" |
| 1245 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1246 |
" exit(EXIT_FAILURE);\n" |
| 1247 |
" }\n" |
| 1248 |
"\\&\n" |
| 1249 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1250 |
" dlclose(handle);\n" |
| 1251 |
" exit(EXIT_SUCCESS);\n" |
| 1252 |
"}\n" |
| 1253 |
msgstr "" |
| 1254 |
|
| 1255 |
#. SRC END |
| 1256 |
#. type: SH |
| 1257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1259 |
#, no-wrap |
| 1260 |
msgid "SEE ALSO" |
| 1261 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 1262 |
|
| 1263 |
#. type: Plain text |
| 1264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1266 |
msgid "" |
| 1267 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1268 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1269 |
"B<ldconfig>(8)" |
| 1270 |
msgstr "" |
| 1271 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1272 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1273 |
"B<ldconfig>(8)" |
| 1274 |
|
| 1275 |
#. type: Plain text |
| 1276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1278 |
msgid "gcc info pages, ld info pages" |
| 1279 |
msgstr "Страницы в формате Info для gcc и ld" |
| 1280 |
|
| 1281 |
#. type: TH |
| 1282 |
#: debian-trixie |
| 1283 |
#, no-wrap |
| 1284 |
msgid "2024-06-15" |
| 1285 |
msgstr "15 июня 2024 г." |
| 1286 |
|
| 1287 |
#. type: TH |
| 1288 |
#: debian-trixie |
| 1289 |
#, no-wrap |
| 1290 |
msgid "Linux man-pages 6.9.1" |
| 1291 |
msgstr "Страницы руководства Linux 6.9.1" |
| 1292 |
|
| 1293 |
#. type: Plain text |
| 1294 |
#: debian-trixie |
| 1295 |
msgid "Dynamic linking library (I<libdl>, I<-ldl>)" |
| 1296 |
msgstr "" |
| 1297 |
|
| 1298 |
#. type: Plain text |
| 1299 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1300 |
#, fuzzy, no-wrap |
| 1301 |
#| msgid "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>" |
| 1302 |
msgid "" |
| 1303 |
"B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1304 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 1305 |
msgstr "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>" |
| 1306 |
|
| 1307 |
#. type: Plain text |
| 1308 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1309 |
#, fuzzy, no-wrap |
| 1310 |
#| msgid "B<void *dlmopen (Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>" |
| 1311 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1312 |
msgstr "B<void *dlmopen (Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>" |
| 1313 |
|
| 1314 |
#. type: Plain text |
| 1315 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1316 |
msgid "" |
| 1317 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 1318 |
"file named by the null-terminated string I<filename> and returns an opaque " |
| 1319 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 1320 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 1321 |
"B<dlinfo>(3), and B<dlclose>()." |
| 1322 |
msgstr "" |
| 1323 |
"Функция B<dlopen>() загружает динамический общий объект (общую библиотеку) " |
| 1324 |
"из файла, имя которого указано в строке I<filename> (завершается null) и " |
| 1325 |
"возвращает скрытный описатель на загруженный объект. Данный описатель " |
| 1326 |
"используется другими функциями программного интерфейса dlopen, такими как " |
| 1327 |
"B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3) и B<dlclose>()." |
| 1328 |
|
| 1329 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 1330 |
#. a handle for (something like) the root of the namespace. |
| 1331 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 1332 |
#. the filename==NULL case returns a different handle than |
| 1333 |
#. in the initial namespace. But, on glibc, the same handle is |
| 1334 |
#. returned. This is probably a bug in glibc. |
| 1335 |
#. type: Plain text |
| 1336 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1337 |
msgid "" |
| 1338 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1339 |
"If I<filename> contains a slash (\"/\"), then it is interpreted as a " |
| 1340 |
"(relative or absolute) pathname. Otherwise, the dynamic linker searches for " |
| 1341 |
"the object as follows (see B<ld.so>(8) for further details):" |
| 1342 |
msgstr "" |
| 1343 |
"Если I<filename> равно NULL, то возвращается описатель основной программы. " |
| 1344 |
"Если I<filename> содержит косую черту («/»), то это воспринимается как имя с " |
| 1345 |
"путём (относительным или абсолютным). Иначе динамический компоновщик ищет " |
| 1346 |
"объект в следующих местах (подробности смотрите в B<ld.so>(8)):" |
| 1347 |
|
| 1348 |
#. type: Plain text |
| 1349 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1350 |
msgid "" |
| 1351 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 1352 |
"checked to see whether it contains an entry for I<filename>." |
| 1353 |
msgstr "" |
| 1354 |
"Производится проверка в кэширующем файле I</etc/ld.so.cache> (обслуживается " |
| 1355 |
"B<ldconfig>(8)) на предмет наличия записи для I<filename>." |
| 1356 |
|
| 1357 |
#. type: Plain text |
| 1358 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1359 |
msgid "" |
| 1360 |
"If the object specified by I<filename> has dependencies on other shared " |
| 1361 |
"objects, then these are also automatically loaded by the dynamic linker " |
| 1362 |
"using the same rules. (This process may occur recursively, if those objects " |
| 1363 |
"in turn have dependencies, and so on.)" |
| 1364 |
msgstr "" |
| 1365 |
"Если объект, указанный I<filename>, зависит от других общих объектов, то они " |
| 1366 |
"также автоматически загружаются динамическим компоновщиком согласно этим же " |
| 1367 |
"правилам (процесс может выполняться рекурсивно, если эти объекты, в свою " |
| 1368 |
"очередь, зависят от других, и так далее)." |
| 1369 |
|
| 1370 |
#. type: Plain text |
| 1371 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1372 |
#, fuzzy |
| 1373 |
#| msgid "" |
| 1374 |
#| "If I<filename> is NULL, then the returned handle is for the main " |
| 1375 |
#| "program. When given to B<dlsym>(), this handle causes a search for a " |
| 1376 |
#| "symbol in the main program, followed by all shared objects loaded at " |
| 1377 |
#| "program startup, and then all shared objects loaded by B<dlopen>() with " |
| 1378 |
#| "the flag B<RTLD_GLOBAL>." |
| 1379 |
msgid "" |
| 1380 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1381 |
"When given to B<dlsym>(3), this handle causes a search for a symbol in the " |
| 1382 |
"main program, followed by all shared objects loaded at program startup, and " |
| 1383 |
"then all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 1384 |
msgstr "" |
| 1385 |
"Если значение I<filename> равно NULL, то возвращается описатель для главной " |
| 1386 |
"программы. При передаче в B<dlsym>(), этот описатель вызывает поиск символа " |
| 1387 |
"в главной программе, затем во все общих объектах, загруженных при запуске " |
| 1388 |
"программы, и затем во всех общих объектах, загруженных B<dlopen>() с флагом " |
| 1389 |
"B<RTLD_GLOBAL>." |
| 1390 |
|
| 1391 |
#. type: Plain text |
| 1392 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1393 |
#, fuzzy |
| 1394 |
#| msgid "" |
| 1395 |
#| "This function performs the same task as B<dlopen>()\\(emthe I<filename> " |
| 1396 |
#| "and I<flags> arguments, as well as the return value, are the same, except " |
| 1397 |
#| "for the differences noted below." |
| 1398 |
msgid "" |
| 1399 |
"This function performs the same task as B<dlopen>()\\[em]the I<filename> and " |
| 1400 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 1401 |
"the differences noted below." |
| 1402 |
msgstr "" |
| 1403 |
"Данная функция делает то же самое что и B<dlopen>(), аргументы I<filename> и " |
| 1404 |
"I<flags>, а также возвращаемое значение — такие же, отличия описаны далее." |
| 1405 |
|
| 1406 |
#. type: Plain text |
| 1407 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1408 |
msgid "" |
| 1409 |
"If I<filename> is NULL, then the only permitted value for I<lmid> is " |
| 1410 |
"B<LM_ID_BASE>." |
| 1411 |
msgstr "" |
| 1412 |
"Если I<filename> равно NULL, то для I<lmid> разрешено только значение " |
| 1413 |
"B<LM_ID_BASE>." |
| 1414 |
|
| 1415 |
#. type: Plain text |
| 1416 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1417 |
#, no-wrap |
| 1418 |
msgid "" |
| 1419 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1420 |
"$ B<./a.out>\n" |
| 1421 |
"-0.416147\n" |
| 1422 |
msgstr "" |
| 1423 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1424 |
"$ B<./a.out>\n" |
| 1425 |
"-0.416147\n" |
| 1426 |
|
| 1427 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1428 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1429 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1430 |
#. type: Plain text |
| 1431 |
#: debian-trixie |
| 1432 |
#, no-wrap |
| 1433 |
msgid "" |
| 1434 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1435 |
"#include E<lt>stdio.hE<gt>\n" |
| 1436 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1437 |
"\\&\n" |
| 1438 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1439 |
" string such as \"libm.so.6\") */\n" |
| 1440 |
"int\n" |
| 1441 |
"main(void)\n" |
| 1442 |
"{\n" |
| 1443 |
" void *handle;\n" |
| 1444 |
" double (*cosine)(double);\n" |
| 1445 |
" char *error;\n" |
| 1446 |
"\\&\n" |
| 1447 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1448 |
" if (!handle) {\n" |
| 1449 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1450 |
" exit(EXIT_FAILURE);\n" |
| 1451 |
" }\n" |
| 1452 |
"\\&\n" |
| 1453 |
" dlerror(); /* Clear any existing error */\n" |
| 1454 |
"\\&\n" |
| 1455 |
" cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" |
| 1456 |
"\\&\n" |
| 1457 |
" /* According to the ISO C standard, casting between function\n" |
| 1458 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1459 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1460 |
" proposed the following workaround:\n" |
| 1461 |
"\\&\n" |
| 1462 |
" *(void **) (&cosine) = dlsym(handle, \"cos\");\n" |
| 1463 |
"\\&\n" |
| 1464 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1465 |
" avoid any compiler warnings.\n" |
| 1466 |
"\\&\n" |
| 1467 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1468 |
" by requiring that conforming implementations support casting\n" |
| 1469 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1470 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1471 |
" cast used in this program. */\n" |
| 1472 |
"\\&\n" |
| 1473 |
" error = dlerror();\n" |
| 1474 |
" if (error != NULL) {\n" |
| 1475 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1476 |
" exit(EXIT_FAILURE);\n" |
| 1477 |
" }\n" |
| 1478 |
"\\&\n" |
| 1479 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1480 |
" dlclose(handle);\n" |
| 1481 |
" exit(EXIT_SUCCESS);\n" |
| 1482 |
"}\n" |
| 1483 |
msgstr "" |
| 1484 |
|
| 1485 |
#. type: TH |
| 1486 |
#: fedora-44 fedora-rawhide |
| 1487 |
#, no-wrap |
| 1488 |
msgid "2025-01-05" |
| 1489 |
msgstr "5 января 2025 г." |
| 1490 |
|
| 1491 |
#. type: TH |
| 1492 |
#: fedora-44 fedora-rawhide |
| 1493 |
#, no-wrap |
| 1494 |
msgid "Linux man-pages 6.13" |
| 1495 |
msgstr "Страницы руководства Linux 6.13" |
| 1496 |
|
| 1497 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1498 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1499 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1500 |
#. type: Plain text |
| 1501 |
#: fedora-44 fedora-rawhide |
| 1502 |
#, no-wrap |
| 1503 |
msgid "" |
| 1504 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1505 |
"#include E<lt>stdio.hE<gt>\n" |
| 1506 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1507 |
"\\&\n" |
| 1508 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1509 |
" string such as \"libm.so.6\") */\n" |
| 1510 |
"int\n" |
| 1511 |
"main(void)\n" |
| 1512 |
"{\n" |
| 1513 |
" void *handle;\n" |
| 1514 |
" typeof(double (double)) *cosine;\n" |
| 1515 |
" char *error;\n" |
| 1516 |
"\\&\n" |
| 1517 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1518 |
" if (!handle) {\n" |
| 1519 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1520 |
" exit(EXIT_FAILURE);\n" |
| 1521 |
" }\n" |
| 1522 |
"\\&\n" |
| 1523 |
" dlerror(); /* Clear any existing error */\n" |
| 1524 |
"\\&\n" |
| 1525 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1526 |
"\\&\n" |
| 1527 |
" /* According to the ISO C standard, casting between function\n" |
| 1528 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1529 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1530 |
" proposed the following workaround:\n" |
| 1531 |
"\\&\n" |
| 1532 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1533 |
"\\&\n" |
| 1534 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1535 |
" avoid any compiler warnings.\n" |
| 1536 |
"\\&\n" |
| 1537 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1538 |
" by requiring that conforming implementations support casting\n" |
| 1539 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1540 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1541 |
" cast used in this program. */\n" |
| 1542 |
"\\&\n" |
| 1543 |
" error = dlerror();\n" |
| 1544 |
" if (error != NULL) {\n" |
| 1545 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1546 |
" exit(EXIT_FAILURE);\n" |
| 1547 |
" }\n" |
| 1548 |
"\\&\n" |
| 1549 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1550 |
" dlclose(handle);\n" |
| 1551 |
" exit(EXIT_SUCCESS);\n" |
| 1552 |
"}\n" |
| 1553 |
msgstr "" |
| 1554 |
|
| 1555 |
#. type: TH |
| 1556 |
#: mageia-cauldron |
| 1557 |
#, no-wrap |
| 1558 |
msgid "Linux man-pages 6.17" |
| 1559 |
msgstr "Страницы руководства Linux 6.17" |
| 1560 |
|
| 1561 |
#. type: TH |
| 1562 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1563 |
#, no-wrap |
| 1564 |
msgid "Linux man-pages (unreleased)" |
| 1565 |
msgstr "Страницы руководства Linux (не выпущены)" |