Debian Codegraph @

po/pt_BR/man3/getpwnam.3.po

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