Debian Codegraph @

po/es/man3/getutent.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:26+0200\n"
9 "PO-Revision-Date: 2021-01-29 18:00+0100\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<getutent>()"
24 msgid "getutent"
25 msgstr "B<getutent>()"
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 ""
52 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
53 "access utmp file entries"
54 msgstr ""
55 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
56 "acceden a las entradas del fichero utmp"
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 Estándar C (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 "SINOPSIS"
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 "B<#include E<lt>utmp.hE<gt>>\n"
83 msgstr "B<#include E<lt>utmp.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, fuzzy, no-wrap
89 #| msgid ""
90 #| "B<struct utmpx *getutxent(void);>\n"
91 #| "B<struct utmpx *getutxid(const struct utmpx *);>\n"
92 #| "B<struct utmpx *getutxline(const struct utmpx *);>\n"
93 #| "B<struct utmpx *pututxline(const struct utmpx *);>\n"
94 #| "B<void setutxent(void);>\n"
95 #| "B<void endutxent(void);>\n"
96 msgid ""
97 "B<struct utmp *getutent(void);>\n"
98 "B<struct utmp *getutid(const struct utmp *>I<ut>B<);>\n"
99 "B<struct utmp *getutline(const struct utmp *>I<ut>B<);>\n"
100 msgstr ""
101 "B<struct utmpx *getutxent(void);>\n"
102 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
103 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
104 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
105 "B<void setutxent(void);>\n"
106 "B<void endutxent(void);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, fuzzy, no-wrap
112 #| msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>"
113 msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>\n"
114 msgstr "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>"
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 #, fuzzy, no-wrap
120 #| msgid "B<void setutent(void);>"
121 msgid ""
122 "B<void setutent(void);>\n"
123 "B<void endutent(void);>\n"
124 msgstr "B<void setutent(void);>"
125
126 #. type: Plain text
127 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
128 #: opensuse-tumbleweed
129 #, fuzzy, no-wrap
130 #| msgid "B<int utmpname(const char *>I<file>B<);>"
131 msgid "B<int utmpname(const char *>I<path>B<);>\n"
132 msgstr "B<int utmpname(const char *>I<fichero>B<);>"
133
134 #. type: SH
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "DESCRIPTION"
139 msgstr "DESCRIPCIÓN"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "New applications should use the POSIX.1-specified \"utmpx\" versions of "
146 "these functions; see STANDARDS."
147 msgstr ""
148
149 #. type: Plain text
150 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
151 #: opensuse-tumbleweed
152 #, fuzzy
153 #| msgid ""
154 #| "B<utmpname>() sets the name of the utmp-format file for the other utmp "
155 #| "functions to access. If B<utmpname>() is not used to set the filename "
156 #| "before the other functions are used, they assume B<_PATH_UTMP>, as "
157 #| "defined in I<E<lt>paths.hE<gt>>."
158 msgid ""
159 "B<utmpname>() sets the pathname of the utmp-format file for the other utmp "
160 "functions to access. If B<utmpname>() is not used to set the pathname "
161 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
162 "in I<E<lt>paths.hE<gt>>."
163 msgstr ""
164 "B<utmpname>() establece qué nombre tiene el fichero en formato utmp al que "
165 "van a acceder las otras funciones descritas aquí. Si B<utmpname>() no se "
166 "llama para establecer el nombre de fichero antes de que se usen las otras "
167 "funciones, se asume el nombre B<_PATH_UTMP>, como se define en "
168 "I<E<lt>paths.hE<gt>>."
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "B<setutent>() rewinds the file pointer to the beginning of the utmp file. "
175 "It is generally a good idea to call it before any of the other functions."
176 msgstr ""
177 "B<setutent>() rebobina el indicador de fichero al principio del fichero "
178 "utmp. Generalmente es una buena idea llamar a esta función antes que "
179 "cualquiera de las siguientes."
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "B<endutent>() closes the utmp file. It should be called when the user code "
186 "is done accessing the file with the other functions."
187 msgstr ""
188 "B<endutent>() cierra el fichero utmp. Debe llamarse cuando el código de "
189 "usuario ha terminado de acceder al fichero con las otras funciones."
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, fuzzy
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."
199 msgid ""
200 "B<getutent>() reads a line from the current file position in the utmp "
201 "file. It returns a pointer to a structure containing the fields of the "
202 "line. The definition of this structure is shown in B<utmp>(5)."
203 msgstr ""
204 "B<getutent>() lee una línea desde donde está actualmente el indicador de "
205 "posición del fichero en el de formato utmp. Devuelve un puntero a una "
206 "estructura que contiene los campos correspondientes a la línea."
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "B<getutid>() searches forward from the current file position in the utmp "
213 "file based upon I<ut>. If I<ut-E<gt>ut_type> is one of B<RUN_LVL>, "
214 "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>() will find the first "
215 "entry whose I<ut_type> field matches I<ut-E<gt>ut_type>. If I<ut-"
216 "E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
217 "or B<DEAD_PROCESS>, B<getutid>() will find the first entry whose I<ut_id> "
218 "field matches I<ut-E<gt>ut_id>."
219 msgstr ""
220 "B<getutid>() busca hacia adelante desde la posición actual en el fichero "
221 "utmp según I<ut>. Si I<ut-E<gt>ut_type> es B<RUN_LVL>, B<BOOT_TIME>, "
222 "B<NEW_TIME>, u B<OLD_TIME>, B<getutid>() encontrará la primera entrada cuyo "
223 "campo I<ut_type> concuerde con I<ut-E<gt>ut_type>. Si I<ut-E<gt>ut_type> es "
224 "uno de B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, o "
225 "B<DEAD_PROCESS>, B<getutid>() encontrará la primera entrada cuyo campo "
226 "I<ut_id> coincida con I<ut-E<gt>ut_id>."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "B<getutline>() searches forward from the current file position in the utmp "
233 "file. It scans entries whose I<ut_type> is B<USER_PROCESS> or "
234 "B<LOGIN_PROCESS> and returns the first one whose I<ut_line> field matches "
235 "I<ut-E<gt>ut_line>."
236 msgstr ""
237 "B<getutline>() busca hacia adelante desde la posición actual en el fichero "
238 "utmp. Rastrea las entradas cuyo campo I<ut_type> sea B<USER_PROCESS> o "
239 "B<LOGIN_PROCESS> y devuelve la primera cuyo campo I<ut_line> coincida con "
240 "I<ut-E<gt>ut_line>."
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 ""
246 "B<pututline>() writes the I<utmp> structure I<ut> into the utmp file. It "
247 "uses B<getutid>() to search for the proper place in the file to insert the "
248 "new entry. If it cannot find an appropriate slot for I<ut>, B<pututline>() "
249 "will append the new entry to the end of the file."
250 msgstr ""
251 "B<pututline>() escribe la estructura I<utmp> I<ut> en el fichero utmp. "
252 "Utiliza B<getutid>() para buscar el sitio correcto en el fichero donde "
253 "insertar la nueva entrada. Si no puede encontrar un sitio apropiado para "
254 "I<ut>, B<pututline>() añadirá la nueva entrada al final del fichero."
255
256 #. type: SH
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "RETURN VALUE"
261 msgstr "VALOR DEVUELTO"
262
263 #. type: Plain text
264 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
265 #: opensuse-tumbleweed
266 msgid ""
267 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
268 "I<struct\\ utmp> on success, and NULL on failure (which includes the "
269 "\"record not found\" case). This I<struct\\ utmp> is allocated in static "
270 "storage, and may be overwritten by subsequent calls."
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "On success B<pututline>() returns I<ut>; on failure, it returns NULL."
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "B<utmpname>() returns 0 if the new name was successfully stored, or -1 on "
284 "failure."
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid "On failure, these functions I<errno> set to indicate the error."
291 msgstr ""
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "ERRORS"
298 msgstr "ERRORES"
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<ENOMEM>"
305 msgstr "B<ENOMEM>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid "Out of memory."
311 msgstr "Sin memoria."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<ESRCH>"
318 msgstr "B<ESRCH>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid "Record not found."
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "B<setutent>(), B<pututline>(), and the B<getut*>() functions can also fail "
331 "for the reasons described in B<open>(2)."
332 msgstr ""
333
334 #. type: SH
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "FILES"
339 msgstr "ARCHIVOS"
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "I</var/run/utmp>"
346 msgstr "I</var/run/utmp>"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid "database of currently logged-in users"
352 msgstr "datos de los usuarios que están en el sistema"
353
354 #. type: TP
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "I</var/log/wtmp>"
359 msgstr "I</var/log/wtmp>"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid "database of past user logins"
365 msgstr "base de datos de anteriores inicios de sesión de usuario"
366
367 #. type: SH
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "ATTRIBUTES"
372 msgstr "ATRIBUTOS"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "For an explanation of the terms used in this section, see B<attributes>(7)."
379 msgstr ""
380 "Para obtener una explicación de los términos usados en esta sección, véase "
381 "B<attributes>(7)."
382
383 #. type: tbl table
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "Interface"
388 msgstr "Interfaz"
389
390 #. type: tbl table
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "Attribute"
395 msgstr "Atributo"
396
397 #. type: tbl table
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "Value"
402 msgstr "Valor"
403
404 #. type: tbl table
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid ".na\n"
409 msgstr ".na\n"
410
411 #. type: tbl table
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid ".nh\n"
416 msgstr ".nh\n"
417
418 #. type: tbl table
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "B<getutent>()"
423 msgstr "B<getutent>()"
424
425 #. type: tbl table
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid "Thread safety"
430 msgstr "Seguridad del hilo"
431
432 #. type: tbl table
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid ""
437 "MT-Unsafe init race:utent\n"
438 "race:utentbuf sig:ALRM timer"
439 msgstr ""
440
441 #. type: tbl table
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, fuzzy, no-wrap
445 #| msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
446 msgid ""
447 "B<getutid>(),\n"
448 "B<getutline>()"
449 msgstr "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
450
451 #. type: tbl table
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid ""
456 "MT-Unsafe init race:utent\n"
457 "sig:ALRM timer"
458 msgstr ""
459
460 #. type: tbl table
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<pututline>()"
465 msgstr "B<pututline>()"
466
467 #. type: tbl table
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid ""
472 "MT-Unsafe race:utent\n"
473 "sig:ALRM timer"
474 msgstr ""
475
476 #. type: tbl table
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, fuzzy, no-wrap
480 #| msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
481 msgid ""
482 "B<setutent>(),\n"
483 "B<endutent>(),\n"
484 "B<utmpname>()"
485 msgstr "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
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 "MT-Unsafe race:utent"
492 msgstr ""
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "In the above table, I<utent> in I<race:utent> signifies that if any of the "
499 "functions B<setutent>(), B<getutent>(), B<getutid>(), B<getutline>(), "
500 "B<pututline>(), B<utmpname>(), or B<endutent>() are used in parallel in "
501 "different threads of a program, then data races could occur."
502 msgstr ""
503
504 #. type: SH
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "STANDARDS"
509 msgstr "ESTÁNDARES"
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid "None."
515 msgstr ""
516
517 #. type: SH
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "HISTORY"
522 msgstr "HISTORIAL"
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid "XPG2, SVr4."
528 msgstr "XPG2, SVr4."
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, fuzzy
534 #| msgid ""
535 #| "In XPG2 and SVID2 the function I<pututline()> is documented to return "
536 #| "void, and that is what it does on many systems (AIX, HPUX, Linux libc5). "
537 #| "HPUX introduces a new function I<_pututline()> with the prototype given "
538 #| "above for I<pututline()> (also found in Linux libc5)."
539 msgid ""
540 "In XPG2 and SVID 2 the function B<pututline>() is documented to return "
541 "void, and that is what it does on many systems (AIX, HP-UX). HP-UX "
542 "introduces a new function B<_pututline>() with the prototype given above "
543 "for B<pututline>()."
544 msgstr ""
545 "En XPG2 y SVID2 se dice que la función I<pututline()> devuelve void, y así "
546 "es en muchos sistemas (AIX, HPUX, Linux libc5). HPUX introduce una nueva "
547 "función I<_pututline()> con el prototipo dado arriba para I<pututline()> "
548 "(también encontrada en Linux libc5)."
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 "All these functions are obsolete now on non-Linux systems. POSIX.1-2001 and "
555 "POSIX.1-2008, following SUSv1, does not have any of these functions, but "
556 "instead uses"
557 msgstr ""
558 "Todas estas funciones están obsoletas hoy día en sistemas no-Linux. "
559 "POSIX.1-2001 y POSIX.1-2008, siguiendo a SUSv1, no tiene ninguna de estas "
560 "funciones, pero en su lugar usa"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid "B<#include E<lt>utmpx.hE<gt>>\n"
567 msgstr "B<#include E<lt>utmpx.hE<gt>>\n"
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 #, no-wrap
573 msgid ""
574 "B<struct utmpx *getutxent(void);>\n"
575 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
576 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
577 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
578 "B<void setutxent(void);>\n"
579 "B<void endutxent(void);>\n"
580 msgstr ""
581 "B<struct utmpx *getutxent(void);>\n"
582 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
583 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
584 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
585 "B<void setutxent(void);>\n"
586 "B<void endutxent(void);>\n"
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid ""
592 "These functions are provided by glibc, and perform the same task as their "
593 "equivalents without the \"x\", but use I<struct utmpx>, defined on Linux to "
594 "be the same as I<struct utmp>. For completeness, glibc also provides "
595 "B<utmpxname>(), although this function is not specified by POSIX.1."
596 msgstr ""
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, fuzzy
602 #| msgid ""
603 #| "The I<utmpx> structure is a superset of the I<utmp> structure, with "
604 #| "additional fields, and larger versions of the existing fields. The "
605 #| "corresponding files are often I</var/*/utmpx> and I</var/*/wtmpx>."
606 msgid ""
607 "On some other systems, the I<utmpx> structure is a superset of the I<utmp> "
608 "structure, with additional fields, and larger versions of the existing "
609 "fields, and parallel files are maintained, often I</var/*/utmpx> and I</var/"
610 "*/wtmpx>."
611 msgstr ""
612 "La estructura I<utmpx> es un superconjunto de la estructura I<utmp>, con "
613 "campos adicionales, y versiones extendidas de los campos existentes. Los "
614 "ficheros correspondientes son a menudo I</var/*/utmpx> y I</var/*/wtmpx>."
615
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 #, fuzzy
620 #| msgid ""
621 #| "Linux glibc on the other hand does not use I<utmpx> since its I<utmp> "
622 #| "structure is already large enough. The functions I<getutxent> etc. are "
623 #| "aliases for I<getutent> etc."
624 msgid ""
625 "Linux glibc on the other hand does not use a parallel I<utmpx> file since "
626 "its I<utmp> structure is already large enough. The \"x\" functions listed "
627 "above are just aliases for their counterparts without the \"x\" (e.g., "
628 "B<getutxent>() is an alias for B<getutent>())."
629 msgstr ""
630 "Linux glibc por otra parte no usa I<utmpx> puesto que su estructura I<utmp> "
631 "es ya lo suficientemente grande. Las funciones I<getutxent> etc. son "
632 "sinónimos para I<getutent> etc."
633
634 #. type: SH
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "NOTES"
639 msgstr "NOTAS"
640
641 #. type: SS
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "glibc notes"
646 msgstr ""
647
648 #. type: Plain text
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 msgid "The above functions are not thread-safe. glibc adds reentrant versions"
652 msgstr ""
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid ""
659 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
660 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
661 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
662 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
663 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
664 msgstr ""
665 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
666 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
667 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
668 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
669 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
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 msgid ""
675 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
676 msgstr ""
677 "Requisitos de Macros de Prueba de Características para glibc (véase "
678 "B<feature_test_macros>(7)):"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
684 msgstr "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, fuzzy, no-wrap
690 #| msgid ""
691 #| " _GNU_SOURCE\n"
692 #| " || /* since glibc 2.19: */ _DEFAULT_SOURCE\n"
693 #| " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
694 msgid ""
695 " _GNU_SOURCE\n"
696 " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
697 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
698 msgstr ""
699 " _GNU_SOURCE\n"
700 " || /* desde glibc 2.19: */ _DEFAULT_SOURCE\n"
701 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
702
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 msgid ""
707 "These functions are GNU extensions, analogs of the functions of the same "
708 "name without the _r suffix. The I<ubuf> argument gives these functions a "
709 "place to store their result. On success, they return 0, and a pointer to "
710 "the result is written in I<*ubufp>. On error, these functions return -1. "
711 "There are no utmpx equivalents of the above functions. (POSIX.1 does not "
712 "specify such functions.)"
713 msgstr ""
714
715 #. type: SH
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid "EXAMPLES"
720 msgstr "EJEMPLOS"
721
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 msgid ""
726 "The following example adds and removes a utmp record, assuming it is run "
727 "from within a pseudo terminal. For usage in a real application, you should "
728 "check the return values of B<getpwuid>(3) and B<ttyname>(3)."
729 msgstr ""
730 "El siguiente ejemplo añade y quita un registro utmp, suponiendo que se "
731 "ejecuta desde una pseudo-terminal. Para un uso correcto en una aplicación "
732 "más realística, se deberían comprobar los valores devueltos por "
733 "B<getpwuid>(3) y B<ttyname>(3)."
734
735 #. type: Plain text
736 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
737 #: opensuse-leap-16-1 opensuse-tumbleweed
738 #, fuzzy, no-wrap
739 #| msgid ""
740 #| " entry.ut_type = USER_PROCESS;\n"
741 #| " entry.ut_pid = getpid();\n"
742 #| " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
743 #| " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
744 #| " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
745 #| " time(&entry.ut_time);\n"
746 #| " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
747 #| " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
748 #| " entry.ut_addr = 0;\n"
749 #| " setutent();\n"
750 #| " pututline(&entry);\n"
751 msgid ""
752 "#include E<lt>err.hE<gt>\n"
753 "#include E<lt>pwd.hE<gt>\n"
754 "#include E<lt>stdlib.hE<gt>\n"
755 "#include E<lt>string.hE<gt>\n"
756 "#include E<lt>time.hE<gt>\n"
757 "#include E<lt>unistd.hE<gt>\n"
758 "#include E<lt>utmp.hE<gt>\n"
759 "\\&\n"
760 "int\n"
761 "main(void)\n"
762 "{\n"
763 " struct utmp entry;\n"
764 "\\&\n"
765 " if (system(\"echo before adding entry:;who\") == -1)\n"
766 " err(EXIT_FAILURE, \"system\");\n"
767 "\\&\n"
768 " entry.ut_type = USER_PROCESS;\n"
769 " entry.ut_pid = getpid();\n"
770 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
771 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
772 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
773 " entry.ut_time = time(NULL);\n"
774 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
775 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
776 " entry.ut_addr = 0;\n"
777 " setutent();\n"
778 " if (pututline(&entry) == NULL)\n"
779 " err(EXIT_FAILURE, \"pututline\");\n"
780 "\\&\n"
781 " if (system(\"echo after adding entry:;who\") == -1)\n"
782 " err(EXIT_FAILURE, \"system\");\n"
783 "\\&\n"
784 " entry.ut_type = DEAD_PROCESS;\n"
785 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
786 " entry.ut_time = 0;\n"
787 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
788 " setutent();\n"
789 " if (pututline(&entry) == NULL)\n"
790 " err(EXIT_FAILURE, \"pututline\");\n"
791 "\\&\n"
792 " if (system(\"echo after removing entry:;who\") == -1)\n"
793 " err(EXIT_FAILURE, \"system\");\n"
794 "\\&\n"
795 " endutent();\n"
796 " exit(EXIT_SUCCESS);\n"
797 "}\n"
798 msgstr ""
799 " entry.ut_type = USER_PROCESS;\n"
800 " entry.ut_pid = getpid();\n"
801 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
802 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
803 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
804 " time(&entry.ut_time);\n"
805 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
806 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
807 " entry.ut_addr = 0;\n"
808 " setutent();\n"
809 " pututline(&entry);\n"
810
811 #. SRC END
812 #. type: SH
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, no-wrap
816 msgid "SEE ALSO"
817 msgstr "VÉASE TAMBIÉN"
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid "B<getutmp>(3), B<utmp>(5)"
823 msgstr "B<getutmp>(3), B<utmp>(5)"
824
825 #. type: TH
826 #: debian-trixie
827 #, no-wrap
828 msgid "2024-05-02"
829 msgstr "2 Mayo 2024"
830
831 #. type: TH
832 #: debian-trixie
833 #, no-wrap
834 msgid "Linux man-pages 6.9.1"
835 msgstr "Páginas de Manual de Linux 6.9.1"
836
837 #. type: Plain text
838 #: debian-trixie
839 msgid "Standard C library (I<libc>, I<-lc>)"
840 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
841
842 #. type: Plain text
843 #: debian-trixie fedora-44 fedora-rawhide
844 #, fuzzy, no-wrap
845 #| msgid "B<int utmpname(const char *>I<file>B<);>"
846 msgid "B<int utmpname(const char *>I<file>B<);>\n"
847 msgstr "B<int utmpname(const char *>I<fichero>B<);>"
848
849 #. type: Plain text
850 #: debian-trixie fedora-44 fedora-rawhide
851 msgid ""
852 "B<utmpname>() sets the name of the utmp-format file for the other utmp "
853 "functions to access. If B<utmpname>() is not used to set the filename "
854 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
855 "in I<E<lt>paths.hE<gt>>."
856 msgstr ""
857 "B<utmpname>() establece qué nombre tiene el fichero en formato utmp al que "
858 "van a acceder las otras funciones descritas aquí. Si B<utmpname>() no se "
859 "llama para establecer el nombre de fichero antes de que se usen las otras "
860 "funciones, se asume el nombre B<_PATH_UTMP>, como se define en "
861 "I<E<lt>paths.hE<gt>>."
862
863 #. type: Plain text
864 #: debian-trixie fedora-44 fedora-rawhide
865 msgid ""
866 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
867 "I<struct utmp> on success, and NULL on failure (which includes the \"record "
868 "not found\" case). This I<struct utmp> is allocated in static storage, and "
869 "may be overwritten by subsequent calls."
870 msgstr ""
871
872 #. type: Plain text
873 #: debian-trixie
874 #, fuzzy, no-wrap
875 #| msgid ""
876 #| " entry.ut_type = USER_PROCESS;\n"
877 #| " entry.ut_pid = getpid();\n"
878 #| " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
879 #| " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
880 #| " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
881 #| " time(&entry.ut_time);\n"
882 #| " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
883 #| " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
884 #| " entry.ut_addr = 0;\n"
885 #| " setutent();\n"
886 #| " pututline(&entry);\n"
887 msgid ""
888 "#include E<lt>pwd.hE<gt>\n"
889 "#include E<lt>stdlib.hE<gt>\n"
890 "#include E<lt>string.hE<gt>\n"
891 "#include E<lt>time.hE<gt>\n"
892 "#include E<lt>unistd.hE<gt>\n"
893 "#include E<lt>utmp.hE<gt>\n"
894 "\\&\n"
895 "int\n"
896 "main(void)\n"
897 "{\n"
898 " struct utmp entry;\n"
899 "\\&\n"
900 " system(\"echo before adding entry:;who\");\n"
901 "\\&\n"
902 " entry.ut_type = USER_PROCESS;\n"
903 " entry.ut_pid = getpid();\n"
904 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
905 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
906 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
907 " entry.ut_time = time(NULL);\n"
908 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
909 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
910 " entry.ut_addr = 0;\n"
911 " setutent();\n"
912 " pututline(&entry);\n"
913 "\\&\n"
914 " system(\"echo after adding entry:;who\");\n"
915 "\\&\n"
916 " entry.ut_type = DEAD_PROCESS;\n"
917 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
918 " entry.ut_time = 0;\n"
919 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
920 " setutent();\n"
921 " pututline(&entry);\n"
922 "\\&\n"
923 " system(\"echo after removing entry:;who\");\n"
924 "\\&\n"
925 " endutent();\n"
926 " exit(EXIT_SUCCESS);\n"
927 "}\n"
928 msgstr ""
929 " entry.ut_type = USER_PROCESS;\n"
930 " entry.ut_pid = getpid();\n"
931 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
932 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
933 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
934 " time(&entry.ut_time);\n"
935 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
936 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
937 " entry.ut_addr = 0;\n"
938 " setutent();\n"
939 " pututline(&entry);\n"
940
941 #. type: TH
942 #: fedora-44 fedora-rawhide
943 #, no-wrap
944 msgid "2024-07-23"
945 msgstr "23 ​​Julio 2024"
946
947 #. type: TH
948 #: fedora-44 fedora-rawhide
949 #, no-wrap
950 msgid "Linux man-pages 6.13"
951 msgstr "Páginas de Manual de Linux 6.13"
952
953 #. type: TH
954 #: mageia-cauldron
955 #, no-wrap
956 msgid "Linux man-pages 6.17"
957 msgstr "Páginas de Manual de Linux 6.17"
958
959 #. type: TH
960 #: opensuse-leap-16-1 opensuse-tumbleweed
961 #, no-wrap
962 msgid "Linux man-pages (unreleased)"
963 msgstr "Páginas de Manual de Linux (no publicadas)"