Debian Codegraph @

po/de/man3/getutent.3.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Martin Eberhard Schauer <[email protected]>, 2012.
5 # Mario Blättermann <[email protected]>, 2014.
6 # Dr. Tobias Quathamer <[email protected]>, 2012, 2016.
7 # Helge Kreutzmann <[email protected]>, 2023.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n 4.27.0\n"
11 "POT-Creation-Date: 2026-06-05 06:26+0200\n"
12 "PO-Revision-Date: 2025-08-05 16:40+0200\n"
13 "Last-Translator: Helge Kreutzmann <[email protected]>\n"
14 "Language-Team: German <[email protected]>\n"
15 "Language: de\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "getutent"
26 msgstr "getutent"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8. Februar 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.18"
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 "BEZEICHNUNG"
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 - auf "
56 "Einträge der utmp-Datei zugreifen"
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 "BIBLIOTHEK"
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 "Standard-C-Bibliothek (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 "ÜBERSICHT"
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 #, no-wrap
89 msgid ""
90 "B<struct utmp *getutent(void);>\n"
91 "B<struct utmp *getutid(const struct utmp *>I<ut>B<);>\n"
92 "B<struct utmp *getutline(const struct utmp *>I<ut>B<);>\n"
93 msgstr ""
94 "B<struct utmp *getutent(void);>\n"
95 "B<struct utmp *getutid(const struct utmp *>I<ut>B<);>\n"
96 "B<struct utmp *getutline(const struct utmp *>I<ut>B<);>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>\n"
103 msgstr "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "B<void setutent(void);>\n"
111 "B<void endutent(void);>\n"
112 msgstr ""
113 "B<void setutent(void);>\n"
114 "B<void endutent(void);>\n"
115
116 #. type: Plain text
117 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
118 #: opensuse-tumbleweed
119 #, no-wrap
120 msgid "B<int utmpname(const char *>I<path>B<);>\n"
121 msgstr "B<int utmpname(const char *>I<Pfad>B<);>\n"
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr "BESCHREIBUNG"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "New applications should use the POSIX.1-specified \"utmpx\" versions of "
135 "these functions; see STANDARDS."
136 msgstr ""
137 "Neue Applikationen sollten die in POSIX.1 spezifizierten »utmpx«-Versionen "
138 "dieser Funktionen verwenden, siehe STANDARDS."
139
140 #. type: Plain text
141 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
142 #: opensuse-tumbleweed
143 msgid ""
144 "B<utmpname>() sets the pathname of the utmp-format file for the other utmp "
145 "functions to access. If B<utmpname>() is not used to set the pathname "
146 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
147 "in I<E<lt>paths.hE<gt>>."
148 msgstr ""
149 "B<utmpname>() setzt den Pfadamen der Datei im utmp-Format, auf die die "
150 "anderen utmp-Funktionen zugreifen. Wenn B<utmpname>() nicht benutzt wird, um "
151 "den Pfadnamen zu setzen bevor die anderen Funktionen benutzt werden, wird "
152 "von diesen B<_PATH_UTMP> angenommen, wie in I<E<lt>paths.hE<gt>> definiert."
153
154 # utmp ist der Dateiname (siehe man utmp).
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "B<setutent>() rewinds the file pointer to the beginning of the utmp file. "
160 "It is generally a good idea to call it before any of the other functions."
161 msgstr ""
162 "B<setutent>() setzt den Dateizeiger auf den Anfang der Datei utmp zurück. Im "
163 "Allgemeinen ist es sinnvoll, dies vor Verwendung der anderen Funktionen "
164 "aufzurufen."
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "B<endutent>() closes the utmp file. It should be called when the user code "
171 "is done accessing the file with the other functions."
172 msgstr ""
173 "B<endutent>() schließt die Datei utmp. Sie sollte aufgerufen werden, wenn "
174 "die Verwendung der anderen Funktionen im Benutzercode beendet ist."
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "B<getutent>() reads a line from the current file position in the utmp "
181 "file. It returns a pointer to a structure containing the fields of the "
182 "line. The definition of this structure is shown in B<utmp>(5)."
183 msgstr ""
184 "B<getutent>() liest eine Zeile ab der aktuellen Dateiposition in der Datei "
185 "utmp. Es wird ein Zeiger auf eine Struktur zurückgegeben, welche die Felder "
186 "der Zeile enthält. Die Definition dieser Struktur ist in B<utmp>(5) "
187 "aufgeschlüsselt."
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 "B<getutid>() searches forward from the current file position in the utmp "
194 "file based upon I<ut>. If I<ut-E<gt>ut_type> is one of B<RUN_LVL>, "
195 "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>() will find the first "
196 "entry whose I<ut_type> field matches I<ut-E<gt>ut_type>. If I<ut-"
197 "E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
198 "or B<DEAD_PROCESS>, B<getutid>() will find the first entry whose I<ut_id> "
199 "field matches I<ut-E<gt>ut_id>."
200 msgstr ""
201 "B<getutid>() sucht ab der aktuellen Dateiposition in der Datei utmp "
202 "vorwärts, basierend auf I<ut>. Wenn I<ut-E<gt>ut_type> gleich B<RUN_LVL>, "
203 "B<BOOT_TIME>, B<NEW_TIME> oder B<OLD_TIME> ist, findet B<getutid>() den "
204 "ersten Eintrag, dessen Feld I<ut_type> I<ut-E<gt>ut_type> entspricht. Wenn "
205 "I<ut-E<gt>ut_type> gleich B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS> "
206 "oder B<DEAD_PROCESS> ist, findet B<getutid>() den ersten Eintrag, dessen "
207 "Feld I<ut_id> I<ut-E<gt>ut_id> entspricht."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "B<getutline>() searches forward from the current file position in the utmp "
214 "file. It scans entries whose I<ut_type> is B<USER_PROCESS> or "
215 "B<LOGIN_PROCESS> and returns the first one whose I<ut_line> field matches "
216 "I<ut-E<gt>ut_line>."
217 msgstr ""
218 "B<getutline>() sucht ab der aktuellen Dateiposition in der Datei utmp "
219 "vorwärts. Die Funktion überprüft Einträge, deren Feld I<ut_type> gleich "
220 "B<USER_PROCESS> oder B<LOGIN_PROCESS> ist und gibt den ersten Eintrag "
221 "zurück, dessen Feld I<ut_line> I<ut-E<gt>ut_line> entspricht."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "B<pututline>() writes the I<utmp> structure I<ut> into the utmp file. It "
228 "uses B<getutid>() to search for the proper place in the file to insert the "
229 "new entry. If it cannot find an appropriate slot for I<ut>, B<pututline>() "
230 "will append the new entry to the end of the file."
231 msgstr ""
232 "B<pututline>() schreibt die utmp-Struktur I<ut> in die Datei utmp. Die "
233 "Funktion benutzt B<getutid>(), um den geeigneten Platz in der Datei für das "
234 "Einfügen des neuen Eintrags zu finden. Wenn kein geeigneter Platz für I<ut> "
235 "gefunden werden kann, hängt B<pututline>() den neuen Eintrag am Ende der "
236 "Datei an."
237
238 #. type: SH
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "RETURN VALUE"
243 msgstr "RÜCKGABEWERT"
244
245 #. type: Plain text
246 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
247 #: opensuse-tumbleweed
248 msgid ""
249 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
250 "I<struct\\ utmp> on success, and NULL on failure (which includes the "
251 "\"record not found\" case). This I<struct\\ utmp> is allocated in static "
252 "storage, and may be overwritten by subsequent calls."
253 msgstr ""
254 "B<getutent>(), B<getutid>() und B<getutline>() liefern bei Erfolg einen "
255 "Zeiger auf eine I<struct\\ utmp>-Struktur zurück und NULL bei Fehlern (dies "
256 "schließt den Fall ein, dass ein Eintrag nicht gefunden wird, »record not "
257 "found«). Die Struktur I<struct\\ utmp> wird als statischer Speicher "
258 "alloziert und kann von nachfolgenden Aufrufen überschrieben werden."
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "On success B<pututline>() returns I<ut>; on failure, it returns NULL."
264 msgstr ""
265 "Bei Erfolg gibt B<pututline>() I<ut> zurück; bei Fehlern gibt die Funktion "
266 "NULL zurück."
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "B<utmpname>() returns 0 if the new name was successfully stored, or -1 on "
273 "failure."
274 msgstr ""
275 "Wenn der Name erfolgreich gespeichert wurde, gibt B<utmpname>() 0 zurück, "
276 "bei Fehlern -1."
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 "On failure, these functions I<errno> set to indicate the error."
282 msgstr ""
283 "Im Fehlerfall setzen diese Funktionen I<errno>, um den Fehler anzuzeigen."
284
285 #. type: SH
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "ERRORS"
290 msgstr "FEHLER"
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "B<ENOMEM>"
297 msgstr "B<ENOMEM>"
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid "Out of memory."
303 msgstr "Speicher aufgebraucht."
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<ESRCH>"
310 msgstr "B<ESRCH>"
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 "Record not found."
316 msgstr "Eintrag nicht gefunden."
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "B<setutent>(), B<pututline>(), and the B<getut*>() functions can also fail "
323 "for the reasons described in B<open>(2)."
324 msgstr ""
325 "B<setutent>(), B<pututline>() und die B<getut*>()-Funktionen können aus den "
326 "gleichen Gründen fehlschlagen wie in B<open>(2) beschrieben."
327
328 #. type: SH
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "FILES"
333 msgstr "DATEIEN"
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "I</var/run/utmp>"
340 msgstr "I</var/run/utmp>"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid "database of currently logged-in users"
346 msgstr "Datenbank aktuell angemeldeter Benutzer"
347
348 #. type: TP
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid "I</var/log/wtmp>"
353 msgstr "I</var/log/wtmp>"
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid "database of past user logins"
359 msgstr "Datenbank früherer Benutzeranmeldungen"
360
361 #. type: SH
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "ATTRIBUTES"
366 msgstr "ATTRIBUTE"
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid ""
372 "For an explanation of the terms used in this section, see B<attributes>(7)."
373 msgstr ""
374 "Siehe B<attributes>(7) für eine Erläuterung der in diesem Abschnitt "
375 "verwandten Ausdrücke."
376
377 #. type: tbl table
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "Interface"
382 msgstr "Schnittstelle"
383
384 #. type: tbl table
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "Attribute"
389 msgstr "Attribut"
390
391 #. type: tbl table
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Value"
396 msgstr "Wert"
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid ".na\n"
403 msgstr ".na\n"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid ".nh\n"
410 msgstr ".nh\n"
411
412 #. type: tbl table
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<getutent>()"
417 msgstr "B<getutent>()"
418
419 #. type: tbl table
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "Thread safety"
424 msgstr "Multithread-Fähigkeit"
425
426 #. type: tbl table
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid ""
431 "MT-Unsafe init race:utent\n"
432 "race:utentbuf sig:ALRM timer"
433 msgstr ""
434 "MT-Unsicher init race:utent\n"
435 "race:utentbuf sig:ALRM timer"
436
437 #. type: tbl table
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid ""
442 "B<getutid>(),\n"
443 "B<getutline>()"
444 msgstr ""
445 "B<getutid>(),\n"
446 "B<getutline>()"
447
448 #. type: tbl table
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid ""
453 "MT-Unsafe init race:utent\n"
454 "sig:ALRM timer"
455 msgstr ""
456 "MT-Unsicher init race:utent\n"
457 "sig:ALRM timer"
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "B<pututline>()"
464 msgstr "B<pututline>()"
465
466 #. type: tbl table
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid ""
471 "MT-Unsafe race:utent\n"
472 "sig:ALRM timer"
473 msgstr ""
474 "MT-Unsicher race:utent\n"
475 "sig:ALRM timer"
476
477 #. type: tbl table
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid ""
482 "B<setutent>(),\n"
483 "B<endutent>(),\n"
484 "B<utmpname>()"
485 msgstr ""
486 "B<setutent>(),\n"
487 "B<endutent>(),\n"
488 "B<utmpname>()"
489
490 #. type: tbl table
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 #, no-wrap
494 msgid "MT-Unsafe race:utent"
495 msgstr "MT-Unsicher race:utent"
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 msgid ""
501 "In the above table, I<utent> in I<race:utent> signifies that if any of the "
502 "functions B<setutent>(), B<getutent>(), B<getutid>(), B<getutline>(), "
503 "B<pututline>(), B<utmpname>(), or B<endutent>() are used in parallel in "
504 "different threads of a program, then data races could occur."
505 msgstr ""
506 "In der obigen Tabelle bedeutet I<utent> in I<race:utent>, dass, falls eine "
507 "der Funktionen B<setutent>(), B<getutent>(), B<getutid>(), B<getutline>(), "
508 "B<pututline>(), B<utmpname>() oder B<endutent>() in verschiedenen Threads "
509 "eines Programms parallel verwandt werden, konkurrierende Zugriffe auf Daten "
510 "(»data races«) auftreten könnten."
511
512 #. type: SH
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "STANDARDS"
517 msgstr "STANDARDS"
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid "None."
523 msgstr "Keine."
524
525 #. type: SH
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "HISTORY"
530 msgstr "GESCHICHTE"
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid "XPG2, SVr4."
536 msgstr "XPG2, SVr4."
537
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "In XPG2 and SVID 2 the function B<pututline>() is documented to return "
543 "void, and that is what it does on many systems (AIX, HP-UX). HP-UX "
544 "introduces a new function B<_pututline>() with the prototype given above "
545 "for B<pututline>()."
546 msgstr ""
547 "In XPG2 und SVID 2 ist dokumentiert, dass die Funktion B<pututline>() "
548 "I<void> zurückgibt und das tut sie auch auf vielen Systemen (AIX, HP-UX). HP-"
549 "UX führt eine neue Funktion B<_pututline>() mit dem oben angegebenen "
550 "Prototyp für B<pututline>() ein."
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "All these functions are obsolete now on non-Linux systems. POSIX.1-2001 and "
557 "POSIX.1-2008, following SUSv1, does not have any of these functions, but "
558 "instead uses"
559 msgstr ""
560 "Alle diese Funktionen sind jetzt auf Nicht-Linux-Systemen überholt. "
561 "POSIX.1-2001 und POSIX.1-2008 folgt SUSv1 und erwähnt keine dieser "
562 "Funktionen, sondern nutzt"
563
564 #. type: Plain text
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "B<#include E<lt>utmpx.hE<gt>>\n"
569 msgstr "B<#include E<lt>utmpx.hE<gt>>\n"
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid ""
576 "B<struct utmpx *getutxent(void);>\n"
577 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
578 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
579 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
580 "B<void setutxent(void);>\n"
581 "B<void endutxent(void);>\n"
582 msgstr ""
583 "B<struct utmpx *getutxent(void);>\n"
584 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
585 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
586 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
587 "B<void setutxent(void);>\n"
588 "B<void endutxent(void);>\n"
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "These functions are provided by glibc, and perform the same task as their "
595 "equivalents without the \"x\", but use I<struct utmpx>, defined on Linux to "
596 "be the same as I<struct utmp>. For completeness, glibc also provides "
597 "B<utmpxname>(), although this function is not specified by POSIX.1."
598 msgstr ""
599 "Diese Funktionen werden von der Glibc bereitgestellt und erledigen die "
600 "gleiche Aufgabe wie ihre Äquivalente ohne das »x«, aber verwenden I<struct "
601 "utmpx>, welche unter Linux als das Gleiche wie I<struct utmp> definiert ist. "
602 "Der Vollständigkeit wegen stellt Glibc auch B<utmpxname>() bereit, obwohl "
603 "diese Funktion nicht von POSIX.1 beschrieben wird."
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "On some other systems, the I<utmpx> structure is a superset of the I<utmp> "
610 "structure, with additional fields, and larger versions of the existing "
611 "fields, and parallel files are maintained, often I</var/*/utmpx> and I</var/"
612 "*/wtmpx>."
613 msgstr ""
614 "Auf manchen anderen Systemen ist die I<utmpx>-Struktur eine Obermenge der "
615 "I<utmp>-Struktur mit zusätzlichen Feldern und größeren Versionen der "
616 "vorhandenen Felder. Zudem werden auch parallele Dateien unterstützt, oft I</"
617 "var/*/utmpx> und I</var/*/wtmpx>."
618
619 # s/auf der anderen Seite/hingegen/ ?
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid ""
624 "Linux glibc on the other hand does not use a parallel I<utmpx> file since "
625 "its I<utmp> structure is already large enough. The \"x\" functions listed "
626 "above are just aliases for their counterparts without the \"x\" (e.g., "
627 "B<getutxent>() is an alias for B<getutent>())."
628 msgstr ""
629 "Die Linux-Glibc auf der anderen Seite verwendet keine parallele I<utmpx>-"
630 "Datei, weil ihre I<utmp>-Struktur schon groß genug ist. Die oben "
631 "aufgeführten »x«-Funktionen sind nur Aliase für ihre Gegenstücke ohne »x« (z."
632 "\\ B. ist B<getutxent>() ein Alias für B<getutent>())."
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 "ANMERKUNGEN"
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 "Anmerkungen zur Glibc"
647
648 # HK: reentrant = ablaufinvariant???
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid "The above functions are not thread-safe. glibc adds reentrant versions"
653 msgstr ""
654 "Die oben erwähnten Funktionen sind nicht multithread-fähig. Glibc fügt "
655 "ablaufinvariante Versionen hinzu."
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 #, no-wrap
661 msgid ""
662 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
663 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
664 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
665 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
666 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
667 msgstr ""
668 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
669 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
670 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
671 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
672 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 msgid ""
678 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
679 msgstr ""
680 "Mit Glibc erforderliche Feature-Test-Makros (siehe "
681 "B<feature_test_macros>(7)):"
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
687 msgstr "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid ""
694 " _GNU_SOURCE\n"
695 " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
696 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
697 msgstr ""
698 " _GNU_SOURCE\n"
699 " || /* Seit Glibc 2.19: */ _DEFAULT_SOURCE\n"
700 " || /* Glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid ""
706 "These functions are GNU extensions, analogs of the functions of the same "
707 "name without the _r suffix. The I<ubuf> argument gives these functions a "
708 "place to store their result. On success, they return 0, and a pointer to "
709 "the result is written in I<*ubufp>. On error, these functions return -1. "
710 "There are no utmpx equivalents of the above functions. (POSIX.1 does not "
711 "specify such functions.)"
712 msgstr ""
713 "Diese Funktionen sind GNU-Erweiterungen, Gegenstücke der Funktionen gleichen "
714 "Namens ohne den Suffix _r. Das Argument I<ubuf> gibt diesen Funktionen einen "
715 "Ort für die Speicherung ihrer Ergebnisse. Bei Erfolg geben Sie 0 zurück und "
716 "schreiben einen Zeiger auf das Ergebnis in I<* ubufp>. Tritt ein Fehler auf, "
717 "geben diese Funktionen -1 zurück. Es gibt keine utmpx-Äquivalente dieser "
718 "Funktionen. (POSIX.1 beschreibt diese Funktionen nicht.)"
719
720 #. type: SH
721 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
722 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
723 #, no-wrap
724 msgid "EXAMPLES"
725 msgstr "BEISPIELE"
726
727 #. type: Plain text
728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
730 msgid ""
731 "The following example adds and removes a utmp record, assuming it is run "
732 "from within a pseudo terminal. For usage in a real application, you should "
733 "check the return values of B<getpwuid>(3) and B<ttyname>(3)."
734 msgstr ""
735 "Das folgende Beispiel erstellt und entfernt einen umtp-Datensatz. Es wird "
736 "angenommen, dass es in einem Pseudo-Terminal läuft. Zur Verwendung in einer "
737 "realen Anwendung sollten Sie die Rückgabewerte von B<getpwuid>(3) und "
738 "B<ttyname>(3) prüfen."
739
740 #. type: Plain text
741 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
742 #: opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid ""
745 "#include E<lt>err.hE<gt>\n"
746 "#include E<lt>pwd.hE<gt>\n"
747 "#include E<lt>stdlib.hE<gt>\n"
748 "#include E<lt>string.hE<gt>\n"
749 "#include E<lt>time.hE<gt>\n"
750 "#include E<lt>unistd.hE<gt>\n"
751 "#include E<lt>utmp.hE<gt>\n"
752 "\\&\n"
753 "int\n"
754 "main(void)\n"
755 "{\n"
756 " struct utmp entry;\n"
757 "\\&\n"
758 " if (system(\"echo before adding entry:;who\") == -1)\n"
759 " err(EXIT_FAILURE, \"system\");\n"
760 "\\&\n"
761 " entry.ut_type = USER_PROCESS;\n"
762 " entry.ut_pid = getpid();\n"
763 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
764 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
765 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
766 " entry.ut_time = time(NULL);\n"
767 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
768 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
769 " entry.ut_addr = 0;\n"
770 " setutent();\n"
771 " if (pututline(&entry) == NULL)\n"
772 " err(EXIT_FAILURE, \"pututline\");\n"
773 "\\&\n"
774 " if (system(\"echo after adding entry:;who\") == -1)\n"
775 " err(EXIT_FAILURE, \"system\");\n"
776 "\\&\n"
777 " entry.ut_type = DEAD_PROCESS;\n"
778 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
779 " entry.ut_time = 0;\n"
780 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
781 " setutent();\n"
782 " if (pututline(&entry) == NULL)\n"
783 " err(EXIT_FAILURE, \"pututline\");\n"
784 "\\&\n"
785 " if (system(\"echo after removing entry:;who\") == -1)\n"
786 " err(EXIT_FAILURE, \"system\");\n"
787 "\\&\n"
788 " endutent();\n"
789 " exit(EXIT_SUCCESS);\n"
790 "}\n"
791 msgstr ""
792 "#include E<lt>err.hE<gt>\n"
793 "#include E<lt>pwd.hE<gt>\n"
794 "#include E<lt>stdlib.hE<gt>\n"
795 "#include E<lt>string.hE<gt>\n"
796 "#include E<lt>time.hE<gt>\n"
797 "#include E<lt>unistd.hE<gt>\n"
798 "#include E<lt>utmp.hE<gt>\n"
799 "\\&\n"
800 "int\n"
801 "main(void)\n"
802 "{\n"
803 " struct utmp entry;\n"
804 "\\&\n"
805 " if (system(\"echo Vor dem Hinzufügen des Eintrags:;who\") == -1)\n"
806 " err(EXIT_FAILURE, \"system\");\n"
807 "\\&\n"
808 " entry.ut_type = USER_PROCESS;\n"
809 " entry.ut_pid = getpid();\n"
810 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
811 " /* stimmt nur für ptys namens /dev/tty[pqr][0-9a-z] */\n"
812 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
813 " entry.ut_time = time(NULL);\n"
814 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
815 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
816 " entry.ut_addr = 0;\n"
817 " setutent();\n"
818 " if (pututline(&entry) == NULL)\n"
819 " err(EXIT_FAILURE, \"pututline\");\n"
820 "\\&\n"
821 " if (system(\"echo Nach dem Hinzufügen des Eintrags:;who\") == -1)\n"
822 " err(EXIT_FAILURE, \"system\");\n"
823 "\\&\n"
824 " entry.ut_type = DEAD_PROCESS;\n"
825 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
826 " entry.ut_time = 0;\n"
827 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
828 " setutent();\n"
829 " if (pututline(&entry) == NULL)\n"
830 " err(EXIT_FAILURE, \"pututline\");\n"
831 "\\&\n"
832 " if (system(\"echo Nach dem Entfernen des Eintrags:;who\") == -1)\n"
833 " err(EXIT_FAILURE, \"system\");\n"
834 "\\&\n"
835 " endutent();\n"
836 " exit(EXIT_SUCCESS);\n"
837 "}\n"
838
839 #. SRC END
840 #. type: SH
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 #, no-wrap
844 msgid "SEE ALSO"
845 msgstr "SIEHE AUCH"
846
847 #. type: Plain text
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 msgid "B<getutmp>(3), B<utmp>(5)"
851 msgstr "B<getutmp>(3), B<utmp>(5)"
852
853 #. type: TH
854 #: debian-trixie
855 #, no-wrap
856 msgid "2024-05-02"
857 msgstr "2. Mai 2024"
858
859 #. type: TH
860 #: debian-trixie
861 #, no-wrap
862 msgid "Linux man-pages 6.9.1"
863 msgstr "Linux man-pages 6.9.1"
864
865 #. type: Plain text
866 #: debian-trixie
867 msgid "Standard C library (I<libc>, I<-lc>)"
868 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
869
870 #. type: Plain text
871 #: debian-trixie fedora-44 fedora-rawhide
872 #, no-wrap
873 msgid "B<int utmpname(const char *>I<file>B<);>\n"
874 msgstr "B<int utmpname(const char *>I<Datei>B<);>\n"
875
876 #. type: Plain text
877 #: debian-trixie fedora-44 fedora-rawhide
878 msgid ""
879 "B<utmpname>() sets the name of the utmp-format file for the other utmp "
880 "functions to access. If B<utmpname>() is not used to set the filename "
881 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
882 "in I<E<lt>paths.hE<gt>>."
883 msgstr ""
884 "B<utmpname>() setzt den Namen der Datei im utmp-Format, auf die die anderen "
885 "utmp-Funktionen zugreifen. Wenn B<utmpname>() nicht benutzt wird, um den "
886 "Dateinamen zu setzen bevor die anderen Funktionen benutzt werden, wird von "
887 "diesen B<_PATH_UTMP> angenommen, wie in I<E<lt>paths.hE<gt>> definiert."
888
889 #. type: Plain text
890 #: debian-trixie fedora-44 fedora-rawhide
891 msgid ""
892 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
893 "I<struct utmp> on success, and NULL on failure (which includes the \"record "
894 "not found\" case). This I<struct utmp> is allocated in static storage, and "
895 "may be overwritten by subsequent calls."
896 msgstr ""
897 "B<getutent>(), B<getutid>() und B<getutline>() liefern bei Erfolg einen "
898 "Zeiger auf eine I<struct utmp>-Struktur zurück und NULL bei Fehlern (dies "
899 "schließt den Fall ein, dass ein Eintrag nicht gefunden wird, »record not "
900 "found«). Die Struktur I<struct utmp> wird als statischer Speicher alloziert "
901 "und kann von nachfolgenden Aufrufen überschrieben werden."
902
903 #. type: Plain text
904 #: debian-trixie
905 #, no-wrap
906 msgid ""
907 "#include E<lt>pwd.hE<gt>\n"
908 "#include E<lt>stdlib.hE<gt>\n"
909 "#include E<lt>string.hE<gt>\n"
910 "#include E<lt>time.hE<gt>\n"
911 "#include E<lt>unistd.hE<gt>\n"
912 "#include E<lt>utmp.hE<gt>\n"
913 "\\&\n"
914 "int\n"
915 "main(void)\n"
916 "{\n"
917 " struct utmp entry;\n"
918 "\\&\n"
919 " system(\"echo before adding entry:;who\");\n"
920 "\\&\n"
921 " entry.ut_type = USER_PROCESS;\n"
922 " entry.ut_pid = getpid();\n"
923 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
924 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
925 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
926 " entry.ut_time = time(NULL);\n"
927 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
928 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
929 " entry.ut_addr = 0;\n"
930 " setutent();\n"
931 " pututline(&entry);\n"
932 "\\&\n"
933 " system(\"echo after adding entry:;who\");\n"
934 "\\&\n"
935 " entry.ut_type = DEAD_PROCESS;\n"
936 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
937 " entry.ut_time = 0;\n"
938 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
939 " setutent();\n"
940 " pututline(&entry);\n"
941 "\\&\n"
942 " system(\"echo after removing entry:;who\");\n"
943 "\\&\n"
944 " endutent();\n"
945 " exit(EXIT_SUCCESS);\n"
946 "}\n"
947 msgstr ""
948 "#include E<lt>pwd.hE<gt>\n"
949 "#include E<lt>stdlib.hE<gt>\n"
950 "#include E<lt>string.hE<gt>\n"
951 "#include E<lt>time.hE<gt>\n"
952 "#include E<lt>unistd.hE<gt>\n"
953 "#include E<lt>utmp.hE<gt>\n"
954 "\\&\n"
955 "int\n"
956 "main(void)\n"
957 "{\n"
958 " struct utmp entry;\n"
959 "\\&\n"
960 " system(\"echo Vor dem Hinzufügen des Eintrags:;who\");\n"
961 "\\&\n"
962 " entry.ut_type = USER_PROCESS;\n"
963 " entry.ut_pid = getpid();\n"
964 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
965 " /* stimmt nur für ptys namens /dev/tty[pqr][0-9a-z] */\n"
966 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
967 " entry.ut_time = time(NULL);\n"
968 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
969 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
970 " entry.ut_addr = 0;\n"
971 " setutent();\n"
972 " pututline(&entry);\n"
973 "\\&\n"
974 " system(\"echo Nach dem Hinzufügen des Eintrags:;who\");\n"
975 "\\&\n"
976 " entry.ut_type = DEAD_PROCESS;\n"
977 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
978 " entry.ut_time = 0;\n"
979 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
980 " setutent();\n"
981 " pututline(&entry);\n"
982 "\\&\n"
983 " system(\"echo Nach dem Entfernen des Eintrags:;who\");\n"
984 "\\&\n"
985 " endutent();\n"
986 " exit(EXIT_SUCCESS);\n"
987 "}\n"
988
989 #. type: TH
990 #: fedora-44 fedora-rawhide
991 #, no-wrap
992 msgid "2024-07-23"
993 msgstr "23. Juli 2024"
994
995 #. type: TH
996 #: fedora-44 fedora-rawhide
997 #, no-wrap
998 msgid "Linux man-pages 6.13"
999 msgstr "Linux man-pages 6.13"
1000
1001 #. type: TH
1002 #: mageia-cauldron
1003 #, no-wrap
1004 msgid "Linux man-pages 6.17"
1005 msgstr "Linux man-pages 6.17"
1006
1007 #. type: TH
1008 #: opensuse-leap-16-1 opensuse-tumbleweed
1009 #, no-wrap
1010 msgid "Linux man-pages (unreleased)"
1011 msgstr "Linux man-pages (unveröffentlicht)"