| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:22+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\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 |
#, no-wrap |
| 23 |
msgid "dlinfo" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "dlinfo - obtain information about a dynamically loaded object" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Dynamic linking library (I<libdl>,\\ I<-ldl>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "" |
| 77 |
"B<#define _GNU_SOURCE>\n" |
| 78 |
"B<#include E<lt>link.hE<gt>>\n" |
| 79 |
"B<#include E<lt>dlfcn.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "B<int dlinfo(void *restrict >handleB<, int >requestB<, void *restrict >infoB<);>\n" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: SH |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "DESCRIPTION" |
| 94 |
msgstr "" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
msgid "" |
| 100 |
"The B<dlinfo>() function obtains information about the dynamically loaded " |
| 101 |
"object referred to by I<handle> (typically obtained by an earlier call to " |
| 102 |
"B<dlopen>(3) or B<dlmopen>(3)). The I<request> argument specifies which " |
| 103 |
"information is to be returned. The I<info> argument is a pointer to a " |
| 104 |
"buffer used to store information returned by the call; the type of this " |
| 105 |
"argument depends on I<request>." |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "" |
| 112 |
"The following values are supported for I<request> (with the corresponding " |
| 113 |
"type for I<info> shown in parentheses):" |
| 114 |
msgstr "" |
| 115 |
|
| 116 |
#. type: TP |
| 117 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 118 |
#: opensuse-tumbleweed |
| 119 |
#, no-wrap |
| 120 |
msgid "B<RTLD_DI_LMID> (\\f[I]Lmid_t *\\fR)" |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"Obtain the ID of the link-map list (namespace) in which I<handle> is loaded." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: TP |
| 131 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 132 |
#: opensuse-tumbleweed |
| 133 |
#, no-wrap |
| 134 |
msgid "B<RTLD_DI_LINKMAP> (\\f[I]struct link_map **\\fR)" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"Obtain a pointer to the I<link_map> structure corresponding to I<handle>. " |
| 142 |
"The I<info> argument points to a pointer to a I<link_map> structure, defined " |
| 143 |
"in I<E<lt>link.hE<gt>> as:" |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "" |
| 151 |
"struct link_map {\n" |
| 152 |
" ElfW(Addr) l_addr; /* Difference between the\n" |
| 153 |
" address in the ELF file and\n" |
| 154 |
" the address in memory */\n" |
| 155 |
" char *l_name; /* Absolute pathname where\n" |
| 156 |
" object was found */\n" |
| 157 |
" ElfW(Dyn) *l_ld; /* Dynamic section of the\n" |
| 158 |
" shared object */\n" |
| 159 |
" struct link_map *l_next, *l_prev;\n" |
| 160 |
" /* Chain of loaded objects */\n" |
| 161 |
"\\&\n" |
| 162 |
" /* Plus additional fields private to the\n" |
| 163 |
" implementation */\n" |
| 164 |
"};\n" |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: TP |
| 168 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 169 |
#: opensuse-tumbleweed |
| 170 |
#, no-wrap |
| 171 |
msgid "B<RTLD_DI_ORIGIN> (\\f[I]char *\\fR)" |
| 172 |
msgstr "" |
| 173 |
|
| 174 |
#. type: Plain text |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
msgid "" |
| 178 |
"Copy the pathname of the origin of the shared object corresponding to " |
| 179 |
"I<handle> to the location pointed to by I<info>." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: TP |
| 183 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 184 |
#: opensuse-tumbleweed |
| 185 |
#, no-wrap |
| 186 |
msgid "B<RTLD_DI_SERINFO> (\\f[I]Dl_serinfo *\\fR)" |
| 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 |
"Obtain the library search paths for the shared object referred to by " |
| 194 |
"I<handle>. The I<info> argument is a pointer to a I<Dl_serinfo> that " |
| 195 |
"contains the search paths. Because the number of search paths may vary, the " |
| 196 |
"size of the structure pointed to by I<info> can vary. The " |
| 197 |
"B<RTLD_DI_SERINFOSIZE> request described below allows applications to size " |
| 198 |
"the buffer suitably. The caller must perform the following steps:" |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#. type: IP |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid "(1)" |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
msgid "" |
| 212 |
"Use a B<RTLD_DI_SERINFOSIZE> request to populate a I<Dl_serinfo> structure " |
| 213 |
"with the size (I<dls_size>) of the structure needed for the subsequent " |
| 214 |
"B<RTLD_DI_SERINFO> request." |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: IP |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "(2)" |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "Allocate a I<Dl_serinfo> buffer of the correct size (I<dls_size>)." |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: IP |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "(3)" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"Use a further B<RTLD_DI_SERINFOSIZE> request to populate the I<dls_size> and " |
| 242 |
"I<dls_cnt> fields of the buffer allocated in the previous step." |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: IP |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
#, no-wrap |
| 249 |
msgid "(4)" |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "Use a B<RTLD_DI_SERINFO> to obtain the library search paths." |
| 256 |
msgstr "" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
msgid "The I<Dl_serinfo> structure is defined as follows:" |
| 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 |
#, no-wrap |
| 268 |
msgid "" |
| 269 |
"typedef struct {\n" |
| 270 |
" size_t dls_size; /* Size in bytes of\n" |
| 271 |
" the whole buffer */\n" |
| 272 |
" unsigned int dls_cnt; /* Number of elements\n" |
| 273 |
" in \\[aq]dls_serpath\\[aq] */\n" |
| 274 |
" Dl_serpath dls_serpath[1]; /* Actually longer,\n" |
| 275 |
" \\[aq]dls_cnt\\[aq] elements */\n" |
| 276 |
"} Dl_serinfo;\n" |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"Each of the I<dls_serpath> elements in the above structure is a structure of " |
| 284 |
"the following form:" |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "" |
| 292 |
"typedef struct {\n" |
| 293 |
" char *dls_name; /* Name of library search\n" |
| 294 |
" path directory */\n" |
| 295 |
" unsigned int dls_flags; /* Indicates where this\n" |
| 296 |
" directory came from */\n" |
| 297 |
"} Dl_serpath;\n" |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "The I<dls_flags> field is currently unused, and always contains zero." |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: TP |
| 307 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 308 |
#: opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "B<RTLD_DI_SERINFOSIZE> (\\f[I]Dl_serinfo *\\fR)" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "" |
| 317 |
"Populate the I<dls_size> and I<dls_cnt> fields of the I<Dl_serinfo> " |
| 318 |
"structure pointed to by I<info> with values suitable for allocating a buffer " |
| 319 |
"for use in a subsequent B<RTLD_DI_SERINFO> request." |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#. type: TP |
| 323 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 324 |
#: opensuse-tumbleweed |
| 325 |
#, no-wrap |
| 326 |
msgid "B<RTLD_DI_TLS_MODID> (\\f[I]size_t *\\fR, since glibc 2.4)" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
msgid "" |
| 333 |
"Obtain the module ID of this shared object's TLS (thread-local storage) " |
| 334 |
"segment, as used in TLS relocations. If this object does not define a TLS " |
| 335 |
"segment, zero is placed in I<*info>." |
| 336 |
msgstr "" |
| 337 |
|
| 338 |
#. type: TP |
| 339 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 340 |
#: opensuse-tumbleweed |
| 341 |
#, no-wrap |
| 342 |
msgid "B<RTLD_DI_TLS_DATA> (\\f[I]void **\\fR, since glibc 2.4)" |
| 343 |
msgstr "" |
| 344 |
|
| 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 |
"Obtain a pointer to the calling thread's TLS block corresponding to this " |
| 350 |
"shared object's TLS segment. If this object does not define a PT_TLS " |
| 351 |
"segment, or if the calling thread has not allocated a block for it, NULL is " |
| 352 |
"placed in I<*info>." |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: TP |
| 356 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 357 |
#: opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "B<RTLD_DI_PHDR> (\\f[I]const ElfW(Phdr *)\\fR, since glibc 2.34.1)" |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. glibc commit d056c212130280c0a54d9a4f72170ec621b70ce5 (2.36) |
| 363 |
#. glibc commit 28ea43f8d64f0dd1f2de75525157730e1532e600 (2.35.1) |
| 364 |
#. glibc commit 91c2e6c3db44297bf4cb3a2e3c40236c5b6a0b23 (2.34.1) |
| 365 |
#. type: Plain text |
| 366 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 367 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
msgid "" |
| 369 |
"Obtain the address of this shared object's program header and place it in " |
| 370 |
"I<*info>. This B<dlinfo> call returns the number of program headers in the " |
| 371 |
"shared object." |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: SH |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid "RETURN VALUE" |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 383 |
#: opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"On success, B<dlinfo>() returns 0 (if not specified explicitly), or a " |
| 386 |
"positive value corresponding to the request. On error, it returns -1; the " |
| 387 |
"error can be diagnosed using B<dlerror>(3)." |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: SH |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "ATTRIBUTES" |
| 395 |
msgstr "" |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
msgid "" |
| 401 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: tbl table |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "Interface" |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#. type: tbl table |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
#, no-wrap |
| 415 |
msgid "Attribute" |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: tbl table |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "Value" |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#. type: tbl table |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
#, no-wrap |
| 429 |
msgid ".na\n" |
| 430 |
msgstr "" |
| 431 |
|
| 432 |
#. type: tbl table |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
#, no-wrap |
| 436 |
msgid ".nh\n" |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#. type: tbl table |
| 440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 442 |
#, no-wrap |
| 443 |
msgid "B<dlinfo>()" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: tbl table |
| 447 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 448 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 449 |
#, no-wrap |
| 450 |
msgid "Thread safety" |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: tbl table |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "MT-Safe" |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: SH |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "VERSIONS" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"The sets of requests supported by the various implementations overlaps only " |
| 472 |
"partially." |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#. type: SH |
| 476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
#, no-wrap |
| 479 |
msgid "STANDARDS" |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
msgid "GNU." |
| 486 |
msgstr "" |
| 487 |
|
| 488 |
#. type: SH |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
#, no-wrap |
| 492 |
msgid "HISTORY" |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
msgid "glibc 2.3.3. Solaris." |
| 499 |
msgstr "" |
| 500 |
|
| 501 |
#. type: SH |
| 502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 503 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 504 |
#, no-wrap |
| 505 |
msgid "EXAMPLES" |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
msgid "" |
| 512 |
"The program below opens a shared objects using B<dlopen>(3) and then uses " |
| 513 |
"the B<RTLD_DI_SERINFOSIZE> and B<RTLD_DI_SERINFO> requests to obtain the " |
| 514 |
"library search path list for the library. Here is an example of what we " |
| 515 |
"might see when running the program:" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: Plain text |
| 519 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 520 |
#: opensuse-tumbleweed |
| 521 |
#, no-wrap |
| 522 |
msgid "" |
| 523 |
"$B< ./a.out /lib64/libm.so.6>;\n" |
| 524 |
"dls_serpath[0].dls_name = /lib64\n" |
| 525 |
"dls_serpath[1].dls_name = /usr/lib64\n" |
| 526 |
msgstr "" |
| 527 |
|
| 528 |
#. type: SS |
| 529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 531 |
#, no-wrap |
| 532 |
msgid "Program source" |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: Plain text |
| 536 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 537 |
#: opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "" |
| 540 |
"#define _GNU_SOURCE\n" |
| 541 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 542 |
"#include E<lt>link.hE<gt>\n" |
| 543 |
"#include E<lt>stdio.hE<gt>\n" |
| 544 |
"#include E<lt>stdlib.hE<gt>\n" |
| 545 |
"\\&\n" |
| 546 |
"int\n" |
| 547 |
"main(int argc, char *argv[])\n" |
| 548 |
"{\n" |
| 549 |
" void *handle;\n" |
| 550 |
" Dl_serinfo serinfo;\n" |
| 551 |
" Dl_serinfo *sip;\n" |
| 552 |
"\\&\n" |
| 553 |
" if (argc != 2) {\n" |
| 554 |
" fprintf(stderr, \"Usage: %s E<lt>libpathE<gt>\\[rs]n\", argv[0]);\n" |
| 555 |
" exit(EXIT_FAILURE);\n" |
| 556 |
" }\n" |
| 557 |
"\\&\n" |
| 558 |
" /* Obtain a handle for shared object specified on command line. */\n" |
| 559 |
"\\&\n" |
| 560 |
" handle = dlopen(argv[1], RTLD_NOW);\n" |
| 561 |
" if (handle == NULL) {\n" |
| 562 |
" fprintf(stderr, \"dlopen() failed: %s\\[rs]n\", dlerror());\n" |
| 563 |
" exit(EXIT_FAILURE);\n" |
| 564 |
" }\n" |
| 565 |
"\\&\n" |
| 566 |
" /* Discover the size of the buffer that we must pass to\n" |
| 567 |
" RTLD_DI_SERINFO. */\n" |
| 568 |
"\\&\n" |
| 569 |
" if (dlinfo(handle, RTLD_DI_SERINFOSIZE, &serinfo) == -1) {\n" |
| 570 |
" fprintf(stderr, \"RTLD_DI_SERINFOSIZE failed: %s\\[rs]n\", dlerror());\n" |
| 571 |
" exit(EXIT_FAILURE);\n" |
| 572 |
" }\n" |
| 573 |
"\\&\n" |
| 574 |
" /* Allocate the buffer for use with RTLD_DI_SERINFO. */\n" |
| 575 |
"\\&\n" |
| 576 |
" sip = malloc(serinfo.dls_size);\n" |
| 577 |
" if (sip == NULL) {\n" |
| 578 |
" perror(\"malloc\");\n" |
| 579 |
" exit(EXIT_FAILURE);\n" |
| 580 |
" }\n" |
| 581 |
"\\&\n" |
| 582 |
" /* Initialize the \\[aq]dls_size\\[aq] and \\[aq]dls_cnt\\[aq] fields in the newly\n" |
| 583 |
" allocated buffer. */\n" |
| 584 |
"\\&\n" |
| 585 |
" if (dlinfo(handle, RTLD_DI_SERINFOSIZE, sip) == -1) {\n" |
| 586 |
" fprintf(stderr, \"RTLD_DI_SERINFOSIZE failed: %s\\[rs]n\", dlerror());\n" |
| 587 |
" exit(EXIT_FAILURE);\n" |
| 588 |
" }\n" |
| 589 |
"\\&\n" |
| 590 |
" /* Fetch and print library search list. */\n" |
| 591 |
"\\&\n" |
| 592 |
" if (dlinfo(handle, RTLD_DI_SERINFO, sip) == -1) {\n" |
| 593 |
" fprintf(stderr, \"RTLD_DI_SERINFO failed: %s\\[rs]n\", dlerror());\n" |
| 594 |
" exit(EXIT_FAILURE);\n" |
| 595 |
" }\n" |
| 596 |
"\\&\n" |
| 597 |
" for (size_t j = 0; j E<lt> serinfo.dls_cnt; j++)\n" |
| 598 |
" printf(\"dls_serpath[%zu].dls_name = %s\\[rs]n\",\n" |
| 599 |
" j, sip-E<gt>dls_serpath[j].dls_name);\n" |
| 600 |
"\\&\n" |
| 601 |
" exit(EXIT_SUCCESS);\n" |
| 602 |
"}\n" |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. SRC END |
| 606 |
#. type: SH |
| 607 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 608 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 609 |
#, no-wrap |
| 610 |
msgid "SEE ALSO" |
| 611 |
msgstr "" |
| 612 |
|
| 613 |
#. type: Plain text |
| 614 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 615 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 616 |
msgid "" |
| 617 |
"B<dl_iterate_phdr>(3), B<dladdr>(3), B<dlerror>(3), B<dlopen>(3), " |
| 618 |
"B<dlsym>(3), B<ld.so>(8)" |
| 619 |
msgstr "" |
| 620 |
|
| 621 |
#. type: TH |
| 622 |
#: debian-trixie |
| 623 |
#, no-wrap |
| 624 |
msgid "2024-06-15" |
| 625 |
msgstr "" |
| 626 |
|
| 627 |
#. type: TH |
| 628 |
#: debian-trixie |
| 629 |
#, no-wrap |
| 630 |
msgid "Linux man-pages 6.9.1" |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: debian-trixie |
| 635 |
msgid "Dynamic linking library (I<libdl>, I<-ldl>)" |
| 636 |
msgstr "" |
| 637 |
|
| 638 |
#. type: TP |
| 639 |
#: debian-trixie fedora-44 fedora-rawhide |
| 640 |
#, no-wrap |
| 641 |
msgid "B<RTLD_DI_LMID> (I<Lmid_t *>)" |
| 642 |
msgstr "" |
| 643 |
|
| 644 |
#. type: TP |
| 645 |
#: debian-trixie fedora-44 fedora-rawhide |
| 646 |
#, no-wrap |
| 647 |
msgid "B<RTLD_DI_LINKMAP> (I<struct link_map **>)" |
| 648 |
msgstr "" |
| 649 |
|
| 650 |
#. type: TP |
| 651 |
#: debian-trixie fedora-44 fedora-rawhide |
| 652 |
#, no-wrap |
| 653 |
msgid "B<RTLD_DI_ORIGIN> (I<char *>)" |
| 654 |
msgstr "" |
| 655 |
|
| 656 |
#. type: TP |
| 657 |
#: debian-trixie fedora-44 fedora-rawhide |
| 658 |
#, no-wrap |
| 659 |
msgid "B<RTLD_DI_SERINFO> (I<Dl_serinfo *>)" |
| 660 |
msgstr "" |
| 661 |
|
| 662 |
#. type: TP |
| 663 |
#: debian-trixie fedora-44 fedora-rawhide |
| 664 |
#, no-wrap |
| 665 |
msgid "B<RTLD_DI_SERINFOSIZE> (I<Dl_serinfo *>)" |
| 666 |
msgstr "" |
| 667 |
|
| 668 |
#. type: TP |
| 669 |
#: debian-trixie fedora-44 fedora-rawhide |
| 670 |
#, no-wrap |
| 671 |
msgid "B<RTLD_DI_TLS_MODID> (I<size_t *>, since glibc 2.4)" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: TP |
| 675 |
#: debian-trixie fedora-44 fedora-rawhide |
| 676 |
#, no-wrap |
| 677 |
msgid "B<RTLD_DI_TLS_DATA> (I<void **>, since glibc 2.4)" |
| 678 |
msgstr "" |
| 679 |
|
| 680 |
#. type: Plain text |
| 681 |
#: debian-trixie |
| 682 |
msgid "" |
| 683 |
"On success, B<dlinfo>() returns 0. On failure, it returns -1; the cause of " |
| 684 |
"the error can be diagnosed using B<dlerror>(3)." |
| 685 |
msgstr "" |
| 686 |
|
| 687 |
#. type: Plain text |
| 688 |
#: debian-trixie fedora-44 fedora-rawhide |
| 689 |
#, no-wrap |
| 690 |
msgid "" |
| 691 |
"$ B<./a.out /lib64/libm.so.6>\n" |
| 692 |
"dls_serpath[0].dls_name = /lib64\n" |
| 693 |
"dls_serpath[1].dls_name = /usr/lib64\n" |
| 694 |
msgstr "" |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: debian-trixie fedora-44 fedora-rawhide |
| 698 |
#, no-wrap |
| 699 |
msgid "" |
| 700 |
"#define _GNU_SOURCE\n" |
| 701 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 702 |
"#include E<lt>link.hE<gt>\n" |
| 703 |
"#include E<lt>stdio.hE<gt>\n" |
| 704 |
"#include E<lt>stdlib.hE<gt>\n" |
| 705 |
"\\&\n" |
| 706 |
"int\n" |
| 707 |
"main(int argc, char *argv[])\n" |
| 708 |
"{\n" |
| 709 |
" void *handle;\n" |
| 710 |
" Dl_serinfo serinfo;\n" |
| 711 |
" Dl_serinfo *sip;\n" |
| 712 |
"\\&\n" |
| 713 |
" if (argc != 2) {\n" |
| 714 |
" fprintf(stderr, \"Usage: %s E<lt>libpathE<gt>\\[rs]n\", argv[0]);\n" |
| 715 |
" exit(EXIT_FAILURE);\n" |
| 716 |
" }\n" |
| 717 |
"\\&\n" |
| 718 |
" /* Obtain a handle for shared object specified on command line. */\n" |
| 719 |
"\\&\n" |
| 720 |
" handle = dlopen(argv[1], RTLD_NOW);\n" |
| 721 |
" if (handle == NULL) {\n" |
| 722 |
" fprintf(stderr, \"dlopen() failed: %s\\[rs]n\", dlerror());\n" |
| 723 |
" exit(EXIT_FAILURE);\n" |
| 724 |
" }\n" |
| 725 |
"\\&\n" |
| 726 |
" /* Discover the size of the buffer that we must pass to\n" |
| 727 |
" RTLD_DI_SERINFO. */\n" |
| 728 |
"\\&\n" |
| 729 |
" if (dlinfo(handle, RTLD_DI_SERINFOSIZE, &serinfo) == -1) {\n" |
| 730 |
" fprintf(stderr, \"RTLD_DI_SERINFOSIZE failed: %s\\[rs]n\", dlerror());\n" |
| 731 |
" exit(EXIT_FAILURE);\n" |
| 732 |
" }\n" |
| 733 |
"\\&\n" |
| 734 |
" /* Allocate the buffer for use with RTLD_DI_SERINFO. */\n" |
| 735 |
"\\&\n" |
| 736 |
" sip = malloc(serinfo.dls_size);\n" |
| 737 |
" if (sip == NULL) {\n" |
| 738 |
" perror(\"malloc\");\n" |
| 739 |
" exit(EXIT_FAILURE);\n" |
| 740 |
" }\n" |
| 741 |
"\\&\n" |
| 742 |
" /* Initialize the \\[aq]dls_size\\[aq] and \\[aq]dls_cnt\\[aq] fields in the newly\n" |
| 743 |
" allocated buffer. */\n" |
| 744 |
"\\&\n" |
| 745 |
" if (dlinfo(handle, RTLD_DI_SERINFOSIZE, sip) == -1) {\n" |
| 746 |
" fprintf(stderr, \"RTLD_DI_SERINFOSIZE failed: %s\\[rs]n\", dlerror());\n" |
| 747 |
" exit(EXIT_FAILURE);\n" |
| 748 |
" }\n" |
| 749 |
"\\&\n" |
| 750 |
" /* Fetch and print library search list. */\n" |
| 751 |
"\\&\n" |
| 752 |
" if (dlinfo(handle, RTLD_DI_SERINFO, sip) == -1) {\n" |
| 753 |
" fprintf(stderr, \"RTLD_DI_SERINFO failed: %s\\[rs]n\", dlerror());\n" |
| 754 |
" exit(EXIT_FAILURE);\n" |
| 755 |
" }\n" |
| 756 |
"\\&\n" |
| 757 |
" for (size_t j = 0; j E<lt> serinfo.dls_cnt; j++)\n" |
| 758 |
" printf(\"dls_serpath[%zu].dls_name = %s\\[rs]n\",\n" |
| 759 |
" j, sip-E<gt>dls_serpath[j].dls_name);\n" |
| 760 |
"\\&\n" |
| 761 |
" exit(EXIT_SUCCESS);\n" |
| 762 |
"}\n" |
| 763 |
msgstr "" |
| 764 |
|
| 765 |
#. type: TH |
| 766 |
#: fedora-44 fedora-rawhide |
| 767 |
#, no-wrap |
| 768 |
msgid "2024-08-28" |
| 769 |
msgstr "" |
| 770 |
|
| 771 |
#. type: TH |
| 772 |
#: fedora-44 fedora-rawhide |
| 773 |
#, no-wrap |
| 774 |
msgid "Linux man-pages 6.13" |
| 775 |
msgstr "" |
| 776 |
|
| 777 |
#. type: TP |
| 778 |
#: fedora-44 fedora-rawhide |
| 779 |
#, no-wrap |
| 780 |
msgid "B<RTLD_DI_PHDR> (I<const ElfW(Phdr *)>, since glibc 2.34.1)" |
| 781 |
msgstr "" |
| 782 |
|
| 783 |
#. type: Plain text |
| 784 |
#: fedora-44 fedora-rawhide |
| 785 |
msgid "" |
| 786 |
"On success, B<dlinfo>() returns 0 (if not specified explicitly), or a " |
| 787 |
"positive value corresponding to the request. On failure, it returns -1; the " |
| 788 |
"error can be diagnosed using B<dlerror>(3)." |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: TH |
| 792 |
#: mageia-cauldron |
| 793 |
#, no-wrap |
| 794 |
msgid "Linux man-pages 6.17" |
| 795 |
msgstr "" |
| 796 |
|
| 797 |
#. type: TH |
| 798 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 799 |
#, no-wrap |
| 800 |
msgid "Linux man-pages (unreleased)" |
| 801 |
msgstr "" |