| 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. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012, 2013. |
| 18 |
# Jean-Philippe MENGUAL <[email protected]>, 2023. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.30\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 23 |
"PO-Revision-Date: 2026-04-03 09:16+0200\n" |
| 24 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 25 |
"Language-Team: French <[email protected]>\n" |
| 26 |
"Language: fr\n" |
| 27 |
"MIME-Version: 1.0\n" |
| 28 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 29 |
"Content-Transfer-Encoding: 8bit\n" |
| 30 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 31 |
"X-Generator: Lokalize 25.04.0\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 35 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "getpwnam" |
| 38 |
msgstr "getpwnam" |
| 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 "getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entry" |
| 64 |
msgstr "" |
| 65 |
"getpwnam, getpwnam_r, getpwuid, getpwuid_r — Lire un enregistrement du " |
| 66 |
"fichier des mots de passe" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "LIBRARY" |
| 73 |
msgstr "BIBLIOTHÈQUE" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 77 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 79 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 80 |
|
| 81 |
#. type: SH |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "SYNOPSIS" |
| 86 |
msgstr "SYNOPSIS" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "" |
| 93 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 94 |
"B<#include E<lt>pwd.hE<gt>>\n" |
| 95 |
msgstr "" |
| 96 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 97 |
"B<#include E<lt>pwd.hE<gt>>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid "" |
| 104 |
"B<struct passwd *getpwnam(const char *>I<name>B<);>\n" |
| 105 |
"B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n" |
| 106 |
msgstr "" |
| 107 |
"B<struct passwd *getpwnam(const char *>I<nom>B<);>\n" |
| 108 |
"B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 112 |
#: opensuse-tumbleweed |
| 113 |
#, no-wrap |
| 114 |
msgid "" |
| 115 |
"B<int getpwnam_r(>size_t size;\n" |
| 116 |
"B< const char *restrict >I<name>B<,>\n" |
| 117 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 118 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 119 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 120 |
"B<int getpwuid_r(>size_t size;\n" |
| 121 |
"B< uid_t >I<uid>B<,>\n" |
| 122 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 123 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 124 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 125 |
msgstr "" |
| 126 |
"B<int getpwnam_r(>size_t size;\n" |
| 127 |
"B< const char *restrict >I<nom>B<,>\n" |
| 128 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 129 |
"B< char >I<tampon>B<[restrict .>I<taille>B<], size_t >I<taille>B<,>\n" |
| 130 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 131 |
"B<int getpwuid_r(>size_t size;\n" |
| 132 |
"B< uid_t >I<uid>B<,>\n" |
| 133 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 134 |
"B< char >I<tampon>B<[restrict .>I<taille>B<], size_t >I<taille>B<,>\n" |
| 135 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 142 |
msgstr "" |
| 143 |
"Exigences de macros de test de fonctionnalités pour la glibc (consulter " |
| 144 |
"B<feature_test_macros>(7)) :" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "B<getpwnam_r>(), B<getpwuid_r>():" |
| 150 |
msgstr "B<getpwnam_r>(), B<getpwuid_r>() :" |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "" |
| 157 |
" _POSIX_C_SOURCE\n" |
| 158 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 159 |
msgstr "" |
| 160 |
" _POSIX_C_SOURCE\n" |
| 161 |
" || /* glibc E<lt>= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 162 |
|
| 163 |
#. type: SH |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
#, no-wrap |
| 167 |
msgid "DESCRIPTION" |
| 168 |
msgstr "DESCRIPTION" |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "" |
| 174 |
"The B<getpwnam>() function returns a pointer to a structure containing the " |
| 175 |
"broken-out fields of the record in the password database (e.g., the local " |
| 176 |
"password file I</etc/passwd>, NIS, and LDAP) that matches the username " |
| 177 |
"I<name>." |
| 178 |
msgstr "" |
| 179 |
"La fonction B<getpwnam>() renvoie un pointeur sur une structure contenant " |
| 180 |
"les divers champs de l'enregistrement de la base de données des mots de " |
| 181 |
"passe (par exemple, la base de données locale I</etc/passwd>, NIS ou LDAP) " |
| 182 |
"correspondant au nom d'utilisateur I<nom>." |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"The B<getpwuid>() function returns a pointer to a structure containing the " |
| 189 |
"broken-out fields of the record in the password database that matches the " |
| 190 |
"user ID I<uid>." |
| 191 |
msgstr "" |
| 192 |
"La fonction B<getpwuid>() renvoie un pointeur sur une structure contenant " |
| 193 |
"les divers champs de l'enregistrement de la base de données des mots de " |
| 194 |
"passe correspondant à l'ID utilisateur I<uid>." |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:" |
| 200 |
msgstr "" |
| 201 |
"La structure I<passwd> est définie dans I<E<lt>pwd.hE<gt>> comme ceci\\ :" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 205 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
#, no-wrap |
| 207 |
msgid "" |
| 208 |
"struct passwd {\n" |
| 209 |
" char *pw_name; /* username */\n" |
| 210 |
" char *pw_passwd; /* user password */\n" |
| 211 |
" uid_t pw_uid; /* user ID */\n" |
| 212 |
" gid_t pw_gid; /* group ID */\n" |
| 213 |
" char *pw_gecos; /* user information */\n" |
| 214 |
" char *pw_dir; /* home directory */\n" |
| 215 |
" char *pw_shell; /* shell program */\n" |
| 216 |
"};\n" |
| 217 |
msgstr "" |
| 218 |
"struct passwd {\n" |
| 219 |
" char *pw_name; /* Nom d'utilisateur */\n" |
| 220 |
" char *pw_passwd; /* Mot de passe de l'utilisateur */\n" |
| 221 |
" uid_t pw_uid; /* ID de l'utilisateur */\n" |
| 222 |
" gid_t pw_gid; /* ID du groupe */\n" |
| 223 |
" char *pw_gecos; /* Information utilisateur */\n" |
| 224 |
" char *pw_dir; /* Répertoire personnel */\n" |
| 225 |
" char *pw_shell; /* Interpréteur de commande */\n" |
| 226 |
"};\n" |
| 227 |
|
| 228 |
#. type: Plain text |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
msgid "See B<passwd>(5) for more information about these fields." |
| 232 |
msgstr "Consultez B<passwd>(5) pour plus d'informations sur ces champs." |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 236 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "" |
| 238 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 239 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 240 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 241 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 242 |
"buffer I<buf> of size I<size>. A pointer to the result (in case of success) " |
| 243 |
"or NULL (in case no entry was found or an error occurred) is stored in " |
| 244 |
"I<*result>." |
| 245 |
msgstr "" |
| 246 |
"Les fonctions B<getpwnam_r>() et B<getpwuid_r>() fournissent les mêmes " |
| 247 |
"informations que B<getpwnam>() et B<getpwuid>() mais enregistrent la " |
| 248 |
"structure I<passwd> trouvée dans l'espace pointé par I<pwd>. Cette structure " |
| 249 |
"I<passwd> contient des pointeurs vers des chaînes qui sont enregistrées dans " |
| 250 |
"le I<tampon> de taille I<taille>. Un pointeur vers le résultat (en cas de " |
| 251 |
"succès) ou NULL (au cas où aucune entrée n'ait été trouvée ou qu'une erreur " |
| 252 |
"soit survenue) est enregistré dans I<*result>." |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "The call" |
| 258 |
msgstr "L'appel'" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "sysconf(_SC_GETPW_R_SIZE_MAX)\n" |
| 265 |
msgstr "sysconf(_SC_GETPW_R_SIZE_MAX)\n" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "" |
| 271 |
"returns either -1, without changing I<errno>, or an initial suggested size " |
| 272 |
"for I<buf>. (If this size is too small, the call fails with B<ERANGE>, in " |
| 273 |
"which case the caller can retry with a larger buffer.)" |
| 274 |
msgstr "" |
| 275 |
"renvoie soit B<-1> sans modifier I<errno>, soit une suggestion de taille " |
| 276 |
"initiale pour I<buf> (si cette taille est trop petite, l'appel échoue avec " |
| 277 |
"B<ERANGE>, auquel cas l'appelant peut réessayer avec un tampon plus grand)." |
| 278 |
|
| 279 |
#. type: SH |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, no-wrap |
| 283 |
msgid "RETURN VALUE" |
| 284 |
msgstr "VALEUR RENVOYÉE" |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"The B<getpwnam>() and B<getpwuid>() functions return a pointer to a " |
| 291 |
"I<passwd> structure, or NULL if the matching entry is not found or an error " |
| 292 |
"occurs. If an error occurs, I<errno> is set to indicate the error. If one " |
| 293 |
"wants to check I<errno> after the call, it should be set to zero before the " |
| 294 |
"call." |
| 295 |
msgstr "" |
| 296 |
"Les fonctions B<getpwnam>() et B<getpwuid>() renvoient un pointeur sur une " |
| 297 |
"structure I<passwd>, ou NULL si une erreur se produit ou si l'enregistrement " |
| 298 |
"correspondant n'est pas trouvé. En cas d'erreur, I<errno> est définie pour " |
| 299 |
"indiquer l'erreur. Si on souhaite vérifier I<errno> après l'appel, celle-ci " |
| 300 |
"doit être définie à zéro avant l'appel." |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"The return value may point to a static area, and may be overwritten by " |
| 307 |
"subsequent calls to B<getpwent>(3), B<getpwnam>(), or B<getpwuid>(). (Do " |
| 308 |
"not pass the returned pointer to B<free>(3).)" |
| 309 |
msgstr "" |
| 310 |
"La valeur de retour peut pointer vers une zone statique et donc être écrasée " |
| 311 |
"par des appels successifs à B<getpwent>(3), B<getpwnam>() ou B<getpwuid>() " |
| 312 |
"(ne pas passer le pointeur renvoyé à B<free>(3))." |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "" |
| 318 |
"On success, B<getpwnam_r>() and B<getpwuid_r>() return zero, and set " |
| 319 |
"I<*result> to I<pwd>. If no matching password record was found, these " |
| 320 |
"functions return 0 and store NULL in I<*result>. In case of error, an error " |
| 321 |
"number is returned, and NULL is stored in I<*result>." |
| 322 |
msgstr "" |
| 323 |
"En cas de succès, B<getpwnam_r>() et B<getpwuid_r>() renvoient B<0> et " |
| 324 |
"définissent I<*result> à I<pwd>. Si aucun mot de passe ne correspond, ces " |
| 325 |
"fonctions renvoient B<0> et définissent I<*result> à NULL. En cas d'erreur, " |
| 326 |
"un code d'erreur est renvoyé et I<*result> est défini à NULL." |
| 327 |
|
| 328 |
#. type: SH |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
#, no-wrap |
| 332 |
msgid "ERRORS" |
| 333 |
msgstr "ERREURS" |
| 334 |
|
| 335 |
#. type: TP |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "B<0> or B<ENOENT> or B<ESRCH> or B<EBADF> or B<EPERM> or ..." |
| 340 |
msgstr "B<0> ou B<ENOENT> ou B<ESRCH> ou B<EBADF> ou B<EPERM> ou ..." |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "The given I<name> or I<uid> was not found." |
| 346 |
msgstr "Le nom I<nom> ou l'identifiant I<uid> n'ont pas été trouvés." |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<EINTR>" |
| 353 |
msgstr "B<EINTR>" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
msgid "A signal was caught; see B<signal>(7)." |
| 359 |
msgstr "Un signal a été intercepté ; consultez B<signal>(7)." |
| 360 |
|
| 361 |
#. type: TP |
| 362 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 363 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 364 |
#, no-wrap |
| 365 |
msgid "B<EIO>" |
| 366 |
msgstr "B<EIO>" |
| 367 |
|
| 368 |
#. type: Plain text |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
msgid "I/O error." |
| 372 |
msgstr "Erreur d'entrée-sortie." |
| 373 |
|
| 374 |
#. type: TP |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid "B<EMFILE>" |
| 379 |
msgstr "B<EMFILE>" |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"The per-process limit on the number of open file descriptors has been " |
| 386 |
"reached." |
| 387 |
msgstr "" |
| 388 |
"La limite du nombre de descripteurs de fichiers par processus a été atteinte." |
| 389 |
|
| 390 |
#. type: TP |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "B<ENFILE>" |
| 395 |
msgstr "B<ENFILE>" |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
msgid "" |
| 401 |
"The system-wide limit on the total number of open files has been reached." |
| 402 |
msgstr "" |
| 403 |
"La limite du nombre total de fichiers ouverts pour le système entier a été " |
| 404 |
"atteinte." |
| 405 |
|
| 406 |
#. type: TP |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
#, no-wrap |
| 410 |
msgid "B<ENOMEM>" |
| 411 |
msgstr "B<ENOMEM>" |
| 412 |
|
| 413 |
#. #-#-#-#-# archlinux: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 414 |
#. not in POSIX |
| 415 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 416 |
#. type: Plain text |
| 417 |
#. #-#-#-#-# debian-trixie: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 418 |
#. not in POSIX |
| 419 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 420 |
#. type: Plain text |
| 421 |
#. #-#-#-#-# debian-unstable: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 422 |
#. not in POSIX |
| 423 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 424 |
#. type: Plain text |
| 425 |
#. #-#-#-#-# fedora-44: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 426 |
#. not in POSIX |
| 427 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 428 |
#. type: Plain text |
| 429 |
#. #-#-#-#-# fedora-rawhide: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 430 |
#. not in POSIX |
| 431 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 432 |
#. type: Plain text |
| 433 |
#. #-#-#-#-# mageia-cauldron: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 434 |
#. not in POSIX |
| 435 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 436 |
#. type: Plain text |
| 437 |
#. #-#-#-#-# opensuse-leap-16-1: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 438 |
#. not in POSIX |
| 439 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 440 |
#. type: Plain text |
| 441 |
#. #-#-#-#-# opensuse-tumbleweed: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 442 |
#. not in POSIX |
| 443 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 444 |
#. type: Plain text |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
msgid "Insufficient memory to allocate I<passwd> structure." |
| 448 |
msgstr "Pas assez de mémoire pour allouer la structure I<passwd>." |
| 449 |
|
| 450 |
#. type: TP |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, no-wrap |
| 454 |
msgid "B<ERANGE>" |
| 455 |
msgstr "B<ERANGE>" |
| 456 |
|
| 457 |
#. type: Plain text |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
msgid "Insufficient buffer space supplied." |
| 461 |
msgstr "L'espace tampon fourni est insuffisant." |
| 462 |
|
| 463 |
#. type: SH |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "FILES" |
| 468 |
msgstr "FICHIERS" |
| 469 |
|
| 470 |
#. type: TP |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
#, no-wrap |
| 474 |
msgid "I</etc/passwd>" |
| 475 |
msgstr "I</etc/passwd>" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
msgid "local password database file" |
| 481 |
msgstr "Base de données locale des mots de passe" |
| 482 |
|
| 483 |
#. type: SH |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "ATTRIBUTES" |
| 488 |
msgstr "ATTRIBUTS" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "" |
| 494 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 495 |
msgstr "" |
| 496 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 497 |
"B<attributes>(7)." |
| 498 |
|
| 499 |
#. type: tbl table |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "Interface" |
| 504 |
msgstr "Interface" |
| 505 |
|
| 506 |
#. type: tbl table |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
#, no-wrap |
| 510 |
msgid "Attribute" |
| 511 |
msgstr "Attribut" |
| 512 |
|
| 513 |
#. type: tbl table |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
#, no-wrap |
| 517 |
msgid "Value" |
| 518 |
msgstr "Valeur" |
| 519 |
|
| 520 |
#. type: tbl table |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
#, no-wrap |
| 524 |
msgid ".na\n" |
| 525 |
msgstr ".na\n" |
| 526 |
|
| 527 |
#. type: tbl table |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid ".nh\n" |
| 532 |
msgstr ".nh\n" |
| 533 |
|
| 534 |
#. type: tbl table |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
msgid "B<getpwnam>()" |
| 539 |
msgstr "B<getpwnam>()" |
| 540 |
|
| 541 |
#. type: tbl table |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
#, no-wrap |
| 545 |
msgid "Thread safety" |
| 546 |
msgstr "Sécurité des threads" |
| 547 |
|
| 548 |
#. type: tbl table |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
#, no-wrap |
| 552 |
msgid "MT-Unsafe race:pwnam locale" |
| 553 |
msgstr "MT-Unsafe race:pwnam locale" |
| 554 |
|
| 555 |
#. type: tbl table |
| 556 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 557 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 558 |
#, no-wrap |
| 559 |
msgid "B<getpwuid>()" |
| 560 |
msgstr "B<getpwuid>()" |
| 561 |
|
| 562 |
#. type: tbl table |
| 563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 564 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 565 |
#, no-wrap |
| 566 |
msgid "MT-Unsafe race:pwuid locale" |
| 567 |
msgstr "MT-Unsafe race:pwuid locale" |
| 568 |
|
| 569 |
#. type: tbl table |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
#, no-wrap |
| 573 |
msgid "" |
| 574 |
"B<getpwnam_r>(),\n" |
| 575 |
"B<getpwuid_r>()" |
| 576 |
msgstr "" |
| 577 |
"B<getpwnam_r>(),\n" |
| 578 |
"B<getpwuid_r>()" |
| 579 |
|
| 580 |
#. type: tbl table |
| 581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 582 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 583 |
#, no-wrap |
| 584 |
msgid "MT-Safe locale" |
| 585 |
msgstr "MT-Safe locale" |
| 586 |
|
| 587 |
#. type: SH |
| 588 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 589 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 590 |
#, no-wrap |
| 591 |
msgid "VERSIONS" |
| 592 |
msgstr "VERSIONS" |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
msgid "" |
| 598 |
"The I<pw_gecos> field is not specified in POSIX, but is present on most " |
| 599 |
"implementations." |
| 600 |
msgstr "" |
| 601 |
"Le champ I<pw_gecos> n'est pas spécifié dans POSIX, mais il est présent sur " |
| 602 |
"la plupart des implémentations." |
| 603 |
|
| 604 |
#. type: SH |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
#, no-wrap |
| 608 |
msgid "STANDARDS" |
| 609 |
msgstr "NORMES" |
| 610 |
|
| 611 |
#. type: Plain text |
| 612 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 613 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
msgid "POSIX.1-2008." |
| 615 |
msgstr "POSIX.1-2008." |
| 616 |
|
| 617 |
#. type: SH |
| 618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 619 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 620 |
#, no-wrap |
| 621 |
msgid "HISTORY" |
| 622 |
msgstr "HISTORIQUE" |
| 623 |
|
| 624 |
#. type: Plain text |
| 625 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 626 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 627 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 628 |
msgstr "POSIX.1-2001, SVr4, 4.3BSD." |
| 629 |
|
| 630 |
#. type: SH |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "NOTES" |
| 635 |
msgstr "NOTES" |
| 636 |
|
| 637 |
#. more precisely: |
| 638 |
#. AIX 5.1 - gives ESRCH |
| 639 |
#. OSF1 4.0g - gives EWOULDBLOCK |
| 640 |
#. libc, glibc up to glibc 2.6, Irix 6.5 - give ENOENT |
| 641 |
#. since glibc 2.7 - give 0 |
| 642 |
#. FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM |
| 643 |
#. SunOS 5.8 - gives EBADF |
| 644 |
#. Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0 |
| 645 |
#. type: Plain text |
| 646 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 647 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 648 |
msgid "" |
| 649 |
"The formulation given above under \"RETURN VALUE\" is from POSIX.1-2001. It " |
| 650 |
"does not call \"not found\" an error, and hence does not specify what value " |
| 651 |
"I<errno> might have in this situation. But that makes it impossible to " |
| 652 |
"recognize errors. One might argue that according to POSIX I<errno> should " |
| 653 |
"be left unchanged if an entry is not found. Experiments on various UNIX-" |
| 654 |
"like systems show that lots of different values occur in this situation: 0, " |
| 655 |
"ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others." |
| 656 |
msgstr "" |
| 657 |
"La description \"VALEUR RENVOYÉE\" ci-dessus vient de POSIX.1-2001. Elle ne " |
| 658 |
"considère pas le cas «\\ non trouvé\\ » comme une erreur, et ne spécifie pas " |
| 659 |
"I<errno> dans ce cas. Cela rend la détection d'erreur impossible. On peut " |
| 660 |
"dire que, d'après POSIX, I<errno> est inchangée dans le cas où aucune entrée " |
| 661 |
"n'est trouvée. Des essais sur de nombreux systèmes UNIX ont fait apparaître " |
| 662 |
"différentes valeurs dans ce cas\\ : 0, ENOENT, EBADF, ESRCH, EWOULDBLOCK, " |
| 663 |
"EPERM et probablement d'autres." |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
msgid "" |
| 669 |
"The I<pw_dir> field contains the name of the initial working directory of " |
| 670 |
"the user. Login programs use the value of this field to initialize the " |
| 671 |
"B<HOME> environment variable for the login shell. An application that wants " |
| 672 |
"to determine its user's home directory should inspect the value of B<HOME> " |
| 673 |
"(rather than the value I<getpwuid(getuid())-E<gt>pw_dir>) since this allows " |
| 674 |
"the user to modify their notion of \"the home directory\" during a login " |
| 675 |
"session. To determine the (initial) home directory of another user, it is " |
| 676 |
"necessary to use I<getpwnam(\"username\")-E<gt>pw_dir> or similar." |
| 677 |
msgstr "" |
| 678 |
"Le champ I<pw_dir> contient le nom du répertoire de travail initial de " |
| 679 |
"l'utilisateur. Les programmes de connexion («\\ login\\ ») utilisent ce " |
| 680 |
"champ pour initialiser la variable d'environnement B<HOME> pour les " |
| 681 |
"interpréteurs de commandes initiaux. Une application qui souhaite déterminer " |
| 682 |
"le répertoire personnel des utilisateurs doit lire la valeur de B<HOME> (au " |
| 683 |
"lieu de la valeur de I<getpwuid(getuid())-E<gt>pw_dir>) puisque cela permet " |
| 684 |
"à l'utilisateur de modifier «\\ son répertoire personnel\\ » lorsqu'il est " |
| 685 |
"connecté. Pour déterminer le répertoire personnel «\\ initial\\ » d'un autre " |
| 686 |
"utilisateur, il est nécessaire d'utiliser I<getpwnam(\"utilisateur\")-" |
| 687 |
"E<gt>pw_dir> ou un équivalent." |
| 688 |
|
| 689 |
#. type: SH |
| 690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 691 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 692 |
#, no-wrap |
| 693 |
msgid "EXAMPLES" |
| 694 |
msgstr "EXEMPLES" |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 698 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 699 |
msgid "" |
| 700 |
"The program below demonstrates the use of B<getpwnam_r>() to find the full " |
| 701 |
"username and user ID for the username supplied as a command-line argument." |
| 702 |
msgstr "" |
| 703 |
"Le programme suivant est un exemple d'utilisation de B<getpwnam_r>() pour " |
| 704 |
"trouver le nom complet et l'identifiant du nom d'utilisateur fourni en " |
| 705 |
"paramètre." |
| 706 |
|
| 707 |
#. type: Plain text |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
#, no-wrap |
| 711 |
msgid "" |
| 712 |
"#include E<lt>errno.hE<gt>\n" |
| 713 |
"#include E<lt>pwd.hE<gt>\n" |
| 714 |
"#include E<lt>stdint.hE<gt>\n" |
| 715 |
"#include E<lt>stdio.hE<gt>\n" |
| 716 |
"#include E<lt>stdlib.hE<gt>\n" |
| 717 |
"#include E<lt>unistd.hE<gt>\n" |
| 718 |
"\\&\n" |
| 719 |
"int\n" |
| 720 |
"main(int argc, char *argv[])\n" |
| 721 |
"{\n" |
| 722 |
" struct passwd pwd;\n" |
| 723 |
" struct passwd *result;\n" |
| 724 |
" char *buf;\n" |
| 725 |
" long bufsize;\n" |
| 726 |
" int s;\n" |
| 727 |
"\\&\n" |
| 728 |
" if (argc != 2) {\n" |
| 729 |
" fprintf(stderr, \"Usage: %s username\\[rs]n\", argv[0]);\n" |
| 730 |
" exit(EXIT_FAILURE);\n" |
| 731 |
" }\n" |
| 732 |
"\\&\n" |
| 733 |
" bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n" |
| 734 |
" if (bufsize == -1) /* Value was indeterminate */\n" |
| 735 |
" bufsize = 16384; /* Should be more than enough */\n" |
| 736 |
"\\&\n" |
| 737 |
" buf = malloc(bufsize);\n" |
| 738 |
" if (buf == NULL) {\n" |
| 739 |
" perror(\"malloc\");\n" |
| 740 |
" exit(EXIT_FAILURE);\n" |
| 741 |
" }\n" |
| 742 |
"\\&\n" |
| 743 |
" s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n" |
| 744 |
" if (result == NULL) {\n" |
| 745 |
" if (s == 0)\n" |
| 746 |
" printf(\"Not found\\[rs]n\");\n" |
| 747 |
" else {\n" |
| 748 |
" errno = s;\n" |
| 749 |
" perror(\"getpwnam_r\");\n" |
| 750 |
" }\n" |
| 751 |
" exit(EXIT_FAILURE);\n" |
| 752 |
" }\n" |
| 753 |
"\\&\n" |
| 754 |
" printf(\"Name: %s; UID: %jd\\[rs]n\", pwd.pw_gecos,\n" |
| 755 |
" (intmax_t) pwd.pw_uid);\n" |
| 756 |
" exit(EXIT_SUCCESS);\n" |
| 757 |
"}\n" |
| 758 |
msgstr "" |
| 759 |
"#include E<lt>errno.hE<gt>\n" |
| 760 |
"#include E<lt>pwd.hE<gt>\n" |
| 761 |
"#include E<lt>stdint.hE<gt>\n" |
| 762 |
"#include E<lt>stdio.hE<gt>\n" |
| 763 |
"#include E<lt>stdlib.hE<gt>\n" |
| 764 |
"#include E<lt>unistd.hE<gt>\n" |
| 765 |
"\\&\n" |
| 766 |
"int\n" |
| 767 |
"main(int argc, char *argv[])\n" |
| 768 |
"{\n" |
| 769 |
" struct passwd pwd;\n" |
| 770 |
" struct passwd *result;\n" |
| 771 |
" char *buf;\n" |
| 772 |
" long bufsize;\n" |
| 773 |
" int s;\n" |
| 774 |
"\\&\n" |
| 775 |
" if (argc != 2) {\n" |
| 776 |
" fprintf(stderr, \"Utilisation : %s nom utilisateur\\[rs]n\", argv[0]);\n" |
| 777 |
" exit(EXIT_FAILURE);\n" |
| 778 |
" }\n" |
| 779 |
"\\&\n" |
| 780 |
" bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n" |
| 781 |
" if (bufsize == -1) /* Valeur indéterminée */\n" |
| 782 |
" bufsize = 16384; /* Devrait largement suffire */\n" |
| 783 |
"\\&\n" |
| 784 |
" buf = malloc(bufsize);\n" |
| 785 |
" if (buf == NULL) {\n" |
| 786 |
" perror(\\\"malloc\\\");\n" |
| 787 |
" exit(EXIT_FAILURE);\n" |
| 788 |
" }\n" |
| 789 |
"\\&\n" |
| 790 |
" s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n" |
| 791 |
" if (result == NULL) {\n" |
| 792 |
" if (s == 0)\n" |
| 793 |
" printf(\"Non trouvé\\[rs]n\");\n" |
| 794 |
" else {\n" |
| 795 |
" errno = s;\n" |
| 796 |
" perror(\"getpwnam_r\");\n" |
| 797 |
" }\n" |
| 798 |
" exit(EXIT_FAILURE);\n" |
| 799 |
" }\n" |
| 800 |
"\\&\n" |
| 801 |
" printf(\"Nom : %s; UID : %jd\\[rs]n\", pwd.pw_gecos,\n" |
| 802 |
" (intmax_t) pwd.pw_uid);\n" |
| 803 |
" exit(EXIT_SUCCESS);\n" |
| 804 |
"}\n" |
| 805 |
|
| 806 |
#. SRC END |
| 807 |
#. type: SH |
| 808 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 809 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 810 |
#, no-wrap |
| 811 |
msgid "SEE ALSO" |
| 812 |
msgstr "VOIR AUSSI" |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 816 |
#: opensuse-tumbleweed |
| 817 |
msgid "" |
| 818 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 819 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)" |
| 820 |
msgstr "" |
| 821 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 822 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)" |
| 823 |
|
| 824 |
#. type: TH |
| 825 |
#: debian-trixie |
| 826 |
#, no-wrap |
| 827 |
msgid "2024-06-15" |
| 828 |
msgstr "15 juin 2024" |
| 829 |
|
| 830 |
#. type: TH |
| 831 |
#: debian-trixie |
| 832 |
#, no-wrap |
| 833 |
msgid "Linux man-pages 6.9.1" |
| 834 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 835 |
|
| 836 |
#. type: Plain text |
| 837 |
#: debian-trixie |
| 838 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 839 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 840 |
|
| 841 |
#. type: Plain text |
| 842 |
#: debian-trixie |
| 843 |
#, no-wrap |
| 844 |
msgid "" |
| 845 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 846 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 847 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 848 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 849 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 850 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 851 |
msgstr "" |
| 852 |
"B<int getpwnam_r(const char *restrict >I<nom>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 853 |
"B< char >I<tampon>B<[restrict .>I<taille_tampon>B<], size_t >I<taille_tampon>B<,>\n" |
| 854 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 855 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 856 |
"B< char >I<tampon>B<[restrict .>I<taille_tampon>B<], size_t >I<taille_tampon>B<,>\n" |
| 857 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 858 |
|
| 859 |
#. type: Plain text |
| 860 |
#: debian-trixie |
| 861 |
msgid "" |
| 862 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 863 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 864 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 865 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 866 |
"buffer I<buf> of size I<buflen>. A pointer to the result (in case of " |
| 867 |
"success) or NULL (in case no entry was found or an error occurred) is stored " |
| 868 |
"in I<*result>." |
| 869 |
msgstr "" |
| 870 |
"Les fonctions B<getpwnam_r>() et B<getpwuid_r>() fournissent les mêmes " |
| 871 |
"informations que B<getpwnam>() et B<getpwuid>() mais enregistrent la " |
| 872 |
"structure I<passwd> trouvée dans l'espace pointé par I<pwd>. Cette structure " |
| 873 |
"I<passwd> contient des pointeurs vers des chaînes qui sont enregistrées dans " |
| 874 |
"le I<tampon> de taille I<taille_tampon>. Un pointeur vers le résultat (en " |
| 875 |
"cas de succès) ou NULL (au cas où aucune entrée n'ait été trouvée ou qu'une " |
| 876 |
"erreur soit survenue) est enregistré dans I<*result>." |
| 877 |
|
| 878 |
#. type: SH |
| 879 |
#: debian-trixie debian-unstable |
| 880 |
#, no-wrap |
| 881 |
msgid "NOTE" |
| 882 |
msgstr "NOTE" |
| 883 |
|
| 884 |
#. type: Plain text |
| 885 |
#: debian-trixie debian-unstable |
| 886 |
msgid "" |
| 887 |
"The user password database mostly refers to I</etc/passwd>. However, with " |
| 888 |
"recent systems it also refers to network wide databases using NIS, LDAP and " |
| 889 |
"other local files as configured in I</etc/nsswitch.conf>." |
| 890 |
msgstr "" |
| 891 |
"La base de données des mots de passe des utilisateurs renvoie la plupart du " |
| 892 |
"temps à I</etc/passwd>. Cependant, sur les systèmes récents, elle renvoie " |
| 893 |
"aussi aux bases de données sur le réseau utilisant NIS, LDAP, ou à d'autres " |
| 894 |
"fichiers locaux comme configurés dans I</etc/nsswitch.conf>." |
| 895 |
|
| 896 |
#. type: TP |
| 897 |
#: debian-trixie debian-unstable |
| 898 |
#, no-wrap |
| 899 |
msgid "I</etc/nsswitch.conf>" |
| 900 |
msgstr "I</etc/nsswitch.conf>" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: debian-trixie debian-unstable |
| 904 |
msgid "System Databases and Name Service Switch configuration file" |
| 905 |
msgstr "" |
| 906 |
"Fichier de configuration des bases de données du système et de NSS (Name " |
| 907 |
"Service Switch)" |
| 908 |
|
| 909 |
#. type: Plain text |
| 910 |
#: debian-trixie debian-unstable |
| 911 |
msgid "" |
| 912 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 913 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), " |
| 914 |
"B<nsswitch.conf>(5), B<passwd>(5)" |
| 915 |
msgstr "" |
| 916 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 917 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), " |
| 918 |
"B<nsswitch.conf>(5), B<passwd>(5)" |
| 919 |
|
| 920 |
#. type: TH |
| 921 |
#: fedora-44 fedora-rawhide |
| 922 |
#, no-wrap |
| 923 |
msgid "2024-12-24" |
| 924 |
msgstr "24 décembre 2024" |
| 925 |
|
| 926 |
#. type: TH |
| 927 |
#: fedora-44 fedora-rawhide |
| 928 |
#, no-wrap |
| 929 |
msgid "Linux man-pages 6.13" |
| 930 |
msgstr "Pages du manuel de Linux 6.13" |
| 931 |
|
| 932 |
#. type: Plain text |
| 933 |
#: fedora-44 fedora-rawhide |
| 934 |
#, no-wrap |
| 935 |
msgid "" |
| 936 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 937 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 938 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 939 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 940 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 941 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 942 |
msgstr "" |
| 943 |
"B<int getpwnam_r(const char *restrict >I<nom>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 944 |
"B< char >I<tampon>B<[restrict .>I<taille>B<], size_t >I<taille>B<,>\n" |
| 945 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 946 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 947 |
"B< char >I<tampon>B<[restrict .>I<taille>B<], size_t >I<taille>B<,>\n" |
| 948 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 949 |
|
| 950 |
#. type: TH |
| 951 |
#: mageia-cauldron |
| 952 |
#, no-wrap |
| 953 |
msgid "Linux man-pages 6.17" |
| 954 |
msgstr "Pages du manuel de Linux 6.17" |
| 955 |
|
| 956 |
#. type: TH |
| 957 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 958 |
#, no-wrap |
| 959 |
msgid "Linux man-pages (unreleased)" |
| 960 |
msgstr "Pages du manuel de Linux (non publiées)" |