| 1 |
# Polish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Przemek Borys <[email protected]>, 1998. |
| 5 |
# Andrzej Krzysztofowicz <[email protected]>, 2002. |
| 6 |
# Michał Kułach <[email protected]>, 2024, 2025. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:22+0200\n" |
| 11 |
"PO-Revision-Date: 2025-11-30 12:12+0100\n" |
| 12 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 13 |
"Language-Team: Polish <[email protected]>\n" |
| 14 |
"Language: pl\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 19 |
"|| n%100>=20) ? 1 : 2);\n" |
| 20 |
"X-Generator: Lokalize 25.04.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "dlopen" |
| 27 |
msgstr "dlopen" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 31 |
#: opensuse-tumbleweed |
| 32 |
#, no-wrap |
| 33 |
msgid "2026-02-08" |
| 34 |
msgstr "8 lutego 2026 r." |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable |
| 38 |
#, no-wrap |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Linux man-pages 6.18" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "NAZWA" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
msgid "dlclose, dlopen, dlmopen - open and close a shared object" |
| 53 |
msgstr "dlclose, dlopen, dlmopen - otwiera i zamyka obiekt dzielony" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "LIBRARY" |
| 60 |
msgstr "BIBLIOTEKA" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 64 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "Dynamic linking library (I<libdl>,\\ I<-ldl>)" |
| 66 |
msgstr "Biblioteka konsolidacji dynamicznej (I<libdl>,\\ I<-ldl>)" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "SYNOPSIS" |
| 73 |
msgstr "SKŁADNIA" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 80 |
msgstr "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 84 |
#: opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n" |
| 88 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 89 |
msgstr "" |
| 90 |
"B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n" |
| 91 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "B<#define _GNU_SOURCE>\n" |
| 98 |
msgstr "B<#define _GNU_SOURCE>\n" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 102 |
#: opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);>\n" |
| 105 |
msgstr "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);>\n" |
| 106 |
|
| 107 |
#. type: SH |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "DESCRIPTION" |
| 112 |
msgstr "OPIS" |
| 113 |
|
| 114 |
#. type: SS |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "dlopen()" |
| 119 |
msgstr "dlopen()" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 123 |
#: opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 126 |
"file named by the null-terminated string I<path> and returns an opaque " |
| 127 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 128 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 129 |
"B<dlinfo>(3), and B<dlclose>()." |
| 130 |
msgstr "" |
| 131 |
"Funkcja B<dlopen>() ładuje dynamiczny obiekt dzielony (bibliotekę dzieloną) " |
| 132 |
"pliku, o nazwie zawartej w zakończonym znakiem nul łańcuchu I<path> i zwraca " |
| 133 |
"nieprzezroczysty \\[Bq]uchwyt\\[rq] dla tego obiektu dzielonego. Uchwytu " |
| 134 |
"tego używa się z innymi funkcjami z API dlopen, takimi jak B<dlsym>(3), " |
| 135 |
"B<dladdr>(3), B<dlinfo>(3) i B<dlclose>()." |
| 136 |
|
| 137 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 138 |
#. a handle for (something like) the root of the namespace. |
| 139 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 140 |
#. the path==NULL case returns a different handle than |
| 141 |
#. in the initial namespace. But, on glibc, the same handle is |
| 142 |
#. returned. This is probably a bug in glibc. |
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 145 |
#: opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"If I<path> is NULL, then the returned handle is for the main program. If " |
| 148 |
"I<path> contains a slash (\"/\"), then it is interpreted as a (relative or " |
| 149 |
"absolute) pathname. Otherwise, the dynamic linker searches for the object " |
| 150 |
"as follows (see B<ld.so>(8) for further details):" |
| 151 |
msgstr "" |
| 152 |
"Jeśli I<path> wynosi NULL, to zwracany jest uchwyt do głównego programu. " |
| 153 |
"Jeśli I<path> zawiera ukośnik (\\[Bq]/\\[rq]), to jest interpretowana jako " |
| 154 |
"(względna lub absolutna) ścieżka. W innych sytuacjach, konsolidator " |
| 155 |
"dynamiczny szuka obiektu w następujący sposób (więcej szczegółów w " |
| 156 |
"podręczniku B<ld.so>(8)):" |
| 157 |
|
| 158 |
#. type: IP |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
#, no-wrap |
| 162 |
msgid "\\[bu]" |
| 163 |
msgstr "\\[bu]" |
| 164 |
|
| 165 |
#. type: Plain text |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
msgid "" |
| 169 |
"(ELF only) If the calling object (i.e., the shared library or executable " |
| 170 |
"from which B<dlopen>() is called) contains a DT_RPATH tag, and does not " |
| 171 |
"contain a DT_RUNPATH tag, then the directories listed in the DT_RPATH tag " |
| 172 |
"are searched." |
| 173 |
msgstr "" |
| 174 |
"(tylko ELF) Jeśli wywołujący obiekt (tj. biblioteka współdzielona, lub plik " |
| 175 |
"wykonywalny, z którego wywoływane jest B<dlopen>()) zawiera znacznik " |
| 176 |
"DT_RPATH, natomiast nie zawiera znacznika DT_RUNPATH, to przeszukiwane są " |
| 177 |
"katalogi wypisane w znaczniku DT_RPATH." |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"If, at the time that the program was started, the environment variable " |
| 184 |
"B<LD_LIBRARY_PATH> was defined to contain a colon-separated list of " |
| 185 |
"directories, then these are searched. (As a security measure, this variable " |
| 186 |
"is ignored for set-user-ID and set-group-ID programs.)" |
| 187 |
msgstr "" |
| 188 |
"Jeśli, w momencie uruchomienia tego programu, zdefiniowano zmienną " |
| 189 |
"środowiskową B<LD_LIBRARY_PATH> i zawierała ona listę katalogów " |
| 190 |
"rozdzielonych dwukropkiem, to przeszukiwane są te katalogi (ze względów " |
| 191 |
"bezpieczeństwa, zmienna ta jest ignorowana w przypadku programów z " |
| 192 |
"ustawionym bitem set-user-ID lub set-group-ID)." |
| 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 |
"(ELF only) If the calling object contains a DT_RUNPATH tag, then the " |
| 199 |
"directories listed in that tag are searched." |
| 200 |
msgstr "" |
| 201 |
"(tylko ELF) Jeśli wywołujący obiekt zawiera znacznik DT_RUNPATH, to " |
| 202 |
"przeszukiwane są katalogi wypisane w tym znaczniku." |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 206 |
#: opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 209 |
"checked to see whether it contains an entry for I<path>." |
| 210 |
msgstr "" |
| 211 |
"Sprawdzany jest plik bufora I</etc/ld.so.cache> (zarządzany przez " |
| 212 |
"B<ldconfig>(8)) pod kątem zawierania wpisu dla I<path>." |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "The directories I</lib> and I</usr/lib> are searched (in that order)." |
| 218 |
msgstr "Przeszukiwane są katalogi I</lib> i I</usr/lib> (w tej kolejności)." |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 222 |
#: opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"If the object specified by I<path> has dependencies on other shared objects, " |
| 225 |
"then these are also automatically loaded by the dynamic linker using the " |
| 226 |
"same rules. (This process may occur recursively, if those objects in turn " |
| 227 |
"have dependencies, and so on.)" |
| 228 |
msgstr "" |
| 229 |
"Jeśli obiekt określony w I<path> ma zależności od innych obiektów " |
| 230 |
"dzielonych, są one również automatycznie ładowane przez konsolidator " |
| 231 |
"dynamiczny, za pomocą tych samych reguł (proces ten może postępować " |
| 232 |
"rekurencyjnie, jeśli te obiekty mają z kolei swoje zależności itd.)." |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "One of the following two values must be included in I<flags>:" |
| 238 |
msgstr "We I<flags> należy podać jedną z dwóch poniższych wartości:" |
| 239 |
|
| 240 |
#. type: TP |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "B<RTLD_LAZY>" |
| 245 |
msgstr "B<RTLD_LAZY>" |
| 246 |
|
| 247 |
#. commit 12b5b6b7f78ea111e89bbf638294a5413c791072 |
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "" |
| 252 |
"Perform lazy binding. Resolve symbols only as the code that references them " |
| 253 |
"is executed. If the symbol is never referenced, then it is never resolved. " |
| 254 |
"(Lazy binding is performed only for function references; references to " |
| 255 |
"variables are always immediately bound when the shared object is loaded.) " |
| 256 |
"Since glibc 2.1.1, this flag is overridden by the effect of the " |
| 257 |
"B<LD_BIND_NOW> environment variable." |
| 258 |
msgstr "" |
| 259 |
"Przeprowadza leniwe dowiązanie. Rozwiązuje symbole jedynie wtedy, gdy " |
| 260 |
"wykonywany jest kod, który się do nich odnosi. Jeśli do danego symbolu nic " |
| 261 |
"się nie odniesie, to nie zostanie nigdy rozwiązany (leniwe dowiązanie jest " |
| 262 |
"wykonywane tylko przy odniesieniach do funkcji; odniesienia do zmiennych są " |
| 263 |
"zawsze bezzwłocznie przypisywane przy ładowaniu obiektu dzielonego). Od " |
| 264 |
"glibc 2.1.1, znacznik ten jest przesłaniany przez efekt zmiennej " |
| 265 |
"środowiskowej B<LD_BIND_NOW>." |
| 266 |
|
| 267 |
#. type: TP |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "B<RTLD_NOW>" |
| 272 |
msgstr "B<RTLD_NOW>" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"If this value is specified, or the environment variable B<LD_BIND_NOW> is " |
| 279 |
"set to a nonempty string, all undefined symbols in the shared object are " |
| 280 |
"resolved before B<dlopen>() returns. If this cannot be done, an error is " |
| 281 |
"returned." |
| 282 |
msgstr "" |
| 283 |
"Jeśli poda się tę wartość lub zmienna środowiskowa B<LD_BIND_NOW> jest " |
| 284 |
"ustawiona na niepusty łańcuch, wszystkie niezdefiniowane symbole obiektu " |
| 285 |
"dzielonego są rozwiązywane przed powrotem B<dlopen>(). Jeśli nie da się tego " |
| 286 |
"wykonać, zwracany jest błąd." |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "Zero or more of the following values may also be ORed in I<flags>:" |
| 292 |
msgstr "" |
| 293 |
"Ponadto, we I<flags> można zsumować (OR) zero lub więcej z poniższych " |
| 294 |
"wartości:" |
| 295 |
|
| 296 |
#. type: TP |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "B<RTLD_GLOBAL>" |
| 301 |
msgstr "B<RTLD_GLOBAL>" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "" |
| 307 |
"The symbols defined by this shared object will be made available for symbol " |
| 308 |
"resolution of subsequently loaded shared objects." |
| 309 |
msgstr "" |
| 310 |
"Symbole zdefiniowane za pomocą tego obiektu dzielonego zostaną udostępnione " |
| 311 |
"do rozwiązywania symboli kolejno ładowanych obiektów dzielonych." |
| 312 |
|
| 313 |
#. type: TP |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "B<RTLD_LOCAL>" |
| 318 |
msgstr "B<RTLD_LOCAL>" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
msgid "" |
| 324 |
"This is the converse of B<RTLD_GLOBAL>, and the default if neither flag is " |
| 325 |
"specified. Symbols defined in this shared object are not made available to " |
| 326 |
"resolve references in subsequently loaded shared objects." |
| 327 |
msgstr "" |
| 328 |
"Jest to odwrotność B<RTLD_GLOBAL>, a także wartość domyślna, jeśli nie " |
| 329 |
"podano żadnego znacznika. Symbole zdefiniowane w tym obiekcie dzielonym nie " |
| 330 |
"są udostępniane do rozwiązywania symboli kolejno ładowanych obiektów " |
| 331 |
"dzielonych." |
| 332 |
|
| 333 |
#. type: TP |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
#, no-wrap |
| 337 |
msgid "B<RTLD_NODELETE> (since glibc 2.2)" |
| 338 |
msgstr "B<RTLD_NODELETE> (od glibc 2.2)" |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
msgid "" |
| 344 |
"Do not unload the shared object during B<dlclose>(). Consequently, the " |
| 345 |
"object's static and global variables are not reinitialized if the object is " |
| 346 |
"reloaded with B<dlopen>() at a later time." |
| 347 |
msgstr "" |
| 348 |
"Nie odłącza obiektu dzielonego podczas B<dlclose>(). Statyczne i globalne " |
| 349 |
"zmienne obiektu nie są zatem inicjowane ponownie, jeśli obiekt zostanie " |
| 350 |
"później przeładowany za pomocą B<dlopen>()." |
| 351 |
|
| 352 |
#. type: TP |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "B<RTLD_NOLOAD> (since glibc 2.2)" |
| 357 |
msgstr "B<RTLD_NOLOAD> (od glibc 2.2)" |
| 358 |
|
| 359 |
#. type: Plain text |
| 360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 361 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
msgid "" |
| 363 |
"Don't load the shared object. This can be used to test if the object is " |
| 364 |
"already resident (B<dlopen>() returns NULL if it is not, or the object's " |
| 365 |
"handle if it is resident). This flag can also be used to promote the flags " |
| 366 |
"on a shared object that is already loaded. For example, a shared object " |
| 367 |
"that was previously loaded with B<RTLD_LOCAL> can be reopened with " |
| 368 |
"B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>." |
| 369 |
msgstr "" |
| 370 |
"Nie ładuje obiektu dzielonego. Można to wykorzystać do sprawdzenia, czy " |
| 371 |
"obiekt jest już rezydentny (B<dlopen>() zwróci NULL jeśli nie jest, albo " |
| 372 |
"uchwyt obiektu jeśli jest). Znacznik może posłużyć również do dodania " |
| 373 |
"znaczników do już załadowanego obiektu dzielonego. Przykładowo, wcześniej " |
| 374 |
"załadowany obiekt dzielony ze znacznikiem B<RTLD_LOCAL> może być otwarty " |
| 375 |
"ponownie z B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>." |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "B<RTLD_DEEPBIND> (since glibc 2.3.4)" |
| 382 |
msgstr "B<RTLD_DEEPBIND> (od glibc 2.3.4)" |
| 383 |
|
| 384 |
#. Inimitably described by UD in |
| 385 |
#. http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html. |
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
msgid "" |
| 390 |
"Place the lookup scope of the symbols in this shared object ahead of the " |
| 391 |
"global scope. This means that a self-contained object will use its own " |
| 392 |
"symbols in preference to global symbols with the same name contained in " |
| 393 |
"objects that have already been loaded." |
| 394 |
msgstr "" |
| 395 |
"Umieszcza dziedzinę przeszukiwania dla symboli, w tym obiekcie dzielonym " |
| 396 |
"przed dziedziną globalną. Oznacza to, że samodzielny obiekt będzie " |
| 397 |
"preferował używanie swoich symboli, zamiast symboli globalnych o tej samej " |
| 398 |
"nazwie w obiektach, które zostały już załadowane." |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 402 |
#: opensuse-tumbleweed |
| 403 |
msgid "" |
| 404 |
"If I<path> is NULL, then the returned handle is for the main program. When " |
| 405 |
"given to B<dlsym>(3), this handle causes a search for a symbol in the main " |
| 406 |
"program, followed by all shared objects loaded at program startup, and then " |
| 407 |
"all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 408 |
msgstr "" |
| 409 |
"Jeśli I<path> wynosi NULL, to zwracany jest uchwyt do głównego programu. " |
| 410 |
"Przy przekazaniu tego uchwytu do B<dlsym>(3), powoduje on wyszukiwanie " |
| 411 |
"symbolu w głównym programie, następnie we wszystkich obiektach dzielonych " |
| 412 |
"załadowanych przy rozruchu programu, a potem we wszystkich obiektach " |
| 413 |
"dzielonych załadowanych za pomocą B<dlopen>() ze znacznikiem B<RTLD_GLOBAL>." |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
msgid "" |
| 419 |
"Symbol references in the shared object are resolved using (in order): " |
| 420 |
"symbols in the link map of objects loaded for the main program and its " |
| 421 |
"dependencies; symbols in shared objects (and their dependencies) that were " |
| 422 |
"previously opened with B<dlopen>() using the B<RTLD_GLOBAL> flag; and " |
| 423 |
"definitions in the shared object itself (and any dependencies that were " |
| 424 |
"loaded for that object)." |
| 425 |
msgstr "" |
| 426 |
"Odniesienia symboli w obiekcie dzielonym są rozwiązywane za pomocą (w tej " |
| 427 |
"kolejności): symboli w mapie linkowań obiektów załadowanych do głównego " |
| 428 |
"programu i jego zależności; symboli w obiektach dzielonych (i ich " |
| 429 |
"zależności), które były uprzednio otworzone za pomocą B<dlopen>() i " |
| 430 |
"znacznika B<RTLD_GLOBAL>; definicji w samym obiekcie dzielonym (i " |
| 431 |
"zależności, które zostały załadowane dla tego obiektu)." |
| 432 |
|
| 433 |
#. type: Plain text |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
msgid "" |
| 437 |
"Any global symbols in the executable that were placed into its dynamic " |
| 438 |
"symbol table by B<ld>(1) can also be used to resolve references in a " |
| 439 |
"dynamically loaded shared object. Symbols may be placed in the dynamic " |
| 440 |
"symbol table either because the executable was linked with the flag \"-" |
| 441 |
"rdynamic\" (or, synonymously, \"--export-dynamic\"), which causes all of the " |
| 442 |
"executable's global symbols to be placed in the dynamic symbol table, or " |
| 443 |
"because B<ld>(1) noted a dependency on a symbol in another object during " |
| 444 |
"static linking." |
| 445 |
msgstr "" |
| 446 |
"Wszelkie symbole globalne w pliku wykonywalnym, które zostały umieszczone w " |
| 447 |
"jego tablicy symboli dynamicznych przez B<ld>(1), mogą być użyte również do " |
| 448 |
"rozwiązywania odniesień w dynamicznie załadowanym obiekcie dzielonym. " |
| 449 |
"Symbole mogą być umieszczone w tablicy symboli dynamicznych albo ponieważ " |
| 450 |
"plik wykonywalny skonsolidowano z \\[Bq]-rdynamic\\[rq] (lub synonimicznie: " |
| 451 |
"z \\[Bq]--export-dynamic\\[rq]), co powoduje umieszczenie wszystkich symboli " |
| 452 |
"globalnych pliku wykonywalnego w tablicy symboli dynamicznych, albo z powodu " |
| 453 |
"odnotowania przez B<ld>(1) zależności od symbolu w innym obiekcie, podczas " |
| 454 |
"konsolidowania statycznego." |
| 455 |
|
| 456 |
#. type: Plain text |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
msgid "" |
| 460 |
"If the same shared object is opened again with B<dlopen>(), the same object " |
| 461 |
"handle is returned. The dynamic linker maintains reference counts for " |
| 462 |
"object handles, so a dynamically loaded shared object is not deallocated " |
| 463 |
"until B<dlclose>() has been called on it as many times as B<dlopen>() has " |
| 464 |
"succeeded on it. Constructors (see below) are called only when the object " |
| 465 |
"is actually loaded into memory (i.e., when the reference count increases to " |
| 466 |
"1)." |
| 467 |
msgstr "" |
| 468 |
"Jeśli ten sam obiekt dzielony zostanie powtórnie otworzony za pomocą " |
| 469 |
"B<dlopen>(), to zwracany jest ten sam uchwyt obiektu. Dynamiczny " |
| 470 |
"konsolidator utrzymuje liczniki odniesień dla uchwytów obiektów, tak więc " |
| 471 |
"dynamicznie załadowany obiekt dzielony nie jest dealokowany, dopóki " |
| 472 |
"B<dlclose>() nie zostanie na nim wywołany tak wiele razy, jak udanie " |
| 473 |
"wywołano na nim B<dlopen>(). Konstruktory (zob. niżej) są wywoływane tylko " |
| 474 |
"wtedy, gdy obiekt jest faktycznie ładowany do pamięci (tj. gdy licznik " |
| 475 |
"odniesień wzrośnie do 1)." |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
msgid "" |
| 481 |
"A subsequent B<dlopen>() call that loads the same shared object with " |
| 482 |
"B<RTLD_NOW> may force symbol resolution for a shared object earlier loaded " |
| 483 |
"with B<RTLD_LAZY>. Similarly, an object that was previously opened with " |
| 484 |
"B<RTLD_LOCAL> can be promoted to B<RTLD_GLOBAL> in a subsequent B<dlopen>()." |
| 485 |
msgstr "" |
| 486 |
"Kolejne wywołanie B<dlopen>(), ładujące ten sam obiekt za pomocą " |
| 487 |
"B<RTLD_NOW>, może wymusić rozwiązanie symbolu dla obiektu dzielonego " |
| 488 |
"wcześniej załadowanego za pomocą B<RTLD_LAZY>. Podobnie, obiekt uprzednio " |
| 489 |
"załadowany za pomocą B<RTLD_LOCAL> może awansować na B<RTLD_GLOBAL> w " |
| 490 |
"kolejnym wywołaniu B<dlopen>()." |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
msgid "If B<dlopen>() fails for any reason, it returns NULL." |
| 496 |
msgstr "Jeśli B<dlopen>() z jakiegoś powodu zawiedzie, zwróci NULL." |
| 497 |
|
| 498 |
#. type: SS |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "dlmopen()" |
| 503 |
msgstr "dlmopen()" |
| 504 |
|
| 505 |
#. type: Plain text |
| 506 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 507 |
#: opensuse-tumbleweed |
| 508 |
msgid "" |
| 509 |
"This function performs the same task as B<dlopen>()\\[em]the I<path> and " |
| 510 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 511 |
"the differences noted below." |
| 512 |
msgstr "" |
| 513 |
"Funkcja ta wykonuje te same zadania co B<dlopen>() \\[em] argumenty I<path> " |
| 514 |
"i I<flags> oraz wartości zwraca są takie same, z wyjątkiem różnic opisanych " |
| 515 |
"niżej." |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
msgid "" |
| 521 |
"The B<dlmopen>() function differs from B<dlopen>() primarily in that it " |
| 522 |
"accepts an additional argument, I<lmid>, that specifies the link-map list " |
| 523 |
"(also referred to as a I<namespace>) in which the shared object should be " |
| 524 |
"loaded. (By comparison, B<dlopen>() adds the dynamically loaded shared " |
| 525 |
"object to the same namespace as the shared object from which the " |
| 526 |
"B<dlopen>() call is made.) The I<Lmid_t> type is an opaque handle that " |
| 527 |
"refers to a namespace." |
| 528 |
msgstr "" |
| 529 |
"Funkcja B<dlmopen>() różni się od B<dlopen>() głównie tym, że akceptuje " |
| 530 |
"dodatkowy argument, I<lmid>, który określa listę map linkowań (link-map) (do " |
| 531 |
"której można odnosić się również jako I<namespace>), w której obiekt " |
| 532 |
"dzielony powinien być załadowany (dla porównania, B<dlopen>() dodaje " |
| 533 |
"dynamicznie ładowany obiekt dzielony do tej samej przestrzeni nazw, jak " |
| 534 |
"obiekt dzielony, z którego wywołano B<dlopen>()). Typ I<Lmid_t> jest " |
| 535 |
"nieprzezroczystym uchwytem odnoszącym się do tej przestrzeni nazw." |
| 536 |
|
| 537 |
#. FIXME: Is using dlinfo() RTLD_DI_LMID the right technique? |
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
msgid "" |
| 542 |
"The I<lmid> argument is either the ID of an existing namespace (which can be " |
| 543 |
"obtained using the B<dlinfo>(3) B<RTLD_DI_LMID> request) or one of the " |
| 544 |
"following special values:" |
| 545 |
msgstr "" |
| 546 |
"Argument I<lmid> jest albo identyfikatorem istniejącej przestrzeni nazw " |
| 547 |
"(który można pozyskać za pomocą żądania B<RTLD_DI_LMID> B<dlinfo>(3)) lub " |
| 548 |
"jedną z następujących wartości specjalnych:" |
| 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<LM_ID_BASE>" |
| 555 |
msgstr "B<LM_ID_BASE>" |
| 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 |
"Load the shared object in the initial namespace (i.e., the application's " |
| 562 |
"namespace)." |
| 563 |
msgstr "" |
| 564 |
"Ładuje obiekt dzielony w pierwotnej przestrzeni nazw (tj. w przestrzeni nazw " |
| 565 |
"aplikacji)." |
| 566 |
|
| 567 |
#. type: TP |
| 568 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 569 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 570 |
#, no-wrap |
| 571 |
msgid "B<LM_ID_NEWLM>" |
| 572 |
msgstr "B<LM_ID_NEWLM>" |
| 573 |
|
| 574 |
#. type: Plain text |
| 575 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 576 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 577 |
msgid "" |
| 578 |
"Create a new namespace and load the shared object in that namespace. The " |
| 579 |
"object must have been correctly linked to reference all of the other shared " |
| 580 |
"objects that it requires, since the new namespace is initially empty." |
| 581 |
msgstr "" |
| 582 |
"Tworzy nową przestrzeń nazw i ładuje w niej obiekt dzielony. Obiekt musi być " |
| 583 |
"prawidłowo skonsolidowany do odniesień wszystkich innych obiektów dzielonych " |
| 584 |
"jakich wymaga, ponieważ nowa przestrzeń nazw jest początkowo pusta." |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 588 |
#: opensuse-tumbleweed |
| 589 |
msgid "" |
| 590 |
"If I<path> is NULL, then the only permitted value for I<lmid> is " |
| 591 |
"B<LM_ID_BASE>." |
| 592 |
msgstr "" |
| 593 |
"Jeśli I<path> wynosi NULL, to jedyną dopuszczalną wartością I<lmid> jest " |
| 594 |
"B<LM_ID_BASE>." |
| 595 |
|
| 596 |
#. type: SS |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
#, no-wrap |
| 600 |
msgid "dlclose()" |
| 601 |
msgstr "dlclose()" |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"The function B<dlclose>() decrements the reference count on the dynamically " |
| 608 |
"loaded shared object referred to by I<handle>." |
| 609 |
msgstr "" |
| 610 |
"Funkcja B<dlclose>() zmniejsza licznik odniesień na dynamicznie załadowanych " |
| 611 |
"obiektach, do których odnosi się I<handle>." |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 615 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 616 |
msgid "" |
| 617 |
"If the object's reference count drops to zero and no symbols in this object " |
| 618 |
"are required by other objects, then the object is unloaded after first " |
| 619 |
"calling any destructors defined for the object. (Symbols in this object " |
| 620 |
"might be required in another object because this object was opened with the " |
| 621 |
"B<RTLD_GLOBAL> flag and one of its symbols satisfied a relocation in another " |
| 622 |
"object.)" |
| 623 |
msgstr "" |
| 624 |
"Jeśli licznik odniesień obiektu spadnie do zera, a żadne symbole w tym " |
| 625 |
"obiekcie nie są wymagane przez inne obiekty, obiekt ten jest odłączany po " |
| 626 |
"pierwszym wywołaniu dowolnych destruktorów zdefiniowanych dla obiektu " |
| 627 |
"(symbole w obiekcie mogą być wymagane przez inny obiekt, ponieważ otworzono " |
| 628 |
"go ze znacznikiem B<RTLD_GLOBAL>, a jeden z jego symboli umożliwił relokację " |
| 629 |
"w innym obiekcie)." |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "" |
| 635 |
"All shared objects that were automatically loaded when B<dlopen>() was " |
| 636 |
"invoked on the object referred to by I<handle> are recursively closed in the " |
| 637 |
"same manner." |
| 638 |
msgstr "" |
| 639 |
"Wszystkie obiekty dzielone załadowane automatycznie, gdy B<dlopen>() " |
| 640 |
"przywołano na obiekcie, do którego odnosi się I<handle>, są rekurencyjnie " |
| 641 |
"zamykane w ten sam sposób." |
| 642 |
|
| 643 |
#. type: Plain text |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
msgid "" |
| 647 |
"A successful return from B<dlclose>() does not guarantee that the symbols " |
| 648 |
"associated with I<handle> are removed from the caller's address space. In " |
| 649 |
"addition to references resulting from explicit B<dlopen>() calls, a shared " |
| 650 |
"object may have been implicitly loaded (and reference counted) because of " |
| 651 |
"dependencies in other shared objects. Only when all references have been " |
| 652 |
"released can the shared object be removed from the address space." |
| 653 |
msgstr "" |
| 654 |
"Pomyślny powrót z B<dlclose>() nie gwarantuje, że symbole powiązane z " |
| 655 |
"I<handle> są usunięte z przestrzeni adresowej wywołującego. Oprócz odniesień " |
| 656 |
"wynikających z bezpośrednich wywołań B<dlopen>(), mogły zostać " |
| 657 |
"niebezpośrednio załadowane obiekty dzielone (i policzone odniesienia), ze " |
| 658 |
"względu na zależności w innych obiektach dzielonych. Tylko gdy wszystkie " |
| 659 |
"odniesienia zostały uwolnione, obiekt dzielony może być usunięty z " |
| 660 |
"przestrzeni adresowej." |
| 661 |
|
| 662 |
#. type: SH |
| 663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 664 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 665 |
#, no-wrap |
| 666 |
msgid "RETURN VALUE" |
| 667 |
msgstr "WARTOŚĆ ZWRACANA" |
| 668 |
|
| 669 |
#. type: Plain text |
| 670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 672 |
msgid "" |
| 673 |
"On success, B<dlopen>() and B<dlmopen>() return a non-NULL handle for the " |
| 674 |
"loaded object. On error (file could not be found, was not readable, had the " |
| 675 |
"wrong format, or caused errors during loading), these functions return NULL." |
| 676 |
msgstr "" |
| 677 |
"W przypadku powodzenia, B<dlopen>() i B<dlmopen>() zwracają uchwyt do " |
| 678 |
"ładowanego obiektu, niebędący NULL-em. W razie wystąpienia błędu (nie można " |
| 679 |
"znaleźć pliku, nie był odczytywalny, miał zły format lub spowodował błędy " |
| 680 |
"przy załadowaniu) funkcje te zwracają NULL." |
| 681 |
|
| 682 |
#. type: Plain text |
| 683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 684 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 685 |
msgid "" |
| 686 |
"On success, B<dlclose>() returns 0; on error, it returns a nonzero value." |
| 687 |
msgstr "" |
| 688 |
"W przypadku powodzenia, B<dlclose>() zwraca 0; w razie wystąpienia błędu, " |
| 689 |
"zwraca wartość niezerową." |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 693 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
msgid "Errors from these functions can be diagnosed using B<dlerror>(3)." |
| 695 |
msgstr "Błędy z opisywanych funkcji można diagnozować za pomocą B<dlerror>(3)." |
| 696 |
|
| 697 |
#. type: SH |
| 698 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 699 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 700 |
#, no-wrap |
| 701 |
msgid "ATTRIBUTES" |
| 702 |
msgstr "ATRYBUTY" |
| 703 |
|
| 704 |
#. type: Plain text |
| 705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 706 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 707 |
msgid "" |
| 708 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 709 |
msgstr "" |
| 710 |
"Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku " |
| 711 |
"B<attributes>(7)." |
| 712 |
|
| 713 |
#. type: tbl table |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
#, no-wrap |
| 717 |
msgid "Interface" |
| 718 |
msgstr "Interfejs" |
| 719 |
|
| 720 |
#. type: tbl table |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
#, no-wrap |
| 724 |
msgid "Attribute" |
| 725 |
msgstr "Atrybut" |
| 726 |
|
| 727 |
#. type: tbl table |
| 728 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 729 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 730 |
#, no-wrap |
| 731 |
msgid "Value" |
| 732 |
msgstr "Wartość" |
| 733 |
|
| 734 |
#. type: tbl table |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
#, no-wrap |
| 738 |
msgid ".na\n" |
| 739 |
msgstr ".na\n" |
| 740 |
|
| 741 |
#. type: tbl table |
| 742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 743 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 744 |
#, no-wrap |
| 745 |
msgid ".nh\n" |
| 746 |
msgstr ".nh\n" |
| 747 |
|
| 748 |
#. type: tbl table |
| 749 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 750 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 751 |
#, no-wrap |
| 752 |
msgid "" |
| 753 |
"B<dlopen>(),\n" |
| 754 |
"B<dlmopen>(),\n" |
| 755 |
"B<dlclose>()" |
| 756 |
msgstr "" |
| 757 |
"B<dlopen>(),\n" |
| 758 |
"B<dlmopen>(),\n" |
| 759 |
"B<dlclose>()" |
| 760 |
|
| 761 |
#. type: tbl table |
| 762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 763 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 764 |
#, no-wrap |
| 765 |
msgid "Thread safety" |
| 766 |
msgstr "Bezpieczeństwo wątkowe" |
| 767 |
|
| 768 |
#. type: tbl table |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
#, no-wrap |
| 772 |
msgid "MT-Safe" |
| 773 |
msgstr "MT-bezpieczne" |
| 774 |
|
| 775 |
#. type: SH |
| 776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 777 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 778 |
#, no-wrap |
| 779 |
msgid "STANDARDS" |
| 780 |
msgstr "STANDARDY" |
| 781 |
|
| 782 |
#. type: TP |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
#, no-wrap |
| 786 |
msgid "B<dlopen>()" |
| 787 |
msgstr "B<dlopen>()" |
| 788 |
|
| 789 |
#. type: TQ |
| 790 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 791 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 792 |
#, no-wrap |
| 793 |
msgid "B<dlclose>()" |
| 794 |
msgstr "B<dlclose>()" |
| 795 |
|
| 796 |
#. type: Plain text |
| 797 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 798 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 799 |
msgid "POSIX.1-2008." |
| 800 |
msgstr "POSIX.1-2008." |
| 801 |
|
| 802 |
#. type: TP |
| 803 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 804 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 805 |
#, no-wrap |
| 806 |
msgid "B<dlmopen>()" |
| 807 |
msgstr "B<dlmopen>()" |
| 808 |
|
| 809 |
#. type: TQ |
| 810 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 811 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 812 |
#, no-wrap |
| 813 |
msgid "B<RTLD_NOLOAD>" |
| 814 |
msgstr "B<RTLD_NOLOAD>" |
| 815 |
|
| 816 |
#. type: TQ |
| 817 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 818 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 819 |
#, no-wrap |
| 820 |
msgid "B<RTLD_NODELETE>" |
| 821 |
msgstr "B<RTLD_NODELETE>" |
| 822 |
|
| 823 |
#. type: Plain text |
| 824 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 825 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 826 |
msgid "GNU." |
| 827 |
msgstr "GNU." |
| 828 |
|
| 829 |
#. type: TP |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
#, no-wrap |
| 833 |
msgid "B<RTLD_DEEPBIND>" |
| 834 |
msgstr "B<RTLD_DEEPBIND>" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 838 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 839 |
msgid "Solaris." |
| 840 |
msgstr "Solaris." |
| 841 |
|
| 842 |
#. type: SH |
| 843 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 844 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 845 |
#, no-wrap |
| 846 |
msgid "HISTORY" |
| 847 |
msgstr "HISTORIA" |
| 848 |
|
| 849 |
#. type: Plain text |
| 850 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 851 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
msgid "glibc 2.0. POSIX.1-2001." |
| 853 |
msgstr "glibc 2.0. POSIX.1-2001." |
| 854 |
|
| 855 |
#. type: Plain text |
| 856 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 857 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 858 |
msgid "glibc 2.3.4." |
| 859 |
msgstr "glibc 2.3.4." |
| 860 |
|
| 861 |
#. type: SH |
| 862 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 863 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 864 |
#, no-wrap |
| 865 |
msgid "NOTES" |
| 866 |
msgstr "UWAGI" |
| 867 |
|
| 868 |
#. type: SS |
| 869 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 870 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 871 |
#, no-wrap |
| 872 |
msgid "dlmopen() and namespaces" |
| 873 |
msgstr "dlmopen() i przestrzenie nazw" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
msgid "" |
| 879 |
"A link-map list defines an isolated namespace for the resolution of symbols " |
| 880 |
"by the dynamic linker. Within a namespace, dependent shared objects are " |
| 881 |
"implicitly loaded according to the usual rules, and symbol references are " |
| 882 |
"likewise resolved according to the usual rules, but such resolution is " |
| 883 |
"confined to the definitions provided by the objects that have been " |
| 884 |
"(explicitly and implicitly) loaded into the namespace." |
| 885 |
msgstr "" |
| 886 |
"Lista map linków (link-map) definiuje izolowaną przestrzeń nazw do " |
| 887 |
"rozwiązywania symboli przez konsolidator dynamiczny. Wewnątrz przestrzeni " |
| 888 |
"nazw, zależny obiekt dzielony jest niebezpośrednio ładowany zgodnie ze " |
| 889 |
"zwykłymi regułami, a odniesienia do symboli są podobnie rozwiązywane zgodnie " |
| 890 |
"ze zwykłymi regułami, lecz rozwiązywanie to jest ograniczone do definicji " |
| 891 |
"zapewnionych przez obiekty, które zostały (bezpośrednio lub niebezpośrednio) " |
| 892 |
"załadowane do tej przestrzeni nazw." |
| 893 |
|
| 894 |
#. type: Plain text |
| 895 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 896 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 897 |
msgid "" |
| 898 |
"The B<dlmopen>() function permits object-load isolation\\[em]the ability to " |
| 899 |
"load a shared object in a new namespace without exposing the rest of the " |
| 900 |
"application to the symbols made available by the new object. Note that the " |
| 901 |
"use of the B<RTLD_LOCAL> flag is not sufficient for this purpose, since it " |
| 902 |
"prevents a shared object's symbols from being available to I<any> other " |
| 903 |
"shared object. In some cases, we may want to make the symbols provided by a " |
| 904 |
"dynamically loaded shared object available to (a subset of) other shared " |
| 905 |
"objects without exposing those symbols to the entire application. This can " |
| 906 |
"be achieved by using a separate namespace and the B<RTLD_GLOBAL> flag." |
| 907 |
msgstr "" |
| 908 |
"Funkcja B<dlmopen>() pozwala na izolację załadowań obiektów \\[em] możliwość " |
| 909 |
"załadowania obiektu dzielonego do nowej przestrzeni nazw, bez ujawniania " |
| 910 |
"reszcie aplikacji symboli udostępnionych przez nowy obiekt. Proszę zauważyć, " |
| 911 |
"że użycie znacznika B<RTLD_LOCAL> nie jest wystarczające do tego celu, " |
| 912 |
"ponieważ zapobiega ono udostępnieniu symboli obiektu dzielonego dla " |
| 913 |
"I<wszystkich> innych obiektów dzielonych. W niektórych przypadkach, zachodzi " |
| 914 |
"potrzeba udostępnienia symboli zapewnionych przez dynamicznie załadowany " |
| 915 |
"obiekt dzielony dla (podzbioru) innych obiektów dzielonych, bez ujawniania " |
| 916 |
"tych symboli całej aplikacji. Można to uzyskać za pomocą oddzielnej " |
| 917 |
"przestrzeni nazw i znacznika B<RTLD_GLOBAL>." |
| 918 |
|
| 919 |
#. type: Plain text |
| 920 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 921 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 922 |
msgid "" |
| 923 |
"The B<dlmopen>() function also can be used to provide better isolation than " |
| 924 |
"the B<RTLD_LOCAL> flag. In particular, shared objects loaded with " |
| 925 |
"B<RTLD_LOCAL> may be promoted to B<RTLD_GLOBAL> if they are dependencies of " |
| 926 |
"another shared object loaded with B<RTLD_GLOBAL>. Thus, B<RTLD_LOCAL> is " |
| 927 |
"insufficient to isolate a loaded shared object except in the (uncommon) " |
| 928 |
"case where one has explicit control over all shared object dependencies." |
| 929 |
msgstr "" |
| 930 |
"Funkcja B<dlmopen>() może służyć również do zapewnienia lepszej izolacji, " |
| 931 |
"niż znacznik B<RTLD_LOCAL>. W szczególności, obiekty dzielone załadowane za " |
| 932 |
"pomocą B<RTLD_LOCAL> mogą być awansowane do B<RTLD_GLOBAL>, jeśli są " |
| 933 |
"zależnościami innego obiektu dzielonego załadowanego ze znacznikiem " |
| 934 |
"B<RTLD_GLOBAL>. Z tego względu, B<RTLD_LOCAL> jest niewystarczające do " |
| 935 |
"izolowania załadowanego obiektu dzielonego, z wyjątkiem (nieczęstej) " |
| 936 |
"sytuacji, gdy ma się całkowitą kontrolę nad wszystkich zależnościami obiektu " |
| 937 |
"dzielonego." |
| 938 |
|
| 939 |
#. type: Plain text |
| 940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 941 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 942 |
msgid "" |
| 943 |
"Possible uses of B<dlmopen>() are plugins where the author of the plugin-" |
| 944 |
"loading framework can't trust the plugin authors and does not wish any " |
| 945 |
"undefined symbols from the plugin framework to be resolved to plugin " |
| 946 |
"symbols. Another use is to load the same object more than once. Without " |
| 947 |
"the use of B<dlmopen>(), this would require the creation of distinct copies " |
| 948 |
"of the shared object file. Using B<dlmopen>(), this can be achieved by " |
| 949 |
"loading the same shared object file into different namespaces." |
| 950 |
msgstr "" |
| 951 |
"Możliwe zastosowania B<dlmopen>() to wtyczki, gdzie autor struktury " |
| 952 |
"ładowania wtyczek nie może ufać autorom wtyczek i nie chce, aby jakiekolwiek " |
| 953 |
"niezdefiniowane symbole ze struktury wtyczek były rozwiązywane do symboli " |
| 954 |
"wtyczek. Kolejne zastosowanie, to ładowanie tego samego obiektu więcej niż " |
| 955 |
"raz. Bez korzystania z B<dlmopen>(), wymagałoby to utworzenia odrębnej kopii " |
| 956 |
"pliku obiektu dzielonego. Za pomocą B<dlmopen>(), można to uzyskać ładując " |
| 957 |
"ten sam plik obiektu dzielonego do różnych przestrzeni nazw." |
| 958 |
|
| 959 |
#. DL_NNS |
| 960 |
#. type: Plain text |
| 961 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 962 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 963 |
msgid "The glibc implementation supports a maximum of 16 namespaces." |
| 964 |
msgstr "Implementacja glibc obsługuje co najwyżej 16 przestrzeni nazw." |
| 965 |
|
| 966 |
#. type: SS |
| 967 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 968 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 969 |
#, no-wrap |
| 970 |
msgid "Initialization and finalization functions" |
| 971 |
msgstr "Funkcje inicjalizacji i kończenia" |
| 972 |
|
| 973 |
#. info gcc "C Extensions" "Function attributes" |
| 974 |
#. type: Plain text |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
msgid "" |
| 978 |
"Shared objects may export functions using the " |
| 979 |
"B<__attribute__((constructor))> and B<__attribute__((destructor))> function " |
| 980 |
"attributes. Constructor functions are executed before B<dlopen>() returns, " |
| 981 |
"and destructor functions are executed before B<dlclose>() returns. A " |
| 982 |
"shared object may export multiple constructors and destructors, and " |
| 983 |
"priorities can be associated with each function to determine the order in " |
| 984 |
"which they are executed. See the B<gcc> info pages (under \"Function " |
| 985 |
"attributes\") for further information." |
| 986 |
msgstr "" |
| 987 |
"Obiekty dzielone mogą eksportować funkcje za pomocą atrybutów funkcji " |
| 988 |
"B<__attribute__((constructor))> i B<__attribute__((destructor))>. Funkcje " |
| 989 |
"konstrukcyjne są wykonywane przed powrotem B<dlopen>(), a funkcje " |
| 990 |
"destrukcyjne są wykonywane przez powrotem B<dlclose>(). Obiekty dzielone " |
| 991 |
"mogą eksportować wiele konstruktorów i destruktorów, a każdej funkcji można " |
| 992 |
"przypisać priorytety, aby określić kolejność wykonywania. Więcej informacji " |
| 993 |
"na stronach info B<gcc> (w rozdziale \\[Bq]Function attributes\\[rq])." |
| 994 |
|
| 995 |
#. type: Plain text |
| 996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 997 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 998 |
msgid "" |
| 999 |
"An older method of (partially) achieving the same result is via the use of " |
| 1000 |
"two special symbols recognized by the linker: B<_init> and B<_fini>. If a " |
| 1001 |
"dynamically loaded shared object exports a routine named B<_init>(), then " |
| 1002 |
"that code is executed after loading a shared object, before B<dlopen>() " |
| 1003 |
"returns. If the shared object exports a routine named B<_fini>(), then that " |
| 1004 |
"routine is called just before the object is unloaded. In this case, one " |
| 1005 |
"must avoid linking against the system startup files, which contain default " |
| 1006 |
"versions of these files; this can be done by using the B<gcc>(1) I<-" |
| 1007 |
"nostartfiles> command-line option." |
| 1008 |
msgstr "" |
| 1009 |
"Starszą metodą uzyskiwania (częściowo) tego samego wyniku jest użycie dwóch " |
| 1010 |
"symboli specjalnych rozpoznawanych przez konsolidator: B<_init> i B<_fini>. " |
| 1011 |
"Jeśli dynamicznie ładowany obiekt dzielony eksportuje algorytm nazwany " |
| 1012 |
"B<_init>(), to kod ten jest wykonywany po załadowaniu obiektu dzielonego, " |
| 1013 |
"przed powrotem B<dlopen>(). Jeśli obiekt dzielony eksportuje algorytm " |
| 1014 |
"nazwany B<_fini>(), to jest on wywoływany zaraz przed odłączeniem obiektu. W " |
| 1015 |
"tym przypadku, konieczne jest unikania linkowania wobec rozruchowych plików " |
| 1016 |
"systemowych, które zawierają domyślne wersje tych plików; można to uczynić " |
| 1017 |
"za pomocą opcji wiersza poleceń B<gcc>(1) I<-nostartfiles>." |
| 1018 |
|
| 1019 |
# |
| 1020 |
#. Using these routines, or the gcc |
| 1021 |
#. .B \-nostartfiles |
| 1022 |
#. or |
| 1023 |
#. .B \-nostdlib |
| 1024 |
#. options, is not recommended. |
| 1025 |
#. Their use may result in undesired behavior, |
| 1026 |
#. since the constructor/destructor routines will not be executed |
| 1027 |
#. (unless special measures are taken). |
| 1028 |
#. .\" void _init(void) __attribute__((constructor)); |
| 1029 |
#. .\" void _fini(void) __attribute__((destructor)); |
| 1030 |
#. type: Plain text |
| 1031 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1032 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1033 |
msgid "" |
| 1034 |
"Use of B<_init> and B<_fini> is now deprecated in favor of the " |
| 1035 |
"aforementioned constructors and destructors, which among other advantages, " |
| 1036 |
"permit multiple initialization and finalization functions to be defined." |
| 1037 |
msgstr "" |
| 1038 |
"Używanie B<_init> i B<_fini> jest obecnie przestarzałe, na korzyść opisanych " |
| 1039 |
"wcześniej konstruktorów i destruktorów, które oprócz innych zalet, pozwalają " |
| 1040 |
"na zdefiniowanie wielu funkcji inicjalizacji i kończenia." |
| 1041 |
|
| 1042 |
#. type: Plain text |
| 1043 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1044 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1045 |
msgid "" |
| 1046 |
"Since glibc 2.2.3, B<atexit>(3) can be used to register an exit handler " |
| 1047 |
"that is automatically called when a shared object is unloaded." |
| 1048 |
msgstr "" |
| 1049 |
"Od glibc 2.2.3, B<atexit>(3) może posłużyć do zarejestrowania uchwytu " |
| 1050 |
"wyjścia, który jest automatycznie wywoływany przez odłączaniu obiektu " |
| 1051 |
"dzielonego." |
| 1052 |
|
| 1053 |
#. type: SS |
| 1054 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1055 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1056 |
#, no-wrap |
| 1057 |
msgid "History" |
| 1058 |
msgstr "Historia" |
| 1059 |
|
| 1060 |
#. type: Plain text |
| 1061 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1062 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1063 |
msgid "These functions are part of the dlopen API, derived from SunOS." |
| 1064 |
msgstr "Funkcje te są częścią API dlopen, wywodzącego się z SunOS." |
| 1065 |
|
| 1066 |
#. type: SH |
| 1067 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1068 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1069 |
#, no-wrap |
| 1070 |
msgid "BUGS" |
| 1071 |
msgstr "USTERKI" |
| 1072 |
|
| 1073 |
#. dlerror(): "invalid mode" |
| 1074 |
#. https://sourceware.org/bugzilla/show_bug.cgi?id=18684 |
| 1075 |
#. type: Plain text |
| 1076 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1077 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1078 |
msgid "" |
| 1079 |
"As at glibc 2.24, specifying the B<RTLD_GLOBAL> flag when calling " |
| 1080 |
"B<dlmopen>() generates an error. Furthermore, specifying B<RTLD_GLOBAL> " |
| 1081 |
"when calling B<dlopen>() results in a program crash (B<SIGSEGV>) if the " |
| 1082 |
"call is made from any object loaded in a namespace other than the initial " |
| 1083 |
"namespace." |
| 1084 |
msgstr "" |
| 1085 |
"Według stanu na glibc 2.24, podanie znacznika B<RTLD_GLOBAL> przy " |
| 1086 |
"wywoływaniu B<dlmopen>() generuje błąd. Co więcej, podanie B<RTLD_GLOBAL> " |
| 1087 |
"przy wywoływaniu B<dlopen>() powoduje załamanie programu (B<SIGSEGV>), jeśli " |
| 1088 |
"wywołanie nastąpiło z dowolnego obiektu załadowanego w przestrzeni nazw " |
| 1089 |
"innej niż pierwotna przestrzeń nazw." |
| 1090 |
|
| 1091 |
#. type: SH |
| 1092 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1093 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1094 |
#, no-wrap |
| 1095 |
msgid "EXAMPLES" |
| 1096 |
msgstr "PRZYKŁADY" |
| 1097 |
|
| 1098 |
#. type: Plain text |
| 1099 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1101 |
msgid "" |
| 1102 |
"The program below loads the (glibc) math library, looks up the address of " |
| 1103 |
"the B<cos>(3) function, and prints the cosine of 2.0. The following is an " |
| 1104 |
"example of building and running the program:" |
| 1105 |
msgstr "" |
| 1106 |
"Poniższy program ładuje bibliotekę matematyczną (glibc), szuka adresu " |
| 1107 |
"funkcji B<cos>(3) i wypisuje cosinus liczby 2.0. Pokazano przykład tworzenia " |
| 1108 |
"i działania programu:" |
| 1109 |
|
| 1110 |
#. type: Plain text |
| 1111 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1112 |
#: opensuse-tumbleweed |
| 1113 |
#, no-wrap |
| 1114 |
msgid "" |
| 1115 |
"$B< cc dlopen_demo.c -ldl>;\n" |
| 1116 |
"$B< ./a.out>;\n" |
| 1117 |
"-0.416147\n" |
| 1118 |
msgstr "" |
| 1119 |
"$B< cc dlopen_demo.c -ldl>;\n" |
| 1120 |
"$B< ./a.out>;\n" |
| 1121 |
"-0.416147\n" |
| 1122 |
|
| 1123 |
#. type: SS |
| 1124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1126 |
#, no-wrap |
| 1127 |
msgid "Program source" |
| 1128 |
msgstr "Kod źródłowy programu" |
| 1129 |
|
| 1130 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1131 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1132 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1133 |
#. type: Plain text |
| 1134 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1135 |
#: opensuse-tumbleweed |
| 1136 |
#, no-wrap |
| 1137 |
msgid "" |
| 1138 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1139 |
"#include E<lt>stdio.hE<gt>\n" |
| 1140 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1141 |
"\\&\n" |
| 1142 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1143 |
" string such as \"libm.so.6\") */\n" |
| 1144 |
"int\n" |
| 1145 |
"main(void)\n" |
| 1146 |
"{\n" |
| 1147 |
" void *handle;\n" |
| 1148 |
" typeof(double (double)) *cosine;\n" |
| 1149 |
" char *error;\n" |
| 1150 |
"\\&\n" |
| 1151 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1152 |
" if (!handle) {\n" |
| 1153 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1154 |
" exit(EXIT_FAILURE);\n" |
| 1155 |
" }\n" |
| 1156 |
"\\&\n" |
| 1157 |
" dlerror(); /* Clear any existing error */\n" |
| 1158 |
"\\&\n" |
| 1159 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1160 |
"\\&\n" |
| 1161 |
" /* According to the ISO C standard, casting between function\n" |
| 1162 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1163 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1164 |
" proposed the following workaround:\n" |
| 1165 |
"\\&\n" |
| 1166 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1167 |
"\\&\n" |
| 1168 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1169 |
" avoid any compiler warnings.\n" |
| 1170 |
"\\&\n" |
| 1171 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1172 |
" by requiring that conforming implementations support casting\n" |
| 1173 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1174 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1175 |
" cast used in this program. */\n" |
| 1176 |
"\\&\n" |
| 1177 |
" error = dlerror();\n" |
| 1178 |
" if (error != NULL) {\n" |
| 1179 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1180 |
" exit(EXIT_FAILURE);\n" |
| 1181 |
" }\n" |
| 1182 |
"\\&\n" |
| 1183 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1184 |
" dlclose(handle);\n" |
| 1185 |
" exit(EXIT_SUCCESS);\n" |
| 1186 |
"}\n" |
| 1187 |
msgstr "" |
| 1188 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1189 |
"#include E<lt>stdio.hE<gt>\n" |
| 1190 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1191 |
"\\&\n" |
| 1192 |
"#include E<lt>gnu/lib-names.hE<gt> /* Definiuje LIBM_SO (będzie to\n" |
| 1193 |
" łańcuch podobny do \"libm.so.6\") */\n" |
| 1194 |
"int\n" |
| 1195 |
"main(void)\n" |
| 1196 |
"{\n" |
| 1197 |
" void *handle;\n" |
| 1198 |
" typeof(double (double)) *cosine;\n" |
| 1199 |
" char *error;\n" |
| 1200 |
"\\&\n" |
| 1201 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1202 |
" if (!handle) {\n" |
| 1203 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1204 |
" exit(EXIT_FAILURE);\n" |
| 1205 |
" }\n" |
| 1206 |
"\\&\n" |
| 1207 |
" dlerror(); /* Czyści ewentualne istniejące błędy */\n" |
| 1208 |
"\\&\n" |
| 1209 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1210 |
"\\&\n" |
| 1211 |
" /* Zgodnie ze standardem ISO C, rzutowanie pomiędzy wskaźnikami\n" |
| 1212 |
" funkcji a \\[aq]void *\\[aq], jak poniżej, daje niezdefiniowany wynik.\n" |
| 1213 |
" POSIX.1-2001 i POSIX.1-2008 akceptują ten stan rzeczy i proponują\n" |
| 1214 |
" następujące obejście problemu:\n" |
| 1215 |
"\\&\n" |
| 1216 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1217 |
"\\&\n" |
| 1218 |
" To (niezgrabne) rzutowanie jest zgodne ze standem ISO C i uniknie\n" |
| 1219 |
" ostrzeżeń kompilatora.\n" |
| 1220 |
"\\&\n" |
| 1221 |
" 2013 Technical Corrigendum 1 do POSIX.1-2008 poprawia stan rzeczy,\n" |
| 1222 |
" wymagając od zgodnych implementacji obsługi rzutowań \\[aq]void *\\[aq]\n" |
| 1223 |
" do wskaźnika funkcji. Tym niemniej, niektóre kompilatory (np. gcc\n" |
| 1224 |
" z opcją \\[aq]-pedantic\\[aq]) mogą narzekać na rzutowanie użyte\n" |
| 1225 |
" w tym programie. */\n" |
| 1226 |
"\\&\n" |
| 1227 |
" error = dlerror();\n" |
| 1228 |
" if (error != NULL) {\n" |
| 1229 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1230 |
" exit(EXIT_FAILURE);\n" |
| 1231 |
" }\n" |
| 1232 |
"\\&\n" |
| 1233 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1234 |
" dlclose(handle);\n" |
| 1235 |
" exit(EXIT_SUCCESS);\n" |
| 1236 |
"}\n" |
| 1237 |
|
| 1238 |
#. SRC END |
| 1239 |
#. type: SH |
| 1240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1242 |
#, no-wrap |
| 1243 |
msgid "SEE ALSO" |
| 1244 |
msgstr "ZOBACZ TAKŻE" |
| 1245 |
|
| 1246 |
#. type: Plain text |
| 1247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1249 |
msgid "" |
| 1250 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1251 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1252 |
"B<ldconfig>(8)" |
| 1253 |
msgstr "" |
| 1254 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1255 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1256 |
"B<ldconfig>(8)" |
| 1257 |
|
| 1258 |
#. type: Plain text |
| 1259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1261 |
msgid "gcc info pages, ld info pages" |
| 1262 |
msgstr "strony info gcc, strony info ld" |
| 1263 |
|
| 1264 |
#. type: TH |
| 1265 |
#: debian-trixie |
| 1266 |
#, no-wrap |
| 1267 |
msgid "2024-06-15" |
| 1268 |
msgstr "15 czerwca 2024 r." |
| 1269 |
|
| 1270 |
#. type: TH |
| 1271 |
#: debian-trixie |
| 1272 |
#, no-wrap |
| 1273 |
msgid "Linux man-pages 6.9.1" |
| 1274 |
msgstr "Linux man-pages 6.9.1" |
| 1275 |
|
| 1276 |
#. type: Plain text |
| 1277 |
#: debian-trixie |
| 1278 |
msgid "Dynamic linking library (I<libdl>, I<-ldl>)" |
| 1279 |
msgstr "Biblioteka konsolidacji dynamicznej (I<libdl>, I<-ldl>)" |
| 1280 |
|
| 1281 |
#. type: Plain text |
| 1282 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1283 |
#, no-wrap |
| 1284 |
msgid "" |
| 1285 |
"B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1286 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 1287 |
msgstr "" |
| 1288 |
"B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1289 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 1290 |
|
| 1291 |
#. type: Plain text |
| 1292 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1293 |
#, no-wrap |
| 1294 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1295 |
msgstr "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1296 |
|
| 1297 |
#. type: Plain text |
| 1298 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1299 |
msgid "" |
| 1300 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 1301 |
"file named by the null-terminated string I<filename> and returns an opaque " |
| 1302 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 1303 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 1304 |
"B<dlinfo>(3), and B<dlclose>()." |
| 1305 |
msgstr "" |
| 1306 |
"Funkcja B<dlopen>() ładuje dynamiczny obiekt dzielony (bibliotekę dzieloną) " |
| 1307 |
"pliku, o nazwie zawartej w zakończonym znakiem nul łańcuchu I<filename> i " |
| 1308 |
"zwraca nieprzezroczysty \\[Bq]uchwyt\\[rq] dla tego obiektu dzielonego. " |
| 1309 |
"Uchwytu tego używa się z innymi funkcjami z API dlopen, takimi jak " |
| 1310 |
"B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3) i B<dlclose>()." |
| 1311 |
|
| 1312 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 1313 |
#. a handle for (something like) the root of the namespace. |
| 1314 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 1315 |
#. the filename==NULL case returns a different handle than |
| 1316 |
#. in the initial namespace. But, on glibc, the same handle is |
| 1317 |
#. returned. This is probably a bug in glibc. |
| 1318 |
#. type: Plain text |
| 1319 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1320 |
msgid "" |
| 1321 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1322 |
"If I<filename> contains a slash (\"/\"), then it is interpreted as a " |
| 1323 |
"(relative or absolute) pathname. Otherwise, the dynamic linker searches for " |
| 1324 |
"the object as follows (see B<ld.so>(8) for further details):" |
| 1325 |
msgstr "" |
| 1326 |
"Jeśli I<filename> wynosi NULL, to zwracany jest uchwyt do głównego programu. " |
| 1327 |
"Jeśli I<filename> zawiera ukośnik (\\[Bq]/\\[rq]), to jest interpretowana " |
| 1328 |
"jako (względna lub absolutna) ścieżka. W innych sytuacjach, konsolidator " |
| 1329 |
"dynamiczny szuka obiektu w następujący sposób (więcej szczegółów w " |
| 1330 |
"podręczniku B<ld.so>(8)):" |
| 1331 |
|
| 1332 |
#. type: Plain text |
| 1333 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1334 |
msgid "" |
| 1335 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 1336 |
"checked to see whether it contains an entry for I<filename>." |
| 1337 |
msgstr "" |
| 1338 |
"Sprawdzany jest plik bufora I</etc/ld.so.cache> (zarządzany przez " |
| 1339 |
"B<ldconfig>(8)) pod kątem zawierania wpisu dla I<filename>." |
| 1340 |
|
| 1341 |
#. type: Plain text |
| 1342 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1343 |
msgid "" |
| 1344 |
"If the object specified by I<filename> has dependencies on other shared " |
| 1345 |
"objects, then these are also automatically loaded by the dynamic linker " |
| 1346 |
"using the same rules. (This process may occur recursively, if those objects " |
| 1347 |
"in turn have dependencies, and so on.)" |
| 1348 |
msgstr "" |
| 1349 |
"Jeśli obiekt określony w I<filename> ma zależności od innych obiektów " |
| 1350 |
"dzielonych, są one również automatycznie ładowane przez konsolidator " |
| 1351 |
"dynamiczny, za pomocą tych samych reguł (proces ten może postępować " |
| 1352 |
"rekurencyjnie, jeśli te obiekty mają z kolei swoje zależności itd.)." |
| 1353 |
|
| 1354 |
#. type: Plain text |
| 1355 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1356 |
msgid "" |
| 1357 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1358 |
"When given to B<dlsym>(3), this handle causes a search for a symbol in the " |
| 1359 |
"main program, followed by all shared objects loaded at program startup, and " |
| 1360 |
"then all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 1361 |
msgstr "" |
| 1362 |
"Jeśli I<filename> wynosi NULL, to zwracany jest uchwyt do głównego programu. " |
| 1363 |
"Przy przekazaniu tego uchwytu do B<dlsym>(3), powoduje on wyszukiwanie " |
| 1364 |
"symbolu w głównym programie, następnie we wszystkich obiektach dzielonych " |
| 1365 |
"załadowanych przy rozruchu programu, a potem we wszystkich obiektach " |
| 1366 |
"dzielonych załadowanych za pomocą B<dlopen>() ze znacznikiem B<RTLD_GLOBAL>." |
| 1367 |
|
| 1368 |
#. type: Plain text |
| 1369 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1370 |
msgid "" |
| 1371 |
"This function performs the same task as B<dlopen>()\\[em]the I<filename> and " |
| 1372 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 1373 |
"the differences noted below." |
| 1374 |
msgstr "" |
| 1375 |
"Funkcja ta wykonuje te same zadania co B<dlopen>() \\[em] argumenty " |
| 1376 |
"I<filename> i I<flags> oraz wartości zwraca są takie same, z wyjątkiem " |
| 1377 |
"różnic opisanych niżej." |
| 1378 |
|
| 1379 |
#. type: Plain text |
| 1380 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1381 |
msgid "" |
| 1382 |
"If I<filename> is NULL, then the only permitted value for I<lmid> is " |
| 1383 |
"B<LM_ID_BASE>." |
| 1384 |
msgstr "" |
| 1385 |
"Jeśli I<filename> wynosi NULL, to jedyną dopuszczalną wartością I<lmid> jest " |
| 1386 |
"B<LM_ID_BASE>." |
| 1387 |
|
| 1388 |
#. type: Plain text |
| 1389 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1390 |
#, no-wrap |
| 1391 |
msgid "" |
| 1392 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1393 |
"$ B<./a.out>\n" |
| 1394 |
"-0.416147\n" |
| 1395 |
msgstr "" |
| 1396 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1397 |
"$ B<./a.out>\n" |
| 1398 |
"-0.416147\n" |
| 1399 |
|
| 1400 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1401 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1402 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1403 |
#. type: Plain text |
| 1404 |
#: debian-trixie |
| 1405 |
#, no-wrap |
| 1406 |
msgid "" |
| 1407 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1408 |
"#include E<lt>stdio.hE<gt>\n" |
| 1409 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1410 |
"\\&\n" |
| 1411 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1412 |
" string such as \"libm.so.6\") */\n" |
| 1413 |
"int\n" |
| 1414 |
"main(void)\n" |
| 1415 |
"{\n" |
| 1416 |
" void *handle;\n" |
| 1417 |
" double (*cosine)(double);\n" |
| 1418 |
" char *error;\n" |
| 1419 |
"\\&\n" |
| 1420 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1421 |
" if (!handle) {\n" |
| 1422 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1423 |
" exit(EXIT_FAILURE);\n" |
| 1424 |
" }\n" |
| 1425 |
"\\&\n" |
| 1426 |
" dlerror(); /* Clear any existing error */\n" |
| 1427 |
"\\&\n" |
| 1428 |
" cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" |
| 1429 |
"\\&\n" |
| 1430 |
" /* According to the ISO C standard, casting between function\n" |
| 1431 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1432 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1433 |
" proposed the following workaround:\n" |
| 1434 |
"\\&\n" |
| 1435 |
" *(void **) (&cosine) = dlsym(handle, \"cos\");\n" |
| 1436 |
"\\&\n" |
| 1437 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1438 |
" avoid any compiler warnings.\n" |
| 1439 |
"\\&\n" |
| 1440 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1441 |
" by requiring that conforming implementations support casting\n" |
| 1442 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1443 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1444 |
" cast used in this program. */\n" |
| 1445 |
"\\&\n" |
| 1446 |
" error = dlerror();\n" |
| 1447 |
" if (error != NULL) {\n" |
| 1448 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1449 |
" exit(EXIT_FAILURE);\n" |
| 1450 |
" }\n" |
| 1451 |
"\\&\n" |
| 1452 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1453 |
" dlclose(handle);\n" |
| 1454 |
" exit(EXIT_SUCCESS);\n" |
| 1455 |
"}\n" |
| 1456 |
msgstr "" |
| 1457 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1458 |
"#include E<lt>stdio.hE<gt>\n" |
| 1459 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1460 |
"\\&\n" |
| 1461 |
"#include E<lt>gnu/lib-names.hE<gt> /* Definiuje LIBM_SO (będzie to\n" |
| 1462 |
" łańcuch podobny do \"libm.so.6\") */\n" |
| 1463 |
"int\n" |
| 1464 |
"main(void)\n" |
| 1465 |
"{\n" |
| 1466 |
" void *handle;\n" |
| 1467 |
" double (*cosine)(double);\n" |
| 1468 |
" char *error;\n" |
| 1469 |
"\\&\n" |
| 1470 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1471 |
" if (!handle) {\n" |
| 1472 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1473 |
" exit(EXIT_FAILURE);\n" |
| 1474 |
" }\n" |
| 1475 |
"\\&\n" |
| 1476 |
" dlerror(); /* Czyści ewentualne istniejące błędy */\n" |
| 1477 |
"\\&\n" |
| 1478 |
" cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" |
| 1479 |
"\\&\n" |
| 1480 |
" /* Zgodnie ze standardem ISO C, rzutowanie pomiędzy wskaźnikami\n" |
| 1481 |
" funkcji a \\[aq]void *\\[aq], jak poniżej, daje niezdefiniowany wynik.\n" |
| 1482 |
" POSIX.1-2001 i POSIX.1-2008 akceptują ten stan rzeczy i proponują\n" |
| 1483 |
" następujące obejście problemu:\n" |
| 1484 |
"\\&\n" |
| 1485 |
" *(void **) (&cosine) = dlsym(handle, \"cos\");\n" |
| 1486 |
"\\&\n" |
| 1487 |
" To (niezgrabne) rzutowanie jest zgodne ze standem ISO C i uniknie\n" |
| 1488 |
" ostrzeżeń kompilatora.\n" |
| 1489 |
"\\&\n" |
| 1490 |
" 2013 Technical Corrigendum 1 do POSIX.1-2008 poprawia stan rzeczy,\n" |
| 1491 |
" wymagając od zgodnych implementacji obsługi rzutowań \\[aq]void *\\[aq]\n" |
| 1492 |
" do wskaźnika funkcji. Tym niemniej, niektóre kompilatory (np. gcc\n" |
| 1493 |
" z opcją \\[aq]-pedantic\\[aq]) mogą narzekać na rzutowanie użyte\n" |
| 1494 |
" w tym programie. */\n" |
| 1495 |
"\\&\n" |
| 1496 |
" error = dlerror();\n" |
| 1497 |
" if (error != NULL) {\n" |
| 1498 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1499 |
" exit(EXIT_FAILURE);\n" |
| 1500 |
" }\n" |
| 1501 |
"\\&\n" |
| 1502 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1503 |
" dlclose(handle);\n" |
| 1504 |
" exit(EXIT_SUCCESS);\n" |
| 1505 |
"}\n" |
| 1506 |
|
| 1507 |
#. type: TH |
| 1508 |
#: fedora-44 fedora-rawhide |
| 1509 |
#, no-wrap |
| 1510 |
msgid "2025-01-05" |
| 1511 |
msgstr "5 stycznia 2025 r." |
| 1512 |
|
| 1513 |
#. type: TH |
| 1514 |
#: fedora-44 fedora-rawhide |
| 1515 |
#, no-wrap |
| 1516 |
msgid "Linux man-pages 6.13" |
| 1517 |
msgstr "Linux man-pages 6.13" |
| 1518 |
|
| 1519 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1520 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1521 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1522 |
#. type: Plain text |
| 1523 |
#: fedora-44 fedora-rawhide |
| 1524 |
#, no-wrap |
| 1525 |
msgid "" |
| 1526 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1527 |
"#include E<lt>stdio.hE<gt>\n" |
| 1528 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1529 |
"\\&\n" |
| 1530 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1531 |
" string such as \"libm.so.6\") */\n" |
| 1532 |
"int\n" |
| 1533 |
"main(void)\n" |
| 1534 |
"{\n" |
| 1535 |
" void *handle;\n" |
| 1536 |
" typeof(double (double)) *cosine;\n" |
| 1537 |
" char *error;\n" |
| 1538 |
"\\&\n" |
| 1539 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1540 |
" if (!handle) {\n" |
| 1541 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1542 |
" exit(EXIT_FAILURE);\n" |
| 1543 |
" }\n" |
| 1544 |
"\\&\n" |
| 1545 |
" dlerror(); /* Clear any existing error */\n" |
| 1546 |
"\\&\n" |
| 1547 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1548 |
"\\&\n" |
| 1549 |
" /* According to the ISO C standard, casting between function\n" |
| 1550 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1551 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1552 |
" proposed the following workaround:\n" |
| 1553 |
"\\&\n" |
| 1554 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1555 |
"\\&\n" |
| 1556 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1557 |
" avoid any compiler warnings.\n" |
| 1558 |
"\\&\n" |
| 1559 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1560 |
" by requiring that conforming implementations support casting\n" |
| 1561 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1562 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1563 |
" cast used in this program. */\n" |
| 1564 |
"\\&\n" |
| 1565 |
" error = dlerror();\n" |
| 1566 |
" if (error != NULL) {\n" |
| 1567 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1568 |
" exit(EXIT_FAILURE);\n" |
| 1569 |
" }\n" |
| 1570 |
"\\&\n" |
| 1571 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1572 |
" dlclose(handle);\n" |
| 1573 |
" exit(EXIT_SUCCESS);\n" |
| 1574 |
"}\n" |
| 1575 |
msgstr "" |
| 1576 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1577 |
"#include E<lt>stdio.hE<gt>\n" |
| 1578 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1579 |
"\\&\n" |
| 1580 |
"#include E<lt>gnu/lib-names.hE<gt> /* Definiuje LIBM_SO (będzie to\n" |
| 1581 |
" łańcuch podobny do \"libm.so.6\") */\n" |
| 1582 |
"int\n" |
| 1583 |
"main(void)\n" |
| 1584 |
"{\n" |
| 1585 |
" void *handle;\n" |
| 1586 |
" typeof(double (double)) *cosine;\n" |
| 1587 |
" char *error;\n" |
| 1588 |
"\\&\n" |
| 1589 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1590 |
" if (!handle) {\n" |
| 1591 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1592 |
" exit(EXIT_FAILURE);\n" |
| 1593 |
" }\n" |
| 1594 |
"\\&\n" |
| 1595 |
" dlerror(); /* Czyści ewentualne istniejące błędy */\n" |
| 1596 |
"\\&\n" |
| 1597 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1598 |
"\\&\n" |
| 1599 |
" /* Zgodnie ze standardem ISO C, rzutowanie pomiędzy wskaźnikami\n" |
| 1600 |
" funkcji a \\[aq]void *\\[aq], jak poniżej, daje niezdefiniowany wynik.\n" |
| 1601 |
" POSIX.1-2001 i POSIX.1-2008 akceptują ten stan rzeczy i proponują\n" |
| 1602 |
" następujące obejście problemu:\n" |
| 1603 |
"\\&\n" |
| 1604 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1605 |
"\\&\n" |
| 1606 |
" To (niezgrabne) rzutowanie jest zgodne ze standem ISO C i uniknie\n" |
| 1607 |
" ostrzeżeń kompilatora.\n" |
| 1608 |
"\\&\n" |
| 1609 |
" 2013 Technical Corrigendum 1 do POSIX.1-2008 poprawia stan rzeczy,\n" |
| 1610 |
" wymagając od zgodnych implementacji obsługi rzutowań \\[aq]void *\\[aq]\n" |
| 1611 |
" do wskaźnika funkcji. Tym niemniej, niektóre kompilatory (np. gcc\n" |
| 1612 |
" z opcją \\[aq]-pedantic\\[aq]) mogą narzekać na rzutowanie użyte\n" |
| 1613 |
" w tym programie. */\n" |
| 1614 |
"\\&\n" |
| 1615 |
" error = dlerror();\n" |
| 1616 |
" if (error != NULL) {\n" |
| 1617 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1618 |
" exit(EXIT_FAILURE);\n" |
| 1619 |
" }\n" |
| 1620 |
"\\&\n" |
| 1621 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1622 |
" dlclose(handle);\n" |
| 1623 |
" exit(EXIT_SUCCESS);\n" |
| 1624 |
"}\n" |
| 1625 |
|
| 1626 |
#. type: TH |
| 1627 |
#: mageia-cauldron |
| 1628 |
#, no-wrap |
| 1629 |
msgid "Linux man-pages 6.17" |
| 1630 |
msgstr "Linux man-pages 6.17" |
| 1631 |
|
| 1632 |
#. type: TH |
| 1633 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1634 |
#, no-wrap |
| 1635 |
msgid "Linux man-pages (unreleased)" |
| 1636 |
msgstr "Linux man-pages (niewydane)" |