Debian Codegraph @

po/ru/man3/getgrent_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<getgrent_r>()"
30 msgid "getgrent_r"
31 msgstr "B<getgrent_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 "getgrent_r, fgetgrent_r - get group file entry reentrantly"
57 msgstr ""
58 "getgrent_r, fgetgrent_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>grp.hE<gt>>\n"
86 msgstr "B<#include E<lt>grp.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 getgrent_r(>size_t size;\n"
94 "B< struct group *restrict >I<gbuf>B<,>\n"
95 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
96 "B< struct group **restrict >I<gbufp>B<);>\n"
97 "B<int fgetgrent_r(>size_t size;\n"
98 "B< FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
99 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
100 "B< struct group **restrict >I<gbufp>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<getgrent_r>()"
117 msgid "B<getgrent_r>():"
118 msgstr "B<getgrent_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 " _GNU_SOURCE\n"
125 msgstr " _GNU_SOURCE\n"
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 #, fuzzy
131 #| msgid "B<fgetgrent_r>()"
132 msgid "B<fgetgrent_r>():"
133 msgstr "B<fgetgrent_r>()"
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 #, no-wrap
139 msgid ""
140 " Since glibc 2.19:\n"
141 " _DEFAULT_SOURCE\n"
142 " glibc 2.19 and earlier:\n"
143 " _SVID_SOURCE\n"
144 msgstr ""
145 " начиная с glibc 2.19:\n"
146 " _DEFAULT_SOURCE\n"
147 " glibc 2.19 и старее:\n"
148 " _SVID_SOURCE\n"
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr "ОПИСАНИЕ"
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "The functions B<getgrent_r>() and B<fgetgrent_r>() are the reentrant "
162 "versions of B<getgrent>(3) and B<fgetgrent>(3). The former reads the next "
163 "group entry from the stream initialized by B<setgrent>(3). The latter reads "
164 "the next group entry from I<stream>."
165 msgstr ""
166 "Функции B<getgrent_r>() и B<fgetgrent_r>() являются реентерабельными "
167 "версиями B<getgrent>(3) и B<fgetgrent>(3). Первая читает следующую запись "
168 "группы из потока, инициализированного B<setgrent>(3). Последняя читает "
169 "следующую запись группы из I<stream>."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "The I<group> structure is defined in I<E<lt>grp.hE<gt>> as follows:"
175 msgstr "Структура I<group> определена в I<E<lt>grp.hE<gt>> следующим образом:"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid ""
182 "struct group {\n"
183 " char *gr_name; /* group name */\n"
184 " char *gr_passwd; /* group password */\n"
185 " gid_t gr_gid; /* group ID */\n"
186 " char **gr_mem; /* NULL-terminated array of pointers\n"
187 " to names of group members */\n"
188 "};\n"
189 msgstr ""
190 "struct group {\n"
191 " char *gr_name; /* имя группы */\n"
192 " char *gr_passwd; /* пароль группы */\n"
193 " gid_t gr_gid; /* ID группы */\n"
194 " char **gr_mem; /* массив, указателей\n"
195 " имён членов группы, оканчивающийся NULL */\n"
196 "};\n"
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "For more information about the fields of this structure, see B<group>(5)."
203 msgstr "Подробней о полях этой структуры смотрите в B<group>(5)."
204
205 #. type: Plain text
206 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
207 #: opensuse-tumbleweed
208 #, fuzzy
209 #| msgid ""
210 #| "The nonreentrant functions return a pointer to static storage, where this "
211 #| "static storage contains further pointers to group name, password and "
212 #| "members. The reentrant functions described here return all of that in "
213 #| "caller-provided buffers. First of all there is the buffer I<gbuf> that "
214 #| "can hold a I<struct group>. And next the buffer I<buf> of size I<buflen> "
215 #| "that can hold additional strings. The result of these functions, the "
216 #| "I<struct group> read from the stream, is stored in the provided buffer "
217 #| "I<*gbuf>, and a pointer to this I<struct group> is returned in I<*gbufp>."
218 msgid ""
219 "The nonreentrant functions return a pointer to static storage, where this "
220 "static storage contains further pointers to group name, password, and "
221 "members. The reentrant functions described here return all of that in "
222 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
223 "hold a I<struct\\ group>. And next the buffer I<buf> of size I<size> that "
224 "can hold additional strings. The result of these functions, the I<struct\\ "
225 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
226 "a pointer to this I<struct\\ group> is returned in I<*gbufp>."
227 msgstr ""
228 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
229 "котором хранятся другие указатели на имя группы, пароль и список членов. "
230 "Реентерабельные функции, описанные здесь, возвращают всю информацию в "
231 "буферах, предоставленных вызывающим. Основным буфером является I<gbuf>, в "
232 "котором может храниться I<struct group>. В дополнительном буфере I<buf> "
233 "размера I<buflen> могут храниться дополнительные строки. Результат этих "
234 "функций, прочитанная из потока I<struct group>, сохраняется в "
235 "предоставляемый буфер I<*gbuf>, и указатель на эту I<struct group> "
236 "возвращается в I<*gbufp>."
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 "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
244
245 #. type: Plain text
246 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
247 #: opensuse-tumbleweed
248 #, fuzzy
249 #| msgid ""
250 #| "On success, these functions return 0 and I<*gbufp> is a pointer to the "
251 #| "I<struct group>. On error, these functions return an error value and "
252 #| "I<*gbufp> is NULL."
253 msgid ""
254 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
255 "I<struct\\ group>. On error, these functions return an error value and "
256 "I<*gbufp> is NULL."
257 msgstr ""
258 "При успешном выполнении эти функции возвращают 0 и I<*gbufp> указывает на "
259 "I<struct group>. При ошибке возвращается значение ошибки и I<*gbufp> равен "
260 "NULL."
261
262 #. type: SH
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "ERRORS"
267 msgstr "ОШИБКИ"
268
269 #. type: TP
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "B<ENOENT>"
274 msgstr "B<ENOENT>"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "No more entries."
280 msgstr "Больше записей нет."
281
282 #. type: TP
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "B<ERANGE>"
287 msgstr "B<ERANGE>"
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "Insufficient buffer space supplied. Try again with larger buffer."
293 msgstr "Недостаточно места в буфере. Попробуйте ещё раз с большим буфером."
294
295 #. type: SH
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "ATTRIBUTES"
300 msgstr "АТРИБУТЫ"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "For an explanation of the terms used in this section, see B<attributes>(7)."
307 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
308
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "Interface"
314 msgstr "Интерфейс"
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "Attribute"
321 msgstr "Атрибут"
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 "Value"
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 ".na\n"
335 msgstr ".na\n"
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 ".nh\n"
342 msgstr ".nh\n"
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 "B<getgrent_r>()"
349 msgstr "B<getgrent_r>()"
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 "Thread safety"
356 msgstr "Безвредность в нитях"
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 "MT-Unsafe race:grent locale"
363 msgstr "MT-Unsafe race:grent locale"
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 "B<fgetgrent_r>()"
370 msgstr "B<fgetgrent_r>()"
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-Safe"
377 msgstr "MT-Safe"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, fuzzy
383 #| msgid ""
384 #| "In the above table, I<grent> in I<race:grent> signifies that if any of "
385 #| "the functions B<setgrent>(), B<getgrent>(), B<endgrent>(), or "
386 #| "B<getgrent_r>() are used in parallel in different threads of a program, "
387 #| "then data races could occur."
388 msgid ""
389 "In the above table, I<grent> in I<race:grent> signifies that if any of the "
390 "functions B<setgrent>(3), B<getgrent>(3), B<endgrent>(3), or "
391 "B<getgrent_r>() are used in parallel in different threads of a program, "
392 "then data races could occur."
393 msgstr ""
394 "В приведённой выше таблице I<grent> в I<race:grent> означает, что если в "
395 "нескольких нитях программы одновременно используются функции B<setgrent>(), "
396 "B<getgrent>(), B<endgrent>() или B<getgrent_r>(), то может возникнуть "
397 "состязательность по данным."
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "VERSIONS"
404 msgstr "ВЕРСИИ"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid "Other systems use the prototype"
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
414 #: opensuse-leap-16-1 opensuse-tumbleweed
415 #, fuzzy, no-wrap
416 #| msgid ""
417 #| "struct group *getgrent_r(struct group *grp, char *buf,\n"
418 #| " int buflen);\n"
419 msgid ""
420 "struct group *getgrent_r(struct group *grp, char buf[.size],\n"
421 " int size);\n"
422 msgstr ""
423 "struct group *getgrent_r(struct group *grp, char *buf,\n"
424 " int buflen);\n"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid "or, better,"
430 msgstr "или, лучше,"
431
432 #. type: Plain text
433 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
434 #: opensuse-leap-16-1 opensuse-tumbleweed
435 #, fuzzy, no-wrap
436 #| msgid ""
437 #| "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
438 #| " FILE **gr_fp);\n"
439 msgid ""
440 "int getgrent_r(struct group *grp, char buf[.size], int size,\n"
441 " FILE **gr_fp);\n"
442 msgstr ""
443 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
444 " FILE **gr_fp);\n"
445
446 #. type: SH
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "STANDARDS"
451 msgstr "СТАНДАРТЫ"
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid "GNU."
457 msgstr "GNU."
458
459 #. type: SH
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "HISTORY"
464 msgstr "ИСТОРИЯ"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "These functions are done in a style resembling the POSIX version of "
471 "functions like B<getpwnam_r>(3)."
472 msgstr ""
473 "Эти функции выполнены в стиле, напоминающем версию POSIX функций типа "
474 "B<getpwnam_r>(3)."
475
476 #. type: SH
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "NOTES"
481 msgstr "ПРИМЕЧАНИЯ"
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "The function B<getgrent_r>() is not really reentrant since it shares the "
488 "reading position in the stream with all other threads."
489 msgstr ""
490 "Функция B<getgrent_r>() не совсем реентерабельна, так как она использует "
491 "общую позицию чтения в потоке с другими нитями."
492
493 #. type: SH
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "EXAMPLES"
498 msgstr "ПРИМЕРЫ"
499
500 #. type: Plain text
501 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
502 #, fuzzy, no-wrap
503 #| msgid ""
504 #| " setgrent();\n"
505 #| " while (1) {\n"
506 #| " i = getgrent_r(&grp, buf, BUFLEN, &grpp);\n"
507 #| " if (i)\n"
508 #| " break;\n"
509 #| " printf(\"%s (%d):\", grpp-E<gt>gr_name, grpp-E<gt>gr_gid);\n"
510 #| " for (i = 0; ; i++) {\n"
511 #| " if (grpp-E<gt>gr_mem[i] == NULL)\n"
512 #| " break;\n"
513 #| " printf(\" %s\", grpp-E<gt>gr_mem[i]);\n"
514 #| " }\n"
515 #| " printf(\"\\en\");\n"
516 #| " }\n"
517 #| " endgrent();\n"
518 #| " exit(EXIT_SUCCESS);\n"
519 #| "}\n"
520 msgid ""
521 "#define _GNU_SOURCE\n"
522 "#include E<lt>grp.hE<gt>\n"
523 "#include E<lt>stdint.hE<gt>\n"
524 "#include E<lt>stdio.hE<gt>\n"
525 "#include E<lt>stdlib.hE<gt>\n"
526 "#define BUFLEN 4096\n"
527 "\\&\n"
528 "int\n"
529 "main(void)\n"
530 "{\n"
531 " struct group grp;\n"
532 " struct group *grpp;\n"
533 " char buf[BUFLEN];\n"
534 " int i;\n"
535 "\\&\n"
536 " setgrent();\n"
537 " for (;;) {\n"
538 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
539 " if (i)\n"
540 " break;\n"
541 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
542 " for (size_t j = 0; ; j++) {\n"
543 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
544 " break;\n"
545 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
546 " }\n"
547 " printf(\"\\[rs]n\");\n"
548 " }\n"
549 " endgrent();\n"
550 " exit(EXIT_SUCCESS);\n"
551 "}\n"
552 msgstr ""
553 " setgrent();\n"
554 " while (1) {\n"
555 " i = getgrent_r(&grp, buf, BUFLEN, &grpp);\n"
556 " if (i)\n"
557 " break;\n"
558 " printf(\"%s (%d):\", grpp-E<gt>gr_name, grpp-E<gt>gr_gid);\n"
559 " for (i = 0; ; i++) {\n"
560 " if (grpp-E<gt>gr_mem[i] == NULL)\n"
561 " break;\n"
562 " printf(\" %s\", grpp-E<gt>gr_mem[i]);\n"
563 " }\n"
564 " printf(\"\\en\");\n"
565 " }\n"
566 " endgrent();\n"
567 " exit(EXIT_SUCCESS);\n"
568 "}\n"
569
570 #. perhaps add error checking - should use strerror_r
571 #. #include <errno.h>
572 #. #include <stdlib.h>
573 #. if (i) {
574 #. if (i == ENOENT)
575 #. break;
576 #. printf("getgrent_r: %s", strerror(i));
577 #. exit(EXIT_FAILURE);
578 #. }
579 #. SRC END
580 #. type: SH
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "SEE ALSO"
585 msgstr "СМОТРИТЕ ТАКЖЕ"
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 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
592 "B<putgrent>(3), B<group>(5)"
593 msgstr ""
594 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
595 "B<putgrent>(3), B<group>(5)"
596
597 #. type: TH
598 #: debian-trixie
599 #, no-wrap
600 msgid "2024-06-15"
601 msgstr "15 июня 2024 г."
602
603 #. type: TH
604 #: debian-trixie
605 #, no-wrap
606 msgid "Linux man-pages 6.9.1"
607 msgstr "Страницы руководства Linux 6.9.1"
608
609 #. type: Plain text
610 #: debian-trixie
611 msgid "Standard C library (I<libc>, I<-lc>)"
612 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
613
614 #. type: Plain text
615 #: debian-trixie
616 #, no-wrap
617 msgid ""
618 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
619 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
620 "B< struct group **restrict >I<gbufp>B<);>\n"
621 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
622 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
623 "B< struct group **restrict >I<gbufp>B<);>\n"
624 msgstr ""
625
626 #. type: Plain text
627 #: debian-trixie
628 #, fuzzy
629 #| msgid ""
630 #| "The nonreentrant functions return a pointer to static storage, where this "
631 #| "static storage contains further pointers to group name, password and "
632 #| "members. The reentrant functions described here return all of that in "
633 #| "caller-provided buffers. First of all there is the buffer I<gbuf> that "
634 #| "can hold a I<struct group>. And next the buffer I<buf> of size I<buflen> "
635 #| "that can hold additional strings. The result of these functions, the "
636 #| "I<struct group> read from the stream, is stored in the provided buffer "
637 #| "I<*gbuf>, and a pointer to this I<struct group> is returned in I<*gbufp>."
638 msgid ""
639 "The nonreentrant functions return a pointer to static storage, where this "
640 "static storage contains further pointers to group name, password, and "
641 "members. The reentrant functions described here return all of that in "
642 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
643 "hold a I<struct group>. And next the buffer I<buf> of size I<buflen> that "
644 "can hold additional strings. The result of these functions, the I<struct "
645 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
646 "a pointer to this I<struct group> is returned in I<*gbufp>."
647 msgstr ""
648 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
649 "котором хранятся другие указатели на имя группы, пароль и список членов. "
650 "Реентерабельные функции, описанные здесь, возвращают всю информацию в "
651 "буферах, предоставленных вызывающим. Основным буфером является I<gbuf>, в "
652 "котором может храниться I<struct group>. В дополнительном буфере I<buf> "
653 "размера I<buflen> могут храниться дополнительные строки. Результат этих "
654 "функций, прочитанная из потока I<struct group>, сохраняется в "
655 "предоставляемый буфер I<*gbuf>, и указатель на эту I<struct group> "
656 "возвращается в I<*gbufp>."
657
658 #. type: Plain text
659 #: debian-trixie fedora-44 fedora-rawhide
660 msgid ""
661 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
662 "I<struct group>. On error, these functions return an error value and "
663 "I<*gbufp> is NULL."
664 msgstr ""
665 "При успешном выполнении эти функции возвращают 0 и I<*gbufp> указывает на "
666 "I<struct group>. При ошибке возвращается значение ошибки и I<*gbufp> равен "
667 "NULL."
668
669 #. type: Plain text
670 #: debian-trixie
671 #, no-wrap
672 msgid ""
673 "struct group *getgrent_r(struct group *grp, char *buf,\n"
674 " int buflen);\n"
675 msgstr ""
676 "struct group *getgrent_r(struct group *grp, char *buf,\n"
677 " int buflen);\n"
678
679 #. type: Plain text
680 #: debian-trixie
681 #, no-wrap
682 msgid ""
683 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
684 " FILE **gr_fp);\n"
685 msgstr ""
686 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
687 " FILE **gr_fp);\n"
688
689 #. type: Plain text
690 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
691 #, fuzzy, no-wrap
692 #| msgid ""
693 #| " setgrent();\n"
694 #| " while (1) {\n"
695 #| " i = getgrent_r(&grp, buf, BUFLEN, &grpp);\n"
696 #| " if (i)\n"
697 #| " break;\n"
698 #| " printf(\"%s (%d):\", grpp-E<gt>gr_name, grpp-E<gt>gr_gid);\n"
699 #| " for (i = 0; ; i++) {\n"
700 #| " if (grpp-E<gt>gr_mem[i] == NULL)\n"
701 #| " break;\n"
702 #| " printf(\" %s\", grpp-E<gt>gr_mem[i]);\n"
703 #| " }\n"
704 #| " printf(\"\\en\");\n"
705 #| " }\n"
706 #| " endgrent();\n"
707 #| " exit(EXIT_SUCCESS);\n"
708 #| "}\n"
709 msgid ""
710 "#define _GNU_SOURCE\n"
711 "#include E<lt>grp.hE<gt>\n"
712 "#include E<lt>stdint.hE<gt>\n"
713 "#include E<lt>stdio.hE<gt>\n"
714 "#include E<lt>stdlib.hE<gt>\n"
715 "#define BUFLEN 4096\n"
716 "\\&\n"
717 "int\n"
718 "main(void)\n"
719 "{\n"
720 " struct group grp;\n"
721 " struct group *grpp;\n"
722 " char buf[BUFLEN];\n"
723 " int i;\n"
724 "\\&\n"
725 " setgrent();\n"
726 " while (1) {\n"
727 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
728 " if (i)\n"
729 " break;\n"
730 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
731 " for (size_t j = 0; ; j++) {\n"
732 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
733 " break;\n"
734 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
735 " }\n"
736 " printf(\"\\[rs]n\");\n"
737 " }\n"
738 " endgrent();\n"
739 " exit(EXIT_SUCCESS);\n"
740 "}\n"
741 msgstr ""
742 " setgrent();\n"
743 " while (1) {\n"
744 " i = getgrent_r(&grp, buf, BUFLEN, &grpp);\n"
745 " if (i)\n"
746 " break;\n"
747 " printf(\"%s (%d):\", grpp-E<gt>gr_name, grpp-E<gt>gr_gid);\n"
748 " for (i = 0; ; i++) {\n"
749 " if (grpp-E<gt>gr_mem[i] == NULL)\n"
750 " break;\n"
751 " printf(\" %s\", grpp-E<gt>gr_mem[i]);\n"
752 " }\n"
753 " printf(\"\\en\");\n"
754 " }\n"
755 " endgrent();\n"
756 " exit(EXIT_SUCCESS);\n"
757 "}\n"
758
759 #. type: TH
760 #: fedora-44 fedora-rawhide
761 #, no-wrap
762 msgid "2024-12-24"
763 msgstr "24 декабря 2024 г."
764
765 #. type: TH
766 #: fedora-44 fedora-rawhide
767 #, no-wrap
768 msgid "Linux man-pages 6.13"
769 msgstr "Страницы руководства Linux 6.13"
770
771 #. type: Plain text
772 #: fedora-44 fedora-rawhide
773 #, no-wrap
774 msgid ""
775 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
776 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
777 "B< struct group **restrict >I<gbufp>B<);>\n"
778 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
779 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
780 "B< struct group **restrict >I<gbufp>B<);>\n"
781 msgstr ""
782
783 #. type: Plain text
784 #: fedora-44 fedora-rawhide
785 #, fuzzy
786 #| msgid ""
787 #| "The nonreentrant functions return a pointer to static storage, where this "
788 #| "static storage contains further pointers to group name, password and "
789 #| "members. The reentrant functions described here return all of that in "
790 #| "caller-provided buffers. First of all there is the buffer I<gbuf> that "
791 #| "can hold a I<struct group>. And next the buffer I<buf> of size I<buflen> "
792 #| "that can hold additional strings. The result of these functions, the "
793 #| "I<struct group> read from the stream, is stored in the provided buffer "
794 #| "I<*gbuf>, and a pointer to this I<struct group> is returned in I<*gbufp>."
795 msgid ""
796 "The nonreentrant functions return a pointer to static storage, where this "
797 "static storage contains further pointers to group name, password, and "
798 "members. The reentrant functions described here return all of that in "
799 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
800 "hold a I<struct group>. And next the buffer I<buf> of size I<size> that can "
801 "hold additional strings. The result of these functions, the I<struct group> "
802 "read from the stream, is stored in the provided buffer I<*gbuf>, and a "
803 "pointer to this I<struct group> is returned in I<*gbufp>."
804 msgstr ""
805 "Нереентерабельные версии возвращают указатель на статическое хранилище, в "
806 "котором хранятся другие указатели на имя группы, пароль и список членов. "
807 "Реентерабельные функции, описанные здесь, возвращают всю информацию в "
808 "буферах, предоставленных вызывающим. Основным буфером является I<gbuf>, в "
809 "котором может храниться I<struct group>. В дополнительном буфере I<buf> "
810 "размера I<buflen> могут храниться дополнительные строки. Результат этих "
811 "функций, прочитанная из потока I<struct group>, сохраняется в "
812 "предоставляемый буфер I<*gbuf>, и указатель на эту I<struct group> "
813 "возвращается в I<*gbufp>."
814
815 #. type: TH
816 #: mageia-cauldron
817 #, no-wrap
818 msgid "2026-02-08"
819 msgstr "8 февраля 2026 г."
820
821 #. type: TH
822 #: mageia-cauldron
823 #, no-wrap
824 msgid "Linux man-pages 6.17"
825 msgstr "Страницы руководства Linux 6.17"
826
827 #. type: TH
828 #: opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "Linux man-pages (unreleased)"
831 msgstr "Страницы руководства Linux (не выпущены)"