Debian Codegraph @

po/ar/man2/flock.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
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.30.2\n"
9 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
10 "PO-Revision-Date: 2026-06-05 21:36+0400\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\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 "flock"
26 msgstr "flock"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 فبراير 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "صفحات دليل لينكس 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "الاسم"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "flock - apply or remove an advisory lock on an open file"
52 msgstr "flock - تطبيق أو إزالة قفل استشاري على ملف مفتوح"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>sys/file.hE<gt>>\n"
79 msgstr "B<#include E<lt>sys/file.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<int flock(int >I<fd>B<, int >I<op>B<);>\n"
86 msgstr "B<int flock(int >I<fd>B<, int >I<op>B<);>\n"
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "الوصف"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Apply or remove an advisory lock on the open file specified by I<fd>. The "
100 "argument I<op> is one of the following:"
101 msgstr ""
102 "تطبيق أو إزالة قفل استشاري على الملف المفتوح المحدد بواسطة I<fd>. الوسيط "
103 "I<op> هو أحد التالي:"
104
105 #. type: TP
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid "B<LOCK_SH>"
110 msgstr "B<LOCK_SH>"
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 msgid ""
116 "Place a shared lock. More than one process may hold a shared lock for a "
117 "given file at a given time."
118 msgstr ""
119 "وضع قفل مشترك. يمكن لأكثر من عملية الاحتفاظ بقفل مشترك لملف معين في وقت "
120 "معين."
121
122 #. type: TP
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid "B<LOCK_EX>"
127 msgstr "B<LOCK_EX>"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "Place an exclusive lock. Only one process may hold an exclusive lock for a "
134 "given file at a given time."
135 msgstr ""
136 "وضع قفل حصري. يمكن لعملية واحدة فقط الاحتفاظ بقفل حصري لملف معين في وقت "
137 "معين."
138
139 #. type: TP
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "B<LOCK_UN>"
144 msgstr "B<LOCK_UN>"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid "Remove an existing lock held by this process."
150 msgstr "إزالة قفل موجود تحتفظ به هذه العملية."
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 "A call to B<flock>() may block if an incompatible lock is held by another "
157 "process. To make a nonblocking request, include B<LOCK_NB> (by ORing) with "
158 "any of the above operations."
159 msgstr ""
160 "قد يحجب استدعاء B<flock>() إذا كان قفل غير متوافق محتجز من قبل عملية أخرى. "
161 "لتقديم طلب غير محجب، قم بتضمين B<LOCK_NB> (عن طريق OR) مع أي من العمليات "
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 "A single file may not simultaneously have both shared and exclusive locks."
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 "Locks created by B<flock>() are associated with an open file description "
176 "(see B<open>(2)). This means that duplicate file descriptors (created by, "
177 "for example, B<fork>(2) or B<dup>(2)) refer to the same lock, and this "
178 "lock may be modified or released using any of these file descriptors. "
179 "Furthermore, the lock is released either by an explicit B<LOCK_UN> operation "
180 "on any of these duplicate file descriptors, or when all such file "
181 "descriptors have been closed."
182 msgstr ""
183 "ترتبط الأقفال التي أنشأها B<flock>() بوصف ملف مفتوح (انظر B<open>(2)). "
184 "يعني هذا أن واصفات الملفات المكررة (المنشأة، على سبيل المثال، بواسطة "
185 "B<fork>(2) أو B<dup>(2)) تشير إلى نفس القفل، ويمكن تعديل هذا القفل أو "
186 "تحريره باستخدام أي من واصفات الملفات هذه. علاوة على ذلك، يتم تحرير القفل "
187 "إما عن طريق عملية B<LOCK_UN> صريحة على أي من واصفات الملفات المكررة هذه، أو "
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 "If a process uses B<open>(2) (or similar) to obtain more than one file "
195 "descriptor for the same file, these file descriptors are treated "
196 "independently by B<flock>(). An attempt to lock the file using one of these "
197 "file descriptors may be denied by a lock that the calling process has "
198 "already placed via another file descriptor."
199 msgstr ""
200 "إذا استخدمت عملية B<open>(2) (أو ما شابه) للحصول على أكثر من واصف ملف لنفس "
201 "الملف، يتم معالجة واصفات الملفات هذه بشكل مستقل بواسطة B<flock>(). قد يتم "
202 "رفض محاولة قفل الملف باستخدام أحد واصفات الملفات هذه بواسطة قفل وضعته "
203 "العملية المستدعية بالفعل عبر واصف ملف آخر."
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "A process may hold only one type of lock (shared or exclusive) on a file. "
210 "Subsequent B<flock>() calls on an already locked file will convert an "
211 "existing lock to the new lock mode."
212 msgstr ""
213 "يمكن للعملية الاحتفاظ بنوع واحد فقط من القفل (مشترك أو حصري) على ملف. ستقوم "
214 "استدعاءات B<flock>() اللاحقة على ملف مقفل بالفعل بتحويل القفل الموجود إلى "
215 "وضع القفل الجديد."
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid "Locks created by B<flock>() are preserved across an B<execve>(2)."
221 msgstr "يتم الحفاظ على الأقفال التي أنشأها B<flock>() عبر B<execve>(2)."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "A shared or exclusive lock can be placed on a file regardless of the mode in "
228 "which the file was opened."
229 msgstr ""
230 "يمكن وضع قفل مشترك أو حصري على ملف بغض النظر عن الوضع الذي تم فتح الملف به."
231
232 #. type: SH
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "RETURN VALUE"
237 msgstr "قيمة الإرجاع"
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
244 "to indicate the error."
245 msgstr ""
246 "عند النجاح، يُعاد الصفر. وعند حدوث خطأ، يُعاد الرقم -1، ويُضبط I<errno>"
247 " للإشارة "
248 "إلى الخطأ."
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "ERRORS"
255 msgstr "الأخطاء"
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<EBADF>"
262 msgstr "B<EBADF>"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid "I<fd> is not an open file descriptor."
268 msgstr "I<fd> ليس واصف ملف مفتوح."
269
270 #. type: TP
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "B<EINTR>"
275 msgstr "B<EINTR>"
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid ""
281 "While waiting to acquire a lock, the call was interrupted by delivery of a "
282 "signal caught by a handler; see B<signal>(7)."
283 msgstr ""
284 "أثناء انتظار الحصول على القفل، قُطع النداء بسبب وصول إشارة التقطها معالج؛ "
285 "انظر B<signal>(7)."
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<EINVAL>"
292 msgstr "B<EINVAL>"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid "I<op> is invalid."
298 msgstr "I<op> غير صالح."
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<ENOLCK>"
305 msgstr "B<ENOLCK>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid "The kernel ran out of memory for allocating lock records."
311 msgstr "نفدت ذاكرة النواة لتخصيص سجلات القفل."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<EWOULDBLOCK>"
318 msgstr "B<EWOULDBLOCK>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid "The file is locked and the B<LOCK_NB> flag was selected."
324 msgstr "الملف مقفل وتم تحديد العلم B<LOCK_NB>."
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "VERSIONS"
331 msgstr "الإصدارات"
332
333 #. E.g., according to the flock(2) man page, FreeBSD since at least 5.3
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "Since Linux 2.0, B<flock>() is implemented as a system call in its own "
339 "right rather than being emulated in the GNU C library as a call to "
340 "B<fcntl>(2). With this implementation, there is no interaction between the "
341 "types of lock placed by B<flock>() and B<fcntl>(2), and B<flock>() does "
342 "not detect deadlock. (Note, however, that on some systems, such as the "
343 "modern BSDs, B<flock>() and B<fcntl>(2) locks I<do> interact with one "
344 "another.)"
345 msgstr ""
346 "منذ Linux 2.0، تم تنفيذ B<flock>() كاستدعاء نظام بحد ذاته بدلاً من محاكاته "
347 "في مكتبة GNU C كاستدعاء لـ B<fcntl>(2). مع هذا التنفيذ، لا يوجد تفاعل بين "
348 "أنواع القفل التي يضعها B<flock>() و B<fcntl>(2)، ولا يكتشف B<flock>() حالة "
349 "الجمود. (لاحظ، مع ذلك، أنه على بعض الأنظمة، مثل BSDs الحديثة، I<تتفاعل>"
350 " أقفال "
351 "B<flock>() و B<fcntl>(2) مع بعضها البعض.)"
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 "CIFS details"
358 msgstr "تفاصيل CIFS"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "Up to Linux 5.4, B<flock>() is not propagated over SMB. A file with such "
365 "locks will not appear locked for remote clients."
366 msgstr ""
367 "حتى Linux 5.4، لا يتم نشر B<flock>() عبر SMB. لن يظهر ملف بهذه الأقفال "
368 "كمقفل للعملاء البعيدين."
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "Since Linux 5.5, B<flock>() locks are emulated with SMB byte-range locks on "
375 "the entire file. Similarly to NFS, this means that B<fcntl>(2) and "
376 "B<flock>() locks interact with one another. Another important side-effect "
377 "is that the locks are not advisory anymore: any IO on a locked file will "
378 "always fail with B<EACCES> when done from a separate file descriptor. This "
379 "difference originates from the design of locks in the SMB protocol, which "
380 "provides mandatory locking semantics."
381 msgstr ""
382 "منذ Linux 5.5، يتم محاكاة أقفال B<flock>() بأقفال نطاق بايت SMB على الملف "
383 "بأكمله. على غرار NFS، يعني هذا أن أقفال B<fcntl>(2) و B<flock>() تتفاعل "
384 "مع بعضها البعض. تأثير جانبي مهم آخر هو أن الأقفال لم تعد استشارية: أي إدخال/"
385 "إخراج على ملف مقفل سيفشل دائمًا مع B<EACCES> عند القيام به من واصف ملف "
386 "منفصل. ينشأ هذا الاختلاف من تصميم الأقفال في بروتوكول SMB، الذي يوفر دلالات "
387 "قفل إلزامية."
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "Remote and mandatory locking semantics may vary with SMB protocol, mount "
394 "options and server type. See B<mount.cifs>(8) for additional information."
395 msgstr ""
396 "قد تختلف دلالات القفل عن بعد والإلزامي مع بروتوكول SMB وخيارات الوصل ونوع "
397 "الخادم. انظر B<mount.cifs>(8) للحصول على معلومات إضافية."
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "STANDARDS"
404 msgstr "المعايير"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid "BSD."
410 msgstr "BSD."
411
412 #. type: SH
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "HISTORY"
417 msgstr "التاريخ"
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 "4.4BSD (the B<flock>() call first appeared in 4.2BSD). A version of "
424 "B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most "
425 "UNIX systems."
426 msgstr ""
427 "4.4BSD (ظهر استدعاء B<flock>() لأول مرة في 4.2BSD). تظهر نسخة من "
428 "B<flock>()، ربما تم تنفيذها بدلالة B<fcntl>(2)، على معظم أنظمة UNIX."
429
430 #. type: SS
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid "NFS details"
435 msgstr "تفاصيل NFS"
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid ""
441 "Up to Linux 2.6.11, B<flock>() does not lock files over NFS (i.e., the "
442 "scope of locks was limited to the local system). Instead, one could use "
443 "B<fcntl>(2) byte-range locking, which does work over NFS, given a "
444 "sufficiently recent version of Linux and a server which supports locking."
445 msgstr ""
446 "حتى Linux 2.6.11، لا يقوم B<flock>() بقفل الملفات عبر NFS (أي أن نطاق "
447 "الأقفال كان محدودًا بالنظام المحلي). بدلاً من ذلك، يمكن استخدام قفل نطاق "
448 "البايت B<fcntl>(2)، الذي يعمل عبر NFS، بشرط وجود إصدار حديث بما فيه الكفاية "
449 "من Linux وخادم يدعم القفل."
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "Since Linux 2.6.12, NFS clients support B<flock>() locks by emulating them "
456 "as B<fcntl>(2) byte-range locks on the entire file. This means that "
457 "B<fcntl>(2) and B<flock>() locks I<do> interact with one another over "
458 "NFS. It also means that in order to place an exclusive lock, the file must "
459 "be opened for writing."
460 msgstr ""
461 "منذ Linux 2.6.12، تدعم عملاء NFS أقفال B<flock>() عن طريق محاكاتها كأقفال "
462 "نطاق بايت B<fcntl>(2) على الملف بأكمله. يعني هذا أن أقفال B<fcntl>(2) و "
463 "B<flock>() I<تتفاعل> مع بعضها البعض عبر NFS. يعني أيضًا أنه لوضع قفل حصري،"
464 " يجب "
465 "فتح الملف للكتابة."
466
467 #. commit 5eebde23223aeb0ad2d9e3be6590ff8bbfab0fc2
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "Since Linux 2.6.37, the kernel supports a compatibility mode that allows "
473 "B<flock>() locks (and also B<fcntl>(2) byte region locks) to be treated as "
474 "local; see the discussion of the I<local_lock> option in B<nfs>(5)."
475 msgstr ""
476 "منذ Linux 2.6.37، تدعم النواة وضع توافق يسمح بمعالجة أقفال B<flock>() "
477 "(وكذلك أقفال منطقة البايت B<fcntl>(2)) كمحلية؛ انظر مناقشة خيار "
478 "I<local_lock> في B<nfs>(5)."
479
480 #. type: SH
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "NOTES"
485 msgstr "ملاحظات"
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 ""
491 "B<flock>() places advisory locks only; given suitable permissions on a "
492 "file, a process is free to ignore the use of B<flock>() and perform I/O on "
493 "the file."
494 msgstr ""
495 "يضع B<flock>() أقفال استشارية فقط؛ مع وجود أذونات مناسبة على ملف، تكون "
496 "العملية حرة في تجاهل استخدام B<flock>() وتنفيذ الإدخال/الإخراج على الملف."
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "B<flock>() and B<fcntl>(2) locks have different semantics with respect to "
503 "forked processes and B<dup>(2). On systems that implement B<flock>() using "
504 "B<fcntl>(2), the semantics of B<flock>() will be different from those "
505 "described in this manual page."
506 msgstr ""
507 "أقفال B<flock>() و B<fcntl>(2) لها دلالات مختلفة فيما يتعلق بالعمليات "
508 "المتفرعة و B<dup>(2). على الأنظمة التي تنفذ B<flock>() باستخدام "
509 "B<fcntl>(2)، ستكون دلالات B<flock>() مختلفة عن تلك الموصوفة في صفحة الدليل "
510 "هذه."
511
512 #. Kernel 2.5.21 changed things a little: during lock conversion
513 #. it is now the highest priority process that will get the lock -- mtk
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "Converting a lock (shared to exclusive, or vice versa) is not guaranteed to "
519 "be atomic: the existing lock is first removed, and then a new lock is "
520 "established. Between these two steps, a pending lock request by another "
521 "process may be granted, with the result that the conversion either blocks, "
522 "or fails if B<LOCK_NB> was specified. (This is the original BSD behavior, "
523 "and occurs on many other implementations.)"
524 msgstr ""
525 "تحويل القفل (من مشترك إلى حصري، أو العكس) ليس مضمونًا أن يكون ذريًا: يُزال "
526 "القفل الموجود أولاً، ثم يُنشأ قفل جديد. بين هاتين الخطوتين، قد يُمنح طلب قفل "
527 "معلق من عملية أخرى، مما يؤدي إلى أن التحويل إما أن يُحجب أو يفشل إذا تم تحديد "
528 "B<LOCK_NB>. (هذا هو سلوك BSD الأصلي، ويحدث في العديد من التطبيقات الأخرى.)"
529
530 #. type: Plain text
531 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
532 #: opensuse-tumbleweed
533 msgid ""
534 "Release of a lock when a file descriptor is closed is not sequenced after "
535 "all observable effects of B<close>(2). For example, if one process writes a "
536 "file while holding an exclusive lock, then closes that file, and another "
537 "process blocks placing a shared lock on that file to wait until it is "
538 "closed, it may observe that a subsequent B<execve>(2) of that file fails "
539 "with B<ETXTBSY>, and B<umount>(2) of its underlying filesystem fails with "
540 "B<EBUSY>, as if the file were still open in the first process."
541 msgstr ""
542 "تحرير القفل عند إغلاق واصف ملف ليس متسلسلاً بعد جميع التأثيرات الملحوظة لـ "
543 "B<close>(2). على سبيل المثال، إذا كتبت عملية ملفًا أثناء حملها لقفل حصري، ثم "
544 "أغلقت ذلك الملف، وحجبت عملية أخرى وضع قفل مشترك على ذلك الملف لانتظار "
545 "إغلاقه، فقد تلاحظ أن B<execve>(2) لاحقًا لذلك الملف يفشل مع B<ETXTBSY>، وأن "
546 "B<umount>(2) لنظام الملفات الأساسي الخاص به يفشل مع B<EBUSY>، كما لو كان "
547 "الملف لا يزال مفتوحًا في العملية الأولى."
548
549 #. type: SH
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid "SEE ALSO"
554 msgstr "انظر أيضًا"
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid ""
560 "B<flock>(1), B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), "
561 "B<open>(2), B<lockf>(3), B<lslocks>(8)"
562 msgstr ""
563 "B<flock>(1)، B<close>(2)، B<dup>(2)، B<execve>(2)، B<fcntl>(2)، B<fork>(2)، "
564 "B<open>(2)، B<lockf>(3)، B<lslocks>(8)"
565
566 #. type: Plain text
567 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
568 #: opensuse-tumbleweed
569 msgid "I<Documentation/filesystems/locks.rst> in the Linux kernel source tree"
570 msgstr "I<Documentation/filesystems/locks.rst> في شجرة مصدر نواة لينكس"
571
572 #. type: TH
573 #: debian-trixie
574 #, no-wrap
575 msgid "2024-05-02"
576 msgstr "2 مايو 2024"
577
578 #. type: TH
579 #: debian-trixie
580 #, no-wrap
581 msgid "Linux man-pages 6.9.1"
582 msgstr "صفحات دليل لينكس 6.9.1"
583
584 #. type: Plain text
585 #: debian-trixie
586 msgid "Standard C library (I<libc>, I<-lc>)"
587 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
588
589 #. type: Plain text
590 #: debian-trixie fedora-44 fedora-rawhide
591 msgid ""
592 "I<Documentation/filesystems/locks.txt> in the Linux kernel source tree "
593 "(I<Documentation/locks.txt> in older kernels)"
594 msgstr ""
595 "I<Documentation/filesystems/locks.txt> في شجرة مصدر نواة لينكس "
596 "(I<Documentation/locks.txt> في النوى الأقدم)"
597
598 #. type: TH
599 #: fedora-44 fedora-rawhide
600 #, no-wrap
601 msgid "2024-07-23"
602 msgstr "23 يوليو 2024"
603
604 #. type: TH
605 #: fedora-44 fedora-rawhide
606 #, no-wrap
607 msgid "Linux man-pages 6.13"
608 msgstr "صفحات دليل لينكس 6.13"
609
610 #. type: TH
611 #: mageia-cauldron
612 #, no-wrap
613 msgid "Linux man-pages 6.17"
614 msgstr "صفحات دليل لينكس 6.17"
615
616 #. type: TH
617 #: opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "Linux man-pages (unreleased)"
620 msgstr "صفحات دليل لينكس (لم تصدر بعد)"
621
622