# 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:38+0200\n" "PO-Revision-Date: 2026-06-02 20: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 "pthread_mutex_init" msgstr "pthread_mutex_init" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2025-05-17" msgstr "17 مايو 2025" #. 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 "" "pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " "pthread_mutex_unlock, pthread_mutex_destroy - operations on mutexes" msgstr "" "pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, " "pthread_mutex_unlock, pthread_mutex_destroy - عمليات على كائنات الاستبعاد " "المتبادل" #. 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 Epthread.hE>\n" msgstr "B<#include Epthread.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< = PTHREAD_MUTEX_INITIALIZER;>\n" "BIB< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" "BIB< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\n" msgstr "" "BIB< = PTHREAD_MUTEX_INITIALIZER;>\n" "BIB< = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;>\n" "BIB< = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;>\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<,>\n" "B< const pthread_mutexattr_t *>IB<);>\n" "BIB<);>\n" "BIB<);>\n" "BIB<);>\n" "BIB<);>\n" msgstr "" "BIB<,>\n" "B< const pthread_mutexattr_t *>IB<);>\n" "BIB<);>\n" "BIB<);>\n" "BIB<);>\n" "BIB<);>\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 "" "A mutex is a MUTual EXclusion device, and is useful for protecting shared " "data structures from concurrent modifications, and implementing critical " "sections and monitors." msgstr "" "كائن الاستبعاد المتبادل هو أداة استبعاد متبادل، وهو مفيد لحماية هياكل " "البيانات المشتركة من التعديلات المتزامنة، وتنفيذ المقاطع الحرجة والمراقبين." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A mutex has two possible states: unlocked (not owned by any thread), and " "locked (owned by one thread). A mutex can never be owned by two different " "threads simultaneously. A thread attempting to lock a mutex that is already " "locked by another thread is suspended until the owning thread unlocks the " "mutex first." msgstr "" "لكائن الاستبعاد المتبادل حالتان محتملتان: غير مقفل (لا يملكه أي خيط)، ومقفل " "(يملكه خيط واحد). لا يمكن أبدًا أن يملك خيطان مختلفان كائن الاستبعاد المتبادل " "في وقت واحد. يُعلّق الخيط الذي يحاول قفل كائن استبعاد متبادل مقفل بالفعل " "بواسطة خيط آخر حتى يقوم الخيط المالك بفتح قفل كائن الاستبعاد المتبادل أولاً." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() initializes the mutex object pointed to by I " "according to the mutex attributes specified in I. If " "I is NULL, default attributes are used instead." msgstr "" "تُهيئ الدالة B() كائن الاستبعاد المتبادل المشار إليه " "بواسطة I وفقًا لسمات كائن الاستبعاد المتبادل المحددة في I. " "إذا كان I NULL، تُستخدم السمات المبدئية بدلاً من ذلك." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The LinuxThreads implementation supports only one mutex attributes, the " "I, which is either \"fast\", \"recursive\", or \"error " "checking\". The kind of a mutex determines whether it can be locked again " "by a thread that already owns it. The default kind is \"fast\". See " "B(3) for more information on mutex attributes." msgstr "" "يدعم تطبيق LinuxThreads سمة واحدة فقط لكائن الاستبعاد المتبادل، وهي I<نوع " "كائن الاستبعاد المتبادل>، والتي تكون إما \"سريع\" أو \"استرجاعي\" أو \"فحص " "الأخطاء\". يحدد نوع كائن الاستبعاد المتبادل ما إذا كان يمكن قفله مرة أخرى " "بواسطة خيط يملكه بالفعل. النوع المبدئي هو \"سريع\". راجع " "B(3) لمزيد من المعلومات حول سمات كائن الاستبعاد " "المتبادل." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Variables of type I can also be initialized statically, " "using the constants B (for fast mutexes), " "B (for recursive mutexes), and " "B (for error checking mutexes)." msgstr "" "يمكن أيضًا تهيئة المتغيرات من النوع I بشكل ثابت، باستخدام " "الثوابت B (لكائنات الاستبعاد المتبادل السريعة)، " "وB (لكائنات الاستبعاد المتبادل " "الاسترجاعية)، وB (لكائنات الاستبعاد " "المتبادل لفحص الأخطاء)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() locks the given mutex. If the mutex is currently " "unlocked, it becomes locked and owned by the calling thread, and " "B() returns immediately. If the mutex is already " "locked by another thread, B() suspends the calling " "thread until the mutex is unlocked." msgstr "" "تقفل الدالة B() كائن الاستبعاد المتبادل المُعطى. إذا كان " "كائن الاستبعاد المتبادل غير مقفل حاليًا، يصبح مقفلاً ويملكه الخيط المستدعي، " "وتعود الدالة B() فورًا. إذا كان كائن الاستبعاد المتبادل " "مقفلاً بالفعل بواسطة خيط آخر، تُعلّق الدالة B() الخيط " "المستدعي حتى يُفتح قفل كائن الاستبعاد المتبادل." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If the mutex is already locked by the calling thread, the behavior of " "B() depends on the kind of the mutex. If the mutex is " "of the \"fast\" kind, the calling thread is suspended until the mutex is " "unlocked, thus effectively causing the calling thread to deadlock. If the " "mutex is of the \"error checking\" kind, B() returns " "immediately with the error code B. If the mutex is of the " "\"recursive\" kind, B() succeeds and returns " "immediately, recording the number of times the calling thread has locked the " "mutex. An equal number of B() operations must be " "performed before the mutex returns to the unlocked state." msgstr "" "إذا كان كائن الاستبعاد المتبادل مقفلاً بالفعل بواسطة الخيط المستدعي، يعتمد " "سلوك الدالة B() على نوع كائن الاستبعاد المتبادل. إذا كان " "كائن الاستبعاد المتبادل من النوع \"سريع\"، يُعلّق الخيط المستدعي حتى يُفتح قفل " "كائن الاستبعاد المتبادل، مما يتسبب فعليًا في توقف الخيط المستدعي تامًا. إذا " "كان كائن الاستبعاد المتبادل من النوع \"فحص الأخطاء\"، تعود الدالة " "B() فورًا برمز الخطأ B. إذا كان كائن الاستبعاد " "المتبادل من النوع \"استرجاعي\"، تنجح الدالة B() وتعود " "فورًا، مسجلة عدد المرات التي قام فيها الخيط المستدعي بقفل كائن الاستبعاد " "المتبادل. يجب تنفيذ عدد مساوٍ من عمليات B() قبل أن يعود " "كائن الاستبعاد المتبادل إلى الحالة غير المقفلة." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() behaves identically to B(), " "except that it does not block the calling thread if the mutex is already " "locked by another thread (or by the calling thread in the case of a \"fast\" " "mutex). Instead, B() returns immediately with the " "error code B." msgstr "" "تتصرف الدالة B() بشكل مماثل للدالة " "B()، باستثناء أنها لا تحجب الخيط المستدعي إذا كان كائن " "الاستبعاد المتبادل مقفلاً بالفعل بواسطة خيط آخر (أو بواسطة الخيط المستدعي في " "حالة كائن الاستبعاد المتبادل \"السريع\"). بدلاً من ذلك، تعود الدالة " "B() فورًا برمز الخطأ B." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() unlocks the given mutex. The mutex is assumed to " "be locked and owned by the calling thread on entrance to " "B(). If the mutex is of the \"fast\" kind, " "B() always returns it to the unlocked state. If it " "is of the \"recursive\" kind, it decrements the locking count of the mutex " "(number of B() operations performed on it by the " "calling thread), and only when this count reaches zero is the mutex actually " "unlocked." msgstr "" "تفتح الدالة B() قفل كائن الاستبعاد المتبادل المُعطى. " "يُفترض أن كائن الاستبعاد المتبادل مقفل ويملكه الخيط المستدعي عند الدخول إلى " "الدالة B(). إذا كان كائن الاستبعاد المتبادل من النوع " "\"سريع\"، تعيده الدالة B() دائمًا إلى الحالة غير " "المقفلة. إذا كان من النوع \"استرجاعي\"، فإنها تُنقص عدد القفل لكائن الاستبعاد " "المتبادل (عدد عمليات B() التي تم تنفيذها عليه بواسطة " "الخيط المستدعي)، وفقط عندما يصل هذا العدد إلى الصفر يُفتح قفل كائن الاستبعاد " "المتبادل فعليًا." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "On \"error checking\" and \"recursive\" mutexes, B() " "actually checks at run-time that the mutex is locked on entrance, and that " "it was locked by the same thread that is now calling " "B(). If these conditions are not met, an error code " "is returned and the mutex remains unchanged. \"Fast\" mutexes perform no " "such checks, thus allowing a locked mutex to be unlocked by a thread other " "than its owner. This is non-portable behavior and must not be relied upon." msgstr "" "في كائنات الاستبعاد المتبادل من نوع \"فحص الأخطاء\" و\"الاسترجاعي\"، تتحقق " "الدالة B() فعليًا في وقت التشغيل من أن كائن الاستبعاد " "المتبادل مقفل عند الدخول، وأنه قد تم قفله بواسطة نفس الخيط الذي يستدعي الآن " "الدالة B(). إذا لم يتم استيفاء هذه الشروط، يُعاد رمز " "خطأ ويبقى كائن الاستبعاد المتبادل دون تغيير. لا تقوم كائنات الاستبعاد " "المتبادل \"السريعة\" بإجراء مثل هذه الفحوصات، مما يسمح بفتح قفل كائن استبعاد " "متبادل مقفل بواسطة خيط غير مالكه. هذا سلوك غير محمول ويجب عدم الاعتماد عليه." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() destroys a mutex object, freeing the resources " "it might hold. The mutex must be unlocked on entrance. In the LinuxThreads " "implementation, no resources are associated with mutex objects, thus " "B() actually does nothing except checking that the " "mutex is unlocked." msgstr "" "تُدمر الدالة B() كائن استبعاد متبادل، محررة الموارد " "التي قد يحملها. يجب أن يكون كائن الاستبعاد المتبادل غير مقفل عند الدخول. في " "تطبيق LinuxThreads، لا توجد موارد مرتبطة بكائنات الاستبعاد المتبادل، " "وبالتالي فإن الدالة B() لا تفعل شيئًا فعليًا سوى التحقق " "من أن كائن الاستبعاد المتبادل غير مقفل." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "CANCELLATION" msgstr "إلغاء" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "None of the mutex functions is a cancelation point, not even " "B(), in spite of the fact that it can suspend a thread " "for arbitrary durations. This way, the status of mutexes at cancelation " "points is predictable, allowing cancelation handlers to unlock precisely " "those mutexes that need to be unlocked before the thread stops executing. " "Consequently, threads using deferred cancelation should never hold a mutex " "for extended periods of time." msgstr "" "لا تُعد أي من دوال كائن الاستبعاد المتبادل نقطة إلغاء، ولا حتى الدالة " "B()، على الرغم من حقيقة أنها يمكن أن تعلق خيطًا لفترات " "زمنية عشوائية. بهذه الطريقة، تكون حالة كائنات الاستبعاد المتبادل في نقاط " "الإلغاء قابلة للتنبؤ، مما يسمح لمعالجات الإلغاء بفتح قفل تلك الكائنات التي " "تحتاج إلى فتح قفلها بدقة قبل أن يتوقف الخيط عن التنفيذ. وبالتالي، يجب ألا " "تحتفظ الخيوط التي تستخدم الإلغاء المؤجل بكائن استبعاد متبادل لفترات زمنية " "طويلة." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ASYNC-SIGNAL SAFETY" msgstr "سلامة الإشارة غير المتزامنة" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The mutex functions are not async-signal safe. What this means is that they " "should not be called from a signal handler. In particular, calling " "B() or B() from a signal handler " "may deadlock the calling thread." 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 "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() always returns 0. The other mutex functions return " "0 on success and a non-zero error code on error." msgstr "" "تعود الدالة B() دائمًا بالقيمة 0. تعود دوال كائن " "الاستبعاد المتبادل الأخرى بالقيمة 0 عند النجاح ورمز خطأ غير صفري عند الخطأ." #. 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: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() function returns the following error code on " "error:" 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" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The mutex has not been properly initialized." 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The mutex is already locked by the calling thread (\"error checking\" " "mutexes only)." msgstr "" "كائن الاستبعاد المتبادل مقفل بالفعل بواسطة الخيط المستدعي (كائنات الاستبعاد " "المتبادل من نوع \"فحص الأخطاء\" فقط)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() function returns the following error codes " "on error:" 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" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The mutex could not be acquired because it was currently locked." msgstr "تعذر الحصول على المِفصل لأنه كان مقفلاً حالياً." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() function returns the following error code on " "error:" 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" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The calling thread does not own the mutex (\"error checking\" mutexes only)." msgstr "لا يملك الخيط المستدعي المِفصل (لمفاصل \"فحص الأخطاء\" فقط)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B() function returns the following error code on " "error:" msgstr "تُرجع الدالة B() كود الخطأ التالي عند حدوث خطأ:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The mutex is currently locked." msgstr "المِفصل مقفل حالياً." #. 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(3), B(3), " "B(3)." msgstr "" "B(3)، B(3)، " "B(3)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLE" msgstr "مثال" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A shared global variable I can be protected by a mutex as follows:" msgstr "يمكن حماية متغير عام مشترك I بواسطة مِفصل كما يلي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B\n" msgstr "" "B\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "All accesses and modifications to I should be bracketed by calls to " "B() and B() as follows:" msgstr "" "يجب وضع جميع الوصولات والتعديلات على I بين استدعاءات " "B() و B() كما يلي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B\n" msgstr "" "B\n" #. type: TH #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "2024-06-16" msgstr "16 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B initializes the mutex object pointed to by I " "according to the mutex attributes specified in I. If " "I is B, default attributes are used instead." msgstr "" "B يُهيئ كائن المِفصل المشار إليه بواسطة I وفقاً " "لسمات المِفصل المحددة في I. إذا كان I هو B، " "تُستخدم السمات المبدئية بدلاً من ذلك." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The LinuxThreads implementation supports only one mutex attributes, the " "I, which is either ``fast'', ``recursive'', or ``error " "checking''. The kind of a mutex determines whether it can be locked again " "by a thread that already owns it. The default kind is ``fast''. See " "B(3) for more information on mutex attributes." msgstr "" "يدعم تطبيق LinuxThreads سمة مِفصل واحدة فقط، وهي I<نوع المِفصل>، والتي تكون " "إما \"سريع\" أو \"تكراري\" أو \"فحص الأخطاء\". يحدد نوع المِفصل ما إذا كان " "يمكن قفله مرة أخرى بواسطة خيط يملكه بالفعل. النوع المبدئي هو \"سريع\". " "راجع B(3) لمزيد من المعلومات حول سمات المِفصل." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Variables of type B can also be initialized statically, " "using the constants B (for fast mutexes), " "B (for recursive mutexes), and " "B (for error checking mutexes)." msgstr "" "يمكن أيضاً تهيئة متغيرات من النوع B بشكل ثابت، باستخدام " "الثوابت B (للمفاصل السريعة)، و " "B (للمفاصل التكرارية)، و " "B (لمفاصل فحص الأخطاء)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B locks the given mutex. If the mutex is currently " "unlocked, it becomes locked and owned by the calling thread, and " "B returns immediately. If the mutex is already locked " "by another thread, B suspends the calling thread until " "the mutex is unlocked." msgstr "" "B يقفل المِفصل المُعطى. إذا كان المِفصل غير مقفل حالياً، " "يصبح مقفلاً ويملكه الخيط المستدعي، وتُرجع B فوراً. إذا كان " "المِفصل مقفلاً بالفعل بواسطة خيط آخر، تُعلق B الخيط " "المستدعي حتى يُقفل المِفصل." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If the mutex is already locked by the calling thread, the behavior of " "B depends on the kind of the mutex. If the mutex is of " "the ``fast'' kind, the calling thread is suspended until the mutex is " "unlocked, thus effectively causing the calling thread to deadlock. If the " "mutex is of the ``error checking'' kind, B returns " "immediately with the error code B. If the mutex is of the " "``recursive'' kind, B succeeds and returns immediately, " "recording the number of times the calling thread has locked the mutex. An " "equal number of B operations must be performed before " "the mutex returns to the unlocked state." msgstr "" "إذا كان المِفصل مقفلاً بالفعل بواسطة الخيط المستدعي، يعتمد سلوك " "B على نوع المِفصل. إذا كان المِفصل من النوع \"السريع\"، " "يُعلق الخيط المستدعي حتى يُقفل المِفصل، مما يتسبب فعلياً في توقف الخيط " "المستدعي. إذا كان المِفصل من النوع \"فحص الأخطاء\"، تُرجع " "B فوراً مع كود الخطأ B. إذا كان المِفصل من النوع " "\"التكراري\"، تنجح B وتُرجع فوراً، مسجلة عدد المرات التي " "قفل فيها الخيط المستدعي المِفصل. يجب تنفيذ عدد مساوٍ من عمليات " "B قبل أن يعود المِفصل إلى الحالة غير المقفلة." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B behaves identically to B, " "except that it does not block the calling thread if the mutex is already " "locked by another thread (or by the calling thread in the case of a ``fast'' " "mutex). Instead, B returns immediately with the " "error code B." msgstr "" "يتصرف B بشكل مماثل لـ B، باستثناء " "أنه لا يحظر الخيط المستدعي إذا كان المِفصل مقفلاً بالفعل بواسطة خيط آخر (أو " "بواسطة الخيط المستدعي في حالة المِفصل \"السريع\"). بدلاً من ذلك، تُرجع " "B فوراً مع كود الخطأ B." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B unlocks the given mutex. The mutex is assumed to be " "locked and owned by the calling thread on entrance to " "B. If the mutex is of the ``fast'' kind, " "B always returns it to the unlocked state. If it is " "of the ``recursive'' kind, it decrements the locking count of the mutex " "(number of B operations performed on it by the calling " "thread), and only when this count reaches zero is the mutex actually " "unlocked." msgstr "" "B يُقفل المِفصل المُعطى. يُفترض أن المِفصل مقفل ويملكه " "الخيط المستدعي عند الدخول إلى B. إذا كان المِفصل من " "النوع \"السريع\"، يُعيده B دائماً إلى الحالة غير " "المقفلة. إذا كان من النوع \"التكراري\"، يُقلل عدد قفل المِفصل (عدد عمليات " "B التي نفذها الخيط المستدعي عليه)، وفقط عندما يصل هذا " "العدد إلى الصفر يُقفل المِفصل فعلياً." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "On ``error checking'' and ``recursive'' mutexes, B " "actually checks at run-time that the mutex is locked on entrance, and that " "it was locked by the same thread that is now calling " "B. If these conditions are not met, an error code is " "returned and the mutex remains unchanged. ``Fast'' mutexes perform no such " "checks, thus allowing a locked mutex to be unlocked by a thread other than " "its owner. This is non-portable behavior and must not be relied upon." msgstr "" "على مفاصل \"فحص الأخطاء\" و\"التكرارية\"، يتحقق B " "فعلياً في وقت التشغيل من أن المِفصل مقفل عند الدخول، وأنه قُفل بواسطة نفس الخيط " "الذي يستدعي الآن B. إذا لم تتحقق هذه الشروط، يُرجع كود " "خطأ ويبقى المِفصل دون تغيير. لا تقوم المفاصل \"السريعة\" بمثل هذه الفحوصات، " "مما يسمح بإقفال مِفصل مقفل بواسطة خيط غير مالكه. هذا سلوك غير محمول ويجب عدم " "الاعتماد عليه." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B destroys a mutex object, freeing the resources it " "might hold. The mutex must be unlocked on entrance. In the LinuxThreads " "implementation, no resources are associated with mutex objects, thus " "B actually does nothing except checking that the " "mutex is unlocked." msgstr "" "B يُدمر كائن المِفصل، محرراً الموارد التي قد يحملها. " "يجب أن يكون المِفصل غير مقفل عند الدخول. في تطبيق LinuxThreads، لا توجد " "موارد مرتبطة بكائنات المِفصل، وبالتالي لا يفعل B شيئاً " "في الواقع سوى التحقق من أن المِفصل غير مقفل." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "None of the mutex functions is a cancelation point, not even " "B, in spite of the fact that it can suspend a thread for " "arbitrary durations. This way, the status of mutexes at cancelation points " "is predictable, allowing cancelation handlers to unlock precisely those " "mutexes that need to be unlocked before the thread stops executing. " "Consequently, threads using deferred cancelation should never hold a mutex " "for extended periods of time." msgstr "" "لا تُعد أي من دوال المزامنة (mutex) نقطة إلغاء، ولا حتى " "B، رغم قدرتها على تعليق خيط لفترات زمنية عشوائية. بهذه " "الطريقة، تكون حالة المزامنات عند نقاط الإلغاء قابلة للتوقع، مما يسمح " "لمعالجات الإلغاء بفتح قفل تلك المزامنات التي تحتاج إلى فتح قفلها بدقة قبل " "توقف الخيط عن التنفيذ. وبالتالي، يجب على الخيوط التي تستخدم الإلغاء المؤجل " "ألا تمسك بمزامنة لفترات زمنية طويلة." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The mutex functions are not async-signal safe. What this means is that they " "should not be called from a signal handler. In particular, calling " "B or B from a signal handler may " "deadlock the calling thread." msgstr "" "دوال المزامنة ليست آمنة للإشارات غير المتزامنة. معنى هذا أنه لا ينبغي " "استدعاؤها من معالج إشارة. على وجه الخصوص، قد يؤدي استدعاء " "B أو B من معالج إشارة إلى تعطيل " "الخيط المستدعي (deadlock)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B always returns 0. The other mutex functions return 0 " "on success and a non-zero error code on error." msgstr "" "تُرجع B دائمًا 0. تُرجع دوال المزامنة الأخرى 0 عند النجاح " "ورمز خطأ غير صفري عند الخطأ." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B function returns the following error code on error:" msgstr "تُرجع الدالة B رمز الخطأ التالي عند الخطأ:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The mutex is already locked by the calling thread (``error checking'' " "mutexes only)." msgstr "" "المزامنة مقفلة بالفعل بواسطة الخيط المستدعي (لمزامنات \"فحص الأخطاء\" فقط)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B function returns the following error codes on " "error:" msgstr "تُرجع الدالة B رموز الخطأ التالية عند الخطأ:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B function returns the following error code on " "error:" msgstr "تُرجع الدالة B رمز الخطأ التالي عند الخطأ:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The calling thread does not own the mutex (``error checking'' mutexes only)." msgstr "الخيط المستدعي لا يملك المزامنة (لمزامنات \"فحص الأخطاء\" فقط)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B function returns the following error code on " "error:" msgstr "تُرجع الدالة B رمز الخطأ التالي عند الخطأ:" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "All accesses and modifications to I should be bracketed by calls to " "B and B as follows:" msgstr "" "يجب وضع جميع الوصولات والتعديلات على I بين استدعاءات " "B و B كما يلي:" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"