| 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-06-01 18:18+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 "getgrouplist" |
| 25 |
msgstr "getgrouplist" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2025-09-21" |
| 32 |
msgstr "21 سبتمبر 2025" |
| 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 "getgrouplist - get list of groups to which a user belongs" |
| 51 |
msgstr "getgrouplist - الحصول على قائمة المجموعات التي ينتمي إليها مستخدم" |
| 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>grp.hE<gt>>\n" |
| 78 |
msgstr "B<#include E<lt>grp.hE<gt>>\n" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<int getgrouplist(const char *>I<user>B<, gid_t >I<group>B<,>\n" |
| 86 |
"B< gid_t *>I<groups>B<, int *>I<ngroups>B<);>\n" |
| 87 |
msgstr "" |
| 88 |
"B<int getgrouplist(const char *>I<user>B<, gid_t >I<group>B<,>\n" |
| 89 |
"B< gid_t *>I<groups>B<, int *>I<ngroups>B<);>\n" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
msgid "" |
| 95 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 96 |
msgstr "" |
| 97 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "B<getgrouplist>():" |
| 103 |
msgstr "B<getgrouplist>():" |
| 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 |
#, no-wrap |
| 109 |
msgid "" |
| 110 |
" Since glibc 2.19:\n" |
| 111 |
" _DEFAULT_SOURCE\n" |
| 112 |
" glibc 2.19 and earlier:\n" |
| 113 |
" _BSD_SOURCE\n" |
| 114 |
msgstr "" |
| 115 |
" منذ glibc 2.19:\n" |
| 116 |
" _DEFAULT_SOURCE\n" |
| 117 |
" glibc 2.19 وما قبله:\n" |
| 118 |
" _BSD_SOURCE\n" |
| 119 |
|
| 120 |
#. type: SH |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "DESCRIPTION" |
| 125 |
msgstr "الوصف" |
| 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 |
msgid "" |
| 131 |
"The B<getgrouplist>() function scans the group database (see B<group>(5)) " |
| 132 |
"to obtain the list of groups that I<user> belongs to. Up to I<*ngroups> of " |
| 133 |
"these groups are returned in the array I<groups>." |
| 134 |
msgstr "" |
| 135 |
"تفحص الدالة B<getgrouplist>() قاعدة بيانات المجموعات (انظر B<group>(5)) " |
| 136 |
"للحصول على قائمة المجموعات التي ينتمي إليها I<user>. يُعاد حتى I<*ngroups> من " |
| 137 |
"هذه المجموعات في المصفوفة I<groups>." |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "" |
| 143 |
"If it was not among the groups defined for I<user> in the group database, " |
| 144 |
"then I<group> is included in the list of groups returned by " |
| 145 |
"B<getgrouplist>(); typically this argument is specified as the group ID from " |
| 146 |
"the password record for I<user>." |
| 147 |
msgstr "" |
| 148 |
"إذا لم يكن ضمن المجموعات المعرفة لـ I<user> في قاعدة بيانات المجموعات، " |
| 149 |
"فسيُدرج I<group> في قائمة المجموعات التي تُرجعها B<getgrouplist>()؛ يُحدد هذا " |
| 150 |
"المعامل عادةً كمعرف المجموعة من سجل كلمة السر لـ I<user>." |
| 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 |
"The I<ngroups> argument is a value-result argument: on return it always " |
| 157 |
"contains the number of groups found for I<user>, including I<group>; this " |
| 158 |
"value may be greater than the number of groups stored in I<groups>." |
| 159 |
msgstr "" |
| 160 |
"المعامل I<ngroups> هو معامل قيمة-نتيجة: عند الإرجاع يحتوي دائمًا على عدد " |
| 161 |
"المجموعات التي وُجدت لـ I<user>، بما في ذلك I<group>؛ قد تكون هذه القيمة أكبر " |
| 162 |
"من عدد المجموعات المخزنة في I<groups>." |
| 163 |
|
| 164 |
#. type: SH |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "RETURN VALUE" |
| 169 |
msgstr "قيمة الإرجاع" |
| 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 "" |
| 175 |
"If the number of groups of which I<user> is a member is less than or equal " |
| 176 |
"to I<*ngroups>, then the value I<*ngroups> is returned." |
| 177 |
msgstr "" |
| 178 |
"إذا كان عدد المجموعات التي I<user> عضو فيها أقل من أو يساوي I<*ngroups>، " |
| 179 |
"فتُعاد القيمة I<*ngroups>." |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
msgid "" |
| 185 |
"If the user is a member of more than I<*ngroups> groups, then " |
| 186 |
"B<getgrouplist>() returns -1. In this case, the value returned in " |
| 187 |
"I<*ngroups> can be used to resize the buffer passed to a further call to " |
| 188 |
"B<getgrouplist>()." |
| 189 |
msgstr "" |
| 190 |
"إذا كان المستخدم عضوًا في أكثر من I<*ngroups> مجموعة، فتُرجع B<getgrouplist>() " |
| 191 |
"-1. في هذه الحالة، يمكن استخدام القيمة المُعادة في I<*ngroups> لتغيير حجم " |
| 192 |
"المخزن المُمرر إلى استدعاء لاحق لـ B<getgrouplist>()." |
| 193 |
|
| 194 |
#. type: SH |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
#, no-wrap |
| 198 |
msgid "ATTRIBUTES" |
| 199 |
msgstr "السمات" |
| 200 |
|
| 201 |
#. type: Plain text |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
msgid "" |
| 205 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 206 |
msgstr "" |
| 207 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 208 |
|
| 209 |
#. type: tbl table |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
#, no-wrap |
| 213 |
msgid "Interface" |
| 214 |
msgstr "الواجهة" |
| 215 |
|
| 216 |
#. type: tbl table |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
#, no-wrap |
| 220 |
msgid "Attribute" |
| 221 |
msgstr "السمة" |
| 222 |
|
| 223 |
#. type: tbl table |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
#, no-wrap |
| 227 |
msgid "Value" |
| 228 |
msgstr "القيمة" |
| 229 |
|
| 230 |
#. type: tbl table |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid ".na\n" |
| 235 |
msgstr ".na\n" |
| 236 |
|
| 237 |
#. type: tbl table |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid ".nh\n" |
| 242 |
msgstr ".nh\n" |
| 243 |
|
| 244 |
#. type: tbl table |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
#, no-wrap |
| 248 |
msgid "B<getgrouplist>()" |
| 249 |
msgstr "B<getgrouplist>()" |
| 250 |
|
| 251 |
#. type: tbl table |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "Thread safety" |
| 256 |
msgstr "سلامة الخيوط" |
| 257 |
|
| 258 |
#. type: tbl table |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
#, no-wrap |
| 262 |
msgid "MT-Safe locale" |
| 263 |
msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)" |
| 264 |
|
| 265 |
#. type: SH |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
#, no-wrap |
| 269 |
msgid "STANDARDS" |
| 270 |
msgstr "المعايير" |
| 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 "None." |
| 276 |
msgstr "لا شيء." |
| 277 |
|
| 278 |
#. type: SH |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "HISTORY" |
| 283 |
msgstr "التاريخ" |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "glibc 2.2.4." |
| 289 |
msgstr "glibc 2.2.4." |
| 290 |
|
| 291 |
#. type: SH |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
#, no-wrap |
| 295 |
msgid "BUGS" |
| 296 |
msgstr "العلل" |
| 297 |
|
| 298 |
#. type: Plain text |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
msgid "" |
| 302 |
"Before glibc 2.3.3, the implementation of this function contains a buffer-" |
| 303 |
"overrun bug: it returns the complete list of groups for I<user> in the array " |
| 304 |
"I<groups>, even when the number of groups exceeds I<*ngroups>." |
| 305 |
msgstr "" |
| 306 |
"قبل glibc 2.3.3، يحتوي تنفيذ هذه الدالة على خطأ تجاوز المخزن: تُعيد القائمة " |
| 307 |
"الكاملة للمجموعات لـ I<user> في المصفوفة I<groups>، حتى عندما يتجاوز عدد " |
| 308 |
"المجموعات I<*ngroups>." |
| 309 |
|
| 310 |
#. type: SH |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "EXAMPLES" |
| 315 |
msgstr "أمثلة" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"The program below displays the group list for the user named in its first " |
| 322 |
"command-line argument. The second command-line argument specifies the " |
| 323 |
"I<ngroups> value to be supplied to B<getgrouplist>(). The following shell " |
| 324 |
"session shows examples of the use of this program:" |
| 325 |
msgstr "" |
| 326 |
"يعرض البرنامج أدناه قائمة المجموعات للمستخدم المُسمى في وسيط سطر الأوامر " |
| 327 |
"الأول. يحدد وسيط سطر الأوامر الثاني قيمة I<ngroups> التي ستُزود لـ " |
| 328 |
"B<getgrouplist>(). تُظهر جلسة الصدفة التالية أمثلة على استخدام هذا البرنامج:" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 332 |
#: opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid "" |
| 335 |
"$B< ./a.out cecilia 0>\n" |
| 336 |
"getgrouplist() returned -1\n" |
| 337 |
"ngroups = 3\n" |
| 338 |
"$B< ./a.out cecilia 3>\n" |
| 339 |
"ngroups = 3\n" |
| 340 |
"16 (dialout)\n" |
| 341 |
"33 (video)\n" |
| 342 |
"100 (users)\n" |
| 343 |
msgstr "" |
| 344 |
"$B< ./a.out cecilia 0>\n" |
| 345 |
"getgrouplist() returned -1\n" |
| 346 |
"ngroups = 3\n" |
| 347 |
"$B< ./a.out cecilia 3>\n" |
| 348 |
"ngroups = 3\n" |
| 349 |
"16 (dialout)\n" |
| 350 |
"33 (video)\n" |
| 351 |
"100 (users)\n" |
| 352 |
|
| 353 |
#. type: SS |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "Program source" |
| 358 |
msgstr "مصدر البرنامج" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 362 |
#: opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "" |
| 365 |
"#include E<lt>errno.hE<gt>\n" |
| 366 |
"#include E<lt>grp.hE<gt>\n" |
| 367 |
"#include E<lt>pwd.hE<gt>\n" |
| 368 |
"#include E<lt>stdio.hE<gt>\n" |
| 369 |
"#include E<lt>stdlib.hE<gt>\n" |
| 370 |
"\\&\n" |
| 371 |
"int\n" |
| 372 |
"main(int argc, char *argv[])\n" |
| 373 |
"{\n" |
| 374 |
" int ngroups;\n" |
| 375 |
" gid_t *groups;\n" |
| 376 |
" struct group *gr;\n" |
| 377 |
" struct passwd *pw;\n" |
| 378 |
"\\&\n" |
| 379 |
" if (argc != 3) {\n" |
| 380 |
" fprintf(stderr, \"Usage: %s E<lt>userE<gt> E<lt>ngroupsE<gt>\\[rs]n\", argv[0]);\n" |
| 381 |
" exit(EXIT_FAILURE);\n" |
| 382 |
" }\n" |
| 383 |
"\\&\n" |
| 384 |
" ngroups = atoi(argv[2]);\n" |
| 385 |
"\\&\n" |
| 386 |
" groups = malloc(sizeof(*groups) * ngroups);\n" |
| 387 |
" if (groups == NULL) {\n" |
| 388 |
" perror(\"malloc\");\n" |
| 389 |
" exit(EXIT_FAILURE);\n" |
| 390 |
" }\n" |
| 391 |
"\\&\n" |
| 392 |
" /* Fetch passwd structure (contains first group ID for user). */\n" |
| 393 |
"\\&\n" |
| 394 |
" errno = 0;\n" |
| 395 |
" pw = getpwnam(argv[1]);\n" |
| 396 |
" if (pw == NULL) {\n" |
| 397 |
" if (errno)\n" |
| 398 |
" perror(\"getpwnam\");\n" |
| 399 |
" else\n" |
| 400 |
" fprintf(stderr, \"no such user\\[rs]n\");\n" |
| 401 |
" exit(EXIT_FAILURE);\n" |
| 402 |
" }\n" |
| 403 |
"\\&\n" |
| 404 |
" /* Retrieve group list. */\n" |
| 405 |
"\\&\n" |
| 406 |
" if (getgrouplist(argv[1], pw-E<gt>pw_gid, groups, &ngroups) == -1) {\n" |
| 407 |
" fprintf(stderr, \"getgrouplist() returned -1\\[rs]n\");\n" |
| 408 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 409 |
" exit(EXIT_FAILURE);\n" |
| 410 |
" }\n" |
| 411 |
"\\&\n" |
| 412 |
" /* Display list of retrieved groups, along with group names. */\n" |
| 413 |
"\\&\n" |
| 414 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 415 |
" for (int j = 0; j E<lt> ngroups; j++) {\n" |
| 416 |
" printf(\"%d\", groups[j]);\n" |
| 417 |
" gr = getgrgid(groups[j]);\n" |
| 418 |
" if (gr != NULL)\n" |
| 419 |
" printf(\" (%s)\", gr-E<gt>gr_name);\n" |
| 420 |
" printf(\"\\[rs]n\");\n" |
| 421 |
" }\n" |
| 422 |
"\\&\n" |
| 423 |
" exit(EXIT_SUCCESS);\n" |
| 424 |
"}\n" |
| 425 |
msgstr "" |
| 426 |
"#include E<lt>errno.hE<gt>\n" |
| 427 |
"#include E<lt>grp.hE<gt>\n" |
| 428 |
"#include E<lt>pwd.hE<gt>\n" |
| 429 |
"#include E<lt>stdio.hE<gt>\n" |
| 430 |
"#include E<lt>stdlib.hE<gt>\n" |
| 431 |
"\\&\n" |
| 432 |
"int\n" |
| 433 |
"main(int argc, char *argv[])\n" |
| 434 |
"{\n" |
| 435 |
" int ngroups;\n" |
| 436 |
" gid_t *groups;\n" |
| 437 |
" struct group *gr;\n" |
| 438 |
" struct passwd *pw;\n" |
| 439 |
"\\&\n" |
| 440 |
" if (argc != 3) {\n" |
| 441 |
" fprintf(stderr, \"Usage: %s E<lt>userE<gt> E<lt>ngroupsE<gt>\\[rs]n\", argv[0]);\n" |
| 442 |
" exit(EXIT_FAILURE);\n" |
| 443 |
" }\n" |
| 444 |
"\\&\n" |
| 445 |
" ngroups = atoi(argv[2]);\n" |
| 446 |
"\\&\n" |
| 447 |
" groups = malloc(sizeof(*groups) * ngroups);\n" |
| 448 |
" if (groups == NULL) {\n" |
| 449 |
" perror(\"malloc\");\n" |
| 450 |
" exit(EXIT_FAILURE);\n" |
| 451 |
" }\n" |
| 452 |
"\\&\n" |
| 453 |
" /* Fetch passwd structure (contains first group ID for user). */\n" |
| 454 |
"\\&\n" |
| 455 |
" errno = 0;\n" |
| 456 |
" pw = getpwnam(argv[1]);\n" |
| 457 |
" if (pw == NULL) {\n" |
| 458 |
" if (errno)\n" |
| 459 |
" perror(\"getpwnam\");\n" |
| 460 |
" else\n" |
| 461 |
" fprintf(stderr, \"no such user\\[rs]n\");\n" |
| 462 |
" exit(EXIT_FAILURE);\n" |
| 463 |
" }\n" |
| 464 |
"\\&\n" |
| 465 |
" /* Retrieve group list. */\n" |
| 466 |
"\\&\n" |
| 467 |
" if (getgrouplist(argv[1], pw-E<gt>pw_gid, groups, &ngroups) == -1) {\n" |
| 468 |
" fprintf(stderr, \"getgrouplist() returned -1\\[rs]n\");\n" |
| 469 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 470 |
" exit(EXIT_FAILURE);\n" |
| 471 |
" }\n" |
| 472 |
"\\&\n" |
| 473 |
" /* Display list of retrieved groups, along with group names. */\n" |
| 474 |
"\\&\n" |
| 475 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 476 |
" for (int j = 0; j E<lt> ngroups; j++) {\n" |
| 477 |
" printf(\"%d\", groups[j]);\n" |
| 478 |
" gr = getgrgid(groups[j]);\n" |
| 479 |
" if (gr != NULL)\n" |
| 480 |
" printf(\" (%s)\", gr-E<gt>gr_name);\n" |
| 481 |
" printf(\"\\[rs]n\");\n" |
| 482 |
" }\n" |
| 483 |
"\\&\n" |
| 484 |
" exit(EXIT_SUCCESS);\n" |
| 485 |
"}\n" |
| 486 |
|
| 487 |
#. SRC END |
| 488 |
#. type: SH |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
#, no-wrap |
| 492 |
msgid "SEE ALSO" |
| 493 |
msgstr "انظر أيضًا" |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
msgid "" |
| 499 |
"B<getgroups>(2), B<setgroups>(2), B<getgrent>(3), B<group_member>(3), " |
| 500 |
"B<group>(5), B<passwd>(5)" |
| 501 |
msgstr "" |
| 502 |
"B<getgroups>(2), B<setgroups>(2), B<getgrent>(3), B<group_member>(3), " |
| 503 |
"B<group>(5), B<passwd>(5)" |
| 504 |
|
| 505 |
#. type: TH |
| 506 |
#: debian-trixie |
| 507 |
#, no-wrap |
| 508 |
msgid "2024-06-15" |
| 509 |
msgstr "15 يونيو 2024" |
| 510 |
|
| 511 |
#. type: TH |
| 512 |
#: debian-trixie |
| 513 |
#, no-wrap |
| 514 |
msgid "Linux man-pages 6.9.1" |
| 515 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: debian-trixie |
| 519 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 520 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 521 |
|
| 522 |
#. type: Plain text |
| 523 |
#: debian-trixie fedora-44 fedora-rawhide |
| 524 |
#, no-wrap |
| 525 |
msgid "" |
| 526 |
"$B< ./a.out cecilia 0>\n" |
| 527 |
"getgrouplist() returned -1; ngroups = 3\n" |
| 528 |
"$B< ./a.out cecilia 3>\n" |
| 529 |
"ngroups = 3\n" |
| 530 |
"16 (dialout)\n" |
| 531 |
"33 (video)\n" |
| 532 |
"100 (users)\n" |
| 533 |
msgstr "" |
| 534 |
"$B< ./a.out cecilia 0>\n" |
| 535 |
"getgrouplist() returned -1; ngroups = 3\n" |
| 536 |
"$B< ./a.out cecilia 3>\n" |
| 537 |
"ngroups = 3\n" |
| 538 |
"16 (dialout)\n" |
| 539 |
"33 (video)\n" |
| 540 |
"100 (users)\n" |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: debian-trixie fedora-44 fedora-rawhide |
| 544 |
#, no-wrap |
| 545 |
msgid "" |
| 546 |
"#include E<lt>errno.hE<gt>\n" |
| 547 |
"#include E<lt>grp.hE<gt>\n" |
| 548 |
"#include E<lt>pwd.hE<gt>\n" |
| 549 |
"#include E<lt>stdio.hE<gt>\n" |
| 550 |
"#include E<lt>stdlib.hE<gt>\n" |
| 551 |
"\\&\n" |
| 552 |
"int\n" |
| 553 |
"main(int argc, char *argv[])\n" |
| 554 |
"{\n" |
| 555 |
" int ngroups;\n" |
| 556 |
" gid_t *groups;\n" |
| 557 |
" struct group *gr;\n" |
| 558 |
" struct passwd *pw;\n" |
| 559 |
"\\&\n" |
| 560 |
" if (argc != 3) {\n" |
| 561 |
" fprintf(stderr, \"Usage: %s E<lt>userE<gt> E<lt>ngroupsE<gt>\\[rs]n\", argv[0]);\n" |
| 562 |
" exit(EXIT_FAILURE);\n" |
| 563 |
" }\n" |
| 564 |
"\\&\n" |
| 565 |
" ngroups = atoi(argv[2]);\n" |
| 566 |
"\\&\n" |
| 567 |
" groups = malloc(sizeof(*groups) * ngroups);\n" |
| 568 |
" if (groups == NULL) {\n" |
| 569 |
" perror(\"malloc\");\n" |
| 570 |
" exit(EXIT_FAILURE);\n" |
| 571 |
" }\n" |
| 572 |
"\\&\n" |
| 573 |
" /* Fetch passwd structure (contains first group ID for user). */\n" |
| 574 |
"\\&\n" |
| 575 |
" errno = 0;\n" |
| 576 |
" pw = getpwnam(argv[1]);\n" |
| 577 |
" if (pw == NULL) {\n" |
| 578 |
" if (errno)\n" |
| 579 |
" perror(\"getpwnam\");\n" |
| 580 |
" else\n" |
| 581 |
" fprintf(stderr, \"no such user\\[rs]n\");\n" |
| 582 |
" exit(EXIT_FAILURE);\n" |
| 583 |
" }\n" |
| 584 |
"\\&\n" |
| 585 |
" /* Retrieve group list. */\n" |
| 586 |
"\\&\n" |
| 587 |
" if (getgrouplist(argv[1], pw-E<gt>pw_gid, groups, &ngroups) == -1) {\n" |
| 588 |
" fprintf(stderr, \"getgrouplist() returned -1; ngroups = %d\\[rs]n\",\n" |
| 589 |
" ngroups);\n" |
| 590 |
" exit(EXIT_FAILURE);\n" |
| 591 |
" }\n" |
| 592 |
"\\&\n" |
| 593 |
" /* Display list of retrieved groups, along with group names. */\n" |
| 594 |
"\\&\n" |
| 595 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 596 |
" for (int j = 0; j E<lt> ngroups; j++) {\n" |
| 597 |
" printf(\"%d\", groups[j]);\n" |
| 598 |
" gr = getgrgid(groups[j]);\n" |
| 599 |
" if (gr != NULL)\n" |
| 600 |
" printf(\" (%s)\", gr-E<gt>gr_name);\n" |
| 601 |
" printf(\"\\[rs]n\");\n" |
| 602 |
" }\n" |
| 603 |
"\\&\n" |
| 604 |
" exit(EXIT_SUCCESS);\n" |
| 605 |
"}\n" |
| 606 |
msgstr "" |
| 607 |
"#include E<lt>errno.hE<gt>\n" |
| 608 |
"#include E<lt>grp.hE<gt>\n" |
| 609 |
"#include E<lt>pwd.hE<gt>\n" |
| 610 |
"#include E<lt>stdio.hE<gt>\n" |
| 611 |
"#include E<lt>stdlib.hE<gt>\n" |
| 612 |
"\\&\n" |
| 613 |
"int\n" |
| 614 |
"main(int argc, char *argv[])\n" |
| 615 |
"{\n" |
| 616 |
" int ngroups;\n" |
| 617 |
" gid_t *groups;\n" |
| 618 |
" struct group *gr;\n" |
| 619 |
" struct passwd *pw;\n" |
| 620 |
"\\&\n" |
| 621 |
" if (argc != 3) {\n" |
| 622 |
" fprintf(stderr, \"Usage: %s E<lt>userE<gt> E<lt>ngroupsE<gt>\\[rs]n\", argv[0]);\n" |
| 623 |
" exit(EXIT_FAILURE);\n" |
| 624 |
" }\n" |
| 625 |
"\\&\n" |
| 626 |
" ngroups = atoi(argv[2]);\n" |
| 627 |
"\\&\n" |
| 628 |
" groups = malloc(sizeof(*groups) * ngroups);\n" |
| 629 |
" if (groups == NULL) {\n" |
| 630 |
" perror(\"malloc\");\n" |
| 631 |
" exit(EXIT_FAILURE);\n" |
| 632 |
" }\n" |
| 633 |
"\\&\n" |
| 634 |
" /* Fetch passwd structure (contains first group ID for user). */\n" |
| 635 |
"\\&\n" |
| 636 |
" errno = 0;\n" |
| 637 |
" pw = getpwnam(argv[1]);\n" |
| 638 |
" if (pw == NULL) {\n" |
| 639 |
" if (errno)\n" |
| 640 |
" perror(\"getpwnam\");\n" |
| 641 |
" else\n" |
| 642 |
" fprintf(stderr, \"no such user\\[rs]n\");\n" |
| 643 |
" exit(EXIT_FAILURE);\n" |
| 644 |
" }\n" |
| 645 |
"\\&\n" |
| 646 |
" /* Retrieve group list. */\n" |
| 647 |
"\\&\n" |
| 648 |
" if (getgrouplist(argv[1], pw-E<gt>pw_gid, groups, &ngroups) == -1) {\n" |
| 649 |
" fprintf(stderr, \"getgrouplist() returned -1; ngroups = %d\\[rs]n\",\n" |
| 650 |
" ngroups);\n" |
| 651 |
" exit(EXIT_FAILURE);\n" |
| 652 |
" }\n" |
| 653 |
"\\&\n" |
| 654 |
" /* Display list of retrieved groups, along with group names. */\n" |
| 655 |
"\\&\n" |
| 656 |
" fprintf(stderr, \"ngroups = %d\\[rs]n\", ngroups);\n" |
| 657 |
" for (int j = 0; j E<lt> ngroups; j++) {\n" |
| 658 |
" printf(\"%d\", groups[j]);\n" |
| 659 |
" gr = getgrgid(groups[j]);\n" |
| 660 |
" if (gr != NULL)\n" |
| 661 |
" printf(\" (%s)\", gr-E<gt>gr_name);\n" |
| 662 |
" printf(\"\\[rs]n\");\n" |
| 663 |
" }\n" |
| 664 |
"\\&\n" |
| 665 |
" exit(EXIT_SUCCESS);\n" |
| 666 |
"}\n" |
| 667 |
|
| 668 |
#. type: TH |
| 669 |
#: fedora-44 fedora-rawhide |
| 670 |
#, no-wrap |
| 671 |
msgid "2024-07-23" |
| 672 |
msgstr "23 يوليو 2024" |
| 673 |
|
| 674 |
#. type: TH |
| 675 |
#: fedora-44 fedora-rawhide |
| 676 |
#, no-wrap |
| 677 |
msgid "Linux man-pages 6.13" |
| 678 |
msgstr "صفحات دليل لينكس 6.13" |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: mageia-cauldron |
| 682 |
#, no-wrap |
| 683 |
msgid "Linux man-pages 6.17" |
| 684 |
msgstr "صفحات دليل لينكس 6.17" |
| 685 |
|
| 686 |
#. type: TH |
| 687 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
#, no-wrap |
| 689 |
msgid "Linux man-pages (unreleased)" |
| 690 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |