Debian Codegraph @

po/ar/man3/getpwent_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 "getpwent_r"
26 msgstr "getpwent_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 "getpwent_r, fgetpwent_r - get passwd file entry reentrantly"
51 msgstr ""
52 "getpwent_r, fgetpwent_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>pwd.hE<gt>>\n"
80 msgstr "B<#include E<lt>pwd.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 getpwent_r(>size_t size;\n"
88 "B< struct passwd *restrict >I<pwbuf>B<,>\n"
89 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
90 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
91 "B<int fgetpwent_r(>size_t size;\n"
92 "B< FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
93 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
94 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
95 msgstr ""
96 "B<int getpwent_r(>size_t size;\n"
97 "B< struct passwd *restrict >I<pwbuf>B<,>\n"
98 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
99 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
100 "B<int fgetpwent_r(>size_t size;\n"
101 "B< FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
102 "B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
103 "B< struct passwd **restrict >I<pwbufp>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<getpwent_r>(),"
117 msgstr "B<getpwent_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 ""
124 " Since glibc 2.19:\n"
125 " _DEFAULT_SOURCE\n"
126 " glibc 2.19 and earlier:\n"
127 " _BSD_SOURCE || _SVID_SOURCE\n"
128 msgstr ""
129 " منذ glibc 2.19:\n"
130 " _DEFAULT_SOURCE\n"
131 " glibc 2.19 وما قبله:\n"
132 " _BSD_SOURCE || _SVID_SOURCE\n"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid "B<fgetpwent_r>():"
138 msgstr "B<fgetpwent_r>()،"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid ""
145 " Since glibc 2.19:\n"
146 " _DEFAULT_SOURCE\n"
147 " glibc 2.19 and earlier:\n"
148 " _SVID_SOURCE\n"
149 msgstr ""
150 " منذ glibc 2.19:\n"
151 " _DEFAULT_SOURCE\n"
152 " في glibc 2.19 وما قبله:\n"
153 " _SVID_SOURCE\n"
154
155 #. type: SH
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "DESCRIPTION"
160 msgstr "الوصف"
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "The functions B<getpwent_r>() and B<fgetpwent_r>() are the reentrant "
167 "versions of B<getpwent>(3) and B<fgetpwent>(3). The former reads the next "
168 "passwd entry from the stream initialized by B<setpwent>(3). The latter "
169 "reads the next passwd entry from I<stream>."
170 msgstr ""
171 "الدالتان B<getpwent_r>() و B<fgetpwent_r>() هما النسختان القابلتان لإعادة "
172 "الدخول من B<getpwent>(3) و B<fgetpwent>(3). الأولى تقرأ مدخل passwd التالي "
173 "من الدفق المُهيأ بواسطة B<setpwent>(3). الثانية تقرأ مدخل passwd التالي من "
174 "I<stream>."
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid "The I<passwd> structure is defined in I<E<lt>pwd.hE<gt>> as follows:"
180 msgstr "عُرف هيكل I<passwd> في I<E<lt>pwd.hE<gt>> كالتالي:"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid ""
187 "struct passwd {\n"
188 " char *pw_name; /* username */\n"
189 " char *pw_passwd; /* user password */\n"
190 " uid_t pw_uid; /* user ID */\n"
191 " gid_t pw_gid; /* group ID */\n"
192 " char *pw_gecos; /* user information */\n"
193 " char *pw_dir; /* home directory */\n"
194 " char *pw_shell; /* shell program */\n"
195 "};\n"
196 msgstr ""
197 "struct passwd {\n"
198 " char *pw_name; /* اسم المستخدم */\n"
199 " char *pw_passwd; /* كلمة سر المستخدم */\n"
200 " uid_t pw_uid; /* معرف المستخدم */\n"
201 " gid_t pw_gid; /* معرف المجموعة */\n"
202 " char *pw_gecos; /* معلومات المستخدم */\n"
203 " char *pw_dir; /* الدليل الرئيسي */\n"
204 " char *pw_shell; /* برنامج الصدفة */\n"
205 "};\n"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "For more information about the fields of this structure, see B<passwd>(5)."
212 msgstr "لمزيد من المعلومات حول حقول هذا الهيكل، راجع B<passwd>(5)."
213
214 #. type: Plain text
215 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
216 #: opensuse-tumbleweed
217 msgid ""
218 "The nonreentrant functions return a pointer to static storage, where this "
219 "static storage contains further pointers to user name, password, gecos "
220 "field, home directory and shell. The reentrant functions described here "
221 "return all of that in caller-provided buffers. First of all there is the "
222 "buffer I<pwbuf> that can hold a I<struct\\ passwd>. And next the buffer "
223 "I<buf> of size I<size> that can hold additional strings. The result of "
224 "these functions, the I<struct\\ passwd> read from the stream, is stored in "
225 "the provided buffer I<*pwbuf>, and a pointer to this I<struct\\ passwd> is "
226 "returned in I<*pwbufp>."
227 msgstr ""
228 "الدوال غير القابلة لإعادة الدخول تُرجع مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
229 "التخزين الثابت على مؤشرات أخرى لاسم المستخدم، كلمة السر، حقل gecos، الدليل "
230 "الرئيسي والصدفة. الدوال القابلة لإعادة الدخول الموصوفة هنا تُرجع كل ذلك في "
231 "مخازن مؤقتة يقدمها المستدعي. أولاً هناك المخزن المؤقت I<pwbuf> الذي يمكنه حمل "
232 "I<struct\\ passwd>. ثم المخزن المؤقت I<buf> بحجم I<size> الذي يمكنه حمل "
233 "سلاسل محارف إضافية. نتيجة هذه الدوال، I<struct\\ passwd> المقروء من الدفق، "
234 "تُخزن في المخزن المؤقت المُقدم I<*pwbuf>، ويُعاد مؤشر إلى هذا I<struct\\ "
235 "passwd> في I<*pwbufp>."
236
237 #. type: SH
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "RETURN VALUE"
242 msgstr "قيمة الإرجاع"
243
244 #. type: Plain text
245 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
246 #: opensuse-tumbleweed
247 msgid ""
248 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
249 "I<struct\\ passwd>. On error, these functions return an error value and "
250 "I<*pwbufp> is NULL."
251 msgstr ""
252 "عند النجاح، تُرجع هذه الدوال 0 ويكون I<*pwbufp> مؤشرًا إلى I<struct\\ passwd>. "
253 "عند الخطأ، تُرجع هذه الدوال قيمة خطأ ويكون I<*pwbufp> NULL."
254
255 #. type: SH
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "ERRORS"
260 msgstr "الأخطاء"
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<ENOENT>"
267 msgstr "B<ENOENT>"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid "No more entries."
273 msgstr "لا يوجد مزيد من المدخلات."
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "B<ERANGE>"
280 msgstr "B<ERANGE>"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid "Insufficient buffer space supplied. Try again with larger buffer."
286 msgstr "مساحة المخزن المؤقت (buffer) المزودة غير كافية. حاول ثانية بمخزن أكبر."
287
288 #. type: SH
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "ATTRIBUTES"
293 msgstr "السمات"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "For an explanation of the terms used in this section, see B<attributes>(7)."
300 msgstr ""
301 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
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 "Interface"
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 "Attribute"
315 msgstr "السمة"
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 "Value"
322 msgstr "القيمة"
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 ".na\n"
329 msgstr ".na\n"
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 ".nh\n"
336 msgstr ".nh\n"
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 "B<getpwent_r>()"
343 msgstr "B<getpwent_r>()"
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 "Thread safety"
350 msgstr "سلامة الخيوط"
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-Unsafe race:pwent locale"
357 msgstr "غير آمن للمسارات المتعددة (MT-Unsafe) سباق:pwent locale"
358
359 #. type: tbl table
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<fgetpwent_r>()"
364 msgstr "B<fgetpwent_r>()"
365
366 #. type: tbl table
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "MT-Safe"
371 msgstr "MT-Safe"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "In the above table, I<pwent> in I<race:pwent> signifies that if any of the "
378 "functions B<setpwent>(), B<getpwent>(), B<endpwent>(), or B<getpwent_r>() "
379 "are used in parallel in different threads of a program, then data races "
380 "could occur."
381 msgstr ""
382 "في الجدول أعلاه، I<pwent> في I<race:pwent> يعني أنه إذا استُخدمت أي من الدوال "
383 "B<setpwent>()، B<getpwent>()، B<endpwent>()، أو B<getpwent_r>() بالتوازي في "
384 "خيوط مختلفة من برنامج، فقد تحدث سباقات بيانات."
385
386 #. type: SH
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "VERSIONS"
391 msgstr "الإصدارات"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid "Other systems use the prototype"
397 msgstr "أنظمة أخرى تستخدم النموذج الأولي"
398
399 #. type: Plain text
400 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
401 #: opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid ""
404 "struct passwd *\n"
405 "getpwent_r(struct passwd *pwd, char buf[.size], int size);\n"
406 msgstr ""
407 "struct passwd *\n"
408 "getpwent_r(struct passwd *pwd, char buf[.size], int size);\n"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid "or, better,"
414 msgstr "أو، بشكل أفضل،"
415
416 #. type: Plain text
417 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
418 #: opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid ""
421 "int\n"
422 "getpwent_r(struct passwd *pwd, char buf[.size], int size,\n"
423 " FILE **pw_fp);\n"
424 msgstr ""
425 "int\n"
426 "getpwent_r(struct passwd *pwd, char buf[.size], int size,\n"
427 " FILE **pw_fp);\n"
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "STANDARDS"
434 msgstr "المعايير"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "None."
440 msgstr "لا شيء."
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "HISTORY"
447 msgstr "التاريخ"
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "These functions are done in a style resembling the POSIX version of "
454 "functions like B<getpwnam_r>(3)."
455 msgstr "أُنجزت هذه الدوال بأسلوب يشبه نسخة POSIX من دوال مثل B<getpwnam_r>(3)."
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "NOTES"
462 msgstr "ملاحظات"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid ""
468 "The function B<getpwent_r>() is not really reentrant since it shares the "
469 "reading position in the stream with all other threads."
470 msgstr ""
471 "الدالة B<getpwent_r>() ليست قابلة لإعادة الدخول حقًا لأنها تشارك موضع القراءة "
472 "في الدفق مع جميع الخيوط الأخرى."
473
474 #. type: SH
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "EXAMPLES"
479 msgstr "أمثلة"
480
481 #. type: Plain text
482 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid ""
485 "#define _GNU_SOURCE\n"
486 "#include E<lt>pwd.hE<gt>\n"
487 "#include E<lt>stdint.hE<gt>\n"
488 "#include E<lt>stdio.hE<gt>\n"
489 "#include E<lt>stdlib.hE<gt>\n"
490 "\\&\n"
491 "#define BUFLEN 4096\n"
492 "\\&\n"
493 "int\n"
494 "main(void)\n"
495 "{\n"
496 " struct passwd pw;\n"
497 " struct passwd *pwp;\n"
498 " char buf[BUFLEN];\n"
499 " int i;\n"
500 "\\&\n"
501 " setpwent();\n"
502 " for (;;) {\n"
503 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
504 " if (i)\n"
505 " break;\n"
506 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
507 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
508 " }\n"
509 " endpwent();\n"
510 " exit(EXIT_SUCCESS);\n"
511 "}\n"
512 msgstr ""
513 "#define _GNU_SOURCE\n"
514 "#include E<lt>pwd.hE<gt>\n"
515 "#include E<lt>stdint.hE<gt>\n"
516 "#include E<lt>stdio.hE<gt>\n"
517 "#include E<lt>stdlib.hE<gt>\n"
518 "\\&\n"
519 "#define BUFLEN 4096\n"
520 "\\&\n"
521 "int\n"
522 "main(void)\n"
523 "{\n"
524 " struct passwd pw;\n"
525 " struct passwd *pwp;\n"
526 " char buf[BUFLEN];\n"
527 " int i;\n"
528 "\\&\n"
529 " setpwent();\n"
530 " for (;;) {\n"
531 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
532 " if (i)\n"
533 " break;\n"
534 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
535 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
536 " }\n"
537 " endpwent();\n"
538 " exit(EXIT_SUCCESS);\n"
539 "}\n"
540
541 #. perhaps add error checking - should use strerror_r
542 #. #include <errno.h>
543 #. #include <stdlib.h>
544 #. if (i) {
545 #. if (i == ENOENT)
546 #. break;
547 #. printf("getpwent_r: %s", strerror(i));
548 #. exit(EXIT_SUCCESS);
549 #. }
550 #. SRC END
551 #. type: SH
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "SEE ALSO"
556 msgstr "انظر أيضًا"
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "B<fgetpwent>(3), B<getpw>(3), B<getpwent>(3), B<getpwnam>(3), "
563 "B<getpwuid>(3), B<putpwent>(3), B<passwd>(5)"
564 msgstr ""
565 "B<fgetpwent>(3)، B<getpw>(3)، B<getpwent>(3)، B<getpwnam>(3)، "
566 "B<getpwuid>(3)، B<putpwent>(3)، B<passwd>(5)"
567
568 #. type: TH
569 #: debian-trixie
570 #, no-wrap
571 msgid "2024-06-15"
572 msgstr "15 يونيو 2024"
573
574 #. type: TH
575 #: debian-trixie
576 #, no-wrap
577 msgid "Linux man-pages 6.9.1"
578 msgstr "صفحات دليل لينكس 6.9.1"
579
580 #. type: Plain text
581 #: debian-trixie
582 msgid "Standard C library (I<libc>, I<-lc>)"
583 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
584
585 #. type: Plain text
586 #: debian-trixie
587 #, no-wrap
588 msgid ""
589 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
590 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
591 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
592 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
593 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
594 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
595 msgstr ""
596 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
597 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
598 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
599 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
600 "B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n"
601 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
602
603 #. type: Plain text
604 #: debian-trixie
605 msgid ""
606 "The nonreentrant functions return a pointer to static storage, where this "
607 "static storage contains further pointers to user name, password, gecos "
608 "field, home directory and shell. The reentrant functions described here "
609 "return all of that in caller-provided buffers. First of all there is the "
610 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
611 "I<buf> of size I<buflen> that can hold additional strings. The result of "
612 "these functions, the I<struct passwd> read from the stream, is stored in the "
613 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
614 "returned in I<*pwbufp>."
615 msgstr ""
616 "الدوال غير القابلة لإعادة الدخول تُرجع مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
617 "التخزين الثابت على مؤشرات أخرى لاسم المستخدم، كلمة السر، حقل gecos، الدليل "
618 "الرئيسي والصدفة. الدوال القابلة لإعادة الدخول الموصوفة هنا تُرجع كل ذلك في "
619 "مخازن مؤقتة يقدمها المستدعي. أولاً هناك المخزن المؤقت I<pwbuf> الذي يمكنه حمل "
620 "I<struct passwd>. ثم المخزن المؤقت I<buf> بحجم I<buflen> الذي يمكنه حمل "
621 "سلاسل محارف إضافية. نتيجة هذه الدوال، I<struct passwd> المقروء من الدفق، "
622 "تُخزن في المخزن المؤقت المُقدم I<*pwbuf>، ويُعاد مؤشر إلى هذا I<struct passwd> "
623 "في I<*pwbufp>."
624
625 #. type: Plain text
626 #: debian-trixie fedora-44 fedora-rawhide
627 msgid ""
628 "On success, these functions return 0 and I<*pwbufp> is a pointer to the "
629 "I<struct passwd>. On error, these functions return an error value and "
630 "I<*pwbufp> is NULL."
631 msgstr ""
632 "عند النجاح، تُرجع هذه الدوال 0 ويكون I<*pwbufp> مؤشرًا إلى I<struct passwd>. "
633 "عند الخطأ، تُرجع هذه الدوال قيمة خطأ ويكون I<*pwbufp> فارغًا."
634
635 #. type: Plain text
636 #: debian-trixie
637 #, no-wrap
638 msgid ""
639 "struct passwd *\n"
640 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
641 msgstr ""
642 "struct passwd *\n"
643 "getpwent_r(struct passwd *pwd, char *buf, int buflen);\n"
644
645 #. type: Plain text
646 #: debian-trixie
647 #, no-wrap
648 msgid ""
649 "int\n"
650 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
651 " FILE **pw_fp);\n"
652 msgstr ""
653 "int\n"
654 "getpwent_r(struct passwd *pwd, char *buf, int buflen,\n"
655 " FILE **pw_fp);\n"
656
657 #. type: Plain text
658 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
659 #, no-wrap
660 msgid ""
661 "#define _GNU_SOURCE\n"
662 "#include E<lt>pwd.hE<gt>\n"
663 "#include E<lt>stdint.hE<gt>\n"
664 "#include E<lt>stdio.hE<gt>\n"
665 "#include E<lt>stdlib.hE<gt>\n"
666 "\\&\n"
667 "#define BUFLEN 4096\n"
668 "\\&\n"
669 "int\n"
670 "main(void)\n"
671 "{\n"
672 " struct passwd pw;\n"
673 " struct passwd *pwp;\n"
674 " char buf[BUFLEN];\n"
675 " int i;\n"
676 "\\&\n"
677 " setpwent();\n"
678 " while (1) {\n"
679 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
680 " if (i)\n"
681 " break;\n"
682 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
683 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
684 " }\n"
685 " endpwent();\n"
686 " exit(EXIT_SUCCESS);\n"
687 "}\n"
688 msgstr ""
689 "#define _GNU_SOURCE\n"
690 "#include E<lt>pwd.hE<gt>\n"
691 "#include E<lt>stdint.hE<gt>\n"
692 "#include E<lt>stdio.hE<gt>\n"
693 "#include E<lt>stdlib.hE<gt>\n"
694 "\\&\n"
695 "#define BUFLEN 4096\n"
696 "\\&\n"
697 "int\n"
698 "main(void)\n"
699 "{\n"
700 " struct passwd pw;\n"
701 " struct passwd *pwp;\n"
702 " char buf[BUFLEN];\n"
703 " int i;\n"
704 "\\&\n"
705 " setpwent();\n"
706 " while (1) {\n"
707 " i = getpwent_r(&pw, buf, sizeof(buf), &pwp);\n"
708 " if (i)\n"
709 " break;\n"
710 " printf(\"%s (%jd)\\[rs]tHOME %s\\[rs]tSHELL %s\\[rs]n\", pwp-E<gt>pw_name,\n"
711 " (intmax_t) pwp-E<gt>pw_uid, pwp-E<gt>pw_dir, pwp-E<gt>pw_shell);\n"
712 " }\n"
713 " endpwent();\n"
714 " exit(EXIT_SUCCESS);\n"
715 "}\n"
716
717 #. type: TH
718 #: fedora-44 fedora-rawhide
719 #, no-wrap
720 msgid "2024-12-24"
721 msgstr "24 ديسمبر 2024"
722
723 #. type: TH
724 #: fedora-44 fedora-rawhide
725 #, no-wrap
726 msgid "Linux man-pages 6.13"
727 msgstr "صفحات دليل لينكس 6.13"
728
729 #. type: Plain text
730 #: fedora-44 fedora-rawhide
731 #, no-wrap
732 msgid ""
733 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
734 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
735 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
736 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
737 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
738 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
739 msgstr ""
740 "B<int getpwent_r(struct passwd *restrict >I<pwbuf>B<,>\n"
741 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
742 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
743 "B<int fgetpwent_r(FILE *restrict >I<stream>B<, struct passwd *restrict >I<pwbuf>B<,>\n"
744 "B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
745 "B< struct passwd **restrict >I<pwbufp>B<);>\n"
746
747 #. type: Plain text
748 #: fedora-44 fedora-rawhide
749 msgid ""
750 "The nonreentrant functions return a pointer to static storage, where this "
751 "static storage contains further pointers to user name, password, gecos "
752 "field, home directory and shell. The reentrant functions described here "
753 "return all of that in caller-provided buffers. First of all there is the "
754 "buffer I<pwbuf> that can hold a I<struct passwd>. And next the buffer "
755 "I<buf> of size I<size> that can hold additional strings. The result of "
756 "these functions, the I<struct passwd> read from the stream, is stored in the "
757 "provided buffer I<*pwbuf>, and a pointer to this I<struct passwd> is "
758 "returned in I<*pwbufp>."
759 msgstr ""
760 "تُرجع الدوال غير القابلة لإعادة الدخول مؤشرًا إلى تخزين ثابت، حيث يحتوي هذا "
761 "التخزين الثابت على مؤشرات إضافية إلى اسم المستخدم، كلمة السر، حقل gecos، "
762 "الدليل الرئيسي، والصدفة. تُرجع الدوال القابلة لإعادة الدخول الموصوفة هنا كل "
763 "ذلك في مخازن مقدمة من المستدعي. أولاً هناك المخزن I<pwbuf> الذي يمكنه حمل "
764 "I<struct passwd>. ثم المخزن I<buf> بحجم I<size> الذي يمكنه حمل سلاسل محارف "
765 "إضافية. تُخزَّن نتيجة هذه الدوال، I<struct passwd> المقروء من الدفق، في المخزن "
766 "المقدم I<*pwbuf>، ويُعاد مؤشر إلى هذا I<struct passwd> في I<*pwbufp>."
767
768 #. type: TH
769 #: mageia-cauldron
770 #, no-wrap
771 msgid "2026-02-08"
772 msgstr "8 فبراير 2026"
773
774 #. type: TH
775 #: mageia-cauldron
776 #, no-wrap
777 msgid "Linux man-pages 6.17"
778 msgstr "صفحات دليل لينكس 6.17"
779
780 #. type: TH
781 #: opensuse-leap-16-1 opensuse-tumbleweed
782 #, no-wrap
783 msgid "Linux man-pages (unreleased)"
784 msgstr "صفحات دليل لينكس (لم تصدر بعد)"