| 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-2014. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2014. |
| 18 |
# Jean-Paul Guillonneau <[email protected]>, 2021. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: perkamon\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:50+0200\n" |
| 23 |
"PO-Revision-Date: 2021-12-01 11:37+0100\n" |
| 24 |
"Last-Translator: Jean-Paul Guillonneau <[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: vim\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 "UNIX" |
| 38 |
msgstr "UNIX" |
| 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 "unix - sockets for local interprocess communication" |
| 64 |
msgstr "unix – Sockets pour communications locales entre processus" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "SYNOPSIS" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "" |
| 78 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 79 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 82 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "" |
| 89 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 90 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 91 |
msgstr "" |
| 92 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 93 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 94 |
|
| 95 |
#. type: SH |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "DESCRIPTION" |
| 100 |
msgstr "DESCRIPTION" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
msgid "" |
| 106 |
"The B<AF_UNIX> (also known as B<AF_LOCAL>) socket family is used to " |
| 107 |
"communicate between processes on the same machine efficiently. " |
| 108 |
"Traditionally, UNIX domain sockets can be either unnamed, or bound to a " |
| 109 |
"filesystem pathname (marked as being of type socket). Linux also supports " |
| 110 |
"an abstract namespace which is independent of the filesystem." |
| 111 |
msgstr "" |
| 112 |
"La famille de sockets B<AF_UNIX> (aussi connue sous le nom de B<AF_LOCAL>) " |
| 113 |
"sert à communiquer efficacement entre processus sur la même machine. " |
| 114 |
"Traditionnellement, les sockets de domaine UNIX peuvent ne pas être nommés " |
| 115 |
"ou bien être liés à un chemin d'accès de système de fichiers, lequel sera " |
| 116 |
"marqué comme étant de type socket. Linux gère également un espace de noms " |
| 117 |
"abstrait, indépendant du système de fichiers." |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
msgid "" |
| 123 |
"Valid socket types in the UNIX domain are: B<SOCK_STREAM>, for a stream-" |
| 124 |
"oriented socket; B<SOCK_DGRAM>, for a datagram-oriented socket that " |
| 125 |
"preserves message boundaries (as on most UNIX implementations, UNIX domain " |
| 126 |
"datagram sockets are always reliable and don't reorder datagrams); and " |
| 127 |
"(since Linux 2.6.4) B<SOCK_SEQPACKET>, for a sequenced-packet socket that " |
| 128 |
"is connection-oriented, preserves message boundaries, and delivers messages " |
| 129 |
"in the order that they were sent." |
| 130 |
msgstr "" |
| 131 |
"Les types de sockets valables dans le domaine UNIX sont\\ : B<SOCK_STREAM> " |
| 132 |
"pour un socket orienté flux et B<SOCK_DGRAM> pour un socket orienté " |
| 133 |
"datagramme qui préserve les limites entre messages (comme sur la plupart des " |
| 134 |
"implémentations UNIX, les sockets datagramme de domaine UNIX sont toujours " |
| 135 |
"fiables et ne réordonnent pas les datagrammes), et (depuis Linux 2.6.4) " |
| 136 |
"B<SOCK_SEQPACKET> pour un socket orienté connexion, préservant les limites " |
| 137 |
"entre messages et délivrant les messages dans l'ordre où ils ont été envoyés." |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "" |
| 143 |
"UNIX domain sockets support passing file descriptors or process credentials " |
| 144 |
"to other processes using ancillary data." |
| 145 |
msgstr "" |
| 146 |
"Les sockets de domaine UNIX prennent en charge la transmission de " |
| 147 |
"descripteurs de fichier ou d'accréditations d'un processus à l'autre en " |
| 148 |
"utilisant des données annexes." |
| 149 |
|
| 150 |
#. type: SS |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
#, no-wrap |
| 154 |
msgid "Address format" |
| 155 |
msgstr "Formats d'adresse" |
| 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 "A UNIX domain socket address is represented in the following structure:" |
| 161 |
msgstr "" |
| 162 |
"Une adresse de socket de domaine UNIX est représentée dans la structure " |
| 163 |
"suivante :" |
| 164 |
|
| 165 |
#. #define UNIX_PATH_MAX 108 |
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
#, no-wrap |
| 170 |
msgid "" |
| 171 |
"struct sockaddr_un {\n" |
| 172 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 173 |
" char sun_path[108]; /* Pathname */\n" |
| 174 |
"};\n" |
| 175 |
msgstr "" |
| 176 |
"struct sockaddr_un {\n" |
| 177 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 178 |
" char sun_path[108]; /* Chemin d’accès */\n" |
| 179 |
"};\n" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
#, fuzzy |
| 185 |
#| msgid "" |
| 186 |
#| "The I<sun_family> field always contains B<AF_UNIX>. On Linux, " |
| 187 |
#| "I<sun_path> is 108 bytes in size; see also NOTES, below." |
| 188 |
msgid "" |
| 189 |
"The I<sun_family> field always contains B<AF_UNIX>. On Linux, I<sun_path> " |
| 190 |
"is 108 bytes in size; see also BUGS, below." |
| 191 |
msgstr "" |
| 192 |
"Le champ I<sun_family> contient toujours B<AF_UNIX>. Dans Linux, I<sun_path> " |
| 193 |
"a pour taille 108 octets. Consultez NOTES, ci-dessous." |
| 194 |
|
| 195 |
#. type: Plain text |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
#, fuzzy |
| 199 |
#| msgid "" |
| 200 |
#| "Various systems calls (for example, B<bind>(2), B<connect>(2), and " |
| 201 |
#| "B<sendto>(2)) take a I<sockaddr_un> argument as input. Some other " |
| 202 |
#| "system calls (for example, B<getsockname>(2), B<getpeername>(2), " |
| 203 |
#| "B<recvfrom>(2), and B<accept>(2)) return an argument of this type." |
| 204 |
msgid "" |
| 205 |
"Various system calls (for example, B<bind>(2), B<connect>(2), and " |
| 206 |
"B<sendto>(2)) take a I<sockaddr_un> argument as input. Some other system " |
| 207 |
"calls (for example, B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2), " |
| 208 |
"and B<accept>(2)) return an argument of this type." |
| 209 |
msgstr "" |
| 210 |
"Divers appels système (par exemple, B<bind>(2), B<connect>(2) et " |
| 211 |
"B<sendto>(2)) prennent un argument I<sockaddr_un> en entrée. D’autres appels " |
| 212 |
"système (par exemple, B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2) " |
| 213 |
"et B<accept>(2)) renvoient un argument de ce type." |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"Three types of address are distinguished in the I<sockaddr_un> structure:" |
| 220 |
msgstr "" |
| 221 |
"Trois types d’adresse sont remarquables dans la structure I<sockaddr_un> :" |
| 222 |
|
| 223 |
#. type: TP |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
#, no-wrap |
| 227 |
msgid "pathname" |
| 228 |
msgstr "pathname" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, fuzzy |
| 234 |
#| msgid "" |
| 235 |
#| "I<pathname>: a UNIX domain socket can be bound to a null-terminated " |
| 236 |
#| "filesystem pathname using B<bind>(2). When the address of a pathname " |
| 237 |
#| "socket is returned (by one of the system calls noted above), its length is" |
| 238 |
msgid "" |
| 239 |
"a UNIX domain socket can be bound to a null-terminated filesystem pathname " |
| 240 |
"using B<bind>(2). When the address of a pathname socket is returned (by one " |
| 241 |
"of the system calls noted above), its length is" |
| 242 |
msgstr "" |
| 243 |
"I<chemin d'accès> : un socket de domaine UNIX peut être lié, avec " |
| 244 |
"B<bind>(2), à un système de fichiers dont le chemin d'accès est une chaîne " |
| 245 |
"de caractères terminée par l’octet NULL. Lorsque l'adresse du socket est " |
| 246 |
"obtenue (avec un des appels système ci-dessus) sa longueur vaut" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, fuzzy, no-wrap |
| 252 |
#| msgid " offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 253 |
msgid "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 254 |
msgstr " offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 255 |
|
| 256 |
#. type: Plain text |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
msgid "" |
| 260 |
"and I<sun_path> contains the null-terminated pathname. (On Linux, the above " |
| 261 |
"B<offsetof>() expression equates to the same value as " |
| 262 |
"I<sizeof(sa_family_t)>, but some other implementations include other fields " |
| 263 |
"before I<sun_path>, so the B<offsetof>() expression more portably describes " |
| 264 |
"the size of the address structure.)" |
| 265 |
msgstr "" |
| 266 |
"et I<sun_path> contient le chemin avec un octet NULL final. (Dans Linux, " |
| 267 |
"l’expression ci-dessus B<offsetof>() est égale à la même valeur que " |
| 268 |
"I<sizeof(sa_family_t)>, mais quelques autres implémentations incluent " |
| 269 |
"d’autres champs avant I<sun_path>, aussi l’expression B<offsetof>() plus " |
| 270 |
"portable décrit la taille de la structure d’adresse.)" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "For further details of pathname sockets, see below." |
| 276 |
msgstr "Pour plus de détails sur les sockets chemin, voir ci-après." |
| 277 |
|
| 278 |
#. type: TP |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "unnamed" |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. There is quite some variation across implementations: FreeBSD |
| 286 |
#. says the length is 16 bytes, HP-UX 11 says it's zero bytes. |
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, fuzzy |
| 291 |
#| msgid "" |
| 292 |
#| "I<unnamed>: A stream socket that has not been bound to a pathname using " |
| 293 |
#| "B<bind>(2) has no name. Likewise, the two sockets created by " |
| 294 |
#| "B<socketpair>(2) are unnamed. When the address of an unnamed socket is " |
| 295 |
#| "returned, its length is I<sizeof(sa_family_t)>, and I<sun_path> should " |
| 296 |
#| "not be inspected." |
| 297 |
msgid "" |
| 298 |
"A stream socket that has not been bound to a pathname using B<bind>(2) has " |
| 299 |
"no name. Likewise, the two sockets created by B<socketpair>(2) are " |
| 300 |
"unnamed. When the address of an unnamed socket is returned, its length is " |
| 301 |
"I<sizeof(sa_family_t)>, and I<sun_path> should not be inspected." |
| 302 |
msgstr "" |
| 303 |
"I<sans_nom> : un socket flux qui n'a pas été lié à un chemin d'accès avec " |
| 304 |
"B<bind>(2) n'a pas de nom. De la même façon, les deux sockets créés avec " |
| 305 |
"B<socketpair>(2) ne sont pas nommés. Lorsque l'adresse d'un socket sans nom " |
| 306 |
"est obtenue, sa longueur vaut I<sizeof(sa_family_t)> et il n'est pas " |
| 307 |
"nécessaire de vérifier I<sun_path>." |
| 308 |
|
| 309 |
#. type: TP |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "abstract" |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, fuzzy |
| 320 |
#| msgid "" |
| 321 |
#| "I<abstract>: an abstract socket address is distinguished (from a pathname " |
| 322 |
#| "socket) by the fact that I<sun_path[0]> is a null byte (\\(aq\\e0\\" |
| 323 |
#| "(aq). The socket's address in this namespace is given by the additional " |
| 324 |
#| "bytes in I<sun_path> that are covered by the specified length of the " |
| 325 |
#| "address structure. (Null bytes in the name have no special " |
| 326 |
#| "significance.) The name has no connection with filesystem pathnames. " |
| 327 |
#| "When the address of an abstract socket is returned, the returned " |
| 328 |
#| "I<addrlen> is greater than I<sizeof(sa_family_t)> (i.e., greater than 2), " |
| 329 |
#| "and the name of the socket is contained in the first I<(addrlen - " |
| 330 |
#| "sizeof(sa_family_t))> bytes of I<sun_path>." |
| 331 |
msgid "" |
| 332 |
"an abstract socket address is distinguished (from a pathname socket) by the " |
| 333 |
"fact that I<sun_path[0]> is a null byte (\\[aq]\\[rs]0\\[aq]). The socket's " |
| 334 |
"address in this namespace is given by the additional bytes in I<sun_path> " |
| 335 |
"that are covered by the specified length of the address structure. (Null " |
| 336 |
"bytes in the name have no special significance.) The name has no connection " |
| 337 |
"with filesystem pathnames. When the address of an abstract socket is " |
| 338 |
"returned, the returned I<addrlen> is greater than I<sizeof(sa_family_t)> " |
| 339 |
"(i.e., greater than 2), and the name of the socket is contained in the first " |
| 340 |
"I<(addrlen - sizeof(sa_family_t))> bytes of I<sun_path>." |
| 341 |
msgstr "" |
| 342 |
"I<abstrait> : une adresse de socket abstrait se distingue d’un socket de " |
| 343 |
"chemin par le fait que I<sun_path[0]> est un octet NULL (« \\e0 »). " |
| 344 |
"L'adresse du socket dans cet espace de noms est donnée par le reste des " |
| 345 |
"octets dans I<sun_path> qui sont enrobés dans la longueur indiquée de la " |
| 346 |
"structure d'adresse. (Les octets NULL dans le nom n'ont pas de signification " |
| 347 |
"particulière.) Le nom n'a aucun rapport avec les chemins d'accès de systèmes " |
| 348 |
"de fichiers. Lorsque l'adresse d'un socket abstrait est obtenue, " |
| 349 |
"l'I<addrlen> obtenue est plus grande que I<sizeof(sa_family_t)> (c'est-à-" |
| 350 |
"dire plus grande que 2), et le nom du socket est contenu dans les premiers " |
| 351 |
"bits I<(addrlen\\ -\\ sizeof(sa_family_t))> de I<sun_path>." |
| 352 |
|
| 353 |
#. type: SS |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "Pathname sockets" |
| 358 |
msgstr "Sockets chemin d’accès" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"When binding a socket to a pathname, a few rules should be observed for " |
| 365 |
"maximum portability and ease of coding:" |
| 366 |
msgstr "" |
| 367 |
"Lors de la liaison d’un socket à un chemin, quelques règles doivent être " |
| 368 |
"observées pour une portabilité maximale et une facilité de codage :" |
| 369 |
|
| 370 |
#. type: IP |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "\\[bu]" |
| 375 |
msgstr "-" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
msgid "The pathname in I<sun_path> should be null-terminated." |
| 381 |
msgstr "Le chemin dans I<sun_path> doit être terminé par un octet NULL ;" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"The length of the pathname, including the terminating null byte, should not " |
| 388 |
"exceed the size of I<sun_path>." |
| 389 |
msgstr "" |
| 390 |
"La taille du chemin, y compris l’octet NULL final, ne doit pas excéder la " |
| 391 |
"taille de I<sun_path> ;" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 395 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 396 |
msgid "" |
| 397 |
"The I<addrlen> argument that describes the enclosing I<sockaddr_un> " |
| 398 |
"structure should have a value of at least:" |
| 399 |
msgstr "" |
| 400 |
"L’argument I<addrlen> décrivant la structure enfermant I<sockaddr_un> doit " |
| 401 |
"avoir une valeur d’au moins :" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, fuzzy, no-wrap |
| 407 |
#| msgid " offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 408 |
msgid "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 409 |
msgstr " offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 410 |
|
| 411 |
#. type: Plain text |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
msgid "" |
| 415 |
"or, more simply, I<addrlen> can be specified as I<sizeof(struct " |
| 416 |
"sockaddr_un)>." |
| 417 |
msgstr "" |
| 418 |
"ou, plus simplement, I<addrlen> peut être indiqué comme I<sizeof(struct\\ " |
| 419 |
"sockaddr_un)>." |
| 420 |
|
| 421 |
#. Linux does this, including for the case where the supplied path |
| 422 |
#. is 108 bytes |
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"There is some variation in how implementations handle UNIX domain socket " |
| 428 |
"addresses that do not follow the above rules. For example, some (but not " |
| 429 |
"all) implementations append a null terminator if none is present in the " |
| 430 |
"supplied I<sun_path>." |
| 431 |
msgstr "" |
| 432 |
"Il y a quelques variations dans la façon dont les implémentations gèrent les " |
| 433 |
"adresses de socket de domaine UNIX qui ne suivent pas les règles ci-" |
| 434 |
"dessus.Par exemple, quelques implémentations (mais pas toutes) ajoutent un " |
| 435 |
"octet NULL final si aucun n’est présent dans le I<sun_path> fourni." |
| 436 |
|
| 437 |
#. HP-UX |
| 438 |
#. Modern BSDs generally have 104, Tru64 and AIX have 104, |
| 439 |
#. Solaris and Irix have 108 |
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"When coding portable applications, keep in mind that some implementations " |
| 445 |
"have I<sun_path> as short as 92 bytes." |
| 446 |
msgstr "" |
| 447 |
"Lors du codage d’applications portables, il faut penser que certaines " |
| 448 |
"implémentations ont un I<sun_path> aussi court que 92 octets." |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"Various system calls (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), " |
| 455 |
"B<getpeername>(2)) return socket address structures. When applied to UNIX " |
| 456 |
"domain sockets, the value-result I<addrlen> argument supplied to the call " |
| 457 |
"should be initialized as above. Upon return, the argument is set to " |
| 458 |
"indicate the I<actual> size of the address structure. The caller should " |
| 459 |
"check the value returned in this argument: if the output value exceeds the " |
| 460 |
"input value, then there is no guarantee that a null terminator is present in " |
| 461 |
"I<sun_path>. (See BUGS.)" |
| 462 |
msgstr "" |
| 463 |
"Divers appels système (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), " |
| 464 |
"B<getpeername>(2)) renvoient les structures d’adresse de socket. Lorsque " |
| 465 |
"appliqué à des sockets de domaine UNIX, l’argument « value-result » " |
| 466 |
"I<addrlen> fourni à l’appel devrait être initialisé comme ci-dessus. Au " |
| 467 |
"renvoi, l’argument est réglé pour indiquer la taille I<réelle> de la " |
| 468 |
"structure d’adresse. L’appelant devrait vérifier la valeur renvoyée dans cet " |
| 469 |
"argument. Si la valeur de sortie excède la valeur d’entrée, alors il n’y a " |
| 470 |
"aucune garantie qu’un octet NULL final soit présent dans I<sun_path>. " |
| 471 |
"(Consultez BOGUES.)" |
| 472 |
|
| 473 |
#. type: SS |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "Pathname socket ownership and permissions" |
| 478 |
msgstr "Permissions et appartenance des sockets chemin d’accès" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"In the Linux implementation, pathname sockets honor the permissions of the " |
| 485 |
"directory they are in. Creation of a new socket fails if the process does " |
| 486 |
"not have write and search (execute) permission on the directory in which the " |
| 487 |
"socket is created." |
| 488 |
msgstr "" |
| 489 |
"Dans l’implémentation de Linux, les sockets chemin d'accès respectent les " |
| 490 |
"permissions du répertoire dans lequel ils sont. La création d’un nouveau " |
| 491 |
"socket échoue si le processus n’a pas les permissions d’écriture et de " |
| 492 |
"recherche (exécution) dans le répertoire où le socket est créé." |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"On Linux, connecting to a stream socket object requires write permission on " |
| 499 |
"that socket; sending a datagram to a datagram socket likewise requires write " |
| 500 |
"permission on that socket. POSIX does not make any statement about the " |
| 501 |
"effect of the permissions on a socket file, and on some systems (e.g., older " |
| 502 |
"BSDs), the socket permissions are ignored. Portable programs should not " |
| 503 |
"rely on this feature for security." |
| 504 |
msgstr "" |
| 505 |
"Dans Linux, la connexion à un objet de socket flux nécessite la permission " |
| 506 |
"en écriture sur ce socket. De même, l’envoi d’un datagramme à un socket " |
| 507 |
"datagramme nécessite la permission en écriture sur ce socket. POSIX ne fait " |
| 508 |
"aucune déclaration sur les effets des permissions sur un fichier de socket, " |
| 509 |
"et sur certains systèmes (par exemple, les BSD anciens) les permissions de " |
| 510 |
"socket sont ignorées. Les programmes portables ne devraient pas se fier à " |
| 511 |
"cette fonctionnalité pour la sécurité." |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
msgid "" |
| 517 |
"When creating a new socket, the owner and group of the socket file are set " |
| 518 |
"according to the usual rules. The socket file has all permissions enabled, " |
| 519 |
"other than those that are turned off by the process B<umask>(2)." |
| 520 |
msgstr "" |
| 521 |
"Lors de la création d’un nouveau socket, le propriétaire et le groupe d’un " |
| 522 |
"fichier de socket sont définis selon les règles habituelles. Le fichier de " |
| 523 |
"socket a toutes les permissions activées, autres que celles désactivées par " |
| 524 |
"le processus B<umask>(2)." |
| 525 |
|
| 526 |
#. However, fchown() and fchmod() do not seem to have an effect |
| 527 |
#. type: Plain text |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
msgid "" |
| 531 |
"The owner, group, and permissions of a pathname socket can be changed (using " |
| 532 |
"B<chown>(2) and B<chmod>(2))." |
| 533 |
msgstr "" |
| 534 |
"Le propriétaire, le groupe et les permissions d’un socket chemin d'accès " |
| 535 |
"peuvent être modifiés (avec B<chown>(2) et B<chmod>(2))." |
| 536 |
|
| 537 |
#. type: SS |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
#, no-wrap |
| 541 |
msgid "Abstract sockets" |
| 542 |
msgstr "Sockets abstraits" |
| 543 |
|
| 544 |
#. type: Plain text |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
msgid "" |
| 548 |
"Socket permissions have no meaning for abstract sockets: the process " |
| 549 |
"B<umask>(2) has no effect when binding an abstract socket, and changing the " |
| 550 |
"ownership and permissions of the object (via B<fchown>(2) and " |
| 551 |
"B<fchmod>(2)) has no effect on the accessibility of the socket." |
| 552 |
msgstr "" |
| 553 |
"Les permissions de socket n’ont aucun sens pour les sockets abstraits : le " |
| 554 |
"processus B<umask>(2) n’a aucun effet lors de la liaison d’un socket " |
| 555 |
"abstrait et modifier le propriétaire et les permissions de l’objet (avec " |
| 556 |
"B<fchown>(2) et B<fchmod>(2)) n’a aucun effet sur l’accessibilité du socket." |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 560 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
msgid "" |
| 562 |
"Abstract sockets automatically disappear when all open references to the " |
| 563 |
"socket are closed." |
| 564 |
msgstr "" |
| 565 |
"Les sockets abstraits disparaissent automatiquement quand toutes les " |
| 566 |
"références de socket ouvertes sont refermées." |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
msgid "The abstract socket namespace is a nonportable Linux extension." |
| 572 |
msgstr "" |
| 573 |
"L’espace de noms de sockets abstraits est une extension non portable de " |
| 574 |
"Linux." |
| 575 |
|
| 576 |
#. type: SS |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
#, no-wrap |
| 580 |
msgid "Socket options" |
| 581 |
msgstr "Options de socket" |
| 582 |
|
| 583 |
#. type: Plain text |
| 584 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 585 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 586 |
msgid "" |
| 587 |
"For historical reasons, these socket options are specified with a " |
| 588 |
"B<SOL_SOCKET> type even though they are B<AF_UNIX> specific. They can be " |
| 589 |
"set with B<setsockopt>(2) and read with B<getsockopt>(2) by specifying " |
| 590 |
"B<SOL_SOCKET> as the socket family." |
| 591 |
msgstr "" |
| 592 |
"Pour des raisons historiques, les options de ces sockets sont indiquées avec " |
| 593 |
"un type B<SOL_SOCKET> même si elles sont spécifiques à B<AF_UNIX>. Elles " |
| 594 |
"peuvent être définies avec B<setsockopt>(2) et lues avec B<getsockopt>(2) en " |
| 595 |
"indiquant B<SOL_SOCKET> comme famille de sockets." |
| 596 |
|
| 597 |
#. type: TP |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "B<SO_PASSCRED>" |
| 602 |
msgstr "B<SO_PASSCRED>" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "" |
| 608 |
"Enabling this socket option causes receipt of the credentials of the sending " |
| 609 |
"process in an B<SCM_CREDENTIALS ancillary> message in each subsequently " |
| 610 |
"received message. The returned credentials are those specified by the " |
| 611 |
"sender using B<SCM_CREDENTIALS>, or a default that includes the sender's " |
| 612 |
"PID, real user ID, and real group ID, if the sender did not specify " |
| 613 |
"B<SCM_CREDENTIALS> ancillary data." |
| 614 |
msgstr "" |
| 615 |
"Activer cette option de socket provoque la réception des accréditations du " |
| 616 |
"processus émetteur dans un message B<SCM_CREDENTIALS annexe> dans chaque " |
| 617 |
"message reçu ultérieur. Les accréditations renvoyées sont celles indiquées " |
| 618 |
"par l’émetteur en utilisant B<SCM_CREDENTIALS> ou celles par défaut qui " |
| 619 |
"incluent le PID, l’ID utilisateur réel et l’ID groupe réel de l’émetteur si " |
| 620 |
"celui-ci ne précise pas les données auxiliaires B<SCM_CREDENTIALS>." |
| 621 |
|
| 622 |
#. type: Plain text |
| 623 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 624 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 625 |
msgid "" |
| 626 |
"When this option is set and the socket is not yet connected, a unique name " |
| 627 |
"in the abstract namespace will be generated automatically." |
| 628 |
msgstr "" |
| 629 |
"Lorsque cette option est active et le socket non encore connecté, un nom " |
| 630 |
"unique dans l'espace de noms abstrait sera généré automatiquement." |
| 631 |
|
| 632 |
#. type: Plain text |
| 633 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 634 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 635 |
msgid "" |
| 636 |
"The value given as an argument to B<setsockopt>(2) and returned as the " |
| 637 |
"result of B<getsockopt>(2) is an integer boolean flag." |
| 638 |
msgstr "" |
| 639 |
"La valeur donnée comme argument pour B<setsockopt>(2) et renvoyée comme " |
| 640 |
"résultat de B<getsockopt>(2) est un indicateur booléen entier." |
| 641 |
|
| 642 |
#. type: TP |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
#, no-wrap |
| 646 |
msgid "B<SO_PASSSEC>" |
| 647 |
msgstr "B<SO_PASSSEC>" |
| 648 |
|
| 649 |
#. type: Plain text |
| 650 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 651 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 652 |
msgid "" |
| 653 |
"Enables receiving of the SELinux security label of the peer socket in an " |
| 654 |
"ancillary message of type B<SCM_SECURITY> (see below)." |
| 655 |
msgstr "" |
| 656 |
"Activer la réception de l’étiquette de sécurité SELinux du socket pair dans " |
| 657 |
"un message annexe de type B<SCM_SECURITY> (voir ci-dessous)." |
| 658 |
|
| 659 |
#. commit 877ce7c1b3afd69a9b1caeb1b9964c992641f52a |
| 660 |
#. commit 37a9a8df8ce9de6ea73349c9ac8bdf6ba4ec4f70 |
| 661 |
#. type: Plain text |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
msgid "" |
| 665 |
"The B<SO_PASSSEC> option is supported for UNIX domain datagram sockets since " |
| 666 |
"Linux 2.6.18; support for UNIX domain stream sockets was added in Linux 4.2." |
| 667 |
msgstr "" |
| 668 |
"L’option B<SO_PASSSEC> est gérée par les sockets datagramme de domaine UNIX " |
| 669 |
"depuis Linux 2.6.18. La prise en charge pour les sockets flux de domaine " |
| 670 |
"UNIX a été ajoutée dans Linux 4.2." |
| 671 |
|
| 672 |
#. type: TP |
| 673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 674 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 675 |
#, no-wrap |
| 676 |
msgid "B<SO_PEEK_OFF>" |
| 677 |
msgstr "B<SO_PEEK_OFF>" |
| 678 |
|
| 679 |
#. type: Plain text |
| 680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 681 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
msgid "See B<socket>(7)." |
| 683 |
msgstr "Consulter B<socket>(7)." |
| 684 |
|
| 685 |
#. type: TP |
| 686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 687 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
#, no-wrap |
| 689 |
msgid "B<SO_PEERCRED>" |
| 690 |
msgstr "B<SO_PEERCRED>" |
| 691 |
|
| 692 |
#. type: Plain text |
| 693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 694 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 695 |
#, fuzzy |
| 696 |
#| msgid "" |
| 697 |
#| "This read-only socket option returns the credentials of the peer process " |
| 698 |
#| "connected to this socket. The returned credentials are those that were " |
| 699 |
#| "in effect at the time of the call to B<connect>(2) or B<socketpair>(2)." |
| 700 |
msgid "" |
| 701 |
"This read-only socket option returns the credentials of the peer process " |
| 702 |
"connected to this socket. The returned credentials are those that were in " |
| 703 |
"effect at the time of the call to B<connect>(2), B<listen>(2), or " |
| 704 |
"B<socketpair>(2)." |
| 705 |
msgstr "" |
| 706 |
"Cette option de socket en lecture exclusivement renvoie les accréditations " |
| 707 |
"du processus pair connecté à ce socket. Les accréditations renvoyées sont " |
| 708 |
"celles effectives au moment de l’appel à B<connect>(2) ou B<socketpair>(2)." |
| 709 |
|
| 710 |
#. type: Plain text |
| 711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 712 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 713 |
msgid "" |
| 714 |
"The argument to B<getsockopt>(2) is a pointer to a I<ucred> structure; " |
| 715 |
"define the B<_GNU_SOURCE> feature test macro to obtain the definition of " |
| 716 |
"that structure from I<E<lt>sys/socket.hE<gt>>." |
| 717 |
msgstr "" |
| 718 |
"L’argument de B<getsockopt>(2) est un pointeur vers une structure I<ucred>. " |
| 719 |
"Est définie la macro de test de fonctionnalité B<_GNU_SOURCE> pour obtenir " |
| 720 |
"la définition de cette structure à partir de I<E<lt>sys/socket.hE<gt>>." |
| 721 |
|
| 722 |
#. type: Plain text |
| 723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 724 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 725 |
msgid "" |
| 726 |
"The use of this option is possible only for connected B<AF_UNIX> stream " |
| 727 |
"sockets and for B<AF_UNIX> stream and datagram socket pairs created using " |
| 728 |
"B<socketpair>(2)." |
| 729 |
msgstr "" |
| 730 |
"L’utilisation de cette option est possible seulement pour les sockets flux " |
| 731 |
"B<AF_UNIX> connectés et pour les pairs de sockets flux et datagramme " |
| 732 |
"B<AF_UNIX> créés en utilisant B<socketpair>(2)." |
| 733 |
|
| 734 |
#. type: SS |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
#, no-wrap |
| 738 |
msgid "Autobind feature" |
| 739 |
msgstr "Fonctionnalité d'autolien (« autobind »)" |
| 740 |
|
| 741 |
#. i.e., sizeof(short) |
| 742 |
#. type: Plain text |
| 743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 745 |
#, fuzzy |
| 746 |
#| msgid "" |
| 747 |
#| "If a B<bind>(2) call specifies I<addrlen> as I<sizeof(sa_family_t)>, or " |
| 748 |
#| "the B<SO_PASSCRED> socket option was specified for a socket that was not " |
| 749 |
#| "explicitly bound to an address, then the socket is autobound to an " |
| 750 |
#| "abstract address. The address consists of a null byte followed by 5 " |
| 751 |
#| "bytes in the character set I<[0-9a-f]>. Thus, there is a limit of 2^20 " |
| 752 |
#| "autobind addresses. (From Linux 2.1.15, when the autobind feature was " |
| 753 |
#| "added, 8 bytes were used, and the limit was thus 2^32 autobind " |
| 754 |
#| "addresses. The change to 5 bytes came in Linux 2.3.15.)" |
| 755 |
msgid "" |
| 756 |
"If a B<bind>(2) call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the " |
| 757 |
"B<SO_PASSCRED> socket option was specified for a socket that was not " |
| 758 |
"explicitly bound to an address, then the socket is autobound to an abstract " |
| 759 |
"address. The address consists of a null byte followed by 5 bytes in the " |
| 760 |
"character set I<[0-9a-f]>. Thus, there is a limit of 2\\[ha]20 autobind " |
| 761 |
"addresses. (From Linux 2.1.15, when the autobind feature was added, 8 bytes " |
| 762 |
"were used, and the limit was thus 2\\[ha]32 autobind addresses. The change " |
| 763 |
"to 5 bytes came in Linux 2.3.15.)" |
| 764 |
msgstr "" |
| 765 |
"Si un appel B<bind>(2) indique I<addrlen> comme I<sizeof(sa_family_t)>, ou " |
| 766 |
"si l'option de socket B<SO_PASSCRED> était indiquée pour un socket qui " |
| 767 |
"n'était pas lié explicitement à une adresse, alors le socket est autolié à " |
| 768 |
"une adresse abstraite. L'adresse est constituée d'un octet NULL suivi par " |
| 769 |
"cinq octets de l'ensemble de caractères I<[0-9a-f]>. Le nombre d'adresses " |
| 770 |
"autoliées est donc limité à 2^20 (à partir de Linux 2.1.15, quand la " |
| 771 |
"fonctionnalité d'autolien a été ajoutée, huit octets étaient utilisés et le " |
| 772 |
"nombre d'adresses autoliées était donc limité à 2^32. La modification à cinq " |
| 773 |
"octets est intervenue avec Linux 2.3.15)." |
| 774 |
|
| 775 |
#. type: SS |
| 776 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 777 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 778 |
#, no-wrap |
| 779 |
msgid "Sockets API" |
| 780 |
msgstr "API des sockets" |
| 781 |
|
| 782 |
#. type: Plain text |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
msgid "" |
| 786 |
"The following paragraphs describe domain-specific details and unsupported " |
| 787 |
"features of the sockets API for UNIX domain sockets on Linux." |
| 788 |
msgstr "" |
| 789 |
"Les paragraphes suivants décrivent des détails spécifiques aux domaines et " |
| 790 |
"des fonctionnalités de l'API des sockets de domaine UNIX non prises en " |
| 791 |
"charge sous Linux." |
| 792 |
|
| 793 |
#. type: Plain text |
| 794 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 795 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 796 |
msgid "" |
| 797 |
"UNIX domain sockets do not support the transmission of out-of-band data (the " |
| 798 |
"B<MSG_OOB> flag for B<send>(2) and B<recv>(2))." |
| 799 |
msgstr "" |
| 800 |
"Les sockets de domaine UNIX ne prennent pas en charge la transmission de " |
| 801 |
"données hors-bande (l'indicateur B<MSG_OOB> de B<send>(2) et B<recv>(2))." |
| 802 |
|
| 803 |
#. type: Plain text |
| 804 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 805 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 806 |
msgid "" |
| 807 |
"The B<send>(2) B<MSG_MORE> flag is not supported by UNIX domain sockets." |
| 808 |
msgstr "" |
| 809 |
"L'indicateur B<MSG_MORE> de B<send>(2) n'est pas pris en charge sur les " |
| 810 |
"sockets de domaine UNIX." |
| 811 |
|
| 812 |
#. commit 9f6f9af7694ede6314bed281eec74d588ba9474f |
| 813 |
#. type: Plain text |
| 814 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 815 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 816 |
msgid "" |
| 817 |
"Before Linux 3.4, the use of B<MSG_TRUNC> in the I<flags> argument of " |
| 818 |
"B<recv>(2) was not supported by UNIX domain sockets." |
| 819 |
msgstr "" |
| 820 |
"Avant Linux 3.4, l'utilisation de B<MSG_TRUNC> dans le paramètre I<flags> de " |
| 821 |
"B<recv>(2) n'était pas prise en charge par les sockets de domaine UNIX." |
| 822 |
|
| 823 |
#. type: Plain text |
| 824 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 825 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 826 |
msgid "" |
| 827 |
"The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, " |
| 828 |
"but the B<SO_RCVBUF> option does not. For datagram sockets, the " |
| 829 |
"B<SO_SNDBUF> value imposes an upper limit on the size of outgoing " |
| 830 |
"datagrams. This limit is calculated as the doubled (see B<socket>(7)) " |
| 831 |
"option value less 32 bytes used for overhead." |
| 832 |
msgstr "" |
| 833 |
"L'option B<SO_SNDBUF> de socket a un effet pour les sockets de domaine UNIX, " |
| 834 |
"mais l’option B<SO_RCVBUF> n'en a pas. Pour les sockets datagramme, la " |
| 835 |
"valeur B<SO_SNDBUF> impose une limite supérieure à la taille des datagrammes " |
| 836 |
"sortants. Cette limite est calculée comme le double de la valeur de " |
| 837 |
"l'option, moins 32 octets utilisés par le surdébit." |
| 838 |
|
| 839 |
#. type: SS |
| 840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 841 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
#, no-wrap |
| 843 |
msgid "Ancillary messages" |
| 844 |
msgstr "Messages annexes" |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 848 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 849 |
msgid "" |
| 850 |
"Ancillary data is sent and received using B<sendmsg>(2) and B<recvmsg>(2). " |
| 851 |
"For historical reasons, the ancillary message types listed below are " |
| 852 |
"specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> " |
| 853 |
"specific. To send them, set the I<cmsg_level> field of the struct " |
| 854 |
"I<cmsghdr> to B<SOL_SOCKET> and the I<cmsg_type> field to the type. For " |
| 855 |
"more information, see B<cmsg>(3)." |
| 856 |
msgstr "" |
| 857 |
"Les données annexes sont envoyées et reçues en utilisant B<sendmsg>(2) et " |
| 858 |
"B<recvmsg>(2). Pour des raisons historiques, les messages annexes listés ci-" |
| 859 |
"dessous sont indiqués avec un type B<SOL_SOCKET> même s'ils sont spécifiques " |
| 860 |
"B<AF_UNIX>. Pour les envoyer, définissez le champ I<cmsg_level> de la " |
| 861 |
"structure I<cmsghdr> à B<SOL_SOCKET> et le champ I<cmsg_type> au type. Pour " |
| 862 |
"plus de détails, consultez B<cmsg>(3)." |
| 863 |
|
| 864 |
#. type: TP |
| 865 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 866 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 867 |
#, no-wrap |
| 868 |
msgid "B<SCM_RIGHTS>" |
| 869 |
msgstr "B<SCM_RIGHTS>" |
| 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 "" |
| 875 |
"Send or receive a set of open file descriptors from another process. The " |
| 876 |
"data portion contains an integer array of the file descriptors." |
| 877 |
msgstr "" |
| 878 |
"Envoyer ou recevoir un jeu de descripteurs de fichier ouverts d’un autre " |
| 879 |
"processus. La partie données contient un tableau d’entiers de descripteurs " |
| 880 |
"de fichier." |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 884 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 885 |
msgid "" |
| 886 |
"Commonly, this operation is referred to as \"passing a file descriptor\" to " |
| 887 |
"another process. However, more accurately, what is being passed is a " |
| 888 |
"reference to an open file description (see B<open>(2)), and in the receiving " |
| 889 |
"process it is likely that a different file descriptor number will be used. " |
| 890 |
"Semantically, this operation is equivalent to duplicating (B<dup>(2)) a " |
| 891 |
"file descriptor into the file descriptor table of another process." |
| 892 |
msgstr "" |
| 893 |
"Couramment, cette opération est appelée « passage d’un descripteur de " |
| 894 |
"fichier » à un autre processus. Cependant, plus précisément, ce qui a été " |
| 895 |
"passé est une référence à une description de fichier ouvert (consultez " |
| 896 |
"B<open>(2)), et, dans le processus récepteur, il est probable qu’un numéro " |
| 897 |
"différent de descripteur de fichier sera utilisé. Sémantiquement, cette " |
| 898 |
"opération est équivalente à dupliquer (B<dup>(2)) un descripteur de fichier " |
| 899 |
"dans une table de descripteurs de fichier d’un autre processus." |
| 900 |
|
| 901 |
#. type: Plain text |
| 902 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 903 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 904 |
msgid "" |
| 905 |
"If the buffer used to receive the ancillary data containing file descriptors " |
| 906 |
"is too small (or is absent), then the ancillary data is truncated (or " |
| 907 |
"discarded) and the excess file descriptors are automatically closed in the " |
| 908 |
"receiving process." |
| 909 |
msgstr "" |
| 910 |
"Si le tampon utilisé pour recevoir les données annexes contenant les " |
| 911 |
"descripteurs de fichier est trop petit (ou absent), alors les données " |
| 912 |
"annexes sont tronquées (ou ignorées) et les descripteurs de fichier en excès " |
| 913 |
"sont automatiquement clos dans le processus récepteur." |
| 914 |
|
| 915 |
#. type: Plain text |
| 916 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 917 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 918 |
msgid "" |
| 919 |
"If the number of file descriptors received in the ancillary data would cause " |
| 920 |
"the process to exceed its B<RLIMIT_NOFILE> resource limit (see " |
| 921 |
"B<getrlimit>(2)), the excess file descriptors are automatically closed in " |
| 922 |
"the receiving process." |
| 923 |
msgstr "" |
| 924 |
"Si le nombre de descripteurs de fichier reçus dans les données annexes " |
| 925 |
"conduit le processus à dépasser la limite de ressources B<RLIMIT_NOFILE> " |
| 926 |
"(consultez B<getrlimit>(2)), les descripteurs de fichier en excès sont " |
| 927 |
"automatiquement clos dans le processus récepteur." |
| 928 |
|
| 929 |
#. commit bba14de98753cb6599a2dae0e520714b2153522d |
| 930 |
#. type: Plain text |
| 931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 932 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 933 |
#, fuzzy |
| 934 |
#| msgid "" |
| 935 |
#| "The kernel constant B<SCM_MAX_FD> defines a limit on the number of file " |
| 936 |
#| "descriptors in the array. Attempting to send an array larger than this " |
| 937 |
#| "limit causes B<sendmsg>(2) to fail with the error B<EINVAL>. " |
| 938 |
#| "B<SCM_MAX_FD> has the value 253 (or 255 in kernels before 2.6.38)." |
| 939 |
msgid "" |
| 940 |
"The kernel constant B<SCM_MAX_FD> defines a limit on the number of file " |
| 941 |
"descriptors in the array. Attempting to send an array larger than this " |
| 942 |
"limit causes B<sendmsg>(2) to fail with the error B<EINVAL>. B<SCM_MAX_FD> " |
| 943 |
"has the value 253 (or 255 before Linux 2.6.38)." |
| 944 |
msgstr "" |
| 945 |
"La constante du noyau B<SCM_MAX_FD> définit une limite au nombre de " |
| 946 |
"descripteurs de fichier dans la table. Essayer d’envoyer une table plus " |
| 947 |
"grande que cette limite provoque l’échec de B<sendmsg>(2) avec l’erreur " |
| 948 |
"B<EINVAL>. B<SCM_MAX_FD> a la valeur 253 (ou 255 dans les noyaux " |
| 949 |
"avant 2.6.38)." |
| 950 |
|
| 951 |
#. type: TP |
| 952 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 953 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 954 |
#, no-wrap |
| 955 |
msgid "B<SCM_CREDENTIALS>" |
| 956 |
msgstr "B<SCM_CREDENTIALS>" |
| 957 |
|
| 958 |
#. type: Plain text |
| 959 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 960 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 961 |
msgid "" |
| 962 |
"Send or receive UNIX credentials. This can be used for authentication. The " |
| 963 |
"credentials are passed as a I<struct ucred> ancillary message. This " |
| 964 |
"structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:" |
| 965 |
msgstr "" |
| 966 |
"Envoyer ou recevoir les accréditations UNIX. Cela peut servir à " |
| 967 |
"l'authentification. Les accréditations sont passées en message annexe " |
| 968 |
"I<struct\\ ucred>. Cette structure est définie dans I<E<lt>sys/" |
| 969 |
"socket.hE<gt>> comme ceci :" |
| 970 |
|
| 971 |
#. type: Plain text |
| 972 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 973 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 974 |
#, no-wrap |
| 975 |
msgid "" |
| 976 |
"struct ucred {\n" |
| 977 |
" pid_t pid; /* Process ID of the sending process */\n" |
| 978 |
" uid_t uid; /* User ID of the sending process */\n" |
| 979 |
" gid_t gid; /* Group ID of the sending process */\n" |
| 980 |
"};\n" |
| 981 |
msgstr "" |
| 982 |
"struct ucred {\n" |
| 983 |
" pid_t pid; /* PID processus émetteur */\n" |
| 984 |
" uid_t uid; /* UID processus émetteur */\n" |
| 985 |
" gid_t gid; /* GID processus émetteur */\n" |
| 986 |
"};\n" |
| 987 |
|
| 988 |
#. type: Plain text |
| 989 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 990 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 991 |
msgid "" |
| 992 |
"Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined " |
| 993 |
"(before including I<any> header files) in order to obtain the definition of " |
| 994 |
"this structure." |
| 995 |
msgstr "" |
| 996 |
"Depuis la glibc 2.8, la macro de test de fonctionnalités B<_GNU_SOURCE> doit " |
| 997 |
"être définie (avant d'inclure I<tout> fichier d'en\\(hytête) afin d'obtenir " |
| 998 |
"la définition de cette structure." |
| 999 |
|
| 1000 |
#. type: Plain text |
| 1001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1002 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1003 |
msgid "" |
| 1004 |
"The credentials which the sender specifies are checked by the kernel. A " |
| 1005 |
"privileged process is allowed to specify values that do not match its own. " |
| 1006 |
"The sender must specify its own process ID (unless it has the capability " |
| 1007 |
"B<CAP_SYS_ADMIN>, in which case the PID of any existing process may be " |
| 1008 |
"specified), its real user ID, effective user ID, or saved set-user-ID " |
| 1009 |
"(unless it has B<CAP_SETUID>), and its real group ID, effective group ID, or " |
| 1010 |
"saved set-group-ID (unless it has B<CAP_SETGID>)." |
| 1011 |
msgstr "" |
| 1012 |
"Les accréditations que l'émetteur envoie sont vérifiées par le noyau. Un " |
| 1013 |
"processus privilégié est autorisé à indiquer des valeurs qui ne " |
| 1014 |
"correspondent pas aux siennes. L'émetteur doit indiquer son propre PID (sauf " |
| 1015 |
"s'il a la capacité B<CAP_SYS_ADMIN>), auquel cas le PID de n’importe quel " |
| 1016 |
"processus existants peut être indiqué, son ID utilisateur réel, son ID " |
| 1017 |
"utilisateur effectif ou son « saved set-user-ID » (sauf s'il a la capacité " |
| 1018 |
"B<CAP_SETUID>) et son ID groupe réel, son ID groupe effectif ou son « saved " |
| 1019 |
"set-group-ID » (sauf s'il a la capacité B<CAP_SETGID>)." |
| 1020 |
|
| 1021 |
#. type: Plain text |
| 1022 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1023 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1024 |
msgid "" |
| 1025 |
"To receive a I<struct ucred> message, the B<SO_PASSCRED> option must be " |
| 1026 |
"enabled on the socket." |
| 1027 |
msgstr "" |
| 1028 |
"Pour recevoir un message I<struct\\ ucred>, l’option B<SO_PASSCRED> doit " |
| 1029 |
"être activée sur le socket." |
| 1030 |
|
| 1031 |
#. type: TP |
| 1032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1033 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1034 |
#, no-wrap |
| 1035 |
msgid "B<SCM_SECURITY>" |
| 1036 |
msgstr "B<SCM_SECURITY>" |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1040 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1041 |
msgid "" |
| 1042 |
"Receive the SELinux security context (the security label) of the peer " |
| 1043 |
"socket. The received ancillary data is a null-terminated string containing " |
| 1044 |
"the security context. The receiver should allocate at least B<NAME_MAX> " |
| 1045 |
"bytes in the data portion of the ancillary message for this data." |
| 1046 |
msgstr "" |
| 1047 |
"Recevoir le contexte de sécurité SELinux (l’étiquette de sécurité) du socket " |
| 1048 |
"pair. Les données annexes reçues sont une chaîne terminée par un octet NULL " |
| 1049 |
"final contenant le contexte de sécurité. Le récepteur doit au moins allouer " |
| 1050 |
"B<NAME_MAX> octets dans la partie données du message annexe pour ces données." |
| 1051 |
|
| 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 |
"To receive the security context, the B<SO_PASSSEC> option must be enabled on " |
| 1057 |
"the socket (see above)." |
| 1058 |
msgstr "" |
| 1059 |
"Pour recevoir le contexte de sécurité, l’option B<SO_PASSSEC> doit être " |
| 1060 |
"activée sur le socket (voir ci-dessus)." |
| 1061 |
|
| 1062 |
#. type: Plain text |
| 1063 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1064 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1065 |
msgid "" |
| 1066 |
"When sending ancillary data with B<sendmsg>(2), only one item of each of the " |
| 1067 |
"above types may be included in the sent message." |
| 1068 |
msgstr "" |
| 1069 |
"Lors de l’envoi des données annexes avec B<sendmsg>(2), seul un élément de " |
| 1070 |
"chacun des types ci-dessus peut être inclus dans le message envoyé." |
| 1071 |
|
| 1072 |
#. type: Plain text |
| 1073 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1074 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1075 |
msgid "" |
| 1076 |
"At least one byte of real data should be sent when sending ancillary data. " |
| 1077 |
"On Linux, this is required to successfully send ancillary data over a UNIX " |
| 1078 |
"domain stream socket. When sending ancillary data over a UNIX domain " |
| 1079 |
"datagram socket, it is not necessary on Linux to send any accompanying real " |
| 1080 |
"data. However, portable applications should also include at least one byte " |
| 1081 |
"of real data when sending ancillary data over a datagram socket." |
| 1082 |
msgstr "" |
| 1083 |
"Au moins un octet des données réelles doit être envoyé lors de l’envoi des " |
| 1084 |
"données annexes. Sur Linux, cela est nécessaire pour envoyer avec succès les " |
| 1085 |
"données annexes sur un socket flux de domaine UNIX. Lors de l’envoi des " |
| 1086 |
"données annexes à travers un socket datagramme de domaine UNIX, il n’est pas " |
| 1087 |
"nécessaire sur Linux d’envoyer en accompagnement une donnée quelconque " |
| 1088 |
"réelle. Cependant, les applications portables devraient aussi inclure au " |
| 1089 |
"moins un octet des données réelles lors de l’envoi de données annexes à " |
| 1090 |
"travers un socket datagramme." |
| 1091 |
|
| 1092 |
#. type: Plain text |
| 1093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1094 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1095 |
msgid "" |
| 1096 |
"When receiving from a stream socket, ancillary data forms a kind of barrier " |
| 1097 |
"for the received data. For example, suppose that the sender transmits as " |
| 1098 |
"follows:" |
| 1099 |
msgstr "" |
| 1100 |
"Lors de la réception à partir d’un socket flux, les données annexes forment " |
| 1101 |
"une sorte de barrière pour les données reçues. Par exemple, en supposant que " |
| 1102 |
"l’émetteur transmet comme suit :" |
| 1103 |
|
| 1104 |
#. type: IP |
| 1105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1107 |
#, no-wrap |
| 1108 |
msgid "(1)" |
| 1109 |
msgstr "(1)" |
| 1110 |
|
| 1111 |
#. type: Plain text |
| 1112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1114 |
msgid "B<sendmsg>(2) of four bytes, with no ancillary data." |
| 1115 |
msgstr "B<sendmsg>(2) de quatre octets sans données annexes." |
| 1116 |
|
| 1117 |
#. type: IP |
| 1118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1120 |
#, no-wrap |
| 1121 |
msgid "(2)" |
| 1122 |
msgstr "(2)" |
| 1123 |
|
| 1124 |
#. type: Plain text |
| 1125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1127 |
msgid "B<sendmsg>(2) of one byte, with ancillary data." |
| 1128 |
msgstr "B<sendmsg>(2) d’un octet avec données annexes." |
| 1129 |
|
| 1130 |
#. type: IP |
| 1131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1133 |
#, no-wrap |
| 1134 |
msgid "(3)" |
| 1135 |
msgstr "(3)" |
| 1136 |
|
| 1137 |
#. type: Plain text |
| 1138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1140 |
msgid "" |
| 1141 |
"Suppose that the receiver now performs B<recvmsg>(2) calls each with a " |
| 1142 |
"buffer size of 20 bytes. The first call will receive five bytes of data, " |
| 1143 |
"along with the ancillary data sent by the second B<sendmsg>(2) call. The " |
| 1144 |
"next call will receive the remaining four bytes of data." |
| 1145 |
msgstr "" |
| 1146 |
"En supposant que le récepteur réalise maintenant des appels B<recvmsg>(2) " |
| 1147 |
"avec chacun une taille de tampon de 20 octets, le premier appel recevra " |
| 1148 |
"5 octets de données, avec les données annexes envoyées par le second appel " |
| 1149 |
"B<sendmsg>(2). Le prochain appel recevra les 4 octets de données restants." |
| 1150 |
|
| 1151 |
#. type: Plain text |
| 1152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1154 |
msgid "" |
| 1155 |
"If the space allocated for receiving incoming ancillary data is too small " |
| 1156 |
"then the ancillary data is truncated to the number of headers that will fit " |
| 1157 |
"in the supplied buffer (or, in the case of an B<SCM_RIGHTS> file descriptor " |
| 1158 |
"list, the list of file descriptors may be truncated). If no buffer is " |
| 1159 |
"provided for incoming ancillary data (i.e., the I<msg_control> field of the " |
| 1160 |
"I<msghdr> structure supplied to B<recvmsg>(2) is NULL), then the incoming " |
| 1161 |
"ancillary data is discarded. In both of these cases, the B<MSG_CTRUNC> flag " |
| 1162 |
"will be set in the I<msg.msg_flags> value returned by B<recvmsg>(2)." |
| 1163 |
msgstr "" |
| 1164 |
"Si l’espace alloué pour recevoir les données annexes entrantes est trop " |
| 1165 |
"petit, alors ces données sont tronquées au nombre d’en-têtes qui peuvent " |
| 1166 |
"loger dans le tampon fourni (ou, dans le cas de liste de descripteurs de " |
| 1167 |
"fichier B<SCM_RIGHTS>, cette liste peut être tronquée). Si aucun tampon " |
| 1168 |
"n’est fourni pour les données annexes entrantes (c’est-à-dire si le champ " |
| 1169 |
"I<msg_control> de la structure I<msghdr> fourni à B<recvmsg>(2) est NULL), " |
| 1170 |
"alors les données annexes entrantes sont ignorées. Dans les deux cas, " |
| 1171 |
"l’indicateur B<MSG_CTRUNC> sera réglé dans la valeur I<msg.msg_flags> " |
| 1172 |
"renvoyée par B<recvmsg>(2)." |
| 1173 |
|
| 1174 |
#. type: SS |
| 1175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1177 |
#, no-wrap |
| 1178 |
msgid "Ioctls" |
| 1179 |
msgstr "Ioctls" |
| 1180 |
|
| 1181 |
#. type: Plain text |
| 1182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1184 |
msgid "" |
| 1185 |
"The following B<ioctl>(2) calls return information in I<value>. The " |
| 1186 |
"correct syntax is:" |
| 1187 |
msgstr "" |
| 1188 |
"Les appels B<ioctl>(2) suivants renvoient des informations dans I<value>. La " |
| 1189 |
"syntaxe correcte est\\ :" |
| 1190 |
|
| 1191 |
#. type: Plain text |
| 1192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1194 |
#, no-wrap |
| 1195 |
msgid "" |
| 1196 |
"B<int>I< value>B<;>\n" |
| 1197 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1198 |
msgstr "" |
| 1199 |
"B<int>I< value>B<;>\n" |
| 1200 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1201 |
|
| 1202 |
#. type: Plain text |
| 1203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1205 |
msgid "I<ioctl_type> can be:" |
| 1206 |
msgstr "I<ioctl_type> peut être\\ :" |
| 1207 |
|
| 1208 |
#. type: TP |
| 1209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1211 |
#, no-wrap |
| 1212 |
msgid "B<SIOCINQ>" |
| 1213 |
msgstr "B<SIOCINQ>" |
| 1214 |
|
| 1215 |
#. #-#-#-#-# archlinux: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1216 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1217 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1218 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1219 |
#. quite what userland might expect. It seems to return the number |
| 1220 |
#. of bytes allocated for buffers containing pending output. |
| 1221 |
#. That number is normally larger than the number of bytes of pending |
| 1222 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1223 |
#. and it may well change, probably best not to document this now. |
| 1224 |
#. type: Plain text |
| 1225 |
#. #-#-#-#-# debian-trixie: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1226 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1227 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1228 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1229 |
#. quite what userland might expect. It seems to return the number |
| 1230 |
#. of bytes allocated for buffers containing pending output. |
| 1231 |
#. That number is normally larger than the number of bytes of pending |
| 1232 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1233 |
#. and it may well change, probably best not to document this now. |
| 1234 |
#. type: Plain text |
| 1235 |
#. #-#-#-#-# debian-unstable: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1236 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1237 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1238 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1239 |
#. quite what userland might expect. It seems to return the number |
| 1240 |
#. of bytes allocated for buffers containing pending output. |
| 1241 |
#. That number is normally larger than the number of bytes of pending |
| 1242 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1243 |
#. and it may well change, probably best not to document this now. |
| 1244 |
#. type: Plain text |
| 1245 |
#. #-#-#-#-# fedora-44: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1246 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1247 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1248 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1249 |
#. quite what userland might expect. It seems to return the number |
| 1250 |
#. of bytes allocated for buffers containing pending output. |
| 1251 |
#. That number is normally larger than the number of bytes of pending |
| 1252 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1253 |
#. and it may well change, probably best not to document this now. |
| 1254 |
#. type: Plain text |
| 1255 |
#. #-#-#-#-# fedora-rawhide: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1256 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1257 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1258 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1259 |
#. quite what userland might expect. It seems to return the number |
| 1260 |
#. of bytes allocated for buffers containing pending output. |
| 1261 |
#. That number is normally larger than the number of bytes of pending |
| 1262 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1263 |
#. and it may well change, probably best not to document this now. |
| 1264 |
#. type: Plain text |
| 1265 |
#. #-#-#-#-# mageia-cauldron: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1266 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1267 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1268 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1269 |
#. quite what userland might expect. It seems to return the number |
| 1270 |
#. of bytes allocated for buffers containing pending output. |
| 1271 |
#. That number is normally larger than the number of bytes of pending |
| 1272 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1273 |
#. and it may well change, probably best not to document this now. |
| 1274 |
#. type: Plain text |
| 1275 |
#. #-#-#-#-# opensuse-leap-16-1: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1276 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1277 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1278 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1279 |
#. quite what userland might expect. It seems to return the number |
| 1280 |
#. of bytes allocated for buffers containing pending output. |
| 1281 |
#. That number is normally larger than the number of bytes of pending |
| 1282 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1283 |
#. and it may well change, probably best not to document this now. |
| 1284 |
#. type: Plain text |
| 1285 |
#. #-#-#-#-# opensuse-tumbleweed: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1286 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1287 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1288 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1289 |
#. quite what userland might expect. It seems to return the number |
| 1290 |
#. of bytes allocated for buffers containing pending output. |
| 1291 |
#. That number is normally larger than the number of bytes of pending |
| 1292 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1293 |
#. and it may well change, probably best not to document this now. |
| 1294 |
#. type: Plain text |
| 1295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1297 |
msgid "" |
| 1298 |
"For B<SOCK_STREAM> sockets, this call returns the number of unread bytes in " |
| 1299 |
"the receive buffer. The socket must not be in LISTEN state, otherwise an " |
| 1300 |
"error (B<EINVAL>) is returned. B<SIOCINQ> is defined in I<E<lt>linux/" |
| 1301 |
"sockios.hE<gt>>. Alternatively, you can use the synonymous B<FIONREAD>, " |
| 1302 |
"defined in I<E<lt>sys/ioctl.hE<gt>>. For B<SOCK_DGRAM> sockets, the " |
| 1303 |
"returned value is the same as for Internet domain datagram sockets; see " |
| 1304 |
"B<udp>(7)." |
| 1305 |
msgstr "" |
| 1306 |
"Pour les sockets B<SOCK_STREAM>, cet appel renvoie la quantité de données " |
| 1307 |
"non lues dans le tampon de réception. Le socket ne doit pas être dans l'état " |
| 1308 |
"LISTEN, sinon l'erreur B<EINVAL> est renvoyée. B<SIOCINQ> est défini dans " |
| 1309 |
"I<E<lt>linux/sockios.hE<gt>>. Une alternative est d'utiliser le synonyme " |
| 1310 |
"B<FIONREAD> défini dans I<E<lt>sys/ioctl.hE<gt>>. Pour les sockets " |
| 1311 |
"B<SOCK_DGRAM>, la valeur renvoyée est la même que pour les sockets " |
| 1312 |
"datagramme de domaine Internet. Consultez B<udp>(7)." |
| 1313 |
|
| 1314 |
#. type: SH |
| 1315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1317 |
#, no-wrap |
| 1318 |
msgid "ERRORS" |
| 1319 |
msgstr "ERREURS" |
| 1320 |
|
| 1321 |
#. type: TP |
| 1322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1324 |
#, no-wrap |
| 1325 |
msgid "B<EADDRINUSE>" |
| 1326 |
msgstr "B<EADDRINUSE>" |
| 1327 |
|
| 1328 |
#. type: Plain text |
| 1329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1331 |
msgid "" |
| 1332 |
"The specified local address is already in use or the filesystem socket " |
| 1333 |
"object already exists." |
| 1334 |
msgstr "" |
| 1335 |
"L'adresse locale indiquée est déjà utilisée ou l'objet de socket de système " |
| 1336 |
"de fichiers existe déjà." |
| 1337 |
|
| 1338 |
#. type: TP |
| 1339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1341 |
#, no-wrap |
| 1342 |
msgid "B<EBADF>" |
| 1343 |
msgstr "B<EBADF>" |
| 1344 |
|
| 1345 |
#. type: Plain text |
| 1346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1348 |
msgid "" |
| 1349 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1350 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1351 |
"B<SCM_RIGHTS>, above), and indicates that the file descriptor number that is " |
| 1352 |
"being sent is not valid (e.g., it is not an open file descriptor)." |
| 1353 |
msgstr "" |
| 1354 |
"Cette erreur peut survenir pour B<sendmsg>(2) lors de l’envoi d’un " |
| 1355 |
"descripteur de fichier pour des données annexes au travers d’un socket de " |
| 1356 |
"domaine UNIX (consultez la description de B<SCM_RIGHTS> ci-dessus) et " |
| 1357 |
"indique que le numéro de descripteur de fichier envoyé n’est pas valable " |
| 1358 |
"(par exemple, ce n’est pas un descripteur de fichier ouvert)." |
| 1359 |
|
| 1360 |
#. type: TP |
| 1361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1363 |
#, no-wrap |
| 1364 |
msgid "B<ECONNREFUSED>" |
| 1365 |
msgstr "B<ECONNREFUSED>" |
| 1366 |
|
| 1367 |
#. type: Plain text |
| 1368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1370 |
msgid "" |
| 1371 |
"The remote address specified by B<connect>(2) was not a listening socket. " |
| 1372 |
"This error can also occur if the target pathname is not a socket." |
| 1373 |
msgstr "" |
| 1374 |
"L'adresse distante indiquée par B<connect>(2) n'était pas un socket en " |
| 1375 |
"écoute. Cette erreur peut également se produire si le nom de chemin cible " |
| 1376 |
"n'est pas un socket." |
| 1377 |
|
| 1378 |
#. type: TP |
| 1379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1381 |
#, no-wrap |
| 1382 |
msgid "B<ECONNRESET>" |
| 1383 |
msgstr "B<ECONNRESET>" |
| 1384 |
|
| 1385 |
#. type: Plain text |
| 1386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1388 |
msgid "Remote socket was unexpectedly closed." |
| 1389 |
msgstr "Le socket distant a été fermé de manière inattendue." |
| 1390 |
|
| 1391 |
#. type: TP |
| 1392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1394 |
#, no-wrap |
| 1395 |
msgid "B<EFAULT>" |
| 1396 |
msgstr "B<EFAULT>" |
| 1397 |
|
| 1398 |
#. type: Plain text |
| 1399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1401 |
msgid "User memory address was not valid." |
| 1402 |
msgstr "Adresse mémoire utilisateur incorrecte." |
| 1403 |
|
| 1404 |
#. type: TP |
| 1405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1407 |
#, no-wrap |
| 1408 |
msgid "B<EINVAL>" |
| 1409 |
msgstr "B<EINVAL>" |
| 1410 |
|
| 1411 |
#. type: Plain text |
| 1412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1414 |
msgid "" |
| 1415 |
"Invalid argument passed. A common cause is that the value B<AF_UNIX> was " |
| 1416 |
"not specified in the I<sun_type> field of passed addresses, or the socket " |
| 1417 |
"was in an invalid state for the applied operation." |
| 1418 |
msgstr "" |
| 1419 |
"Argument passé non valable. Une cause habituelle est que la valeur de " |
| 1420 |
"B<AF_UNIX> n'était pas indiquée dans le champ I<sun_type> des adresses " |
| 1421 |
"passées ou que le socket était dans un état non valable pour l'opération " |
| 1422 |
"appliquée." |
| 1423 |
|
| 1424 |
#. type: TP |
| 1425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1427 |
#, no-wrap |
| 1428 |
msgid "B<EISCONN>" |
| 1429 |
msgstr "B<EISCONN>" |
| 1430 |
|
| 1431 |
#. type: Plain text |
| 1432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1434 |
msgid "" |
| 1435 |
"B<connect>(2) called on an already connected socket or a target address was " |
| 1436 |
"specified on a connected socket." |
| 1437 |
msgstr "" |
| 1438 |
"B<connect>(2) a été appelée sur un socket déjà connecté ou l'adresse cible a " |
| 1439 |
"été indiquée sur un socket connecté." |
| 1440 |
|
| 1441 |
#. type: TP |
| 1442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1444 |
#, no-wrap |
| 1445 |
msgid "B<ENFILE>" |
| 1446 |
msgstr "B<ENFILE>" |
| 1447 |
|
| 1448 |
#. type: Plain text |
| 1449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1451 |
msgid "" |
| 1452 |
"The system-wide limit on the total number of open files has been reached." |
| 1453 |
msgstr "" |
| 1454 |
"La limite du nombre total de fichiers ouverts pour le système entier a été " |
| 1455 |
"atteinte." |
| 1456 |
|
| 1457 |
#. type: TP |
| 1458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1460 |
#, no-wrap |
| 1461 |
msgid "B<ENOENT>" |
| 1462 |
msgstr "B<ENOENT>" |
| 1463 |
|
| 1464 |
#. type: Plain text |
| 1465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1467 |
msgid "" |
| 1468 |
"The pathname in the remote address specified to B<connect>(2) did not exist." |
| 1469 |
msgstr "" |
| 1470 |
"Le chemin de l'adresse distante indiquée à B<connect>(2) n'existait pas." |
| 1471 |
|
| 1472 |
#. type: TP |
| 1473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1475 |
#, no-wrap |
| 1476 |
msgid "B<ENOMEM>" |
| 1477 |
msgstr "B<ENOMEM>" |
| 1478 |
|
| 1479 |
#. type: Plain text |
| 1480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1482 |
msgid "Out of memory." |
| 1483 |
msgstr "Plus assez de mémoire." |
| 1484 |
|
| 1485 |
#. type: TP |
| 1486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1488 |
#, no-wrap |
| 1489 |
msgid "B<ENOTCONN>" |
| 1490 |
msgstr "B<ENOTCONN>" |
| 1491 |
|
| 1492 |
#. type: Plain text |
| 1493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1495 |
msgid "" |
| 1496 |
"Socket operation needs a target address, but the socket is not connected." |
| 1497 |
msgstr "" |
| 1498 |
"L'opération nécessite une adresse cible, mais le socket n'est pas connecté." |
| 1499 |
|
| 1500 |
#. type: TP |
| 1501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1503 |
#, no-wrap |
| 1504 |
msgid "B<EOPNOTSUPP>" |
| 1505 |
msgstr "B<EOPNOTSUPP>" |
| 1506 |
|
| 1507 |
#. type: Plain text |
| 1508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1510 |
msgid "" |
| 1511 |
"Stream operation called on non-stream oriented socket or tried to use the " |
| 1512 |
"out-of-band data option." |
| 1513 |
msgstr "" |
| 1514 |
"Opération de flux appelée sur un socket non orienté flux ou tentative " |
| 1515 |
"d'utiliser une option de données hors-bande." |
| 1516 |
|
| 1517 |
#. type: TP |
| 1518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1520 |
#, no-wrap |
| 1521 |
msgid "B<EPERM>" |
| 1522 |
msgstr "B<EPERM>" |
| 1523 |
|
| 1524 |
#. type: Plain text |
| 1525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1527 |
msgid "The sender passed invalid credentials in the I<struct ucred>." |
| 1528 |
msgstr "" |
| 1529 |
"L'émetteur a transmis des accréditations incorrectes dans I<struct\\ ucred>." |
| 1530 |
|
| 1531 |
#. type: TP |
| 1532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1534 |
#, no-wrap |
| 1535 |
msgid "B<EPIPE>" |
| 1536 |
msgstr "B<EPIPE>" |
| 1537 |
|
| 1538 |
#. type: Plain text |
| 1539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1541 |
msgid "" |
| 1542 |
"Remote socket was closed on a stream socket. If enabled, a B<SIGPIPE> is " |
| 1543 |
"sent as well. This can be avoided by passing the B<MSG_NOSIGNAL> flag to " |
| 1544 |
"B<send>(2) or B<sendmsg>(2)." |
| 1545 |
msgstr "" |
| 1546 |
"Le socket distant a été fermé à cause d’un socket flux. Si activé, un signal " |
| 1547 |
"B<SIGPIPE> est émis également. Cela peut être évité en passant l'indicateur " |
| 1548 |
"B<MSG_NOSIGNAL> dans B<send>(2) ou B<sendmsg>(2)." |
| 1549 |
|
| 1550 |
#. type: TP |
| 1551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1553 |
#, no-wrap |
| 1554 |
msgid "B<EPROTONOSUPPORT>" |
| 1555 |
msgstr "B<EPROTONOSUPPORT>" |
| 1556 |
|
| 1557 |
#. type: Plain text |
| 1558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1559 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1560 |
msgid "Passed protocol is not B<AF_UNIX>." |
| 1561 |
msgstr "Le protocole fourni n'est pas B<AF_UNIX>." |
| 1562 |
|
| 1563 |
#. type: TP |
| 1564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1566 |
#, no-wrap |
| 1567 |
msgid "B<EPROTOTYPE>" |
| 1568 |
msgstr "B<EPROTOTYPE>" |
| 1569 |
|
| 1570 |
#. type: Plain text |
| 1571 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1572 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1573 |
msgid "" |
| 1574 |
"Remote socket does not match the local socket type (B<SOCK_DGRAM> versus " |
| 1575 |
"B<SOCK_STREAM>)." |
| 1576 |
msgstr "" |
| 1577 |
"Le socket distant ne correspond pas au type de socket local (B<SOCK_DGRAM> " |
| 1578 |
"versus B<SOCK_STREAM>)" |
| 1579 |
|
| 1580 |
#. type: TP |
| 1581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1582 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1583 |
#, no-wrap |
| 1584 |
msgid "B<ESOCKTNOSUPPORT>" |
| 1585 |
msgstr "B<ESOCKTNOSUPPORT>" |
| 1586 |
|
| 1587 |
#. type: Plain text |
| 1588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1590 |
msgid "Unknown socket type." |
| 1591 |
msgstr "Type de socket inconnu." |
| 1592 |
|
| 1593 |
#. type: TP |
| 1594 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1595 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1596 |
#, no-wrap |
| 1597 |
msgid "B<ESRCH>" |
| 1598 |
msgstr "B<ESRCH>" |
| 1599 |
|
| 1600 |
#. type: Plain text |
| 1601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1602 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1603 |
msgid "" |
| 1604 |
"While sending an ancillary message containing credentials " |
| 1605 |
"(B<SCM_CREDENTIALS>), the caller specified a PID that does not match any " |
| 1606 |
"existing process." |
| 1607 |
msgstr "" |
| 1608 |
"Lors de l’envoi d’un message annexe contenant des accréditations " |
| 1609 |
"(B<SCM_CREDENTIALS>), l’appelant a indiqué un PID ne correspondant à aucun " |
| 1610 |
"processus existant." |
| 1611 |
|
| 1612 |
#. type: TP |
| 1613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1614 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1615 |
#, no-wrap |
| 1616 |
msgid "B<ETOOMANYREFS>" |
| 1617 |
msgstr "B<ETOOMANYREFS>" |
| 1618 |
|
| 1619 |
#. type: Plain text |
| 1620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1622 |
msgid "" |
| 1623 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1624 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1625 |
"B<SCM_RIGHTS>, above). It occurs if the number of \"in-flight\" file " |
| 1626 |
"descriptors exceeds the B<RLIMIT_NOFILE> resource limit and the caller does " |
| 1627 |
"not have the B<CAP_SYS_RESOURCE> capability. An in-flight file descriptor " |
| 1628 |
"is one that has been sent using B<sendmsg>(2) but has not yet been accepted " |
| 1629 |
"in the recipient process using B<recvmsg>(2)." |
| 1630 |
msgstr "" |
| 1631 |
"Cette erreur peut se produire pour B<sendmsg>(2) lors de l’envoi d’un " |
| 1632 |
"descripteur de fichier pour des données annexes à travers un socket de " |
| 1633 |
"domaine UNIX (consultez la description de B<SCM_RIGHTS>, ci-dessus). Cela se " |
| 1634 |
"produit si le nombre de descripteurs de fichier « en cours » excède la " |
| 1635 |
"limite de ressources B<RLIMIT_NOFILE> et si l’appelant n’a pas la capacité " |
| 1636 |
"B<CAP_SYS_RESOURCE>. Un descripteur de fichier en cours est un descripteur " |
| 1637 |
"qui a été envoyé en utilisant B<sendmsg>(2) mais qui n’a pas encore été " |
| 1638 |
"accepté dans le processus récepteur en utilisant B<recvmsg>(2)." |
| 1639 |
|
| 1640 |
#. commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 |
| 1641 |
#. type: Plain text |
| 1642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1644 |
msgid "" |
| 1645 |
"This error is diagnosed since mainline Linux 4.5 (and in some earlier kernel " |
| 1646 |
"versions where the fix has been backported). In earlier kernel versions, it " |
| 1647 |
"was possible to place an unlimited number of file descriptors in flight, by " |
| 1648 |
"sending each file descriptor with B<sendmsg>(2) and then closing the file " |
| 1649 |
"descriptor so that it was not accounted against the B<RLIMIT_NOFILE> " |
| 1650 |
"resource limit." |
| 1651 |
msgstr "" |
| 1652 |
"Cette erreur est décelée depuis Linux 4.5 (et dans quelques versions " |
| 1653 |
"précédentes dans lesquelles le correctif a été rétroporté). Dans les " |
| 1654 |
"versions du noyau précédentes, il était possible d’avoir un nombre illimité " |
| 1655 |
"de descripteurs de fichier en cours en envoyant chaque descripteur de " |
| 1656 |
"fichier avec B<sendmsg>(2) et ensuite en fermant le descripteur de fichier " |
| 1657 |
"de telle façon qu’il ne soit pas pris en compte pour la limite de ressources " |
| 1658 |
"B<RLIMIT_NOFILE>." |
| 1659 |
|
| 1660 |
#. type: Plain text |
| 1661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1662 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1663 |
msgid "" |
| 1664 |
"Other errors can be generated by the generic socket layer or by the " |
| 1665 |
"filesystem while generating a filesystem socket object. See the appropriate " |
| 1666 |
"manual pages for more information." |
| 1667 |
msgstr "" |
| 1668 |
"D'autres erreurs peuvent être déclenchées par la couche générique de socket " |
| 1669 |
"ou par le système de fichiers lors de la génération d’un objet socket de " |
| 1670 |
"système de fichiers. Consultez les pages de manuel correspondantes pour plus " |
| 1671 |
"de détails." |
| 1672 |
|
| 1673 |
#. type: SH |
| 1674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1675 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1676 |
#, no-wrap |
| 1677 |
msgid "VERSIONS" |
| 1678 |
msgstr "VERSIONS" |
| 1679 |
|
| 1680 |
#. type: Plain text |
| 1681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1682 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1683 |
msgid "" |
| 1684 |
"B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 " |
| 1685 |
"and should not be used in portable programs. (Some BSD-derived systems also " |
| 1686 |
"support credential passing, but the implementation details differ.)" |
| 1687 |
msgstr "" |
| 1688 |
"B<SCM_CREDENTIALS> et l'espace de noms abstrait ont été introduits avec " |
| 1689 |
"Linux 2.2 et ne doivent pas être utilisés dans des programmes portables. " |
| 1690 |
"(Certains systèmes dérivés de BSD prennent aussi en charge le passage " |
| 1691 |
"d'accréditations, mais les détails d'implémentation diffèrent)." |
| 1692 |
|
| 1693 |
#. type: SH |
| 1694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1696 |
#, no-wrap |
| 1697 |
msgid "NOTES" |
| 1698 |
msgstr "NOTES" |
| 1699 |
|
| 1700 |
#. type: Plain text |
| 1701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1703 |
msgid "" |
| 1704 |
"Binding to a socket with a filename creates a socket in the filesystem that " |
| 1705 |
"must be deleted by the caller when it is no longer needed (using " |
| 1706 |
"B<unlink>(2)). The usual UNIX close-behind semantics apply; the socket can " |
| 1707 |
"be unlinked at any time and will be finally removed from the filesystem when " |
| 1708 |
"the last reference to it is closed." |
| 1709 |
msgstr "" |
| 1710 |
"Lier un socket avec un nom de fichier crée un socket dans le système de " |
| 1711 |
"fichiers que l’appelant doit détruire lorsqu'il n'est plus utile (en " |
| 1712 |
"utilisant B<unlink>(2)). La sémantique habituelle la plus proche d’UNIX " |
| 1713 |
"s'applique\\ ; le socket peut être délié à tout moment et sera finalement " |
| 1714 |
"supprimé du système de fichiers lorsque sa dernière référence sera fermée." |
| 1715 |
|
| 1716 |
#. type: Plain text |
| 1717 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1718 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1719 |
#, fuzzy |
| 1720 |
#| msgid "" |
| 1721 |
#| "To pass file descriptors or credentials over a B<SOCK_STREAM> socket, you " |
| 1722 |
#| "must to send or receive at least one byte of nonancillary data in the " |
| 1723 |
#| "same B<sendmsg>(2) or B<recvmsg>(2) call." |
| 1724 |
msgid "" |
| 1725 |
"To pass file descriptors or credentials over a B<SOCK_STREAM> socket, you " |
| 1726 |
"must send or receive at least one byte of nonancillary data in the same " |
| 1727 |
"B<sendmsg>(2) or B<recvmsg>(2) call." |
| 1728 |
msgstr "" |
| 1729 |
"Pour passer des descripteurs de fichier ou des accréditations à travers un " |
| 1730 |
"socket B<SOCK_STREAM>, il faut envoyer ou recevoir au moins un octet de " |
| 1731 |
"données non annexes dans le même appel B<sendmsg>(2) ou B<recvmsg>(2)." |
| 1732 |
|
| 1733 |
#. type: Plain text |
| 1734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1736 |
msgid "" |
| 1737 |
"UNIX domain stream sockets do not support the notion of out-of-band data." |
| 1738 |
msgstr "" |
| 1739 |
"Les sockets flux de domaine UNIX ne prennent pas en charge la notion de " |
| 1740 |
"données hors-bande." |
| 1741 |
|
| 1742 |
#. type: SH |
| 1743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1745 |
#, no-wrap |
| 1746 |
msgid "BUGS" |
| 1747 |
msgstr "BOGUES" |
| 1748 |
|
| 1749 |
#. The behavior on Solaris is quite similar. |
| 1750 |
#. type: Plain text |
| 1751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1753 |
#, fuzzy |
| 1754 |
#| msgid "" |
| 1755 |
#| "When binding a socket to an address, Linux is one of the implementations " |
| 1756 |
#| "that appends a null terminator if none is supplied in I<sun_path>. In " |
| 1757 |
#| "most cases this is unproblematic: when the socket address is retrieved, " |
| 1758 |
#| "it will be one byte longer than that supplied when the socket was bound. " |
| 1759 |
#| "However, there is one case where confusing behavior can result: if 108 " |
| 1760 |
#| "non-null bytes are supplied when a socket is bound, then the addition of " |
| 1761 |
#| "the null terminator takes the length of the pathname beyond " |
| 1762 |
#| "I<sizeof(sun_path)>. Consequently, when retrieving the socket address " |
| 1763 |
#| "(for example, via B<accept>(2)), if the input I<addrlen> argument for the " |
| 1764 |
#| "retrieving call is specified as I<sizeof(struct sockaddr_un)>, then the " |
| 1765 |
#| "returned address structure I<won't> have a null terminator in I<sun_path>." |
| 1766 |
msgid "" |
| 1767 |
"When binding a socket to an address, Linux is one of the implementations " |
| 1768 |
"that append a null terminator if none is supplied in I<sun_path>. In most " |
| 1769 |
"cases this is unproblematic: when the socket address is retrieved, it will " |
| 1770 |
"be one byte longer than that supplied when the socket was bound. However, " |
| 1771 |
"there is one case where confusing behavior can result: if 108 non-null bytes " |
| 1772 |
"are supplied when a socket is bound, then the addition of the null " |
| 1773 |
"terminator takes the length of the pathname beyond I<sizeof(sun_path)>. " |
| 1774 |
"Consequently, when retrieving the socket address (for example, via " |
| 1775 |
"B<accept>(2)), if the input I<addrlen> argument for the retrieving call is " |
| 1776 |
"specified as I<sizeof(struct sockaddr_un)>, then the returned address " |
| 1777 |
"structure I<won't> have a null terminator in I<sun_path>." |
| 1778 |
msgstr "" |
| 1779 |
"Lors de la liaison d’un socket à une adresse, Linux est une des " |
| 1780 |
"implémentations qui ajoute un octet NULL final si aucun n’est fourni dans " |
| 1781 |
"I<sun_path>. Dans la plupart des cas cela ne pose aucun problème : quand " |
| 1782 |
"l’adresse du socket est récupérée, elle sera plus grande d’un octet que " |
| 1783 |
"celle fournie lors de la liaison du socket. Cependant, il existe un cas où " |
| 1784 |
"un comportement déroutant peut se produire : si 108 octets non NULL sont " |
| 1785 |
"fournis quand un socket est lié, alors l’ajout de l’octet NULL final " |
| 1786 |
"incorpore la longueur du nom de chemin au-delà de I<sizeof(sun_path)>. Par " |
| 1787 |
"conséquent, lors de la récupération de l’adresse du socket (par exemple, à " |
| 1788 |
"l’aide de B<accept>(2)), si l’argument I<addrlen> de l’entrée pour l’appel " |
| 1789 |
"de récupération est indiqué comme I<sizeof(struct\\ sockaddr_un)>, alors la " |
| 1790 |
"structure d’adresse renvoyée I<n’aura pas> d’octet NULL final dans " |
| 1791 |
"I<sun_path>." |
| 1792 |
|
| 1793 |
#. i.e., traditional BSD |
| 1794 |
#. type: Plain text |
| 1795 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1796 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1797 |
msgid "" |
| 1798 |
"In addition, some implementations don't require a null terminator when " |
| 1799 |
"binding a socket (the I<addrlen> argument is used to determine the length of " |
| 1800 |
"I<sun_path>) and when the socket address is retrieved on these " |
| 1801 |
"implementations, there is no null terminator in I<sun_path>." |
| 1802 |
msgstr "" |
| 1803 |
"De plus, quelques implémentations n’ont pas besoin d’octet NULL final lors " |
| 1804 |
"de liaison d’un socket (l’argument I<addrlen> est utilisé pour déterminer la " |
| 1805 |
"taille de I<sun_path>) et lorsqu’une adresse de socket est récupérée sur ces " |
| 1806 |
"implémentations, il n’y a pas d’octet NULL final dans I<sun_path>." |
| 1807 |
|
| 1808 |
#. type: Plain text |
| 1809 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1810 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1811 |
msgid "" |
| 1812 |
"Applications that retrieve socket addresses can (portably) code to handle " |
| 1813 |
"the possibility that there is no null terminator in I<sun_path> by " |
| 1814 |
"respecting the fact that the number of valid bytes in the pathname is:" |
| 1815 |
msgstr "" |
| 1816 |
"Les applications qui récupèrent les adresses de socket peuvent coder (de " |
| 1817 |
"manière portable) pour gérer la possibilité d’absence d’octet NULL final " |
| 1818 |
"dans I<sun_path> en respectant le fait que le nombre d’octets autorisés dans " |
| 1819 |
"le nom de chemin est :" |
| 1820 |
|
| 1821 |
# |
| 1822 |
#. type: Plain text |
| 1823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1824 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1825 |
#, fuzzy, no-wrap |
| 1826 |
#| msgid " strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1827 |
msgid "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1828 |
msgstr " strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1829 |
|
| 1830 |
#. type: Plain text |
| 1831 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1832 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1833 |
msgid "" |
| 1834 |
"Alternatively, an application can retrieve the socket address by allocating " |
| 1835 |
"a buffer of size I<sizeof(struct sockaddr_un)+1> that is zeroed out before " |
| 1836 |
"the retrieval. The retrieving call can specify I<addrlen> as " |
| 1837 |
"I<sizeof(struct sockaddr_un)>, and the extra zero byte ensures that there " |
| 1838 |
"will be a null terminator for the string returned in I<sun_path>:" |
| 1839 |
msgstr "" |
| 1840 |
"Sinon, une application peut récupérer l’adresse de socket en allouant un " |
| 1841 |
"tampon de taille I<sizeof(struct\\ sockaddr_un)+1> mis à zéro avant la " |
| 1842 |
"récupération. L’appel de récupération peut préciser I<addrlen> comme " |
| 1843 |
"I<sizeof(struct\\ sockaddr_un)> et l’octet zéro supplémentaire assure qu’il " |
| 1844 |
"y aura un octet NULL final dans la chaîne renvoyée dans I<sun_path> :" |
| 1845 |
|
| 1846 |
#. type: Plain text |
| 1847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1848 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1849 |
#, fuzzy, no-wrap |
| 1850 |
#| msgid "" |
| 1851 |
#| "addrlen = sizeof(struct sockaddr_un);\n" |
| 1852 |
#| "addrp = malloc(addrlen + 1);\n" |
| 1853 |
#| "if (addrp == NULL)\n" |
| 1854 |
#| " /* Handle error */ ;\n" |
| 1855 |
#| "memset(addrp, 0, addrlen + 1);\n" |
| 1856 |
msgid "" |
| 1857 |
"void *addrp;\n" |
| 1858 |
"\\&\n" |
| 1859 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1860 |
"addrp = malloc(addrlen + 1);\n" |
| 1861 |
"if (addrp == NULL)\n" |
| 1862 |
" /* Handle error */ ;\n" |
| 1863 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1864 |
"\\&\n" |
| 1865 |
"if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n" |
| 1866 |
" /* handle error */ ;\n" |
| 1867 |
"\\&\n" |
| 1868 |
"printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n" |
| 1869 |
msgstr "" |
| 1870 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1871 |
"addrp = malloc(addrlen + 1);\n" |
| 1872 |
"if (addrp == NULL)\n" |
| 1873 |
" /* Gérer l’erreur */ ;\n" |
| 1874 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1875 |
|
| 1876 |
#. type: Plain text |
| 1877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1878 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1879 |
msgid "" |
| 1880 |
"This sort of messiness can be avoided if it is guaranteed that the " |
| 1881 |
"applications that I<create> pathname sockets follow the rules outlined above " |
| 1882 |
"under I<Pathname sockets>." |
| 1883 |
msgstr "" |
| 1884 |
"Cette sorte de désordre peut être évité s’il est garanti que les " |
| 1885 |
"applications qui I<créent> les sockets de chemin suivent les règles exposées " |
| 1886 |
"ci-dessus dans I<Sockets chemin d’accès>." |
| 1887 |
|
| 1888 |
#. type: SH |
| 1889 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1890 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1891 |
#, no-wrap |
| 1892 |
msgid "EXAMPLES" |
| 1893 |
msgstr "EXEMPLES" |
| 1894 |
|
| 1895 |
#. type: Plain text |
| 1896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1897 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1898 |
msgid "" |
| 1899 |
"The following code demonstrates the use of sequenced-packet sockets for " |
| 1900 |
"local interprocess communication. It consists of two programs. The server " |
| 1901 |
"program waits for a connection from the client program. The client sends " |
| 1902 |
"each of its command-line arguments in separate messages. The server treats " |
| 1903 |
"the incoming messages as integers and adds them up. The client sends the " |
| 1904 |
"command string \"END\". The server sends back a message containing the sum " |
| 1905 |
"of the client's integers. The client prints the sum and exits. The server " |
| 1906 |
"waits for the next client to connect. To stop the server, the client is " |
| 1907 |
"called with the command-line argument \"DOWN\"." |
| 1908 |
msgstr "" |
| 1909 |
"Le code suivant démontre l’utilisation de sockets de paquets ordonnés pour " |
| 1910 |
"une communication inter-processus locale. Il est constitué de deux " |
| 1911 |
"programmes. Le programme serveur attend une connexion d’un programme client. " |
| 1912 |
"Le client envoie chacun de ses arguments de ligne de commande dans des " |
| 1913 |
"messages séparés. Le serveur traite les messages entrants comme des entiers " |
| 1914 |
"et fait leur somme. Le client envoie la chaîne de commande « END ». Le " |
| 1915 |
"serveur renvoie un message contenant la somme des entiers du client. Le " |
| 1916 |
"client affiche la somme et quitte. Le serveur attend la connexion d’un " |
| 1917 |
"nouveau client. Pour stopper le serveur, le client est appelé avec " |
| 1918 |
"l’argument de ligne de commande « DOWN »." |
| 1919 |
|
| 1920 |
#. type: Plain text |
| 1921 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1922 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1923 |
msgid "" |
| 1924 |
"The following output was recorded while running the server in the background " |
| 1925 |
"and repeatedly executing the client. Execution of the server program ends " |
| 1926 |
"when it receives the \"DOWN\" command." |
| 1927 |
msgstr "" |
| 1928 |
"La sortie suivante a été enregistrée alors que le serveur fonctionnait en " |
| 1929 |
"arrière-plan et en exécutant le client de façon répétée. L’exécution du " |
| 1930 |
"programme du serveur se termine quand il reçoit la commande « DOWN »." |
| 1931 |
|
| 1932 |
#. type: SS |
| 1933 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1934 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1935 |
#, no-wrap |
| 1936 |
msgid "Example output" |
| 1937 |
msgstr "Sortie de l’exemple" |
| 1938 |
|
| 1939 |
#. type: Plain text |
| 1940 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1941 |
#: opensuse-tumbleweed |
| 1942 |
#, fuzzy, no-wrap |
| 1943 |
#| msgid "" |
| 1944 |
#| "$ B<./server &>\n" |
| 1945 |
#| "[1] 25887\n" |
| 1946 |
#| "$ B<./client 3 4>\n" |
| 1947 |
#| "Result = 7\n" |
| 1948 |
#| "$ B<./client 11 -5>\n" |
| 1949 |
#| "Result = 6\n" |
| 1950 |
#| "$ B<./client DOWN>\n" |
| 1951 |
#| "Result = 0\n" |
| 1952 |
#| "[1]+ Done ./server\n" |
| 1953 |
#| "$\n" |
| 1954 |
msgid "" |
| 1955 |
"$B< ./server &>\n" |
| 1956 |
"[1] 25887\n" |
| 1957 |
"$B< ./client 3 4>;\n" |
| 1958 |
"Result = 7\n" |
| 1959 |
"$B< ./client 11 -5>;\n" |
| 1960 |
"Result = 6\n" |
| 1961 |
"$B< ./client DOWN>;\n" |
| 1962 |
"Result = 0\n" |
| 1963 |
"[1]+ Done ./server\n" |
| 1964 |
"$\n" |
| 1965 |
msgstr "" |
| 1966 |
"$ B<./server &>\n" |
| 1967 |
"[1] 25887\n" |
| 1968 |
"$ B<./client 3 4>\n" |
| 1969 |
"Result = 7\n" |
| 1970 |
"$ B<./client 11 -5>\n" |
| 1971 |
"Result = 6\n" |
| 1972 |
"$ B<./client DOWN>\n" |
| 1973 |
"Result = 0\n" |
| 1974 |
"[1]+ Done ./server\n" |
| 1975 |
"$\n" |
| 1976 |
|
| 1977 |
#. type: SS |
| 1978 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1979 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1980 |
#, no-wrap |
| 1981 |
msgid "Program source" |
| 1982 |
msgstr "Source du programme" |
| 1983 |
|
| 1984 |
#. type: Plain text |
| 1985 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1986 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1987 |
#, fuzzy, no-wrap |
| 1988 |
#| msgid "" |
| 1989 |
#| "#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1990 |
#| "#define BUFFER_SIZE 12\n" |
| 1991 |
msgid "" |
| 1992 |
"/*\n" |
| 1993 |
" * File connection.h\n" |
| 1994 |
" */\n" |
| 1995 |
"#ifndef CONNECTION_H\n" |
| 1996 |
"#define CONNECTION_H\n" |
| 1997 |
"\\&\n" |
| 1998 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1999 |
"#define BUFFER_SIZE 12\n" |
| 2000 |
"\\&\n" |
| 2001 |
"#endif // include guard\n" |
| 2002 |
msgstr "" |
| 2003 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 2004 |
"#define BUFFER_SIZE 12\n" |
| 2005 |
|
| 2006 |
#. type: Plain text |
| 2007 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2008 |
#: opensuse-tumbleweed |
| 2009 |
#, no-wrap |
| 2010 |
msgid "" |
| 2011 |
"/*\n" |
| 2012 |
" * File server.c\n" |
| 2013 |
" */\n" |
| 2014 |
"\\&\n" |
| 2015 |
"#include E<lt>stdio.hE<gt>\n" |
| 2016 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2017 |
"#include E<lt>string.hE<gt>\n" |
| 2018 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2019 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2020 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2021 |
"#include E<lt>unistd.hE<gt>\n" |
| 2022 |
"\\&\n" |
| 2023 |
"#include \"connection.h\"\n" |
| 2024 |
"\\&\n" |
| 2025 |
"int\n" |
| 2026 |
"main(void)\n" |
| 2027 |
"{\n" |
| 2028 |
" int down_flag = 0;\n" |
| 2029 |
" int ret;\n" |
| 2030 |
" int connection_socket;\n" |
| 2031 |
" int data_socket;\n" |
| 2032 |
" int result;\n" |
| 2033 |
" ssize_t r, w;\n" |
| 2034 |
" struct sockaddr_un name;\n" |
| 2035 |
" char buffer[BUFFER_SIZE];\n" |
| 2036 |
"\\&\n" |
| 2037 |
" /* Create local socket. */\n" |
| 2038 |
"\\&\n" |
| 2039 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2040 |
" if (connection_socket == -1) {\n" |
| 2041 |
" perror(\"socket\");\n" |
| 2042 |
" exit(EXIT_FAILURE);\n" |
| 2043 |
" }\n" |
| 2044 |
"\\&\n" |
| 2045 |
" /*\n" |
| 2046 |
" * For portability clear the whole structure, since some\n" |
| 2047 |
" * implementations have additional (nonstandard) fields in\n" |
| 2048 |
" * the structure.\n" |
| 2049 |
" */\n" |
| 2050 |
"\\&\n" |
| 2051 |
" memset(&name, 0, sizeof(name));\n" |
| 2052 |
"\\&\n" |
| 2053 |
" /* Bind socket to socket name. */\n" |
| 2054 |
"\\&\n" |
| 2055 |
" name.sun_family = AF_UNIX;\n" |
| 2056 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2057 |
"\\&\n" |
| 2058 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2059 |
" sizeof(name));\n" |
| 2060 |
" if (ret == -1) {\n" |
| 2061 |
" perror(\"bind\");\n" |
| 2062 |
" exit(EXIT_FAILURE);\n" |
| 2063 |
" }\n" |
| 2064 |
"\\&\n" |
| 2065 |
" /*\n" |
| 2066 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2067 |
" * to 20. So while one request is being processed other requests\n" |
| 2068 |
" * can be waiting.\n" |
| 2069 |
" */\n" |
| 2070 |
"\\&\n" |
| 2071 |
" ret = listen(connection_socket, 20);\n" |
| 2072 |
" if (ret == -1) {\n" |
| 2073 |
" perror(\"listen\");\n" |
| 2074 |
" exit(EXIT_FAILURE);\n" |
| 2075 |
" }\n" |
| 2076 |
"\\&\n" |
| 2077 |
" /* This is the main loop for handling connections. */\n" |
| 2078 |
"\\&\n" |
| 2079 |
" for (;;) {\n" |
| 2080 |
"\\&\n" |
| 2081 |
" /* Wait for incoming connection. */\n" |
| 2082 |
"\\&\n" |
| 2083 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2084 |
" if (data_socket == -1) {\n" |
| 2085 |
" perror(\"accept\");\n" |
| 2086 |
" exit(EXIT_FAILURE);\n" |
| 2087 |
" }\n" |
| 2088 |
"\\&\n" |
| 2089 |
" result = 0;\n" |
| 2090 |
" for (;;) {\n" |
| 2091 |
"\\&\n" |
| 2092 |
" /* Wait for next data packet. */\n" |
| 2093 |
"\\&\n" |
| 2094 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2095 |
" if (r == -1) {\n" |
| 2096 |
" perror(\"read\");\n" |
| 2097 |
" exit(EXIT_FAILURE);\n" |
| 2098 |
" }\n" |
| 2099 |
"\\&\n" |
| 2100 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2101 |
"\\&\n" |
| 2102 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2103 |
"\\&\n" |
| 2104 |
" /* Handle commands. */\n" |
| 2105 |
"\\&\n" |
| 2106 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2107 |
" down_flag = 1;\n" |
| 2108 |
" continue;\n" |
| 2109 |
" }\n" |
| 2110 |
"\\&\n" |
| 2111 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2112 |
" break;\n" |
| 2113 |
" }\n" |
| 2114 |
"\\&\n" |
| 2115 |
" if (down_flag) {\n" |
| 2116 |
" continue;\n" |
| 2117 |
" }\n" |
| 2118 |
"\\&\n" |
| 2119 |
" /* Add received summand. */\n" |
| 2120 |
"\\&\n" |
| 2121 |
" result += atoi(buffer);\n" |
| 2122 |
" }\n" |
| 2123 |
"\\&\n" |
| 2124 |
" /* Send result. */\n" |
| 2125 |
"\\&\n" |
| 2126 |
" sprintf(buffer, \"%d\", result);\n" |
| 2127 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2128 |
" if (w == -1) {\n" |
| 2129 |
" perror(\"write\");\n" |
| 2130 |
" exit(EXIT_FAILURE);\n" |
| 2131 |
" }\n" |
| 2132 |
"\\&\n" |
| 2133 |
" /* Close socket. */\n" |
| 2134 |
"\\&\n" |
| 2135 |
" close(data_socket);\n" |
| 2136 |
"\\&\n" |
| 2137 |
" /* Quit on DOWN command. */\n" |
| 2138 |
"\\&\n" |
| 2139 |
" if (down_flag) {\n" |
| 2140 |
" break;\n" |
| 2141 |
" }\n" |
| 2142 |
" }\n" |
| 2143 |
"\\&\n" |
| 2144 |
" close(connection_socket);\n" |
| 2145 |
"\\&\n" |
| 2146 |
" /* Unlink the socket. */\n" |
| 2147 |
"\\&\n" |
| 2148 |
" unlink(SOCKET_NAME);\n" |
| 2149 |
"\\&\n" |
| 2150 |
" exit(EXIT_SUCCESS);\n" |
| 2151 |
"}\n" |
| 2152 |
msgstr "" |
| 2153 |
|
| 2154 |
#. type: Plain text |
| 2155 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2156 |
#: opensuse-tumbleweed |
| 2157 |
#, no-wrap |
| 2158 |
msgid "" |
| 2159 |
"/*\n" |
| 2160 |
" * File client.c\n" |
| 2161 |
" */\n" |
| 2162 |
"\\&\n" |
| 2163 |
"#include E<lt>stdio.hE<gt>\n" |
| 2164 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2165 |
"#include E<lt>string.hE<gt>\n" |
| 2166 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2167 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2168 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2169 |
"#include E<lt>unistd.hE<gt>\n" |
| 2170 |
"\\&\n" |
| 2171 |
"#include \"connection.h\"\n" |
| 2172 |
"\\&\n" |
| 2173 |
"int\n" |
| 2174 |
"main(int argc, char *argv[])\n" |
| 2175 |
"{\n" |
| 2176 |
" int ret;\n" |
| 2177 |
" int data_socket;\n" |
| 2178 |
" ssize_t r, w;\n" |
| 2179 |
" struct sockaddr_un addr;\n" |
| 2180 |
" char buffer[BUFFER_SIZE];\n" |
| 2181 |
"\\&\n" |
| 2182 |
" /* Create local socket. */\n" |
| 2183 |
"\\&\n" |
| 2184 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2185 |
" if (data_socket == -1) {\n" |
| 2186 |
" perror(\"socket\");\n" |
| 2187 |
" exit(EXIT_FAILURE);\n" |
| 2188 |
" }\n" |
| 2189 |
"\\&\n" |
| 2190 |
" /*\n" |
| 2191 |
" * For portability clear the whole structure, since some\n" |
| 2192 |
" * implementations have additional (nonstandard) fields in\n" |
| 2193 |
" * the structure.\n" |
| 2194 |
" */\n" |
| 2195 |
"\\&\n" |
| 2196 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2197 |
"\\&\n" |
| 2198 |
" /* Connect socket to socket address. */\n" |
| 2199 |
"\\&\n" |
| 2200 |
" addr.sun_family = AF_UNIX;\n" |
| 2201 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2202 |
"\\&\n" |
| 2203 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2204 |
" sizeof(addr));\n" |
| 2205 |
" if (ret == -1) {\n" |
| 2206 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2207 |
" exit(EXIT_FAILURE);\n" |
| 2208 |
" }\n" |
| 2209 |
"\\&\n" |
| 2210 |
" /* Send arguments. */\n" |
| 2211 |
"\\&\n" |
| 2212 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2213 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2214 |
" if (w == -1) {\n" |
| 2215 |
" perror(\"write\");\n" |
| 2216 |
" break;\n" |
| 2217 |
" }\n" |
| 2218 |
" }\n" |
| 2219 |
"\\&\n" |
| 2220 |
" /* Request result. */\n" |
| 2221 |
"\\&\n" |
| 2222 |
" strcpy(buffer, \"END\");\n" |
| 2223 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2224 |
" if (w == -1) {\n" |
| 2225 |
" perror(\"write\");\n" |
| 2226 |
" exit(EXIT_FAILURE);\n" |
| 2227 |
" }\n" |
| 2228 |
"\\&\n" |
| 2229 |
" /* Receive result. */\n" |
| 2230 |
"\\&\n" |
| 2231 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2232 |
" if (r == -1) {\n" |
| 2233 |
" perror(\"read\");\n" |
| 2234 |
" exit(EXIT_FAILURE);\n" |
| 2235 |
" }\n" |
| 2236 |
"\\&\n" |
| 2237 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2238 |
"\\&\n" |
| 2239 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2240 |
"\\&\n" |
| 2241 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2242 |
"\\&\n" |
| 2243 |
" /* Close socket. */\n" |
| 2244 |
"\\&\n" |
| 2245 |
" close(data_socket);\n" |
| 2246 |
"\\&\n" |
| 2247 |
" exit(EXIT_SUCCESS);\n" |
| 2248 |
"}\n" |
| 2249 |
msgstr "" |
| 2250 |
|
| 2251 |
#. type: Plain text |
| 2252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2254 |
#, fuzzy |
| 2255 |
#| msgid "For an example of the use of B<SCM_RIGHTS> see B<cmsg>(3)." |
| 2256 |
msgid "" |
| 2257 |
"For examples of the use of B<SCM_RIGHTS>, see B<cmsg>(3) and " |
| 2258 |
"B<seccomp_unotify>(2)." |
| 2259 |
msgstr "" |
| 2260 |
"Pour un exemple de l'utilisation de B<SCM_RIGHTS>, consultez B<cmsg>(3)." |
| 2261 |
|
| 2262 |
#. type: SH |
| 2263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2265 |
#, no-wrap |
| 2266 |
msgid "SEE ALSO" |
| 2267 |
msgstr "VOIR AUSSI" |
| 2268 |
|
| 2269 |
#. type: Plain text |
| 2270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2272 |
msgid "" |
| 2273 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2274 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2275 |
msgstr "" |
| 2276 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2277 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2278 |
|
| 2279 |
#. type: TH |
| 2280 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2281 |
#, no-wrap |
| 2282 |
msgid "2024-06-15" |
| 2283 |
msgstr "15 juin 2024" |
| 2284 |
|
| 2285 |
#. type: TH |
| 2286 |
#: debian-trixie |
| 2287 |
#, no-wrap |
| 2288 |
msgid "Linux man-pages 6.9.1" |
| 2289 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 2290 |
|
| 2291 |
#. type: TP |
| 2292 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2293 |
#, no-wrap |
| 2294 |
msgid "B<SO_PEERSEC>" |
| 2295 |
msgstr "B<SO_PEERSEC>" |
| 2296 |
|
| 2297 |
#. type: Plain text |
| 2298 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2299 |
msgid "" |
| 2300 |
"This read-only socket option returns the security context of the peer socket " |
| 2301 |
"connected to this socket. By default, this will be the same as the security " |
| 2302 |
"context of the process that created the peer socket unless overridden by the " |
| 2303 |
"policy or by a process with the required permissions." |
| 2304 |
msgstr "" |
| 2305 |
"Cette option de socket en lecture exclusivement renvoie le contexte de " |
| 2306 |
"sécurité du socket pair connecté à ce socket. Par défaut, cela sera le même " |
| 2307 |
"que le contexte de sécurité du processus ayant créé le socket pair à moins " |
| 2308 |
"qu’il ne soit écrasé par la politique ou par un processus ayant les " |
| 2309 |
"permissions requises." |
| 2310 |
|
| 2311 |
#. type: Plain text |
| 2312 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2313 |
msgid "" |
| 2314 |
"The argument to B<getsockopt>(2) is a pointer to a buffer of the specified " |
| 2315 |
"length in bytes into which the security context string will be copied. If " |
| 2316 |
"the buffer length is less than the length of the security context string, " |
| 2317 |
"then B<getsockopt>(2) returns -1, sets I<errno> to B<ERANGE>, and returns " |
| 2318 |
"the required length via I<optlen>. The caller should allocate at least " |
| 2319 |
"B<NAME_MAX> bytes for the buffer initially, although this is not guaranteed " |
| 2320 |
"to be sufficient. Resizing the buffer to the returned length and retrying " |
| 2321 |
"may be necessary." |
| 2322 |
msgstr "" |
| 2323 |
"L’argument de B<getsockopt>(2) est un pointeur vers un tampon de la longueur " |
| 2324 |
"indiquée en octets dans lequel la chaîne de contexte de sécurité sera " |
| 2325 |
"copiée. Si la taille du tampon est inférieure à celle de la chaîne du " |
| 2326 |
"contexte de sécurité, alors B<getsockopt>(2) renvoie B<-1>, définit I<errno> " |
| 2327 |
"à B<ERANGE> et renvoie la taille requise à l’aide de I<optlen>. L’appelant " |
| 2328 |
"doit allouer initialement au moins B<NAME_MAX> octets pour le tampon, bien " |
| 2329 |
"que cela ne soit pas garanti d'être suffisant. Redimensionner le tampon à la " |
| 2330 |
"taille renvoyée et réessayer peuvent être nécessaires." |
| 2331 |
|
| 2332 |
#. type: Plain text |
| 2333 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2334 |
msgid "" |
| 2335 |
"The security context string may include a terminating null character in the " |
| 2336 |
"returned length, but is not guaranteed to do so: a security context \"foo\" " |
| 2337 |
"might be represented as either {'f','o','o'} of length 3 or " |
| 2338 |
"{'f','o','o','\\e0'} of length 4, which are considered to be " |
| 2339 |
"interchangeable. The string is printable, does not contain non-terminating " |
| 2340 |
"null characters, and is in an unspecified encoding (in particular, it is not " |
| 2341 |
"guaranteed to be ASCII or UTF-8)." |
| 2342 |
msgstr "" |
| 2343 |
"La chaîne de contexte de sécurité peut inclure un octet NULL final dans la " |
| 2344 |
"taille renvoyée, mais il n’est pas garanti que ce soit fait : un contexte de " |
| 2345 |
"sécurité « abc » peut être représenté soit par {'a','b','c'} de taille 3, ou " |
| 2346 |
"{'a','b','c','\\e0'} de taille 4, qui sont considérés comme " |
| 2347 |
"interchangeables. La chaîne peut être affichée, mais ne contient pas d’octet " |
| 2348 |
"NULL final, et elle est dans un encodage non précisé (en particulier, il " |
| 2349 |
"n’est pas garanti que ce soit ASCII ou UTF-8)." |
| 2350 |
|
| 2351 |
#. commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7 |
| 2352 |
#. type: Plain text |
| 2353 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2354 |
msgid "" |
| 2355 |
"The use of this option for sockets in the B<AF_UNIX> address family is " |
| 2356 |
"supported since Linux 2.6.2 for connected stream sockets, and since Linux " |
| 2357 |
"4.18 also for stream and datagram socket pairs created using " |
| 2358 |
"B<socketpair>(2)." |
| 2359 |
msgstr "" |
| 2360 |
"L’utilisation de cette option pour les sockets dans la famille d’adresses " |
| 2361 |
"B<AF_UNIX> est prise en charge depuis Linux 2.6.2 pour les sockets flux " |
| 2362 |
"connectés et aussi, depuis Linux 4.18, pour les pairs de socket flux et " |
| 2363 |
"datagramme créés en utilisant B<socketpair>(2)." |
| 2364 |
|
| 2365 |
#. type: Plain text |
| 2366 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2367 |
#, no-wrap |
| 2368 |
msgid "" |
| 2369 |
"$ B<./server &>\n" |
| 2370 |
"[1] 25887\n" |
| 2371 |
"$ B<./client 3 4>\n" |
| 2372 |
"Result = 7\n" |
| 2373 |
"$ B<./client 11 -5>\n" |
| 2374 |
"Result = 6\n" |
| 2375 |
"$ B<./client DOWN>\n" |
| 2376 |
"Result = 0\n" |
| 2377 |
"[1]+ Done ./server\n" |
| 2378 |
"$\n" |
| 2379 |
msgstr "" |
| 2380 |
"$ B<./server &>\n" |
| 2381 |
"[1] 25887\n" |
| 2382 |
"$ B<./client 3 4>\n" |
| 2383 |
"Result = 7\n" |
| 2384 |
"$ B<./client 11 -5>\n" |
| 2385 |
"Result = 6\n" |
| 2386 |
"$ B<./client DOWN>\n" |
| 2387 |
"Result = 0\n" |
| 2388 |
"[1]+ Done ./server\n" |
| 2389 |
"$\n" |
| 2390 |
|
| 2391 |
#. type: Plain text |
| 2392 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2393 |
#, no-wrap |
| 2394 |
msgid "" |
| 2395 |
"/*\n" |
| 2396 |
" * File server.c\n" |
| 2397 |
" */\n" |
| 2398 |
"\\&\n" |
| 2399 |
"#include E<lt>stdio.hE<gt>\n" |
| 2400 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2401 |
"#include E<lt>string.hE<gt>\n" |
| 2402 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2403 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2404 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2405 |
"#include E<lt>unistd.hE<gt>\n" |
| 2406 |
"\\&\n" |
| 2407 |
"#include \"connection.h\"\n" |
| 2408 |
"\\&\n" |
| 2409 |
"int\n" |
| 2410 |
"main(void)\n" |
| 2411 |
"{\n" |
| 2412 |
" int down_flag = 0;\n" |
| 2413 |
" int ret;\n" |
| 2414 |
" int connection_socket;\n" |
| 2415 |
" int data_socket;\n" |
| 2416 |
" int result;\n" |
| 2417 |
" ssize_t r, w;\n" |
| 2418 |
" struct sockaddr_un name;\n" |
| 2419 |
" char buffer[BUFFER_SIZE];\n" |
| 2420 |
"\\&\n" |
| 2421 |
" /* Create local socket. */\n" |
| 2422 |
"\\&\n" |
| 2423 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2424 |
" if (connection_socket == -1) {\n" |
| 2425 |
" perror(\"socket\");\n" |
| 2426 |
" exit(EXIT_FAILURE);\n" |
| 2427 |
" }\n" |
| 2428 |
"\\&\n" |
| 2429 |
" /*\n" |
| 2430 |
" * For portability clear the whole structure, since some\n" |
| 2431 |
" * implementations have additional (nonstandard) fields in\n" |
| 2432 |
" * the structure.\n" |
| 2433 |
" */\n" |
| 2434 |
"\\&\n" |
| 2435 |
" memset(&name, 0, sizeof(name));\n" |
| 2436 |
"\\&\n" |
| 2437 |
" /* Bind socket to socket name. */\n" |
| 2438 |
"\\&\n" |
| 2439 |
" name.sun_family = AF_UNIX;\n" |
| 2440 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2441 |
"\\&\n" |
| 2442 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2443 |
" sizeof(name));\n" |
| 2444 |
" if (ret == -1) {\n" |
| 2445 |
" perror(\"bind\");\n" |
| 2446 |
" exit(EXIT_FAILURE);\n" |
| 2447 |
" }\n" |
| 2448 |
"\\&\n" |
| 2449 |
" /*\n" |
| 2450 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2451 |
" * to 20. So while one request is being processed other requests\n" |
| 2452 |
" * can be waiting.\n" |
| 2453 |
" */\n" |
| 2454 |
"\\&\n" |
| 2455 |
" ret = listen(connection_socket, 20);\n" |
| 2456 |
" if (ret == -1) {\n" |
| 2457 |
" perror(\"listen\");\n" |
| 2458 |
" exit(EXIT_FAILURE);\n" |
| 2459 |
" }\n" |
| 2460 |
"\\&\n" |
| 2461 |
" /* This is the main loop for handling connections. */\n" |
| 2462 |
"\\&\n" |
| 2463 |
" for (;;) {\n" |
| 2464 |
"\\&\n" |
| 2465 |
" /* Wait for incoming connection. */\n" |
| 2466 |
"\\&\n" |
| 2467 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2468 |
" if (data_socket == -1) {\n" |
| 2469 |
" perror(\"accept\");\n" |
| 2470 |
" exit(EXIT_FAILURE);\n" |
| 2471 |
" }\n" |
| 2472 |
"\\&\n" |
| 2473 |
" result = 0;\n" |
| 2474 |
" for (;;) {\n" |
| 2475 |
"\\&\n" |
| 2476 |
" /* Wait for next data packet. */\n" |
| 2477 |
"\\&\n" |
| 2478 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2479 |
" if (r == -1) {\n" |
| 2480 |
" perror(\"read\");\n" |
| 2481 |
" exit(EXIT_FAILURE);\n" |
| 2482 |
" }\n" |
| 2483 |
"\\&\n" |
| 2484 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2485 |
"\\&\n" |
| 2486 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2487 |
"\\&\n" |
| 2488 |
" /* Handle commands. */\n" |
| 2489 |
"\\&\n" |
| 2490 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2491 |
" down_flag = 1;\n" |
| 2492 |
" continue;\n" |
| 2493 |
" }\n" |
| 2494 |
"\\&\n" |
| 2495 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2496 |
" break;\n" |
| 2497 |
" }\n" |
| 2498 |
"\\&\n" |
| 2499 |
" if (down_flag) {\n" |
| 2500 |
" continue;\n" |
| 2501 |
" }\n" |
| 2502 |
"\\&\n" |
| 2503 |
" /* Add received summand. */\n" |
| 2504 |
"\\&\n" |
| 2505 |
" result += atoi(buffer);\n" |
| 2506 |
" }\n" |
| 2507 |
"\\&\n" |
| 2508 |
" /* Send result. */\n" |
| 2509 |
"\\&\n" |
| 2510 |
" sprintf(buffer, \"%d\", result);\n" |
| 2511 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2512 |
" if (w == -1) {\n" |
| 2513 |
" perror(\"write\");\n" |
| 2514 |
" exit(EXIT_FAILURE);\n" |
| 2515 |
" }\n" |
| 2516 |
"\\&\n" |
| 2517 |
" /* Close socket. */\n" |
| 2518 |
"\\&\n" |
| 2519 |
" close(data_socket);\n" |
| 2520 |
"\\&\n" |
| 2521 |
" /* Quit on DOWN command. */\n" |
| 2522 |
"\\&\n" |
| 2523 |
" if (down_flag) {\n" |
| 2524 |
" break;\n" |
| 2525 |
" }\n" |
| 2526 |
" }\n" |
| 2527 |
"\\&\n" |
| 2528 |
" close(connection_socket);\n" |
| 2529 |
"\\&\n" |
| 2530 |
" /* Unlink the socket. */\n" |
| 2531 |
"\\&\n" |
| 2532 |
" unlink(SOCKET_NAME);\n" |
| 2533 |
"\\&\n" |
| 2534 |
" exit(EXIT_SUCCESS);\n" |
| 2535 |
"}\n" |
| 2536 |
msgstr "" |
| 2537 |
|
| 2538 |
#. type: Plain text |
| 2539 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2540 |
#, no-wrap |
| 2541 |
msgid "" |
| 2542 |
"/*\n" |
| 2543 |
" * File client.c\n" |
| 2544 |
" */\n" |
| 2545 |
"\\&\n" |
| 2546 |
"#include E<lt>stdio.hE<gt>\n" |
| 2547 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2548 |
"#include E<lt>string.hE<gt>\n" |
| 2549 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2550 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2551 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2552 |
"#include E<lt>unistd.hE<gt>\n" |
| 2553 |
"\\&\n" |
| 2554 |
"#include \"connection.h\"\n" |
| 2555 |
"\\&\n" |
| 2556 |
"int\n" |
| 2557 |
"main(int argc, char *argv[])\n" |
| 2558 |
"{\n" |
| 2559 |
" int ret;\n" |
| 2560 |
" int data_socket;\n" |
| 2561 |
" ssize_t r, w;\n" |
| 2562 |
" struct sockaddr_un addr;\n" |
| 2563 |
" char buffer[BUFFER_SIZE];\n" |
| 2564 |
"\\&\n" |
| 2565 |
" /* Create local socket. */\n" |
| 2566 |
"\\&\n" |
| 2567 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2568 |
" if (data_socket == -1) {\n" |
| 2569 |
" perror(\"socket\");\n" |
| 2570 |
" exit(EXIT_FAILURE);\n" |
| 2571 |
" }\n" |
| 2572 |
"\\&\n" |
| 2573 |
" /*\n" |
| 2574 |
" * For portability clear the whole structure, since some\n" |
| 2575 |
" * implementations have additional (nonstandard) fields in\n" |
| 2576 |
" * the structure.\n" |
| 2577 |
" */\n" |
| 2578 |
"\\&\n" |
| 2579 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2580 |
"\\&\n" |
| 2581 |
" /* Connect socket to socket address. */\n" |
| 2582 |
"\\&\n" |
| 2583 |
" addr.sun_family = AF_UNIX;\n" |
| 2584 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2585 |
"\\&\n" |
| 2586 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2587 |
" sizeof(addr));\n" |
| 2588 |
" if (ret == -1) {\n" |
| 2589 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2590 |
" exit(EXIT_FAILURE);\n" |
| 2591 |
" }\n" |
| 2592 |
"\\&\n" |
| 2593 |
" /* Send arguments. */\n" |
| 2594 |
"\\&\n" |
| 2595 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2596 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2597 |
" if (w == -1) {\n" |
| 2598 |
" perror(\"write\");\n" |
| 2599 |
" break;\n" |
| 2600 |
" }\n" |
| 2601 |
" }\n" |
| 2602 |
"\\&\n" |
| 2603 |
" /* Request result. */\n" |
| 2604 |
"\\&\n" |
| 2605 |
" strcpy(buffer, \"END\");\n" |
| 2606 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2607 |
" if (w == -1) {\n" |
| 2608 |
" perror(\"write\");\n" |
| 2609 |
" exit(EXIT_FAILURE);\n" |
| 2610 |
" }\n" |
| 2611 |
"\\&\n" |
| 2612 |
" /* Receive result. */\n" |
| 2613 |
"\\&\n" |
| 2614 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2615 |
" if (r == -1) {\n" |
| 2616 |
" perror(\"read\");\n" |
| 2617 |
" exit(EXIT_FAILURE);\n" |
| 2618 |
" }\n" |
| 2619 |
"\\&\n" |
| 2620 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2621 |
"\\&\n" |
| 2622 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2623 |
"\\&\n" |
| 2624 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2625 |
"\\&\n" |
| 2626 |
" /* Close socket. */\n" |
| 2627 |
"\\&\n" |
| 2628 |
" close(data_socket);\n" |
| 2629 |
"\\&\n" |
| 2630 |
" exit(EXIT_SUCCESS);\n" |
| 2631 |
"}\n" |
| 2632 |
msgstr "" |
| 2633 |
|
| 2634 |
#. type: TH |
| 2635 |
#: fedora-44 fedora-rawhide |
| 2636 |
#, no-wrap |
| 2637 |
msgid "Linux man-pages 6.13" |
| 2638 |
msgstr "Pages du manuel de Linux 6.13" |
| 2639 |
|
| 2640 |
#. type: TH |
| 2641 |
#: mageia-cauldron |
| 2642 |
#, no-wrap |
| 2643 |
msgid "Linux man-pages 6.17" |
| 2644 |
msgstr "Pages du manuel de Linux 6.17" |
| 2645 |
|
| 2646 |
#. type: TH |
| 2647 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2648 |
#, no-wrap |
| 2649 |
msgid "Linux man-pages (unreleased)" |
| 2650 |
msgstr "Pages du manuel de Linux (non publiées)" |