| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006, 2013. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012, 2013. |
| 18 |
# Grégoire Scano <[email protected]>, 2021. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.30\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:22+0200\n" |
| 23 |
"PO-Revision-Date: 2026-04-04 18:23+0200\n" |
| 24 |
"Last-Translator: Grégoire Scano <[email protected]>\n" |
| 25 |
"Language-Team: French <[email protected]>\n" |
| 26 |
"Language: fr\n" |
| 27 |
"MIME-Version: 1.0\n" |
| 28 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 29 |
"Content-Transfer-Encoding: 8bit\n" |
| 30 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 31 |
"X-Generator: Lokalize 25.04.0\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 35 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "dlopen" |
| 38 |
msgstr "dlopen" |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 42 |
#: opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "2026-02-08" |
| 45 |
msgstr "8 février 2026" |
| 46 |
|
| 47 |
#. type: TH |
| 48 |
#: archlinux debian-unstable |
| 49 |
#, no-wrap |
| 50 |
msgid "Linux man-pages 6.18" |
| 51 |
msgstr "Pages du manuel de Linux 6.18" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "NAME" |
| 58 |
msgstr "NOM" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "dlclose, dlopen, dlmopen - open and close a shared object" |
| 64 |
msgstr "dlclose, dlopen, dlmopen - Ouvrir et fermer un objet partagé" |
| 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 "LIBRARY" |
| 71 |
msgstr "BIBLIOTHÈQUE" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 75 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
msgid "Dynamic linking library (I<libdl>,\\ I<-ldl>)" |
| 77 |
msgstr "Bibliothèque de liens dynamiques (I<libdl>,\\ I<-ldl>)" |
| 78 |
|
| 79 |
#. type: SH |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "SYNOPSIS" |
| 84 |
msgstr "SYNOPSIS" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 91 |
msgstr "B<#include E<lt>dlfcn.hE<gt>>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 95 |
#: opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n" |
| 99 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 100 |
msgstr "" |
| 101 |
"B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n" |
| 102 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "B<#define _GNU_SOURCE>\n" |
| 109 |
msgstr "B<#define _GNU_SOURCE>\n" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 113 |
#: opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);>\n" |
| 116 |
msgstr "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);>\n" |
| 117 |
|
| 118 |
#. type: SH |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, no-wrap |
| 122 |
msgid "DESCRIPTION" |
| 123 |
msgstr "DESCRIPTION" |
| 124 |
|
| 125 |
#. type: SS |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
#, no-wrap |
| 129 |
msgid "dlopen()" |
| 130 |
msgstr "dlopen()" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 134 |
#: opensuse-tumbleweed |
| 135 |
msgid "" |
| 136 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 137 |
"file named by the null-terminated string I<path> and returns an opaque " |
| 138 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 139 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 140 |
"B<dlinfo>(3), and B<dlclose>()." |
| 141 |
msgstr "" |
| 142 |
"La fonction B<dlopen>() charge la bibliothèque dynamique dont le nom est " |
| 143 |
"fourni dans la chaîne I<path> (terminée par l'octet NULL) et renvoie un " |
| 144 |
"descripteur opaque (« handle ») représentant la bibliothèque dynamique. Ce " |
| 145 |
"descripteur est utilisé avec d'autres fonctions dans l'API dlopen, telles " |
| 146 |
"que B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3) et B<dlclose>()." |
| 147 |
|
| 148 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 149 |
#. a handle for (something like) the root of the namespace. |
| 150 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 151 |
#. the path==NULL case returns a different handle than |
| 152 |
#. in the initial namespace. But, on glibc, the same handle is |
| 153 |
#. returned. This is probably a bug in glibc. |
| 154 |
#. type: Plain text |
| 155 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 156 |
#: opensuse-tumbleweed |
| 157 |
msgid "" |
| 158 |
"If I<path> is NULL, then the returned handle is for the main program. If " |
| 159 |
"I<path> contains a slash (\"/\"), then it is interpreted as a (relative or " |
| 160 |
"absolute) pathname. Otherwise, the dynamic linker searches for the object " |
| 161 |
"as follows (see B<ld.so>(8) for further details):" |
| 162 |
msgstr "" |
| 163 |
"Si l'argument I<path> est un pointeur NULL, le descripteur renvoyé " |
| 164 |
"correspond au programme principal. Si I<path> contient une barre oblique " |
| 165 |
"(«\\ /\\ »), il est interprété comme un chemin (relatif ou absolu). " |
| 166 |
"Autrement, l'éditeur dynamique de liens cherche la bibliothèque de la façon " |
| 167 |
"suivante (consultez B<ld.so>(8) pour plus de détails)\\ :" |
| 168 |
|
| 169 |
#. type: IP |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
#, no-wrap |
| 173 |
msgid "\\[bu]" |
| 174 |
msgstr "-" |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "" |
| 180 |
"(ELF only) If the calling object (i.e., the shared library or executable " |
| 181 |
"from which B<dlopen>() is called) contains a DT_RPATH tag, and does not " |
| 182 |
"contain a DT_RUNPATH tag, then the directories listed in the DT_RPATH tag " |
| 183 |
"are searched." |
| 184 |
msgstr "" |
| 185 |
"(ELF seulement) Si l'objet appelant (c'est-à-dire la bibliothèque partagée " |
| 186 |
"ou l'exécutable depuis lequel B<dlopen>() est appelée) contient la balise " |
| 187 |
"DT_RPATH mais pas la balise DT_RUNPATH, les répertoires listés dans la " |
| 188 |
"balise DT_RPATH seront parcourus." |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"If, at the time that the program was started, the environment variable " |
| 195 |
"B<LD_LIBRARY_PATH> was defined to contain a colon-separated list of " |
| 196 |
"directories, then these are searched. (As a security measure, this variable " |
| 197 |
"is ignored for set-user-ID and set-group-ID programs.)" |
| 198 |
msgstr "" |
| 199 |
"Si à l'instant où le programme est démarré, la variable d'environnement " |
| 200 |
"B<LD_LIBRARY_PATH> est définie et contient une liste de répertoires séparés " |
| 201 |
"par des deux-points «\\ :\\ », ces répertoires seront parcourus. Par mesure " |
| 202 |
"de sécurité, cette variable est ignorée dans le cas de programmes set-user-" |
| 203 |
"ID et set-group-ID." |
| 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 "" |
| 209 |
"(ELF only) If the calling object contains a DT_RUNPATH tag, then the " |
| 210 |
"directories listed in that tag are searched." |
| 211 |
msgstr "" |
| 212 |
"(ELF seulement) Si l'objet appelant contient la balise DT_RUNPATH, les " |
| 213 |
"répertoires listés dans cette balise seront parcourus." |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 217 |
#: opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 220 |
"checked to see whether it contains an entry for I<path>." |
| 221 |
msgstr "" |
| 222 |
"Le fichier de cache I</etc/ld.so.cache> (entretenu par B<ldconfig>(8)) est " |
| 223 |
"vérifié pour voir s'il contient une entrée correspondant à I<path>." |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "The directories I</lib> and I</usr/lib> are searched (in that order)." |
| 229 |
msgstr "" |
| 230 |
"Les répertoires I</lib> et I</usr/lib> sont parcourus (dans cet ordre)." |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 234 |
#: opensuse-tumbleweed |
| 235 |
msgid "" |
| 236 |
"If the object specified by I<path> has dependencies on other shared objects, " |
| 237 |
"then these are also automatically loaded by the dynamic linker using the " |
| 238 |
"same rules. (This process may occur recursively, if those objects in turn " |
| 239 |
"have dependencies, and so on.)" |
| 240 |
msgstr "" |
| 241 |
"Si l'objet indiqué dans I<path> a des dépendances sur d'autres objets " |
| 242 |
"partagés, ceux-ci seront automatiquement chargés par l'éditeur dynamique de " |
| 243 |
"liens, en utilisant les mêmes règles. Le processus peut être récursif si ces " |
| 244 |
"objets ont, à leur tour, des dépendances, et ainsi de suite." |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "One of the following two values must be included in I<flags>:" |
| 250 |
msgstr "L'une des deux valeurs suivantes doit être incluse dans I<flag>\\ :" |
| 251 |
|
| 252 |
#. type: TP |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
#, no-wrap |
| 256 |
msgid "B<RTLD_LAZY>" |
| 257 |
msgstr "B<RTLD_LAZY>" |
| 258 |
|
| 259 |
#. commit 12b5b6b7f78ea111e89bbf638294a5413c791072 |
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"Perform lazy binding. Resolve symbols only as the code that references them " |
| 265 |
"is executed. If the symbol is never referenced, then it is never resolved. " |
| 266 |
"(Lazy binding is performed only for function references; references to " |
| 267 |
"variables are always immediately bound when the shared object is loaded.) " |
| 268 |
"Since glibc 2.1.1, this flag is overridden by the effect of the " |
| 269 |
"B<LD_BIND_NOW> environment variable." |
| 270 |
msgstr "" |
| 271 |
"Effectuer des liaisons paresseuses. Ne résoudre les symboles que lorsque le " |
| 272 |
"code qui les référence est exécuté. Si le symbole n'est jamais référencé, " |
| 273 |
"alors il n'est jamais résolu. Les liaisons paresseuses ne sont effectuées " |
| 274 |
"que pour les références de fonctions\\ ; les références de variables sont " |
| 275 |
"toujours immédiatement liées quand l'objet partagé est chargé. Depuis la " |
| 276 |
"version 2.1.1 de la glibc, ce drapeau est supplanté par l'effet de la " |
| 277 |
"variable d'environnment B<LD_BIND_NOW>." |
| 278 |
|
| 279 |
#. type: TP |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "B<RTLD_NOW>" |
| 284 |
msgstr "B<RTLD_NOW>" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"If this value is specified, or the environment variable B<LD_BIND_NOW> is " |
| 291 |
"set to a nonempty string, all undefined symbols in the shared object are " |
| 292 |
"resolved before B<dlopen>() returns. If this cannot be done, an error is " |
| 293 |
"returned." |
| 294 |
msgstr "" |
| 295 |
"Si cette valeur est spécifiée ou si la variable d'environnement " |
| 296 |
"B<LD_BIND_NOW> est définie avec une chaîne non vide, tous les symboles non " |
| 297 |
"définis de l'objet partagé sont résolus avant le retour de B<dlopen>(). Si " |
| 298 |
"cela ne peut pas être fait, une erreur est renvoyée." |
| 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 "Zero or more of the following values may also be ORed in I<flags>:" |
| 304 |
msgstr "" |
| 305 |
"Zéro ou plusieurs des valeurs suivantes peuvent être spécifiées avec un OU " |
| 306 |
"binaire dans I<flag>\\ :" |
| 307 |
|
| 308 |
#. type: TP |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "B<RTLD_GLOBAL>" |
| 313 |
msgstr "B<RTLD_GLOBAL>" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"The symbols defined by this shared object will be made available for symbol " |
| 320 |
"resolution of subsequently loaded shared objects." |
| 321 |
msgstr "" |
| 322 |
"Les symboles définis par cet objet partagé seront rendus disponibles pour la " |
| 323 |
"résolution des symboles des objets partagés chargés ultérieurement." |
| 324 |
|
| 325 |
#. type: TP |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "B<RTLD_LOCAL>" |
| 330 |
msgstr "B<RTLD_LOCAL>" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"This is the converse of B<RTLD_GLOBAL>, and the default if neither flag is " |
| 337 |
"specified. Symbols defined in this shared object are not made available to " |
| 338 |
"resolve references in subsequently loaded shared objects." |
| 339 |
msgstr "" |
| 340 |
"C'est la réciproque de B<RTLD_GLOBAL> et le comportement par défaut si aucun " |
| 341 |
"des drapeaux n'est spécifié. Les symboles définis dans cet objet partagé ne " |
| 342 |
"sont pas rendus disponibles pour résoudre les références des objets partagés " |
| 343 |
"chargés ultérieurement." |
| 344 |
|
| 345 |
#. type: TP |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
#, no-wrap |
| 349 |
msgid "B<RTLD_NODELETE> (since glibc 2.2)" |
| 350 |
msgstr "B<RTLD_NODELETE> (depuis la glibc\\ 2.2)" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"Do not unload the shared object during B<dlclose>(). Consequently, the " |
| 357 |
"object's static and global variables are not reinitialized if the object is " |
| 358 |
"reloaded with B<dlopen>() at a later time." |
| 359 |
msgstr "" |
| 360 |
"Ne pas décharger l'objet partagé lors de B<dlclose>(). En conséquence, les " |
| 361 |
"variables statiques de l'objet ne sont pas réinitialisées si l'objet est " |
| 362 |
"chargé ultérieurement avec B<dlopen>()." |
| 363 |
|
| 364 |
#. type: TP |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "B<RTLD_NOLOAD> (since glibc 2.2)" |
| 369 |
msgstr "B<RTLD_NOLOAD> (depuis la glibc\\ 2.2)" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"Don't load the shared object. This can be used to test if the object is " |
| 376 |
"already resident (B<dlopen>() returns NULL if it is not, or the object's " |
| 377 |
"handle if it is resident). This flag can also be used to promote the flags " |
| 378 |
"on a shared object that is already loaded. For example, a shared object " |
| 379 |
"that was previously loaded with B<RTLD_LOCAL> can be reopened with " |
| 380 |
"B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>." |
| 381 |
msgstr "" |
| 382 |
"Ne pas charger l'objet partagé. Cela peut être utilisé pour tester si " |
| 383 |
"l'objet partagé n'est pas déjà chargé (B<dlopen>() renvoie NULL s'il n'est " |
| 384 |
"pas chargé, ou le descripteur de l'objet partagé s'il est déjà chargé). Ce " |
| 385 |
"drapeau peut aussi être utilisé pour promouvoir les drapeaux d'un objet " |
| 386 |
"partagé déjà chargé. Par exemple, un objet partagé qui a été chargé avec " |
| 387 |
"B<RTLD_LOCAL> peut être de nouveau ouvert avec B<RTLD_NOLOAD\\ |\\ " |
| 388 |
"RTLD_GLOBAL>." |
| 389 |
|
| 390 |
#. type: TP |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "B<RTLD_DEEPBIND> (since glibc 2.3.4)" |
| 395 |
msgstr "B<RTLD_DEEPBIND> (depuis la glibc\\ 2.3.4)" |
| 396 |
|
| 397 |
#. Inimitably described by UD in |
| 398 |
#. http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html. |
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"Place the lookup scope of the symbols in this shared object ahead of the " |
| 404 |
"global scope. This means that a self-contained object will use its own " |
| 405 |
"symbols in preference to global symbols with the same name contained in " |
| 406 |
"objects that have already been loaded." |
| 407 |
msgstr "" |
| 408 |
"Placer l'espace de recherche des symboles de cet objet partagé avant " |
| 409 |
"l'espace global. Cela signifie qu'un objet autonome utilisera de préférence " |
| 410 |
"ses propres symboles aux symboles globaux de même noms contenus dans les " |
| 411 |
"objets déjà chargés." |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 415 |
#: opensuse-tumbleweed |
| 416 |
msgid "" |
| 417 |
"If I<path> is NULL, then the returned handle is for the main program. When " |
| 418 |
"given to B<dlsym>(3), this handle causes a search for a symbol in the main " |
| 419 |
"program, followed by all shared objects loaded at program startup, and then " |
| 420 |
"all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 421 |
msgstr "" |
| 422 |
"Si l'argument I<path> est un pointeur NULL, le descripteur renvoyé " |
| 423 |
"correspond au programme principal. Lorsqu'il est passé à B<dlsym>(), ce " |
| 424 |
"descripteur provoque la recherche d'un symbole dans le programme principal, " |
| 425 |
"puis dans tous les objets partagés chargés au démarrage du programme, puis " |
| 426 |
"dans toutes les objets partagés chargés par B<dlopen>() avec l'attribut " |
| 427 |
"B<RTLD_GLOBAL>." |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
msgid "" |
| 433 |
"Symbol references in the shared object are resolved using (in order): " |
| 434 |
"symbols in the link map of objects loaded for the main program and its " |
| 435 |
"dependencies; symbols in shared objects (and their dependencies) that were " |
| 436 |
"previously opened with B<dlopen>() using the B<RTLD_GLOBAL> flag; and " |
| 437 |
"definitions in the shared object itself (and any dependencies that were " |
| 438 |
"loaded for that object)." |
| 439 |
msgstr "" |
| 440 |
"Les références aux symboles de l'objet partagé sont résolues en utilisant " |
| 441 |
"(dans l'ordre) : les symboles dans la table de liens des objets chargés pour " |
| 442 |
"le programme principal et ses dépendances, les symboles dans les objets " |
| 443 |
"partagés (et leurs dépendances) qui ont été ouverts par un appel antérieur à " |
| 444 |
"B<dlopen>() avec le drapeau B<RTLD_GLOBAL> et les définitions dans l'objet " |
| 445 |
"partagé lui-même (ainsi que toute dépendance ayant été chargée pour cet " |
| 446 |
"objet)." |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
msgid "" |
| 452 |
"Any global symbols in the executable that were placed into its dynamic " |
| 453 |
"symbol table by B<ld>(1) can also be used to resolve references in a " |
| 454 |
"dynamically loaded shared object. Symbols may be placed in the dynamic " |
| 455 |
"symbol table either because the executable was linked with the flag \"-" |
| 456 |
"rdynamic\" (or, synonymously, \"--export-dynamic\"), which causes all of the " |
| 457 |
"executable's global symbols to be placed in the dynamic symbol table, or " |
| 458 |
"because B<ld>(1) noted a dependency on a symbol in another object during " |
| 459 |
"static linking." |
| 460 |
msgstr "" |
| 461 |
"Tout symbole global dans l'exécutable qui a été placé dans sa table de " |
| 462 |
"symboles dynamiques par B<ld>(1) peut aussi être utilisé pour résoudre les " |
| 463 |
"références dans un objet partagé dynamiquement chargé. Les symboles peuvent " |
| 464 |
"être placés dans la table de symbole soit parce que les liens de " |
| 465 |
"l'exécutable ont été édités avec le drapeau « -rdynamic » (ou de façon " |
| 466 |
"synonyme « --export-dynamic »), qui fait que tous les symboles globaux de " |
| 467 |
"l'exécutable sont placés dans la table de symboles dynamiques, soit parce " |
| 468 |
"que B<ld>(1) a identifié une dépendance sur un symbole dans un autre objet " |
| 469 |
"durant l'édition de liens statiques." |
| 470 |
|
| 471 |
#. type: Plain text |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
msgid "" |
| 475 |
"If the same shared object is opened again with B<dlopen>(), the same object " |
| 476 |
"handle is returned. The dynamic linker maintains reference counts for " |
| 477 |
"object handles, so a dynamically loaded shared object is not deallocated " |
| 478 |
"until B<dlclose>() has been called on it as many times as B<dlopen>() has " |
| 479 |
"succeeded on it. Constructors (see below) are called only when the object " |
| 480 |
"is actually loaded into memory (i.e., when the reference count increases to " |
| 481 |
"1)." |
| 482 |
msgstr "" |
| 483 |
"Si le même objet partagé est chargé une nouvelle fois avec B<dlopen>(), le " |
| 484 |
"même descripteur sera renvoyé. Un décompte du nombre de chargements est " |
| 485 |
"toutefois conservé par l'éditeur dynamique de liens afin d'éviter de le " |
| 486 |
"décharger avant que la fonction B<dlclose>() n'ait été appelée autant de " |
| 487 |
"fois que B<dlopen>() a réussi. Les constructeurs (voir ci-dessous) sont " |
| 488 |
"seulement appelés lorsque l'objet est réellement chargé en mémoire (c'est-à-" |
| 489 |
"dire lorsque le compteur de références est augmenté et passe à 1)." |
| 490 |
|
| 491 |
#. type: Plain text |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
msgid "" |
| 495 |
"A subsequent B<dlopen>() call that loads the same shared object with " |
| 496 |
"B<RTLD_NOW> may force symbol resolution for a shared object earlier loaded " |
| 497 |
"with B<RTLD_LAZY>. Similarly, an object that was previously opened with " |
| 498 |
"B<RTLD_LOCAL> can be promoted to B<RTLD_GLOBAL> in a subsequent B<dlopen>()." |
| 499 |
msgstr "" |
| 500 |
"Un appel ultérieur à B<dlopen>() qui charge le même objet partagé avec " |
| 501 |
"B<RTLD_NOW> peut forcer la résolution de symboles pour un objet partagé " |
| 502 |
"chargé antérieurement avec B<RTLD_LAZY>. De façon similaire, un objet " |
| 503 |
"préalablement ouvert avec B<RTLD_LOCAL> peut être promu à B<RTLD_GLOBAL> " |
| 504 |
"lors d'un appel ultérieur à B<dlopen>()." |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "If B<dlopen>() fails for any reason, it returns NULL." |
| 510 |
msgstr "Si B<dlopen>() échoue pour une raison quelconque, elle renvoie NULL." |
| 511 |
|
| 512 |
#. type: SS |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "dlmopen()" |
| 517 |
msgstr "dlmopen()" |
| 518 |
|
| 519 |
#. type: Plain text |
| 520 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 521 |
#: opensuse-tumbleweed |
| 522 |
msgid "" |
| 523 |
"This function performs the same task as B<dlopen>()\\[em]the I<path> and " |
| 524 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 525 |
"the differences noted below." |
| 526 |
msgstr "" |
| 527 |
"Cette fonction effectue la même tâche que B<dlopen>() ; les arguments " |
| 528 |
"I<path> et I<flags>, de même que la valeur de renvoi, sont les mêmes à " |
| 529 |
"l'exception des différences décrites plus bas." |
| 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 |
"The B<dlmopen>() function differs from B<dlopen>() primarily in that it " |
| 536 |
"accepts an additional argument, I<lmid>, that specifies the link-map list " |
| 537 |
"(also referred to as a I<namespace>) in which the shared object should be " |
| 538 |
"loaded. (By comparison, B<dlopen>() adds the dynamically loaded shared " |
| 539 |
"object to the same namespace as the shared object from which the " |
| 540 |
"B<dlopen>() call is made.) The I<Lmid_t> type is an opaque handle that " |
| 541 |
"refers to a namespace." |
| 542 |
msgstr "" |
| 543 |
"La fonction B<dlmopen>() diffère de la fonction B<dlopen>() principalement " |
| 544 |
"parce qu'elle accepte un argument supplémentaire, I<lmid>, qui indique la " |
| 545 |
"liste de tables de liens (aussi appelée I<espace de noms>) dans laquelle " |
| 546 |
"l'objet partagé doit être chargé. En comparaison, B<dlopen>() ajoute l'objet " |
| 547 |
"partagé dynamiquement chargé au même espace de noms que l'objet partagé pour " |
| 548 |
"lequel l'appel B<dlopen>() est fait. Le type I<Lmid_t> est un gestionnaire " |
| 549 |
"opaque qui fait référence à un espace de noms." |
| 550 |
|
| 551 |
#. FIXME: Is using dlinfo() RTLD_DI_LMID the right technique? |
| 552 |
#. type: Plain text |
| 553 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 554 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 555 |
msgid "" |
| 556 |
"The I<lmid> argument is either the ID of an existing namespace (which can be " |
| 557 |
"obtained using the B<dlinfo>(3) B<RTLD_DI_LMID> request) or one of the " |
| 558 |
"following special values:" |
| 559 |
msgstr "" |
| 560 |
"L'argument I<lmid> est soit l'ID d'un espace de noms existant (pouvant être " |
| 561 |
"obtenu en utilisant la requête B<dlinfo>(3) B<RTLD_DI_LMID>) ou l'une des " |
| 562 |
"valeurs spéciales suivantes :" |
| 563 |
|
| 564 |
#. type: TP |
| 565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
#, no-wrap |
| 568 |
msgid "B<LM_ID_BASE>" |
| 569 |
msgstr "B<LM_ID_BASE>" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
msgid "" |
| 575 |
"Load the shared object in the initial namespace (i.e., the application's " |
| 576 |
"namespace)." |
| 577 |
msgstr "" |
| 578 |
"Charger l'objet partagé dans l'espace de noms initial (c'est-à-dire l'espace " |
| 579 |
"de noms de l'application)." |
| 580 |
|
| 581 |
#. type: TP |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
#, no-wrap |
| 585 |
msgid "B<LM_ID_NEWLM>" |
| 586 |
msgstr "B<LM_ID_NEWLM>" |
| 587 |
|
| 588 |
#. type: Plain text |
| 589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 590 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 591 |
msgid "" |
| 592 |
"Create a new namespace and load the shared object in that namespace. The " |
| 593 |
"object must have been correctly linked to reference all of the other shared " |
| 594 |
"objects that it requires, since the new namespace is initially empty." |
| 595 |
msgstr "" |
| 596 |
"Créer un nouvel espace de noms et y charger l'objet partagé. Les liens de " |
| 597 |
"l'objet doivent avoir été liés pour référencer tous les autres objets " |
| 598 |
"partagés dont il a besoin puisque l'espace de noms est initialement vide." |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 602 |
#: opensuse-tumbleweed |
| 603 |
msgid "" |
| 604 |
"If I<path> is NULL, then the only permitted value for I<lmid> is " |
| 605 |
"B<LM_ID_BASE>." |
| 606 |
msgstr "" |
| 607 |
"Si I<path> est vide, alors l'unique valeur autorisée pour I<lmid> est " |
| 608 |
"B<LM_ID_BASE>." |
| 609 |
|
| 610 |
#. type: SS |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
#, no-wrap |
| 614 |
msgid "dlclose()" |
| 615 |
msgstr "dlclose()" |
| 616 |
|
| 617 |
#. type: Plain text |
| 618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 619 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 620 |
msgid "" |
| 621 |
"The function B<dlclose>() decrements the reference count on the dynamically " |
| 622 |
"loaded shared object referred to by I<handle>." |
| 623 |
msgstr "" |
| 624 |
"La fonction B<dlclose>() décrémente le compteur de références de l'objet " |
| 625 |
"partagé chargé dynamiquement et indiqué par I<handle>." |
| 626 |
|
| 627 |
#. type: Plain text |
| 628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 629 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 630 |
msgid "" |
| 631 |
"If the object's reference count drops to zero and no symbols in this object " |
| 632 |
"are required by other objects, then the object is unloaded after first " |
| 633 |
"calling any destructors defined for the object. (Symbols in this object " |
| 634 |
"might be required in another object because this object was opened with the " |
| 635 |
"B<RTLD_GLOBAL> flag and one of its symbols satisfied a relocation in another " |
| 636 |
"object.)" |
| 637 |
msgstr "" |
| 638 |
"Si le compteur de références de cet objet tombe en dessous de zéro et " |
| 639 |
"qu'aucun symbole dans cet objet n'est requis par un autre objet, alors " |
| 640 |
"l'objet est déchargé après avoir appelé tous les destructeurs définis pour " |
| 641 |
"l'objet. Des symboles dans cet objet peuvent être requis par un autre objet " |
| 642 |
"parce qu'il a été ouvert avec le drapeau B<RTLD_GLOBAL> et que l'un de ses " |
| 643 |
"symboles a permis une relocalisation dans un autre objet." |
| 644 |
|
| 645 |
#. type: Plain text |
| 646 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 647 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 648 |
msgid "" |
| 649 |
"All shared objects that were automatically loaded when B<dlopen>() was " |
| 650 |
"invoked on the object referred to by I<handle> are recursively closed in the " |
| 651 |
"same manner." |
| 652 |
msgstr "" |
| 653 |
"Tous les objets partagés qui ont été chargés automatiquement lorsque " |
| 654 |
"B<dlopen>() a été invoquée sur l'objet référencé par I<handle> sont fermés " |
| 655 |
"récursivement de la même façon." |
| 656 |
|
| 657 |
#. type: Plain text |
| 658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 659 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
msgid "" |
| 661 |
"A successful return from B<dlclose>() does not guarantee that the symbols " |
| 662 |
"associated with I<handle> are removed from the caller's address space. In " |
| 663 |
"addition to references resulting from explicit B<dlopen>() calls, a shared " |
| 664 |
"object may have been implicitly loaded (and reference counted) because of " |
| 665 |
"dependencies in other shared objects. Only when all references have been " |
| 666 |
"released can the shared object be removed from the address space." |
| 667 |
msgstr "" |
| 668 |
"Un renvoi réussi de B<dlclose>() ne garantit que les symboles associés avec " |
| 669 |
"I<handle> sont supprimés de l'espace d'adressage de l'appelant. En plus de " |
| 670 |
"références résultant d'appels explicites à B<dlopen>(), un objet partagé a " |
| 671 |
"peut-être été chargé de façon implicite (et les références prises en compte) " |
| 672 |
"à cause de références dans d'autres objets partagés. Ce n'est que lorsque " |
| 673 |
"toutes les références sont relachées que l'objet partagé peut être supprimé " |
| 674 |
"de l'espace d'adressage." |
| 675 |
|
| 676 |
#. type: SH |
| 677 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 678 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 679 |
#, no-wrap |
| 680 |
msgid "RETURN VALUE" |
| 681 |
msgstr "VALEUR RENVOYÉE" |
| 682 |
|
| 683 |
#. type: Plain text |
| 684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 685 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 686 |
msgid "" |
| 687 |
"On success, B<dlopen>() and B<dlmopen>() return a non-NULL handle for the " |
| 688 |
"loaded object. On error (file could not be found, was not readable, had the " |
| 689 |
"wrong format, or caused errors during loading), these functions return NULL." |
| 690 |
msgstr "" |
| 691 |
"En cas de succès, B<dlopen>() et B<dlmopen>() renvoient un gestionnaire non " |
| 692 |
"nul pour l'objet chargé. En cas d'erreur (le fichier ne peut pas être " |
| 693 |
"trouvé, il n'est pas lisible, a le mauvais format ou bien a provoqué des " |
| 694 |
"erreurs lors de son chargement), ces fonctions renvoient NULL." |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 698 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 699 |
msgid "" |
| 700 |
"On success, B<dlclose>() returns 0; on error, it returns a nonzero value." |
| 701 |
msgstr "" |
| 702 |
"En cas de succès, B<dlclose>() renvoie B<0>, en cas d'erreur une valeur non " |
| 703 |
"nulle est renvoyée." |
| 704 |
|
| 705 |
#. type: Plain text |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
msgid "Errors from these functions can be diagnosed using B<dlerror>(3)." |
| 709 |
msgstr "" |
| 710 |
"Les erreurs de ces fonctions peuvent être diagnostiquées en utilisant " |
| 711 |
"B<dlerror>(3)." |
| 712 |
|
| 713 |
#. type: SH |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
#, no-wrap |
| 717 |
msgid "ATTRIBUTES" |
| 718 |
msgstr "ATTRIBUTS" |
| 719 |
|
| 720 |
#. type: Plain text |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
msgid "" |
| 724 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 725 |
msgstr "" |
| 726 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 727 |
"B<attributes>(7)." |
| 728 |
|
| 729 |
#. type: tbl table |
| 730 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 731 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 732 |
#, no-wrap |
| 733 |
msgid "Interface" |
| 734 |
msgstr "Interface" |
| 735 |
|
| 736 |
#. type: tbl table |
| 737 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 738 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 739 |
#, no-wrap |
| 740 |
msgid "Attribute" |
| 741 |
msgstr "Attribut" |
| 742 |
|
| 743 |
#. type: tbl table |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
#, no-wrap |
| 747 |
msgid "Value" |
| 748 |
msgstr "Valeur" |
| 749 |
|
| 750 |
#. type: tbl table |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
#, no-wrap |
| 754 |
msgid ".na\n" |
| 755 |
msgstr ".na\n" |
| 756 |
|
| 757 |
#. type: tbl table |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
#, no-wrap |
| 761 |
msgid ".nh\n" |
| 762 |
msgstr ".nh\n" |
| 763 |
|
| 764 |
#. type: tbl table |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
#, no-wrap |
| 768 |
msgid "" |
| 769 |
"B<dlopen>(),\n" |
| 770 |
"B<dlmopen>(),\n" |
| 771 |
"B<dlclose>()" |
| 772 |
msgstr "" |
| 773 |
"B<dlopen>(),\n" |
| 774 |
"B<dlmopen>(),\n" |
| 775 |
"B<dlclose>()" |
| 776 |
|
| 777 |
#. type: tbl table |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
#, no-wrap |
| 781 |
msgid "Thread safety" |
| 782 |
msgstr "Sécurité des threads" |
| 783 |
|
| 784 |
#. type: tbl table |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "MT-Safe" |
| 789 |
msgstr "MT-Safe" |
| 790 |
|
| 791 |
#. type: SH |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, no-wrap |
| 795 |
msgid "STANDARDS" |
| 796 |
msgstr "NORMES" |
| 797 |
|
| 798 |
#. type: TP |
| 799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 800 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
#, no-wrap |
| 802 |
msgid "B<dlopen>()" |
| 803 |
msgstr "B<dlopen>()" |
| 804 |
|
| 805 |
#. type: TQ |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
#, no-wrap |
| 809 |
msgid "B<dlclose>()" |
| 810 |
msgstr "B<dlclose>()" |
| 811 |
|
| 812 |
#. type: Plain text |
| 813 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 814 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 815 |
msgid "POSIX.1-2008." |
| 816 |
msgstr "POSIX.1-2008." |
| 817 |
|
| 818 |
#. type: TP |
| 819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 820 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 821 |
#, no-wrap |
| 822 |
msgid "B<dlmopen>()" |
| 823 |
msgstr "B<dlmopen>()" |
| 824 |
|
| 825 |
#. type: TQ |
| 826 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 827 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 828 |
#, no-wrap |
| 829 |
msgid "B<RTLD_NOLOAD>" |
| 830 |
msgstr "B<RTLD_NOLOAD>" |
| 831 |
|
| 832 |
#. type: TQ |
| 833 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 834 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 835 |
#, no-wrap |
| 836 |
msgid "B<RTLD_NODELETE>" |
| 837 |
msgstr "B<RTLD_NODELETE>" |
| 838 |
|
| 839 |
#. type: Plain text |
| 840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 841 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
msgid "GNU." |
| 843 |
msgstr "GNU." |
| 844 |
|
| 845 |
#. type: TP |
| 846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 847 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 848 |
#, no-wrap |
| 849 |
msgid "B<RTLD_DEEPBIND>" |
| 850 |
msgstr "B<RTLD_DEEPBIND>" |
| 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 "Solaris." |
| 856 |
msgstr "Solaris." |
| 857 |
|
| 858 |
#. type: SH |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
#, no-wrap |
| 862 |
msgid "HISTORY" |
| 863 |
msgstr "HISTORIQUE" |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
msgid "glibc 2.0. POSIX.1-2001." |
| 869 |
msgstr "glibc 2.0. POSIX.1-2001." |
| 870 |
|
| 871 |
#. type: Plain text |
| 872 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 873 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 874 |
msgid "glibc 2.3.4." |
| 875 |
msgstr "glibc 2.3.4." |
| 876 |
|
| 877 |
#. type: SH |
| 878 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 879 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 880 |
#, no-wrap |
| 881 |
msgid "NOTES" |
| 882 |
msgstr "NOTES" |
| 883 |
|
| 884 |
#. type: SS |
| 885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 886 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 887 |
#, no-wrap |
| 888 |
msgid "dlmopen() and namespaces" |
| 889 |
msgstr "dlmopen() et espace de noms" |
| 890 |
|
| 891 |
#. type: Plain text |
| 892 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 893 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 894 |
msgid "" |
| 895 |
"A link-map list defines an isolated namespace for the resolution of symbols " |
| 896 |
"by the dynamic linker. Within a namespace, dependent shared objects are " |
| 897 |
"implicitly loaded according to the usual rules, and symbol references are " |
| 898 |
"likewise resolved according to the usual rules, but such resolution is " |
| 899 |
"confined to the definitions provided by the objects that have been " |
| 900 |
"(explicitly and implicitly) loaded into the namespace." |
| 901 |
msgstr "" |
| 902 |
"Une liste de table de liens définit un espace de noms isolé pour la " |
| 903 |
"résolution de symboles par l'éditeur dynamique de liens. À l'intérieur d'un " |
| 904 |
"espace de noms, les objets partagés dépendants sont implicitement chargés " |
| 905 |
"selon les règles usuelles, et les références aux symboles sont résolues " |
| 906 |
"selon les règles usuelles, mais un telle résolution est limitée aux " |
| 907 |
"définitions fournies aux objets qui ont été chargés (explicitement et " |
| 908 |
"implicitement) dans l'espace de noms." |
| 909 |
|
| 910 |
#. type: Plain text |
| 911 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 912 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 913 |
msgid "" |
| 914 |
"The B<dlmopen>() function permits object-load isolation\\[em]the ability to " |
| 915 |
"load a shared object in a new namespace without exposing the rest of the " |
| 916 |
"application to the symbols made available by the new object. Note that the " |
| 917 |
"use of the B<RTLD_LOCAL> flag is not sufficient for this purpose, since it " |
| 918 |
"prevents a shared object's symbols from being available to I<any> other " |
| 919 |
"shared object. In some cases, we may want to make the symbols provided by a " |
| 920 |
"dynamically loaded shared object available to (a subset of) other shared " |
| 921 |
"objects without exposing those symbols to the entire application. This can " |
| 922 |
"be achieved by using a separate namespace and the B<RTLD_GLOBAL> flag." |
| 923 |
msgstr "" |
| 924 |
"La fonction B<dlmopen>() permet une isolation de chargement d'objet, c'est-à-" |
| 925 |
"dire la capacité à charger un objet partagé dans un nouvel espace de noms " |
| 926 |
"sans exposer le reste de l'application aux symboles rendus disponibles par " |
| 927 |
"le nouvel objet. Notez que l'utilisation du drapeau B<RTLD_LOCAL> n'est pas " |
| 928 |
"suffisante pour réaliser cela puisque qu'il empêche les symboles des objets " |
| 929 |
"partagés d'être disponibles à I<tout> autre objet partagé. Dans certains " |
| 930 |
"cas, il peut être souhaitable de rendre les symboles fournis par un objet " |
| 931 |
"partagé chargé dynamiquement disponibles à d'autres objets (ou à un sous-" |
| 932 |
"ensemble) partagés sans exposer ces symboles à l'application entière. Cela " |
| 933 |
"peut être réalisé par l'utilisation d'un espace de noms séparé et du drapeau " |
| 934 |
"B<RTLD_GLOBAL>." |
| 935 |
|
| 936 |
#. type: Plain text |
| 937 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 938 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 939 |
msgid "" |
| 940 |
"The B<dlmopen>() function also can be used to provide better isolation than " |
| 941 |
"the B<RTLD_LOCAL> flag. In particular, shared objects loaded with " |
| 942 |
"B<RTLD_LOCAL> may be promoted to B<RTLD_GLOBAL> if they are dependencies of " |
| 943 |
"another shared object loaded with B<RTLD_GLOBAL>. Thus, B<RTLD_LOCAL> is " |
| 944 |
"insufficient to isolate a loaded shared object except in the (uncommon) " |
| 945 |
"case where one has explicit control over all shared object dependencies." |
| 946 |
msgstr "" |
| 947 |
"La fonction B<dlmopen>() peut également être utilisée pour fournir une " |
| 948 |
"meilleure isolation que le drapeau B<RTLD_LOCAL>. En particulier, les objets " |
| 949 |
"partagés chargés avec B<RTLD_LOCAL> peuvent être promus à B<RTLD_GLOBAL> " |
| 950 |
"s'ils sont des dépendances d'un autre objet partagé chargé avec " |
| 951 |
"B<RTLD_GLOBAL> mis à part dans le cas (peu commun) où l'on a un contrôle " |
| 952 |
"explicite sur les dépendances de tous les objets partagés." |
| 953 |
|
| 954 |
#. type: Plain text |
| 955 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 956 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 957 |
msgid "" |
| 958 |
"Possible uses of B<dlmopen>() are plugins where the author of the plugin-" |
| 959 |
"loading framework can't trust the plugin authors and does not wish any " |
| 960 |
"undefined symbols from the plugin framework to be resolved to plugin " |
| 961 |
"symbols. Another use is to load the same object more than once. Without " |
| 962 |
"the use of B<dlmopen>(), this would require the creation of distinct copies " |
| 963 |
"of the shared object file. Using B<dlmopen>(), this can be achieved by " |
| 964 |
"loading the same shared object file into different namespaces." |
| 965 |
msgstr "" |
| 966 |
"Les cas possibles d'utilisation de B<dlmopen>() sont des greffons où " |
| 967 |
"l'auteur du cadriciel de chargement de greffon ne peut pas faire confiance " |
| 968 |
"aux auteurs du greffon et ne souhaite pas que des symboles non définis du " |
| 969 |
"cadriciel greffon soient résolus en symboles du greffon. Une autre " |
| 970 |
"utilisation est de charger le même objet plus d'une fois. Sans l'utilisation " |
| 971 |
"de B<dlmopen>(), cela exigerait la création de copies distinctes du fichier " |
| 972 |
"de l'objet partagé. Grâce à l'utilisation de B<dlmopen>(), cela peut être " |
| 973 |
"réalisé par le chargement du même fichier d'objet partagé dans différents " |
| 974 |
"espaces de noms." |
| 975 |
|
| 976 |
#. DL_NNS |
| 977 |
#. type: Plain text |
| 978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 979 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 980 |
msgid "The glibc implementation supports a maximum of 16 namespaces." |
| 981 |
msgstr "" |
| 982 |
"L'implémentation de la glibc prend en charge un nombre maximal de 16 espaces " |
| 983 |
"de noms." |
| 984 |
|
| 985 |
#. type: SS |
| 986 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 987 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 988 |
#, no-wrap |
| 989 |
msgid "Initialization and finalization functions" |
| 990 |
msgstr "Fonctions d'initialisation et de finalisation" |
| 991 |
|
| 992 |
#. info gcc "C Extensions" "Function attributes" |
| 993 |
#. type: Plain text |
| 994 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 995 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 996 |
msgid "" |
| 997 |
"Shared objects may export functions using the " |
| 998 |
"B<__attribute__((constructor))> and B<__attribute__((destructor))> function " |
| 999 |
"attributes. Constructor functions are executed before B<dlopen>() returns, " |
| 1000 |
"and destructor functions are executed before B<dlclose>() returns. A " |
| 1001 |
"shared object may export multiple constructors and destructors, and " |
| 1002 |
"priorities can be associated with each function to determine the order in " |
| 1003 |
"which they are executed. See the B<gcc> info pages (under \"Function " |
| 1004 |
"attributes\") for further information." |
| 1005 |
msgstr "" |
| 1006 |
"Les objets partagés peuvent exporter des fonctions en utilisant les " |
| 1007 |
"attributs de fonction B<__attribute__((constructor))> et " |
| 1008 |
"B<__attribute__((destructor))>. Les fonctions de construction sont exécutées " |
| 1009 |
"avant que B<dlopen>() ne renvoie, et les fonctions de destruction sont " |
| 1010 |
"exécutées avant que B<dlclose>() ne renvoie. Un objet partagé peut exporter " |
| 1011 |
"plusieurs constructeurs et destructeurs et des priorités peuvent être " |
| 1012 |
"associées à chaque fonction pour déterminer l'ordre dans lequel elles " |
| 1013 |
"s'exécutent. Consultez les pages d'information de B<gcc> (sous « Attributs " |
| 1014 |
"de fonction ») pour plus d'informations." |
| 1015 |
|
| 1016 |
#. type: Plain text |
| 1017 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1018 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1019 |
msgid "" |
| 1020 |
"An older method of (partially) achieving the same result is via the use of " |
| 1021 |
"two special symbols recognized by the linker: B<_init> and B<_fini>. If a " |
| 1022 |
"dynamically loaded shared object exports a routine named B<_init>(), then " |
| 1023 |
"that code is executed after loading a shared object, before B<dlopen>() " |
| 1024 |
"returns. If the shared object exports a routine named B<_fini>(), then that " |
| 1025 |
"routine is called just before the object is unloaded. In this case, one " |
| 1026 |
"must avoid linking against the system startup files, which contain default " |
| 1027 |
"versions of these files; this can be done by using the B<gcc>(1) I<-" |
| 1028 |
"nostartfiles> command-line option." |
| 1029 |
msgstr "" |
| 1030 |
"Une méthode plus ancienne d'obtenir (partiellement) le même résultat passe " |
| 1031 |
"par l'utilisation de deux symboles spéciaux reconnus par l'éditeur de " |
| 1032 |
"liens : B<_init> et B<_fini>. Si un objet partagé chargé dynamiquement " |
| 1033 |
"exporte une routine nommée B<_init>(), alors son code est exécuté après le " |
| 1034 |
"chargement d'un objet partagé, avant le retour de B<dlopen>(). Si l'objet " |
| 1035 |
"partagé exporte une routine nommée B<_fini>, elle est appelée juste avant le " |
| 1036 |
"déchargement de l'objet. Dans ce cas, vous voudrez éviter de lier " |
| 1037 |
"l'exécutable avec les fichiers de démarrage du système, qui contiennent des " |
| 1038 |
"versions par défaut de ces fichiers ; pour cela, vous pouvez spécifier " |
| 1039 |
"l'option I<-nostartfiles> à la ligne de commande de B<gcc>(1)." |
| 1040 |
|
| 1041 |
# |
| 1042 |
#. Using these routines, or the gcc |
| 1043 |
#. .B \-nostartfiles |
| 1044 |
#. or |
| 1045 |
#. .B \-nostdlib |
| 1046 |
#. options, is not recommended. |
| 1047 |
#. Their use may result in undesired behavior, |
| 1048 |
#. since the constructor/destructor routines will not be executed |
| 1049 |
#. (unless special measures are taken). |
| 1050 |
#. .\" void _init(void) __attribute__((constructor)); |
| 1051 |
#. .\" void _fini(void) __attribute__((destructor)); |
| 1052 |
#. type: Plain text |
| 1053 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1054 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1055 |
msgid "" |
| 1056 |
"Use of B<_init> and B<_fini> is now deprecated in favor of the " |
| 1057 |
"aforementioned constructors and destructors, which among other advantages, " |
| 1058 |
"permit multiple initialization and finalization functions to be defined." |
| 1059 |
msgstr "" |
| 1060 |
"L'utilisation de B<_init> et B<_fini> est rendue obsolète en faveur des " |
| 1061 |
"constructeurs et destructeurs susmentionnés, ce qui entre autres avantages, " |
| 1062 |
"permet la définition de plusieurs fonctions d'initialisation et de " |
| 1063 |
"finalisation." |
| 1064 |
|
| 1065 |
#. type: Plain text |
| 1066 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1067 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1068 |
msgid "" |
| 1069 |
"Since glibc 2.2.3, B<atexit>(3) can be used to register an exit handler " |
| 1070 |
"that is automatically called when a shared object is unloaded." |
| 1071 |
msgstr "" |
| 1072 |
"Depuis la glibc\\ 2.2.3, B<atexit>(3) peut être utilisée pour enregistrer un " |
| 1073 |
"gestionnaire de sortie qui sera automatiquement appelé quand un objet " |
| 1074 |
"partagé est déchargé." |
| 1075 |
|
| 1076 |
#. type: SS |
| 1077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1078 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1079 |
#, no-wrap |
| 1080 |
msgid "History" |
| 1081 |
msgstr "Historique" |
| 1082 |
|
| 1083 |
#. type: Plain text |
| 1084 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1085 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1086 |
msgid "These functions are part of the dlopen API, derived from SunOS." |
| 1087 |
msgstr "Ces fonctions font partie de l'API dlopen, dérivée de SunOS." |
| 1088 |
|
| 1089 |
#. type: SH |
| 1090 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1091 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1092 |
#, no-wrap |
| 1093 |
msgid "BUGS" |
| 1094 |
msgstr "BOGUES" |
| 1095 |
|
| 1096 |
#. dlerror(): "invalid mode" |
| 1097 |
#. https://sourceware.org/bugzilla/show_bug.cgi?id=18684 |
| 1098 |
#. type: Plain text |
| 1099 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1101 |
msgid "" |
| 1102 |
"As at glibc 2.24, specifying the B<RTLD_GLOBAL> flag when calling " |
| 1103 |
"B<dlmopen>() generates an error. Furthermore, specifying B<RTLD_GLOBAL> " |
| 1104 |
"when calling B<dlopen>() results in a program crash (B<SIGSEGV>) if the " |
| 1105 |
"call is made from any object loaded in a namespace other than the initial " |
| 1106 |
"namespace." |
| 1107 |
msgstr "" |
| 1108 |
"Pour la version 2.24 de la glibc, spécifier le drapeau B<RTLD_GLOBAL> lors " |
| 1109 |
"de l'appel à B<dlmopen>() génère une erreur. De plus, spécifier " |
| 1110 |
"B<RTLD_GLOBAL> lors d'un appel à B<dlopen>() résulte en un plantage du " |
| 1111 |
"programme (B<SIGSEGV>) si l'appel est effectué depuis n'importe quel objet " |
| 1112 |
"chargé dans un autre espace de noms que celui initial." |
| 1113 |
|
| 1114 |
#. type: SH |
| 1115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1117 |
#, no-wrap |
| 1118 |
msgid "EXAMPLES" |
| 1119 |
msgstr "EXEMPLES" |
| 1120 |
|
| 1121 |
#. type: Plain text |
| 1122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1124 |
msgid "" |
| 1125 |
"The program below loads the (glibc) math library, looks up the address of " |
| 1126 |
"the B<cos>(3) function, and prints the cosine of 2.0. The following is an " |
| 1127 |
"example of building and running the program:" |
| 1128 |
msgstr "" |
| 1129 |
"Le programme suivant charge la bibliothèque de maths (de la glibc), " |
| 1130 |
"recherche l'adresse de la fonction B<cos>(3) et affiche le cosinus de 2.0. " |
| 1131 |
"Ci-dessous, un exemple de construction et d'exécution du programme :" |
| 1132 |
|
| 1133 |
#. type: Plain text |
| 1134 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1135 |
#: opensuse-tumbleweed |
| 1136 |
#, no-wrap |
| 1137 |
msgid "" |
| 1138 |
"$B< cc dlopen_demo.c -ldl>;\n" |
| 1139 |
"$B< ./a.out>;\n" |
| 1140 |
"-0.416147\n" |
| 1141 |
msgstr "" |
| 1142 |
"$B< cc dlopen_demo.c -ldl>;\n" |
| 1143 |
"$B< ./a.out>;\n" |
| 1144 |
"-0.416147\n" |
| 1145 |
|
| 1146 |
#. type: SS |
| 1147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1149 |
#, no-wrap |
| 1150 |
msgid "Program source" |
| 1151 |
msgstr "Source du programme" |
| 1152 |
|
| 1153 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1154 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1155 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1156 |
#. type: Plain text |
| 1157 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1158 |
#: opensuse-tumbleweed |
| 1159 |
#, no-wrap |
| 1160 |
msgid "" |
| 1161 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1162 |
"#include E<lt>stdio.hE<gt>\n" |
| 1163 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1164 |
"\\&\n" |
| 1165 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1166 |
" string such as \"libm.so.6\") */\n" |
| 1167 |
"int\n" |
| 1168 |
"main(void)\n" |
| 1169 |
"{\n" |
| 1170 |
" void *handle;\n" |
| 1171 |
" typeof(double (double)) *cosine;\n" |
| 1172 |
" char *error;\n" |
| 1173 |
"\\&\n" |
| 1174 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1175 |
" if (!handle) {\n" |
| 1176 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1177 |
" exit(EXIT_FAILURE);\n" |
| 1178 |
" }\n" |
| 1179 |
"\\&\n" |
| 1180 |
" dlerror(); /* Clear any existing error */\n" |
| 1181 |
"\\&\n" |
| 1182 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1183 |
"\\&\n" |
| 1184 |
" /* According to the ISO C standard, casting between function\n" |
| 1185 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1186 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1187 |
" proposed the following workaround:\n" |
| 1188 |
"\\&\n" |
| 1189 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1190 |
"\\&\n" |
| 1191 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1192 |
" avoid any compiler warnings.\n" |
| 1193 |
"\\&\n" |
| 1194 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1195 |
" by requiring that conforming implementations support casting\n" |
| 1196 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1197 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1198 |
" cast used in this program. */\n" |
| 1199 |
"\\&\n" |
| 1200 |
" error = dlerror();\n" |
| 1201 |
" if (error != NULL) {\n" |
| 1202 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1203 |
" exit(EXIT_FAILURE);\n" |
| 1204 |
" }\n" |
| 1205 |
"\\&\n" |
| 1206 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1207 |
" dlclose(handle);\n" |
| 1208 |
" exit(EXIT_SUCCESS);\n" |
| 1209 |
"}\n" |
| 1210 |
msgstr "" |
| 1211 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1212 |
"#include E<lt>stdio.hE<gt>\n" |
| 1213 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1214 |
"\\&\n" |
| 1215 |
"#include E<lt>gnu/lib-names.hE<gt> /* Définit LIBM_SO (qui sera une\n" |
| 1216 |
" chaîne telle que « libm.so.6 ») */\n" |
| 1217 |
"int\n" |
| 1218 |
"main(void)\n" |
| 1219 |
"{\n" |
| 1220 |
" void *handle;\n" |
| 1221 |
" typeof(double (double)) *cosine;\n" |
| 1222 |
" char *error;\n" |
| 1223 |
"\\&\n" |
| 1224 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1225 |
" if (!handle) {\n" |
| 1226 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1227 |
" exit(EXIT_FAILURE);\n" |
| 1228 |
" }\n" |
| 1229 |
"\\&\n" |
| 1230 |
" dlerror(); /* Supprime une erreur existante */\n" |
| 1231 |
"\\&\n" |
| 1232 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1233 |
"\\&\n" |
| 1234 |
" /* D'après le standard ISO C, la conversion de type entre un pointeur\n" |
| 1235 |
" de fonction et « void * », comme effectuée ci-dessus, produit des\n" |
| 1236 |
" résultats indéfinis.\n" |
| 1237 |
" POSIX.1-2003 et POSIX.1-2008 ont admis cet état de fait et proposé\n" |
| 1238 |
" le contournement ci-dessous :\n" |
| 1239 |
"\\&\n" |
| 1240 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1241 |
"\\&\n" |
| 1242 |
" Cette conversion (lourde) de type est conforme au standard\n" |
| 1243 |
" ISO C and évitera tout avertissement du compilateur.\n" |
| 1244 |
"\\&\n" |
| 1245 |
" La révision technique 2013 de POSIX.1-2008 a amélioré la\n" |
| 1246 |
" situation en exigeant que les implémentations prennent en charge \n" |
| 1247 |
" la conversion du type « void * » vers un pointeur de fonction.\n" |
| 1248 |
" Cependant, certains compilateurs (par exemple gcc avec\n" |
| 1249 |
" l'option « -pedantic ») peuvent se plaindre de la conversion\n" |
| 1250 |
" effectuée dans ce programme. */\n" |
| 1251 |
"\\&\n" |
| 1252 |
" error = dlerror();\n" |
| 1253 |
" if (error != NULL) {\n" |
| 1254 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1255 |
" exit(EXIT_FAILURE);\n" |
| 1256 |
" }\n" |
| 1257 |
"\\&\n" |
| 1258 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1259 |
" dlclose(handle);\n" |
| 1260 |
" exit(EXIT_SUCCESS);\n" |
| 1261 |
"}\n" |
| 1262 |
|
| 1263 |
#. SRC END |
| 1264 |
#. type: SH |
| 1265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1267 |
#, no-wrap |
| 1268 |
msgid "SEE ALSO" |
| 1269 |
msgstr "VOIR AUSSI" |
| 1270 |
|
| 1271 |
#. type: Plain text |
| 1272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1274 |
msgid "" |
| 1275 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1276 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1277 |
"B<ldconfig>(8)" |
| 1278 |
msgstr "" |
| 1279 |
"B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), " |
| 1280 |
"B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), " |
| 1281 |
"B<ldconfig>(8)" |
| 1282 |
|
| 1283 |
#. type: Plain text |
| 1284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1286 |
msgid "gcc info pages, ld info pages" |
| 1287 |
msgstr "pages Info de ld, pages Info de gcc" |
| 1288 |
|
| 1289 |
#. type: TH |
| 1290 |
#: debian-trixie |
| 1291 |
#, no-wrap |
| 1292 |
msgid "2024-06-15" |
| 1293 |
msgstr "15 juin 2024" |
| 1294 |
|
| 1295 |
#. type: TH |
| 1296 |
#: debian-trixie |
| 1297 |
#, no-wrap |
| 1298 |
msgid "Linux man-pages 6.9.1" |
| 1299 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 1300 |
|
| 1301 |
#. type: Plain text |
| 1302 |
#: debian-trixie |
| 1303 |
msgid "Dynamic linking library (I<libdl>, I<-ldl>)" |
| 1304 |
msgstr "Bibliothèque de liens dynamiques (I<libc>, I<-lc>)" |
| 1305 |
|
| 1306 |
#. type: Plain text |
| 1307 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1308 |
#, no-wrap |
| 1309 |
msgid "" |
| 1310 |
"B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1311 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 1312 |
msgstr "" |
| 1313 |
"B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1314 |
"B<int dlclose(void *>I<handle>B<);>\n" |
| 1315 |
|
| 1316 |
#. type: Plain text |
| 1317 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1318 |
#, no-wrap |
| 1319 |
msgid "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1320 |
msgstr "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags>B<);>\n" |
| 1321 |
|
| 1322 |
#. type: Plain text |
| 1323 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1324 |
msgid "" |
| 1325 |
"The function B<dlopen>() loads the dynamic shared object (shared library) " |
| 1326 |
"file named by the null-terminated string I<filename> and returns an opaque " |
| 1327 |
"\"handle\" for the loaded object. This handle is employed with other " |
| 1328 |
"functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), " |
| 1329 |
"B<dlinfo>(3), and B<dlclose>()." |
| 1330 |
msgstr "" |
| 1331 |
"La fonction B<dlopen>() charge la bibliothèque dynamique dont le nom est " |
| 1332 |
"fourni dans la chaîne I<filename> (terminée par l'octet NULL) et renvoie un " |
| 1333 |
"descripteur opaque (« handle ») représentant la bibliothèque dynamique. Ce " |
| 1334 |
"descripteur est utilisé avec d'autres fonctions dans l'API dlopen, telles " |
| 1335 |
"que B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3) et B<dlclose>()." |
| 1336 |
|
| 1337 |
#. FIXME On Solaris, when handle is NULL, we seem to get back |
| 1338 |
#. a handle for (something like) the root of the namespace. |
| 1339 |
#. The point here is that if we do a dlmopen(LM_ID_NEWLM), then |
| 1340 |
#. the filename==NULL case returns a different handle than |
| 1341 |
#. in the initial namespace. But, on glibc, the same handle is |
| 1342 |
#. returned. This is probably a bug in glibc. |
| 1343 |
#. type: Plain text |
| 1344 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1345 |
msgid "" |
| 1346 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1347 |
"If I<filename> contains a slash (\"/\"), then it is interpreted as a " |
| 1348 |
"(relative or absolute) pathname. Otherwise, the dynamic linker searches for " |
| 1349 |
"the object as follows (see B<ld.so>(8) for further details):" |
| 1350 |
msgstr "" |
| 1351 |
"Si l'argument I<filename> est un pointeur NULL, le descripteur renvoyé " |
| 1352 |
"correspond au programme principal. Si I<filename> contient une barre oblique " |
| 1353 |
"(«\\ /\\ »), il est interprété comme un chemin (relatif ou absolu). " |
| 1354 |
"Autrement, l'éditeur dynamique de liens cherche la bibliothèque de la façon " |
| 1355 |
"suivante (consultez B<ld.so>(8) pour plus de détails)\\ :" |
| 1356 |
|
| 1357 |
#. type: Plain text |
| 1358 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1359 |
msgid "" |
| 1360 |
"The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is " |
| 1361 |
"checked to see whether it contains an entry for I<filename>." |
| 1362 |
msgstr "" |
| 1363 |
"Le fichier de cache I</etc/ld.so.cache> (entretenu par B<ldconfig>(8)) est " |
| 1364 |
"vérifié pour voir s'il contient une entrée correspondant à I<filename>." |
| 1365 |
|
| 1366 |
#. type: Plain text |
| 1367 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1368 |
msgid "" |
| 1369 |
"If the object specified by I<filename> has dependencies on other shared " |
| 1370 |
"objects, then these are also automatically loaded by the dynamic linker " |
| 1371 |
"using the same rules. (This process may occur recursively, if those objects " |
| 1372 |
"in turn have dependencies, and so on.)" |
| 1373 |
msgstr "" |
| 1374 |
"Si l'objet indiqué dans I<filename> a des dépendances sur d'autres objets " |
| 1375 |
"partagés, ceux-ci seront automatiquement chargés par l'éditeur dynamique de " |
| 1376 |
"liens, en utilisant les mêmes règles. Le processus peut être récursif si ces " |
| 1377 |
"objets ont, à leur tour, des dépendances, et ainsi de suite." |
| 1378 |
|
| 1379 |
#. type: Plain text |
| 1380 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1381 |
msgid "" |
| 1382 |
"If I<filename> is NULL, then the returned handle is for the main program. " |
| 1383 |
"When given to B<dlsym>(3), this handle causes a search for a symbol in the " |
| 1384 |
"main program, followed by all shared objects loaded at program startup, and " |
| 1385 |
"then all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>." |
| 1386 |
msgstr "" |
| 1387 |
"Si l'argument I<filename> est un pointeur NULL, le descripteur renvoyé " |
| 1388 |
"correspond au programme principal. Lorsqu'il est passé à B<dlsym>(), ce " |
| 1389 |
"descripteur provoque la recherche d'un symbole dans le programme principal, " |
| 1390 |
"puis dans tous les objets partagés chargés au démarrage du programme, puis " |
| 1391 |
"dans toutes les objets partagés chargés par B<dlopen>() avec l'attribut " |
| 1392 |
"B<RTLD_GLOBAL>." |
| 1393 |
|
| 1394 |
#. type: Plain text |
| 1395 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1396 |
msgid "" |
| 1397 |
"This function performs the same task as B<dlopen>()\\[em]the I<filename> and " |
| 1398 |
"I<flags> arguments, as well as the return value, are the same, except for " |
| 1399 |
"the differences noted below." |
| 1400 |
msgstr "" |
| 1401 |
"Cette fonction effectue la même tâche que B<dlopen>() ; les arguments " |
| 1402 |
"I<filename> et I<flags>, de même que la valeur de renvoi, sont les mêmes à " |
| 1403 |
"l'exception des différences décrites plus bas." |
| 1404 |
|
| 1405 |
#. type: Plain text |
| 1406 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1407 |
msgid "" |
| 1408 |
"If I<filename> is NULL, then the only permitted value for I<lmid> is " |
| 1409 |
"B<LM_ID_BASE>." |
| 1410 |
msgstr "" |
| 1411 |
"Si I<filename> est vide, alors l'unique valeur autorisée pour I<lmid> est " |
| 1412 |
"B<LM_ID_BASE>." |
| 1413 |
|
| 1414 |
#. type: Plain text |
| 1415 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1416 |
#, no-wrap |
| 1417 |
msgid "" |
| 1418 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1419 |
"$ B<./a.out>\n" |
| 1420 |
"-0.416147\n" |
| 1421 |
msgstr "" |
| 1422 |
"$ B<cc dlopen_demo.c -ldl>\n" |
| 1423 |
"$ B<./a.out>\n" |
| 1424 |
"-0.416147\n" |
| 1425 |
|
| 1426 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1427 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1428 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1429 |
#. type: Plain text |
| 1430 |
#: debian-trixie |
| 1431 |
#, no-wrap |
| 1432 |
msgid "" |
| 1433 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1434 |
"#include E<lt>stdio.hE<gt>\n" |
| 1435 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1436 |
"\\&\n" |
| 1437 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1438 |
" string such as \"libm.so.6\") */\n" |
| 1439 |
"int\n" |
| 1440 |
"main(void)\n" |
| 1441 |
"{\n" |
| 1442 |
" void *handle;\n" |
| 1443 |
" double (*cosine)(double);\n" |
| 1444 |
" char *error;\n" |
| 1445 |
"\\&\n" |
| 1446 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1447 |
" if (!handle) {\n" |
| 1448 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1449 |
" exit(EXIT_FAILURE);\n" |
| 1450 |
" }\n" |
| 1451 |
"\\&\n" |
| 1452 |
" dlerror(); /* Clear any existing error */\n" |
| 1453 |
"\\&\n" |
| 1454 |
" cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" |
| 1455 |
"\\&\n" |
| 1456 |
" /* According to the ISO C standard, casting between function\n" |
| 1457 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1458 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1459 |
" proposed the following workaround:\n" |
| 1460 |
"\\&\n" |
| 1461 |
" *(void **) (&cosine) = dlsym(handle, \"cos\");\n" |
| 1462 |
"\\&\n" |
| 1463 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1464 |
" avoid any compiler warnings.\n" |
| 1465 |
"\\&\n" |
| 1466 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1467 |
" by requiring that conforming implementations support casting\n" |
| 1468 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1469 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1470 |
" cast used in this program. */\n" |
| 1471 |
"\\&\n" |
| 1472 |
" error = dlerror();\n" |
| 1473 |
" if (error != NULL) {\n" |
| 1474 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1475 |
" exit(EXIT_FAILURE);\n" |
| 1476 |
" }\n" |
| 1477 |
"\\&\n" |
| 1478 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1479 |
" dlclose(handle);\n" |
| 1480 |
" exit(EXIT_SUCCESS);\n" |
| 1481 |
"}\n" |
| 1482 |
msgstr "" |
| 1483 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1484 |
"#include E<lt>stdio.hE<gt>\n" |
| 1485 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1486 |
"\\&\n" |
| 1487 |
"#include E<lt>gnu/lib-names.hE<gt> /* Définit LIBM_SO (qui sera une\n" |
| 1488 |
" chaîne telle que « libm.so.6 ») */\n" |
| 1489 |
"int\n" |
| 1490 |
"main(void)\n" |
| 1491 |
"{\n" |
| 1492 |
" void *handle;\n" |
| 1493 |
" double (*cosine)(double);\n" |
| 1494 |
" char *error;\n" |
| 1495 |
"\\&\n" |
| 1496 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1497 |
" if (!handle) {\n" |
| 1498 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1499 |
" exit(EXIT_FAILURE);\n" |
| 1500 |
" }\n" |
| 1501 |
"\\&\n" |
| 1502 |
" dlerror(); /* Supprime une erreur existante */\n" |
| 1503 |
"\\&\n" |
| 1504 |
" cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" |
| 1505 |
"\\&\n" |
| 1506 |
" /* D'après le standard ISO C, la conversion de type entre un pointeur\n" |
| 1507 |
" de fonction et « void * », comme effectuée ci-dessus, produit des\n" |
| 1508 |
" résultats indéfinis.\n" |
| 1509 |
" POSIX.1-2003 et POSIX.1-2008 ont admis cet état de fait et proposé\n" |
| 1510 |
" le contournement ci-dessous :\n" |
| 1511 |
"\\&\n" |
| 1512 |
" *(void **) (&cosine) = dlsym(handle, \"cos\");\n" |
| 1513 |
"\\&\n" |
| 1514 |
" Cette conversion (lourde) de type est conforme au standard\n" |
| 1515 |
" ISO C and évitera tout avertissement du compilateur.\n" |
| 1516 |
"\\&\n" |
| 1517 |
" La révision technique 2013 de POSIX.1-2008 a amélioré la\n" |
| 1518 |
" situation en exigeant que les implémentations prennent en charge \n" |
| 1519 |
" la conversion du type « void * » vers un pointeur de fonction.\n" |
| 1520 |
" Cependant, certains compilateurs (par exemple gcc avec\n" |
| 1521 |
" l'option « -pedantic ») peuvent se plaindre de la conversion\n" |
| 1522 |
" effectuée dans ce programme. */\n" |
| 1523 |
"\\&\n" |
| 1524 |
" error = dlerror();\n" |
| 1525 |
" if (error != NULL) {\n" |
| 1526 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1527 |
" exit(EXIT_FAILURE);\n" |
| 1528 |
" }\n" |
| 1529 |
"\\&\n" |
| 1530 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1531 |
" dlclose(handle);\n" |
| 1532 |
" exit(EXIT_SUCCESS);\n" |
| 1533 |
"}\n" |
| 1534 |
|
| 1535 |
#. type: TH |
| 1536 |
#: fedora-44 fedora-rawhide |
| 1537 |
#, no-wrap |
| 1538 |
msgid "2025-01-05" |
| 1539 |
msgstr "5 janvier 2025" |
| 1540 |
|
| 1541 |
#. type: TH |
| 1542 |
#: fedora-44 fedora-rawhide |
| 1543 |
#, no-wrap |
| 1544 |
msgid "Linux man-pages 6.13" |
| 1545 |
msgstr "Pages du manuel de Linux 6.13" |
| 1546 |
|
| 1547 |
#. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 |
| 1548 |
#. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 |
| 1549 |
#. http://austingroupbugs.net/view.php?id=74 |
| 1550 |
#. type: Plain text |
| 1551 |
#: fedora-44 fedora-rawhide |
| 1552 |
#, no-wrap |
| 1553 |
msgid "" |
| 1554 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1555 |
"#include E<lt>stdio.hE<gt>\n" |
| 1556 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1557 |
"\\&\n" |
| 1558 |
"#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n" |
| 1559 |
" string such as \"libm.so.6\") */\n" |
| 1560 |
"int\n" |
| 1561 |
"main(void)\n" |
| 1562 |
"{\n" |
| 1563 |
" void *handle;\n" |
| 1564 |
" typeof(double (double)) *cosine;\n" |
| 1565 |
" char *error;\n" |
| 1566 |
"\\&\n" |
| 1567 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1568 |
" if (!handle) {\n" |
| 1569 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1570 |
" exit(EXIT_FAILURE);\n" |
| 1571 |
" }\n" |
| 1572 |
"\\&\n" |
| 1573 |
" dlerror(); /* Clear any existing error */\n" |
| 1574 |
"\\&\n" |
| 1575 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1576 |
"\\&\n" |
| 1577 |
" /* According to the ISO C standard, casting between function\n" |
| 1578 |
" pointers and \\[aq]void *\\[aq], as done above, produces undefined results.\n" |
| 1579 |
" POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" |
| 1580 |
" proposed the following workaround:\n" |
| 1581 |
"\\&\n" |
| 1582 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1583 |
"\\&\n" |
| 1584 |
" This (clumsy) cast conforms with the ISO C standard and will\n" |
| 1585 |
" avoid any compiler warnings.\n" |
| 1586 |
"\\&\n" |
| 1587 |
" The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" |
| 1588 |
" by requiring that conforming implementations support casting\n" |
| 1589 |
" \\[aq]void *\\[aq] to a function pointer. Nevertheless, some compilers\n" |
| 1590 |
" (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about the\n" |
| 1591 |
" cast used in this program. */\n" |
| 1592 |
"\\&\n" |
| 1593 |
" error = dlerror();\n" |
| 1594 |
" if (error != NULL) {\n" |
| 1595 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1596 |
" exit(EXIT_FAILURE);\n" |
| 1597 |
" }\n" |
| 1598 |
"\\&\n" |
| 1599 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1600 |
" dlclose(handle);\n" |
| 1601 |
" exit(EXIT_SUCCESS);\n" |
| 1602 |
"}\n" |
| 1603 |
msgstr "" |
| 1604 |
"#include E<lt>dlfcn.hE<gt>\n" |
| 1605 |
"#include E<lt>stdio.hE<gt>\n" |
| 1606 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1607 |
"\\&\n" |
| 1608 |
"#include E<lt>gnu/lib-names.hE<gt> /* Définit LIBM_SO (qui sera une\n" |
| 1609 |
" chaîne telle que « libm.so.6 ») */\n" |
| 1610 |
"int\n" |
| 1611 |
"main(void)\n" |
| 1612 |
"{\n" |
| 1613 |
" void *handle;\n" |
| 1614 |
" typeof(double (double)) *cosine;\n" |
| 1615 |
" char *error;\n" |
| 1616 |
"\\&\n" |
| 1617 |
" handle = dlopen(LIBM_SO, RTLD_LAZY);\n" |
| 1618 |
" if (!handle) {\n" |
| 1619 |
" fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" |
| 1620 |
" exit(EXIT_FAILURE);\n" |
| 1621 |
" }\n" |
| 1622 |
"\\&\n" |
| 1623 |
" dlerror(); /* Supprime une erreur existante */\n" |
| 1624 |
"\\&\n" |
| 1625 |
" cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" |
| 1626 |
"\\&\n" |
| 1627 |
" /* D'après le standard ISO C, la conversion de type entre un pointeur\n" |
| 1628 |
" de fonction et « void * », comme effectuée ci-dessus, produit des\n" |
| 1629 |
" résultats indéfinis.\n" |
| 1630 |
" POSIX.1-2003 et POSIX.1-2008 ont admis cet état de fait et proposé\n" |
| 1631 |
" le contournement ci-dessous :\n" |
| 1632 |
"\\&\n" |
| 1633 |
" *(void **) &cosine = dlsym(handle, \"cos\");\n" |
| 1634 |
"\\&\n" |
| 1635 |
" Cette conversion (lourde) de type est conforme au standard\n" |
| 1636 |
" ISO C and évitera tout avertissement du compilateur.\n" |
| 1637 |
"\\&\n" |
| 1638 |
" La révision technique 2013 de POSIX.1-2008 a amélioré la\n" |
| 1639 |
" situation en exigeant que les implémentations prennent en charge \n" |
| 1640 |
" la conversion du type « void * » vers un pointeur de fonction.\n" |
| 1641 |
" Cependant, certains compilateurs (par exemple gcc avec\n" |
| 1642 |
" l'option « -pedantic ») peuvent se plaindre de la conversion\n" |
| 1643 |
" effectuée dans ce programme. */\n" |
| 1644 |
"\\&\n" |
| 1645 |
" error = dlerror();\n" |
| 1646 |
" if (error != NULL) {\n" |
| 1647 |
" fprintf(stderr, \"%s\\[rs]n\", error);\n" |
| 1648 |
" exit(EXIT_FAILURE);\n" |
| 1649 |
" }\n" |
| 1650 |
"\\&\n" |
| 1651 |
" printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" |
| 1652 |
" dlclose(handle);\n" |
| 1653 |
" exit(EXIT_SUCCESS);\n" |
| 1654 |
"}\n" |
| 1655 |
|
| 1656 |
#. type: TH |
| 1657 |
#: mageia-cauldron |
| 1658 |
#, no-wrap |
| 1659 |
msgid "Linux man-pages 6.17" |
| 1660 |
msgstr "Pages du manuel de Linux 6.17" |
| 1661 |
|
| 1662 |
#. type: TH |
| 1663 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1664 |
#, no-wrap |
| 1665 |
msgid "Linux man-pages (unreleased)" |
| 1666 |
msgstr "Pages du manuel de Linux (non publiées)" |