Debian Codegraph @

po/es/man3/dlopen.3.po

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