Debian Codegraph @

po/es/man5/utmp.5.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 # Juan Piernas <[email protected]>, 1999.
5 # Miguel Pérez Ibars <[email protected]>, 2005.
6 # Marcos Fouces <[email protected]>, 2020-2025.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
11 "PO-Revision-Date: 2025-11-11 18:10+0100\n"
12 "Last-Translator: Marcos Fouces <[email protected]>\n"
13 "Language-Team: Spanish <[email protected]>\n"
14 "Language: es\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
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "utmp"
25 msgstr "utmp"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-09-21"
32 msgstr "21 Septiembre 2025"
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 "utmp, wtmp - login records"
52 msgstr "utmp, wtmp - registro de sesiones"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "SYNOPSIS"
59 msgstr "SINOPSIS"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "B<#include E<lt>utmp.hE<gt>>\n"
66 msgstr "B<#include E<lt>utmp.hE<gt>>\n"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "DESCRIPTION"
73 msgstr "DESCRIPCIÓN"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 msgid ""
79 "The I<utmp> file allows one to discover information about who is currently "
80 "using the system. There may be more users currently using the system, "
81 "because not all programs use utmp logging."
82 msgstr ""
83 "El archivo I<utmp> nos permite obtener información acerca de qué usuarios "
84 "están usando el sistema actualmente. No todas las aplicaciones usan el "
85 "registro de utmp por lo que puede haber usuarios que no figuren."
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 msgid ""
91 "B<Warning:> I<utmp> must not be writable by the user class \"other\", "
92 "because many system programs (foolishly) depend on its integrity. You risk "
93 "faked system logfiles and modifications of system files if you leave I<utmp> "
94 "writable to any user other than the owner and group owner of the file."
95 msgstr ""
96 "B<Atención:> I<utmp> no debe ser modificable ya que muchos programas del "
97 "sistema dependen (tontamente) de su integridad. Corre el riesgo de tener "
98 "registros del sistema (\"logs\" en inglés) incorrectos e incluso "
99 "modificaciones indeseadas de archivos del sistema si deja que cualquiera "
100 "pueda escribir en I<utmp>."
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "The file is a sequence of I<utmp> structures, declared as follows in "
107 "I<E<lt>utmp.hE<gt>> (note that this is only one of several definitions "
108 "around; details depend on the version of libc):"
109 msgstr ""
110 "El archivo es una secuencia de estructuras de I<utmp>, declaradas a "
111 "continuación en el archivo I<E<lt>utmp.hE<gt>> (esto es sólo una posible "
112 "definición ya que los detalles dependen de la versión de libc):"
113
114 #. type: Plain text
115 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
116 #: opensuse-tumbleweed
117 #, no-wrap
118 msgid ""
119 "/* Values for ut_type field, below */\n"
120 "\\&\n"
121 "#define EMPTY 0 /* Record does not contain valid info\n"
122 " (formerly known as UT_UNKNOWN on Linux) */\n"
123 "#define RUN_LVL 1 /* Change in system run-level (see\n"
124 " B<init>(1))\\ \n"
125 "*/\n"
126 "#define BOOT_TIME 2 /* Time of system boot (in \\f[I]ut_tv\\fR) */\n"
127 "#define NEW_TIME 3 /* Time after system clock change\n"
128 " (in \\f[I]ut_tv\\fR) */\n"
129 "#define OLD_TIME 4 /* Time before system clock change\n"
130 " (in \\f[I]ut_tv\\fR) */\n"
131 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1)\\ \n"
132 "*/\n"
133 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
134 "#define USER_PROCESS 7 /* Normal process */\n"
135 "#define DEAD_PROCESS 8 /* Terminated process */\n"
136 "#define ACCOUNTING 9 /* Not implemented */\n"
137 "\\&\n"
138 "#define UT_LINESIZE 32\n"
139 "#define UT_NAMESIZE 32\n"
140 "#define UT_HOSTSIZE 256\n"
141 "\\&\n"
142 "struct exit_status { /* Type for ut_exit, below */\n"
143 " short e_termination; /* Process termination status */\n"
144 " short e_exit; /* Process exit status */\n"
145 "};\n"
146 "\\&\n"
147 "struct utmp {\n"
148 " short ut_type; /* Type of record */\n"
149 " pid_t ut_pid; /* PID of login process */\n"
150 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
151 " char ut_id[4]; /* Terminal name suffix,\n"
152 " or inittab(5) ID */\n"
153 " char ut_user[UT_NAMESIZE]; /* Username */\n"
154 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
155 " kernel version for run-level\n"
156 " messages */\n"
157 " struct exit_status ut_exit; /* Exit status of a process\n"
158 " marked as DEAD_PROCESS; not\n"
159 " used by Linux B<init>(1)\\ \n"
160 "*/\n"
161 " /* The ut_session and ut_tv fields must be the same size when\n"
162 " compiled 32- and 64-bit. This allows data files and shared\n"
163 " memory to be shared between 32- and 64-bit applications. */\n"
164 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
165 " int32_t ut_session; /* Session ID (\n"
166 "B<getsid>(2)),\n"
167 " used for windowing */\n"
168 " struct {\n"
169 " int32_t tv_sec; /* Seconds */\n"
170 " int32_t tv_usec; /* Microseconds */\n"
171 " } ut_tv; /* Time entry was made */\n"
172 "#else\n"
173 " long ut_session; /* Session ID */\n"
174 " struct timeval ut_tv; /* Time entry was made */\n"
175 "#endif\n"
176 "\\&\n"
177 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
178 " host; IPv4 address uses\n"
179 " just ut_addr_v6[0] */\n"
180 " char __unused[20]; /* Reserved for future use */\n"
181 "};\n"
182 "\\&\n"
183 "/* Backward compatibility hacks */\n"
184 "#define ut_name ut_user\n"
185 "#ifndef _NO_UT_TIME\n"
186 "#define ut_time ut_tv.tv_sec\n"
187 "#endif\n"
188 "#define ut_xtime ut_tv.tv_sec\n"
189 "#define ut_addr ut_addr_v6[0]\n"
190 msgstr ""
191 "/* Values for ut_type field, below */\n"
192 "\\&\n"
193 "#define EMPTY 0 /* Record does not contain valid info\n"
194 " (formerly known as UT_UNKNOWN on Linux) */\n"
195 "#define RUN_LVL 1 /* Change in system run-level (see\n"
196 " B<init>(1))\\ \n"
197 "*/\n"
198 "#define BOOT_TIME 2 /* Time of system boot (in \\f[I]ut_tv\\fR) */\n"
199 "#define NEW_TIME 3 /* Time after system clock change\n"
200 " (in \\f[I]ut_tv\\fR) */\n"
201 "#define OLD_TIME 4 /* Time before system clock change\n"
202 " (in \\f[I]ut_tv\\fR) */\n"
203 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1)\\ \n"
204 "*/\n"
205 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
206 "#define USER_PROCESS 7 /* Normal process */\n"
207 "#define DEAD_PROCESS 8 /* Terminated process */\n"
208 "#define ACCOUNTING 9 /* Not implemented */\n"
209 "\\&\n"
210 "#define UT_LINESIZE 32\n"
211 "#define UT_NAMESIZE 32\n"
212 "#define UT_HOSTSIZE 256\n"
213 "\\&\n"
214 "struct exit_status { /* Type for ut_exit, below */\n"
215 " short e_termination; /* Process termination status */\n"
216 " short e_exit; /* Process exit status */\n"
217 "};\n"
218 "\\&\n"
219 "struct utmp {\n"
220 " short ut_type; /* Type of record */\n"
221 " pid_t ut_pid; /* PID of login process */\n"
222 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
223 " char ut_id[4]; /* Terminal name suffix,\n"
224 " or inittab(5) ID */\n"
225 " char ut_user[UT_NAMESIZE]; /* Username */\n"
226 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
227 " kernel version for run-level\n"
228 " messages */\n"
229 " struct exit_status ut_exit; /* Exit status of a process\n"
230 " marked as DEAD_PROCESS; not\n"
231 " used by Linux B<init>(1)\\ \n"
232 "*/\n"
233 " /* The ut_session and ut_tv fields must be the same size when\n"
234 " compiled 32- and 64-bit. This allows data files and shared\n"
235 " memory to be shared between 32- and 64-bit applications. */\n"
236 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
237 " int32_t ut_session; /* Session ID (\n"
238 "B<getsid>(2)),\n"
239 " used for windowing */\n"
240 " struct {\n"
241 " int32_t tv_sec; /* Seconds */\n"
242 " int32_t tv_usec; /* Microseconds */\n"
243 " } ut_tv; /* Time entry was made */\n"
244 "#else\n"
245 " long ut_session; /* Session ID */\n"
246 " struct timeval ut_tv; /* Time entry was made */\n"
247 "#endif\n"
248 "\\&\n"
249 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
250 " host; IPv4 address uses\n"
251 " just ut_addr_v6[0] */\n"
252 " char __unused[20]; /* Reserved for future use */\n"
253 "};\n"
254 "\\&\n"
255 "/* Backward compatibility hacks */\n"
256 "#define ut_name ut_user\n"
257 "#ifndef _NO_UT_TIME\n"
258 "#define ut_time ut_tv.tv_sec\n"
259 "#endif\n"
260 "#define ut_xtime ut_tv.tv_sec\n"
261 "#define ut_addr ut_addr_v6[0]\n"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "This structure gives the name of the special file associated with the user's "
268 "terminal, the user's login name, and the time of login in the form of "
269 "B<time>(2). String fields are terminated by a null byte (\\[aq]\\[rs]0\\"
270 "[aq]) if they are shorter than the size of the field."
271 msgstr ""
272 "Esta estructura nos da el nombre del archivo especial asociado con el "
273 "terminal del usuario, el nombre del usuario y el momento de inicio de sesión "
274 "en el formato definido en B<time>(2). Los campos del tipo cadena terminan "
275 "con bytes nulos ( (\\[aq]\\[rs]0\\[aq]) si no completan la totalidad del "
276 "campo."
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "The first entries ever created result from B<init>(1) processing "
283 "B<inittab>(5). Before an entry is processed, though, B<init>(1) cleans up "
284 "utmp by setting I<ut_type> to B<DEAD_PROCESS>, clearing I<ut_user>, "
285 "I<ut_host>, and I<ut_time> with null bytes for each record which I<ut_type> "
286 "is not B<DEAD_PROCESS> or B<RUN_LVL> and where no process with PID I<ut_pid> "
287 "exists. If no empty record with the needed I<ut_id> can be found, "
288 "B<init>(1) creates a new one. It sets I<ut_id> from the inittab, I<ut_pid> "
289 "and I<ut_time> to the current values, and I<ut_type> to B<INIT_PROCESS>."
290 msgstr ""
291 "Las primeras entradas que se crean siempre proceden del procesamiento de "
292 "B<inittab>(5) por parte de B<init>(1). Sin embargo, antes de que se procese "
293 "una entrada, B<init>(1) limpia utmp asignando a B<ut_type> el valor "
294 "B<DEAD_PROCESS>, limpiando los campos B<ut_user>, B<ut_host> y B<ut_time> "
295 "con caracteres nulos para cada registro cuyo campo B<ut_type> no sea "
296 "B<DEAD_PROCESS> ni B<RUN_LVL> y donde no exista ningún proceso con PID "
297 "B<ut_pid>. Si no se puede encontrar ningún registro vacío con el B<ut_id> "
298 "que se necesita, B<init>(1) crea uno nuevo. Asigna un valor a B<ut_id> a "
299 "partir del inittab, a B<ut_pid> y a B<ut_time> a partir de los valores "
300 "actuales y asigna a B<ut_type> el valor B<INIT_PROCESS>."
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 "B<mingetty>(8) (or B<agetty>(8)) locates the entry by the PID, changes "
307 "I<ut_type> to B<LOGIN_PROCESS>, changes I<ut_time>, sets I<ut_line>, and "
308 "waits for connection to be established. B<login>(1), after a user has been "
309 "authenticated, changes I<ut_type> to B<USER_PROCESS>, changes I<ut_time>, "
310 "and sets I<ut_host> and I<ut_addr>. Depending on B<mingetty>(8) (or "
311 "B<agetty>(8)) and B<login>(1), records may be located by I<ut_line> instead "
312 "of the preferable I<ut_pid>."
313 msgstr ""
314 "B<mingetty>(8) (o B<agetty>(8)) busca la entrada por el PID, cambia el "
315 "valor de I<ut_type> a B<LOGIN_PROCESS>, cambia I<ut_time>, asigna un valor a "
316 "I<ut_line> y espera a que se establezca la conexión. Una vez que se produjo "
317 "la autentifiación del usuario, B<login>(1), cambia el valor de I<ut_type> a "
318 "B<USER_PROCESS>, cambia I<ut_time> y asigna un valor a I<ut_host> y a "
319 "I<ut_addr>. Dependiendo de B<mingetty>(8) (o B<agetty>(8)) y B<login>(8), "
320 "los registros se pueden buscar por I<ut_line> en lugar de por I<ut_pid>, "
321 "como sería preferible."
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "When B<init>(1) finds that a process has exited, it locates its utmp entry "
328 "by I<ut_pid>, sets I<ut_type> to B<DEAD_PROCESS>, and clears I<ut_user>, "
329 "I<ut_host>, and I<ut_time> with null bytes."
330 msgstr ""
331 "Cuando B<init>(1) detecta que un proceso ha terminado, busca su entrada utmp "
332 "mediante B<ut_pid>, asigna a B<ut_type> el valor B<DEAD_PROCESS> y limpia "
333 "B<ut_user>, B<ut_host> y B<ut_time> con bytes nulos."
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "B<xterm>(1) and other terminal emulators directly create a B<USER_PROCESS> "
340 "record and generate the I<ut_id> by using the string that suffix part of the "
341 "terminal name (the characters following I</dev/>[pt]I<ty>). If they find a "
342 "B<DEAD_PROCESS> for this ID, they recycle it, otherwise they create a new "
343 "entry. If they can, they will mark it as B<DEAD_PROCESS> on exiting and it "
344 "is advised that they null I<ut_line>, I<ut_time>, I<ut_user>, and I<ut_host> "
345 "as well."
346 msgstr ""
347 "B<xterm>(1) y otros emuladores de terminal crean directamente un registro "
348 "B<USER_PROCESS> y generan B<ut_id> con los caracteres siguientes de la "
349 "cadena I</dev/[pt]ty>. Si encuentran un B<DEAD_PROCESS> para este ID, lo "
350 "reutilizan; en caso contrario, crean una nueva entrada. Si pueden, las "
351 "marcarán como B<DEAD_PROCESS> al terminar y se aconseja que también rellenen "
352 "con bytes nulos los campos I<ut_line>, I<ut_time>, I<ut_user> y I<ut_host>."
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid ""
358 "B<telnetd>(8) sets up a B<LOGIN_PROCESS> entry and leaves the rest to "
359 "B<login>(1) as usual. After the telnet session ends, B<telnetd>(8) cleans "
360 "up utmp in the described way."
361 msgstr ""
362 "B<telnetd>(8) establece una entrada B<LOGIN_PROCESS> y deja el resto a "
363 "B<login>(1), como es habitual. Después de que termine la sesión de telnet, "
364 "B<telnetd>(8) limpia utmp de la forma descrita."
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 I<wtmp> file records all logins and logouts. Its format is exactly like "
371 "I<utmp> except that a null username indicates a logout on the associated "
372 "terminal. Furthermore, the terminal name B<\\[ti]> with username "
373 "B<shutdown> or B<reboot> indicates a system shutdown or reboot and the pair "
374 "of terminal names B<|>/B<}> logs the old/new system time when B<date>(1) "
375 "changes it. I<wtmp> is maintained by B<login>(1), B<init>(1), and some "
376 "versions of B<getty>(8) (e.g., B<mingetty>(8) or B<agetty>(8)). None of "
377 "these programs creates the file, so if it is removed, record-keeping is "
378 "turned off."
379 msgstr ""
380 "El archivo B<wtmp> registra todos los inicios y finales de sesión. Su "
381 "formato es como el de B<utmp> salvo que un nombre nulo de usuario indica el "
382 "fin de sesión en la terminal asociada. Además, el nombre de terminal B<\\"
383 "[ti]> con nombre de usuario B<shutdown> o B<reboot> indica un cierre "
384 "(shutdown) o reinicio del sistema y el par de nombres de terminal B<|>/B<}> "
385 "registra la fecha antigua/nueva del sistema cuando la cambia B<date>(1). "
386 "B<wtmp> se gestiona a través de B<login>(1), B<init>(1) y algunas versiones "
387 "de B<getty>(8) (por ejemplo: B<mingetty>(8) o B<agetty>(8)) Ninguno de estos "
388 "programas crea el archivo, por lo que si se borra se desactiva el "
389 "mantenimiento de los registros."
390
391 #. type: SH
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "FILES"
396 msgstr "ARCHIVOS"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid "I</var/run/utmp>"
402 msgstr "I</var/run/utmp>"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid "I</var/log/wtmp>"
408 msgstr "I</var/log/wtmp>"
409
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "VERSIONS"
415 msgstr "VERSIONES"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "POSIX.1 does not specify a I<utmp> structure, but rather one named I<utmpx> "
422 "(as part of the XSI extension), with specifications for the fields "
423 "I<ut_type>, I<ut_pid>, I<ut_line>, I<ut_id>, I<ut_user>, and I<ut_tv>. "
424 "POSIX.1 does not specify the lengths of the I<ut_line> and I<ut_user> fields."
425 msgstr ""
426 "POSIX.1 no define la estructura de I<utmp>, en cambio la define para "
427 "I<utmpx> (como parte de la extensión XSI) detallando especificaciones para "
428 "los campos I<ut_type>, I<ut_pid>, I<ut_line>, I<ut_id>, I<ut_user> y "
429 "I<ut_tv>. Tampoco define la longitud de los campos I<ut_line> y I<ut_user>."
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid ""
435 "Linux defines the I<utmpx> structure to be the same as the I<utmp> structure."
436 msgstr ""
437 "Linux define que la estructura de I<utmpx> debe ser idéntica a la de "
438 "I<utmp>."
439
440 #. type: SH
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "STANDARDS"
445 msgstr "ESTÁNDARES"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid "Linux."
451 msgstr "Linux."
452
453 #. type: SH
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "HISTORY"
458 msgstr "HISTORIAL"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid ""
464 "Linux utmp entries conform neither to v7/BSD nor to System V; they are a mix "
465 "of the two."
466 msgstr ""
467 "Las entradas de utmp no son conformes nia v7/BSD ni a System V sino que son "
468 "una mezcla de ambos."
469
470 #. type: Plain text
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 msgid ""
474 "v7/BSD has fewer fields; most importantly it lacks I<ut_type>, which causes "
475 "native v7/BSD-like programs to display (for example) dead or login entries. "
476 "Further, there is no configuration file which allocates slots to sessions. "
477 "BSD does so because it lacks I<ut_id> fields."
478 msgstr ""
479 "v7/BSD tiene un menor número de campo; principalmente no tiene I<ut_type> lo "
480 "que provoca que las aplicaciones nativas de este sistema muestren (entre "
481 "otras cosas) algunas sesiones muertas. Es más, no dispone de un archivos "
482 "para configurar la reserva de entradas para sesiones al no disponer de "
483 "campos I<ut_id>."
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "In Linux (as in System V), the I<ut_id> field of a record will never change "
490 "once it has been set, which reserves that slot without needing a "
491 "configuration file. Clearing I<ut_id> may result in race conditions leading "
492 "to corrupted utmp entries and potential security holes. Clearing the "
493 "abovementioned fields by filling them with null bytes is not required by "
494 "System V semantics, but makes it possible to run many programs which assume "
495 "BSD semantics and which do not modify utmp. Linux uses the BSD conventions "
496 "for line contents, as documented above."
497 msgstr ""
498 "En Linux (igual que en System V), el campo I<ut_id> de un registro nunca "
499 "cambiará una vez que se le haya asignado un valor, lo que reserva esa "
500 "entrada sin necesidad de un fichero de configuración. Limpiar el campo "
501 "I<ut_id> puede producir condiciones de carrera que den lugar a entradas utmp "
502 "corruptas y a potenciales problemas de seguridad. La semántica de System V "
503 "no necesita la limpieza de los campos mencionados anteriormente "
504 "rellenándolos con bytes nulos, pero esto permite ejecutar muchos programas "
505 "que suponen una semántica BSD y que no modifican utmp. Linux usa las "
506 "convenciones de BSD para los contenidos de las líneas, tal y como se ha "
507 "descrito anteriormente."
508
509 #. #-#-#-#-# archlinux: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
510 #. mtk: What is the referrent of "them" in the following sentence?
511 #. System V only uses the type field to mark them and logs
512 #. informative messages such as \f[B]"new time"\f[] in the line field.
513 #. type: Plain text
514 #. #-#-#-#-# debian-trixie: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
515 #. mtk: What is the referrent of "them" in the following sentence?
516 #. System V only uses the type field to mark them and logs
517 #. informative messages such as \fB"new time"\fP in the line field.
518 #. type: Plain text
519 #. #-#-#-#-# debian-unstable: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
520 #. mtk: What is the referrent of "them" in the following sentence?
521 #. System V only uses the type field to mark them and logs
522 #. informative messages such as \f[B]"new time"\f[] in the line field.
523 #. type: Plain text
524 #. #-#-#-#-# fedora-44: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
525 #. mtk: What is the referrent of "them" in the following sentence?
526 #. System V only uses the type field to mark them and logs
527 #. informative messages such as \fB"new time"\fP in the line field.
528 #. type: Plain text
529 #. #-#-#-#-# fedora-rawhide: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
530 #. mtk: What is the referrent of "them" in the following sentence?
531 #. System V only uses the type field to mark them and logs
532 #. informative messages such as \fB"new time"\fP in the line field.
533 #. type: Plain text
534 #. #-#-#-#-# mageia-cauldron: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
535 #. mtk: What is the referrent of "them" in the following sentence?
536 #. System V only uses the type field to mark them and logs
537 #. informative messages such as \f[B]"new time"\f[] in the line field.
538 #. type: Plain text
539 #. #-#-#-#-# opensuse-leap-16-1: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
540 #. mtk: What is the referrent of "them" in the following sentence?
541 #. System V only uses the type field to mark them and logs
542 #. informative messages such as \f[B]"new time"\f[] in the line field.
543 #. type: Plain text
544 #. #-#-#-#-# opensuse-tumbleweed: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
545 #. mtk: What is the referrent of "them" in the following sentence?
546 #. System V only uses the type field to mark them and logs
547 #. informative messages such as \f[B]"new time"\f[] in the line field.
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid "System V has no I<ut_host> or I<ut_addr_v6> fields."
552 msgstr "System V no tiene los campos I<ut_host> ni I<ut_addr_v6>."
553
554 #. type: SH
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "NOTES"
559 msgstr "NOTAS"
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "Unlike various other systems, where utmp logging can be disabled by removing "
566 "the file, utmp must always exist on Linux. If you want to disable "
567 "B<who>(1), then do not make utmp world readable."
568 msgstr ""
569 "A diferencia de otros sistemas, donde el registro de información en utmp se "
570 "puede deshabilitar borrando el fichero, en Linux este fichero siempre debe "
571 "existir. Si quiere deshabilitar B<who>(1) elimine el permiso de lectura de "
572 "utmp de los permisos correspondientes a \"otros\"."
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "The file format is machine-dependent, so it is recommended that it be "
579 "processed only on the machine architecture where it was created."
580 msgstr ""
581 "El formato del fichero depende de la arquitectura de la máquina, por lo que "
582 "se recomienda que sea procesado únicamente en la arquitectura en que fue "
583 "creado."
584
585 #. type: Plain text
586 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
587 #: opensuse-tumbleweed
588 msgid ""
589 "Note that on I<biarch> platforms, that is, systems which can run both 32-bit "
590 "and 64-bit applications (x86-64, ppc64, s390x, etc.), I<ut_tv> is the same "
591 "size in 32-bit mode as in 64-bit mode. The same goes for I<ut_session> and "
592 "I<ut_time> if they are present. This allows data files and shared memory to "
593 "be shared between 32-bit and 64-bit applications. This is achieved by "
594 "changing the type of I<ut_session> to I<int32_t>, and that of I<ut_tv> to a "
595 "struct with two I<int32_t> fields I<tv_sec> and I<tv_usec>. Since I<ut_tv> "
596 "may not be the same as I<struct\\ timeval>, then instead of the call:"
597 msgstr ""
598 "Tenga en cuenta que en plataformas I<biarquitectura> (aquellas que pueden "
599 "ejecutar aplicaciones de 32 y de 64 bits tales como "
600 "x86-64,ppc64,s390x,etc...), I<ut_tv> tiene el mismo tamaño en el mode de 32-"
601 "bits y en el de 64-bits. Lo mismo ocurre con I<ut_session> y I<ut_time> si "
602 "existen. Esto permite que se comparta memoria y datos entre aplicaciones de "
603 "distinto tipo. Este se consigue al modificar el tipo de I<ut_session> a "
604 "I<int32_t> y el de I<ut_tv> a una estructura con dos campos I<int32_t>: "
605 "I<tv_sec> y I<tv_usec>. Como I<ut_tv> puede no ser igual que I<struct "
606 "timeval> en lugar de la llamada:"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "gettimeofday((struct timeval *) &ut.ut_tv, NULL);\n"
613 msgstr "gettimeofday((struct timeval *) &ut.ut_tv, NULL);\n"
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid "the following method of setting this field is recommended:"
619 msgstr "se recomienda definir este campo con el siguiente método:"
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid ""
626 "struct utmp ut;\n"
627 "struct timeval tv;\n"
628 "\\&\n"
629 "gettimeofday(&tv, NULL);\n"
630 "ut.ut_tv.tv_sec = tv.tv_sec;\n"
631 "ut.ut_tv.tv_usec = tv.tv_usec;\n"
632 msgstr ""
633 "struct utmp ut;\n"
634 "struct timeval tv;\n"
635 "\\&\n"
636 "gettimeofday(&tv, NULL);\n"
637 "ut.ut_tv.tv_sec = tv.tv_sec;\n"
638 "ut.ut_tv.tv_usec = tv.tv_usec;\n"
639
640 #. #-#-#-#-# archlinux: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
641 #. .P
642 #. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6.
643 #. Because of this,
644 #. binaries using the old libc5 struct will corrupt
645 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
646 #. .SH BUGS
647 #. This man page is based on the libc5 one, things may work differently now.
648 #. type: SH
649 #. #-#-#-#-# debian-trixie: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
650 #. .P
651 #. Note that the \fIutmp\fP struct from libc5 has changed in libc6.
652 #. Because of this,
653 #. binaries using the old libc5 struct will corrupt
654 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
655 #. .SH BUGS
656 #. This man page is based on the libc5 one, things may work differently now.
657 #. type: SH
658 #. #-#-#-#-# debian-unstable: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
659 #. .P
660 #. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6.
661 #. Because of this,
662 #. binaries using the old libc5 struct will corrupt
663 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
664 #. .SH BUGS
665 #. This man page is based on the libc5 one, things may work differently now.
666 #. type: SH
667 #. #-#-#-#-# fedora-44: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
668 #. .P
669 #. Note that the \fIutmp\fP struct from libc5 has changed in libc6.
670 #. Because of this,
671 #. binaries using the old libc5 struct will corrupt
672 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
673 #. .SH BUGS
674 #. This man page is based on the libc5 one, things may work differently now.
675 #. type: SH
676 #. #-#-#-#-# fedora-rawhide: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
677 #. .P
678 #. Note that the \fIutmp\fP struct from libc5 has changed in libc6.
679 #. Because of this,
680 #. binaries using the old libc5 struct will corrupt
681 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
682 #. .SH BUGS
683 #. This man page is based on the libc5 one, things may work differently now.
684 #. type: SH
685 #. #-#-#-#-# mageia-cauldron: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
686 #. .P
687 #. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6.
688 #. Because of this,
689 #. binaries using the old libc5 struct will corrupt
690 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
691 #. .SH BUGS
692 #. This man page is based on the libc5 one, things may work differently now.
693 #. type: SH
694 #. #-#-#-#-# opensuse-leap-16-1: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
695 #. .P
696 #. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6.
697 #. Because of this,
698 #. binaries using the old libc5 struct will corrupt
699 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
700 #. .SH BUGS
701 #. This man page is based on the libc5 one, things may work differently now.
702 #. type: SH
703 #. #-#-#-#-# opensuse-tumbleweed: utmp.5.pot (PACKAGE VERSION) #-#-#-#-#
704 #. .P
705 #. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6.
706 #. Because of this,
707 #. binaries using the old libc5 struct will corrupt
708 #. .IR /var/run/utmp " and/or " /var/log/wtmp .
709 #. .SH BUGS
710 #. This man page is based on the libc5 one, things may work differently now.
711 #. type: SH
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "SEE ALSO"
716 msgstr "VÉASE TAMBIÉN"
717
718 #. type: Plain text
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 msgid ""
722 "B<ac>(1), B<date>(1), B<init>(1), B<last>(1), B<login>(1), B<logname>(1), "
723 "B<lslogins>(1), B<users>(1), B<utmpdump>(1), B<who>(1), B<getutent>(3), "
724 "B<getutmp>(3), B<login>(3), B<logout>(3), B<logwtmp>(3), B<updwtmp>(3)"
725 msgstr ""
726 "B<ac>(1), B<date>(1), B<init>(1), B<last>(1), B<login>(1), B<logname>(1), "
727 "B<lslogins>(1), B<users>(1), B<utmpdump>(1), B<who>(1), B<getutent>(3), "
728 "B<getutmp>(3), B<login>(3), B<logout>(3), B<logwtmp>(3), B<updwtmp>(3)"
729
730 #. type: TH
731 #: debian-trixie
732 #, no-wrap
733 msgid "2024-06-15"
734 msgstr "15 Junio 2024"
735
736 #. type: TH
737 #: debian-trixie
738 #, no-wrap
739 msgid "Linux man-pages 6.9.1"
740 msgstr "Páginas de Manual de Linux 6.9.1"
741
742 #. type: Plain text
743 #: debian-trixie
744 #, no-wrap
745 msgid ""
746 "/* Values for ut_type field, below */\n"
747 "\\&\n"
748 "#define EMPTY 0 /* Record does not contain valid info\n"
749 " (formerly known as UT_UNKNOWN on Linux) */\n"
750 "#define RUN_LVL 1 /* Change in system run-level (see\n"
751 " B<init>(1)) */\n"
752 "#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n"
753 "#define NEW_TIME 3 /* Time after system clock change\n"
754 " (in I<ut_tv>) */\n"
755 "#define OLD_TIME 4 /* Time before system clock change\n"
756 " (in I<ut_tv>) */\n"
757 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1) */\n"
758 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
759 "#define USER_PROCESS 7 /* Normal process */\n"
760 "#define DEAD_PROCESS 8 /* Terminated process */\n"
761 "#define ACCOUNTING 9 /* Not implemented */\n"
762 "\\&\n"
763 "#define UT_LINESIZE 32\n"
764 "#define UT_NAMESIZE 32\n"
765 "#define UT_HOSTSIZE 256\n"
766 "\\&\n"
767 "struct exit_status { /* Type for ut_exit, below */\n"
768 " short e_termination; /* Process termination status */\n"
769 " short e_exit; /* Process exit status */\n"
770 "};\n"
771 "\\&\n"
772 "struct utmp {\n"
773 " short ut_type; /* Type of record */\n"
774 " pid_t ut_pid; /* PID of login process */\n"
775 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
776 " char ut_id[4]; /* Terminal name suffix,\n"
777 " or inittab(5) ID */\n"
778 " char ut_user[UT_NAMESIZE]; /* Username */\n"
779 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
780 " kernel version for run-level\n"
781 " messages */\n"
782 " struct exit_status ut_exit; /* Exit status of a process\n"
783 " marked as DEAD_PROCESS; not\n"
784 " used by Linux init(1) */\n"
785 " /* The ut_session and ut_tv fields must be the same size when\n"
786 " compiled 32- and 64-bit. This allows data files and shared\n"
787 " memory to be shared between 32- and 64-bit applications. */\n"
788 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
789 " int32_t ut_session; /* Session ID (B<getsid>(2)),\n"
790 " used for windowing */\n"
791 " struct {\n"
792 " int32_t tv_sec; /* Seconds */\n"
793 " int32_t tv_usec; /* Microseconds */\n"
794 " } ut_tv; /* Time entry was made */\n"
795 "#else\n"
796 " long ut_session; /* Session ID */\n"
797 " struct timeval ut_tv; /* Time entry was made */\n"
798 "#endif\n"
799 "\\&\n"
800 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
801 " host; IPv4 address uses\n"
802 " just ut_addr_v6[0] */\n"
803 " char __unused[20]; /* Reserved for future use */\n"
804 "};\n"
805 "\\&\n"
806 "/* Backward compatibility hacks */\n"
807 "#define ut_name ut_user\n"
808 "#ifndef _NO_UT_TIME\n"
809 "#define ut_time ut_tv.tv_sec\n"
810 "#endif\n"
811 "#define ut_xtime ut_tv.tv_sec\n"
812 "#define ut_addr ut_addr_v6[0]\n"
813 msgstr ""
814 "/* Values for ut_type field, below */\n"
815 "\\&\n"
816 "#define EMPTY 0 /* Record does not contain valid info\n"
817 " (formerly known as UT_UNKNOWN on Linux) */\n"
818 "#define RUN_LVL 1 /* Change in system run-level (see\n"
819 " B<init>(1)) */\n"
820 "#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n"
821 "#define NEW_TIME 3 /* Time after system clock change\n"
822 " (in I<ut_tv>) */\n"
823 "#define OLD_TIME 4 /* Time before system clock change\n"
824 " (in I<ut_tv>) */\n"
825 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1) */\n"
826 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
827 "#define USER_PROCESS 7 /* Normal process */\n"
828 "#define DEAD_PROCESS 8 /* Terminated process */\n"
829 "#define ACCOUNTING 9 /* Not implemented */\n"
830 "\\&\n"
831 "#define UT_LINESIZE 32\n"
832 "#define UT_NAMESIZE 32\n"
833 "#define UT_HOSTSIZE 256\n"
834 "\\&\n"
835 "struct exit_status { /* Type for ut_exit, below */\n"
836 " short e_termination; /* Process termination status */\n"
837 " short e_exit; /* Process exit status */\n"
838 "};\n"
839 "\\&\n"
840 "struct utmp {\n"
841 " short ut_type; /* Type of record */\n"
842 " pid_t ut_pid; /* PID of login process */\n"
843 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
844 " char ut_id[4]; /* Terminal name suffix,\n"
845 " or inittab(5) ID */\n"
846 " char ut_user[UT_NAMESIZE]; /* Username */\n"
847 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
848 " kernel version for run-level\n"
849 " messages */\n"
850 " struct exit_status ut_exit; /* Exit status of a process\n"
851 " marked as DEAD_PROCESS; not\n"
852 " used by Linux init(1) */\n"
853 " /* The ut_session and ut_tv fields must be the same size when\n"
854 " compiled 32- and 64-bit. This allows data files and shared\n"
855 " memory to be shared between 32- and 64-bit applications. */\n"
856 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
857 " int32_t ut_session; /* Session ID (B<getsid>(2)),\n"
858 " used for windowing */\n"
859 " struct {\n"
860 " int32_t tv_sec; /* Seconds */\n"
861 " int32_t tv_usec; /* Microseconds */\n"
862 " } ut_tv; /* Time entry was made */\n"
863 "#else\n"
864 " long ut_session; /* Session ID */\n"
865 " struct timeval ut_tv; /* Time entry was made */\n"
866 "#endif\n"
867 "\\&\n"
868 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
869 " host; IPv4 address uses\n"
870 " just ut_addr_v6[0] */\n"
871 " char __unused[20]; /* Reserved for future use */\n"
872 "};\n"
873 "\\&\n"
874 "/* Backward compatibility hacks */\n"
875 "#define ut_name ut_user\n"
876 "#ifndef _NO_UT_TIME\n"
877 "#define ut_time ut_tv.tv_sec\n"
878 "#endif\n"
879 "#define ut_xtime ut_tv.tv_sec\n"
880 "#define ut_addr ut_addr_v6[0]\n"
881
882 #. type: Plain text
883 #: debian-trixie fedora-44 fedora-rawhide
884 msgid ""
885 "Note that on I<biarch> platforms, that is, systems which can run both 32-bit "
886 "and 64-bit applications (x86-64, ppc64, s390x, etc.), I<ut_tv> is the same "
887 "size in 32-bit mode as in 64-bit mode. The same goes for I<ut_session> and "
888 "I<ut_time> if they are present. This allows data files and shared memory to "
889 "be shared between 32-bit and 64-bit applications. This is achieved by "
890 "changing the type of I<ut_session> to I<int32_t>, and that of I<ut_tv> to a "
891 "struct with two I<int32_t> fields I<tv_sec> and I<tv_usec>. Since I<ut_tv> "
892 "may not be the same as I<struct timeval>, then instead of the call:"
893 msgstr ""
894 "Tenga en cuenta que en plataformas I<biarch> (aquellas que pueden ejecutar "
895 "aplicaciones de 32 y de 64 bits tales como x86-64,ppc64,s390x,etc...), "
896 "I<ut_tv> tiene el mismo tamaño en el mode de 32-bits y en el de 64-bits. Lo "
897 "mismo ocurre con I<ut_session> y I<ut_time> si existen. Esto permite que se "
898 "comparta memoria y datos entre aplicaciones de distinto tipo. Este se "
899 "consigue al modificar el tipo de I<ut_session> a I<int32_t> y el de I<ut_tv> "
900 "a una estructura con dos campos I<int32_t>: I<tv_sec> y I<tv_usec>. Como "
901 "I<ut_tv> puede no ser igual que I<struct timeval> en lugar de la llamada:"
902
903 #. type: TH
904 #: fedora-44 fedora-rawhide
905 #, no-wrap
906 msgid "2024-09-01"
907 msgstr "1 Septiembre 2024"
908
909 #. type: TH
910 #: fedora-44 fedora-rawhide
911 #, no-wrap
912 msgid "Linux man-pages 6.13"
913 msgstr "Páginas de Manual de Linux 6.13"
914
915 #. type: Plain text
916 #: fedora-44 fedora-rawhide
917 #, no-wrap
918 msgid ""
919 "/* Values for ut_type field, below */\n"
920 "\\&\n"
921 "#define EMPTY 0 /* Record does not contain valid info\n"
922 " (formerly known as UT_UNKNOWN on Linux) */\n"
923 "#define RUN_LVL 1 /* Change in system run-level (see\n"
924 " B<init>(1))\\ \n"
925 "*/\n"
926 "#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n"
927 "#define NEW_TIME 3 /* Time after system clock change\n"
928 " (in I<ut_tv>) */\n"
929 "#define OLD_TIME 4 /* Time before system clock change\n"
930 " (in I<ut_tv>) */\n"
931 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1)\\ \n"
932 "*/\n"
933 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
934 "#define USER_PROCESS 7 /* Normal process */\n"
935 "#define DEAD_PROCESS 8 /* Terminated process */\n"
936 "#define ACCOUNTING 9 /* Not implemented */\n"
937 "\\&\n"
938 "#define UT_LINESIZE 32\n"
939 "#define UT_NAMESIZE 32\n"
940 "#define UT_HOSTSIZE 256\n"
941 "\\&\n"
942 "struct exit_status { /* Type for ut_exit, below */\n"
943 " short e_termination; /* Process termination status */\n"
944 " short e_exit; /* Process exit status */\n"
945 "};\n"
946 "\\&\n"
947 "struct utmp {\n"
948 " short ut_type; /* Type of record */\n"
949 " pid_t ut_pid; /* PID of login process */\n"
950 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
951 " char ut_id[4]; /* Terminal name suffix,\n"
952 " or inittab(5) ID */\n"
953 " char ut_user[UT_NAMESIZE]; /* Username */\n"
954 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
955 " kernel version for run-level\n"
956 " messages */\n"
957 " struct exit_status ut_exit; /* Exit status of a process\n"
958 " marked as DEAD_PROCESS; not\n"
959 " used by Linux B<init>(1)\\ \n"
960 "*/\n"
961 " /* The ut_session and ut_tv fields must be the same size when\n"
962 " compiled 32- and 64-bit. This allows data files and shared\n"
963 " memory to be shared between 32- and 64-bit applications. */\n"
964 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
965 " int32_t ut_session; /* Session ID (\n"
966 "B<getsid>(2)B<),>\n"
967 " used for windowing */\n"
968 " struct {\n"
969 " int32_t tv_sec; /* Seconds */\n"
970 " int32_t tv_usec; /* Microseconds */\n"
971 " } ut_tv; /* Time entry was made */\n"
972 "#else\n"
973 " long ut_session; /* Session ID */\n"
974 " struct timeval ut_tv; /* Time entry was made */\n"
975 "#endif\n"
976 "\\&\n"
977 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
978 " host; IPv4 address uses\n"
979 " just ut_addr_v6[0] */\n"
980 " char __unused[20]; /* Reserved for future use */\n"
981 "};\n"
982 "\\&\n"
983 "/* Backward compatibility hacks */\n"
984 "#define ut_name ut_user\n"
985 "#ifndef _NO_UT_TIME\n"
986 "#define ut_time ut_tv.tv_sec\n"
987 "#endif\n"
988 "#define ut_xtime ut_tv.tv_sec\n"
989 "#define ut_addr ut_addr_v6[0]\n"
990 msgstr ""
991 "/* Values for ut_type field, below */\n"
992 "\\&\n"
993 "#define EMPTY 0 /* Record does not contain valid info\n"
994 " (formerly known as UT_UNKNOWN on Linux) */\n"
995 "#define RUN_LVL 1 /* Change in system run-level (see\n"
996 " B<init>(1)) */\n"
997 "#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n"
998 "#define NEW_TIME 3 /* Time after system clock change\n"
999 " (in I<ut_tv>) */\n"
1000 "#define OLD_TIME 4 /* Time before system clock change\n"
1001 " (in I<ut_tv>) */\n"
1002 "#define INIT_PROCESS 5 /* Process spawned by B<init>(1) */\n"
1003 "#define LOGIN_PROCESS 6 /* Session leader process for user login */\n"
1004 "#define USER_PROCESS 7 /* Normal process */\n"
1005 "#define DEAD_PROCESS 8 /* Terminated process */\n"
1006 "#define ACCOUNTING 9 /* Not implemented */\n"
1007 "\\&\n"
1008 "#define UT_LINESIZE 32\n"
1009 "#define UT_NAMESIZE 32\n"
1010 "#define UT_HOSTSIZE 256\n"
1011 "\\&\n"
1012 "struct exit_status { /* Type for ut_exit, below */\n"
1013 " short e_termination; /* Process termination status */\n"
1014 " short e_exit; /* Process exit status */\n"
1015 "};\n"
1016 "\\&\n"
1017 "struct utmp {\n"
1018 " short ut_type; /* Type of record */\n"
1019 " pid_t ut_pid; /* PID of login process */\n"
1020 " char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n"
1021 " char ut_id[4]; /* Terminal name suffix,\n"
1022 " or inittab(5) ID */\n"
1023 " char ut_user[UT_NAMESIZE]; /* Username */\n"
1024 " char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n"
1025 " kernel version for run-level\n"
1026 " messages */\n"
1027 " struct exit_status ut_exit; /* Exit status of a process\n"
1028 " marked as DEAD_PROCESS; not\n"
1029 " used by Linux init(1) */\n"
1030 " /* The ut_session and ut_tv fields must be the same size when\n"
1031 " compiled 32- and 64-bit. This allows data files and shared\n"
1032 " memory to be shared between 32- and 64-bit applications. */\n"
1033 "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n"
1034 " int32_t ut_session; /* Session ID (B<getsid>(2)),\n"
1035 " used for windowing */\n"
1036 " struct {\n"
1037 " int32_t tv_sec; /* Seconds */\n"
1038 " int32_t tv_usec; /* Microseconds */\n"
1039 " } ut_tv; /* Time entry was made */\n"
1040 "#else\n"
1041 " long ut_session; /* Session ID */\n"
1042 " struct timeval ut_tv; /* Time entry was made */\n"
1043 "#endif\n"
1044 "\\&\n"
1045 " int32_t ut_addr_v6[4]; /* Internet address of remote\n"
1046 " host; IPv4 address uses\n"
1047 " just ut_addr_v6[0] */\n"
1048 " char __unused[20]; /* Reserved for future use */\n"
1049 "};\n"
1050 "\\&\n"
1051 "/* Backward compatibility hacks */\n"
1052 "#define ut_name ut_user\n"
1053 "#ifndef _NO_UT_TIME\n"
1054 "#define ut_time ut_tv.tv_sec\n"
1055 "#endif\n"
1056 "#define ut_xtime ut_tv.tv_sec\n"
1057 "#define ut_addr ut_addr_v6[0]\n"
1058
1059 #. type: TH
1060 #: mageia-cauldron
1061 #, no-wrap
1062 msgid "Linux man-pages 6.17"
1063 msgstr "Páginas de Manual de Linux 6.17"
1064
1065 #. type: TH
1066 #: opensuse-leap-16-1 opensuse-tumbleweed
1067 #, no-wrap
1068 msgid "Linux man-pages (unreleased)"
1069 msgstr "Páginas de Manual de Linux (no publicadas)"