Debian Codegraph @

po/ar/man3/getgrent_r.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-06-03 04:49+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 ".MIME-Version: 1.0\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
18 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "getgrent_r"
26 msgstr "getgrent_r"
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-14"
32 msgstr "14 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "getgrent_r, fgetgrent_r - get group file entry reentrantly"
51 msgstr ""
52 "getgrent_r, fgetgrent_r - الحصول على مدخل ملف المجموعة بشكل قابل لإعادة "
53 "الدخول"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "المكتبة"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "موجز"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>grp.hE<gt>>\n"
80 msgstr "B<#include E<lt>grp.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<int getgrent_r(>size_t size;\n"
88 "B< struct group *restrict >I<gbuf>B<,>\n"
89 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
90 "B< struct group **restrict >I<gbufp>B<);>\n"
91 "B<int fgetgrent_r(>size_t size;\n"
92 "B< FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
93 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
94 "B< struct group **restrict >I<gbufp>B<);>\n"
95 msgstr ""
96 "B<int getgrent_r(>size_t size;\n"
97 "B< struct group *restrict >I<gbuf>B<,>\n"
98 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
99 "B< struct group **restrict >I<gbufp>B<);>\n"
100 "B<int fgetgrent_r(>size_t size;\n"
101 "B< FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
102 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
103 "B< struct group **restrict >I<gbufp>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
110 msgstr ""
111 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid "B<getgrent_r>():"
117 msgstr "B<getgrent_r>():"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid " _GNU_SOURCE\n"
124 msgstr " _GNU_SOURCE\n"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid "B<fgetgrent_r>():"
130 msgstr "B<fgetgrent_r>():"
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid ""
137 " Since glibc 2.19:\n"
138 " _DEFAULT_SOURCE\n"
139 " glibc 2.19 and earlier:\n"
140 " _SVID_SOURCE\n"
141 msgstr ""
142 " منذ glibc 2.19:\n"
143 " _DEFAULT_SOURCE\n"
144 " في glibc 2.19 وما قبله:\n"
145 " _SVID_SOURCE\n"
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "DESCRIPTION"
152 msgstr "الوصف"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "The functions B<getgrent_r>() and B<fgetgrent_r>() are the reentrant "
159 "versions of B<getgrent>(3) and B<fgetgrent>(3). The former reads the next "
160 "group entry from the stream initialized by B<setgrent>(3). The latter reads "
161 "the next group entry from I<stream>."
162 msgstr ""
163 "الدالتان B<getgrent_r>() و B<fgetgrent_r>() هما النسختان القابلتان لإعادة "
164 "الدخول من B<getgrent>(3) و B<fgetgrent>(3). الأولى تقرأ مدخل المجموعة التالي "
165 "من الدفق المُهيأ بواسطة B<setgrent>(3). الثانية تقرأ مدخل المجموعة التالي من "
166 "I<stream>."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid "The I<group> structure is defined in I<E<lt>grp.hE<gt>> as follows:"
172 msgstr "عُرف هيكل I<group> في I<E<lt>grp.hE<gt>> كالتالي:"
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; /* اسم المجموعة */\n"
189 " char *gr_passwd; /* كلمة سر المجموعة */\n"
190 " gid_t gr_gid; /* معرف المجموعة */\n"
191 " char **gr_mem; /* مصفوفة منتهية بـ NULL من المؤشرات\n"
192 " إلى أسماء أعضاء المجموعة */\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 "لمزيد من المعلومات حول حقول هذا الهيكل، راجع B<group>(5)."
201
202 #. type: Plain text
203 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
204 #: opensuse-tumbleweed
205 msgid ""
206 "The nonreentrant functions return a pointer to static storage, where this "
207 "static storage contains further pointers to group name, password, and "
208 "members. The reentrant functions described here return all of that in "
209 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
210 "hold a I<struct\\ group>. And next the buffer I<buf> of size I<size> that "
211 "can hold additional strings. The result of these functions, the I<struct\\ "
212 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
213 "a pointer to this I<struct\\ group> is returned in I<*gbufp>."
214 msgstr ""
215 "الدوال غير القابلة لإعادة الدخول تُرجع مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
216 "التخزين الثابت على مؤشرات إضافية لاسم المجموعة، كلمة السر، والأعضاء. الدوال "
217 "القابلة لإعادة الدخول الموصوفة هنا تُرجع كل ذلك في مخازن مؤقتة يُوفرها "
218 "المُستدعي. أولاً هناك المخزن المؤقت I<gbuf> الذي يمكنه حمل I<struct\\ group>. "
219 "ثم المخزن المؤقت I<buf> بحجم I<size> الذي يمكنه حمل سلاسل محارف إضافية. "
220 "نتيجة هذه الدوال، I<struct\\ group> المقروء من الدفق، تُخزن في المخزن المؤقت "
221 "المُوفر I<*gbuf>، ويُعاد مؤشر إلى هذا I<struct\\ group> في I<*gbufp>."
222
223 #. type: SH
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "RETURN VALUE"
228 msgstr "قيمة الإرجاع"
229
230 #. type: Plain text
231 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
232 #: opensuse-tumbleweed
233 msgid ""
234 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
235 "I<struct\\ group>. On error, these functions return an error value and "
236 "I<*gbufp> is NULL."
237 msgstr ""
238 "عند النجاح، تُرجع هذه الدوال 0 ويكون I<*gbufp> مؤشرًا إلى I<struct\\ group>. "
239 "عند الخطأ، تُرجع هذه الدوال قيمة خطأ ويكون I<*gbufp> NULL."
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "ERRORS"
246 msgstr "الأخطاء"
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<ENOENT>"
253 msgstr "B<ENOENT>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "No more entries."
259 msgstr "لا يوجد مزيد من المدخلات."
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<ERANGE>"
266 msgstr "B<ERANGE>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "Insufficient buffer space supplied. Try again with larger buffer."
272 msgstr "مساحة المخزن المؤقت (buffer) المزودة غير كافية. حاول ثانية بمخزن أكبر."
273
274 #. type: SH
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "ATTRIBUTES"
279 msgstr "السمات"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "For an explanation of the terms used in this section, see B<attributes>(7)."
286 msgstr ""
287 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
288
289 #. type: tbl table
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "Interface"
294 msgstr "الواجهة"
295
296 #. type: tbl table
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "Attribute"
301 msgstr "السمة"
302
303 #. type: tbl table
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "Value"
308 msgstr "القيمة"
309
310 #. type: tbl table
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid ".na\n"
315 msgstr ".na\n"
316
317 #. type: tbl table
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid ".nh\n"
322 msgstr ".nh\n"
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<getgrent_r>()"
329 msgstr "B<getgrent_r>()"
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "Thread safety"
336 msgstr "سلامة الخيوط"
337
338 #. type: tbl table
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "MT-Unsafe race:grent locale"
343 msgstr "غير آمن للمسارات المتعددة (MT-Unsafe) سباق:grent locale"
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<fgetgrent_r>()"
350 msgstr "B<fgetgrent_r>()"
351
352 #. type: tbl table
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "MT-Safe"
357 msgstr "MT-Safe"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "In the above table, I<grent> in I<race:grent> signifies that if any of the "
364 "functions B<setgrent>(3), B<getgrent>(3), B<endgrent>(3), or "
365 "B<getgrent_r>() are used in parallel in different threads of a program, "
366 "then data races could occur."
367 msgstr ""
368 "في الجدول أعلاه، I<grent> في I<race:grent> يُشير إلى أنه إذا استُخدمت أي من "
369 "الدوال B<setgrent>(3)، B<getgrent>(3)، B<endgrent>(3)، أو B<getgrent_r>() "
370 "بالتوازي في خيوط مختلفة من برنامج، فقد تحدث سباقات بيانات."
371
372 #. type: SH
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "VERSIONS"
377 msgstr "الإصدارات"
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 msgid "Other systems use the prototype"
383 msgstr "أنظمة أخرى تستخدم النموذج الأولي"
384
385 #. type: Plain text
386 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
387 #: opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid ""
390 "struct group *getgrent_r(struct group *grp, char buf[.size],\n"
391 " int size);\n"
392 msgstr ""
393 "struct group *getgrent_r(struct group *grp, char buf[.size],\n"
394 " int size);\n"
395
396 #. type: Plain text
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 msgid "or, better,"
400 msgstr "أو، بشكل أفضل،"
401
402 #. type: Plain text
403 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
404 #: opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid ""
407 "int getgrent_r(struct group *grp, char buf[.size], int size,\n"
408 " FILE **gr_fp);\n"
409 msgstr ""
410 "int getgrent_r(struct group *grp, char buf[.size], int size,\n"
411 " FILE **gr_fp);\n"
412
413 #. type: SH
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "STANDARDS"
418 msgstr "المعايير"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "GNU."
424 msgstr "GNU."
425
426 #. type: SH
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "HISTORY"
431 msgstr "التاريخ"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "These functions are done in a style resembling the POSIX version of "
438 "functions like B<getpwnam_r>(3)."
439 msgstr "أُنجزت هذه الدوال بأسلوب يشبه نسخة POSIX من دوال مثل B<getpwnam_r>(3)."
440
441 #. type: SH
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "NOTES"
446 msgstr "ملاحظات"
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "The function B<getgrent_r>() is not really reentrant since it shares the "
453 "reading position in the stream with all other threads."
454 msgstr ""
455 "الدالة B<getgrent_r>() ليست قابلة لإعادة الدخول حقًا لأنها تشارك موضع القراءة "
456 "في الدفق مع جميع الخيوط الأخرى."
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "EXAMPLES"
463 msgstr "أمثلة"
464
465 #. type: Plain text
466 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid ""
469 "#define _GNU_SOURCE\n"
470 "#include E<lt>grp.hE<gt>\n"
471 "#include E<lt>stdint.hE<gt>\n"
472 "#include E<lt>stdio.hE<gt>\n"
473 "#include E<lt>stdlib.hE<gt>\n"
474 "#define BUFLEN 4096\n"
475 "\\&\n"
476 "int\n"
477 "main(void)\n"
478 "{\n"
479 " struct group grp;\n"
480 " struct group *grpp;\n"
481 " char buf[BUFLEN];\n"
482 " int i;\n"
483 "\\&\n"
484 " setgrent();\n"
485 " for (;;) {\n"
486 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
487 " if (i)\n"
488 " break;\n"
489 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
490 " for (size_t j = 0; ; j++) {\n"
491 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
492 " break;\n"
493 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
494 " }\n"
495 " printf(\"\\[rs]n\");\n"
496 " }\n"
497 " endgrent();\n"
498 " exit(EXIT_SUCCESS);\n"
499 "}\n"
500 msgstr ""
501 "#define _GNU_SOURCE\n"
502 "#include E<lt>grp.hE<gt>\n"
503 "#include E<lt>stdint.hE<gt>\n"
504 "#include E<lt>stdio.hE<gt>\n"
505 "#include E<lt>stdlib.hE<gt>\n"
506 "#define BUFLEN 4096\n"
507 "\\&\n"
508 "int\n"
509 "main(void)\n"
510 "{\n"
511 " struct group grp;\n"
512 " struct group *grpp;\n"
513 " char buf[BUFLEN];\n"
514 " int i;\n"
515 "\\&\n"
516 " setgrent();\n"
517 " for (;;) {\n"
518 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
519 " if (i)\n"
520 " break;\n"
521 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
522 " for (size_t j = 0; ; j++) {\n"
523 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
524 " break;\n"
525 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
526 " }\n"
527 " printf(\"\\[rs]n\");\n"
528 " }\n"
529 " endgrent();\n"
530 " exit(EXIT_SUCCESS);\n"
531 "}\n"
532
533 #. perhaps add error checking - should use strerror_r
534 #. #include <errno.h>
535 #. #include <stdlib.h>
536 #. if (i) {
537 #. if (i == ENOENT)
538 #. break;
539 #. printf("getgrent_r: %s", strerror(i));
540 #. exit(EXIT_FAILURE);
541 #. }
542 #. SRC END
543 #. type: SH
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 #, no-wrap
547 msgid "SEE ALSO"
548 msgstr "انظر أيضًا"
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
555 "B<putgrent>(3), B<group>(5)"
556 msgstr ""
557 "B<fgetgrent>(3), B<getgrent>(3), B<getgrgid>(3), B<getgrnam>(3), "
558 "B<putgrent>(3), B<group>(5)"
559
560 #. type: TH
561 #: debian-trixie
562 #, no-wrap
563 msgid "2024-06-15"
564 msgstr "15 يونيو 2024"
565
566 #. type: TH
567 #: debian-trixie
568 #, no-wrap
569 msgid "Linux man-pages 6.9.1"
570 msgstr "صفحات دليل لينكس 6.9.1"
571
572 #. type: Plain text
573 #: debian-trixie
574 msgid "Standard C library (I<libc>, I<-lc>)"
575 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
576
577 #. type: Plain text
578 #: debian-trixie
579 #, no-wrap
580 msgid ""
581 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
582 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
583 "B< struct group **restrict >I<gbufp>B<);>\n"
584 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
585 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
586 "B< struct group **restrict >I<gbufp>B<);>\n"
587 msgstr ""
588 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
589 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
590 "B< struct group **restrict >I<gbufp>B<);>\n"
591 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
592 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
593 "B< struct group **restrict >I<gbufp>B<);>\n"
594
595 #. type: Plain text
596 #: debian-trixie
597 msgid ""
598 "The nonreentrant functions return a pointer to static storage, where this "
599 "static storage contains further pointers to group name, password, and "
600 "members. The reentrant functions described here return all of that in "
601 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
602 "hold a I<struct group>. And next the buffer I<buf> of size I<buflen> that "
603 "can hold additional strings. The result of these functions, the I<struct "
604 "group> read from the stream, is stored in the provided buffer I<*gbuf>, and "
605 "a pointer to this I<struct group> is returned in I<*gbufp>."
606 msgstr ""
607 "الدوال غير القابلة لإعادة الدخول تُرجع مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
608 "التخزين الثابت على مؤشرات إضافية لاسم المجموعة، كلمة السر، والأعضاء. الدوال "
609 "القابلة لإعادة الدخول الموصوفة هنا تُرجع كل ذلك في مخازن مؤقتة يُوفرها "
610 "المُستدعي. أولاً هناك المخزن المؤقت I<gbuf> الذي يمكنه حمل I<struct group>. ثم "
611 "المخزن المؤقت I<buf> بحجم I<buflen> الذي يمكنه حمل سلاسل محارف إضافية. نتيجة "
612 "هذه الدوال، I<struct group> المقروء من الدفق، تُخزن في المخزن المؤقت المُوفر "
613 "I<*gbuf>، ويُعاد مؤشر إلى هذا I<struct group> في I<*gbufp>."
614
615 #. type: Plain text
616 #: debian-trixie fedora-44 fedora-rawhide
617 msgid ""
618 "On success, these functions return 0 and I<*gbufp> is a pointer to the "
619 "I<struct group>. On error, these functions return an error value and "
620 "I<*gbufp> is NULL."
621 msgstr ""
622 "عند النجاح، تُرجع هذه الدوال 0 ويكون I<*gbufp> مؤشرًا إلى I<struct group>. عند "
623 "الخطأ، تُرجع هذه الدوال قيمة خطأ ويكون I<*gbufp> NULL."
624
625 #. type: Plain text
626 #: debian-trixie
627 #, no-wrap
628 msgid ""
629 "struct group *getgrent_r(struct group *grp, char *buf,\n"
630 " int buflen);\n"
631 msgstr ""
632 "struct group *getgrent_r(struct group *grp, char *buf,\n"
633 " int buflen);\n"
634
635 #. type: Plain text
636 #: debian-trixie
637 #, no-wrap
638 msgid ""
639 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
640 " FILE **gr_fp);\n"
641 msgstr ""
642 "int getgrent_r(struct group *grp, char *buf, int buflen,\n"
643 " FILE **gr_fp);\n"
644
645 #. type: Plain text
646 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
647 #, no-wrap
648 msgid ""
649 "#define _GNU_SOURCE\n"
650 "#include E<lt>grp.hE<gt>\n"
651 "#include E<lt>stdint.hE<gt>\n"
652 "#include E<lt>stdio.hE<gt>\n"
653 "#include E<lt>stdlib.hE<gt>\n"
654 "#define BUFLEN 4096\n"
655 "\\&\n"
656 "int\n"
657 "main(void)\n"
658 "{\n"
659 " struct group grp;\n"
660 " struct group *grpp;\n"
661 " char buf[BUFLEN];\n"
662 " int i;\n"
663 "\\&\n"
664 " setgrent();\n"
665 " while (1) {\n"
666 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
667 " if (i)\n"
668 " break;\n"
669 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
670 " for (size_t j = 0; ; j++) {\n"
671 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
672 " break;\n"
673 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
674 " }\n"
675 " printf(\"\\[rs]n\");\n"
676 " }\n"
677 " endgrent();\n"
678 " exit(EXIT_SUCCESS);\n"
679 "}\n"
680 msgstr ""
681 "#define _GNU_SOURCE\n"
682 "#include E<lt>grp.hE<gt>\n"
683 "#include E<lt>stdint.hE<gt>\n"
684 "#include E<lt>stdio.hE<gt>\n"
685 "#include E<lt>stdlib.hE<gt>\n"
686 "#define BUFLEN 4096\n"
687 "\\&\n"
688 "int\n"
689 "main(void)\n"
690 "{\n"
691 " struct group grp;\n"
692 " struct group *grpp;\n"
693 " char buf[BUFLEN];\n"
694 " int i;\n"
695 "\\&\n"
696 " setgrent();\n"
697 " while (1) {\n"
698 " i = getgrent_r(&grp, buf, sizeof(buf), &grpp);\n"
699 " if (i)\n"
700 " break;\n"
701 " printf(\"%s (%jd):\", grpp-E<gt>gr_name, (intmax_t) grpp-E<gt>gr_gid);\n"
702 " for (size_t j = 0; ; j++) {\n"
703 " if (grpp-E<gt>gr_mem[j] == NULL)\n"
704 " break;\n"
705 " printf(\" %s\", grpp-E<gt>gr_mem[j]);\n"
706 " }\n"
707 " printf(\"\\[rs]n\");\n"
708 " }\n"
709 " endgrent();\n"
710 " exit(EXIT_SUCCESS);\n"
711 "}\n"
712
713 #. type: TH
714 #: fedora-44 fedora-rawhide
715 #, no-wrap
716 msgid "2024-12-24"
717 msgstr "24 ديسمبر 2024"
718
719 #. type: TH
720 #: fedora-44 fedora-rawhide
721 #, no-wrap
722 msgid "Linux man-pages 6.13"
723 msgstr "صفحات دليل لينكس 6.13"
724
725 #. type: Plain text
726 #: fedora-44 fedora-rawhide
727 #, no-wrap
728 msgid ""
729 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
730 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
731 "B< struct group **restrict >I<gbufp>B<);>\n"
732 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
733 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
734 "B< struct group **restrict >I<gbufp>B<);>\n"
735 msgstr ""
736 "B<int getgrent_r(struct group *restrict >I<gbuf>B<,>\n"
737 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
738 "B< struct group **restrict >I<gbufp>B<);>\n"
739 "B<int fgetgrent_r(FILE *restrict >I<stream>B<, struct group *restrict >I<gbuf>B<,>\n"
740 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
741 "B< struct group **restrict >I<gbufp>B<);>\n"
742
743 #. type: Plain text
744 #: fedora-44 fedora-rawhide
745 msgid ""
746 "The nonreentrant functions return a pointer to static storage, where this "
747 "static storage contains further pointers to group name, password, and "
748 "members. The reentrant functions described here return all of that in "
749 "caller-provided buffers. First of all there is the buffer I<gbuf> that can "
750 "hold a I<struct group>. And next the buffer I<buf> of size I<size> that can "
751 "hold additional strings. The result of these functions, the I<struct group> "
752 "read from the stream, is stored in the provided buffer I<*gbuf>, and a "
753 "pointer to this I<struct group> is returned in I<*gbufp>."
754 msgstr ""
755 "الدوال غير القابلة لإعادة الدخول ترجع مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
756 "التخزين الثابت على مؤشرات أخرى لاسم المجموعة وكلمة السر والأعضاء. الدوال "
757 "القابلة لإعادة الدخول الموصوفة هنا ترجع كل ذلك في مخازن مؤقتة يقدمها "
758 "المستدعي. أولاً هناك المخزن المؤقت I<gbuf> الذي يمكنه حمل I<struct group>. "
759 "ثم المخزن المؤقت I<buf> بحجم I<size> الذي يمكنه حمل سلاسل محارف إضافية. "
760 "نتيجة هذه الدوال، I<struct group> المقروء من الدفق، تُخزَّن في المخزن المؤقت "
761 "المُقدم I<*gbuf>، ويُرجَع مؤشر إلى هذا I<struct group> في I<*gbufp>."
762
763 #. type: TH
764 #: mageia-cauldron
765 #, no-wrap
766 msgid "2026-02-08"
767 msgstr "8 فبراير 2026"
768
769 #. type: TH
770 #: mageia-cauldron
771 #, no-wrap
772 msgid "Linux man-pages 6.17"
773 msgstr "صفحات دليل لينكس 6.17"
774
775 #. type: TH
776 #: opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "Linux man-pages (unreleased)"
779 msgstr "صفحات دليل لينكس (لم تصدر بعد)"