Debian Codegraph @

po/ar/man2/getgroups.2.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 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-05-18 17:16+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 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\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 "getgroups"
25 msgstr "getgroups"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 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 "getgroups, setgroups - get/set list of supplementary group IDs"
51 msgstr "getgroups, setgroups - الحصول/تعيين قائمة معرفات المجموعات التكميلية"
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 "المكتبة"
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 "مكتبة سي المعيارية (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 "موجز"
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>unistd.hE<gt>>\n"
78 msgstr "B<#include E<lt>unistd.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 "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable >I<size>B<]);>\n"
85 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable >I<size>B<]);>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>grp.hE<gt>>\n"
92 msgstr "B<#include E<lt>grp.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
96 #: opensuse-tumbleweed
97 #, no-wrap
98 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[>I<size>B<]);>\n"
99 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[>I<size>B<]);>\n"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
106 msgstr ""
107 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid "B<setgroups>():"
113 msgstr "B<setgroups>():"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid ""
120 " Since glibc 2.19:\n"
121 " _DEFAULT_SOURCE\n"
122 " glibc 2.19 and earlier:\n"
123 " _BSD_SOURCE\n"
124 msgstr ""
125 " منذ glibc 2.19:\n"
126 " _DEFAULT_SOURCE\n"
127 " glibc 2.19 وما قبله:\n"
128 " _BSD_SOURCE\n"
129
130 #. type: SH
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "DESCRIPTION"
135 msgstr "الوصف"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "B<getgroups>() returns the supplementary group IDs of the calling process "
142 "in I<list>. The argument I<size> should be set to the maximum number of "
143 "items that can be stored in the buffer pointed to by I<list>. If the "
144 "calling process is a member of more than I<size> supplementary groups, then "
145 "an error results."
146 msgstr ""
147 "ترجع B<getgroups>() معرفات المجموعات التكميلية للعملية المستدعية في "
148 "I<list>. يجب تعيين الوسيط I<size> إلى أقصى عدد من العناصر التي يمكن تخزينها "
149 "في المخزن المؤقت المشار إليه بواسطة I<list>. إذا كانت العملية المستدعية "
150 "عضوًا في أكثر من I<size> مجموعة تكميلية، ينتج خطأ."
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "It is unspecified whether the effective group ID of the calling process is "
157 "included in the returned list. (Thus, an application should also call "
158 "B<getegid>(2) and add or remove the resulting value.)"
159 msgstr ""
160 "من غير المحدد ما إذا كان معرف المجموعة الفعّال للعملية المستدعية مضمنًا في "
161 "القائمة المرجعة. (وبالتالي، يجب على التطبيق أيضًا استدعاء B<getegid>(2) "
162 "وإضافة أو إزالة القيمة الناتجة.)"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "If I<size> is zero, I<list> is not modified, but the total number of "
169 "supplementary group IDs for the process is returned. This allows the caller "
170 "to determine the size of a dynamically allocated I<list> to be used in a "
171 "further call to B<getgroups>()."
172 msgstr ""
173 "إذا كان I<size> صفرًا، لا يتم تعديل I<list>، ولكن يتم إرجاع العدد الإجمالي "
174 "لمعرفات المجموعات التكميلية للعملية. يسمح هذا للمستدعي بتحديد حجم I<list> "
175 "المخصص ديناميكيًا لاستخدامه في استدعاء لاحق لـ B<getgroups>()."
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 msgid ""
181 "B<setgroups>() sets the supplementary group IDs for the calling process. "
182 "Appropriate privileges are required (see the description of the B<EPERM> "
183 "error, below). The I<size> argument specifies the number of supplementary "
184 "group IDs in the buffer pointed to by I<list>. A process can drop all of "
185 "its supplementary groups with the call:"
186 msgstr ""
187 "تضبط B<setgroups>() معرفات المجموعات التكميلية للعملية المستدعية. "
188 "الامتيازات المناسبة مطلوبة (انظر وصف خطأ B<EPERM> أدناه). تحدد الوسيطة "
189 "I<size> عدد معرفات المجموعات التكميلية في المخزن المؤقت المشار إليه بواسطة "
190 "I<list>. يمكن لعملية إسقاط جميع مجموعاتها التكميلية بالاستدعاء:"
191
192 #. type: Plain text
193 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
194 #: opensuse-tumbleweed
195 #, no-wrap
196 msgid "setgroups(0, (gid_t [0]){});\n"
197 msgstr "setgroups(0, (gid_t [0]){});\n"
198
199 #. type: SH
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "RETURN VALUE"
204 msgstr "قيمة الإرجاع"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "On success, B<getgroups>() returns the number of supplementary group IDs. "
211 "On error, -1 is returned, and I<errno> is set to indicate the error."
212 msgstr ""
213 "عند النجاح، ترجع B<getgroups>() عدد معرفات المجموعات التكميلية. عند الخطأ، "
214 "يتم إرجاع -1، ويتم تعيين I<errno> للإشارة إلى الخطأ."
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "On success, B<setgroups>() returns 0. On error, -1 is returned, and "
221 "I<errno> is set to indicate the error."
222 msgstr ""
223 "عند النجاح، ترجع B<setgroups>() 0. عند الخطأ، يتم إرجاع -1، ويتم تعيين "
224 "I<errno> للإشارة إلى الخطأ."
225
226 #. type: SH
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "ERRORS"
231 msgstr "الأخطاء"
232
233 #. type: TP
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "B<EFAULT>"
238 msgstr "B<EFAULT>"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid "I<list> has an invalid address."
244 msgstr "I<list> له عنوان غير صالح."
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid "B<getgroups>() can additionally fail with the following error:"
250 msgstr "يمكن أن تفشل B<getgroups>() بالإضافة إلى ذلك مع الخطأ التالي:"
251
252 #. type: TP
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "B<EINVAL>"
257 msgstr "B<EINVAL>"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "I<size> is less than the number of supplementary group IDs, but is not zero."
264 msgstr "I<size> أقل من عدد معرفات المجموعات التكميلية، ولكنه ليس صفرًا."
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "B<setgroups>() can additionally fail with the following errors:"
270 msgstr "يمكن أن تفشل B<setgroups>() بالإضافة إلى ذلك مع الأخطاء التالية:"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "I<size> is greater than B<NGROUPS_MAX> (32 before Linux 2.6.4; 65536 since "
277 "Linux 2.6.4)."
278 msgstr ""
279 "I<size> أكبر من B<NGROUPS_MAX> (32 قبل Linux 2.6.4؛ 65536 منذ Linux 2.6.4)."
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<ENOMEM>"
286 msgstr "B<ENOMEM>"
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 "Out of memory."
292 msgstr "نفدت الذاكرة."
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<EPERM>"
299 msgstr "B<EPERM>"
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The calling process has insufficient privilege (the caller does not have the "
306 "B<CAP_SETGID> capability in the user namespace in which it resides)."
307 msgstr ""
308 "العملية المستدعية لديها امتياز غير كافٍ (المستدعي لا يملك القدرة "
309 "B<CAP_SETGID> في مساحة اسم المستخدم التي يقيم فيها)."
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<EPERM> (since Linux 3.19)"
316 msgstr "B<EPERM> (منذ Linux 3.19)"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The use of B<setgroups>() is denied in this user namespace. See the "
323 "description of I</proc/>pidI</setgroups> in B<user_namespaces>(7)."
324 msgstr ""
325 "استخدام B<setgroups>() ممنوع في مساحة اسم المستخدم هذه. انظر وصف I</proc/"
326 ">pidI</setgroups> في B<user_namespaces>(7)."
327
328 #. type: SH
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "VERSIONS"
333 msgstr "الإصدارات"
334
335 #. type: SS
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "C library/kernel differences"
340 msgstr "الاختلافات بين مكتبة C والنواة"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "At the kernel level, user IDs and group IDs are a per-thread attribute. "
347 "However, POSIX requires that all threads in a process share the same "
348 "credentials. The NPTL threading implementation handles the POSIX "
349 "requirements by providing wrapper functions for the various system calls "
350 "that change process UIDs and GIDs. These wrapper functions (including the "
351 "one for B<setgroups>()) employ a signal-based technique to ensure that when "
352 "one thread changes credentials, all of the other threads in the process also "
353 "change their credentials. For details, see B<nptl>(7)."
354 msgstr ""
355 "على مستوى النواة، معرفات المستخدمين والمجموعات هي سمة لكل خيط. ومع ذلك، "
356 "تتطلب POSIX أن تشترك جميع الخيوط في العملية في نفس بيانات الاعتماد. يعالج "
357 "تطبيق الخيوط NPTL متطلبات POSIX من خلال توفير دوال غلاف لاستدعاءات النظام "
358 "المختلفة التي تغير UIDs و GIDs للعملية. تستخدم دوال الغلاف هذه (بما في ذلك "
359 "دالة B<setgroups>()) تقنية قائمة على الإشارات لضمان أنه عندما يغير خيط "
360 "بيانات اعتماده، فإن جميع الخيوط الأخرى في العملية تغير أيضًا بيانات "
361 "اعتمادها. للتفاصيل، انظر B<nptl>(7)."
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "STANDARDS"
368 msgstr "المعايير"
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<getgroups>()"
375 msgstr "B<getgroups>()"
376
377 #. type: Plain text
378 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
379 #: opensuse-tumbleweed
380 msgid "POSIX.1-2024."
381 msgstr "POSIX.1-2024."
382
383 #. type: TP
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "B<setgroups>()"
388 msgstr "B<setgroups>()"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "None."
394 msgstr "لا شيء."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "HISTORY"
401 msgstr "التاريخ"
402
403 #. type: Plain text
404 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
405 #: opensuse-tumbleweed
406 msgid "4.3BSD, SVr4, POSIX.1-1988."
407 msgstr "4.3BSD، SVr4، POSIX.1-1988."
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid ""
413 "SVr4, 4.3BSD. Since B<setgroups>() requires privilege, it is not covered "
414 "by POSIX.1."
415 msgstr ""
416 "SVr4, 4.3BSD. نظرًا لأن B<setgroups>() يتطلب امتيازًا، فهو غير مشمول بـ "
417 "POSIX.1."
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "The original Linux B<getgroups>() system call supported only 16-bit group "
424 "IDs. Subsequently, Linux 2.4 added B<getgroups32>(), supporting 32-bit "
425 "IDs. The glibc B<getgroups>() wrapper function transparently deals with "
426 "the variation across kernel versions."
427 msgstr ""
428 "استدعاء النظام الأصلي Linux B<getgroups>() دعم فقط معرفات مجموعات 16 بت. "
429 "لاحقًا، أضاف Linux 2.4 B<getgroups32>()، الذي يدعم معرفات 32 بت. تتعامل دالة "
430 "الغلاف glibc B<getgroups>() بشفافية مع الاختلاف عبر إصدارات النواة."
431
432 #. type: SH
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "NOTES"
437 msgstr "ملاحظات"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid ""
443 "A process can have up to B<NGROUPS_MAX> supplementary group IDs in addition "
444 "to the effective group ID. The constant B<NGROUPS_MAX> is defined in "
445 "I<E<lt>limits.hE<gt>>. The set of supplementary group IDs is inherited from "
446 "the parent process, and preserved across an B<execve>(2)."
447 msgstr ""
448 "يمكن أن تحتوي العملية على ما يصل إلى B<NGROUPS_MAX> معرف مجموعة تكميلي "
449 "بالإضافة إلى معرف المجموعة الفعّال. الثابت B<NGROUPS_MAX> معرف في "
450 "I<E<lt>limits.hE<gt>>. مجموعة معرفات المجموعات التكميلية موروثة من العملية "
451 "الأم، ومحفوظة عبر B<execve>(2)."
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 ""
457 "The maximum number of supplementary group IDs can be found at run time using "
458 "B<sysconf>(3):"
459 msgstr ""
460 "يمكن العثور على أقصى عدد لمعرفات المجموعات التكميلية في وقت التشغيل باستخدام "
461 "B<sysconf>(3):"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid ""
468 "long ngroups_max;\n"
469 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
470 msgstr ""
471 "long ngroups_max;\n"
472 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "The maximum return value of B<getgroups>() cannot be larger than one more "
479 "than this value. Since Linux 2.6.4, the maximum number of supplementary "
480 "group IDs is also exposed via the Linux-specific read-only file, I</proc/sys/"
481 "kernel/ngroups_max>."
482 msgstr ""
483 "لا يمكن أن تكون القيمة القصوى المرجعة لـ B<getgroups>() أكبر من واحد زائد "
484 "هذه القيمة. منذ Linux 2.6.4، يتم أيضًا كشف أقصى عدد لمعرفات المجموعات "
485 "التكميلية عبر الملف المخصص للقراءة فقط الخاص بـ Linux، I</proc/sys/kernel/"
486 "ngroups_max>."
487
488 #. type: SH
489 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
490 #: opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "EXAMPLES"
493 msgstr "أمثلة"
494
495 #. type: Plain text
496 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
497 #: opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid ""
500 "#include E<lt>err.hE<gt>\n"
501 "#include E<lt>stddef.hE<gt>\n"
502 "#include E<lt>stdint.hE<gt>\n"
503 "#include E<lt>stdio.hE<gt>\n"
504 "#include E<lt>stdlib.hE<gt>\n"
505 "#include E<lt>sys/types.hE<gt>\n"
506 "#include E<lt>unistd.hE<gt>\n"
507 "\\&\n"
508 "#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n"
509 "\\&\n"
510 "static gid_t *agetgroups(size_t *ngids);\n"
511 "\\&\n"
512 "int\n"
513 "main(void)\n"
514 "{\n"
515 " gid_t *gids;\n"
516 " size_t n;\n"
517 "\\&\n"
518 " gids = agetgroups(&n);\n"
519 " if (gids == NULL)\n"
520 " err(EXIT_FAILURE, \"agetgroups\");\n"
521 "\\&\n"
522 " if (n != 0) {\n"
523 " printf(\"%jd\", (intmax_t) gids[0]);\n"
524 " for (size_t i = 1; i E<lt> n; i++)\n"
525 " printf(\" %jd\", (intmax_t) gids[i]);\n"
526 " }\n"
527 " puts(\"\");\n"
528 "\\&\n"
529 " free(gids);\n"
530 " exit(EXIT_SUCCESS);\n"
531 "}\n"
532 "\\&\n"
533 "static gid_t *\n"
534 "agetgroups(size_t *ngids)\n"
535 "{\n"
536 " int n;\n"
537 " gid_t *gids;\n"
538 "\\&\n"
539 " n = getgroups(0, NULL);\n"
540 " if (n == -1)\n"
541 " return NULL;\n"
542 "\\&\n"
543 " gids = MALLOC(n, gid_t);\n"
544 " if (gids == NULL)\n"
545 " return NULL;\n"
546 "\\&\n"
547 " n = getgroups(n, gids);\n"
548 " if (n == -1) {\n"
549 " free(gids);\n"
550 " return NULL;\n"
551 " }\n"
552 "\\&\n"
553 " *ngids = n;\n"
554 " return gids;\n"
555 "}\n"
556 msgstr ""
557 "#include E<lt>err.hE<gt>\n"
558 "#include E<lt>stddef.hE<gt>\n"
559 "#include E<lt>stdint.hE<gt>\n"
560 "#include E<lt>stdio.hE<gt>\n"
561 "#include E<lt>stdlib.hE<gt>\n"
562 "#include E<lt>sys/types.hE<gt>\n"
563 "#include E<lt>unistd.hE<gt>\n"
564 "\\&\n"
565 "#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n"
566 "\\&\n"
567 "static gid_t *agetgroups(size_t *ngids);\n"
568 "\\&\n"
569 "int\n"
570 "main(void)\n"
571 "{\n"
572 " gid_t *gids;\n"
573 " size_t n;\n"
574 "\\&\n"
575 " gids = agetgroups(&n);\n"
576 " if (gids == NULL)\n"
577 " err(EXIT_FAILURE, \"agetgroups\");\n"
578 "\\&\n"
579 " if (n != 0) {\n"
580 " printf(\"%jd\", (intmax_t) gids[0]);\n"
581 " for (size_t i = 1; i E<lt> n; i++)\n"
582 " printf(\" %jd\", (intmax_t) gids[i]);\n"
583 " }\n"
584 " puts(\"\");\n"
585 "\\&\n"
586 " free(gids);\n"
587 " exit(EXIT_SUCCESS);\n"
588 "}\n"
589 "\\&\n"
590 "static gid_t *\n"
591 "agetgroups(size_t *ngids)\n"
592 "{\n"
593 " int n;\n"
594 " gid_t *gids;\n"
595 "\\&\n"
596 " n = getgroups(0, NULL);\n"
597 " if (n == -1)\n"
598 " return NULL;\n"
599 "\\&\n"
600 " gids = MALLOC(n, gid_t);\n"
601 " if (gids == NULL)\n"
602 " return NULL;\n"
603 "\\&\n"
604 " n = getgroups(n, gids);\n"
605 " if (n == -1) {\n"
606 " free(gids);\n"
607 " return NULL;\n"
608 " }\n"
609 "\\&\n"
610 " *ngids = n;\n"
611 " return gids;\n"
612 "}\n"
613
614 #. #-#-#-#-# archlinux: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
615 #. SRC END
616 #. type: SH
617 #. #-#-#-#-# debian-trixie: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
618 #. type: SH
619 #. #-#-#-#-# debian-unstable: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
620 #. SRC END
621 #. type: SH
622 #. #-#-#-#-# fedora-44: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
623 #. SRC END
624 #. type: SH
625 #. #-#-#-#-# fedora-rawhide: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
626 #. SRC END
627 #. type: SH
628 #. #-#-#-#-# mageia-cauldron: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
629 #. SRC END
630 #. type: SH
631 #. #-#-#-#-# opensuse-leap-16-1: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
632 #. SRC END
633 #. type: SH
634 #. #-#-#-#-# opensuse-tumbleweed: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
635 #. SRC END
636 #. type: SH
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 #, no-wrap
640 msgid "SEE ALSO"
641 msgstr "انظر أيضًا"
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid ""
647 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
648 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
649 msgstr ""
650 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
651 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
652
653 #. type: TH
654 #: debian-trixie
655 #, no-wrap
656 msgid "2024-05-02"
657 msgstr "2 مايو 2024"
658
659 #. type: TH
660 #: debian-trixie
661 #, no-wrap
662 msgid "Linux man-pages 6.9.1"
663 msgstr "صفحات دليل لينكس 6.9.1"
664
665 #. type: Plain text
666 #: debian-trixie
667 msgid "Standard C library (I<libc>, I<-lc>)"
668 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
669
670 #. type: Plain text
671 #: debian-trixie
672 #, no-wrap
673 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n"
674 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n"
675
676 #. type: Plain text
677 #: debian-trixie
678 #, no-wrap
679 msgid "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n"
680 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n"
681
682 #. type: Plain text
683 #: debian-trixie fedora-44 fedora-rawhide
684 #, no-wrap
685 msgid "setgroups(0, NULL);\n"
686 msgstr "setgroups(0, NULL);\n"
687
688 #. type: Plain text
689 #: debian-trixie fedora-44 fedora-rawhide
690 msgid "POSIX.1-2008."
691 msgstr "POSIX.1-2008."
692
693 #. type: Plain text
694 #: debian-trixie fedora-44 fedora-rawhide
695 msgid "SVr4, 4.3BSD, POSIX.1-2001."
696 msgstr "SVr4، 4.3BSD، POSIX.1-2001."
697
698 #. type: TH
699 #: fedora-44 fedora-rawhide
700 #, no-wrap
701 msgid "2024-12-14"
702 msgstr "14 ديسمبر 2024"
703
704 #. type: TH
705 #: fedora-44 fedora-rawhide
706 #, no-wrap
707 msgid "Linux man-pages 6.13"
708 msgstr "صفحات دليل لينكس 6.13"
709
710 #. type: Plain text
711 #: fedora-44 fedora-rawhide
712 #, no-wrap
713 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
714 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
715
716 #. type: Plain text
717 #: fedora-44 fedora-rawhide
718 #, no-wrap
719 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
720 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
721
722 #. type: TH
723 #: mageia-cauldron
724 #, no-wrap
725 msgid "Linux man-pages 6.17"
726 msgstr "صفحات دليل لينكس 6.17"
727
728 #. type: TH
729 #: opensuse-leap-16-1 opensuse-tumbleweed
730 #, no-wrap
731 msgid "Linux man-pages (unreleased)"
732 msgstr "صفحات دليل لينكس (لم تصدر بعد)"