Debian Codegraph @

po/ro/man3/getgrent_r.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-05-07 00:29+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.8\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "getgrent_r"
25 msgstr "getgrent_r"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-14"
31 msgstr "14 februarie 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "Pagini de manual de Linux 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "NUME"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "getgrent_r, fgetgrent_r - get group file entry reentrantly"
50 msgstr ""
51 "getgrent_r, fgetgrent_r - obține intrarea fișierului de grup în mod reentrant"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>grp.hE<gt>>\n"
78 msgstr "B<#include E<lt>grp.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
82 #: opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int getgrent_r(>size_t size;\n"
86 "B< struct group *restrict >I<gbuf>B<,>\n"
87 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
88 "B< struct group **restrict >I<gbufp>B<);>\n"
89 "B<int fgetgrent_r(>size_t size;\n"
90 "B< FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
91 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
92 "B< struct group **restrict >I<gbufp>B<);>\n"
93 msgstr ""
94 "B<int getgrent_r(>size_t size;\n"
95 "B< struct group *restrict >I<gbuf>B<,>\n"
96 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
97 "B< struct group **restrict >I<gbufp>B<);>\n"
98 "B<int fgetgrent_r(>size_t size;\n"
99 "B< FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
100 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
101 "B< struct group **restrict >I<gbufp>B<);>\n"
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 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
110 "(consultați 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 msgid "B<getgrent_r>():"
116 msgstr "B<getgrent_r>():"
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, no-wrap
122 msgid " _GNU_SOURCE\n"
123 msgstr " _GNU_SOURCE\n"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid "B<fgetgrent_r>():"
129 msgstr "B<fgetgrent_r>():"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid ""
136 " Since glibc 2.19:\n"
137 " _DEFAULT_SOURCE\n"
138 " glibc 2.19 and earlier:\n"
139 " _SVID_SOURCE\n"
140 msgstr ""
141 " Începând cu glibc 2.19:\n"
142 " _DEFAULT_SOURCE\n"
143 " glibc 2.19 și versiunile anterioare:\n"
144 " _SVID_SOURCE\n"
145
146 #. type: SH
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "DESCRIPTION"
151 msgstr "DESCRIERE"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "The functions B<getgrent_r>() and B<fgetgrent_r>() are the reentrant "
158 "versions of B<getgrent>(3) and B<fgetgrent>(3). The former reads the next "
159 "group entry from the stream initialized by B<setgrent>(3). The latter reads "
160 "the next group entry from I<stream>."
161 msgstr ""
162 "Funcțiile B<getgrent_r>() și B<fgetgrent_r>() sunt versiunile reentrante ale "
163 "funcțiilor B<getgrent>(3) și B<fgetgrent>(3). Prima citește următoarea "
164 "intrare de grup din fluxul inițializat de B<setgrent>(3). Cea de-a doua "
165 "citește următoarea intrare de grup din I<stream>."
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid "The I<group> structure is defined in I<E<lt>grp.hE<gt>> as follows:"
171 msgstr ""
172 "Structura I<group> este definită în I<E<lt>grp.hE<gt>> după cum urmează:"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid ""
179 "struct group {\n"
180 " char *gr_name; /* group name */\n"
181 " char *gr_passwd; /* group password */\n"
182 " gid_t gr_gid; /* group ID */\n"
183 " char **gr_mem; /* NULL-terminated array of pointers\n"
184 " to names of group members */\n"
185 "};\n"
186 msgstr ""
187 "struct group {\n"
188 " char *gr_name; /* numele grupului */\n"
189 " char *gr_passwd; /* parola grupului */\n"
190 " gid_t gr_gid; /* identificatorul grupului */\n"
191 " char **gr_mem; /* vector de indicatori cu terminație NULL \n"
192 " la numele membrilor grupului */\n"
193 "};\n"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "For more information about the fields of this structure, see B<group>(5)."
200 msgstr ""
201 "Pentru mai multe informații despre câmpurile acestei structuri, a se vedea "
202 "B<group>(5)."
203
204 #. type: Plain text
205 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
206 #: opensuse-tumbleweed
207 msgid ""
208 "The nonreentrant functions return a pointer to static storage, where this "
209 "static storage contains further pointers to group name, password, and "
210 "members. The reentrant functions described here return all of that in "
211 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
212 "hold a I<struct\\ group>. And next the buffer I<buf> of size I<size> that "
213 "can hold additional strings. The result of these functions, the I<struct\\ "
214 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
215 "a pointer to this I<struct\\ group> is returned in I<*gbufp>."
216 msgstr ""
217 "Funcțiile care nu sunt reentrante returnează un indicator către stocarea "
218 "statică, unde această stocare statică conține alți indicatori către numele "
219 "grupului, parola și membrii. Funcțiile reentrante descrise aici returnează "
220 "toate acestea în memoriile tampon furnizate de apelant. În primul rând, "
221 "există o memorie tampon I<gbuf> care poate conține o I<structură de grup>. "
222 "Și apoi tamponul I<buf> de dimensiune I<size> care poate conține șiruri de "
223 "caractere suplimentare. Rezultatul acestor funcții, I<structura de grup> "
224 "citită din flux, este stocată în memoria tampon furnizată I<*gbuf>, iar un "
225 "indicator la această I<structură de grup> este returnat în I<*gbufp>."
226
227 #. type: SH
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "RETURN VALUE"
232 msgstr "VALOAREA RETURNATĂ"
233
234 #. type: Plain text
235 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
236 #: opensuse-tumbleweed
237 msgid ""
238 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
239 "I<struct\\ group>. On error, these functions return an error value and "
240 "I<*gbufp> is NULL."
241 msgstr ""
242 "În caz de succes, aceste funcții returnează 0, iar I<*gbufp> este un "
243 "indicator la I<structura de grup>. În caz de eroare, aceste funcții "
244 "returnează o valoare de eroare, iar I<*gbufp> este NULL."
245
246 #. type: SH
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "ERRORS"
251 msgstr "ERORI-IEȘIRE"
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<ENOENT>"
258 msgstr "B<ENOENT>"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "No more entries."
264 msgstr "Nu mai există alte intrări."
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<ERANGE>"
271 msgstr "B<ERANGE>"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "Insufficient buffer space supplied. Try again with larger buffer."
277 msgstr ""
278 "Spațiu de memorie tampon furnizat insuficient. Încercați din nou cu o "
279 "memorie tampon mai mare."
280
281 #. type: SH
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "ATTRIBUTES"
286 msgstr "ATRIBUTE"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "For an explanation of the terms used in this section, see B<attributes>(7)."
293 msgstr ""
294 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
295 "B<attributes>(7)."
296
297 #. type: tbl table
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "Interface"
302 msgstr "Interfață"
303
304 #. type: tbl table
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "Attribute"
309 msgstr "Atribut"
310
311 #. type: tbl table
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "Value"
316 msgstr "Valoare"
317
318 #. type: tbl table
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid ".na\n"
323 msgstr ".na\n"
324
325 #. type: tbl table
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid ".nh\n"
330 msgstr ".nh\n"
331
332 #. type: tbl table
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "B<getgrent_r>()"
337 msgstr "B<getgrent_r>()"
338
339 #. type: tbl table
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "Thread safety"
344 msgstr "Siguranța firelor"
345
346 #. type: tbl table
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "MT-Unsafe race:grent locale"
351 msgstr "MT-Unsafe race:grent locale"
352
353 #. type: tbl table
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "B<fgetgrent_r>()"
358 msgstr "B<fgetgrent_r>()"
359
360 #. type: tbl table
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "MT-Safe"
365 msgstr "MT-Safe"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "In the above table, I<grent> in I<race:grent> signifies that if any of the "
372 "functions B<setgrent>(3), B<getgrent>(3), B<endgrent>(3), or "
373 "B<getgrent_r>() are used in parallel in different threads of a program, "
374 "then data races could occur."
375 msgstr ""
376 "În tabelul de mai sus, I<grent> din I<race:grent> semnifică faptul că, dacă "
377 "oricare dintre funcțiile B<setgrent>(3), B<getgrent>(3), B<endgrent>(3) sau "
378 "B<getgrent_r>() sunt utilizate în paralel în diferite fire de execuție ale "
379 "unui program, pot apărea competiții de date."
380
381 #. type: SH
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "VERSIONS"
386 msgstr "VERSIUNI"
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 "Other systems use the prototype"
392 msgstr "Alte sisteme utilizează prototipul"
393
394 #. type: Plain text
395 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
396 #: opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid ""
399 "struct group *getgrent_r(struct group *grp, char buf[.size],\n"
400 " int size);\n"
401 msgstr ""
402 "struct group *getgrent_r(struct group *grp, char buf[.size],\n"
403 " int size);\n"
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid "or, better,"
409 msgstr "sau, mai bine zis,"
410
411 #. type: Plain text
412 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
413 #: opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid ""
416 "int getgrent_r(struct group *grp, char buf[.size], int size,\n"
417 " FILE **gr_fp);\n"
418 msgstr ""
419 "int getgrent_r(struct group *grp, char buf[.size], int size,\n"
420 " FILE **gr_fp);\n"
421
422 #. type: SH
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "STANDARDS"
427 msgstr "STANDARDE"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid "GNU."
433 msgstr "GNU."
434
435 #. type: SH
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "HISTORY"
440 msgstr "ISTORIC"
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid ""
446 "These functions are done in a style resembling the POSIX version of "
447 "functions like B<getpwnam_r>(3)."
448 msgstr ""
449 "Aceste funcții sunt realizate într-un stil asemănător cu versiunea POSIX a "
450 "unor funcții precum B<getpwnam_r>(3)."
451
452 #. type: SH
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "NOTES"
457 msgstr "NOTE"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "The function B<getgrent_r>() is not really reentrant since it shares the "
464 "reading position in the stream with all other threads."
465 msgstr ""
466 "Funcția B<getgrent_r>() nu este cu adevărat reentrantă, deoarece împarte "
467 "poziția de citire în flux cu toate celelalte fire de execuție."
468
469 #. type: SH
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "EXAMPLES"
474 msgstr "EXEMPLE"
475
476 #. type: Plain text
477 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid ""
480 "#define _GNU_SOURCE\n"
481 "#include E<lt>grp.hE<gt>\n"
482 "#include E<lt>stdint.hE<gt>\n"
483 "#include E<lt>stdio.hE<gt>\n"
484 "#include E<lt>stdlib.hE<gt>\n"
485 "#define BUFLEN 4096\n"
486 "\\&\n"
487 "int\n"
488 "main(void)\n"
489 "{\n"
490 " struct group grp;\n"
491 " struct group *grpp;\n"
492 " char buf[BUFLEN];\n"
493 " int i;\n"
494 "\\&\n"
495 " setgrent();\n"
496 " for (;;) {\n"
497 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
498 " if (i)\n"
499 " break;\n"
500 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
501 " for (size_t j = 0; ; j++) {\n"
502 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
503 " break;\n"
504 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
505 " }\n"
506 " printf(\"\\[rs]n\");\n"
507 " }\n"
508 " endgrent();\n"
509 " exit(EXIT_SUCCESS);\n"
510 "}\n"
511 msgstr ""
512 "#define _GNU_SOURCE\n"
513 "#include E<lt>grp.hE<gt>\n"
514 "#include E<lt>stdint.hE<gt>\n"
515 "#include E<lt>stdio.hE<gt>\n"
516 "#include E<lt>stdlib.hE<gt>\n"
517 "#define BUFLEN 4096\n"
518 "\\&\n"
519 "int\n"
520 "main(void)\n"
521 "{\n"
522 " struct group grp;\n"
523 " struct group *grpp;\n"
524 " char buf[BUFLEN];\n"
525 " int i;\n"
526 "\\&\n"
527 " setgrent();\n"
528 " for (;;) {\n"
529 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
530 " if (i)\n"
531 " break;\n"
532 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
533 " for (size_t j = 0; ; j++) {\n"
534 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
535 " break;\n"
536 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
537 " }\n"
538 " printf(\"\\[rs]n\");\n"
539 " }\n"
540 " endgrent();\n"
541 " exit(EXIT_SUCCESS);\n"
542 "}\n"
543
544 #. perhaps add error checking - should use strerror_r
545 #. #include <errno.h>
546 #. #include <stdlib.h>
547 #. if (i) {
548 #. if (i == ENOENT)
549 #. break;
550 #. printf("getgrent_r: %s", strerror(i));
551 #. exit(EXIT_FAILURE);
552 #. }
553 #. SRC END
554 #. type: SH
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "SEE ALSO"
559 msgstr "CONSULTAȚI ȘI"
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
566 "B<putgrent>(3), B<group>(5)"
567 msgstr ""
568 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
569 "B<putgrent>(3), B<group>(5)"
570
571 #. type: TH
572 #: debian-trixie
573 #, no-wrap
574 msgid "2024-06-15"
575 msgstr "15 iunie 2024"
576
577 #. type: TH
578 #: debian-trixie
579 #, no-wrap
580 msgid "Linux man-pages 6.9.1"
581 msgstr "Pagini de manual de Linux 6.9.1"
582
583 #. type: Plain text
584 #: debian-trixie
585 msgid "Standard C library (I<libc>, I<-lc>)"
586 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
587
588 #. type: Plain text
589 #: debian-trixie
590 #, no-wrap
591 msgid ""
592 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
593 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
594 "B< struct group **restrict >I<gbufp>B<);>\n"
595 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
596 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
597 "B< struct group **restrict >I<gbufp>B<);>\n"
598 msgstr ""
599 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
600 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
601 "B< struct group **restrict >I<gbufp>B<);>\n"
602 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
603 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
604 "B< struct group **restrict >I<gbufp>B<);>\n"
605
606 #. type: Plain text
607 #: debian-trixie
608 msgid ""
609 "The nonreentrant functions return a pointer to static storage, where this "
610 "static storage contains further pointers to group name, password, and "
611 "members. The reentrant functions described here return all of that in "
612 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
613 "hold a I<struct group>. And next the buffer I<buf> of size I<buflen> that "
614 "can hold additional strings. The result of these functions, the I<struct "
615 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
616 "a pointer to this I<struct group> is returned in I<*gbufp>."
617 msgstr ""
618 "Funcțiile care nu sunt reentrante returnează un indicator către stocarea "
619 "statică, unde această stocare statică conține alți indicatori către numele "
620 "grupului, parola și membrii. Funcțiile reentrante descrise aici returnează "
621 "toate acestea în memoriile tampon furnizate de apelant. În primul rând, "
622 "există o memorie tampon I<gbuf> care poate conține o I<structură de grup>. "
623 "Și apoi tamponul I<buf> de dimensiune I<buflen> care poate conține șiruri de "
624 "caractere suplimentare. Rezultatul acestor funcții, I<structura de grup> "
625 "citită din flux, este stocată în memoria tampon furnizată I<*gbuf>, iar un "
626 "indicator la această I<structură de grup> este returnat în I<*gbufp>."
627
628 #. type: Plain text
629 #: debian-trixie fedora-44 fedora-rawhide
630 msgid ""
631 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
632 "I<struct group>. On error, these functions return an error value and "
633 "I<*gbufp> is NULL."
634 msgstr ""
635 "În caz de succes, aceste funcții returnează 0, iar I<*gbufp> este un "
636 "indicator la I<structura de grup>. În caz de eroare, aceste funcții "
637 "returnează o valoare de eroare, iar I<*gbufp> este NULL."
638
639 #. type: Plain text
640 #: debian-trixie
641 #, no-wrap
642 msgid ""
643 "struct group *getgrent_r(struct group *grp, char *buf,\n"
644 " int buflen);\n"
645 msgstr ""
646 "struct group *getgrent_r(struct group *grp, char *buf,\n"
647 " int buflen);\n"
648
649 #. type: Plain text
650 #: debian-trixie
651 #, no-wrap
652 msgid ""
653 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
654 " FILE **gr_fp);\n"
655 msgstr ""
656 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
657 " FILE **gr_fp);\n"
658
659 #. type: Plain text
660 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
661 #, no-wrap
662 msgid ""
663 "#define _GNU_SOURCE\n"
664 "#include E<lt>grp.hE<gt>\n"
665 "#include E<lt>stdint.hE<gt>\n"
666 "#include E<lt>stdio.hE<gt>\n"
667 "#include E<lt>stdlib.hE<gt>\n"
668 "#define BUFLEN 4096\n"
669 "\\&\n"
670 "int\n"
671 "main(void)\n"
672 "{\n"
673 " struct group grp;\n"
674 " struct group *grpp;\n"
675 " char buf[BUFLEN];\n"
676 " int i;\n"
677 "\\&\n"
678 " setgrent();\n"
679 " while (1) {\n"
680 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
681 " if (i)\n"
682 " break;\n"
683 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
684 " for (size_t j = 0; ; j++) {\n"
685 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
686 " break;\n"
687 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
688 " }\n"
689 " printf(\"\\[rs]n\");\n"
690 " }\n"
691 " endgrent();\n"
692 " exit(EXIT_SUCCESS);\n"
693 "}\n"
694 msgstr ""
695 "#define _GNU_SOURCE\n"
696 "#include E<lt>grp.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 "#define BUFLEN 4096\n"
701 "\\&\n"
702 "int\n"
703 "main(void)\n"
704 "{\n"
705 " struct group grp;\n"
706 " struct group *grpp;\n"
707 " char buf[BUFLEN];\n"
708 " int i;\n"
709 "\\&\n"
710 " setgrent();\n"
711 " while (1) {\n"
712 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
713 " if (i)\n"
714 " break;\n"
715 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
716 " for (size_t j = 0; ; j++) {\n"
717 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
718 " break;\n"
719 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
720 " }\n"
721 " printf(\"\\[rs]n\");\n"
722 " }\n"
723 " endgrent();\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726
727 #. type: TH
728 #: fedora-44 fedora-rawhide
729 #, no-wrap
730 msgid "2024-12-24"
731 msgstr "24 decembrie 2024"
732
733 #. type: TH
734 #: fedora-44 fedora-rawhide
735 #, no-wrap
736 msgid "Linux man-pages 6.13"
737 msgstr "Pagini de manual de Linux 6.13"
738
739 #. type: Plain text
740 #: fedora-44 fedora-rawhide
741 #, no-wrap
742 msgid ""
743 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
744 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
745 "B< struct group **restrict >I<gbufp>B<);>\n"
746 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
747 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
748 "B< struct group **restrict >I<gbufp>B<);>\n"
749 msgstr ""
750 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
751 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
752 "B< struct group **restrict >I<gbufp>B<);>\n"
753 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
754 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
755 "B< struct group **restrict >I<gbufp>B<);>\n"
756
757 #. type: Plain text
758 #: fedora-44 fedora-rawhide
759 msgid ""
760 "The nonreentrant functions return a pointer to static storage, where this "
761 "static storage contains further pointers to group name, password, and "
762 "members. The reentrant functions described here return all of that in "
763 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
764 "hold a I<struct group>. And next the buffer I<buf> of size I<size> that can "
765 "hold additional strings. The result of these functions, the I<struct group> "
766 "read from the stream, is stored in the provided buffer I<*gbuf>, and a "
767 "pointer to this I<struct group> is returned in I<*gbufp>."
768 msgstr ""
769 "Funcțiile care nu sunt reentrante returnează un indicator către stocarea "
770 "statică, unde această stocare statică conține alți indicatori către numele "
771 "grupului, parola și membrii. Funcțiile reentrante descrise aici returnează "
772 "toate acestea în memoriile tampon furnizate de apelant. În primul rând, "
773 "există o memorie tampon I<gbuf> care poate conține o I<structură de grup>. "
774 "Și apoi tamponul I<buf> de dimensiune I<size> care poate conține șiruri de "
775 "caractere suplimentare. Rezultatul acestor funcții, I<structura de grup> "
776 "citită din flux, este stocată în memoria tampon furnizată I<*gbuf>, iar un "
777 "indicator la această I<structură de grup> este returnat în I<*gbufp>."
778
779 #. type: TH
780 #: mageia-cauldron
781 #, no-wrap
782 msgid "2026-02-08"
783 msgstr "8 februarie 2026"
784
785 #. type: TH
786 #: mageia-cauldron
787 #, no-wrap
788 msgid "Linux man-pages 6.17"
789 msgstr "Pagini de manual de Linux 6.17"
790
791 #. type: TH
792 #: opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid "Linux man-pages (unreleased)"
795 msgstr "Pagini de manual Linux (nepublicate)"