Debian Codegraph @

po/pt_BR/man3/getutent.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 # Felipe M Pereira <[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:26+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<void setutent(void);>"
26 msgid "getutent"
27 msgstr "B<void setutent(void);>"
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 ""
54 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
55 "access utmp file entries"
56 msgstr ""
57 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
58 "acessam entradas do arquivo utmp"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "BIBLIOTECA"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "SINOPSE"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>utmp.hE<gt>>\n"
85 msgstr "B<#include E<lt>utmp.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 #, no-wrap
91 msgid ""
92 "B<struct utmp *getutent(void);>\n"
93 "B<struct utmp *getutid(const struct utmp *>I<ut>B<);>\n"
94 "B<struct utmp *getutline(const struct utmp *>I<ut>B<);>\n"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy, no-wrap
101 #| msgid "B<struct utmp *getutline(struct utmp *>I<ut>B<);>"
102 msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>\n"
103 msgstr "B<struct utmp *getutline(struct utmp *>I<ut>B<);>"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, fuzzy, no-wrap
109 #| msgid "B<void setutent(void);>"
110 msgid ""
111 "B<void setutent(void);>\n"
112 "B<void endutent(void);>\n"
113 msgstr "B<void setutent(void);>"
114
115 #. type: Plain text
116 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
117 #: opensuse-tumbleweed
118 #, fuzzy, no-wrap
119 #| msgid "B<void utmpname(const char *>I<file>B<);>"
120 msgid "B<int utmpname(const char *>I<path>B<);>\n"
121 msgstr "B<void utmpname(const char *>I<file>B<);>"
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr "DESCRIÇÃO"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "New applications should use the POSIX.1-specified \"utmpx\" versions of "
135 "these functions; see STANDARDS."
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
140 #: opensuse-tumbleweed
141 #, fuzzy
142 #| msgid ""
143 #| "B<utmpname>() sets the name of the utmp-format file for the other utmp "
144 #| "functions to access. If B<utmpname>() is not used to set the filename "
145 #| "before the other functions are used, they assume B<_PATH_UTMP>, as "
146 #| "defined in I<E<lt>paths.hE<gt>>."
147 msgid ""
148 "B<utmpname>() sets the pathname of the utmp-format file for the other utmp "
149 "functions to access. If B<utmpname>() is not used to set the pathname "
150 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
151 "in I<E<lt>paths.hE<gt>>."
152 msgstr ""
153 "B<utmpname>() ajusta o nome do arquivo de formato utmp para outras funções "
154 "utmp acessarem. Se B<utmpname>() não for usado para ajustar o nome do "
155 "arquivo antes das outras funções serem usadas, elas assumem B<_PATH_UTMP>, "
156 "como definido em I<E<lt>paths.hE<gt>>."
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, fuzzy
162 #| msgid ""
163 #| "B<setutent>() rewinds the file pointer to the beginning of the utmp "
164 #| "file. It is generally a Good Idea to call it before any of the other "
165 #| "functions."
166 msgid ""
167 "B<setutent>() rewinds the file pointer to the beginning of the utmp file. "
168 "It is generally a good idea to call it before any of the other functions."
169 msgstr ""
170 "B<setutent>() retrocede o ponteiro do arquivo para o início do arquivo utmp. "
171 "É geralmente uma boa idéia chamá-la antes de qualquer outra função."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, fuzzy
177 #| msgid ""
178 #| "B<endutent>() closes the utmp file. It should be called when the user "
179 #| "code is done accessing the file with the other functions."
180 msgid ""
181 "B<endutent>() closes the utmp file. It should be called when the user code "
182 "is done accessing the file with the other functions."
183 msgstr ""
184 "B<endutent>() fecha o arquivo utmp. Ela deveria ser chamada quando o código "
185 "do usuário terminou de acessar o arquivo com as outras funções."
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, fuzzy
191 #| msgid ""
192 #| "B<getutent>() reads a line from the current file position in the utmp "
193 #| "file. It returns a pointer to a structure containing the fields of the "
194 #| "line."
195 msgid ""
196 "B<getutent>() reads a line from the current file position in the utmp "
197 "file. It returns a pointer to a structure containing the fields of the "
198 "line. The definition of this structure is shown in B<utmp>(5)."
199 msgstr ""
200 "B<getutent>() lê uma linha da posição atual do arquivo utmp. Ela retorna um "
201 "ponteiro para uma estrutura contendo os campos da linha."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, fuzzy
207 #| msgid ""
208 #| "B<getutid>() searches forward from the current file position in the utmp "
209 #| "file based upon I<ut>. If I<ut>B<-E<gt>ut_type> is B<RUN_LVL>, "
210 #| "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>() will find the "
211 #| "first entry whose B<ut_type> field matches I<ut>B<-E<gt>ut_type>. If "
212 #| "I<ut>B<-E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, "
213 #| "B<USER_PROCESS>, or B<DEAD_PROCESS>, B<getutid>() will find the first "
214 #| "entry whose B<ut_id> field matches I<ut>B<-E<gt>ut_id>."
215 msgid ""
216 "B<getutid>() searches forward from the current file position in the utmp "
217 "file based upon I<ut>. If I<ut-E<gt>ut_type> is one of B<RUN_LVL>, "
218 "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>() will find the first "
219 "entry whose I<ut_type> field matches I<ut-E<gt>ut_type>. If I<ut-"
220 "E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
221 "or B<DEAD_PROCESS>, B<getutid>() will find the first entry whose I<ut_id> "
222 "field matches I<ut-E<gt>ut_id>."
223 msgstr ""
224 "B<getutid>() busca para frente a partir da posição atual no arquivo utmp "
225 "baseando-se em I<ut>. Se I<ut>B<-E<gt>ut_type> é B<RUN_LVL>, B<BOOT_TIME>, "
226 "B<NEW_TIME>, ou B<OLD_TIME>, B<getutid>() encontrará a primeira entrada da "
227 "qual o campo B<ut_type> iguala-se a I<ut>B<-E<gt>ut_type>. Se I<ut>B<-"
228 "E<gt>ut_type> é qualquer um de B<INIT_PROCESS>, B<LOGIN_PROCESS>, "
229 "B<USER_PROCESS>, ou B<DEAD_PROCESS>, B<getutid>() encontrará a primeira "
230 "entrada da qual o campo B<ut_id> iguala-se a I<ut>B<-E<gt>ut_id>."
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, fuzzy
236 #| msgid ""
237 #| "B<getutline>() searches forward from the current file position in the "
238 #| "utmp file. It scans entries whose ut_type is B<USER_PROCESS> or "
239 #| "B<LOGIN_PROCESS> and returns the first one whose B<ut_line> field matches "
240 #| "I<ut>B<-E<gt>ut_line>."
241 msgid ""
242 "B<getutline>() searches forward from the current file position in the utmp "
243 "file. It scans entries whose I<ut_type> is B<USER_PROCESS> or "
244 "B<LOGIN_PROCESS> and returns the first one whose I<ut_line> field matches "
245 "I<ut-E<gt>ut_line>."
246 msgstr ""
247 "B<getutline>() busca para frente a partir da posição atual no arquivo utmp. "
248 "Ela busca entradas nas quais ut_type é B<USER_PROCESS> ou B<LOGIN_PROCESS> e "
249 "retorna a primeira da qual o campo B<ut_line> se iguala a I<ut>B<-"
250 "E<gt>ut_line>."
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, fuzzy
256 #| msgid ""
257 #| "B<pututline>() writes the utmp structure I<ut> into the utmp file. It "
258 #| "uses B<getutid>() to search for the proper place in the file to insert "
259 #| "the new entry. If it cannot find an appropriate slot for I<ut>, "
260 #| "B<pututline>() will append the new entry to the end of the file."
261 msgid ""
262 "B<pututline>() writes the I<utmp> structure I<ut> into the utmp file. It "
263 "uses B<getutid>() to search for the proper place in the file to insert the "
264 "new entry. If it cannot find an appropriate slot for I<ut>, B<pututline>() "
265 "will append the new entry to the end of the file."
266 msgstr ""
267 "B<pututline>() grava a estrutura utmp I<ut> no arquivo utmp. Ela usa "
268 "B<getutid>() para encontrar o lugar apropriado no arquivo para inserir a "
269 "nova entrada. Se ela não pode encontrar um espaço apropriado para I<ut>, "
270 "B<pututline>() irá anexar a nova entrada ao fim do arquivo."
271
272 #. type: SH
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "RETURN VALUE"
277 msgstr "VALOR DE RETORNO"
278
279 #. type: Plain text
280 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
281 #: opensuse-tumbleweed
282 msgid ""
283 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
284 "I<struct\\ utmp> on success, and NULL on failure (which includes the "
285 "\"record not found\" case). This I<struct\\ utmp> is allocated in static "
286 "storage, and may be overwritten by subsequent calls."
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "On success B<pututline>() returns I<ut>; on failure, it returns NULL."
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 ""
299 "B<utmpname>() returns 0 if the new name was successfully stored, or -1 on "
300 "failure."
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "On failure, these functions I<errno> set to indicate the error."
307 msgstr ""
308
309 #. type: SH
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "ERRORS"
314 msgstr "ERROS"
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<ENOMEM>"
321 msgstr "B<ENOMEM>"
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 "Out of memory."
327 msgstr "Sem memória."
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<ESRCH>"
334 msgstr "B<ESRCH>"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "Record not found."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "B<setutent>(), B<pututline>(), and the B<getut*>() functions can also fail "
347 "for the reasons described in B<open>(2)."
348 msgstr ""
349
350 #. type: SH
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "FILES"
355 msgstr "ARQUIVOS"
356
357 #. type: TP
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "I</var/run/utmp>"
362 msgstr "I</var/run/utmp>"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, fuzzy
368 #| msgid "/var/run/utmp\tdatabase of currently logged-in users"
369 msgid "database of currently logged-in users"
370 msgstr "/var/run/utmp\tbanco de dados dos usuários conectados"
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "I</var/log/wtmp>"
377 msgstr "I</var/log/wtmp>"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, fuzzy
383 #| msgid "/var/log/wtmp\tdatabase of past user logins"
384 msgid "database of past user logins"
385 msgstr "/var/log/wtmp\tbanco de dados dos logins passados de usuários"
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 "ATTRIBUTES"
392 msgstr "ATRIBUTOS"
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "For an explanation of the terms used in this section, see B<attributes>(7)."
399 msgstr ""
400 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
401
402 #. type: tbl table
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "Interface"
407 msgstr "Interface"
408
409 #. type: tbl table
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "Attribute"
414 msgstr "Atributo"
415
416 #. type: tbl table
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "Value"
421 msgstr "Valor"
422
423 #. type: tbl table
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid ".na\n"
428 msgstr ".na\n"
429
430 #. type: tbl table
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid ".nh\n"
435 msgstr ".nh\n"
436
437 #. type: tbl table
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, fuzzy, no-wrap
441 #| msgid "B<void setutent(void);>"
442 msgid "B<getutent>()"
443 msgstr "B<void setutent(void);>"
444
445 #. type: tbl table
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "Thread safety"
450 msgstr "Thread safety"
451
452 #. type: tbl table
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid ""
457 "MT-Unsafe init race:utent\n"
458 "race:utentbuf sig:ALRM timer"
459 msgstr ""
460
461 #. type: tbl table
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, fuzzy, no-wrap
465 #| msgid "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a B<static struct utmp>."
466 msgid ""
467 "B<getutid>(),\n"
468 "B<getutline>()"
469 msgstr "B<getutent>(), B<getutid>() e B<getutline>() retornam um ponteiro para uma B<static struct utmp>."
470
471 #. type: tbl table
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid ""
476 "MT-Unsafe init race:utent\n"
477 "sig:ALRM timer"
478 msgstr ""
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "B<pututline>()"
485 msgstr ""
486
487 #. type: tbl table
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid ""
492 "MT-Unsafe race:utent\n"
493 "sig:ALRM timer"
494 msgstr ""
495
496 #. type: tbl table
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, fuzzy, no-wrap
500 #| msgid "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a B<static struct utmp>."
501 msgid ""
502 "B<setutent>(),\n"
503 "B<endutent>(),\n"
504 "B<utmpname>()"
505 msgstr "B<getutent>(), B<getutid>() e B<getutline>() retornam um ponteiro para uma B<static struct utmp>."
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 "MT-Unsafe race:utent"
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 "In the above table, I<utent> in I<race:utent> signifies that if any of the "
519 "functions B<setutent>(), B<getutent>(), B<getutid>(), B<getutline>(), "
520 "B<pututline>(), B<utmpname>(), or B<endutent>() are used in parallel in "
521 "different threads of a program, then data races could occur."
522 msgstr ""
523
524 #. type: SH
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "STANDARDS"
529 msgstr "PADRÕES"
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid "None."
535 msgstr ""
536
537 #. type: SH
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "HISTORY"
542 msgstr "HISTÓRICO"
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid "XPG2, SVr4."
548 msgstr ""
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "In XPG2 and SVID 2 the function B<pututline>() is documented to return "
555 "void, and that is what it does on many systems (AIX, HP-UX). HP-UX "
556 "introduces a new function B<_pututline>() with the prototype given above "
557 "for B<pututline>()."
558 msgstr ""
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "All these functions are obsolete now on non-Linux systems. POSIX.1-2001 and "
565 "POSIX.1-2008, following SUSv1, does not have any of these functions, but "
566 "instead uses"
567 msgstr ""
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, fuzzy, no-wrap
573 #| msgid "B<#include E<lt>utmp.hE<gt>>"
574 msgid "B<#include E<lt>utmpx.hE<gt>>\n"
575 msgstr "B<#include E<lt>utmp.hE<gt>>"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid ""
582 "B<struct utmpx *getutxent(void);>\n"
583 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
584 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
585 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
586 "B<void setutxent(void);>\n"
587 "B<void endutxent(void);>\n"
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "These functions are provided by glibc, and perform the same task as their "
595 "equivalents without the \"x\", but use I<struct utmpx>, defined on Linux to "
596 "be the same as I<struct utmp>. For completeness, glibc also provides "
597 "B<utmpxname>(), although this function is not specified by POSIX.1."
598 msgstr ""
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "On some other systems, the I<utmpx> structure is a superset of the I<utmp> "
605 "structure, with additional fields, and larger versions of the existing "
606 "fields, and parallel files are maintained, often I</var/*/utmpx> and I</var/"
607 "*/wtmpx>."
608 msgstr ""
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 ""
614 "Linux glibc on the other hand does not use a parallel I<utmpx> file since "
615 "its I<utmp> structure is already large enough. The \"x\" functions listed "
616 "above are just aliases for their counterparts without the \"x\" (e.g., "
617 "B<getutxent>() is an alias for B<getutent>())."
618 msgstr ""
619
620 #. type: SH
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "NOTES"
625 msgstr "NOTAS"
626
627 #. type: SS
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "glibc notes"
632 msgstr "Notas sobre glibc"
633
634 #. type: Plain text
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, fuzzy
638 #| msgid "These functions first appeared in glibc in version 2.1."
639 msgid "The above functions are not thread-safe. glibc adds reentrant versions"
640 msgstr ""
641 "Estas funções apareceram pela primeira vez no glibc desde a versão 2.1."
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 #, no-wrap
647 msgid ""
648 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
649 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
650 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
651 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
652 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
660 msgstr ""
661 "Requisitos de macro de teste de recursos para o glibc (consulte "
662 "B<feature_test_macros>(7)):"
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 #, fuzzy
668 #| msgid ""
669 #| "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
670 #| "B<static struct utmp>."
671 msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
672 msgstr ""
673 "B<getutent>(), B<getutid>() e B<getutline>() retornam um ponteiro para uma "
674 "B<static struct utmp>."
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, fuzzy, no-wrap
680 #| msgid ""
681 #| "_ISOC99_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
682 #| " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
683 #| " || /* Glibc versions E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
684 msgid ""
685 " _GNU_SOURCE\n"
686 " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
687 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
688 msgstr ""
689 "_ISOC99_SOURCE || _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
690 " || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE\n"
691 " || /* Glibc versões E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
692
693 #. type: Plain text
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 msgid ""
697 "These functions are GNU extensions, analogs of the functions of the same "
698 "name without the _r suffix. The I<ubuf> argument gives these functions a "
699 "place to store their result. On success, they return 0, and a pointer to "
700 "the result is written in I<*ubufp>. On error, these functions return -1. "
701 "There are no utmpx equivalents of the above functions. (POSIX.1 does not "
702 "specify such functions.)"
703 msgstr ""
704
705 #. type: SH
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "EXAMPLES"
710 msgstr "EXEMPLOS"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, fuzzy
716 #| msgid ""
717 #| "The following example adds and removes a utmp record, assuming it is run "
718 #| "from within a pseudo terminal. For usage in a real application, you "
719 #| "should check the return values of getpwuid() and ttyname()."
720 msgid ""
721 "The following example adds and removes a utmp record, assuming it is run "
722 "from within a pseudo terminal. For usage in a real application, you should "
723 "check the return values of B<getpwuid>(3) and B<ttyname>(3)."
724 msgstr ""
725 "O seguinte exemplo adiciona e remove um registro utmp, assumindo que está "
726 "sendo executado num pseudo terminal. Para uso em uma aplicação real, você "
727 "deverá verificar os valores de retorno de getpwuid() e ttyname()."
728
729 #. type: Plain text
730 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
731 #: opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid ""
734 "#include E<lt>err.hE<gt>\n"
735 "#include E<lt>pwd.hE<gt>\n"
736 "#include E<lt>stdlib.hE<gt>\n"
737 "#include E<lt>string.hE<gt>\n"
738 "#include E<lt>time.hE<gt>\n"
739 "#include E<lt>unistd.hE<gt>\n"
740 "#include E<lt>utmp.hE<gt>\n"
741 "\\&\n"
742 "int\n"
743 "main(void)\n"
744 "{\n"
745 " struct utmp entry;\n"
746 "\\&\n"
747 " if (system(\"echo before adding entry:;who\") == -1)\n"
748 " err(EXIT_FAILURE, \"system\");\n"
749 "\\&\n"
750 " entry.ut_type = USER_PROCESS;\n"
751 " entry.ut_pid = getpid();\n"
752 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
753 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
754 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
755 " entry.ut_time = time(NULL);\n"
756 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
757 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
758 " entry.ut_addr = 0;\n"
759 " setutent();\n"
760 " if (pututline(&entry) == NULL)\n"
761 " err(EXIT_FAILURE, \"pututline\");\n"
762 "\\&\n"
763 " if (system(\"echo after adding entry:;who\") == -1)\n"
764 " err(EXIT_FAILURE, \"system\");\n"
765 "\\&\n"
766 " entry.ut_type = DEAD_PROCESS;\n"
767 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
768 " entry.ut_time = 0;\n"
769 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
770 " setutent();\n"
771 " if (pututline(&entry) == NULL)\n"
772 " err(EXIT_FAILURE, \"pututline\");\n"
773 "\\&\n"
774 " if (system(\"echo after removing entry:;who\") == -1)\n"
775 " err(EXIT_FAILURE, \"system\");\n"
776 "\\&\n"
777 " endutent();\n"
778 " exit(EXIT_SUCCESS);\n"
779 "}\n"
780 msgstr ""
781
782 #. SRC END
783 #. type: SH
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 #, no-wrap
787 msgid "SEE ALSO"
788 msgstr "VEJA TAMBÉM"
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid "B<getutmp>(3), B<utmp>(5)"
794 msgstr ""
795
796 #. type: TH
797 #: debian-trixie
798 #, no-wrap
799 msgid "2024-05-02"
800 msgstr "2 maio 2024"
801
802 #. type: TH
803 #: debian-trixie
804 #, no-wrap
805 msgid "Linux man-pages 6.9.1"
806 msgstr "Linux man-pages 6.9.1"
807
808 #. type: Plain text
809 #: debian-trixie
810 msgid "Standard C library (I<libc>, I<-lc>)"
811 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
812
813 #. type: Plain text
814 #: debian-trixie fedora-44 fedora-rawhide
815 #, fuzzy, no-wrap
816 #| msgid "B<void utmpname(const char *>I<file>B<);>"
817 msgid "B<int utmpname(const char *>I<file>B<);>\n"
818 msgstr "B<void utmpname(const char *>I<file>B<);>"
819
820 #. type: Plain text
821 #: debian-trixie fedora-44 fedora-rawhide
822 #, fuzzy
823 #| msgid ""
824 #| "B<utmpname>() sets the name of the utmp-format file for the other utmp "
825 #| "functions to access. If B<utmpname>() is not used to set the filename "
826 #| "before the other functions are used, they assume B<_PATH_UTMP>, as "
827 #| "defined in I<E<lt>paths.hE<gt>>."
828 msgid ""
829 "B<utmpname>() sets the name of the utmp-format file for the other utmp "
830 "functions to access. If B<utmpname>() is not used to set the filename "
831 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
832 "in I<E<lt>paths.hE<gt>>."
833 msgstr ""
834 "B<utmpname>() ajusta o nome do arquivo de formato utmp para outras funções "
835 "utmp acessarem. Se B<utmpname>() não for usado para ajustar o nome do "
836 "arquivo antes das outras funções serem usadas, elas assumem B<_PATH_UTMP>, "
837 "como definido em I<E<lt>paths.hE<gt>>."
838
839 #. type: Plain text
840 #: debian-trixie fedora-44 fedora-rawhide
841 msgid ""
842 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
843 "I<struct utmp> on success, and NULL on failure (which includes the \"record "
844 "not found\" case). This I<struct utmp> is allocated in static storage, and "
845 "may be overwritten by subsequent calls."
846 msgstr ""
847
848 #. type: Plain text
849 #: debian-trixie
850 #, no-wrap
851 msgid ""
852 "#include E<lt>pwd.hE<gt>\n"
853 "#include E<lt>stdlib.hE<gt>\n"
854 "#include E<lt>string.hE<gt>\n"
855 "#include E<lt>time.hE<gt>\n"
856 "#include E<lt>unistd.hE<gt>\n"
857 "#include E<lt>utmp.hE<gt>\n"
858 "\\&\n"
859 "int\n"
860 "main(void)\n"
861 "{\n"
862 " struct utmp entry;\n"
863 "\\&\n"
864 " system(\"echo before adding entry:;who\");\n"
865 "\\&\n"
866 " entry.ut_type = USER_PROCESS;\n"
867 " entry.ut_pid = getpid();\n"
868 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
869 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
870 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
871 " entry.ut_time = time(NULL);\n"
872 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
873 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
874 " entry.ut_addr = 0;\n"
875 " setutent();\n"
876 " pututline(&entry);\n"
877 "\\&\n"
878 " system(\"echo after adding entry:;who\");\n"
879 "\\&\n"
880 " entry.ut_type = DEAD_PROCESS;\n"
881 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
882 " entry.ut_time = 0;\n"
883 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
884 " setutent();\n"
885 " pututline(&entry);\n"
886 "\\&\n"
887 " system(\"echo after removing entry:;who\");\n"
888 "\\&\n"
889 " endutent();\n"
890 " exit(EXIT_SUCCESS);\n"
891 "}\n"
892 msgstr ""
893
894 #. type: TH
895 #: fedora-44 fedora-rawhide
896 #, no-wrap
897 msgid "2024-07-23"
898 msgstr "23 julho 2024"
899
900 #. type: TH
901 #: fedora-44 fedora-rawhide
902 #, no-wrap
903 msgid "Linux man-pages 6.13"
904 msgstr "Linux man-pages 6.13"
905
906 #. type: TH
907 #: mageia-cauldron
908 #, no-wrap
909 msgid "Linux man-pages 6.17"
910 msgstr "Linux man-pages 6.17"
911
912 #. type: TH
913 #: opensuse-leap-16-1 opensuse-tumbleweed
914 #, no-wrap
915 msgid "Linux man-pages (unreleased)"
916 msgstr "Linux man-pages (não lançado)"