Debian Codegraph @

po/ru/man3/getpwent_r.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:25+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<getpwent_r>()"
30 msgid "getpwent_r"
31 msgstr "B<getpwent_r>()"
32
33 #. type: TH
34 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-02-14"
37 msgstr "14 февраля 2026 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "getpwent_r, fgetpwent_r - get passwd file entry reentrantly"
57 msgstr ""
58 "getpwent_r, fgetpwent_r - получает запись из файла паролей (реентерабельные "
59 "версии)"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "LIBRARY"
66 msgstr "БИБЛИОТЕКА"
67
68 #. type: Plain text
69 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
70 #: opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "Standard C library (I<libc>,\\ I<-lc>)"
72 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
73
74 #. type: SH
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "SYNOPSIS"
79 msgstr "СИНТАКСИС"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<#include E<lt>pwd.hE<gt>>\n"
86 msgstr "B<#include E<lt>pwd.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
90 #: opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<int getpwent_r(>size_t size;\n"
94 "B< struct passwd *restrict >I<pwbuf>B<,>\n"
95 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
96 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
97 "B<int fgetpwent_r(>size_t size;\n"
98 "B< FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
99 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
100 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
101 msgstr ""
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
108 msgstr ""
109 "Требования макроса тестирования свойств для glibc (см. "
110 "B<feature_test_macros>(7)):"
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, fuzzy
116 #| msgid "B<getpwent_r>()"
117 msgid "B<getpwent_r>(),"
118 msgstr "B<getpwent_r>()"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid ""
125 " Since glibc 2.19:\n"
126 " _DEFAULT_SOURCE\n"
127 " glibc 2.19 and earlier:\n"
128 " _BSD_SOURCE || _SVID_SOURCE\n"
129 msgstr ""
130 " начиная с glibc 2.19:\n"
131 " _DEFAULT_SOURCE\n"
132 " в glibc 2.19 и старее:\n"
133 " _BSD_SOURCE || _SVID_SOURCE\n"
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, fuzzy
139 #| msgid "B<fgetpwent_r>()"
140 msgid "B<fgetpwent_r>():"
141 msgstr "B<fgetpwent_r>()"
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid ""
148 " Since glibc 2.19:\n"
149 " _DEFAULT_SOURCE\n"
150 " glibc 2.19 and earlier:\n"
151 " _SVID_SOURCE\n"
152 msgstr ""
153 " начиная с glibc 2.19:\n"
154 " _DEFAULT_SOURCE\n"
155 " glibc 2.19 и старее:\n"
156 " _SVID_SOURCE\n"
157
158 #. type: SH
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "DESCRIPTION"
163 msgstr "ОПИСАНИЕ"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "The functions B<getpwent_r>() and B<fgetpwent_r>() are the reentrant "
170 "versions of B<getpwent>(3) and B<fgetpwent>(3). The former reads the next "
171 "passwd entry from the stream initialized by B<setpwent>(3). The latter "
172 "reads the next passwd entry from I<stream>."
173 msgstr ""
174 "Функции B<getpwent_r>() и B<fgetpwent_r>() являются реентерабельными "
175 "версиями B<getpwent>(3) и B<fgetpwent>(3). Первая читает следующую запись "
176 "паролей из потока, инициализированного B<setpwent>(3). Последняя читает "
177 "следующую запись паролей из потока I<stream>."
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 "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:"
183 msgstr "Структура I<passwd> определена в I<E<lt>pwd.hE<gt>> таким образом:"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid ""
190 "struct passwd {\n"
191 " char *pw_name; /* username */\n"
192 " char *pw_passwd; /* user password */\n"
193 " uid_t pw_uid; /* user ID */\n"
194 " gid_t pw_gid; /* group ID */\n"
195 " char *pw_gecos; /* user information */\n"
196 " char *pw_dir; /* home directory */\n"
197 " char *pw_shell; /* shell program */\n"
198 "};\n"
199 msgstr ""
200 "struct passwd {\n"
201 " char *pw_name; /* имя пользователя */\n"
202 " char *pw_passwd; /* пароль пользователя */\n"
203 " uid_t pw_uid; /* идентификатор пользователя */\n"
204 " gid_t pw_gid; /* идентификатор группы */\n"
205 " char *pw_gecos; /* информация о пользователе */\n"
206 " char *pw_dir; /* домашний каталог */\n"
207 " char *pw_shell; /* программная оболочка */\n"
208 "};\n"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "For more information about the fields of this structure, see B<passwd>(5)."
215 msgstr "Подробней о полях этой структуры смотрите в B<passwd>(5)."
216
217 #. type: Plain text
218 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
219 #: opensuse-tumbleweed
220 #, fuzzy
221 #| msgid ""
222 #| "The nonreentrant functions return a pointer to static storage, where this "
223 #| "static storage contains further pointers to user name, password, gecos "
224 #| "field, home directory and shell. The reentrant functions described here "
225 #| "return all of that in caller-provided buffers. First of all there is the "
226 #| "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
227 #| "I<buf> of size I<buflen> that can hold additional strings. The result of "
228 #| "these functions, the I<struct passwd> read from the stream, is stored in "
229 #| "the provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
230 #| "returned in I<*pwbufp>."
231 msgid ""
232 "The nonreentrant functions return a pointer to static storage, where this "
233 "static storage contains further pointers to user name, password, gecos "
234 "field, home directory and shell. The reentrant functions described here "
235 "return all of that in caller-provided buffers. First of all there is the "
236 "buffer I<pwbuf> that can hold a I<struct\\ passwd>. And next the buffer "
237 "I<buf> of size I<size> that can hold additional strings. The result of "
238 "these functions, the I<struct\\ passwd> read from the stream, is stored in "
239 "the provided buffer I<*pwbuf>, and a pointer to this I<struct\\ passwd> is "
240 "returned in I<*pwbufp>."
241 msgstr ""
242 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
243 "котором хранятся другие указатели на имя пользователя, пароль, поле gecos, "
244 "домашний каталог и оболочку. Реентерабельные функции, описанные здесь, "
245 "возвращают всю информацию в буферах, предоставленных вызывающим. Основным "
246 "буфером является I<pwbuf>, в котором может храниться I<struct passwd>. В "
247 "дополнительном буфере I<buf> размера I<buflen> могут храниться "
248 "дополнительные строки. Результат этих функций, прочитанная из потока "
249 "I<struct passwd>, сохраняется в предоставляемый буфер I<*pwbuf>, и указатель "
250 "на эту I<struct passwd> возвращается в I<*pwbufp>."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
258
259 #. type: Plain text
260 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
261 #: opensuse-tumbleweed
262 #, fuzzy
263 #| msgid ""
264 #| "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
265 #| "I<struct passwd>. On error, these functions return an error value and "
266 #| "I<*pwbufp> is NULL."
267 msgid ""
268 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
269 "I<struct\\ passwd>. On error, these functions return an error value and "
270 "I<*pwbufp> is NULL."
271 msgstr ""
272 "При успешном выполнении эти функции возвращают 0 и I<*pwbufp> указывает на "
273 "I<struct passwd>. При ошибке возвращается значение ошибки и I<*pwbufp> равен "
274 "NULL."
275
276 #. type: SH
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "ERRORS"
281 msgstr "ОШИБКИ"
282
283 #. type: TP
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "B<ENOENT>"
288 msgstr "B<ENOENT>"
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid "No more entries."
294 msgstr "Больше записей нет."
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<ERANGE>"
301 msgstr "B<ERANGE>"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "Insufficient buffer space supplied. Try again with larger buffer."
307 msgstr "Недостаточно места в буфере. Попробуйте ещё раз с большим буфером."
308
309 #. type: SH
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "ATTRIBUTES"
314 msgstr "АТРИБУТЫ"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "For an explanation of the terms used in this section, see B<attributes>(7)."
321 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
322
323 #. type: tbl table
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "Interface"
328 msgstr "Интерфейс"
329
330 #. type: tbl table
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "Attribute"
335 msgstr "Атрибут"
336
337 #. type: tbl table
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "Value"
342 msgstr "Значение"
343
344 #. type: tbl table
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid ".na\n"
349 msgstr ".na\n"
350
351 #. type: tbl table
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid ".nh\n"
356 msgstr ".nh\n"
357
358 #. type: tbl table
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "B<getpwent_r>()"
363 msgstr "B<getpwent_r>()"
364
365 #. type: tbl table
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "Thread safety"
370 msgstr "Безвредность в нитях"
371
372 #. type: tbl table
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "MT-Unsafe race:pwent locale"
377 msgstr "MT-Unsafe race:pwent locale"
378
379 #. type: tbl table
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<fgetpwent_r>()"
384 msgstr "B<fgetpwent_r>()"
385
386 #. type: tbl table
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "MT-Safe"
391 msgstr "MT-Safe"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "In the above table, I<pwent> in I<race:pwent> signifies that if any of the "
398 "functions B<setpwent>(), B<getpwent>(), B<endpwent>(), or B<getpwent_r>() "
399 "are used in parallel in different threads of a program, then data races "
400 "could occur."
401 msgstr ""
402 "В приведённой выше таблице I<pwent> в I<race:pwent> означает, что если в "
403 "нескольких нитях программы одновременно используются функции B<setpwent>(), "
404 "B<getpwent>(), B<endpwent>() или B<getpwent_r>(), то может возникнуть "
405 "состязательность по данным."
406
407 #. type: SH
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "VERSIONS"
412 msgstr "ВЕРСИИ"
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid "Other systems use the prototype"
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
422 #: opensuse-leap-16-1 opensuse-tumbleweed
423 #, fuzzy, no-wrap
424 #| msgid ""
425 #| "struct passwd *\n"
426 #| "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
427 msgid ""
428 "struct passwd *\n"
429 "getpwent_r(struct passwd *pwd, char buf[.size], int size);\n"
430 msgstr ""
431 "struct passwd *\n"
432 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid "or, better,"
438 msgstr "или, лучше,"
439
440 #. type: Plain text
441 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
442 #: opensuse-leap-16-1 opensuse-tumbleweed
443 #, fuzzy, no-wrap
444 #| msgid ""
445 #| "int\n"
446 #| "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
447 #| " FILE **pw_fp);\n"
448 msgid ""
449 "int\n"
450 "getpwent_r(struct passwd *pwd, char buf[.size], int size,\n"
451 " FILE **pw_fp);\n"
452 msgstr ""
453 "int\n"
454 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
455 " FILE **pw_fp);\n"
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "STANDARDS"
462 msgstr "СТАНДАРТЫ"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "None."
468 msgstr "Отсутствуют."
469
470 #. type: SH
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "HISTORY"
475 msgstr "ИСТОРИЯ"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "These functions are done in a style resembling the POSIX version of "
482 "functions like B<getpwnam_r>(3)."
483 msgstr ""
484 "Эти функции выполнены в стиле, напоминающем версию POSIX функций типа "
485 "B<getpwnam_r>(3)."
486
487 #. type: SH
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "NOTES"
492 msgstr "ПРИМЕЧАНИЯ"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "The function B<getpwent_r>() is not really reentrant since it shares the "
499 "reading position in the stream with all other threads."
500 msgstr ""
501 "Функция B<getpwent_r>() не совсем реентерабельна, так как она использует "
502 "общую позицию чтения в потоке с другими нитями."
503
504 #. type: SH
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "EXAMPLES"
509 msgstr "ПРИМЕРЫ"
510
511 #. type: Plain text
512 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
513 #, fuzzy, no-wrap
514 #| msgid ""
515 #| " setpwent();\n"
516 #| " while (1) {\n"
517 #| " i = getpwent_r(&pw, buf, BUFLEN, &pwp);\n"
518 #| " if (i)\n"
519 #| " break;\n"
520 #| " printf(\"%s (%d)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n"
521 #| " pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
522 #| " }\n"
523 #| " endpwent();\n"
524 #| " exit(EXIT_SUCCESS);\n"
525 #| "}\n"
526 msgid ""
527 "#define _GNU_SOURCE\n"
528 "#include E<lt>pwd.hE<gt>\n"
529 "#include E<lt>stdint.hE<gt>\n"
530 "#include E<lt>stdio.hE<gt>\n"
531 "#include E<lt>stdlib.hE<gt>\n"
532 "\\&\n"
533 "#define BUFLEN 4096\n"
534 "\\&\n"
535 "int\n"
536 "main(void)\n"
537 "{\n"
538 " struct passwd pw;\n"
539 " struct passwd *pwp;\n"
540 " char buf[BUFLEN];\n"
541 " int i;\n"
542 "\\&\n"
543 " setpwent();\n"
544 " for (;;) {\n"
545 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
546 " if (i)\n"
547 " break;\n"
548 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
549 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
550 " }\n"
551 " endpwent();\n"
552 " exit(EXIT_SUCCESS);\n"
553 "}\n"
554 msgstr ""
555 " setpwent();\n"
556 " while (1) {\n"
557 " i = getpwent_r(&pw, buf, BUFLEN, &pwp);\n"
558 " if (i)\n"
559 " break;\n"
560 " printf(\"%s (%d)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n"
561 " pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
562 " }\n"
563 " endpwent();\n"
564 " exit(EXIT_SUCCESS);\n"
565 "}\n"
566
567 #. perhaps add error checking - should use strerror_r
568 #. #include <errno.h>
569 #. #include <stdlib.h>
570 #. if (i) {
571 #. if (i == ENOENT)
572 #. break;
573 #. printf("getpwent_r: %s", strerror(i));
574 #. exit(EXIT_SUCCESS);
575 #. }
576 #. SRC END
577 #. type: SH
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid "SEE ALSO"
582 msgstr "СМОТРИТЕ ТАКЖЕ"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), "
589 "B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)"
590 msgstr ""
591 "B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), "
592 "B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)"
593
594 #. type: TH
595 #: debian-trixie
596 #, no-wrap
597 msgid "2024-06-15"
598 msgstr "15 июня 2024 г."
599
600 #. type: TH
601 #: debian-trixie
602 #, no-wrap
603 msgid "Linux man-pages 6.9.1"
604 msgstr "Страницы руководства Linux 6.9.1"
605
606 #. type: Plain text
607 #: debian-trixie
608 msgid "Standard C library (I<libc>, I<-lc>)"
609 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
610
611 #. type: Plain text
612 #: debian-trixie
613 #, no-wrap
614 msgid ""
615 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
616 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
617 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
618 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
619 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
620 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
621 msgstr ""
622
623 #. type: Plain text
624 #: debian-trixie
625 msgid ""
626 "The nonreentrant functions return a pointer to static storage, where this "
627 "static storage contains further pointers to user name, password, gecos "
628 "field, home directory and shell. The reentrant functions described here "
629 "return all of that in caller-provided buffers. First of all there is the "
630 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
631 "I<buf> of size I<buflen> that can hold additional strings. The result of "
632 "these functions, the I<struct passwd> read from the stream, is stored in the "
633 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
634 "returned in I<*pwbufp>."
635 msgstr ""
636 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
637 "котором хранятся другие указатели на имя пользователя, пароль, поле gecos, "
638 "домашний каталог и оболочку. Реентерабельные функции, описанные здесь, "
639 "возвращают всю информацию в буферах, предоставленных вызывающим. Основным "
640 "буфером является I<pwbuf>, в котором может храниться I<struct passwd>. В "
641 "дополнительном буфере I<buf> размера I<buflen> могут храниться "
642 "дополнительные строки. Результат этих функций, прочитанная из потока "
643 "I<struct passwd>, сохраняется в предоставляемый буфер I<*pwbuf>, и указатель "
644 "на эту I<struct passwd> возвращается в I<*pwbufp>."
645
646 #. type: Plain text
647 #: debian-trixie fedora-44 fedora-rawhide
648 msgid ""
649 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
650 "I<struct passwd>. On error, these functions return an error value and "
651 "I<*pwbufp> is NULL."
652 msgstr ""
653 "При успешном выполнении эти функции возвращают 0 и I<*pwbufp> указывает на "
654 "I<struct passwd>. При ошибке возвращается значение ошибки и I<*pwbufp> равен "
655 "NULL."
656
657 #. type: Plain text
658 #: debian-trixie
659 #, no-wrap
660 msgid ""
661 "struct passwd *\n"
662 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
663 msgstr ""
664 "struct passwd *\n"
665 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
666
667 #. type: Plain text
668 #: debian-trixie
669 #, no-wrap
670 msgid ""
671 "int\n"
672 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
673 " FILE **pw_fp);\n"
674 msgstr ""
675 "int\n"
676 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
677 " FILE **pw_fp);\n"
678
679 #. type: Plain text
680 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
681 #, fuzzy, no-wrap
682 #| msgid ""
683 #| " setpwent();\n"
684 #| " while (1) {\n"
685 #| " i = getpwent_r(&pw, buf, BUFLEN, &pwp);\n"
686 #| " if (i)\n"
687 #| " break;\n"
688 #| " printf(\"%s (%d)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n"
689 #| " pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
690 #| " }\n"
691 #| " endpwent();\n"
692 #| " exit(EXIT_SUCCESS);\n"
693 #| "}\n"
694 msgid ""
695 "#define _GNU_SOURCE\n"
696 "#include E<lt>pwd.hE<gt>\n"
697 "#include E<lt>stdint.hE<gt>\n"
698 "#include E<lt>stdio.hE<gt>\n"
699 "#include E<lt>stdlib.hE<gt>\n"
700 "\\&\n"
701 "#define BUFLEN 4096\n"
702 "\\&\n"
703 "int\n"
704 "main(void)\n"
705 "{\n"
706 " struct passwd pw;\n"
707 " struct passwd *pwp;\n"
708 " char buf[BUFLEN];\n"
709 " int i;\n"
710 "\\&\n"
711 " setpwent();\n"
712 " while (1) {\n"
713 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
714 " if (i)\n"
715 " break;\n"
716 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
717 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
718 " }\n"
719 " endpwent();\n"
720 " exit(EXIT_SUCCESS);\n"
721 "}\n"
722 msgstr ""
723 " setpwent();\n"
724 " while (1) {\n"
725 " i = getpwent_r(&pw, buf, BUFLEN, &pwp);\n"
726 " if (i)\n"
727 " break;\n"
728 " printf(\"%s (%d)\\etHOME %s\\etSHELL %s\\en\", pwp-E<gt>pw_name,\n"
729 " pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
730 " }\n"
731 " endpwent();\n"
732 " exit(EXIT_SUCCESS);\n"
733 "}\n"
734
735 #. type: TH
736 #: fedora-44 fedora-rawhide
737 #, no-wrap
738 msgid "2024-12-24"
739 msgstr "24 декабря 2024 г."
740
741 #. type: TH
742 #: fedora-44 fedora-rawhide
743 #, no-wrap
744 msgid "Linux man-pages 6.13"
745 msgstr "Страницы руководства Linux 6.13"
746
747 #. type: Plain text
748 #: fedora-44 fedora-rawhide
749 #, no-wrap
750 msgid ""
751 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
752 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
753 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
754 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
755 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
756 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
757 msgstr ""
758
759 #. type: Plain text
760 #: fedora-44 fedora-rawhide
761 #, fuzzy
762 #| msgid ""
763 #| "The nonreentrant functions return a pointer to static storage, where this "
764 #| "static storage contains further pointers to user name, password, gecos "
765 #| "field, home directory and shell. The reentrant functions described here "
766 #| "return all of that in caller-provided buffers. First of all there is the "
767 #| "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
768 #| "I<buf> of size I<buflen> that can hold additional strings. The result of "
769 #| "these functions, the I<struct passwd> read from the stream, is stored in "
770 #| "the provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
771 #| "returned in I<*pwbufp>."
772 msgid ""
773 "The nonreentrant functions return a pointer to static storage, where this "
774 "static storage contains further pointers to user name, password, gecos "
775 "field, home directory and shell. The reentrant functions described here "
776 "return all of that in caller-provided buffers. First of all there is the "
777 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
778 "I<buf> of size I<size> that can hold additional strings. The result of "
779 "these functions, the I<struct passwd> read from the stream, is stored in the "
780 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
781 "returned in I<*pwbufp>."
782 msgstr ""
783 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
784 "котором хранятся другие указатели на имя пользователя, пароль, поле gecos, "
785 "домашний каталог и оболочку. Реентерабельные функции, описанные здесь, "
786 "возвращают всю информацию в буферах, предоставленных вызывающим. Основным "
787 "буфером является I<pwbuf>, в котором может храниться I<struct passwd>. В "
788 "дополнительном буфере I<buf> размера I<buflen> могут храниться "
789 "дополнительные строки. Результат этих функций, прочитанная из потока "
790 "I<struct passwd>, сохраняется в предоставляемый буфер I<*pwbuf>, и указатель "
791 "на эту I<struct passwd> возвращается в I<*pwbufp>."
792
793 #. type: TH
794 #: mageia-cauldron
795 #, no-wrap
796 msgid "2026-02-08"
797 msgstr "8 февраля 2026 г."
798
799 #. type: TH
800 #: mageia-cauldron
801 #, no-wrap
802 msgid "Linux man-pages 6.17"
803 msgstr "Страницы руководства Linux 6.17"
804
805 #. type: TH
806 #: opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "Linux man-pages (unreleased)"
809 msgstr "Страницы руководства Linux (не выпущены)"