| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:50+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\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 |
#, no-wrap |
| 23 |
msgid "utmp" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2025-09-21" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "utmp, wtmp - login records" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "SYNOPSIS" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "B<#include E<lt>utmp.hE<gt>>\n" |
| 64 |
msgstr "" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "DESCRIPTION" |
| 71 |
msgstr "" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
msgid "" |
| 77 |
"The I<utmp> file allows one to discover information about who is currently " |
| 78 |
"using the system. There may be more users currently using the system, " |
| 79 |
"because not all programs use utmp logging." |
| 80 |
msgstr "" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
msgid "" |
| 86 |
"B<Warning:> I<utmp> must not be writable by the user class \"other\", " |
| 87 |
"because many system programs (foolishly) depend on its integrity. You risk " |
| 88 |
"faked system logfiles and modifications of system files if you leave I<utmp> " |
| 89 |
"writable to any user other than the owner and group owner of the file." |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
msgid "" |
| 96 |
"The file is a sequence of I<utmp> structures, declared as follows in " |
| 97 |
"I<E<lt>utmp.hE<gt>> (note that this is only one of several definitions " |
| 98 |
"around; details depend on the version of libc):" |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 103 |
#: opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "" |
| 106 |
"/* Values for ut_type field, below */\n" |
| 107 |
"\\&\n" |
| 108 |
"#define EMPTY 0 /* Record does not contain valid info\n" |
| 109 |
" (formerly known as UT_UNKNOWN on Linux) */\n" |
| 110 |
"#define RUN_LVL 1 /* Change in system run-level (see\n" |
| 111 |
" B<init>(1))\\ \n" |
| 112 |
"*/\n" |
| 113 |
"#define BOOT_TIME 2 /* Time of system boot (in \\f[I]ut_tv\\fR) */\n" |
| 114 |
"#define NEW_TIME 3 /* Time after system clock change\n" |
| 115 |
" (in \\f[I]ut_tv\\fR) */\n" |
| 116 |
"#define OLD_TIME 4 /* Time before system clock change\n" |
| 117 |
" (in \\f[I]ut_tv\\fR) */\n" |
| 118 |
"#define INIT_PROCESS 5 /* Process spawned by B<init>(1)\\ \n" |
| 119 |
"*/\n" |
| 120 |
"#define LOGIN_PROCESS 6 /* Session leader process for user login */\n" |
| 121 |
"#define USER_PROCESS 7 /* Normal process */\n" |
| 122 |
"#define DEAD_PROCESS 8 /* Terminated process */\n" |
| 123 |
"#define ACCOUNTING 9 /* Not implemented */\n" |
| 124 |
"\\&\n" |
| 125 |
"#define UT_LINESIZE 32\n" |
| 126 |
"#define UT_NAMESIZE 32\n" |
| 127 |
"#define UT_HOSTSIZE 256\n" |
| 128 |
"\\&\n" |
| 129 |
"struct exit_status { /* Type for ut_exit, below */\n" |
| 130 |
" short e_termination; /* Process termination status */\n" |
| 131 |
" short e_exit; /* Process exit status */\n" |
| 132 |
"};\n" |
| 133 |
"\\&\n" |
| 134 |
"struct utmp {\n" |
| 135 |
" short ut_type; /* Type of record */\n" |
| 136 |
" pid_t ut_pid; /* PID of login process */\n" |
| 137 |
" char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n" |
| 138 |
" char ut_id[4]; /* Terminal name suffix,\n" |
| 139 |
" or inittab(5) ID */\n" |
| 140 |
" char ut_user[UT_NAMESIZE]; /* Username */\n" |
| 141 |
" char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n" |
| 142 |
" kernel version for run-level\n" |
| 143 |
" messages */\n" |
| 144 |
" struct exit_status ut_exit; /* Exit status of a process\n" |
| 145 |
" marked as DEAD_PROCESS; not\n" |
| 146 |
" used by Linux B<init>(1)\\ \n" |
| 147 |
"*/\n" |
| 148 |
" /* The ut_session and ut_tv fields must be the same size when\n" |
| 149 |
" compiled 32- and 64-bit. This allows data files and shared\n" |
| 150 |
" memory to be shared between 32- and 64-bit applications. */\n" |
| 151 |
"#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n" |
| 152 |
" int32_t ut_session; /* Session ID (\n" |
| 153 |
"B<getsid>(2)),\n" |
| 154 |
" used for windowing */\n" |
| 155 |
" struct {\n" |
| 156 |
" int32_t tv_sec; /* Seconds */\n" |
| 157 |
" int32_t tv_usec; /* Microseconds */\n" |
| 158 |
" } ut_tv; /* Time entry was made */\n" |
| 159 |
"#else\n" |
| 160 |
" long ut_session; /* Session ID */\n" |
| 161 |
" struct timeval ut_tv; /* Time entry was made */\n" |
| 162 |
"#endif\n" |
| 163 |
"\\&\n" |
| 164 |
" int32_t ut_addr_v6[4]; /* Internet address of remote\n" |
| 165 |
" host; IPv4 address uses\n" |
| 166 |
" just ut_addr_v6[0] */\n" |
| 167 |
" char __unused[20]; /* Reserved for future use */\n" |
| 168 |
"};\n" |
| 169 |
"\\&\n" |
| 170 |
"/* Backward compatibility hacks */\n" |
| 171 |
"#define ut_name ut_user\n" |
| 172 |
"#ifndef _NO_UT_TIME\n" |
| 173 |
"#define ut_time ut_tv.tv_sec\n" |
| 174 |
"#endif\n" |
| 175 |
"#define ut_xtime ut_tv.tv_sec\n" |
| 176 |
"#define ut_addr ut_addr_v6[0]\n" |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"This structure gives the name of the special file associated with the user's " |
| 184 |
"terminal, the user's login name, and the time of login in the form of " |
| 185 |
"B<time>(2). String fields are terminated by a null byte (\\[aq]\\[rs]0\\" |
| 186 |
"[aq]) if they are shorter than the size of the field." |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"The first entries ever created result from B<init>(1) processing " |
| 194 |
"B<inittab>(5). Before an entry is processed, though, B<init>(1) cleans up " |
| 195 |
"utmp by setting I<ut_type> to B<DEAD_PROCESS>, clearing I<ut_user>, " |
| 196 |
"I<ut_host>, and I<ut_time> with null bytes for each record which I<ut_type> " |
| 197 |
"is not B<DEAD_PROCESS> or B<RUN_LVL> and where no process with PID I<ut_pid> " |
| 198 |
"exists. If no empty record with the needed I<ut_id> can be found, " |
| 199 |
"B<init>(1) creates a new one. It sets I<ut_id> from the inittab, I<ut_pid> " |
| 200 |
"and I<ut_time> to the current values, and I<ut_type> to B<INIT_PROCESS>." |
| 201 |
msgstr "" |
| 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 |
msgid "" |
| 207 |
"B<mingetty>(8) (or B<agetty>(8)) locates the entry by the PID, changes " |
| 208 |
"I<ut_type> to B<LOGIN_PROCESS>, changes I<ut_time>, sets I<ut_line>, and " |
| 209 |
"waits for connection to be established. B<login>(1), after a user has been " |
| 210 |
"authenticated, changes I<ut_type> to B<USER_PROCESS>, changes I<ut_time>, " |
| 211 |
"and sets I<ut_host> and I<ut_addr>. Depending on B<mingetty>(8) (or " |
| 212 |
"B<agetty>(8)) and B<login>(1), records may be located by I<ut_line> instead " |
| 213 |
"of the preferable I<ut_pid>." |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "" |
| 220 |
"When B<init>(1) finds that a process has exited, it locates its utmp entry " |
| 221 |
"by I<ut_pid>, sets I<ut_type> to B<DEAD_PROCESS>, and clears I<ut_user>, " |
| 222 |
"I<ut_host>, and I<ut_time> with null bytes." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"B<xterm>(1) and other terminal emulators directly create a B<USER_PROCESS> " |
| 230 |
"record and generate the I<ut_id> by using the string that suffix part of the " |
| 231 |
"terminal name (the characters following I</dev/>[pt]I<ty>). If they find a " |
| 232 |
"B<DEAD_PROCESS> for this ID, they recycle it, otherwise they create a new " |
| 233 |
"entry. If they can, they will mark it as B<DEAD_PROCESS> on exiting and it " |
| 234 |
"is advised that they null I<ut_line>, I<ut_time>, I<ut_user>, and I<ut_host> " |
| 235 |
"as well." |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#. type: Plain text |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
msgid "" |
| 242 |
"B<telnetd>(8) sets up a B<LOGIN_PROCESS> entry and leaves the rest to " |
| 243 |
"B<login>(1) as usual. After the telnet session ends, B<telnetd>(8) cleans " |
| 244 |
"up utmp in the described way." |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"The I<wtmp> file records all logins and logouts. Its format is exactly like " |
| 252 |
"I<utmp> except that a null username indicates a logout on the associated " |
| 253 |
"terminal. Furthermore, the terminal name B<\\[ti]> with username " |
| 254 |
"B<shutdown> or B<reboot> indicates a system shutdown or reboot and the pair " |
| 255 |
"of terminal names B<|>/B<}> logs the old/new system time when B<date>(1) " |
| 256 |
"changes it. I<wtmp> is maintained by B<login>(1), B<init>(1), and some " |
| 257 |
"versions of B<getty>(8) (e.g., B<mingetty>(8) or B<agetty>(8)). None of " |
| 258 |
"these programs creates the file, so if it is removed, record-keeping is " |
| 259 |
"turned off." |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#. type: SH |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "FILES" |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
msgid "I</var/run/utmp>" |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "I</var/log/wtmp>" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: SH |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "VERSIONS" |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"POSIX.1 does not specify a I<utmp> structure, but rather one named I<utmpx> " |
| 293 |
"(as part of the XSI extension), with specifications for the fields " |
| 294 |
"I<ut_type>, I<ut_pid>, I<ut_line>, I<ut_id>, I<ut_user>, and I<ut_tv>. " |
| 295 |
"POSIX.1 does not specify the lengths of the I<ut_line> and I<ut_user> fields." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#. type: Plain text |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
msgid "" |
| 302 |
"Linux defines the I<utmpx> structure to be the same as the I<utmp> structure." |
| 303 |
msgstr "" |
| 304 |
|
| 305 |
#. type: SH |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
#, no-wrap |
| 309 |
msgid "STANDARDS" |
| 310 |
msgstr "" |
| 311 |
|
| 312 |
#. type: Plain text |
| 313 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 314 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
msgid "Linux." |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. type: SH |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "HISTORY" |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "" |
| 329 |
"Linux utmp entries conform neither to v7/BSD nor to System V; they are a mix " |
| 330 |
"of the two." |
| 331 |
msgstr "" |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "" |
| 337 |
"v7/BSD has fewer fields; most importantly it lacks I<ut_type>, which causes " |
| 338 |
"native v7/BSD-like programs to display (for example) dead or login entries. " |
| 339 |
"Further, there is no configuration file which allocates slots to sessions. " |
| 340 |
"BSD does so because it lacks I<ut_id> fields." |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
msgid "" |
| 347 |
"In Linux (as in System V), the I<ut_id> field of a record will never change " |
| 348 |
"once it has been set, which reserves that slot without needing a " |
| 349 |
"configuration file. Clearing I<ut_id> may result in race conditions leading " |
| 350 |
"to corrupted utmp entries and potential security holes. Clearing the " |
| 351 |
"abovementioned fields by filling them with null bytes is not required by " |
| 352 |
"System V semantics, but makes it possible to run many programs which assume " |
| 353 |
"BSD semantics and which do not modify utmp. Linux uses the BSD conventions " |
| 354 |
"for line contents, as documented above." |
| 355 |
msgstr "" |
| 356 |
|
| 357 |
#. #-#-#-#-# archlinux: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 358 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 359 |
#. System V only uses the type field to mark them and logs |
| 360 |
#. informative messages such as \f[B]"new time"\f[] in the line field. |
| 361 |
#. type: Plain text |
| 362 |
#. #-#-#-#-# debian-trixie: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 363 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 364 |
#. System V only uses the type field to mark them and logs |
| 365 |
#. informative messages such as \fB"new time"\fP in the line field. |
| 366 |
#. type: Plain text |
| 367 |
#. #-#-#-#-# debian-unstable: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 368 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 369 |
#. System V only uses the type field to mark them and logs |
| 370 |
#. informative messages such as \f[B]"new time"\f[] in the line field. |
| 371 |
#. type: Plain text |
| 372 |
#. #-#-#-#-# fedora-44: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 373 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 374 |
#. System V only uses the type field to mark them and logs |
| 375 |
#. informative messages such as \fB"new time"\fP in the line field. |
| 376 |
#. type: Plain text |
| 377 |
#. #-#-#-#-# fedora-rawhide: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 378 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 379 |
#. System V only uses the type field to mark them and logs |
| 380 |
#. informative messages such as \fB"new time"\fP in the line field. |
| 381 |
#. type: Plain text |
| 382 |
#. #-#-#-#-# mageia-cauldron: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 383 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 384 |
#. System V only uses the type field to mark them and logs |
| 385 |
#. informative messages such as \f[B]"new time"\f[] in the line field. |
| 386 |
#. type: Plain text |
| 387 |
#. #-#-#-#-# opensuse-leap-16-1: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 388 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 389 |
#. System V only uses the type field to mark them and logs |
| 390 |
#. informative messages such as \f[B]"new time"\f[] in the line field. |
| 391 |
#. type: Plain text |
| 392 |
#. #-#-#-#-# opensuse-tumbleweed: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 393 |
#. mtk: What is the referrent of "them" in the following sentence? |
| 394 |
#. System V only uses the type field to mark them and logs |
| 395 |
#. informative messages such as \f[B]"new time"\f[] in the line field. |
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "System V has no I<ut_host> or I<ut_addr_v6> fields." |
| 400 |
msgstr "" |
| 401 |
|
| 402 |
#. type: SH |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
#, no-wrap |
| 406 |
msgid "NOTES" |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"Unlike various other systems, where utmp logging can be disabled by removing " |
| 414 |
"the file, utmp must always exist on Linux. If you want to disable " |
| 415 |
"B<who>(1), then do not make utmp world readable." |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "" |
| 422 |
"The file format is machine-dependent, so it is recommended that it be " |
| 423 |
"processed only on the machine architecture where it was created." |
| 424 |
msgstr "" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 428 |
#: opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"Note that on I<biarch> platforms, that is, systems which can run both 32-bit " |
| 431 |
"and 64-bit applications (x86-64, ppc64, s390x, etc.), I<ut_tv> is the same " |
| 432 |
"size in 32-bit mode as in 64-bit mode. The same goes for I<ut_session> and " |
| 433 |
"I<ut_time> if they are present. This allows data files and shared memory to " |
| 434 |
"be shared between 32-bit and 64-bit applications. This is achieved by " |
| 435 |
"changing the type of I<ut_session> to I<int32_t>, and that of I<ut_tv> to a " |
| 436 |
"struct with two I<int32_t> fields I<tv_sec> and I<tv_usec>. Since I<ut_tv> " |
| 437 |
"may not be the same as I<struct\\ timeval>, then instead of the call:" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
#, no-wrap |
| 444 |
msgid "gettimeofday((struct timeval *) &ut.ut_tv, NULL);\n" |
| 445 |
msgstr "" |
| 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 "the following method of setting this field is recommended:" |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
#, no-wrap |
| 457 |
msgid "" |
| 458 |
"struct utmp ut;\n" |
| 459 |
"struct timeval tv;\n" |
| 460 |
"\\&\n" |
| 461 |
"gettimeofday(&tv, NULL);\n" |
| 462 |
"ut.ut_tv.tv_sec = tv.tv_sec;\n" |
| 463 |
"ut.ut_tv.tv_usec = tv.tv_usec;\n" |
| 464 |
msgstr "" |
| 465 |
|
| 466 |
#. #-#-#-#-# archlinux: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 467 |
#. .P |
| 468 |
#. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6. |
| 469 |
#. Because of this, |
| 470 |
#. binaries using the old libc5 struct will corrupt |
| 471 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 472 |
#. .SH BUGS |
| 473 |
#. This man page is based on the libc5 one, things may work differently now. |
| 474 |
#. type: SH |
| 475 |
#. #-#-#-#-# debian-trixie: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 476 |
#. .P |
| 477 |
#. Note that the \fIutmp\fP struct from libc5 has changed in libc6. |
| 478 |
#. Because of this, |
| 479 |
#. binaries using the old libc5 struct will corrupt |
| 480 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 481 |
#. .SH BUGS |
| 482 |
#. This man page is based on the libc5 one, things may work differently now. |
| 483 |
#. type: SH |
| 484 |
#. #-#-#-#-# debian-unstable: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 485 |
#. .P |
| 486 |
#. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6. |
| 487 |
#. Because of this, |
| 488 |
#. binaries using the old libc5 struct will corrupt |
| 489 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 490 |
#. .SH BUGS |
| 491 |
#. This man page is based on the libc5 one, things may work differently now. |
| 492 |
#. type: SH |
| 493 |
#. #-#-#-#-# fedora-44: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 494 |
#. .P |
| 495 |
#. Note that the \fIutmp\fP struct from libc5 has changed in libc6. |
| 496 |
#. Because of this, |
| 497 |
#. binaries using the old libc5 struct will corrupt |
| 498 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 499 |
#. .SH BUGS |
| 500 |
#. This man page is based on the libc5 one, things may work differently now. |
| 501 |
#. type: SH |
| 502 |
#. #-#-#-#-# fedora-rawhide: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 503 |
#. .P |
| 504 |
#. Note that the \fIutmp\fP struct from libc5 has changed in libc6. |
| 505 |
#. Because of this, |
| 506 |
#. binaries using the old libc5 struct will corrupt |
| 507 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 508 |
#. .SH BUGS |
| 509 |
#. This man page is based on the libc5 one, things may work differently now. |
| 510 |
#. type: SH |
| 511 |
#. #-#-#-#-# mageia-cauldron: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 512 |
#. .P |
| 513 |
#. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6. |
| 514 |
#. Because of this, |
| 515 |
#. binaries using the old libc5 struct will corrupt |
| 516 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 517 |
#. .SH BUGS |
| 518 |
#. This man page is based on the libc5 one, things may work differently now. |
| 519 |
#. type: SH |
| 520 |
#. #-#-#-#-# opensuse-leap-16-1: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 521 |
#. .P |
| 522 |
#. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6. |
| 523 |
#. Because of this, |
| 524 |
#. binaries using the old libc5 struct will corrupt |
| 525 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 526 |
#. .SH BUGS |
| 527 |
#. This man page is based on the libc5 one, things may work differently now. |
| 528 |
#. type: SH |
| 529 |
#. #-#-#-#-# opensuse-tumbleweed: utmp.5.pot (PACKAGE VERSION) #-#-#-#-# |
| 530 |
#. .P |
| 531 |
#. Note that the \f[I]utmp\f[] struct from libc5 has changed in libc6. |
| 532 |
#. Because of this, |
| 533 |
#. binaries using the old libc5 struct will corrupt |
| 534 |
#. .IR /var/run/utmp " and/or " /var/log/wtmp . |
| 535 |
#. .SH BUGS |
| 536 |
#. This man page is based on the libc5 one, things may work differently now. |
| 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 "SEE ALSO" |
| 542 |
msgstr "" |
| 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 "" |
| 548 |
"B<ac>(1), B<date>(1), B<init>(1), B<last>(1), B<login>(1), B<logname>(1), " |
| 549 |
"B<lslogins>(1), B<users>(1), B<utmpdump>(1), B<who>(1), B<getutent>(3), " |
| 550 |
"B<getutmp>(3), B<login>(3), B<logout>(3), B<logwtmp>(3), B<updwtmp>(3)" |
| 551 |
msgstr "" |
| 552 |
|
| 553 |
#. type: TH |
| 554 |
#: debian-trixie |
| 555 |
#, no-wrap |
| 556 |
msgid "2024-06-15" |
| 557 |
msgstr "" |
| 558 |
|
| 559 |
#. type: TH |
| 560 |
#: debian-trixie |
| 561 |
#, no-wrap |
| 562 |
msgid "Linux man-pages 6.9.1" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: debian-trixie |
| 567 |
#, no-wrap |
| 568 |
msgid "" |
| 569 |
"/* Values for ut_type field, below */\n" |
| 570 |
"\\&\n" |
| 571 |
"#define EMPTY 0 /* Record does not contain valid info\n" |
| 572 |
" (formerly known as UT_UNKNOWN on Linux) */\n" |
| 573 |
"#define RUN_LVL 1 /* Change in system run-level (see\n" |
| 574 |
" B<init>(1)) */\n" |
| 575 |
"#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n" |
| 576 |
"#define NEW_TIME 3 /* Time after system clock change\n" |
| 577 |
" (in I<ut_tv>) */\n" |
| 578 |
"#define OLD_TIME 4 /* Time before system clock change\n" |
| 579 |
" (in I<ut_tv>) */\n" |
| 580 |
"#define INIT_PROCESS 5 /* Process spawned by B<init>(1) */\n" |
| 581 |
"#define LOGIN_PROCESS 6 /* Session leader process for user login */\n" |
| 582 |
"#define USER_PROCESS 7 /* Normal process */\n" |
| 583 |
"#define DEAD_PROCESS 8 /* Terminated process */\n" |
| 584 |
"#define ACCOUNTING 9 /* Not implemented */\n" |
| 585 |
"\\&\n" |
| 586 |
"#define UT_LINESIZE 32\n" |
| 587 |
"#define UT_NAMESIZE 32\n" |
| 588 |
"#define UT_HOSTSIZE 256\n" |
| 589 |
"\\&\n" |
| 590 |
"struct exit_status { /* Type for ut_exit, below */\n" |
| 591 |
" short e_termination; /* Process termination status */\n" |
| 592 |
" short e_exit; /* Process exit status */\n" |
| 593 |
"};\n" |
| 594 |
"\\&\n" |
| 595 |
"struct utmp {\n" |
| 596 |
" short ut_type; /* Type of record */\n" |
| 597 |
" pid_t ut_pid; /* PID of login process */\n" |
| 598 |
" char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n" |
| 599 |
" char ut_id[4]; /* Terminal name suffix,\n" |
| 600 |
" or inittab(5) ID */\n" |
| 601 |
" char ut_user[UT_NAMESIZE]; /* Username */\n" |
| 602 |
" char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n" |
| 603 |
" kernel version for run-level\n" |
| 604 |
" messages */\n" |
| 605 |
" struct exit_status ut_exit; /* Exit status of a process\n" |
| 606 |
" marked as DEAD_PROCESS; not\n" |
| 607 |
" used by Linux init(1) */\n" |
| 608 |
" /* The ut_session and ut_tv fields must be the same size when\n" |
| 609 |
" compiled 32- and 64-bit. This allows data files and shared\n" |
| 610 |
" memory to be shared between 32- and 64-bit applications. */\n" |
| 611 |
"#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n" |
| 612 |
" int32_t ut_session; /* Session ID (B<getsid>(2)),\n" |
| 613 |
" used for windowing */\n" |
| 614 |
" struct {\n" |
| 615 |
" int32_t tv_sec; /* Seconds */\n" |
| 616 |
" int32_t tv_usec; /* Microseconds */\n" |
| 617 |
" } ut_tv; /* Time entry was made */\n" |
| 618 |
"#else\n" |
| 619 |
" long ut_session; /* Session ID */\n" |
| 620 |
" struct timeval ut_tv; /* Time entry was made */\n" |
| 621 |
"#endif\n" |
| 622 |
"\\&\n" |
| 623 |
" int32_t ut_addr_v6[4]; /* Internet address of remote\n" |
| 624 |
" host; IPv4 address uses\n" |
| 625 |
" just ut_addr_v6[0] */\n" |
| 626 |
" char __unused[20]; /* Reserved for future use */\n" |
| 627 |
"};\n" |
| 628 |
"\\&\n" |
| 629 |
"/* Backward compatibility hacks */\n" |
| 630 |
"#define ut_name ut_user\n" |
| 631 |
"#ifndef _NO_UT_TIME\n" |
| 632 |
"#define ut_time ut_tv.tv_sec\n" |
| 633 |
"#endif\n" |
| 634 |
"#define ut_xtime ut_tv.tv_sec\n" |
| 635 |
"#define ut_addr ut_addr_v6[0]\n" |
| 636 |
msgstr "" |
| 637 |
|
| 638 |
#. type: Plain text |
| 639 |
#: debian-trixie fedora-44 fedora-rawhide |
| 640 |
msgid "" |
| 641 |
"Note that on I<biarch> platforms, that is, systems which can run both 32-bit " |
| 642 |
"and 64-bit applications (x86-64, ppc64, s390x, etc.), I<ut_tv> is the same " |
| 643 |
"size in 32-bit mode as in 64-bit mode. The same goes for I<ut_session> and " |
| 644 |
"I<ut_time> if they are present. This allows data files and shared memory to " |
| 645 |
"be shared between 32-bit and 64-bit applications. This is achieved by " |
| 646 |
"changing the type of I<ut_session> to I<int32_t>, and that of I<ut_tv> to a " |
| 647 |
"struct with two I<int32_t> fields I<tv_sec> and I<tv_usec>. Since I<ut_tv> " |
| 648 |
"may not be the same as I<struct timeval>, then instead of the call:" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#. type: TH |
| 652 |
#: fedora-44 fedora-rawhide |
| 653 |
#, no-wrap |
| 654 |
msgid "2024-09-01" |
| 655 |
msgstr "" |
| 656 |
|
| 657 |
#. type: TH |
| 658 |
#: fedora-44 fedora-rawhide |
| 659 |
#, no-wrap |
| 660 |
msgid "Linux man-pages 6.13" |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#. type: Plain text |
| 664 |
#: fedora-44 fedora-rawhide |
| 665 |
#, no-wrap |
| 666 |
msgid "" |
| 667 |
"/* Values for ut_type field, below */\n" |
| 668 |
"\\&\n" |
| 669 |
"#define EMPTY 0 /* Record does not contain valid info\n" |
| 670 |
" (formerly known as UT_UNKNOWN on Linux) */\n" |
| 671 |
"#define RUN_LVL 1 /* Change in system run-level (see\n" |
| 672 |
" B<init>(1))\\ \n" |
| 673 |
"*/\n" |
| 674 |
"#define BOOT_TIME 2 /* Time of system boot (in I<ut_tv>) */\n" |
| 675 |
"#define NEW_TIME 3 /* Time after system clock change\n" |
| 676 |
" (in I<ut_tv>) */\n" |
| 677 |
"#define OLD_TIME 4 /* Time before system clock change\n" |
| 678 |
" (in I<ut_tv>) */\n" |
| 679 |
"#define INIT_PROCESS 5 /* Process spawned by B<init>(1)\\ \n" |
| 680 |
"*/\n" |
| 681 |
"#define LOGIN_PROCESS 6 /* Session leader process for user login */\n" |
| 682 |
"#define USER_PROCESS 7 /* Normal process */\n" |
| 683 |
"#define DEAD_PROCESS 8 /* Terminated process */\n" |
| 684 |
"#define ACCOUNTING 9 /* Not implemented */\n" |
| 685 |
"\\&\n" |
| 686 |
"#define UT_LINESIZE 32\n" |
| 687 |
"#define UT_NAMESIZE 32\n" |
| 688 |
"#define UT_HOSTSIZE 256\n" |
| 689 |
"\\&\n" |
| 690 |
"struct exit_status { /* Type for ut_exit, below */\n" |
| 691 |
" short e_termination; /* Process termination status */\n" |
| 692 |
" short e_exit; /* Process exit status */\n" |
| 693 |
"};\n" |
| 694 |
"\\&\n" |
| 695 |
"struct utmp {\n" |
| 696 |
" short ut_type; /* Type of record */\n" |
| 697 |
" pid_t ut_pid; /* PID of login process */\n" |
| 698 |
" char ut_line[UT_LINESIZE]; /* Device name of tty - \"/dev/\" */\n" |
| 699 |
" char ut_id[4]; /* Terminal name suffix,\n" |
| 700 |
" or inittab(5) ID */\n" |
| 701 |
" char ut_user[UT_NAMESIZE]; /* Username */\n" |
| 702 |
" char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or\n" |
| 703 |
" kernel version for run-level\n" |
| 704 |
" messages */\n" |
| 705 |
" struct exit_status ut_exit; /* Exit status of a process\n" |
| 706 |
" marked as DEAD_PROCESS; not\n" |
| 707 |
" used by Linux B<init>(1)\\ \n" |
| 708 |
"*/\n" |
| 709 |
" /* The ut_session and ut_tv fields must be the same size when\n" |
| 710 |
" compiled 32- and 64-bit. This allows data files and shared\n" |
| 711 |
" memory to be shared between 32- and 64-bit applications. */\n" |
| 712 |
"#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32\n" |
| 713 |
" int32_t ut_session; /* Session ID (\n" |
| 714 |
"B<getsid>(2)B<),>\n" |
| 715 |
" used for windowing */\n" |
| 716 |
" struct {\n" |
| 717 |
" int32_t tv_sec; /* Seconds */\n" |
| 718 |
" int32_t tv_usec; /* Microseconds */\n" |
| 719 |
" } ut_tv; /* Time entry was made */\n" |
| 720 |
"#else\n" |
| 721 |
" long ut_session; /* Session ID */\n" |
| 722 |
" struct timeval ut_tv; /* Time entry was made */\n" |
| 723 |
"#endif\n" |
| 724 |
"\\&\n" |
| 725 |
" int32_t ut_addr_v6[4]; /* Internet address of remote\n" |
| 726 |
" host; IPv4 address uses\n" |
| 727 |
" just ut_addr_v6[0] */\n" |
| 728 |
" char __unused[20]; /* Reserved for future use */\n" |
| 729 |
"};\n" |
| 730 |
"\\&\n" |
| 731 |
"/* Backward compatibility hacks */\n" |
| 732 |
"#define ut_name ut_user\n" |
| 733 |
"#ifndef _NO_UT_TIME\n" |
| 734 |
"#define ut_time ut_tv.tv_sec\n" |
| 735 |
"#endif\n" |
| 736 |
"#define ut_xtime ut_tv.tv_sec\n" |
| 737 |
"#define ut_addr ut_addr_v6[0]\n" |
| 738 |
msgstr "" |
| 739 |
|
| 740 |
#. type: TH |
| 741 |
#: mageia-cauldron |
| 742 |
#, no-wrap |
| 743 |
msgid "Linux man-pages 6.17" |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#. type: TH |
| 747 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 748 |
#, no-wrap |
| 749 |
msgid "Linux man-pages (unreleased)" |
| 750 |
msgstr "" |