Debian Codegraph @

po/ko/man3/dlopen.3.po

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