Debian Codegraph @

po/es/man3/getpwnam.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 1998-01-30 19:53+0200\n"
10 "Last-Translator: Gerardo Aburruzaga García <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\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 #, fuzzy, no-wrap
23 #| msgid "B<getpwnam>()"
24 msgid "getpwnam"
25 msgstr "B<getpwnam>()"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 Febrero 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Páginas de Manual de Linux 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOMBRE"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "getpwnam, getpwnam_r, getpwuid, getpwuid_r - get password file entry"
52 msgstr ""
53 "getpwnam, getpwnam_r, getpwuid, getpwuid_r - obtienen una entrada del "
54 "fichero de cuentas de usuario"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSIS"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid ""
81 "B<#include E<lt>sys/types.hE<gt>>\n"
82 "B<#include E<lt>pwd.hE<gt>>\n"
83 msgstr ""
84 "B<#include E<lt>sys/types.hE<gt>>\n"
85 "B<#include E<lt>pwd.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid "B<struct passwd *getpwnam(const char *>I<name>B<);>\n"
92 msgid ""
93 "B<struct passwd *getpwnam(const char *>I<name>B<);>\n"
94 "B<struct passwd *getpwuid(uid_t >I<uid>B<);>\n"
95 msgstr "B<struct passwd *getpwnam(const char * >I<nombre>B<);>\n"
96
97 #. type: Plain text
98 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
99 #: opensuse-tumbleweed
100 #, no-wrap
101 msgid ""
102 "B<int getpwnam_r(>size_t size;\n"
103 "B< const char *restrict >I<name>B<,>\n"
104 "B< struct passwd *restrict >I<pwd>B<,>\n"
105 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
106 "B< struct passwd **restrict >I<result>B<);>\n"
107 "B<int getpwuid_r(>size_t size;\n"
108 "B< uid_t >I<uid>B<,>\n"
109 "B< struct passwd *restrict >I<pwd>B<,>\n"
110 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
111 "B< struct passwd **restrict >I<result>B<);>\n"
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 ""
118 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
119 msgstr ""
120 "Requisitos de Macros de Prueba de Características para glibc (véase "
121 "B<feature_test_macros>(7)):"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid "B<getpwnam_r>(), B<getpwuid_r>():"
127 msgstr "B<getpwnam_r>(), B<getpwuid_r>():"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid ""
134 " _POSIX_C_SOURCE\n"
135 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
136 msgstr ""
137 " _POSIX_C_SOURCE\n"
138 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
139
140 #. type: SH
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid "DESCRIPTION"
145 msgstr "DESCRIPCIÓN"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, fuzzy
151 #| msgid ""
152 #| "The B<getpwnam()> function returns a pointer to a structure containing "
153 #| "the broken out fields of a line from I</etc/passwd> for the entry that "
154 #| "matches the user name I<name>."
155 msgid ""
156 "The B<getpwnam>() function returns a pointer to a structure containing the "
157 "broken-out fields of the record in the password database (e.g., the local "
158 "password file I</etc/passwd>, NIS, and LDAP) that matches the username "
159 "I<name>."
160 msgstr ""
161 "La función B<getpwnam()> devuelve un puntero a una estructura que contiene "
162 "los campos de una línea de I</etc/passwd> para la entrada que concuerda con "
163 "el nombre de usuario I<nombre>."
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, fuzzy
169 #| msgid ""
170 #| "The B<getpwuid()> function returns a pointer to a structure containing "
171 #| "the broken out fields of a line from I</etc/passwd> for the entry that "
172 #| "matches the user uid I<uid>."
173 msgid ""
174 "The B<getpwuid>() function returns a pointer to a structure containing the "
175 "broken-out fields of the record in the password database that matches the "
176 "user ID I<uid>."
177 msgstr ""
178 "La función B<getpwuid()> devuelve un puntero a una estructura que contiene "
179 "los campos de una línea de I</etc/passwd> para la entrada que concuerda con "
180 "el uid del usuario I<uid>."
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:"
186 msgstr "La estructura I<passwd> se define en I<E<lt>pwd.hE<gt>> así:"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, fuzzy, no-wrap
192 #| msgid ""
193 #| "struct passwd {\n"
194 #| " char *pw_name;\t\t/* user name */\n"
195 #| " char *pw_passwd;\t\t/* user password */\n"
196 #| " uid_t pw_uid;\t\t\t/* user id */\n"
197 #| " gid_t pw_gid;\t\t\t/* group id */\n"
198 #| " char *pw_gecos; \t/* real name */\n"
199 #| " char *pw_dir; \t\t/* home directory */\n"
200 #| " char *pw_shell; \t/* shell program */\n"
201 #| "};\n"
202 msgid ""
203 "struct passwd {\n"
204 " char *pw_name; /* username */\n"
205 " char *pw_passwd; /* user password */\n"
206 " uid_t pw_uid; /* user ID */\n"
207 " gid_t pw_gid; /* group ID */\n"
208 " char *pw_gecos; /* user information */\n"
209 " char *pw_dir; /* home directory */\n"
210 " char *pw_shell; /* shell program */\n"
211 "};\n"
212 msgstr ""
213 "struct passwd {\n"
214 " char *pw_name;\t/* nombre de usuario */\n"
215 " char *pw_passwd;\t/* contraseña cifrada */\n"
216 " uid_t pw_uid;\t\t/* id. del usuario */\n"
217 " gid_t pw_gid;\t\t/* id. del grupo primario */\n"
218 " char *pw_gecos; /* nombre real */\n"
219 " char *pw_dir; \t/* directorio de inicio */\n"
220 " char *pw_shell; /* programa caparazón */\n"
221 "};\n"
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "See B<passwd>(5) for more information about these fields."
227 msgstr ""
228
229 #. type: Plain text
230 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
231 #: opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same "
234 "information as B<getpwnam>() and B<getpwuid>(), but store the retrieved "
235 "I<passwd> structure in the space pointed to by I<pwd>. The string fields "
236 "pointed to by the members of the I<passwd> structure are stored in the "
237 "buffer I<buf> of size I<size>. A pointer to the result (in case of success) "
238 "or NULL (in case no entry was found or an error occurred) is stored in "
239 "I<*result>."
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid "The call"
246 msgstr "La llamada"
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 " sysconf(_SC_GETPW_R_SIZE_MAX)\n"
253 msgid "sysconf(_SC_GETPW_R_SIZE_MAX)\n"
254 msgstr " sysconf(_SC_GETPW_R_SIZE_MAX)\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 "returns either -1, without changing I<errno>, or an initial suggested size "
261 "for I<buf>. (If this size is too small, the call fails with B<ERANGE>, in "
262 "which case the caller can retry with a larger buffer.)"
263 msgstr ""
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "RETURN VALUE"
270 msgstr "VALOR DEVUELTO"
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 #, fuzzy
276 #| msgid ""
277 #| "The B<getpwnam()> and B<getpwuid()> functions return a pointer to the "
278 #| "passwd structure, or NULL if the matching entry is not found or an error "
279 #| "occurs."
280 msgid ""
281 "The B<getpwnam>() and B<getpwuid>() functions return a pointer to a "
282 "I<passwd> structure, or NULL if the matching entry is not found or an error "
283 "occurs. If an error occurs, I<errno> is set to indicate the error. If one "
284 "wants to check I<errno> after the call, it should be set to zero before the "
285 "call."
286 msgstr ""
287 "Las funciones B<getpwnam()> y B<getpwuid()> devuelven un puntero a la "
288 "estructura passwd, o NULL si la entrada buscada no se encuentra u ocurre un "
289 "error."
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "The return value may point to a static area, and may be overwritten by "
296 "subsequent calls to B<getpwent>(3), B<getpwnam>(), or B<getpwuid>(). (Do "
297 "not pass the returned pointer to B<free>(3).)"
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "On success, B<getpwnam_r>() and B<getpwuid_r>() return zero, and set "
305 "I<*result> to I<pwd>. If no matching password record was found, these "
306 "functions return 0 and store NULL in I<*result>. In case of error, an error "
307 "number is returned, and NULL is stored in I<*result>."
308 msgstr ""
309
310 #. type: SH
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "ERRORS"
315 msgstr "ERRORES"
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<0> or B<ENOENT> or B<ESRCH> or B<EBADF> or B<EPERM> or ..."
322 msgstr "B<0> o B<ENOENT> o B<ESRCH> o B<EBADF> o B<EPERM> o ..."
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "The given I<name> or I<uid> was not found."
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<EINTR>"
335 msgstr "B<EINTR>"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "A signal was caught; see B<signal>(7)."
341 msgstr "Se atrapó una señal; consulte B<signal>(7)."
342
343 #. type: TP
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "B<EIO>"
348 msgstr "B<EIO>"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid "I/O error."
354 msgstr ""
355
356 #. type: TP
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "B<EMFILE>"
361 msgstr "B<EMFILE>"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "The per-process limit on the number of open file descriptors has been "
368 "reached."
369 msgstr ""
370 "Se ha alcanzado el límite de descriptores de archivo abiertos para cada "
371 "proceso."
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<ENFILE>"
378 msgstr "B<ENFILE>"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "The system-wide limit on the total number of open files has been reached."
385 msgstr ""
386 "Se ha alcanzado el límite máximo de archivos abiertos para el conjunto del "
387 "sistema."
388
389 #. type: TP
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "B<ENOMEM>"
394 msgstr "B<ENOMEM>"
395
396 #. #-#-#-#-# archlinux: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
397 #. not in POSIX
398 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
399 #. type: Plain text
400 #. #-#-#-#-# debian-trixie: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
401 #. not in POSIX
402 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
403 #. type: Plain text
404 #. #-#-#-#-# debian-unstable: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
405 #. not in POSIX
406 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
407 #. type: Plain text
408 #. #-#-#-#-# fedora-44: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
409 #. not in POSIX
410 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
411 #. type: Plain text
412 #. #-#-#-#-# fedora-rawhide: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
413 #. not in POSIX
414 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
415 #. type: Plain text
416 #. #-#-#-#-# mageia-cauldron: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
417 #. not in POSIX
418 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
419 #. type: Plain text
420 #. #-#-#-#-# opensuse-leap-16-1: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
421 #. not in POSIX
422 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
423 #. type: Plain text
424 #. #-#-#-#-# opensuse-tumbleweed: getpwnam.3.pot (PACKAGE VERSION) #-#-#-#-#
425 #. not in POSIX
426 #. This structure is static, allocated 0 or 1 times. No memory leak. (libc45)
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid "Insufficient memory to allocate I<passwd> structure."
431 msgstr "Memoria insuficiente para alojar la estructura I<passwd>."
432
433 #. type: TP
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "B<ERANGE>"
438 msgstr "B<ERANGE>"
439
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 "Insufficient buffer space supplied."
444 msgstr ""
445
446 #. type: SH
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "FILES"
451 msgstr "ARCHIVOS"
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "I</etc/passwd>"
458 msgstr "I</etc/passwd>"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, fuzzy
464 #| msgid "password database file"
465 msgid "local password database file"
466 msgstr "fichero con los datos de las cuentas de usuario"
467
468 #. type: SH
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "ATTRIBUTES"
473 msgstr "ATRIBUTOS"
474
475 #. type: Plain text
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 msgid ""
479 "For an explanation of the terms used in this section, see B<attributes>(7)."
480 msgstr ""
481 "Para obtener una explicación de los términos usados en esta sección, véase "
482 "B<attributes>(7)."
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 "Interface"
489 msgstr "Interfaz"
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 "Attribute"
496 msgstr "Atributo"
497
498 #. type: tbl table
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "Value"
503 msgstr "Valor"
504
505 #. type: tbl table
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid ".na\n"
510 msgstr ".na\n"
511
512 #. type: tbl table
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid ".nh\n"
517 msgstr ".nh\n"
518
519 #. type: tbl table
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 #, no-wrap
523 msgid "B<getpwnam>()"
524 msgstr "B<getpwnam>()"
525
526 #. type: tbl table
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "Thread safety"
531 msgstr "Seguridad del hilo"
532
533 #. type: tbl table
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, fuzzy, no-wrap
537 #| msgid "MT-Safe locale"
538 msgid "MT-Unsafe race:pwnam locale"
539 msgstr "Configuración regional de multi-hilo seguro"
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 "B<getpwuid>()"
546 msgstr "B<getpwuid>()"
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 #, fuzzy, no-wrap
552 #| msgid "MT-Safe locale"
553 msgid "MT-Unsafe race:pwuid locale"
554 msgstr "Configuración regional de multi-hilo seguro"
555
556 #. type: tbl table
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, fuzzy, no-wrap
560 #| msgid "B<getpwnam_r>(), B<getpwuid_r>():"
561 msgid ""
562 "B<getpwnam_r>(),\n"
563 "B<getpwuid_r>()"
564 msgstr "B<getpwnam_r>(), B<getpwuid_r>():"
565
566 #. type: tbl table
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "MT-Safe locale"
571 msgstr "Configuración regional de multi-hilo seguro"
572
573 #. type: SH
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "VERSIONS"
578 msgstr "VERSIONES"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "The I<pw_gecos> field is not specified in POSIX, but is present on most "
585 "implementations."
586 msgstr ""
587
588 #. type: SH
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "STANDARDS"
593 msgstr "ESTÁNDARES"
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid "POSIX.1-2008."
599 msgstr "POSIX.1-2008."
600
601 #. type: SH
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "HISTORY"
606 msgstr "HISTORIAL"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid "POSIX.1-2001, SVr4, 4.3BSD."
612 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
613
614 #. type: SH
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "NOTES"
619 msgstr "NOTAS"
620
621 #. more precisely:
622 #. AIX 5.1 - gives ESRCH
623 #. OSF1 4.0g - gives EWOULDBLOCK
624 #. libc, glibc up to glibc 2.6, Irix 6.5 - give ENOENT
625 #. since glibc 2.7 - give 0
626 #. FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM
627 #. SunOS 5.8 - gives EBADF
628 #. Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0
629 #. type: Plain text
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 msgid ""
633 "The formulation given above under \"RETURN VALUE\" is from POSIX.1-2001. It "
634 "does not call \"not found\" an error, and hence does not specify what value "
635 "I<errno> might have in this situation. But that makes it impossible to "
636 "recognize errors. One might argue that according to POSIX I<errno> should "
637 "be left unchanged if an entry is not found. Experiments on various UNIX-"
638 "like systems show that lots of different values occur in this situation: 0, "
639 "ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others."
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "The I<pw_dir> field contains the name of the initial working directory of "
647 "the user. Login programs use the value of this field to initialize the "
648 "B<HOME> environment variable for the login shell. An application that wants "
649 "to determine its user's home directory should inspect the value of B<HOME> "
650 "(rather than the value I<getpwuid(getuid())-E<gt>pw_dir>) since this allows "
651 "the user to modify their notion of \"the home directory\" during a login "
652 "session. To determine the (initial) home directory of another user, it is "
653 "necessary to use I<getpwnam(\"username\")-E<gt>pw_dir> or similar."
654 msgstr ""
655
656 #. type: SH
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "EXAMPLES"
661 msgstr "EJEMPLOS"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "The program below demonstrates the use of B<getpwnam_r>() to find the full "
668 "username and user ID for the username supplied as a command-line argument."
669 msgstr ""
670
671 #. type: Plain text
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 #, no-wrap
675 msgid ""
676 "#include E<lt>errno.hE<gt>\n"
677 "#include E<lt>pwd.hE<gt>\n"
678 "#include E<lt>stdint.hE<gt>\n"
679 "#include E<lt>stdio.hE<gt>\n"
680 "#include E<lt>stdlib.hE<gt>\n"
681 "#include E<lt>unistd.hE<gt>\n"
682 "\\&\n"
683 "int\n"
684 "main(int argc, char *argv[])\n"
685 "{\n"
686 " struct passwd pwd;\n"
687 " struct passwd *result;\n"
688 " char *buf;\n"
689 " long bufsize;\n"
690 " int s;\n"
691 "\\&\n"
692 " if (argc != 2) {\n"
693 " fprintf(stderr, \"Usage: %s username\\[rs]n\", argv[0]);\n"
694 " exit(EXIT_FAILURE);\n"
695 " }\n"
696 "\\&\n"
697 " bufsize = sysconf(_SC_GETPW_R_SIZE_MAX);\n"
698 " if (bufsize == -1) /* Value was indeterminate */\n"
699 " bufsize = 16384; /* Should be more than enough */\n"
700 "\\&\n"
701 " buf = malloc(bufsize);\n"
702 " if (buf == NULL) {\n"
703 " perror(\"malloc\");\n"
704 " exit(EXIT_FAILURE);\n"
705 " }\n"
706 "\\&\n"
707 " s = getpwnam_r(argv[1], &pwd, buf, bufsize, &result);\n"
708 " if (result == NULL) {\n"
709 " if (s == 0)\n"
710 " printf(\"Not found\\[rs]n\");\n"
711 " else {\n"
712 " errno = s;\n"
713 " perror(\"getpwnam_r\");\n"
714 " }\n"
715 " exit(EXIT_FAILURE);\n"
716 " }\n"
717 "\\&\n"
718 " printf(\"Name: %s; UID: %jd\\[rs]n\", pwd.pw_gecos,\n"
719 " (intmax_t) pwd.pw_uid);\n"
720 " exit(EXIT_SUCCESS);\n"
721 "}\n"
722 msgstr ""
723
724 #. SRC END
725 #. type: SH
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "SEE ALSO"
730 msgstr "VÉASE TAMBIÉN"
731
732 #. type: Plain text
733 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
734 #: opensuse-tumbleweed
735 msgid ""
736 "B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), "
737 "B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)"
738 msgstr ""
739 "B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), "
740 "B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), B<passwd>(5)"
741
742 #. type: TH
743 #: debian-trixie
744 #, no-wrap
745 msgid "2024-06-15"
746 msgstr "15 Junio 2024"
747
748 #. type: TH
749 #: debian-trixie
750 #, no-wrap
751 msgid "Linux man-pages 6.9.1"
752 msgstr "Páginas de Manual de Linux 6.9.1"
753
754 #. type: Plain text
755 #: debian-trixie
756 msgid "Standard C library (I<libc>, I<-lc>)"
757 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
758
759 #. type: Plain text
760 #: debian-trixie
761 #, no-wrap
762 msgid ""
763 "B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n"
764 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
765 "B< struct passwd **restrict >I<result>B<);>\n"
766 "B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n"
767 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
768 "B< struct passwd **restrict >I<result>B<);>\n"
769 msgstr ""
770
771 #. type: Plain text
772 #: debian-trixie
773 msgid ""
774 "The B<getpwnam_r>() and B<getpwuid_r>() functions obtain the same "
775 "information as B<getpwnam>() and B<getpwuid>(), but store the retrieved "
776 "I<passwd> structure in the space pointed to by I<pwd>. The string fields "
777 "pointed to by the members of the I<passwd> structure are stored in the "
778 "buffer I<buf> of size I<buflen>. A pointer to the result (in case of "
779 "success) or NULL (in case no entry was found or an error occurred) is stored "
780 "in I<*result>."
781 msgstr ""
782
783 #. type: SH
784 #: debian-trixie debian-unstable
785 #, no-wrap
786 msgid "NOTE"
787 msgstr "NOTA"
788
789 #. type: Plain text
790 #: debian-trixie debian-unstable
791 msgid ""
792 "The user password database mostly refers to I</etc/passwd>. However, with "
793 "recent systems it also refers to network wide databases using NIS, LDAP and "
794 "other local files as configured in I</etc/nsswitch.conf>."
795 msgstr ""
796
797 #. type: TP
798 #: debian-trixie debian-unstable
799 #, no-wrap
800 msgid "I</etc/nsswitch.conf>"
801 msgstr "I</etc/nsswitch.conf>"
802
803 #. type: Plain text
804 #: debian-trixie debian-unstable
805 msgid "System Databases and Name Service Switch configuration file"
806 msgstr ""
807
808 #. type: Plain text
809 #: debian-trixie debian-unstable
810 msgid ""
811 "B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), "
812 "B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), "
813 "B<nsswitch.conf>(5), B<passwd>(5)"
814 msgstr ""
815 "B<endpwent>(3), B<fgetpwent>(3), B<getgrnam>(3), B<getpw>(3), "
816 "B<getpwent>(3), B<getspnam>(3), B<putpwent>(3), B<setpwent>(3), "
817 "B<nsswitch.conf>(5), B<passwd>(5)"
818
819 #. type: TH
820 #: fedora-44 fedora-rawhide
821 #, no-wrap
822 msgid "2024-12-24"
823 msgstr "24 Diciembre 2024"
824
825 #. type: TH
826 #: fedora-44 fedora-rawhide
827 #, no-wrap
828 msgid "Linux man-pages 6.13"
829 msgstr "Páginas de Manual de Linux 6.13"
830
831 #. type: Plain text
832 #: fedora-44 fedora-rawhide
833 #, no-wrap
834 msgid ""
835 "B<int getpwnam_r(const char *restrict >I<name>B<, struct passwd *restrict >I<pwd>B<,>\n"
836 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
837 "B< struct passwd **restrict >I<result>B<);>\n"
838 "B<int getpwuid_r(uid_t >I<uid>B<, struct passwd *restrict >I<pwd>B<,>\n"
839 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
840 "B< struct passwd **restrict >I<result>B<);>\n"
841 msgstr ""
842
843 #. type: TH
844 #: mageia-cauldron
845 #, no-wrap
846 msgid "Linux man-pages 6.17"
847 msgstr "Páginas de Manual de Linux 6.17"
848
849 #. type: TH
850 #: opensuse-leap-16-1 opensuse-tumbleweed
851 #, no-wrap
852 msgid "Linux man-pages (unreleased)"
853 msgstr "Páginas de Manual de Linux (no publicadas)"