Debian Codegraph @

po/ru/man3/getutent.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Vladislav <[email protected]>, 2015.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017, 2019.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:26+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, fuzzy, no-wrap
29 #| msgid "B<getutent>()"
30 msgid "getutent"
31 msgstr "B<getutent>()"
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-02-08"
38 msgstr "8 февраля 2026 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid ""
58 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
59 "access utmp file entries"
60 msgstr ""
61 "getutent, getutid, getutline, pututline, setutent, endutent, utmpname - "
62 "доступ к записям файла utmp"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>utmp.hE<gt>>\n"
89 msgstr "B<#include E<lt>utmp.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, fuzzy, no-wrap
95 #| msgid ""
96 #| "B<struct utmpx *getutxent(void);>\n"
97 #| "B<struct utmpx *getutxid(const struct utmpx *);>\n"
98 #| "B<struct utmpx *getutxline(const struct utmpx *);>\n"
99 #| "B<struct utmpx *pututxline(const struct utmpx *);>\n"
100 #| "B<void setutxent(void);>\n"
101 #| "B<void endutxent(void);>\n"
102 msgid ""
103 "B<struct utmp *getutent(void);>\n"
104 "B<struct utmp *getutid(const struct utmp *>I<ut>B<);>\n"
105 "B<struct utmp *getutline(const struct utmp *>I<ut>B<);>\n"
106 msgstr ""
107 "B<struct utmpx *getutxent(void);>\n"
108 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
109 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
110 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
111 "B<void setutxent(void);>\n"
112 "B<void endutxent(void);>\n"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, fuzzy, no-wrap
118 #| msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>"
119 msgid "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>\n"
120 msgstr "B<struct utmp *pututline(const struct utmp *>I<ut>B<);>"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, fuzzy, no-wrap
126 #| msgid "B<void endnetent(void);>\n"
127 msgid ""
128 "B<void setutent(void);>\n"
129 "B<void endutent(void);>\n"
130 msgstr "B<void endnetent(void);>\n"
131
132 #. type: Plain text
133 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
134 #: opensuse-tumbleweed
135 #, fuzzy, no-wrap
136 #| msgid "B<int utmpname(const char *>I<file>B<);>"
137 msgid "B<int utmpname(const char *>I<path>B<);>\n"
138 msgstr "B<int utmpname(const char *>I<file>B<);>"
139
140 #. type: SH
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid "DESCRIPTION"
145 msgstr "ОПИСАНИЕ"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, fuzzy
151 #| msgid ""
152 #| "New applications should use the POSIX.1-specified \"utmpx\" versions of "
153 #| "these functions; see CONFORMING TO."
154 msgid ""
155 "New applications should use the POSIX.1-specified \"utmpx\" versions of "
156 "these functions; see STANDARDS."
157 msgstr ""
158 "В новых приложениях нужно использовать определённые в POSIX.1 «utmpx» версии "
159 "этих функций; смотрите СООТВЕТСТВИЕ СТАНДАРТАМ."
160
161 #. type: Plain text
162 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
163 #: opensuse-tumbleweed
164 #, fuzzy
165 #| msgid ""
166 #| "B<utmpname>() sets the name of the utmp-format file for the other utmp "
167 #| "functions to access. If B<utmpname>() is not used to set the filename "
168 #| "before the other functions are used, they assume B<_PATH_UTMP>, as "
169 #| "defined in I<E<lt>paths.hE<gt>>."
170 msgid ""
171 "B<utmpname>() sets the pathname of the utmp-format file for the other utmp "
172 "functions to access. If B<utmpname>() is not used to set the pathname "
173 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
174 "in I<E<lt>paths.hE<gt>>."
175 msgstr ""
176 "Функция B<utmpname>() задаёт имя файла в формате utmp для других функций "
177 "utmp. Если B<utmpname>() не используется для указания имени файла перед "
178 "работой с другими функциями, то они будут использовать имя из B<_PATH_UTMP>, "
179 "определённое в I<E<lt>paths.hE<gt>>."
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "B<setutent>() rewinds the file pointer to the beginning of the utmp file. "
186 "It is generally a good idea to call it before any of the other functions."
187 msgstr ""
188 "Функция B<setutent>() переносит указатель начало файла utmp. Вообще, "
189 "оптимальным вариантом считается вызывать эту функцию перед вызовом остальных."
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "B<endutent>() closes the utmp file. It should be called when the user code "
196 "is done accessing the file with the other functions."
197 msgstr ""
198 "Функция B<endutent>() закрывает файл utmp. Она должна быть вызвана, когда "
199 "будет завершена работа с файлом посредством других функций."
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "B<getutent>() reads a line from the current file position in the utmp "
206 "file. It returns a pointer to a structure containing the fields of the "
207 "line. The definition of this structure is shown in B<utmp>(5)."
208 msgstr ""
209 "Функция B<getutent>() считывает строку, начиная с текущей позиции файла в "
210 "файле utmp. Она возвращает указатель на структуру, содержащую поля этой "
211 "строки. Определение структуры приведено в B<utmp>(5)."
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 msgid ""
217 "B<getutid>() searches forward from the current file position in the utmp "
218 "file based upon I<ut>. If I<ut-E<gt>ut_type> is one of B<RUN_LVL>, "
219 "B<BOOT_TIME>, B<NEW_TIME>, or B<OLD_TIME>, B<getutid>() will find the first "
220 "entry whose I<ut_type> field matches I<ut-E<gt>ut_type>. If I<ut-"
221 "E<gt>ut_type> is one of B<INIT_PROCESS>, B<LOGIN_PROCESS>, B<USER_PROCESS>, "
222 "or B<DEAD_PROCESS>, B<getutid>() will find the first entry whose I<ut_id> "
223 "field matches I<ut-E<gt>ut_id>."
224 msgstr ""
225 "Функция B<getutid>() производит прямой поиск, начиная с текущей позиции "
226 "файла в файле utmp, основываясь на данных I<ut>. Если значение I<ut-"
227 "E<gt>ut_type> равно B<RUN_LVL>, B<BOOT_TIME>, B<NEW_TIME> или B<OLD_TIME>, "
228 "то B<getutid>() найдёт первую запись, поле I<ut_type> которой совпадает с "
229 "I<ut-E<gt>ut_type>. Если I<ut-E<gt>ut_type> равно B<INIT_PROCESS>, "
230 "B<LOGIN_PROCESS>, B<USER_PROCESS> или B<DEAD_PROCESS>, то B<getutid>() "
231 "найдёт первую запись, поле I<ut_id> которой совпадает с I<ut-E<gt>ut_id>."
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "B<getutline>() searches forward from the current file position in the utmp "
238 "file. It scans entries whose I<ut_type> is B<USER_PROCESS> or "
239 "B<LOGIN_PROCESS> and returns the first one whose I<ut_line> field matches "
240 "I<ut-E<gt>ut_line>."
241 msgstr ""
242 "Функция B<getutline>() производит прямой поиск, начиная с текущей позиции "
243 "файла в файле utmp. Она просматривает записи, у которых поле I<ut_type> "
244 "совпадает с B<USER_PROCESS> или B<LOGIN_PROCESS>, и возвращает первую "
245 "запись, поле I<ut_line> которой совпадает с I<ut-E<gt>ut_line>."
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 "B<pututline>() writes the I<utmp> structure I<ut> into the utmp file. It "
252 "uses B<getutid>() to search for the proper place in the file to insert the "
253 "new entry. If it cannot find an appropriate slot for I<ut>, B<pututline>() "
254 "will append the new entry to the end of the file."
255 msgstr ""
256 "Функция B<pututline>() записывает структуру I<utmp> I<ut> в файл utmp. Для "
257 "поиска места в файле, необходимого для вставки новой записи, используется "
258 "B<getutid>() . Если такое место не найдено, то B<pututline>() добавит запись "
259 "в конец файла."
260
261 #. type: SH
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "RETURN VALUE"
266 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
267
268 #. type: Plain text
269 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
270 #: opensuse-tumbleweed
271 #, fuzzy
272 #| msgid ""
273 #| "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
274 #| "I<struct utmp> on success, and NULL on failure (which includes the "
275 #| "\"record not found\" case). This I<struct utmp> is allocated in static "
276 #| "storage, and may be overwritten by subsequent calls."
277 msgid ""
278 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
279 "I<struct\\ utmp> on success, and NULL on failure (which includes the "
280 "\"record not found\" case). This I<struct\\ utmp> is allocated in static "
281 "storage, and may be overwritten by subsequent calls."
282 msgstr ""
283 "При успешном выполнении функции B<getutent>(), B<getutid>() и B<getutline>() "
284 "возвращают указатель на I<struct utmp> и NULL при ошибке (к ним относится и "
285 "случай «запись не найдена»). Структура I<struct utmp> располагается в "
286 "статическом хранилище и может быть изменена последующими вызовами."
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 "On success B<pututline>() returns I<ut>; on failure, it returns NULL."
292 msgstr ""
293 "При успешном выполнении B<pututline>() возвращает I<ut>; при ошибке "
294 "возвращается NULL."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "B<utmpname>() returns 0 if the new name was successfully stored, or -1 on "
301 "failure."
302 msgstr ""
303 "При успешном назначении нового имени функция B<utmpname>() возвращает 0 и -1 "
304 "при ошибке."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, fuzzy
310 #| msgid ""
311 #| "In the event of an error, these functions I<errno> set to indicate the "
312 #| "cause."
313 msgid "On failure, these functions I<errno> set to indicate the error."
314 msgstr ""
315 "В случае ошибки эти функции изменяют значение I<errno> соответствующим "
316 "образом."
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 "ERRORS"
323 msgstr "ОШИБКИ"
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<ENOMEM>"
330 msgstr "B<ENOMEM>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "Out of memory."
336 msgstr "Не хватает памяти."
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<ESRCH>"
343 msgstr "B<ESRCH>"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid "Record not found."
349 msgstr "Запись не найдена."
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "B<setutent>(), B<pututline>(), and the B<getut*>() functions can also fail "
356 "for the reasons described in B<open>(2)."
357 msgstr ""
358 "Функции B<setutent>(), B<pututline>() и B<getut*>() также могут завершиться "
359 "с ошибкой по причинам, описанным в B<open>(2)."
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 "FILES"
366 msgstr "ФАЙЛЫ"
367
368 #. type: TP
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "I</var/run/utmp>"
373 msgstr "I</var/run/utmp>"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid "database of currently logged-in users"
379 msgstr "база данных пользователей, находящихся в системе в данный момент"
380
381 #. type: TP
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "I</var/log/wtmp>"
386 msgstr "I</var/log/wtmp>"
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 msgid "database of past user logins"
392 msgstr "база данных предыдущих пользовательских входов в систему"
393
394 #. type: SH
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "ATTRIBUTES"
399 msgstr "АТРИБУТЫ"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "For an explanation of the terms used in this section, see B<attributes>(7)."
406 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
407
408 #. type: tbl table
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "Interface"
413 msgstr "Интерфейс"
414
415 #. type: tbl table
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "Attribute"
420 msgstr "Атрибут"
421
422 #. type: tbl table
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "Value"
427 msgstr "Значение"
428
429 #. type: tbl table
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid ".na\n"
434 msgstr ".na\n"
435
436 #. type: tbl table
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid ".nh\n"
441 msgstr ".nh\n"
442
443 #. type: tbl table
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid "B<getutent>()"
448 msgstr "B<getutent>()"
449
450 #. type: tbl table
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "Thread safety"
455 msgstr "Безвредность в нитях"
456
457 #. type: tbl table
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, fuzzy, no-wrap
461 #| msgid "MT-Unsafe race:utent sig:ALRM timer\n"
462 msgid ""
463 "MT-Unsafe init race:utent\n"
464 "race:utentbuf sig:ALRM timer"
465 msgstr "MT-Unsafe race:utent sig:ALRM timer\n"
466
467 #. type: tbl table
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, fuzzy, no-wrap
471 #| msgid ""
472 #| "B<getutmp>(),\n"
473 #| "B<getutmpx>()"
474 msgid ""
475 "B<getutid>(),\n"
476 "B<getutline>()"
477 msgstr ""
478 "B<getutmp>(),\n"
479 "B<getutmpx>()"
480
481 #. type: tbl table
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, fuzzy, no-wrap
485 #| msgid "MT-Unsafe race:utent sig:ALRM timer\n"
486 msgid ""
487 "MT-Unsafe init race:utent\n"
488 "sig:ALRM timer"
489 msgstr "MT-Unsafe race:utent sig:ALRM timer\n"
490
491 #. type: tbl table
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<pututline>()"
496 msgstr "B<pututline>()"
497
498 #. type: tbl table
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid ""
503 "MT-Unsafe race:utent\n"
504 "sig:ALRM timer"
505 msgstr ""
506 "MT-Unsafe race:utent\n"
507 "sig:ALRM timer"
508
509 #. type: tbl table
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, fuzzy, no-wrap
513 #| msgid ""
514 #| "B<setmntent>(),\n"
515 #| "B<endmntent>(),\n"
516 #| "B<hasmntopt>()"
517 msgid ""
518 "B<setutent>(),\n"
519 "B<endutent>(),\n"
520 "B<utmpname>()"
521 msgstr ""
522 "B<setmntent>(),\n"
523 "B<endmntent>(),\n"
524 "B<hasmntopt>()"
525
526 #. type: tbl table
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "MT-Unsafe race:utent"
531 msgstr "MT-Unsafe race:utent"
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid ""
537 "In the above table, I<utent> in I<race:utent> signifies that if any of the "
538 "functions B<setutent>(), B<getutent>(), B<getutid>(), B<getutline>(), "
539 "B<pututline>(), B<utmpname>(), or B<endutent>() are used in parallel in "
540 "different threads of a program, then data races could occur."
541 msgstr ""
542 "В приведённой выше таблице I<utent> в I<race:utent> означает, что если в "
543 "нескольких нитях программы одновременно используются функции B<setutent>(), "
544 "B<getutent>(), B<getutid>(), B<getutline>(), B<pututline>(), B<utmpname>() "
545 "или B<endutent>(), то может возникнуть состязательность по данным."
546
547 #. type: SH
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "STANDARDS"
552 msgstr "СТАНДАРТЫ"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid "None."
558 msgstr "Отсутствуют."
559
560 #. type: SH
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "HISTORY"
565 msgstr "ИСТОРИЯ"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid "XPG2, SVr4."
571 msgstr "XPG2, SVr4."
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "In XPG2 and SVID 2 the function B<pututline>() is documented to return "
578 "void, and that is what it does on many systems (AIX, HP-UX). HP-UX "
579 "introduces a new function B<_pututline>() with the prototype given above "
580 "for B<pututline>()."
581 msgstr ""
582 "Согласно XPG2 и SVID 2 функция B<pututline>() возвращает тип void и такое "
583 "поведение можно встретить во многих системах (AIX, HP-UX). В HP-UX "
584 "представлена новая функция B<_pututline>() с прототипом приведённым выше для "
585 "B<pututline>()."
586
587 #. type: Plain text
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 msgid ""
591 "All these functions are obsolete now on non-Linux systems. POSIX.1-2001 and "
592 "POSIX.1-2008, following SUSv1, does not have any of these functions, but "
593 "instead uses"
594 msgstr ""
595 "Эти функции являются устаревшими в не Linux системах. POSIX.1-2001 и "
596 "POSIX.1-2008, следуя SUSv1, не содержит эти функции, вместо них используются"
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, no-wrap
602 msgid "B<#include E<lt>utmpx.hE<gt>>\n"
603 msgstr "B<#include E<lt>utmpx.hE<gt>>\n"
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 #, no-wrap
609 msgid ""
610 "B<struct utmpx *getutxent(void);>\n"
611 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
612 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
613 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
614 "B<void setutxent(void);>\n"
615 "B<void endutxent(void);>\n"
616 msgstr ""
617 "B<struct utmpx *getutxent(void);>\n"
618 "B<struct utmpx *getutxid(const struct utmpx *);>\n"
619 "B<struct utmpx *getutxline(const struct utmpx *);>\n"
620 "B<struct utmpx *pututxline(const struct utmpx *);>\n"
621 "B<void setutxent(void);>\n"
622 "B<void endutxent(void);>\n"
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "These functions are provided by glibc, and perform the same task as their "
629 "equivalents without the \"x\", but use I<struct utmpx>, defined on Linux to "
630 "be the same as I<struct utmp>. For completeness, glibc also provides "
631 "B<utmpxname>(), although this function is not specified by POSIX.1."
632 msgstr ""
633 "Эти функции предоставляются glibc и выполняют те же задачи что и их аналоги "
634 "без «x»\", но используют I<struct utmpx>, определённую в Linux подобно "
635 "I<struct utmp>. Для завершённости, в glibc также есть B<utmpxname>(), хотя "
636 "эта функция отсутствует в POSIX.1."
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 msgid ""
642 "On some other systems, the I<utmpx> structure is a superset of the I<utmp> "
643 "structure, with additional fields, and larger versions of the existing "
644 "fields, and parallel files are maintained, often I</var/*/utmpx> and I</var/"
645 "*/wtmpx>."
646 msgstr ""
647 "В некоторых других системах структура I<utmpx> представляет собой I<utmp> с "
648 "дополнительными полями и увеличенными размерами одинаковых полей, а также "
649 "параллельно обслуживаются обе версии файлов, часто I</var/*/utmpx> и I</var/"
650 "*/wtmpx>."
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid ""
656 "Linux glibc on the other hand does not use a parallel I<utmpx> file since "
657 "its I<utmp> structure is already large enough. The \"x\" functions listed "
658 "above are just aliases for their counterparts without the \"x\" (e.g., "
659 "B<getutxent>() is an alias for B<getutent>())."
660 msgstr ""
661 "С другой стороны, в Linux glibc не используется второй файл I<utmpx>, так "
662 "как её структура I<utmp> имеет достаточный размер. Функции с «x», "
663 "перечисленные выше, являются просто псевдонимами их аналогов без «x» "
664 "(например, B<getutxent>() псевдоним B<getutent>())."
665
666 #. type: SH
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 #, no-wrap
670 msgid "NOTES"
671 msgstr "ПРИМЕЧАНИЯ"
672
673 #. type: SS
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "glibc notes"
678 msgstr "Замечания по glibc"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, fuzzy
684 #| msgid ""
685 #| "The above functions are not thread-safe. Glibc adds reentrant versions"
686 msgid "The above functions are not thread-safe. glibc adds reentrant versions"
687 msgstr ""
688 "Перечисленные выше функции нельзя использовать в нескольких нитях "
689 "одновременно. В glibc добавлены реентерабельные версии."
690
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, no-wrap
695 msgid ""
696 "B<int getutent_r(struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
697 "B<int getutid_r(struct utmp *>I<ut>B<,>\n"
698 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
699 "B<int getutline_r(struct utmp *>I<ut>B<,>\n"
700 "B< struct utmp *>I<ubuf>B<, struct utmp **>I<ubufp>B<);>\n"
701 msgstr ""
702
703 #. type: Plain text
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 msgid ""
707 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
708 msgstr ""
709 "Требования макроса тестирования свойств для glibc (см. "
710 "B<feature_test_macros>(7)):"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 msgid "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
716 msgstr "B<getutent_r>(), B<getutid_r>(), B<getutline_r>():"
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 #, fuzzy, no-wrap
722 #| msgid ""
723 #| " _GNU_SOURCE\n"
724 #| " || /* since glibc 2.19: */ _DEFAULT_SOURCE\n"
725 #| " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
726 msgid ""
727 " _GNU_SOURCE\n"
728 " || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n"
729 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
730 msgstr ""
731 " _GNU_SOURCE\n"
732 " || /* начиная с glibc 2.19: */ _DEFAULT_SOURCE\n"
733 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n"
734
735 #. type: Plain text
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 msgid ""
739 "These functions are GNU extensions, analogs of the functions of the same "
740 "name without the _r suffix. The I<ubuf> argument gives these functions a "
741 "place to store their result. On success, they return 0, and a pointer to "
742 "the result is written in I<*ubufp>. On error, these functions return -1. "
743 "There are no utmpx equivalents of the above functions. (POSIX.1 does not "
744 "specify such functions.)"
745 msgstr ""
746 "Эти функции являются расширениями GNU, они аналогичны функциям с тем же "
747 "именем без суффикса _r. В аргумент I<ubuf>, передаваемый этим функциям, "
748 "помещается результат. При успешном выполнении они возвращают 0 и указатель "
749 "на результат записывается в I<*ubufp>. При ошибке эти функции возвращают -1. "
750 "Среди этих функций отсутствует эквиваленты utmpx (в POSIX.1 такие функции "
751 "отсутствуют)."
752
753 #. type: SH
754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
756 #, no-wrap
757 msgid "EXAMPLES"
758 msgstr "ПРИМЕРЫ"
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid ""
764 "The following example adds and removes a utmp record, assuming it is run "
765 "from within a pseudo terminal. For usage in a real application, you should "
766 "check the return values of B<getpwuid>(3) and B<ttyname>(3)."
767 msgstr ""
768 "Нижеследующий пример добавляет и удаляет запись utmp, предполагается, что "
769 "программа запущена с псевдотерминала. Для использования в реальном "
770 "приложении необходимо проверять значения, возвращаемые B<getpwuid>(3) и "
771 "B<ttyname>(3)."
772
773 #. type: Plain text
774 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
775 #: opensuse-leap-16-1 opensuse-tumbleweed
776 #, fuzzy, no-wrap
777 #| msgid ""
778 #| " entry.ut_type = USER_PROCESS;\n"
779 #| " entry.ut_pid = getpid();\n"
780 #| " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
781 #| " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
782 #| " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
783 #| " time(&entry.ut_time);\n"
784 #| " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
785 #| " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
786 #| " entry.ut_addr = 0;\n"
787 #| " setutent();\n"
788 #| " pututline(&entry);\n"
789 msgid ""
790 "#include E<lt>err.hE<gt>\n"
791 "#include E<lt>pwd.hE<gt>\n"
792 "#include E<lt>stdlib.hE<gt>\n"
793 "#include E<lt>string.hE<gt>\n"
794 "#include E<lt>time.hE<gt>\n"
795 "#include E<lt>unistd.hE<gt>\n"
796 "#include E<lt>utmp.hE<gt>\n"
797 "\\&\n"
798 "int\n"
799 "main(void)\n"
800 "{\n"
801 " struct utmp entry;\n"
802 "\\&\n"
803 " if (system(\"echo before adding entry:;who\") == -1)\n"
804 " err(EXIT_FAILURE, \"system\");\n"
805 "\\&\n"
806 " entry.ut_type = USER_PROCESS;\n"
807 " entry.ut_pid = getpid();\n"
808 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
809 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
810 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
811 " entry.ut_time = time(NULL);\n"
812 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
813 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
814 " entry.ut_addr = 0;\n"
815 " setutent();\n"
816 " if (pututline(&entry) == NULL)\n"
817 " err(EXIT_FAILURE, \"pututline\");\n"
818 "\\&\n"
819 " if (system(\"echo after adding entry:;who\") == -1)\n"
820 " err(EXIT_FAILURE, \"system\");\n"
821 "\\&\n"
822 " entry.ut_type = DEAD_PROCESS;\n"
823 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
824 " entry.ut_time = 0;\n"
825 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
826 " setutent();\n"
827 " if (pututline(&entry) == NULL)\n"
828 " err(EXIT_FAILURE, \"pututline\");\n"
829 "\\&\n"
830 " if (system(\"echo after removing entry:;who\") == -1)\n"
831 " err(EXIT_FAILURE, \"system\");\n"
832 "\\&\n"
833 " endutent();\n"
834 " exit(EXIT_SUCCESS);\n"
835 "}\n"
836 msgstr ""
837 " entry.ut_type = USER_PROCESS;\n"
838 " entry.ut_pid = getpid();\n"
839 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
840 " /* правильные имена ptys только /dev/tty[pqr][0-9a-z] */\n"
841 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
842 " time(&entry.ut_time);\n"
843 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
844 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
845 " entry.ut_addr = 0;\n"
846 " setutent();\n"
847 " pututline(&entry);\n"
848
849 #. SRC END
850 #. type: SH
851 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
852 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
853 #, no-wrap
854 msgid "SEE ALSO"
855 msgstr "СМОТРИТЕ ТАКЖЕ"
856
857 #. type: Plain text
858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
860 msgid "B<getutmp>(3), B<utmp>(5)"
861 msgstr "B<getutmp>(3), B<utmp>(5)"
862
863 #. type: TH
864 #: debian-trixie
865 #, no-wrap
866 msgid "2024-05-02"
867 msgstr "2 мая 2024 г."
868
869 #. type: TH
870 #: debian-trixie
871 #, no-wrap
872 msgid "Linux man-pages 6.9.1"
873 msgstr "Страницы руководства Linux 6.9.1"
874
875 #. type: Plain text
876 #: debian-trixie
877 msgid "Standard C library (I<libc>, I<-lc>)"
878 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
879
880 #. type: Plain text
881 #: debian-trixie fedora-44 fedora-rawhide
882 #, fuzzy, no-wrap
883 #| msgid "B<int utmpname(const char *>I<file>B<);>"
884 msgid "B<int utmpname(const char *>I<file>B<);>\n"
885 msgstr "B<int utmpname(const char *>I<file>B<);>"
886
887 #. type: Plain text
888 #: debian-trixie fedora-44 fedora-rawhide
889 msgid ""
890 "B<utmpname>() sets the name of the utmp-format file for the other utmp "
891 "functions to access. If B<utmpname>() is not used to set the filename "
892 "before the other functions are used, they assume B<_PATH_UTMP>, as defined "
893 "in I<E<lt>paths.hE<gt>>."
894 msgstr ""
895 "Функция B<utmpname>() задаёт имя файла в формате utmp для других функций "
896 "utmp. Если B<utmpname>() не используется для указания имени файла перед "
897 "работой с другими функциями, то они будут использовать имя из B<_PATH_UTMP>, "
898 "определённое в I<E<lt>paths.hE<gt>>."
899
900 #. type: Plain text
901 #: debian-trixie fedora-44 fedora-rawhide
902 msgid ""
903 "B<getutent>(), B<getutid>(), and B<getutline>() return a pointer to a "
904 "I<struct utmp> on success, and NULL on failure (which includes the \"record "
905 "not found\" case). This I<struct utmp> is allocated in static storage, and "
906 "may be overwritten by subsequent calls."
907 msgstr ""
908 "При успешном выполнении функции B<getutent>(), B<getutid>() и B<getutline>() "
909 "возвращают указатель на I<struct utmp> и NULL при ошибке (к ним относится и "
910 "случай «запись не найдена»). Структура I<struct utmp> располагается в "
911 "статическом хранилище и может быть изменена последующими вызовами."
912
913 #. type: Plain text
914 #: debian-trixie
915 #, fuzzy, no-wrap
916 #| msgid ""
917 #| " entry.ut_type = USER_PROCESS;\n"
918 #| " entry.ut_pid = getpid();\n"
919 #| " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
920 #| " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
921 #| " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
922 #| " time(&entry.ut_time);\n"
923 #| " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
924 #| " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
925 #| " entry.ut_addr = 0;\n"
926 #| " setutent();\n"
927 #| " pututline(&entry);\n"
928 msgid ""
929 "#include E<lt>pwd.hE<gt>\n"
930 "#include E<lt>stdlib.hE<gt>\n"
931 "#include E<lt>string.hE<gt>\n"
932 "#include E<lt>time.hE<gt>\n"
933 "#include E<lt>unistd.hE<gt>\n"
934 "#include E<lt>utmp.hE<gt>\n"
935 "\\&\n"
936 "int\n"
937 "main(void)\n"
938 "{\n"
939 " struct utmp entry;\n"
940 "\\&\n"
941 " system(\"echo before adding entry:;who\");\n"
942 "\\&\n"
943 " entry.ut_type = USER_PROCESS;\n"
944 " entry.ut_pid = getpid();\n"
945 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
946 " /* only correct for ptys named /dev/tty[pqr][0-9a-z] */\n"
947 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
948 " entry.ut_time = time(NULL);\n"
949 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
950 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
951 " entry.ut_addr = 0;\n"
952 " setutent();\n"
953 " pututline(&entry);\n"
954 "\\&\n"
955 " system(\"echo after adding entry:;who\");\n"
956 "\\&\n"
957 " entry.ut_type = DEAD_PROCESS;\n"
958 " memset(entry.ut_line, 0, UT_LINESIZE);\n"
959 " entry.ut_time = 0;\n"
960 " memset(entry.ut_user, 0, UT_NAMESIZE);\n"
961 " setutent();\n"
962 " pututline(&entry);\n"
963 "\\&\n"
964 " system(\"echo after removing entry:;who\");\n"
965 "\\&\n"
966 " endutent();\n"
967 " exit(EXIT_SUCCESS);\n"
968 "}\n"
969 msgstr ""
970 " entry.ut_type = USER_PROCESS;\n"
971 " entry.ut_pid = getpid();\n"
972 " strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen(\"/dev/\"));\n"
973 " /* правильные имена ptys только /dev/tty[pqr][0-9a-z] */\n"
974 " strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen(\"/dev/tty\"));\n"
975 " time(&entry.ut_time);\n"
976 " strcpy(entry.ut_user, getpwuid(getuid())-E<gt>pw_name);\n"
977 " memset(entry.ut_host, 0, UT_HOSTSIZE);\n"
978 " entry.ut_addr = 0;\n"
979 " setutent();\n"
980 " pututline(&entry);\n"
981
982 #. type: TH
983 #: fedora-44 fedora-rawhide
984 #, no-wrap
985 msgid "2024-07-23"
986 msgstr "23 июля 2024 г."
987
988 #. type: TH
989 #: fedora-44 fedora-rawhide
990 #, no-wrap
991 msgid "Linux man-pages 6.13"
992 msgstr "Страницы руководства Linux 6.13"
993
994 #. type: TH
995 #: mageia-cauldron
996 #, no-wrap
997 msgid "Linux man-pages 6.17"
998 msgstr "Страницы руководства Linux 6.17"
999
1000 #. type: TH
1001 #: opensuse-leap-16-1 opensuse-tumbleweed
1002 #, no-wrap
1003 msgid "Linux man-pages (unreleased)"
1004 msgstr "Страницы руководства Linux (не выпущены)"