Debian Codegraph @

po/ar/man2/semget.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:09+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 "semget"
25 msgstr "semget"
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 "semget - get a System V semaphore set identifier"
51 msgstr "semget - الحصول على معرّف مجموعة إشارات System 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 msgid ""
84 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
85 msgstr ""
86 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
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 "The B<semget>() system call returns the System\\ V semaphore set identifier "
100 "associated with the argument I<key>. It may be used either to obtain the "
101 "identifier of a previously created semaphore set (when I<semflg> is zero and "
102 "I<key> does not have the value B<IPC_PRIVATE>), or to create a new set."
103 msgstr ""
104 "استدعاء النظام B<semget>() يُرجع معرف مجموعة إشارات System\\ V المرتبط "
105 "بالوسيط I<key>. يمكن استخدامه إما للحصول على معرف مجموعة إشارات مُنشأة سابقًا "
106 "(عندما يكون I<semflg> صفرًا و I<key> لا يحمل القيمة B<IPC_PRIVATE>)، أو "
107 "لإنشاء مجموعة جديدة."
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "A new set of I<nsems> semaphores is created if I<key> has the value "
114 "B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and "
115 "B<IPC_CREAT> is specified in I<semflg>."
116 msgstr ""
117 "يتم إنشاء مجموعة جديدة من I<nsems> إشارة إذا كان I<key> يحمل القيمة "
118 "B<IPC_PRIVATE> أو إذا لم تكن هناك مجموعة إشارات موجودة مرتبطة بـ I<key> وتم "
119 "تحديد B<IPC_CREAT> في I<semflg>."
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 "If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
126 "already exists for I<key>, then B<semget>() fails with I<errno> set to "
127 "B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | "
128 "O_EXCL> for B<open>(2).)"
129 msgstr ""
130 "إذا حدد I<semflg> كلاً من B<IPC_CREAT> و B<IPC_EXCL> وكانت مجموعة إشارات "
131 "موجودة بالفعل لـ I<key>، فإن B<semget>() يفشل مع تعيين I<errno> إلى "
132 "B<EEXIST>. (هذا مماثل لتأثير الجمع B<O_CREAT | O_EXCL> لـ B<open>(2).)"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "Upon creation, the least significant 9 bits of the argument I<semflg> define "
139 "the permissions (for owner, group, and others) for the semaphore set. "
140 "These bits have the same format, and the same meaning, as the I<mode> "
141 "argument of B<open>(2) (though the execute permissions are not meaningful "
142 "for semaphores, and write permissions mean permission to alter semaphore "
143 "values)."
144 msgstr ""
145 "عند الإنشاء، تحدد أقل 9 بتات أهمية من الوسيط I<semflg> الأذونات (للمالك "
146 "والمجموعة والآخرين) لمجموعة الإشارات. هذه البتات لها نفس التنسيق ونفس المعنى "
147 "مثل وسيط I<mode> لـ B<open>(2) (على الرغم من أن أذونات التنفيذ ليست ذات معنى "
148 "للإشارات، وأذونات الكتابة تعني الإذن بتغيير قيم الإشارات)."
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "When creating a new semaphore set, B<semget>() initializes the set's "
155 "associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
156 msgstr ""
157 "عند إنشاء مجموعة إشارات جديدة، يقوم B<semget>() بتهيئة بنية البيانات "
158 "المرتبطة بالمجموعة، I<semid_ds> (انظر B<semctl>(2))، على النحو التالي:"
159
160 #. type: IP
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "\\[bu]"
165 msgstr "\\[bu]"
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 "I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
172 "calling process."
173 msgstr ""
174 "يتم تعيين I<sem_perm.cuid> و I<sem_perm.uid> إلى معرف المستخدم الفعّال "
175 "للعملية المستدعية."
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 "I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
182 "the calling process."
183 msgstr ""
184 "يتم تعيين I<sem_perm.cgid> و I<sem_perm.gid> إلى معرف المجموعة الفعّال "
185 "للعملية المستدعية."
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "The least significant 9 bits of I<sem_perm.mode> are set to the least "
192 "significant 9 bits of I<semflg>."
193 msgstr ""
194 "يتم تعيين أقل 9 بتات أهمية من I<sem_perm.mode> إلى أقل 9 بتات أهمية من "
195 "I<semflg>."
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid "I<sem_nsems> is set to the value of I<nsems>."
201 msgstr "يتم تعيين I<sem_nsems> إلى قيمة I<nsems>."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid "I<sem_otime> is set to 0."
207 msgstr "يتم تعيين I<sem_otime> إلى 0."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid "I<sem_ctime> is set to the current time."
213 msgstr "يتم تعيين I<sem_ctime> إلى الوقت الحالي."
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "The argument I<nsems> can be 0 (a don't care) when a semaphore set is not "
220 "being created. Otherwise, I<nsems> must be greater than 0 and less than or "
221 "equal to the maximum number of semaphores per semaphore set (B<SEMMSL>)."
222 msgstr ""
223 "يمكن أن يكون الوسيط I<nsems> 0 (غير مهم) عندما لا يتم إنشاء مجموعة إشارات. "
224 "وإلا، يجب أن يكون I<nsems> أكبر من 0 وأقل من أو يساوي الحد الأقصى لعدد "
225 "الإشارات لكل مجموعة إشارات (B<SEMMSL>)."
226
227 #. and a check is made to see if it is marked for destruction.
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid "If the semaphore set already exists, the permissions are verified."
232 msgstr "إذا كانت مجموعة الإشارات موجودة بالفعل، يتم التحقق من الأذونات."
233
234 #. type: SH
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "RETURN VALUE"
239 msgstr "قيمة الإرجاع"
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "On success, B<semget>() returns the semaphore set identifier (a nonnegative "
246 "integer). On failure, -1 is returned, and I<errno> is set to indicate the "
247 "error."
248 msgstr ""
249 "عند النجاح، يُرجع B<semget>() معرف مجموعة الإشارات (عدد صحيح غير سالب). عند "
250 "الفشل، يتم إرجاع -1، ويتم تعيين I<errno> للإشارة إلى الخطأ."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "ERRORS"
257 msgstr "الأخطاء"
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<EACCES>"
264 msgstr "B<EACCES>"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "A semaphore set exists for I<key>, but the calling process does not have "
271 "permission to access the set, and does not have the B<CAP_IPC_OWNER> "
272 "capability in the user namespace that governs its IPC namespace."
273 msgstr ""
274 "توجد مجموعة إشارات لـ I<key>، لكن العملية المستدعية لا تملك الإذن بالوصول "
275 "إلى المجموعة، ولا تملك القدرة B<CAP_IPC_OWNER> في مساحة المستخدم التي تحكم "
276 "مساحة IPC الخاصة بها."
277
278 #. type: TP
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "B<EEXIST>"
283 msgstr "B<EEXIST>"
284
285 #. .TP
286 #. .B EIDRM
287 #. The semaphore set is marked to be deleted.
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore "
293 "set already exists for I<key>."
294 msgstr ""
295 "تم تحديد B<IPC_CREAT> و B<IPC_EXCL> في I<semflg>، لكن مجموعة إشارات موجودة "
296 "بالفعل لـ I<key>."
297
298 #. type: TP
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<EINVAL>"
303 msgstr "B<EINVAL>"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "I<nsems> is less than 0 or greater than the limit on the number of "
310 "semaphores per semaphore set (B<SEMMSL>)."
311 msgstr ""
312 "I<nsems> أقل من 0 أو أكبر من الحد الأقصى لعدد الإشارات لكل مجموعة إشارات "
313 "(B<SEMMSL>)."
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "A semaphore set corresponding to I<key> already exists, but I<nsems> is "
320 "larger than the number of semaphores in that set."
321 msgstr ""
322 "توجد مجموعة إشارات مقابلة لـ I<key> بالفعل، لكن I<nsems> أكبر من عدد "
323 "الإشارات في تلك المجموعة."
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<ENOENT>"
330 msgstr "B<ENOENT>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "No semaphore set exists for I<key> and I<semflg> did not specify "
337 "B<IPC_CREAT>."
338 msgstr "لا توجد مجموعة إشارات لـ I<key> ولم يحدد I<semflg> B<IPC_CREAT>."
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<ENOMEM>"
345 msgstr "B<ENOMEM>"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "A semaphore set has to be created but the system does not have enough memory "
352 "for the new data structure."
353 msgstr ""
354 "يجب إنشاء مجموعة إشارات لكن النظام لا يملك ذاكرة كافية لبنية البيانات "
355 "الجديدة."
356
357 #. type: TP
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "B<ENOSPC>"
362 msgstr "B<ENOSPC>"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "A semaphore set has to be created but the system limit for the maximum "
369 "number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
370 "semaphores (B<SEMMNS>), would be exceeded."
371 msgstr ""
372 "يجب إنشاء مجموعة إشارات لكن سيتم تجاوز حد النظام للحد الأقصى لعدد مجموعات "
373 "الإشارات (B<SEMMNI>)، أو الحد الأقصى لعدد الإشارات على مستوى النظام "
374 "(B<SEMMNS>)."
375
376 #. type: SH
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "STANDARDS"
381 msgstr "المعايير"
382
383 #. type: Plain text
384 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
385 #: opensuse-tumbleweed
386 msgid "POSIX.1-2024."
387 msgstr "POSIX.1-2024."
388
389 #. type: SH
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "HISTORY"
394 msgstr "التاريخ"
395
396 #. SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
397 #. ERANGE, EFAULT.
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid "SVr4, POSIX.1-2001."
402 msgstr "SVr4, POSIX.1-2001."
403
404 #. type: SH
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "NOTES"
409 msgstr "ملاحظات"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
416 "value is used for I<key>, the system call ignores all but the least "
417 "significant 9 bits of I<semflg> and creates a new semaphore set (on success)."
418 msgstr ""
419 "B<IPC_PRIVATE> ليس حقل علم بل هو نوع I<key_t>. إذا تم استخدام هذه القيمة "
420 "الخاصة لـ I<key>، يتجاهل استدعاء النظام كل شيء باستثناء أقل 9 بتات أهمية من "
421 "I<semflg> وينشئ مجموعة إشارات جديدة (عند النجاح)."
422
423 #. type: SS
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "Semaphore initialization"
428 msgstr "تهيئة الإشارة"
429
430 #. In truth, every one of the many implementations that I've tested sets
431 #. the values to zero, but I suppose there is/was some obscure
432 #. implementation out there that does not.
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "The values of the semaphores in a newly created set are indeterminate. "
438 "(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although "
439 "POSIX.1-2008 notes that a future version of the standard may require an "
440 "implementation to initialize the semaphores to 0.) Although Linux, like "
441 "many other implementations, initializes the semaphore values to 0, a "
442 "portable application cannot rely on this: it should explicitly initialize "
443 "the semaphores to the desired values."
444 msgstr ""
445 "قيم الإشارات في مجموعة منشأة حديثًا غير محددة. (POSIX.1-2001 و POSIX.1-2008 "
446 "صريحان في هذه النقطة، على الرغم من أن POSIX.1-2008 يلاحظ أن إصدارًا مستقبليًا "
447 "من المعيار قد يتطلب من التنفيذ تهيئة الإشارات إلى 0.) على الرغم من أن Linux، "
448 "مثل العديد من التطبيقات الأخرى، يقوم بتهيئة قيم الإشارات إلى 0، لا يمكن "
449 "لتطبيق محمول الاعتماد على هذا: يجب عليه تهيئة الإشارات صراحةً إلى القيم "
450 "المطلوبة."
451
452 #. type: Plain text
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 msgid ""
456 "Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> "
457 "operation. Where multiple peers do not know who will be the first to "
458 "initialize the set, checking for a nonzero I<sem_otime> in the associated "
459 "data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be "
460 "used to avoid races."
461 msgstr ""
462 "يمكن إجراء التهيئة باستخدام عملية B<semctl>(2) B<SETVAL> أو B<SETALL>. "
463 "عندما لا يعرف عدة نظراء من سيكون أول من يهيئ المجموعة، يمكن استخدام التحقق "
464 "من وجود قيمة غير صفرية لـ I<sem_otime> في بنية البيانات المرتبطة التي يتم "
465 "استردادها بواسطة عملية B<semctl>(2) B<IPC_STAT> لتجنب حالات التزاحم."
466
467 #. type: SS
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "Semaphore limits"
472 msgstr "حدود السيمافور"
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "The following limits on semaphore set resources affect the B<semget>() call:"
479 msgstr "الحدود التالية على موارد مجموعة الإشارات تؤثر على استدعاء B<semget>():"
480
481 #. type: TP
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "B<SEMMNI>"
486 msgstr "B<SEMMNI>"
487
488 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
489 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "System-wide limit on the number of semaphore sets. Before Linux 3.19, the "
495 "default value for this limit was 128. Since Linux 3.19, the default value "
496 "is 32,000. On Linux, this limit can be read and modified via the fourth "
497 "field of I</proc/sys/kernel/sem>."
498 msgstr ""
499 "حد على مستوى النظام لعدد مجموعات الإشارات. قبل Linux 3.19، كانت القيمة "
500 "المبدئية لهذا الحد 128. منذ Linux 3.19، القيمة المبدئية هي 32,000. في Linux، "
501 "يمكن قراءة هذا الحد وتعديله عبر الحقل الرابع من I</proc/sys/kernel/sem>."
502
503 #. type: TP
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "B<SEMMSL>"
508 msgstr "B<SEMMSL>"
509
510 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
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 ""
515 "Maximum number of semaphores per semaphore ID. Before Linux 3.19, the "
516 "default value for this limit was 250. Since Linux 3.19, the default value "
517 "is 32,000. On Linux, this limit can be read and modified via the first "
518 "field of I</proc/sys/kernel/sem>."
519 msgstr ""
520 "الحد الأقصى لعدد الإشارات لكل معرف إشارة. قبل لينكس 3.19، كانت القيمة "
521 "المبدئية لهذا الحد 250. منذ لينكس 3.19، القيمة المبدئية هي 32,000. على "
522 "لينكس، يمكن قراءة هذا الحد وتعديله عبر الحقل الأول من I</proc/sys/kernel/"
523 "sem>."
524
525 #. type: TP
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "B<SEMMNS>"
530 msgstr "B<SEMMNS>"
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid ""
536 "System-wide limit on the number of semaphores: policy dependent (on Linux, "
537 "this limit can be read and modified via the second field of I</proc/sys/"
538 "kernel/sem>). Note that the number of semaphores system-wide is also "
539 "limited by the product of B<SEMMSL> and B<SEMMNI>."
540 msgstr ""
541 "الحد على مستوى النظام لعدد الإشارات: يعتمد على السياسة (على لينكس، يمكن "
542 "قراءة هذا الحد وتعديله عبر الحقل الثاني من I</proc/sys/kernel/sem>). لاحظ أن "
543 "عدد الإشارات على مستوى النظام محدود أيضًا بحاصل ضرب B<SEMMSL> وB<SEMMNI>."
544
545 #. type: SH
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "BUGS"
550 msgstr "العلل"
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
557 "more clearly show its function."
558 msgstr ""
559 "ربما كان اختيار الاسم B<IPC_PRIVATE> غير موفق، فاسم B<IPC_NEW> كان سيظهر "
560 "وظيفتها بشكل أوضح."
561
562 #. type: SH
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid "EXAMPLES"
567 msgstr "أمثلة"
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "The program shown below uses B<semget>() to create a new semaphore set or "
574 "retrieve the ID of an existing set. It generates the I<key> for "
575 "B<semget>() using B<ftok>(3). The first two command-line arguments are "
576 "used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third "
577 "command-line argument is an integer that specifies the I<nsems> argument for "
578 "B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> "
579 "(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The "
580 "usage of this program is demonstrated below."
581 msgstr ""
582 "البرنامج الموضح أدناه يستخدم B<semget>() لإنشاء مجموعة إشارات جديدة أو "
583 "استرداد معرف مجموعة موجودة. يولد I<key> لـ B<semget>() باستخدام B<ftok>(3). "
584 "تُستخدم الوسيطتان الأوليان لسطر الأوامر كوسيطتي I<pathname> وI<proj_id> لـ "
585 "B<ftok>(3). الوسيطة الثالثة لسطر الأوامر هي عدد صحيح يحدد وسيطة I<nsems> لـ "
586 "B<semget>(). يمكن استخدام خيارات سطر الأوامر لتحديد علمي B<IPC_CREAT> (I<-"
587 "c>) وB<IPC_EXCL> (I<-x>) لاستدعاء B<semget>(). استخدام هذا البرنامج موضح "
588 "أدناه."
589
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "We first create two files that will be used to generate keys using "
595 "B<ftok>(3), create two semaphore sets using those files, and then list the "
596 "sets using B<ipcs>(1):"
597 msgstr ""
598 "ننشئ أولاً ملفين سيُستخدمان لتوليد المفاتيح باستخدام B<ftok>(3)، وننشئ مجموعتي "
599 "إشارات باستخدام هذين الملفين، ثم ندرج المجموعات باستخدام B<ipcs>(1):"
600
601 #. type: Plain text
602 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
603 #: opensuse-tumbleweed
604 #, no-wrap
605 msgid ""
606 "$B< touch mykey mykey2>;\n"
607 "$B< ./t_semget -c mykey p 1>;\n"
608 "ID = 9\n"
609 "$B< ./t_semget -c mykey2 p 2>;\n"
610 "ID = 10\n"
611 "$B< ipcs -s>;\n"
612 "\\&\n"
613 "------ Semaphore Arrays --------\n"
614 "key semid owner perms nsems\n"
615 "0x7004136d 9 mtk 600 1\n"
616 "0x70041368 10 mtk 600 2\n"
617 msgstr ""
618 "$B< touch mykey mykey2>;\n"
619 "$B< ./t_semget -c mykey p 1>;\n"
620 "ID = 9\n"
621 "$B< ./t_semget -c mykey2 p 2>;\n"
622 "ID = 10\n"
623 "$B< ipcs -s>;\n"
624 "\\&\n"
625 "------ Semaphore Arrays --------\n"
626 "key semid owner perms nsems\n"
627 "0x7004136d 9 mtk 600 1\n"
628 "0x70041368 10 mtk 600 2\n"
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as "
635 "generated by the same arguments to B<ftok>(3)), it returns the ID of the "
636 "already existing semaphore set:"
637 msgstr ""
638 "بعد ذلك، نوضح أنه عندما يُعطى B<semctl>(2) نفس I<key> (كما يُولد بواسطة نفس "
639 "الوسائط لـ B<ftok>(3))، فإنه يعيد معرف مجموعة الإشارات الموجودة بالفعل:"
640
641 #. type: Plain text
642 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
643 #: opensuse-tumbleweed
644 #, no-wrap
645 msgid ""
646 "$B< ./t_semget -c mykey p 1>;\n"
647 "ID = 9\n"
648 msgstr ""
649 "$B< ./t_semget -c mykey p 1>;\n"
650 "ID = 9\n"
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid ""
656 "Finally, we demonstrate the kind of collision that can occur when "
657 "B<ftok>(3) is given different I<pathname> arguments that have the same "
658 "inode number:"
659 msgstr ""
660 "أخيرًا، نوضح نوع التصادم الذي يمكن أن يحدث عندما يُعطى B<ftok>(3) وسيطات "
661 "I<pathname> مختلفة لها نفس رقم inode:"
662
663 #. type: Plain text
664 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
665 #: opensuse-tumbleweed
666 #, no-wrap
667 msgid ""
668 "$B< ln mykey link>;\n"
669 "$B< ls -i1 link mykey>;\n"
670 "2233197 link\n"
671 "2233197 mykey\n"
672 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
673 "ID = 9\n"
674 msgstr ""
675 "$B< ln mykey link>;\n"
676 "$B< ls -i1 link mykey>;\n"
677 "2233197 link\n"
678 "2233197 mykey\n"
679 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
680 "ID = 9\n"
681
682 #. type: SS
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "Program source"
687 msgstr "مصدر البرنامج"
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid ""
694 "/* t_semget.c\n"
695 "\\&\n"
696 " Licensed under GNU General Public License v2 or later.\n"
697 "*/\n"
698 "#include E<lt>stdio.hE<gt>\n"
699 "#include E<lt>stdlib.hE<gt>\n"
700 "#include E<lt>sys/ipc.hE<gt>\n"
701 "#include E<lt>sys/sem.hE<gt>\n"
702 "#include E<lt>unistd.hE<gt>\n"
703 "\\&\n"
704 "static void\n"
705 "usage(const char *pname)\n"
706 "{\n"
707 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
708 " pname);\n"
709 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
710 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
711 " exit(EXIT_FAILURE);\n"
712 "}\n"
713 "\\&\n"
714 "int\n"
715 "main(int argc, char *argv[])\n"
716 "{\n"
717 " int semid, nsems, flags, opt;\n"
718 " key_t key;\n"
719 "\\&\n"
720 " flags = 0;\n"
721 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
722 " switch (opt) {\n"
723 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
724 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
725 " default: usage(argv[0]);\n"
726 " }\n"
727 " }\n"
728 "\\&\n"
729 " if (argc != optind + 3)\n"
730 " usage(argv[0]);\n"
731 "\\&\n"
732 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
733 " if (key == -1) {\n"
734 " perror(\"ftok\");\n"
735 " exit(EXIT_FAILURE);\n"
736 " }\n"
737 "\\&\n"
738 " nsems = atoi(argv[optind + 2]);\n"
739 "\\&\n"
740 " semid = semget(key, nsems, flags | 0600);\n"
741 " if (semid == -1) {\n"
742 " perror(\"semget\");\n"
743 " exit(EXIT_FAILURE);\n"
744 " }\n"
745 "\\&\n"
746 " printf(\"ID = %d\\[rs]n\", semid);\n"
747 "\\&\n"
748 " exit(EXIT_SUCCESS);\n"
749 "}\n"
750 msgstr ""
751 "/* t_semget.c\n"
752 "\\&\n"
753 " Licensed under GNU General Public License v2 or later.\n"
754 "*/\n"
755 "#include E<lt>stdio.hE<gt>\n"
756 "#include E<lt>stdlib.hE<gt>\n"
757 "#include E<lt>sys/ipc.hE<gt>\n"
758 "#include E<lt>sys/sem.hE<gt>\n"
759 "#include E<lt>unistd.hE<gt>\n"
760 "\\&\n"
761 "static void\n"
762 "usage(const char *pname)\n"
763 "{\n"
764 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
765 " pname);\n"
766 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
767 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
768 " exit(EXIT_FAILURE);\n"
769 "}\n"
770 "\\&\n"
771 "int\n"
772 "main(int argc, char *argv[])\n"
773 "{\n"
774 " int semid, nsems, flags, opt;\n"
775 " key_t key;\n"
776 "\\&\n"
777 " flags = 0;\n"
778 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
779 " switch (opt) {\n"
780 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
781 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
782 " default: usage(argv[0]);\n"
783 " }\n"
784 " }\n"
785 "\\&\n"
786 " if (argc != optind + 3)\n"
787 " usage(argv[0]);\n"
788 "\\&\n"
789 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
790 " if (key == -1) {\n"
791 " perror(\"ftok\");\n"
792 " exit(EXIT_FAILURE);\n"
793 " }\n"
794 "\\&\n"
795 " nsems = atoi(argv[optind + 2]);\n"
796 "\\&\n"
797 " semid = semget(key, nsems, flags | 0600);\n"
798 " if (semid == -1) {\n"
799 " perror(\"semget\");\n"
800 " exit(EXIT_FAILURE);\n"
801 " }\n"
802 "\\&\n"
803 " printf(\"ID = %d\\[rs]n\", semid);\n"
804 "\\&\n"
805 " exit(EXIT_SUCCESS);\n"
806 "}\n"
807
808 #. SRC END
809 #. type: SH
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 #, no-wrap
813 msgid "SEE ALSO"
814 msgstr "انظر أيضًا"
815
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 msgid ""
820 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
821 "B<sem_overview>(7), B<sysvipc>(7)"
822 msgstr ""
823 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
824 "B<sem_overview>(7), B<sysvipc>(7)"
825
826 #. type: TH
827 #: debian-trixie
828 #, no-wrap
829 msgid "2024-06-15"
830 msgstr "15 يونيو 2024"
831
832 #. type: TH
833 #: debian-trixie
834 #, no-wrap
835 msgid "Linux man-pages 6.9.1"
836 msgstr "صفحات دليل لينكس 6.9.1"
837
838 #. type: Plain text
839 #: debian-trixie
840 msgid "Standard C library (I<libc>, I<-lc>)"
841 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
842
843 #. type: Plain text
844 #: debian-trixie fedora-44 fedora-rawhide
845 msgid "POSIX.1-2008."
846 msgstr "POSIX.1-2008."
847
848 #. type: Plain text
849 #: debian-trixie fedora-44 fedora-rawhide
850 #, no-wrap
851 msgid ""
852 "$ B<touch mykey mykey2>\n"
853 "$ B<./t_semget -c mykey p 1>\n"
854 "ID = 9\n"
855 "$ B<./t_semget -c mykey2 p 2>\n"
856 "ID = 10\n"
857 "$ B<ipcs -s>\n"
858 "\\&\n"
859 "------ Semaphore Arrays --------\n"
860 "key semid owner perms nsems\n"
861 "0x7004136d 9 mtk 600 1\n"
862 "0x70041368 10 mtk 600 2\n"
863 msgstr ""
864 "$ B<touch mykey mykey2>\n"
865 "$ B<./t_semget -c mykey p 1>\n"
866 "ID = 9\n"
867 "$ B<./t_semget -c mykey2 p 2>\n"
868 "ID = 10\n"
869 "$ B<ipcs -s>\n"
870 "\\&\n"
871 "------ Semaphore Arrays --------\n"
872 "key semid owner perms nsems\n"
873 "0x7004136d 9 mtk 600 1\n"
874 "0x70041368 10 mtk 600 2\n"
875
876 #. type: Plain text
877 #: debian-trixie fedora-44 fedora-rawhide
878 #, no-wrap
879 msgid ""
880 "$ B<./t_semget -c mykey p 1>\n"
881 "ID = 9\n"
882 msgstr ""
883 "$ B<./t_semget -c mykey p 1>\n"
884 "ID = 9\n"
885
886 #. type: Plain text
887 #: debian-trixie fedora-44 fedora-rawhide
888 #, no-wrap
889 msgid ""
890 "$ B<ln mykey link>\n"
891 "$ B<ls -i1 link mykey>\n"
892 "2233197 link\n"
893 "2233197 mykey\n"
894 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
895 "ID = 9\n"
896 msgstr ""
897 "$ B<ln mykey link>\n"
898 "$ B<ls -i1 link mykey>\n"
899 "2233197 link\n"
900 "2233197 mykey\n"
901 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
902 "ID = 9\n"
903
904 #. type: TH
905 #: fedora-44 fedora-rawhide
906 #, no-wrap
907 msgid "2024-07-23"
908 msgstr "23 يوليو 2024"
909
910 #. type: TH
911 #: fedora-44 fedora-rawhide
912 #, no-wrap
913 msgid "Linux man-pages 6.13"
914 msgstr "صفحات دليل لينكس 6.13"
915
916 #. type: TH
917 #: mageia-cauldron
918 #, no-wrap
919 msgid "Linux man-pages 6.17"
920 msgstr "صفحات دليل لينكس 6.17"
921
922 #. type: TH
923 #: opensuse-leap-16-1 opensuse-tumbleweed
924 #, no-wrap
925 msgid "Linux man-pages (unreleased)"
926 msgstr "صفحات دليل لينكس (لم تصدر بعد)"