Debian Codegraph @

po/ar/man3/getcwd.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 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-06-01 18:24+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 "getcwd"
25 msgstr "getcwd"
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 "getcwd, getwd, get_current_dir_name - get current working directory"
51 msgstr "getcwd, getwd, get_current_dir_name - الحصول على دليل العمل الحالي"
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 ""
85 "B<char *getcwd(>size_t size;\n"
86 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
87 "B<char *get_current_dir_name(void);>\n"
88 msgstr ""
89 "B<char *getcwd(>size_t size;\n"
90 "B< char >I<buf>B<[>I<size>B<], size_t >I<size>B<);>\n"
91 "B<char *get_current_dir_name(void);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "B<[[deprecated]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
98 msgstr "B<[[مهمل]] char *getwd(char >I<buf>B<[PATH_MAX]);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
105 msgstr ""
106 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid "B<get_current_dir_name>():"
112 msgstr "B<get_current_dir_name>():"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid " _GNU_SOURCE\n"
119 msgstr " _GNU_SOURCE\n"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid "B<getwd>():"
125 msgstr "B<getwd>():"
126
127 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid ""
133 " Since glibc 2.12:\n"
134 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
135 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
136 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
137 " Before glibc 2.12:\n"
138 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n"
139 msgstr ""
140 " منذ glibc 2.12:\n"
141 " (_XOPEN_SOURCE E<gt>= 500) && ! (_POSIX_C_SOURCE E<gt>= 200809L)\n"
142 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
143 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
144 " قبل glibc 2.12:\n"
145 " _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\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 "These functions return a null-terminated string containing an absolute "
159 "pathname that is the current working directory of the calling process. The "
160 "pathname is returned as the function result and via the argument I<buf>, if "
161 "present."
162 msgstr ""
163 "ترجع هذه الدوال سلسلة محارف منتهية بقيمة خالية تحتوي على اسم مسار مطلق هو "
164 "دليل العمل الحالي للعملية المستدعية. يُرجع اسم المسار كنتيجة للدالة وعبر "
165 "المعامل I<buf>، إن وُجد."
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The B<getcwd>() function copies an absolute pathname of the current working "
172 "directory to the array pointed to by I<buf>, which is of length I<size>."
173 msgstr ""
174 "تنسخ الدالة B<getcwd>() اسم مسار مطلق لدليل العمل الحالي إلى المصفوفة المشار "
175 "إليها بواسطة I<buf>، والتي طولها I<size>."
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 "If the length of the absolute pathname of the current working directory, "
182 "including the terminating null byte, exceeds I<size> bytes, NULL is "
183 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
184 "this error, and allocate a larger buffer if necessary."
185 msgstr ""
186 "إذا تجاوز طول اسم المسار المطلق لدليل العمل الحالي، بما في ذلك البايت "
187 "الختامي الخالي، I<size> بايت، يُرجع NULL، ويُضبط I<errno> على B<ERANGE>؛ يجب "
188 "على التطبيق التحقق من هذا الخطأ، وتخصيص مخزن مؤقت أكبر إذا لزم الأمر."
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "As an extension to the POSIX.1-2001 standard, glibc's B<getcwd>() allocates "
195 "the buffer dynamically using B<malloc>(3) if I<buf> is NULL. In this case, "
196 "the allocated buffer has the length I<size> unless I<size> is zero, when "
197 "I<buf> is allocated as big as necessary. The caller should B<free>(3) the "
198 "returned buffer."
199 msgstr ""
200 "كإضافة لمعيار POSIX.1-2001، تخصص دالة B<getcwd>() الخاصة بـ glibc المخزن "
201 "المؤقت ديناميكيًا باستخدام B<malloc>(3) إذا كان I<buf> NULL. في هذه الحالة، "
202 "يكون للمخزن المؤقت المخصص الطول I<size> ما لم يكن I<size> صفرًا، حيث يُخصص "
203 "I<buf> بالحجم اللازم. يجب على المستدعي تحرير المخزن المؤقت المُعاد باستخدام "
204 "B<free>(3)."
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 "B<get_current_dir_name>() will B<malloc>(3) an array big enough to hold "
211 "the absolute pathname of the current working directory. If the environment "
212 "variable B<PWD> is set, and its value is correct, then that value will be "
213 "returned. The caller should B<free>(3) the returned buffer."
214 msgstr ""
215 "ستخصص B<get_current_dir_name>() باستخدام B<malloc>(3) مصفوفة كبيرة بما يكفي "
216 "لاحتواء اسم المسار المطلق لدليل العمل الحالي. إذا كان المتغير البيئي B<PWD> "
217 "مضبوطًا، وقيمته صحيحة، فستُعاد تلك القيمة. يجب على المستدعي تحرير المخزن "
218 "المؤقت المُعاد باستخدام B<free>(3)."
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "B<getwd>() does not B<malloc>(3) any memory. The I<buf> argument should "
225 "be a pointer to an array at least B<PATH_MAX> bytes long. If the length of "
226 "the absolute pathname of the current working directory, including the "
227 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
228 "I<errno> is set to B<ENAMETOOLONG>. (Note that on some systems, B<PATH_MAX> "
229 "may not be a compile-time constant; furthermore, its value may depend on the "
230 "filesystem, see B<pathconf>(3).) For portability and security reasons, use "
231 "of B<getwd>() is deprecated."
232 msgstr ""
233 "لا تخصص B<getwd>() أي ذاكرة باستخدام B<malloc>(3). يجب أن يكون المعامل "
234 "I<buf> مؤشرًا إلى مصفوفة طولها B<PATH_MAX> بايت على الأقل. إذا تجاوز طول اسم "
235 "المسار المطلق لدليل العمل الحالي، بما في ذلك البايت الختامي الخالي، "
236 "B<PATH_MAX> بايت، يُرجع NULL، ويُضبط I<errno> على B<ENAMETOOLONG>. (لاحظ أنه "
237 "في بعض الأنظمة، قد لا يكون B<PATH_MAX> ثابتًا في وقت الترجمة؛ علاوة على ذلك، "
238 "قد تعتمد قيمته على نظام الملفات، انظر B<pathconf>(3).) لأسباب تتعلق بقابلية "
239 "النقل والأمان، يُهمل استخدام B<getwd>()."
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 "RETURN VALUE"
246 msgstr "قيمة الإرجاع"
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "On success, these functions return a pointer to a string containing the "
253 "pathname of the current working directory. In the case of B<getcwd>() and "
254 "B<getwd>() this is the same value as I<buf>."
255 msgstr ""
256 "عند النجاح، ترجع هذه الدوال مؤشرًا إلى سلسلة محارف تحتوي على اسم مسار دليل "
257 "العمل الحالي. في حالة B<getcwd>() و B<getwd>()، هذه هي نفس قيمة I<buf>."
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 "On failure, these functions return NULL, and I<errno> is set to indicate the "
264 "error. The contents of the array pointed to by I<buf> are undefined on "
265 "error."
266 msgstr ""
267 "عند الفشل، ترجع هذه الدوال NULL، ويُضبط I<errno> للإشارة إلى الخطأ. محتويات "
268 "المصفوفة المشار إليها بواسطة I<buf> غير محددة عند الخطأ."
269
270 #. type: SH
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "ERRORS"
275 msgstr "الأخطاء"
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<EACCES>"
282 msgstr "B<EACCES>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "Permission to read or search a component of the filename was denied."
288 msgstr "رُفض الإذن لقراءة أو البحث في مكون من اسم الملف."
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<EFAULT>"
295 msgstr "B<EFAULT>"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "I<buf> points to a bad address."
301 msgstr "يشير I<buf> إلى عنوان سيئ."
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<EINVAL>"
308 msgstr "B<EINVAL>"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "The I<size> argument is zero and I<buf> is not a null pointer."
314 msgstr "المعامل I<size> هو صفر و I<buf> ليس مؤشرًا خاليًا."
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid "B<getwd>(): I<buf> is NULL."
320 msgstr "B<getwd>(): I<buf> هو NULL."
321
322 #. type: TP
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "B<ENAMETOOLONG>"
327 msgstr "B<ENAMETOOLONG>"
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
334 "B<PATH_MAX> bytes."
335 msgstr ""
336 "B<getwd>(): حجم سلسلة محارف اسم المسار المطلق المنتهية بقيمة خالية يتجاوز "
337 "B<PATH_MAX> بايت."
338
339 #. type: TP
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "B<ENOENT>"
344 msgstr "B<ENOENT>"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "The current working directory has been unlinked."
350 msgstr "فُصل دليل العمل الحالي."
351
352 #. type: TP
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "B<ENOMEM>"
357 msgstr "B<ENOMEM>"
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 "Out of memory."
363 msgstr "نفدت الذاكرة."
364
365 #. type: TP
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "B<ERANGE>"
370 msgstr "B<ERANGE>"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "The I<size> argument is less than the length of the absolute pathname of the "
377 "working directory, including the terminating null byte. You need to "
378 "allocate a bigger array and try again."
379 msgstr ""
380 "المعامل I<size> أقل من طول اسم المسار المطلق لدليل العمل، بما في ذلك البايت "
381 "الختامي الخالي. تحتاج إلى تخصيص مصفوفة أكبر والمحاولة مرة أخرى."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "ATTRIBUTES"
388 msgstr "السمات"
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 ""
394 "For an explanation of the terms used in this section, see B<attributes>(7)."
395 msgstr ""
396 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "Interface"
403 msgstr "الواجهة"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "Attribute"
410 msgstr "السمة"
411
412 #. type: tbl table
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "Value"
417 msgstr "القيمة"
418
419 #. type: tbl table
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid ".na\n"
424 msgstr ".na\n"
425
426 #. type: tbl table
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid ".nh\n"
431 msgstr ".nh\n"
432
433 #. type: tbl table
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid ""
438 "B<getcwd>(),\n"
439 "B<getwd>()"
440 msgstr ""
441 "B<getcwd>(),\n"
442 "B<getwd>()"
443
444 #. type: tbl table
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Thread safety"
449 msgstr "سلامة الخيوط"
450
451 #. type: tbl table
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "MT-Safe"
456 msgstr "MT-Safe"
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<get_current_dir_name>()"
463 msgstr "B<get_current_dir_name>()"
464
465 #. type: tbl table
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "MT-Safe env"
470 msgstr "بيئة آمنة لتعدد الخيوط (MT-Safe)"
471
472 #. type: SH
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "VERSIONS"
477 msgstr "الإصدارات"
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid ""
483 "POSIX.1-2001 leaves the behavior of B<getcwd>() unspecified if I<buf> is "
484 "NULL."
485 msgstr "يترك POSIX.1-2001 سلوك B<getcwd>() غير محدد إذا كان I<buf> هو NULL."
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid "POSIX.1-2001 does not define any errors for B<getwd>()."
491 msgstr "لا يُعرّف POSIX.1-2001 أي أخطاء لـ B<getwd>()."
492
493 #. type: SS
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "C library/kernel differences"
498 msgstr "الاختلافات بين مكتبة C والنواة"
499
500 #. commit 3272c544da48f8915a0e34189182aed029bd0f2b
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "On Linux, the kernel provides a B<getcwd>() system call, which the "
506 "functions described in this page will use if possible. The system call "
507 "takes the same arguments as the library function of the same name, but is "
508 "limited to returning at most B<PATH_MAX> bytes. (Before Linux 3.12, the "
509 "limit on the size of the returned pathname was the system page size. On "
510 "many architectures, B<PATH_MAX> and the system page size are both 4096 "
511 "bytes, but a few architectures have a larger page size.) If the length of "
512 "the pathname of the current working directory exceeds this limit, then the "
513 "system call fails with the error B<ENAMETOOLONG>. In this case, the library "
514 "functions fall back to a (slower) alternative implementation that returns "
515 "the full pathname."
516 msgstr ""
517 "في لينكس، يوفر النواة استدعاء نظام B<getcwd>() والذي ستستخدمه الدوال "
518 "الموصوفة في هذه الصفحة إن أمكن. يأخذ استدعاء النظام نفس الوسائط مثل دالة "
519 "المكتبة التي تحمل نفس الاسم، ولكنه مقيد بإرجاع بحد أقصى B<PATH_MAX> بايت. "
520 "(قبل لينكس 3.12، كان الحد الأقصى لحجم اسم المسار المُعاد هو حجم صفحة النظام. "
521 "في العديد من البنى، يكون كل من B<PATH_MAX> وحجم صفحة النظام 4096 بايت، ولكن "
522 "بعض البنى لها حجم صفحة أكبر.) إذا تجاوز طول اسم مسار دليل العمل الحالي هذا "
523 "الحد، فإن استدعاء النظام يفشل مع الخطأ B<ENAMETOOLONG>. في هذه الحالة، تعود "
524 "دوال المكتبة إلى تنفيذ بديل (أبطأ) يُرجع اسم المسار الكامل."
525
526 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
527 #. type: Plain text
528 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
529 #: opensuse-leap-16-1 opensuse-tumbleweed
530 msgid ""
531 "Following a change in Linux 2.6.36, the pathname returned by the "
532 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
533 "if the current directory is not below the root directory of the current "
534 "process (e.g., because the process set a new filesystem root using "
535 "B<chroot>(2) without changing its current directory into the new root). "
536 "Such behavior can also be caused by an unprivileged user by changing the "
537 "current directory into another mount namespace. When dealing with pathnames "
538 "from untrusted sources, callers of the functions described in this page "
539 "(before glibc 2.27) or the raw B<getcwd>() system call should consider "
540 "checking whether the returned pathname starts with '/' or '(' to avoid "
541 "misinterpreting an unreachable path as a relative pathname."
542 msgstr ""
543 "بعد تغيير في لينكس 2.6.36، ستُسبق اسم المسار المُعاد من استدعاء النظام "
544 "B<getcwd>() بالسلسلة \"(unreachable)\" إذا لم يكن الدليل الحالي أسفل الدليل "
545 "الجذر للعملية الحالية (على سبيل المثال، لأن العملية عيّنت جذر نظام ملفات جديد "
546 "باستخدام B<chroot>(2) دون تغيير دليلها الحالي إلى الجذر الجديد). يمكن أيضًا "
547 "أن يحدث هذا السلوك بواسطة مستخدم غير مميز عن طريق تغيير الدليل الحالي إلى "
548 "مساحة وصل أخرى. عند التعامل مع أسماء المسارات من مصادر غير موثوقة، يجب على "
549 "مستدعي الدوال الموصوفة في هذه الصفحة (قبل glibc 2.27) أو استدعاء النظام "
550 "الخام B<getcwd>() النظر في التحقق مما إذا كان اسم المسار المُعاد يبدأ بـ '/' "
551 "أو '(' لتجنب تفسير مسار غير قابل للوصول بشكل خاطئ كاسم مسار نسبي."
552
553 #. type: SH
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "STANDARDS"
558 msgstr "المعايير"
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<getcwd>()"
565 msgstr "B<getcwd>()"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid "POSIX.1-2008."
571 msgstr "POSIX.1-2008."
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid "GNU."
577 msgstr "GNU."
578
579 #. type: TP
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "B<getwd>()"
584 msgstr "B<getwd>()"
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 msgid "None."
590 msgstr "لا شيء."
591
592 #. type: SH
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "HISTORY"
597 msgstr "التاريخ"
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid "POSIX.1-2001."
603 msgstr "POSIX.1-2001."
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "POSIX.1-2001, but marked LEGACY. Removed in POSIX.1-2008. Use B<getcwd>() "
610 "instead."
611 msgstr ""
612 "POSIX.1-2001، ولكن مُوسوم بـ LEGACY. أُزيل في POSIX.1-2008. استخدم "
613 "B<getcwd>() بدلاً من ذلك."
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid ""
619 "Under Linux, these functions make use of the B<getcwd>() system call "
620 "(available since Linux 2.1.92). On older systems they would query I</proc/"
621 "self/cwd>. If both system call and proc filesystem are missing, a generic "
622 "implementation is called. Only in that case can these calls fail under "
623 "Linux with B<EACCES>."
624 msgstr ""
625 "تحت لينكس، تستخدم هذه الدوال استدعاء النظام B<getcwd>() (المتوفر منذ لينكس "
626 "2.1.92). في الأنظمة الأقدم، كانت تستعلم عن I</proc/self/cwd>. إذا كان كل من "
627 "استدعاء النظام ونظام ملفات proc مفقودين، يُستدعى تنفيذ عام. فقط في هذه الحالة "
628 "يمكن أن تفشل هذه الاستدعاءات تحت لينكس مع B<EACCES>."
629
630 #. type: SH
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "NOTES"
635 msgstr "ملاحظات"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "These functions are often used to save the location of the current working "
642 "directory for the purpose of returning to it later. Opening the current "
643 "directory (\".\") and calling B<fchdir>(2) to return is usually a faster "
644 "and more reliable alternative when sufficiently many file descriptors are "
645 "available, especially on platforms other than Linux."
646 msgstr ""
647 "غالبًا ما تُستخدم هذه الدوال لحفظ موقع دليل العمل الحالي بهدف العودة إليه "
648 "لاحقًا. فتح الدليل الحالي (\".\") واستدعاء B<fchdir>(2) للعودة هو عادةً بديل "
649 "أسرع وأكثر موثوقية عندما تتوفر واصفات ملفات كافية، خاصة على المنصات غير "
650 "لينكس."
651
652 #. type: SH
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 #, no-wrap
656 msgid "BUGS"
657 msgstr "العلل"
658
659 #. type: Plain text
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 msgid ""
663 "Since the Linux 2.6.36 change that added \"(unreachable)\" in the "
664 "circumstances described above, the glibc implementation of B<getcwd>() has "
665 "failed to conform to POSIX and returned a relative pathname when the API "
666 "contract requires an absolute pathname. With glibc 2.27 onwards this is "
667 "corrected; calling B<getcwd>() from such a pathname will now result in "
668 "failure with B<ENOENT>."
669 msgstr ""
670 "منذ تغيير لينكس 2.6.36 الذي أضاف \"(unreachable)\" في الظروف الموصوفة أعلاه، "
671 "فشل تنفيذ glibc لـ B<getcwd>() في الامتثال لـ POSIX وأعاد اسم مسار نسبي "
672 "عندما يتطلب عقد API اسم مسار مطلق. مع glibc 2.27 فصاعدًا، تم تصحيح هذا؛ "
673 "استدعاء B<getcwd>() من اسم المسار هذا سيؤدي الآن إلى الفشل مع B<ENOENT>."
674
675 #. type: SH
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, no-wrap
679 msgid "SEE ALSO"
680 msgstr "انظر أيضًا"
681
682 #. type: Plain text
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 msgid ""
686 "B<pwd>(1), B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
687 "B<malloc>(3)"
688 msgstr ""
689 "B<pwd>(1)، B<chdir>(2)، B<fchdir>(2)، B<open>(2)، B<unlink>(2)، B<free>(3)، "
690 "B<malloc>(3)"
691
692 #. type: TH
693 #: debian-trixie
694 #, no-wrap
695 msgid "2024-05-02"
696 msgstr "2 مايو 2024"
697
698 #. type: TH
699 #: debian-trixie
700 #, no-wrap
701 msgid "Linux man-pages 6.9.1"
702 msgstr "صفحات دليل لينكس 6.9.1"
703
704 #. type: Plain text
705 #: debian-trixie
706 msgid "Standard C library (I<libc>, I<-lc>)"
707 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
708
709 #. type: Plain text
710 #: debian-trixie fedora-44 fedora-rawhide
711 #, no-wrap
712 msgid ""
713 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
714 "B<char *get_current_dir_name(void);>\n"
715 msgstr ""
716 "B<char *getcwd(char >I<buf>B<[.>I<size>B<], size_t >I<size>B<);>\n"
717 "B<char *get_current_dir_name(void);>\n"
718
719 #. commit 8df9d1a4142311c084ffeeacb67cd34d190eff74
720 #. type: Plain text
721 #: debian-trixie
722 msgid ""
723 "Following a change in Linux 2.6.36, the pathname returned by the "
724 "B<getcwd>() system call will be prefixed with the string \"(unreachable)\" "
725 "if the current directory is not below the root directory of the current "
726 "process (e.g., because the process set a new filesystem root using "
727 "B<chroot>(2) without changing its current directory into the new root). "
728 "Such behavior can also be caused by an unprivileged user by changing the "
729 "current directory into another mount namespace. When dealing with pathname "
730 "from untrusted sources, callers of the functions described in this page "
731 "should consider checking whether the returned pathname starts with '/' or "
732 "'(' to avoid misinterpreting an unreachable path as a relative pathname."
733 msgstr ""
734 "بعد تغيير في لينكس 2.6.36، ستُسبق اسم المسار المُعاد من استدعاء النظام "
735 "B<getcwd>() بالسلسلة \"(unreachable)\" إذا لم يكن الدليل الحالي أسفل الدليل "
736 "الجذر للعملية الحالية (على سبيل المثال، لأن العملية عيّنت جذر نظام ملفات جديد "
737 "باستخدام B<chroot>(2) دون تغيير دليلها الحالي إلى الجذر الجديد). يمكن أيضًا "
738 "أن يحدث هذا السلوك بواسطة مستخدم غير مميز عن طريق تغيير الدليل الحالي إلى "
739 "مساحة وصل أخرى. عند التعامل مع اسم مسار من مصادر غير موثوقة، يجب على مستدعي "
740 "الدوال الموصوفة في هذه الصفحة النظر في التحقق مما إذا كان اسم المسار المُعاد "
741 "يبدأ بـ '/' أو '(' لتجنب تفسير مسار غير قابل للوصول بشكل خاطئ كاسم مسار نسبي."
742
743 #. type: TH
744 #: fedora-44 fedora-rawhide
745 #, no-wrap
746 msgid "2025-02-20"
747 msgstr "20 فبراير 2025"
748
749 #. type: TH
750 #: fedora-44 fedora-rawhide
751 #, no-wrap
752 msgid "Linux man-pages 6.13"
753 msgstr "صفحات دليل لينكس 6.13"
754
755 #. type: TH
756 #: mageia-cauldron
757 #, no-wrap
758 msgid "Linux man-pages 6.17"
759 msgstr "صفحات دليل لينكس 6.17"
760
761 #. type: TH
762 #: opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "Linux man-pages (unreleased)"
765 msgstr "صفحات دليل لينكس (لم تصدر بعد)"