# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:42+0200\n" "PO-Revision-Date: 2026-05-18 18:00+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "semop" msgstr "semop" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "semop, semtimedop - System V semaphore operations" msgstr "semop, semtimedop - عمليات الإشارات (semaphore) لنظام V" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/sem.hE>\n" msgstr "B<#include Esys/sem.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, struct sembuf *>IB<, size_t >IB<);>\n" "BIB<, struct sembuf *>IB<, size_t >IB<,>\n" "B< const struct timespec *_Nullable >IB<);>\n" msgstr "" "BIB<, struct sembuf *>IB<, size_t >IB<);>\n" "BIB<, struct sembuf *>IB<, size_t >IB<,>\n" "B< const struct timespec *_Nullable >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B(7)):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B():" msgstr "B():" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " _GNU_SOURCE\n" msgstr " _GNU_SOURCE\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each semaphore in a System\\ V semaphore set has the following associated " "values:" msgstr "كل إشارة في مجموعة إشارات System\\ V لها القيم المرتبطة التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "unsigned short semval; /* semaphore value */\n" "unsigned short semzcnt; /* # waiting for zero */\n" "unsigned short semncnt; /* # waiting for increase */\n" "pid_t sempid; /* PID of process that last\n" " modified the semaphore value */\n" msgstr "" "unsigned short semval; /* semaphore value */\n" "unsigned short semzcnt; /* # waiting for zero */\n" "unsigned short semncnt; /* # waiting for increase */\n" "pid_t sempid; /* PID of process that last\n" " modified the semaphore value */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() performs operations on selected semaphores in the set indicated " "by I. Each of the I elements in the array pointed to by " "I is a structure that specifies an operation to be performed on a " "single semaphore. The elements of this structure are of type I, containing the following members:" msgstr "" "B() ينفذ عمليات على إشارات محددة في المجموعة المشار إليها بواسطة " "I. كل عنصر من عناصر I في المصفوفة المشار إليها بواسطة I " "هو بنية تحدد عملية سيتم تنفيذها على إشارة واحدة. عناصر هذه البنية من النوع " "I، وتحتوي على الأعضاء التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "unsigned short sem_num; /* semaphore number */\n" "short sem_op; /* semaphore operation */\n" "short sem_flg; /* operation flags */\n" msgstr "" "unsigned short sem_num; /* semaphore number */\n" "short sem_op; /* semaphore operation */\n" "short sem_flg; /* operation flags */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Flags recognized in I are B and B. If an " "operation specifies B, it will be automatically undone when the " "process terminates." msgstr "" "الأعلام المعترف بها في I هي B و B. إذا حددت " "عملية B، فسيتم التراجع عنها آليًا عند إنهاء العملية." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The set of operations contained in I is performed in I, " "and I, that is, the operations are performed either as a " "complete unit, or not at all. The behavior of the system call if not all " "operations can be performed immediately depends on the presence of the " "B flag in the individual I fields, as noted below." msgstr "" "مجموعة العمليات الموجودة في I تُنفذ بترتيب I<المصفوفة>، وI<بشكل ذري>، " "أي أن العمليات تُنفذ إما كوحدة كاملة، أو لا تُنفذ على الإطلاق. يعتمد سلوك " "استدعاء النظام إذا لم يمكن تنفيذ جميع العمليات فورًا على وجود علم " "B في حقول I الفردية، كما هو مذكور أدناه." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each operation is performed on the I-th semaphore of the semaphore " "set, where the first semaphore of the set is numbered 0. There are three " "types of operation, distinguished by the value of I." msgstr "" "كل عملية تُنفذ على الإشارة رقم I من مجموعة الإشارات، حيث تُرقم " "الإشارة الأولى في المجموعة بالرقم 0. هناك ثلاثة أنواع من العمليات، يتم " "تمييزها بقيمة I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is a positive integer, the operation adds this value to the " "semaphore value (I). Furthermore, if B is specified for " "this operation, the system subtracts the value I from the semaphore " "adjustment (I) value for this semaphore. This operation can always " "proceed\\[em]it never forces a thread to wait. The calling process must " "have alter permission on the semaphore set." msgstr "" "إذا كان I عددًا صحيحًا موجبًا، تضيف العملية هذه القيمة إلى قيمة الإشارة " "(I). علاوة على ذلك، إذا تم تحديد B لهذه العملية، يطرح " "النظام قيمة I من قيمة تعديل الإشارة (I) لهذه الإشارة. يمكن " "لهذه العملية أن تستمر دائمًا\\[em]فهي لا تجبر الخيط على الانتظار أبدًا. يجب أن " "تمتلك العملية المستدعية صلاحية التعديل على مجموعة الإشارات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is zero, the process must have read permission on the semaphore " "set. This is a \"wait-for-zero\" operation: if I is zero, the " "operation can immediately proceed. Otherwise, if B is specified " "in I, B() fails with I set to B (and none of " "the operations in I is performed). Otherwise, I (the count " "of threads waiting until this semaphore's value becomes zero) is " "incremented by one and the thread sleeps until one of the following occurs:" msgstr "" "إذا كان I صفرًا، يجب أن تمتلك العملية صلاحية القراءة على مجموعة " "الإشارات. هذه عملية \"انتظار للصفر\": إذا كان I صفرًا، يمكن للعملية " "أن تستمر فورًا. خلاف ذلك، إذا تم تحديد B في I، يفشل " "B() مع تعيين I إلى B (ولا يتم تنفيذ أي من العمليات في " "I). خلاف ذلك، يتم زيادة I (عدد الخيوط المنتظرة حتى تصبح قيمة " "هذه الإشارة صفرًا) بمقدار واحد وينام الخيط حتى يحدث أحد الأمور التالية:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I becomes 0, at which time the value of I is decremented." msgstr "تصبح I 0، وعندها يتم تقليل قيمة I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The semaphore set is removed: B() fails, with I set to " "B." msgstr "" "تتم إزالة مجموعة الإشارات: يفشل B()، مع تعيين I إلى B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The calling thread catches a signal: the value of I is decremented " "and B() fails, with I set to B." msgstr "" "يلتقط الخيط المستدعي إشارة: يتم تقليل قيمة I ويفشل B()، مع " "تعيين I إلى B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is less than zero, the process must have alter permission on " "the semaphore set. If I is greater than or equal to the absolute " "value of I, the operation can proceed immediately: the absolute " "value of I is subtracted from I, and, if B is " "specified for this operation, the system adds the absolute value of " "I to the semaphore adjustment (I) value for this " "semaphore. If the absolute value of I is greater than I, " "and B is specified in I, B() fails, with " "I set to B (and none of the operations in I is " "performed). Otherwise, I (the counter of threads waiting for this " "semaphore's value to increase) is incremented by one and the thread sleeps " "until one of the following occurs:" msgstr "" "إذا كان I أقل من الصفر، يجب أن تمتلك العملية صلاحية التعديل على " "مجموعة الإشارات. إذا كانت I أكبر من أو تساوي القيمة المطلقة لـ " "I، يمكن للعملية أن تستمر فورًا: تُطرح القيمة المطلقة لـ I من " "I، وإذا تم تحديد B لهذه العملية، يضيف النظام القيمة " "المطلقة لـ I إلى قيمة تعديل الإشارة (I) لهذه الإشارة. إذا " "كانت القيمة المطلقة لـ I أكبر من I، وتم تحديد B " "في I، يفشل B()، مع تعيين I إلى B (ولا يتم " "تنفيذ أي من العمليات في I). خلاف ذلك، يتم زيادة I (عداد " "الخيوط المنتظرة لزيادة قيمة هذه الإشارة) بمقدار واحد وينام الخيط حتى يحدث " "أحد الأمور التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I becomes greater than or equal to the absolute value of I: " "the operation now proceeds, as described above." msgstr "" "تصبح I أكبر من أو تساوي القيمة المطلقة لـ I: تستمر العملية " "الآن، كما هو موصوف أعلاه." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The semaphore set is removed from the system: B() fails, with " "I set to B." msgstr "" "تتم إزالة مجموعة الإشارات من النظام: يفشل B()، مع تعيين I إلى " "B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The calling thread catches a signal: the value of I is decremented " "and B() fails, with I set to B." msgstr "" "يلتقط الخيط المستدعي إشارة: يتم تقليل قيمة I ويفشل B()، مع " "تعيين I إلى B." #. and #. .I sem_ctime #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On successful completion, the I value for each semaphore specified " "in the array pointed to by I is set to the caller's process ID. In " "addition, the I is set to the current time." msgstr "" "عند الإكمال بنجاح، يتم تعيين قيمة I لكل إشارة محددة في المصفوفة " "المشار إليها بواسطة I إلى معرف عملية المستدعي. بالإضافة إلى ذلك، يتم " "تعيين I إلى الوقت الحالي." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "semtimedop()" msgstr "semtimedop()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() behaves identically to B() except that in those " "cases where the calling thread would sleep, the duration of that sleep is " "limited by the amount of elapsed time specified by the I structure " "whose address is passed in the I argument. (This sleep interval " "will be rounded up to the system clock granularity, and kernel scheduling " "delays mean that the interval may overrun by a small amount.) If the " "specified time limit has been reached, B() fails with I " "set to B (and none of the operations in I is performed). If " "the I argument is NULL, then B() behaves exactly like " "B()." msgstr "" "يتصرف B() بشكل مماثل لـ B() باستثناء أنه في الحالات التي " "ينام فيها الخيط المستدعي، تكون مدة هذا النوم محدودة بمقدار الوقت المنقضي " "المحدد بواسطة بنية I التي يُمرر عنوانها في وسيط I. (سيتم " "تقريب فترة النوم هذه إلى دقة ساعة النظام، وتأخيرات جدولة النواة تعني أن " "الفترة قد تتجاوز بمقدار صغير.) إذا تم الوصول إلى الحد الزمني المحدد، يفشل " "B() مع تعيين I إلى B (ولا يتم تنفيذ أي من " "العمليات في I). إذا كان وسيط I هو NULL، فإن B() " "يتصرف تمامًا مثل B()." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that if B() is interrupted by a signal, causing the call " "to fail with the error B, the contents of I are left " "unchanged." msgstr "" "لاحظ أنه إذا تمت مقاطعة B() بواسطة إشارة، مما يتسبب في فشل " "الاستدعاء مع الخطأ B، تظل محتويات I دون تغيير." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() and B() return 0. On failure, they " "return -1, and set I to indicate the error." msgstr "" "عند النجاح، يعيد B() و B() القيمة 0. عند الفشل، يعيدان " "القيمة -1، ويضبطان I للإشارة إلى الخطأ." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The argument I is greater than B, the maximum number of " "operations allowed per system call." msgstr "" "الوسيط I أكبر من B، وهو الحد الأقصى لعدد العمليات المسموح بها " "لكل استدعاء نظام." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The calling process does not have the permissions required to perform the " "specified semaphore operations, and does not have the B " "capability in the user namespace that governs its IPC namespace." msgstr "" "لا تمتلك العملية المستدعية الصلاحيات المطلوبة لتنفيذ عمليات الإشارات " "المحددة، ولا تمتلك القدرة B في مساحة اسم المستخدم التي تحكم " "مساحة اسم IPC الخاصة بها." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An operation could not proceed immediately and either B was " "specified in I or the time limit specified in I expired." msgstr "" "لم تتمكن عملية من الاستمرار فورًا وتم تحديد B في I أو " "انتهى الحد الزمني المحدد في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An address specified in either the I or the I argument isn't " "accessible." msgstr "عنوان محدد في وسيط I أو I غير قابل للوصول." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For some operation the value of I is less than 0 or greater than or " "equal to the number of semaphores in the set." msgstr "" "لبعض العمليات، قيمة I أقل من 0 أو أكبر من أو تساوي عدد الإشارات في " "المجموعة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The semaphore set was removed." msgstr "حُذفت مجموعة السيمافور." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "While blocked in this system call, the thread caught a signal; see " "B(7)." msgstr "" "أثناء الحظر في استدعاء النظام هذا، التقط الخيط إشارة؛ انظر B(7)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The semaphore set doesn't exist, or I is less than zero, or I " "has a nonpositive value." msgstr "" "مجموعة السيمافور غير موجودة، أو I أقل من الصفر، أو I له قيمة " "غير موجبة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I of some operation specified B and the system does " "not have enough memory to allocate the undo structure." msgstr "" "يحدد I لبعض العمليات B ولا يمتلك النظام ذاكرة كافية " "لتخصيص بنية التراجع." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For some operation I is greater than B, the " "implementation dependent maximum value for I." msgstr "" "بالنسبة لبعض العمليات، I أكبر من B، القيمة القصوى " "المعتمدة على التنفيذ لـ I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "POSIX.1-2024." msgstr "POSIX.1-2024." #. type: SH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "SVr4, POSIX.1-2001." msgstr "SVr4, POSIX.1-2001." #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC. #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3." msgstr "SVr4، لينكس 2.5.52 (مُعاد توجيهه إلى لينكس 2.4.22)، glibc 2.3.3." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I structures of a process aren't inherited by the child " "produced by B(2), but they are inherited across an B(2) " "system call." msgstr "" "لا تُورث بنى I لعملية ما إلى الطفل الناتج عن B(2)، ولكنها " "تُورث عبر استدعاء نظام B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() is never automatically restarted after being interrupted by a " "signal handler, regardless of the setting of the B flag when " "establishing a signal handler." msgstr "" "لا يُعاد تشغيل B() آليًا أبدًا بعد مقاطعته بواسطة معالج إشارة، بغض النظر " "عن إعداد علامة B عند إنشاء معالج إشارة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A semaphore adjustment (I) value is a per-process, per-semaphore " "integer that is the negated sum of all operations performed on a semaphore " "specifying the B flag. Each process has a list of I " "values\\[em]one value for each semaphore on which it has operated using " "B. When a process terminates, each of its per-semaphore I " "values is added to the corresponding semaphore, thus undoing the effect of " "that process's operations on the semaphore (but see BUGS below). When a " "semaphore's value is directly set using the B or B request " "to B(2), the corresponding I values in all processes are " "cleared. The B(2) B flag allows more than one " "process to share a I list; see B(2) for details." msgstr "" "قيمة تعديل السيمافور (I) هي عدد صحيح لكل عملية ولكل سيمافور، وهو " "المجموع المنفي لجميع العمليات المنفذة على سيمافور مع تحديد علامة " "B. تمتلك كل عملية قائمة من قيم I\\[em]قيمة واحدة لكل " "سيمافور عملت عليه باستخدام B. عندما تنتهي عملية، تُضاف كل قيمة من " "قيم I الخاصة بكل سيمافور إلى السيمافور المقابل، مما يلغي تأثير " "عمليات تلك العملية على السيمافور (ولكن انظر الأخطاء أدناه). عندما تُضبط قيمة " "السيمافور مباشرة باستخدام طلب B أو B إلى B(2)، تُمسح " "قيم I المقابلة في جميع العمليات. تسمح علامة B(2) " "B لأكثر من عملية بمشاركة قائمة I؛ انظر B(2) " "للتفاصيل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I, I, I, and I values for a semaphore " "can all be retrieved using appropriate B(2) calls." msgstr "" "يمكن استرداد قيم I و I و I و I للسيمافور " "باستخدام استدعاءات B(2) المناسبة." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Semaphore limits" msgstr "حدود السيمافور" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following limits on semaphore set resources affect the B() call:" msgstr "تؤثر الحدود التالية على موارد مجموعة السيمافور على استدعاء B():" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4 #. This /proc file is not available in Linux 2.2 and earlier -- MTK #. See comment in Linux 3.19 source file include/uapi/linux/sem.h #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Maximum number of operations allowed for one B() call. Before Linux " "3.19, the default value for this limit was 32. Since Linux 3.19, the " "default value is 500. On Linux, this limit can be read and modified via the " "third field of I. I: this limit should not be " "raised above 1000, because of the risk of that B() fails due to " "kernel memory fragmentation when allocating memory to copy the I array." msgstr "" "الحد الأقصى لعدد العمليات المسموح بها لاستدعاء B() واحد. قبل لينكس " "3.19، كانت القيمة المبدئية لهذا الحد 32. منذ لينكس 3.19، القيمة المبدئية هي " "500. على لينكس، يمكن قراءة هذا الحد وتعديله عبر الحقل الثالث من I. I<ملاحظة>: لا ينبغي رفع هذا الحد فوق 1000، بسبب خطر فشل " "B() بسبب تجزئة ذاكرة النواة عند تخصيص الذاكرة لنسخ مصفوفة I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Maximum allowable value for I: implementation dependent (32767)." msgstr "القيمة القصوى المسموح بها لـ I: معتمدة على التنفيذ (32767)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The implementation has no intrinsic limits for the adjust on exit maximum " "value (B), the system wide maximum number of undo structures " "(B) and the per-process maximum number of undo entries system " "parameters." msgstr "" "لا يمتلك التنفيذ حدودًا جوهرية للقيمة القصوى للتعديل عند الخروج (B)، " "والحد الأقصى لعدد بنى التراجع على مستوى النظام (B)، ومعاملات النظام " "للحد الأقصى لعدد إدخالات التراجع لكل عملية." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When a process terminates, its set of associated I structures is " "used to undo the effect of all of the semaphore operations it performed with " "the B flag. This raises a difficulty: if one (or more) of these " "semaphore adjustments would result in an attempt to decrease a semaphore's " "value below zero, what should an implementation do? One possible approach " "would be to block until all the semaphore adjustments could be performed. " "This is however undesirable since it could force process termination to " "block for arbitrarily long periods. Another possibility is that such " "semaphore adjustments could be ignored altogether (somewhat analogously to " "failing when B is specified for a semaphore operation). Linux " "adopts a third approach: decreasing the semaphore value as far as possible " "(i.e., to zero) and allowing process termination to proceed immediately." msgstr "" "عندما تنتهي عملية، تُستخدم مجموعة بنى I المرتبطة بها لإلغاء تأثير " "جميع عمليات السيمافور التي نفذتها مع علامة B. يثير هذا صعوبة: إذا " "أدى واحد (أو أكثر) من تعديلات السيمافور هذه إلى محاولة تقليل قيمة السيمافور " "إلى ما دون الصفر، فماذا يجب أن يفعل التنفيذ؟ أحد الأساليب الممكنة هو الحظر " "حتى يمكن تنفيذ جميع تعديلات السيمافور. هذا غير مرغوب فيه لأنه قد يجبر إنهاء " "العملية على الحظر لفترات طويلة بشكل تعسفي. احتمال آخر هو تجاهل تعديلات " "السيمافور هذه تمامًا (مشابه إلى حد ما للفشل عند تحديد B لعملية " "سيمافور). يتبنى لينكس أسلوبًا ثالثًا: تقليل قيمة السيمافور قدر الإمكان (أي إلى " "الصفر) والسماح بإنهاء العملية فورًا." #. The bug report: #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2 #. the fix: #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In Linux 2.6.x, x E= 10, there is a bug that in some circumstances " "prevents a thread that is waiting for a semaphore value to become zero from " "being woken up when the value does actually become zero. This bug is fixed " "in Linux 2.6.11." msgstr "" "في لينكس 2.6.x، x E= 10، يوجد خطأ يمنع في بعض الظروف إيقاظ خيط ينتظر أن " "تصبح قيمة السيمافور صفرًا عندما تصبح القيمة صفرًا بالفعل. أُصلح هذا الخطأ في " "لينكس 2.6.11." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following code segment uses B() to atomically wait for the value " "of semaphore 0 to become zero, and then increment the semaphore value by one." msgstr "" "يستخدم مقطع الكود التالي B() للانتظار ذريًا حتى تصبح قيمة السيمافور 0 " "صفرًا، ثم زيادة قيمة السيمافور بمقدار واحد." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "struct sembuf sops[2];\n" "int semid;\n" "\\&\n" "/* Code to set \\f[I]semid\\fR omitted */\n" "\\&\n" "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n" "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n" "sops[0].sem_flg = 0;\n" "\\&\n" "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n" "sops[1].sem_op = 1; /* Increment value by one */\n" "sops[1].sem_flg = 0;\n" "\\&\n" "if (semop(semid, sops, 2) == -1) {\n" " perror(\"semop\");\n" " exit(EXIT_FAILURE);\n" "}\n" msgstr "" "struct sembuf sops[2];\n" "int semid;\n" "\\&\n" "/* Code to set \\f[I]semid\\fR omitted */\n" "\\&\n" "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n" "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n" "sops[0].sem_flg = 0;\n" "\\&\n" "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n" "sops[1].sem_op = 1; /* Increment value by one */\n" "sops[1].sem_flg = 0;\n" "\\&\n" "if (semop(semid, sops, 2) == -1) {\n" " perror(\"semop\");\n" " exit(EXIT_FAILURE);\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A further example of the use of B() can be found in B(2)." msgstr "يمكن العثور على مثال إضافي لاستخدام B() في B(2)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(2), B(2), B(2), B(2), " "B(7), B(7), B(7), B