Debian Codegraph @

po/ar/man2/semop.2.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
9 "PO-Revision-Date: 2026-05-18 18:00+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 "semop"
25 msgstr "semop"
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 "semop, semtimedop - System V semaphore operations"
51 msgstr "semop, semtimedop - عمليات الإشارات (semaphore) لنظام V"
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>sys/sem.hE<gt>>\n"
78 msgstr "B<#include E<lt>sys/sem.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 semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
86 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
87 "B< const struct timespec *_Nullable >I<timeout>B<);>\n"
88 msgstr ""
89 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
90 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
91 "B< const struct timespec *_Nullable >I<timeout>B<);>\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 msgid ""
97 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
98 msgstr ""
99 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid "B<semtimedop>():"
105 msgstr "B<semtimedop>():"
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid " _GNU_SOURCE\n"
112 msgstr " _GNU_SOURCE\n"
113
114 #. type: SH
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "DESCRIPTION"
119 msgstr "الوصف"
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 ""
125 "Each semaphore in a System\\ V semaphore set has the following associated "
126 "values:"
127 msgstr "كل إشارة في مجموعة إشارات System\\ V لها القيم المرتبطة التالية:"
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 #, no-wrap
133 msgid ""
134 "unsigned short semval; /* semaphore value */\n"
135 "unsigned short semzcnt; /* # waiting for zero */\n"
136 "unsigned short semncnt; /* # waiting for increase */\n"
137 "pid_t sempid; /* PID of process that last\n"
138 " modified the semaphore value */\n"
139 msgstr ""
140 "unsigned short semval; /* semaphore value */\n"
141 "unsigned short semzcnt; /* # waiting for zero */\n"
142 "unsigned short semncnt; /* # waiting for increase */\n"
143 "pid_t sempid; /* PID of process that last\n"
144 " modified the semaphore value */\n"
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 ""
150 "B<semop>() performs operations on selected semaphores in the set indicated "
151 "by I<semid>. Each of the I<nsops> elements in the array pointed to by "
152 "I<sops> is a structure that specifies an operation to be performed on a "
153 "single semaphore. The elements of this structure are of type I<struct "
154 "sembuf>, containing the following members:"
155 msgstr ""
156 "B<semop>() ينفذ عمليات على إشارات محددة في المجموعة المشار إليها بواسطة "
157 "I<semid>. كل عنصر من عناصر I<nsops> في المصفوفة المشار إليها بواسطة I<sops> "
158 "هو بنية تحدد عملية سيتم تنفيذها على إشارة واحدة. عناصر هذه البنية من النوع "
159 "I<struct sembuf>، وتحتوي على الأعضاء التالية:"
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid ""
166 "unsigned short sem_num; /* semaphore number */\n"
167 "short sem_op; /* semaphore operation */\n"
168 "short sem_flg; /* operation flags */\n"
169 msgstr ""
170 "unsigned short sem_num; /* semaphore number */\n"
171 "short sem_op; /* semaphore operation */\n"
172 "short sem_flg; /* operation flags */\n"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
179 "operation specifies B<SEM_UNDO>, it will be automatically undone when the "
180 "process terminates."
181 msgstr ""
182 "الأعلام المعترف بها في I<sem_flg> هي B<IPC_NOWAIT> و B<SEM_UNDO>. إذا حددت "
183 "عملية B<SEM_UNDO>، فسيتم التراجع عنها آليًا عند إنهاء العملية."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "The set of operations contained in I<sops> is performed in I<array order>, "
190 "and I<atomically>, that is, the operations are performed either as a "
191 "complete unit, or not at all. The behavior of the system call if not all "
192 "operations can be performed immediately depends on the presence of the "
193 "B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted below."
194 msgstr ""
195 "مجموعة العمليات الموجودة في I<sops> تُنفذ بترتيب I<المصفوفة>، وI<بشكل ذري>، "
196 "أي أن العمليات تُنفذ إما كوحدة كاملة، أو لا تُنفذ على الإطلاق. يعتمد سلوك "
197 "استدعاء النظام إذا لم يمكن تنفيذ جميع العمليات فورًا على وجود علم "
198 "B<IPC_NOWAIT> في حقول I<sem_flg> الفردية، كما هو مذكور أدناه."
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "Each operation is performed on the I<sem_num>-th semaphore of the semaphore "
205 "set, where the first semaphore of the set is numbered 0. There are three "
206 "types of operation, distinguished by the value of I<sem_op>."
207 msgstr ""
208 "كل عملية تُنفذ على الإشارة رقم I<sem_num> من مجموعة الإشارات، حيث تُرقم "
209 "الإشارة الأولى في المجموعة بالرقم 0. هناك ثلاثة أنواع من العمليات، يتم "
210 "تمييزها بقيمة I<sem_op>."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "If I<sem_op> is a positive integer, the operation adds this value to the "
217 "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for "
218 "this operation, the system subtracts the value I<sem_op> from the semaphore "
219 "adjustment (I<semadj>) value for this semaphore. This operation can always "
220 "proceed\\[em]it never forces a thread to wait. The calling process must "
221 "have alter permission on the semaphore set."
222 msgstr ""
223 "إذا كان I<sem_op> عددًا صحيحًا موجبًا، تضيف العملية هذه القيمة إلى قيمة الإشارة "
224 "(I<semval>). علاوة على ذلك، إذا تم تحديد B<SEM_UNDO> لهذه العملية، يطرح "
225 "النظام قيمة I<sem_op> من قيمة تعديل الإشارة (I<semadj>) لهذه الإشارة. يمكن "
226 "لهذه العملية أن تستمر دائمًا\\[em]فهي لا تجبر الخيط على الانتظار أبدًا. يجب أن "
227 "تمتلك العملية المستدعية صلاحية التعديل على مجموعة الإشارات."
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "If I<sem_op> is zero, the process must have read permission on the semaphore "
234 "set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the "
235 "operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified "
236 "in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of "
237 "the operations in I<sops> is performed). Otherwise, I<semzcnt> (the count "
238 "of threads waiting until this semaphore's value becomes zero) is "
239 "incremented by one and the thread sleeps until one of the following occurs:"
240 msgstr ""
241 "إذا كان I<sem_op> صفرًا، يجب أن تمتلك العملية صلاحية القراءة على مجموعة "
242 "الإشارات. هذه عملية \"انتظار للصفر\": إذا كان I<semval> صفرًا، يمكن للعملية "
243 "أن تستمر فورًا. خلاف ذلك، إذا تم تحديد B<IPC_NOWAIT> في I<sem_flg>، يفشل "
244 "B<semop>() مع تعيين I<errno> إلى B<EAGAIN> (ولا يتم تنفيذ أي من العمليات في "
245 "I<sops>). خلاف ذلك، يتم زيادة I<semzcnt> (عدد الخيوط المنتظرة حتى تصبح قيمة "
246 "هذه الإشارة صفرًا) بمقدار واحد وينام الخيط حتى يحدث أحد الأمور التالية:"
247
248 #. type: IP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "\\[bu]"
253 msgstr "\\[bu]"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "I<semval> becomes 0, at which time the value of I<semzcnt> is decremented."
260 msgstr "تصبح I<semval> 0، وعندها يتم تقليل قيمة I<semzcnt>."
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "The semaphore set is removed: B<semop>() fails, with I<errno> set to "
267 "B<EIDRM>."
268 msgstr ""
269 "تتم إزالة مجموعة الإشارات: يفشل B<semop>()، مع تعيين I<errno> إلى B<EIDRM>."
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "The calling thread catches a signal: the value of I<semzcnt> is decremented "
276 "and B<semop>() fails, with I<errno> set to B<EINTR>."
277 msgstr ""
278 "يلتقط الخيط المستدعي إشارة: يتم تقليل قيمة I<semzcnt> ويفشل B<semop>()، مع "
279 "تعيين I<errno> إلى B<EINTR>."
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "If I<sem_op> is less than zero, the process must have alter permission on "
286 "the semaphore set. If I<semval> is greater than or equal to the absolute "
287 "value of I<sem_op>, the operation can proceed immediately: the absolute "
288 "value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
289 "specified for this operation, the system adds the absolute value of "
290 "I<sem_op> to the semaphore adjustment (I<semadj>) value for this "
291 "semaphore. If the absolute value of I<sem_op> is greater than I<semval>, "
292 "and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, with "
293 "I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is "
294 "performed). Otherwise, I<semncnt> (the counter of threads waiting for this "
295 "semaphore's value to increase) is incremented by one and the thread sleeps "
296 "until one of the following occurs:"
297 msgstr ""
298 "إذا كان I<sem_op> أقل من الصفر، يجب أن تمتلك العملية صلاحية التعديل على "
299 "مجموعة الإشارات. إذا كانت I<semval> أكبر من أو تساوي القيمة المطلقة لـ "
300 "I<sem_op>، يمكن للعملية أن تستمر فورًا: تُطرح القيمة المطلقة لـ I<sem_op> من "
301 "I<semval>، وإذا تم تحديد B<SEM_UNDO> لهذه العملية، يضيف النظام القيمة "
302 "المطلقة لـ I<sem_op> إلى قيمة تعديل الإشارة (I<semadj>) لهذه الإشارة. إذا "
303 "كانت القيمة المطلقة لـ I<sem_op> أكبر من I<semval>، وتم تحديد B<IPC_NOWAIT> "
304 "في I<sem_flg>، يفشل B<semop>()، مع تعيين I<errno> إلى B<EAGAIN> (ولا يتم "
305 "تنفيذ أي من العمليات في I<sops>). خلاف ذلك، يتم زيادة I<semncnt> (عداد "
306 "الخيوط المنتظرة لزيادة قيمة هذه الإشارة) بمقدار واحد وينام الخيط حتى يحدث "
307 "أحد الأمور التالية:"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "I<semval> becomes greater than or equal to the absolute value of I<sem_op>: "
314 "the operation now proceeds, as described above."
315 msgstr ""
316 "تصبح I<semval> أكبر من أو تساوي القيمة المطلقة لـ I<sem_op>: تستمر العملية "
317 "الآن، كما هو موصوف أعلاه."
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid ""
323 "The semaphore set is removed from the system: B<semop>() fails, with "
324 "I<errno> set to B<EIDRM>."
325 msgstr ""
326 "تتم إزالة مجموعة الإشارات من النظام: يفشل B<semop>()، مع تعيين I<errno> إلى "
327 "B<EIDRM>."
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 "The calling thread catches a signal: the value of I<semncnt> is decremented "
334 "and B<semop>() fails, with I<errno> set to B<EINTR>."
335 msgstr ""
336 "يلتقط الخيط المستدعي إشارة: يتم تقليل قيمة I<semncnt> ويفشل B<semop>()، مع "
337 "تعيين I<errno> إلى B<EINTR>."
338
339 #. and
340 #. .I sem_ctime
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "On successful completion, the I<sempid> value for each semaphore specified "
346 "in the array pointed to by I<sops> is set to the caller's process ID. In "
347 "addition, the I<sem_otime> is set to the current time."
348 msgstr ""
349 "عند الإكمال بنجاح، يتم تعيين قيمة I<sempid> لكل إشارة محددة في المصفوفة "
350 "المشار إليها بواسطة I<sops> إلى معرف عملية المستدعي. بالإضافة إلى ذلك، يتم "
351 "تعيين I<sem_otime> إلى الوقت الحالي."
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 "semtimedop()"
358 msgstr "semtimedop()"
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 "B<semtimedop>() behaves identically to B<semop>() except that in those "
365 "cases where the calling thread would sleep, the duration of that sleep is "
366 "limited by the amount of elapsed time specified by the I<timespec> structure "
367 "whose address is passed in the I<timeout> argument. (This sleep interval "
368 "will be rounded up to the system clock granularity, and kernel scheduling "
369 "delays mean that the interval may overrun by a small amount.) If the "
370 "specified time limit has been reached, B<semtimedop>() fails with I<errno> "
371 "set to B<EAGAIN> (and none of the operations in I<sops> is performed). If "
372 "the I<timeout> argument is NULL, then B<semtimedop>() behaves exactly like "
373 "B<semop>()."
374 msgstr ""
375 "يتصرف B<semtimedop>() بشكل مماثل لـ B<semop>() باستثناء أنه في الحالات التي "
376 "ينام فيها الخيط المستدعي، تكون مدة هذا النوم محدودة بمقدار الوقت المنقضي "
377 "المحدد بواسطة بنية I<timespec> التي يُمرر عنوانها في وسيط I<timeout>. (سيتم "
378 "تقريب فترة النوم هذه إلى دقة ساعة النظام، وتأخيرات جدولة النواة تعني أن "
379 "الفترة قد تتجاوز بمقدار صغير.) إذا تم الوصول إلى الحد الزمني المحدد، يفشل "
380 "B<semtimedop>() مع تعيين I<errno> إلى B<EAGAIN> (ولا يتم تنفيذ أي من "
381 "العمليات في I<sops>). إذا كان وسيط I<timeout> هو NULL، فإن B<semtimedop>() "
382 "يتصرف تمامًا مثل B<semop>()."
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "Note that if B<semtimedop>() is interrupted by a signal, causing the call "
389 "to fail with the error B<EINTR>, the contents of I<timeout> are left "
390 "unchanged."
391 msgstr ""
392 "لاحظ أنه إذا تمت مقاطعة B<semtimedop>() بواسطة إشارة، مما يتسبب في فشل "
393 "الاستدعاء مع الخطأ B<EINTR>، تظل محتويات I<timeout> دون تغيير."
394
395 #. type: SH
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "RETURN VALUE"
400 msgstr "قيمة الإرجاع"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "On success, B<semop>() and B<semtimedop>() return 0. On failure, they "
407 "return -1, and set I<errno> to indicate the error."
408 msgstr ""
409 "عند النجاح، يعيد B<semop>() و B<semtimedop>() القيمة 0. عند الفشل، يعيدان "
410 "القيمة -1، ويضبطان I<errno> للإشارة إلى الخطأ."
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 "ERRORS"
417 msgstr "الأخطاء"
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<E2BIG>"
424 msgstr "B<E2BIG>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "The argument I<nsops> is greater than B<SEMOPM>, the maximum number of "
431 "operations allowed per system call."
432 msgstr ""
433 "الوسيط I<nsops> أكبر من B<SEMOPM>، وهو الحد الأقصى لعدد العمليات المسموح بها "
434 "لكل استدعاء نظام."
435
436 #. type: TP
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "B<EACCES>"
441 msgstr "B<EACCES>"
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "The calling process does not have the permissions required to perform the "
448 "specified semaphore operations, and does not have the B<CAP_IPC_OWNER> "
449 "capability in the user namespace that governs its IPC namespace."
450 msgstr ""
451 "لا تمتلك العملية المستدعية الصلاحيات المطلوبة لتنفيذ عمليات الإشارات "
452 "المحددة، ولا تمتلك القدرة B<CAP_IPC_OWNER> في مساحة اسم المستخدم التي تحكم "
453 "مساحة اسم IPC الخاصة بها."
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<EAGAIN>"
460 msgstr "B<EAGAIN>"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "An operation could not proceed immediately and either B<IPC_NOWAIT> was "
467 "specified in I<sem_flg> or the time limit specified in I<timeout> expired."
468 msgstr ""
469 "لم تتمكن عملية من الاستمرار فورًا وتم تحديد B<IPC_NOWAIT> في I<sem_flg> أو "
470 "انتهى الحد الزمني المحدد في I<timeout>."
471
472 #. type: TP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "B<EFAULT>"
477 msgstr "B<EFAULT>"
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 "An address specified in either the I<sops> or the I<timeout> argument isn't "
484 "accessible."
485 msgstr "عنوان محدد في وسيط I<sops> أو I<timeout> غير قابل للوصول."
486
487 #. type: TP
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "B<EFBIG>"
492 msgstr "B<EFBIG>"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 msgid ""
498 "For some operation the value of I<sem_num> is less than 0 or greater than or "
499 "equal to the number of semaphores in the set."
500 msgstr ""
501 "لبعض العمليات، قيمة I<sem_num> أقل من 0 أو أكبر من أو تساوي عدد الإشارات في "
502 "المجموعة."
503
504 #. type: TP
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "B<EIDRM>"
509 msgstr "B<EIDRM>"
510
511 #. type: Plain text
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 msgid "The semaphore set was removed."
515 msgstr "حُذفت مجموعة السيمافور."
516
517 #. type: TP
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "B<EINTR>"
522 msgstr "B<EINTR>"
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid ""
528 "While blocked in this system call, the thread caught a signal; see "
529 "B<signal>(7)."
530 msgstr ""
531 "أثناء الحظر في استدعاء النظام هذا، التقط الخيط إشارة؛ انظر B<signal>(7)."
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "B<EINVAL>"
538 msgstr "B<EINVAL>"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> "
545 "has a nonpositive value."
546 msgstr ""
547 "مجموعة السيمافور غير موجودة، أو I<semid> أقل من الصفر، أو I<nsops> له قيمة "
548 "غير موجبة."
549
550 #. type: TP
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "B<ENOMEM>"
555 msgstr "B<ENOMEM>"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does "
562 "not have enough memory to allocate the undo structure."
563 msgstr ""
564 "يحدد I<sem_flg> لبعض العمليات B<SEM_UNDO> ولا يمتلك النظام ذاكرة كافية "
565 "لتخصيص بنية التراجع."
566
567 #. type: TP
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "B<ERANGE>"
572 msgstr "B<ERANGE>"
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "For some operation I<sem_op+semval> is greater than B<SEMVMX>, the "
579 "implementation dependent maximum value for I<semval>."
580 msgstr ""
581 "بالنسبة لبعض العمليات، I<sem_op+semval> أكبر من B<SEMVMX>، القيمة القصوى "
582 "المعتمدة على التنفيذ لـ I<semval>."
583
584 #. type: SH
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "STANDARDS"
589 msgstr "المعايير"
590
591 #. type: Plain text
592 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
593 #: opensuse-tumbleweed
594 msgid "POSIX.1-2024."
595 msgstr "POSIX.1-2024."
596
597 #. type: SH
598 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
599 #: opensuse-tumbleweed
600 #, no-wrap
601 msgid "HISTORY"
602 msgstr "التاريخ"
603
604 #. type: TP
605 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
606 #: opensuse-tumbleweed
607 #, no-wrap
608 msgid "B<semop>()"
609 msgstr "B<semop>()"
610
611 #. type: Plain text
612 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
613 #: opensuse-tumbleweed
614 msgid "SVr4, POSIX.1-2001."
615 msgstr "SVr4, POSIX.1-2001."
616
617 #. type: TP
618 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
619 #: opensuse-tumbleweed
620 #, no-wrap
621 msgid "B<semtimedop>()"
622 msgstr "B<semtimedop>()"
623
624 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
625 #. type: Plain text
626 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
627 #: opensuse-tumbleweed
628 msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3."
629 msgstr "SVr4، لينكس 2.5.52 (مُعاد توجيهه إلى لينكس 2.4.22)، glibc 2.3.3."
630
631 #. type: SH
632 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
633 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
634 #, no-wrap
635 msgid "NOTES"
636 msgstr "ملاحظات"
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 msgid ""
642 "The I<sem_undo> structures of a process aren't inherited by the child "
643 "produced by B<fork>(2), but they are inherited across an B<execve>(2) "
644 "system call."
645 msgstr ""
646 "لا تُورث بنى I<sem_undo> لعملية ما إلى الطفل الناتج عن B<fork>(2)، ولكنها "
647 "تُورث عبر استدعاء نظام B<execve>(2)."
648
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid ""
653 "B<semop>() is never automatically restarted after being interrupted by a "
654 "signal handler, regardless of the setting of the B<SA_RESTART> flag when "
655 "establishing a signal handler."
656 msgstr ""
657 "لا يُعاد تشغيل B<semop>() آليًا أبدًا بعد مقاطعته بواسطة معالج إشارة، بغض النظر "
658 "عن إعداد علامة B<SA_RESTART> عند إنشاء معالج إشارة."
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 msgid ""
664 "A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore "
665 "integer that is the negated sum of all operations performed on a semaphore "
666 "specifying the B<SEM_UNDO> flag. Each process has a list of I<semadj> "
667 "values\\[em]one value for each semaphore on which it has operated using "
668 "B<SEM_UNDO>. When a process terminates, each of its per-semaphore I<semadj> "
669 "values is added to the corresponding semaphore, thus undoing the effect of "
670 "that process's operations on the semaphore (but see BUGS below). When a "
671 "semaphore's value is directly set using the B<SETVAL> or B<SETALL> request "
672 "to B<semctl>(2), the corresponding I<semadj> values in all processes are "
673 "cleared. The B<clone>(2) B<CLONE_SYSVSEM> flag allows more than one "
674 "process to share a I<semadj> list; see B<clone>(2) for details."
675 msgstr ""
676 "قيمة تعديل السيمافور (I<semadj>) هي عدد صحيح لكل عملية ولكل سيمافور، وهو "
677 "المجموع المنفي لجميع العمليات المنفذة على سيمافور مع تحديد علامة "
678 "B<SEM_UNDO>. تمتلك كل عملية قائمة من قيم I<semadj>\\[em]قيمة واحدة لكل "
679 "سيمافور عملت عليه باستخدام B<SEM_UNDO>. عندما تنتهي عملية، تُضاف كل قيمة من "
680 "قيم I<semadj> الخاصة بكل سيمافور إلى السيمافور المقابل، مما يلغي تأثير "
681 "عمليات تلك العملية على السيمافور (ولكن انظر الأخطاء أدناه). عندما تُضبط قيمة "
682 "السيمافور مباشرة باستخدام طلب B<SETVAL> أو B<SETALL> إلى B<semctl>(2)، تُمسح "
683 "قيم I<semadj> المقابلة في جميع العمليات. تسمح علامة B<clone>(2) "
684 "B<CLONE_SYSVSEM> لأكثر من عملية بمشاركة قائمة I<semadj>؛ انظر B<clone>(2) "
685 "للتفاصيل."
686
687 #. type: Plain text
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 msgid ""
691 "The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore "
692 "can all be retrieved using appropriate B<semctl>(2) calls."
693 msgstr ""
694 "يمكن استرداد قيم I<semval> و I<sempid> و I<semzcnt> و I<semnct> للسيمافور "
695 "باستخدام استدعاءات B<semctl>(2) المناسبة."
696
697 #. type: SS
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "Semaphore limits"
702 msgstr "حدود السيمافور"
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid ""
708 "The following limits on semaphore set resources affect the B<semop>() call:"
709 msgstr "تؤثر الحدود التالية على موارد مجموعة السيمافور على استدعاء B<semop>():"
710
711 #. type: TP
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "B<SEMOPM>"
716 msgstr "B<SEMOPM>"
717
718 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
719 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
720 #. See comment in Linux 3.19 source file include/uapi/linux/sem.h
721 #. type: Plain text
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 msgid ""
725 "Maximum number of operations allowed for one B<semop>() call. Before Linux "
726 "3.19, the default value for this limit was 32. Since Linux 3.19, the "
727 "default value is 500. On Linux, this limit can be read and modified via the "
728 "third field of I</proc/sys/kernel/sem>. I<Note>: this limit should not be "
729 "raised above 1000, because of the risk of that B<semop>() fails due to "
730 "kernel memory fragmentation when allocating memory to copy the I<sops> array."
731 msgstr ""
732 "الحد الأقصى لعدد العمليات المسموح بها لاستدعاء B<semop>() واحد. قبل لينكس "
733 "3.19، كانت القيمة المبدئية لهذا الحد 32. منذ لينكس 3.19، القيمة المبدئية هي "
734 "500. على لينكس، يمكن قراءة هذا الحد وتعديله عبر الحقل الثالث من I</proc/sys/"
735 "kernel/sem>. I<ملاحظة>: لا ينبغي رفع هذا الحد فوق 1000، بسبب خطر فشل "
736 "B<semop>() بسبب تجزئة ذاكرة النواة عند تخصيص الذاكرة لنسخ مصفوفة I<sops>."
737
738 #. type: TP
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 #, no-wrap
742 msgid "B<SEMVMX>"
743 msgstr "B<SEMVMX>"
744
745 #. type: Plain text
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 msgid ""
749 "Maximum allowable value for I<semval>: implementation dependent (32767)."
750 msgstr "القيمة القصوى المسموح بها لـ I<semval>: معتمدة على التنفيذ (32767)."
751
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid ""
756 "The implementation has no intrinsic limits for the adjust on exit maximum "
757 "value (B<SEMAEM>), the system wide maximum number of undo structures "
758 "(B<SEMMNU>) and the per-process maximum number of undo entries system "
759 "parameters."
760 msgstr ""
761 "لا يمتلك التنفيذ حدودًا جوهرية للقيمة القصوى للتعديل عند الخروج (B<SEMAEM>)، "
762 "والحد الأقصى لعدد بنى التراجع على مستوى النظام (B<SEMMNU>)، ومعاملات النظام "
763 "للحد الأقصى لعدد إدخالات التراجع لكل عملية."
764
765 #. type: SH
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 #, no-wrap
769 msgid "BUGS"
770 msgstr "العلل"
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 msgid ""
776 "When a process terminates, its set of associated I<semadj> structures is "
777 "used to undo the effect of all of the semaphore operations it performed with "
778 "the B<SEM_UNDO> flag. This raises a difficulty: if one (or more) of these "
779 "semaphore adjustments would result in an attempt to decrease a semaphore's "
780 "value below zero, what should an implementation do? One possible approach "
781 "would be to block until all the semaphore adjustments could be performed. "
782 "This is however undesirable since it could force process termination to "
783 "block for arbitrarily long periods. Another possibility is that such "
784 "semaphore adjustments could be ignored altogether (somewhat analogously to "
785 "failing when B<IPC_NOWAIT> is specified for a semaphore operation). Linux "
786 "adopts a third approach: decreasing the semaphore value as far as possible "
787 "(i.e., to zero) and allowing process termination to proceed immediately."
788 msgstr ""
789 "عندما تنتهي عملية، تُستخدم مجموعة بنى I<semadj> المرتبطة بها لإلغاء تأثير "
790 "جميع عمليات السيمافور التي نفذتها مع علامة B<SEM_UNDO>. يثير هذا صعوبة: إذا "
791 "أدى واحد (أو أكثر) من تعديلات السيمافور هذه إلى محاولة تقليل قيمة السيمافور "
792 "إلى ما دون الصفر، فماذا يجب أن يفعل التنفيذ؟ أحد الأساليب الممكنة هو الحظر "
793 "حتى يمكن تنفيذ جميع تعديلات السيمافور. هذا غير مرغوب فيه لأنه قد يجبر إنهاء "
794 "العملية على الحظر لفترات طويلة بشكل تعسفي. احتمال آخر هو تجاهل تعديلات "
795 "السيمافور هذه تمامًا (مشابه إلى حد ما للفشل عند تحديد B<IPC_NOWAIT> لعملية "
796 "سيمافور). يتبنى لينكس أسلوبًا ثالثًا: تقليل قيمة السيمافور قدر الإمكان (أي إلى "
797 "الصفر) والسماح بإنهاء العملية فورًا."
798
799 #. The bug report:
800 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2
801 #. the fix:
802 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 msgid ""
807 "In Linux 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
808 "prevents a thread that is waiting for a semaphore value to become zero from "
809 "being woken up when the value does actually become zero. This bug is fixed "
810 "in Linux 2.6.11."
811 msgstr ""
812 "في لينكس 2.6.x، x E<lt>= 10، يوجد خطأ يمنع في بعض الظروف إيقاظ خيط ينتظر أن "
813 "تصبح قيمة السيمافور صفرًا عندما تصبح القيمة صفرًا بالفعل. أُصلح هذا الخطأ في "
814 "لينكس 2.6.11."
815
816 #. type: SH
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid "EXAMPLES"
821 msgstr "أمثلة"
822
823 #. type: Plain text
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 msgid ""
827 "The following code segment uses B<semop>() to atomically wait for the value "
828 "of semaphore 0 to become zero, and then increment the semaphore value by one."
829 msgstr ""
830 "يستخدم مقطع الكود التالي B<semop>() للانتظار ذريًا حتى تصبح قيمة السيمافور 0 "
831 "صفرًا، ثم زيادة قيمة السيمافور بمقدار واحد."
832
833 #. type: Plain text
834 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
835 #: opensuse-tumbleweed
836 #, no-wrap
837 msgid ""
838 "struct sembuf sops[2];\n"
839 "int semid;\n"
840 "\\&\n"
841 "/* Code to set \\f[I]semid\\fR omitted */\n"
842 "\\&\n"
843 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
844 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
845 "sops[0].sem_flg = 0;\n"
846 "\\&\n"
847 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
848 "sops[1].sem_op = 1; /* Increment value by one */\n"
849 "sops[1].sem_flg = 0;\n"
850 "\\&\n"
851 "if (semop(semid, sops, 2) == -1) {\n"
852 " perror(\"semop\");\n"
853 " exit(EXIT_FAILURE);\n"
854 "}\n"
855 msgstr ""
856 "struct sembuf sops[2];\n"
857 "int semid;\n"
858 "\\&\n"
859 "/* Code to set \\f[I]semid\\fR omitted */\n"
860 "\\&\n"
861 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
862 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
863 "sops[0].sem_flg = 0;\n"
864 "\\&\n"
865 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
866 "sops[1].sem_op = 1; /* Increment value by one */\n"
867 "sops[1].sem_flg = 0;\n"
868 "\\&\n"
869 "if (semop(semid, sops, 2) == -1) {\n"
870 " perror(\"semop\");\n"
871 " exit(EXIT_FAILURE);\n"
872 "}\n"
873
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 msgid ""
878 "A further example of the use of B<semop>() can be found in B<shmop>(2)."
879 msgstr "يمكن العثور على مثال إضافي لاستخدام B<semop>() في B<shmop>(2)."
880
881 #. type: SH
882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
884 #, no-wrap
885 msgid "SEE ALSO"
886 msgstr "انظر أيضًا"
887
888 #. type: Plain text
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 msgid ""
892 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
893 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
894 msgstr ""
895 "B<clone>(2)، B<semctl>(2)، B<semget>(2)، B<sigaction>(2)، "
896 "B<capabilities>(7)، B<sem_overview>(7)، B<sysvipc>(7)، B<time>(7)"
897
898 #. type: TH
899 #: debian-trixie
900 #, no-wrap
901 msgid "2024-05-02"
902 msgstr "2 مايو 2024"
903
904 #. type: TH
905 #: debian-trixie
906 #, no-wrap
907 msgid "Linux man-pages 6.9.1"
908 msgstr "صفحات دليل لينكس 6.9.1"
909
910 #. type: Plain text
911 #: debian-trixie
912 msgid "Standard C library (I<libc>, I<-lc>)"
913 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
914
915 #. type: Plain text
916 #: debian-trixie fedora-44 fedora-rawhide
917 msgid "POSIX.1-2008."
918 msgstr "POSIX.1-2008."
919
920 #. type: SH
921 #: debian-trixie fedora-44 fedora-rawhide
922 #, no-wrap
923 msgid "VERSIONS"
924 msgstr "الإصدارات"
925
926 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
927 #. type: Plain text
928 #: debian-trixie fedora-44 fedora-rawhide
929 msgid ""
930 "Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
931 "SVr4."
932 msgstr ""
933 "لينكس 2.5.52 (مُعاد توجيهه إلى لينكس 2.4.22)، glibc 2.3.3. POSIX.1-2001، SVr4."
934
935 #. type: Plain text
936 #: debian-trixie fedora-44 fedora-rawhide
937 #, no-wrap
938 msgid ""
939 "struct sembuf sops[2];\n"
940 "int semid;\n"
941 "\\&\n"
942 "/* Code to set I<semid> omitted */\n"
943 "\\&\n"
944 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
945 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
946 "sops[0].sem_flg = 0;\n"
947 "\\&\n"
948 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
949 "sops[1].sem_op = 1; /* Increment value by one */\n"
950 "sops[1].sem_flg = 0;\n"
951 "\\&\n"
952 "if (semop(semid, sops, 2) == -1) {\n"
953 " perror(\"semop\");\n"
954 " exit(EXIT_FAILURE);\n"
955 "}\n"
956 msgstr ""
957 "struct sembuf sops[2];\n"
958 "int semid;\n"
959 "\\&\n"
960 "/* Code to set I<semid> omitted */\n"
961 "\\&\n"
962 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
963 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
964 "sops[0].sem_flg = 0;\n"
965 "\\&\n"
966 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
967 "sops[1].sem_op = 1; /* Increment value by one */\n"
968 "sops[1].sem_flg = 0;\n"
969 "\\&\n"
970 "if (semop(semid, sops, 2) == -1) {\n"
971 " perror(\"semop\");\n"
972 " exit(EXIT_FAILURE);\n"
973 "}\n"
974
975 #. type: TH
976 #: fedora-44 fedora-rawhide
977 #, no-wrap
978 msgid "2024-07-23"
979 msgstr "23 يوليو 2024"
980
981 #. type: TH
982 #: fedora-44 fedora-rawhide
983 #, no-wrap
984 msgid "Linux man-pages 6.13"
985 msgstr "صفحات دليل لينكس 6.13"
986
987 #. type: TH
988 #: mageia-cauldron
989 #, no-wrap
990 msgid "Linux man-pages 6.17"
991 msgstr "صفحات دليل لينكس 6.17"
992
993 #. type: TH
994 #: opensuse-leap-16-1 opensuse-tumbleweed
995 #, no-wrap
996 msgid "Linux man-pages (unreleased)"
997 msgstr "صفحات دليل لينكس (لم تصدر بعد)"