| 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, 2013, 2014. |
| 18 |
# Cédric Boutillier <[email protected]>, 2011, 2012, 2013. |
| 19 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 20 |
# Jean-Philippe MENGUAL <[email protected]>, 2023. |
| 21 |
msgid "" |
| 22 |
msgstr "" |
| 23 |
"Project-Id-Version: manpages-l10n 4.21.0\n" |
| 24 |
"POT-Creation-Date: 2026-06-05 06:27+0200\n" |
| 25 |
"PO-Revision-Date: 2025-05-30 12:07+0200\n" |
| 26 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 27 |
"Language-Team: French <[email protected]>\n" |
| 28 |
"Language: fr\n" |
| 29 |
"MIME-Version: 1.0\n" |
| 30 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 31 |
"Content-Transfer-Encoding: 8bit\n" |
| 32 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 33 |
"X-Generator: Lokalize 20.12.0\n" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 37 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "if_nameindex" |
| 40 |
msgstr "if_nameindex" |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 44 |
#: opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "2026-02-08" |
| 47 |
msgstr "8 février 2026" |
| 48 |
|
| 49 |
#. type: TH |
| 50 |
#: archlinux debian-unstable |
| 51 |
#, no-wrap |
| 52 |
msgid "Linux man-pages 6.18" |
| 53 |
msgstr "Pages du manuel de Linux 6.18" |
| 54 |
|
| 55 |
#. type: SH |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
#, no-wrap |
| 59 |
msgid "NAME" |
| 60 |
msgstr "NOM" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
msgid "" |
| 66 |
"if_nameindex, if_freenameindex - get network interface names and indexes" |
| 67 |
msgstr "" |
| 68 |
"if_nameindex, if_freenameindex - Obtenir le nom et l'indice des interfaces " |
| 69 |
"réseau" |
| 70 |
|
| 71 |
#. type: SH |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "LIBRARY" |
| 76 |
msgstr "BIBLIOTHÈQUE" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 80 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 82 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 83 |
|
| 84 |
#. type: SH |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "SYNOPSIS" |
| 89 |
msgstr "SYNOPSIS" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
#, no-wrap |
| 95 |
msgid "B<#include E<lt>net/if.hE<gt>>\n" |
| 96 |
msgstr "B<#include E<lt>net/if.hE<gt>>\n" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "" |
| 103 |
"B<struct if_nameindex *if_nameindex(>I<void>B<);>\n" |
| 104 |
"B<void if_freenameindex(struct if_nameindex *>I<ptr>B<);>\n" |
| 105 |
msgstr "" |
| 106 |
"B<struct if_nameindex *if_nameindex(>I<void>B<);>\n" |
| 107 |
"B<void if_freenameindex(struct if_nameindex *>I<ptr>B<);>\n" |
| 108 |
|
| 109 |
#. type: SH |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "DESCRIPTION" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
msgid "" |
| 120 |
"The B<if_nameindex>() function returns an array of I<if_nameindex> " |
| 121 |
"structures, each containing information about one of the network interfaces " |
| 122 |
"on the local system. The I<if_nameindex> structure contains at least the " |
| 123 |
"following entries:" |
| 124 |
msgstr "" |
| 125 |
"La fonction B<if_nameindex>() renvoie un tableau de structures " |
| 126 |
"I<if_nameindex>, contenant chacune des informations au sujet d'une des " |
| 127 |
"interfaces réseau du système local. La structure I<if_nameindex> contient au " |
| 128 |
"moins les champs suivants :" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 132 |
#: opensuse-tumbleweed |
| 133 |
#, fuzzy, no-wrap |
| 134 |
#| msgid "" |
| 135 |
#| "unsigned int if_index; /* Index of interface (1, 2, ...) */\n" |
| 136 |
#| "char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n" |
| 137 |
msgid "" |
| 138 |
"unsigned int if_index; /* Index of interface (1, 2, ...) */\n" |
| 139 |
"char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n" |
| 140 |
msgstr "" |
| 141 |
"unsigned int if_index; /* Indice de l'interface (1, 2, etc.) */\n" |
| 142 |
"char *if_name; /* nom se terminant par un caractère nul (\"eth0\", etc.) */\n" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "" |
| 148 |
"The I<if_index> field contains the interface index. The I<if_name> field " |
| 149 |
"points to the null-terminated interface name. The end of the array is " |
| 150 |
"indicated by entry with I<if_index> set to zero and I<if_name> set to NULL." |
| 151 |
msgstr "" |
| 152 |
"Le champ I<if_index> contient l'indice de l'interface. Le champ I<ifa_name> " |
| 153 |
"pointe vers le nom de l'interface qui se termine par un caractère nul. La " |
| 154 |
"fin du tableau est indiquée par une entrée dont les champs I<if_index> et " |
| 155 |
"I<ifa_name> valent respectivement 0 et le pointeur NULL." |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "" |
| 161 |
"The data structure returned by B<if_nameindex>() is dynamically allocated " |
| 162 |
"and should be freed using B<if_freenameindex>() when no longer needed." |
| 163 |
msgstr "" |
| 164 |
"La donnée renvoyée par B<if_nameindex>() est dynamiquement allouée et " |
| 165 |
"devrait être libérée avec B<if_freenameindex>() lorsqu'elle n'est plus " |
| 166 |
"utilisée." |
| 167 |
|
| 168 |
#. type: SH |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
#, no-wrap |
| 172 |
msgid "RETURN VALUE" |
| 173 |
msgstr "VALEUR RENVOYÉE" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
msgid "" |
| 179 |
"On success, B<if_nameindex>() returns pointer to the array; on error, NULL " |
| 180 |
"is returned, and I<errno> is set to indicate the error." |
| 181 |
msgstr "" |
| 182 |
"En cas de réussite, B<if_nameindex>() renvoie un pointeur vers le tableau. " |
| 183 |
"En cas d'erreur, elle renvoie un pointeur NULL et I<errno> est positionné " |
| 184 |
"pour indiquer l'erreur." |
| 185 |
|
| 186 |
#. type: SH |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
#, no-wrap |
| 190 |
msgid "ERRORS" |
| 191 |
msgstr "ERREURS" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
msgid "B<if_nameindex>() may fail and set I<errno> if:" |
| 197 |
msgstr "B<if_nameindex>() peut échouer et remplir I<errno> si :" |
| 198 |
|
| 199 |
#. type: TP |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
#, no-wrap |
| 203 |
msgid "B<ENOBUFS>" |
| 204 |
msgstr "B<ENOBUFS>" |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "Insufficient resources available." |
| 210 |
msgstr "les ressources disponibles sont insuffisantes." |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"B<if_nameindex>() may also fail for any of the errors specified for " |
| 217 |
"B<socket>(2), B<bind>(2), B<ioctl>(2), B<getsockname>(2), B<recvmsg>(2), " |
| 218 |
"B<sendto>(2), or B<malloc>(3)." |
| 219 |
msgstr "" |
| 220 |
"B<getifaddrs>() peut aussi échouer pour les erreurs précisées pour " |
| 221 |
"B<socket>(2), B<bind>(2), B<getsockname>(2), B<recvmsg>(2), B<sendto>(2) ou " |
| 222 |
"B<malloc>(3)." |
| 223 |
|
| 224 |
#. type: SH |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "ATTRIBUTES" |
| 229 |
msgstr "ATTRIBUTS" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 236 |
msgstr "" |
| 237 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 238 |
"B<attributes>(7)." |
| 239 |
|
| 240 |
#. type: tbl table |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "Interface" |
| 245 |
msgstr "Interface" |
| 246 |
|
| 247 |
#. type: tbl table |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
#, no-wrap |
| 251 |
msgid "Attribute" |
| 252 |
msgstr "Attribut" |
| 253 |
|
| 254 |
#. type: tbl table |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "Value" |
| 259 |
msgstr "Valeur" |
| 260 |
|
| 261 |
#. type: tbl table |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid ".na\n" |
| 266 |
msgstr ".na\n" |
| 267 |
|
| 268 |
#. type: tbl table |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid ".nh\n" |
| 273 |
msgstr ".nh\n" |
| 274 |
|
| 275 |
#. type: tbl table |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "" |
| 280 |
"B<if_nameindex>(),\n" |
| 281 |
"B<if_freenameindex>()" |
| 282 |
msgstr "" |
| 283 |
"B<if_nameindex>(),\n" |
| 284 |
"B<if_freenameindex>()" |
| 285 |
|
| 286 |
#. type: tbl table |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
#, no-wrap |
| 290 |
msgid "Thread safety" |
| 291 |
msgstr "Sécurité des threads" |
| 292 |
|
| 293 |
#. type: tbl table |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "MT-Safe" |
| 298 |
msgstr "MT-Safe" |
| 299 |
|
| 300 |
#. type: SH |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "STANDARDS" |
| 305 |
msgstr "NORMES" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
msgid "POSIX.1-2008, RFC\\ 3493." |
| 311 |
msgstr "POSIX.1-2008, RFC\\ 3493." |
| 312 |
|
| 313 |
#. type: SH |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "HISTORY" |
| 318 |
msgstr "HISTORIQUE" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
msgid "glibc 2.1. POSIX.1-2001. BSDi." |
| 324 |
msgstr "glibc 2.1. POSIX.1-2001. BSDi." |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
msgid "" |
| 330 |
"Before glibc 2.3.4, the implementation supported only interfaces with IPv4 " |
| 331 |
"addresses. Support of interfaces that don't have IPv4 addresses is " |
| 332 |
"available only on kernels that support netlink." |
| 333 |
msgstr "" |
| 334 |
"Les versions antérieures à la glibc 2.3.4 ne géraient que les interfaces " |
| 335 |
"avec des adresses IPv4. La gestion des interfaces qui n'ont pas d'adresse " |
| 336 |
"IPv4 n'est disponible que si le noyau gère netlink." |
| 337 |
|
| 338 |
#. type: SH |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
#, no-wrap |
| 342 |
msgid "EXAMPLES" |
| 343 |
msgstr "EXEMPLES" |
| 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 |
"The program below demonstrates the use of the functions described on this " |
| 350 |
"page. An example of the output this program might produce is the following:" |
| 351 |
msgstr "" |
| 352 |
"Le programme ci-dessous montre l'utilisation des fonctions décrites dans " |
| 353 |
"cette page. Voici un exemple de sortie que ce programme peut produire :" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 357 |
#: opensuse-tumbleweed |
| 358 |
#, fuzzy, no-wrap |
| 359 |
#| msgid "" |
| 360 |
#| "$ B<./a.out>I<\n" |
| 361 |
#| "1: lo\n" |
| 362 |
#| "2: wlan0\n" |
| 363 |
#| "3: em1>\n" |
| 364 |
msgid "" |
| 365 |
"$B< ./a.out>;\n" |
| 366 |
"1: lo\n" |
| 367 |
"2: wlan0\n" |
| 368 |
"3: em1\n" |
| 369 |
msgstr "" |
| 370 |
"$ B<./a.out>I<\n" |
| 371 |
"1: lo\n" |
| 372 |
"2: wlan0\n" |
| 373 |
"3: em1>\n" |
| 374 |
|
| 375 |
#. type: SS |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
#, no-wrap |
| 379 |
msgid "Program source" |
| 380 |
msgstr "Source du programme" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "" |
| 387 |
"#include E<lt>net/if.hE<gt>\n" |
| 388 |
"#include E<lt>stdio.hE<gt>\n" |
| 389 |
"#include E<lt>stdlib.hE<gt>\n" |
| 390 |
"#include E<lt>unistd.hE<gt>\n" |
| 391 |
"\\&\n" |
| 392 |
"int\n" |
| 393 |
"main(void)\n" |
| 394 |
"{\n" |
| 395 |
" struct if_nameindex *if_ni, *i;\n" |
| 396 |
"\\&\n" |
| 397 |
" if_ni = if_nameindex();\n" |
| 398 |
" if (if_ni == NULL) {\n" |
| 399 |
" perror(\"if_nameindex\");\n" |
| 400 |
" exit(EXIT_FAILURE);\n" |
| 401 |
" }\n" |
| 402 |
"\\&\n" |
| 403 |
" for (i = if_ni; !(i-E<gt>if_index == 0 && i-E<gt>if_name == NULL); i++)\n" |
| 404 |
" printf(\"%u: %s\\[rs]n\", i-E<gt>if_index, i-E<gt>if_name);\n" |
| 405 |
"\\&\n" |
| 406 |
" if_freenameindex(if_ni);\n" |
| 407 |
"\\&\n" |
| 408 |
" exit(EXIT_SUCCESS);\n" |
| 409 |
"}\n" |
| 410 |
msgstr "" |
| 411 |
"#include E<lt>net/if.hE<gt>\n" |
| 412 |
"#include E<lt>stdio.hE<gt>\n" |
| 413 |
"#include E<lt>stdlib.hE<gt>\n" |
| 414 |
"#include E<lt>unistd.hE<gt>\n" |
| 415 |
"\\&\n" |
| 416 |
"int\n" |
| 417 |
"main(void)\n" |
| 418 |
"{\n" |
| 419 |
" struct if_nameindex *if_ni, *i;\n" |
| 420 |
"\\&\n" |
| 421 |
" if_ni = if_nameindex();\n" |
| 422 |
" if (if_ni == NULL) {\n" |
| 423 |
" perror(\\\"if_nameindex\\\");\n" |
| 424 |
" exit(EXIT_FAILURE);\n" |
| 425 |
" }\n" |
| 426 |
"\\&\n" |
| 427 |
" for (i = if_ni; !(i-E<gt>if_index == 0 && i-E<gt>if_name == NULL); i++)\n" |
| 428 |
" printf(\"%u : %s\\[rs]n\", i-E<gt>if_index, i-E<gt>if_name);\n" |
| 429 |
"\\&\n" |
| 430 |
" if_freenameindex(if_ni);\n" |
| 431 |
"\\&\n" |
| 432 |
" exit(EXIT_SUCCESS);\n" |
| 433 |
"}\n" |
| 434 |
|
| 435 |
#. SRC END |
| 436 |
#. type: SH |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "SEE ALSO" |
| 441 |
msgstr "VOIR AUSSI" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
msgid "" |
| 447 |
"B<getsockopt>(2), B<setsockopt>(2), B<getifaddrs>(3), B<if_indextoname>(3), " |
| 448 |
"B<if_nametoindex>(3), B<ifconfig>(8)" |
| 449 |
msgstr "" |
| 450 |
"B<getsockopt>(2), B<setsockopt>(2), B<getifaddrs>(3), B<if_indextoname>(3), " |
| 451 |
"B<if_nametoindex>(3), B<ifconfig>(8)" |
| 452 |
|
| 453 |
#. type: TH |
| 454 |
#: debian-trixie |
| 455 |
#, no-wrap |
| 456 |
msgid "2024-06-15" |
| 457 |
msgstr "15 juin 2024" |
| 458 |
|
| 459 |
#. type: TH |
| 460 |
#: debian-trixie |
| 461 |
#, no-wrap |
| 462 |
msgid "Linux man-pages 6.9.1" |
| 463 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 464 |
|
| 465 |
#. type: Plain text |
| 466 |
#: debian-trixie |
| 467 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 468 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 469 |
|
| 470 |
#. type: Plain text |
| 471 |
#: debian-trixie fedora-44 fedora-rawhide |
| 472 |
#, no-wrap |
| 473 |
msgid "" |
| 474 |
"unsigned int if_index; /* Index of interface (1, 2, ...) */\n" |
| 475 |
"char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n" |
| 476 |
msgstr "" |
| 477 |
"unsigned int if_index; /* Indice de l'interface (1, 2, etc.) */\n" |
| 478 |
"char *if_name; /* nom se terminant par un caractère nul (\"eth0\", etc.) */\n" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: debian-trixie fedora-44 fedora-rawhide |
| 482 |
#, no-wrap |
| 483 |
msgid "" |
| 484 |
"$ B<./a.out>I<\n" |
| 485 |
"1: lo\n" |
| 486 |
"2: wlan0\n" |
| 487 |
"3: em1>\n" |
| 488 |
msgstr "" |
| 489 |
"$ B<./a.out>I<\n" |
| 490 |
"1: lo\n" |
| 491 |
"2: wlan0\n" |
| 492 |
"3: em1>\n" |
| 493 |
|
| 494 |
#. type: TH |
| 495 |
#: fedora-44 fedora-rawhide |
| 496 |
#, no-wrap |
| 497 |
msgid "2024-07-23" |
| 498 |
msgstr "23 juillet 2024" |
| 499 |
|
| 500 |
#. type: TH |
| 501 |
#: fedora-44 fedora-rawhide |
| 502 |
#, no-wrap |
| 503 |
msgid "Linux man-pages 6.13" |
| 504 |
msgstr "Pages du manuel de Linux 6.13" |
| 505 |
|
| 506 |
#. type: TH |
| 507 |
#: mageia-cauldron |
| 508 |
#, no-wrap |
| 509 |
msgid "Linux man-pages 6.17" |
| 510 |
msgstr "Pages du manuel de Linux 6.17" |
| 511 |
|
| 512 |
#. type: TH |
| 513 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, no-wrap |
| 515 |
msgid "Linux man-pages (unreleased)" |
| 516 |
msgstr "Pages du manuel de Linux (non publiées)" |