| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "getpwnam" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entry" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "" |
| 77 |
"B<#include E<lt>sys/types.hE<gt>>\n" |
| 78 |
"B<#include E<lt>pwd.hE<gt>>\n" |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<struct passwd *getpwnam(const char *>I<name>B<);>\n" |
| 87 |
"B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n" |
| 88 |
msgstr "" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 92 |
#: opensuse-tumbleweed |
| 93 |
#, no-wrap |
| 94 |
msgid "" |
| 95 |
"B<int getpwnam_r(>size_t size;\n" |
| 96 |
"B< const char *restrict >I<name>B<,>\n" |
| 97 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 98 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 99 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 100 |
"B<int getpwuid_r(>size_t size;\n" |
| 101 |
"B< uid_t >I<uid>B<,>\n" |
| 102 |
"B< struct passwd *restrict >I<pwd>B<,>\n" |
| 103 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 104 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 112 |
msgstr "" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "B<getpwnam_r>(), B<getpwuid_r>():" |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "" |
| 125 |
" _POSIX_C_SOURCE\n" |
| 126 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n" |
| 127 |
msgstr "" |
| 128 |
|
| 129 |
#. type: SH |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
#, no-wrap |
| 133 |
msgid "DESCRIPTION" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"The B<getpwnam>() function returns a pointer to a structure containing the " |
| 141 |
"broken-out fields of the record in the password database (e.g., the local " |
| 142 |
"password file I</etc/passwd>, NIS, and LDAP) that matches the username " |
| 143 |
"I<name>." |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "" |
| 150 |
"The B<getpwuid>() function returns a pointer to a structure containing the " |
| 151 |
"broken-out fields of the record in the password database that matches the " |
| 152 |
"user ID I<uid>." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:" |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
#, no-wrap |
| 165 |
msgid "" |
| 166 |
"struct passwd {\n" |
| 167 |
" char *pw_name; /* username */\n" |
| 168 |
" char *pw_passwd; /* user password */\n" |
| 169 |
" uid_t pw_uid; /* user ID */\n" |
| 170 |
" gid_t pw_gid; /* group ID */\n" |
| 171 |
" char *pw_gecos; /* user information */\n" |
| 172 |
" char *pw_dir; /* home directory */\n" |
| 173 |
" char *pw_shell; /* shell program */\n" |
| 174 |
"};\n" |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "See B<passwd>(5) for more information about these fields." |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 188 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 189 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 190 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 191 |
"buffer I<buf> of size I<size>. A pointer to the result (in case of success) " |
| 192 |
"or NULL (in case no entry was found or an error occurred) is stored in " |
| 193 |
"I<*result>." |
| 194 |
msgstr "" |
| 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 call" |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
#, no-wrap |
| 206 |
msgid "sysconf(_SC_GETPW_R_SIZE_MAX)\n" |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
msgid "" |
| 213 |
"returns either -1, without changing I<errno>, or an initial suggested size " |
| 214 |
"for I<buf>. (If this size is too small, the call fails with B<ERANGE>, in " |
| 215 |
"which case the caller can retry with a larger buffer.)" |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: SH |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
#, no-wrap |
| 222 |
msgid "RETURN VALUE" |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"The B<getpwnam>() and B<getpwuid>() functions return a pointer to a " |
| 230 |
"I<passwd> structure, or NULL if the matching entry is not found or an error " |
| 231 |
"occurs. If an error occurs, I<errno> is set to indicate the error. If one " |
| 232 |
"wants to check I<errno> after the call, it should be set to zero before the " |
| 233 |
"call." |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"The return value may point to a static area, and may be overwritten by " |
| 241 |
"subsequent calls to B<getpwent>(3), B<getpwnam>(), or B<getpwuid>(). (Do " |
| 242 |
"not pass the returned pointer to B<free>(3).)" |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"On success, B<getpwnam_r>() and B<getpwuid_r>() return zero, and set " |
| 250 |
"I<*result> to I<pwd>. If no matching password record was found, these " |
| 251 |
"functions return 0 and store NULL in I<*result>. In case of error, an error " |
| 252 |
"number is returned, and NULL is stored in I<*result>." |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#. type: SH |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "ERRORS" |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#. type: TP |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "B<0> or B<ENOENT> or B<ESRCH> or B<EBADF> or B<EPERM> or ..." |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
msgid "The given I<name> or I<uid> was not found." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: TP |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "B<EINTR>" |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "A signal was caught; see B<signal>(7)." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: TP |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "B<EIO>" |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "I/O error." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: TP |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "B<EMFILE>" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
msgid "" |
| 312 |
"The per-process limit on the number of open file descriptors has been " |
| 313 |
"reached." |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: TP |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "B<ENFILE>" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "" |
| 327 |
"The system-wide limit on the total number of open files has been reached." |
| 328 |
msgstr "" |
| 329 |
|
| 330 |
#. type: TP |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid "B<ENOMEM>" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. #-#-#-#-# archlinux: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 338 |
#. not in POSIX |
| 339 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 340 |
#. type: Plain text |
| 341 |
#. #-#-#-#-# debian-trixie: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 342 |
#. not in POSIX |
| 343 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 344 |
#. type: Plain text |
| 345 |
#. #-#-#-#-# debian-unstable: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 346 |
#. not in POSIX |
| 347 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 348 |
#. type: Plain text |
| 349 |
#. #-#-#-#-# fedora-44: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 350 |
#. not in POSIX |
| 351 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 352 |
#. type: Plain text |
| 353 |
#. #-#-#-#-# fedora-rawhide: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 354 |
#. not in POSIX |
| 355 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 356 |
#. type: Plain text |
| 357 |
#. #-#-#-#-# mageia-cauldron: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 358 |
#. not in POSIX |
| 359 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 360 |
#. type: Plain text |
| 361 |
#. #-#-#-#-# opensuse-leap-16-1: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 362 |
#. not in POSIX |
| 363 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 364 |
#. type: Plain text |
| 365 |
#. #-#-#-#-# opensuse-tumbleweed: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 366 |
#. not in POSIX |
| 367 |
#. This structure is static, allocated 0 or 1 times. No memory leak. (libc45) |
| 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 "Insufficient memory to allocate I<passwd> structure." |
| 372 |
msgstr "" |
| 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<ERANGE>" |
| 379 |
msgstr "" |
| 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 "Insufficient buffer space supplied." |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#. type: SH |
| 388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 389 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 390 |
#, no-wrap |
| 391 |
msgid "FILES" |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: TP |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "I</etc/passwd>" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "local password database file" |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: SH |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
#, no-wrap |
| 411 |
msgid "ATTRIBUTES" |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 416 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
msgid "" |
| 418 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 419 |
msgstr "" |
| 420 |
|
| 421 |
#. type: tbl table |
| 422 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 423 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 424 |
#, no-wrap |
| 425 |
msgid "Interface" |
| 426 |
msgstr "" |
| 427 |
|
| 428 |
#. type: tbl table |
| 429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 430 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 431 |
#, no-wrap |
| 432 |
msgid "Attribute" |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#. type: tbl table |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "Value" |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: tbl table |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid ".na\n" |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: tbl table |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
#, no-wrap |
| 453 |
msgid ".nh\n" |
| 454 |
msgstr "" |
| 455 |
|
| 456 |
#. type: tbl table |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, no-wrap |
| 460 |
msgid "B<getpwnam>()" |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#. type: tbl table |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "Thread safety" |
| 468 |
msgstr "" |
| 469 |
|
| 470 |
#. type: tbl table |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
#, no-wrap |
| 474 |
msgid "MT-Unsafe race:pwnam locale" |
| 475 |
msgstr "" |
| 476 |
|
| 477 |
#. type: tbl table |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "B<getpwuid>()" |
| 482 |
msgstr "" |
| 483 |
|
| 484 |
#. type: tbl table |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
#, no-wrap |
| 488 |
msgid "MT-Unsafe race:pwuid locale" |
| 489 |
msgstr "" |
| 490 |
|
| 491 |
#. type: tbl table |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "" |
| 496 |
"B<getpwnam_r>(),\n" |
| 497 |
"B<getpwuid_r>()" |
| 498 |
msgstr "" |
| 499 |
|
| 500 |
#. type: tbl table |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, no-wrap |
| 504 |
msgid "MT-Safe locale" |
| 505 |
msgstr "" |
| 506 |
|
| 507 |
#. type: SH |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "VERSIONS" |
| 512 |
msgstr "" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "" |
| 518 |
"The I<pw_gecos> field is not specified in POSIX, but is present on most " |
| 519 |
"implementations." |
| 520 |
msgstr "" |
| 521 |
|
| 522 |
#. type: SH |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
#, no-wrap |
| 526 |
msgid "STANDARDS" |
| 527 |
msgstr "" |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "POSIX.1-2008." |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: SH |
| 536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "HISTORY" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
msgid "POSIX.1-2001, SVr4, 4.3BSD." |
| 546 |
msgstr "" |
| 547 |
|
| 548 |
#. type: SH |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
#, no-wrap |
| 552 |
msgid "NOTES" |
| 553 |
msgstr "" |
| 554 |
|
| 555 |
#. more precisely: |
| 556 |
#. AIX 5.1 - gives ESRCH |
| 557 |
#. OSF1 4.0g - gives EWOULDBLOCK |
| 558 |
#. libc, glibc up to glibc 2.6, Irix 6.5 - give ENOENT |
| 559 |
#. since glibc 2.7 - give 0 |
| 560 |
#. FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM |
| 561 |
#. SunOS 5.8 - gives EBADF |
| 562 |
#. Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0 |
| 563 |
#. type: Plain text |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
msgid "" |
| 567 |
"The formulation given above under \"RETURN VALUE\" is from POSIX.1-2001. It " |
| 568 |
"does not call \"not found\" an error, and hence does not specify what value " |
| 569 |
"I<errno> might have in this situation. But that makes it impossible to " |
| 570 |
"recognize errors. One might argue that according to POSIX I<errno> should " |
| 571 |
"be left unchanged if an entry is not found. Experiments on various UNIX-" |
| 572 |
"like systems show that lots of different values occur in this situation: 0, " |
| 573 |
"ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others." |
| 574 |
msgstr "" |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"The I<pw_dir> field contains the name of the initial working directory of " |
| 581 |
"the user. Login programs use the value of this field to initialize the " |
| 582 |
"B<HOME> environment variable for the login shell. An application that wants " |
| 583 |
"to determine its user's home directory should inspect the value of B<HOME> " |
| 584 |
"(rather than the value I<getpwuid(getuid())-E<gt>pw_dir>) since this allows " |
| 585 |
"the user to modify their notion of \"the home directory\" during a login " |
| 586 |
"session. To determine the (initial) home directory of another user, it is " |
| 587 |
"necessary to use I<getpwnam(\"username\")-E<gt>pw_dir> or similar." |
| 588 |
msgstr "" |
| 589 |
|
| 590 |
#. type: SH |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "EXAMPLES" |
| 595 |
msgstr "" |
| 596 |
|
| 597 |
#. type: Plain text |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
msgid "" |
| 601 |
"The program below demonstrates the use of B<getpwnam_r>() to find the full " |
| 602 |
"username and user ID for the username supplied as a command-line argument." |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. type: Plain text |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
#, no-wrap |
| 609 |
msgid "" |
| 610 |
"#include E<lt>errno.hE<gt>\n" |
| 611 |
"#include E<lt>pwd.hE<gt>\n" |
| 612 |
"#include E<lt>stdint.hE<gt>\n" |
| 613 |
"#include E<lt>stdio.hE<gt>\n" |
| 614 |
"#include E<lt>stdlib.hE<gt>\n" |
| 615 |
"#include E<lt>unistd.hE<gt>\n" |
| 616 |
"\\&\n" |
| 617 |
"int\n" |
| 618 |
"main(int argc, char *argv[])\n" |
| 619 |
"{\n" |
| 620 |
" struct passwd pwd;\n" |
| 621 |
" struct passwd *result;\n" |
| 622 |
" char *buf;\n" |
| 623 |
" long bufsize;\n" |
| 624 |
" int s;\n" |
| 625 |
"\\&\n" |
| 626 |
" if (argc != 2) {\n" |
| 627 |
" fprintf(stderr, \"Usage: %s username\\[rs]n\", argv[0]);\n" |
| 628 |
" exit(EXIT_FAILURE);\n" |
| 629 |
" }\n" |
| 630 |
"\\&\n" |
| 631 |
" bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n" |
| 632 |
" if (bufsize == -1) /* Value was indeterminate */\n" |
| 633 |
" bufsize = 16384; /* Should be more than enough */\n" |
| 634 |
"\\&\n" |
| 635 |
" buf = malloc(bufsize);\n" |
| 636 |
" if (buf == NULL) {\n" |
| 637 |
" perror(\"malloc\");\n" |
| 638 |
" exit(EXIT_FAILURE);\n" |
| 639 |
" }\n" |
| 640 |
"\\&\n" |
| 641 |
" s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n" |
| 642 |
" if (result == NULL) {\n" |
| 643 |
" if (s == 0)\n" |
| 644 |
" printf(\"Not found\\[rs]n\");\n" |
| 645 |
" else {\n" |
| 646 |
" errno = s;\n" |
| 647 |
" perror(\"getpwnam_r\");\n" |
| 648 |
" }\n" |
| 649 |
" exit(EXIT_FAILURE);\n" |
| 650 |
" }\n" |
| 651 |
"\\&\n" |
| 652 |
" printf(\"Name: %s; UID: %jd\\[rs]n\", pwd.pw_gecos,\n" |
| 653 |
" (intmax_t) pwd.pw_uid);\n" |
| 654 |
" exit(EXIT_SUCCESS);\n" |
| 655 |
"}\n" |
| 656 |
msgstr "" |
| 657 |
|
| 658 |
#. SRC END |
| 659 |
#. type: SH |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
#, no-wrap |
| 663 |
msgid "SEE ALSO" |
| 664 |
msgstr "" |
| 665 |
|
| 666 |
#. type: Plain text |
| 667 |
#: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 |
| 668 |
#: opensuse-tumbleweed |
| 669 |
msgid "" |
| 670 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 671 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: TH |
| 675 |
#: debian-trixie |
| 676 |
#, no-wrap |
| 677 |
msgid "2024-06-15" |
| 678 |
msgstr "" |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: debian-trixie |
| 682 |
#, no-wrap |
| 683 |
msgid "Linux man-pages 6.9.1" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: Plain text |
| 687 |
#: debian-trixie |
| 688 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 689 |
msgstr "" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: debian-trixie |
| 693 |
#, no-wrap |
| 694 |
msgid "" |
| 695 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 696 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 697 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 698 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 699 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 700 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 701 |
msgstr "" |
| 702 |
|
| 703 |
#. type: Plain text |
| 704 |
#: debian-trixie |
| 705 |
msgid "" |
| 706 |
"The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same " |
| 707 |
"information as B<getpwnam>() and B<getpwuid>(), but store the retrieved " |
| 708 |
"I<passwd> structure in the space pointed to by I<pwd>. The string fields " |
| 709 |
"pointed to by the members of the I<passwd> structure are stored in the " |
| 710 |
"buffer I<buf> of size I<buflen>. A pointer to the result (in case of " |
| 711 |
"success) or NULL (in case no entry was found or an error occurred) is stored " |
| 712 |
"in I<*result>." |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#. type: SH |
| 716 |
#: debian-trixie debian-unstable |
| 717 |
#, no-wrap |
| 718 |
msgid "NOTE" |
| 719 |
msgstr "" |
| 720 |
|
| 721 |
#. type: Plain text |
| 722 |
#: debian-trixie debian-unstable |
| 723 |
msgid "" |
| 724 |
"The user password database mostly refers to I</etc/passwd>. However, with " |
| 725 |
"recent systems it also refers to network wide databases using NIS, LDAP and " |
| 726 |
"other local files as configured in I</etc/nsswitch.conf>." |
| 727 |
msgstr "" |
| 728 |
|
| 729 |
#. type: TP |
| 730 |
#: debian-trixie debian-unstable |
| 731 |
#, no-wrap |
| 732 |
msgid "I</etc/nsswitch.conf>" |
| 733 |
msgstr "" |
| 734 |
|
| 735 |
#. type: Plain text |
| 736 |
#: debian-trixie debian-unstable |
| 737 |
msgid "System Databases and Name Service Switch configuration file" |
| 738 |
msgstr "" |
| 739 |
|
| 740 |
#. type: Plain text |
| 741 |
#: debian-trixie debian-unstable |
| 742 |
msgid "" |
| 743 |
"B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), " |
| 744 |
"B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), " |
| 745 |
"B<nsswitch.conf>(5), B<passwd>(5)" |
| 746 |
msgstr "" |
| 747 |
|
| 748 |
#. type: TH |
| 749 |
#: fedora-44 fedora-rawhide |
| 750 |
#, no-wrap |
| 751 |
msgid "2024-12-24" |
| 752 |
msgstr "" |
| 753 |
|
| 754 |
#. type: TH |
| 755 |
#: fedora-44 fedora-rawhide |
| 756 |
#, no-wrap |
| 757 |
msgid "Linux man-pages 6.13" |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. type: Plain text |
| 761 |
#: fedora-44 fedora-rawhide |
| 762 |
#, no-wrap |
| 763 |
msgid "" |
| 764 |
"B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 765 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 766 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 767 |
"B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n" |
| 768 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 769 |
"B< struct passwd **restrict >I<result>B<);>\n" |
| 770 |
msgstr "" |
| 771 |
|
| 772 |
#. type: TH |
| 773 |
#: mageia-cauldron |
| 774 |
#, no-wrap |
| 775 |
msgid "Linux man-pages 6.17" |
| 776 |
msgstr "" |
| 777 |
|
| 778 |
#. type: TH |
| 779 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
#, no-wrap |
| 781 |
msgid "Linux man-pages (unreleased)" |
| 782 |
msgstr "" |