# 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\n" "POT-Creation-Date: 2026-06-05 06:42+0200\n" "PO-Revision-Date: 2026-06-03 04:49+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" ".MIME-Version: 1.0\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 "select" msgstr "select" #. 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 "" "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O " "multiplexing" msgstr "" "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - تعدد الإرسال " "المتزامن للإدخال/الإخراج" #. 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/select.hE>\n" msgstr "B<#include Esys/select.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B /* .\\|.\\|.\\& */ B\n" msgstr "B /* .\\|.\\|.\\& */ B\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<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< struct timeval *_Nullable restrict >IB<);>\n" msgstr "" "BIB<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< struct timeval *_Nullable restrict >IB<);>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, fd_set *>IB<);>\n" "BIB<, const fd_set *>IB<);>\n" "BIB<, fd_set *>IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, fd_set *>IB<);>\n" "BIB<, const fd_set *>IB<);>\n" "BIB<, fd_set *>IB<);>\n" "BIB<);>\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<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< const struct timespec *_Nullable restrict >IB<,>\n" "B< const sigset_t *_Nullable restrict >IB<);>\n" msgstr "" "BIB<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< const struct timespec *_Nullable restrict >IB<,>\n" "B< const sigset_t *_Nullable restrict >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 " _POSIX_C_SOURCE E= 200112L\n" msgstr " _POSIX_C_SOURCE E= 200112L\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 "" "B: B() يمكنه مراقبة أرقام واصفات الملفات الأقل من " "B (1024) فقط\\[em]حد منخفض بشكل غير معقول للعديد من التطبيقات " "الحديثة\\[em]وهذا القيد لن يتغير. يجب على جميع التطبيقات الحديثة استخدام " "B(2) أو B(7) بدلاً من ذلك، والتي لا تعاني من هذا القيد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() يسمح للبرنامج بمراقبة واصفات ملفات متعددة، منتظراً حتى يصبح واحد " "أو أكثر من واصفات الملفات \"جاهزاً\" لفئة معينة من عمليات الإدخال/الإخراج " "(مثل، إدخال ممكن). يعتبر واصف الملف جاهزاً إذا كان من الممكن تنفيذ عملية " "إدخال/إخراج مقابلة (مثل، B(2)، أو B(2) صغير بما يكفي) دون حظر." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "fd_set" msgstr "fd_set" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A structure type that can represent a set of file descriptors. According to " "POSIX, the maximum number of file descriptors in an I structure is " "the value of the macro B." msgstr "" "نوع بنية يمكنه تمثيل مجموعة من واصفات الملفات. وفقاً لـ POSIX، الحد الأقصى " "لعدد واصفات الملفات في بنية I هو قيمة الماكرو B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "File descriptor sets" msgstr "مجموعات واصفات الملفات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The principal arguments of B() هي ثلاث \"مجموعات\" من واصفات الملفات " "(مُعلنة بالنوع I)، والتي تسمح للمستدعي بالانتظار لثلاث فئات من " "الأحداث على مجموعة واصفات الملفات المحددة. يمكن تحديد كل وسيطة من I " "كـ NULL إذا لم تكن هناك واصفات ملفات يجب مراقبتها لفئة الأحداث المقابلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B: Upon return, each of the file descriptor sets is modified in " "place to indicate which file descriptors are currently \"ready\". Thus, if " "using B() داخل حلقة، يجب I<إعادة تهيئة> المجموعات قبل كل استدعاء." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The contents of a file descriptor set can be manipulated using the following " "macros:" 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 "" "This macro clears (removes all file descriptors from) I. It should be " "employed as the first step in initializing a file descriptor set." msgstr "" "يقوم هذا الماكرو بمسح (إزالة جميع واصفات الملفات من) 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 "" "This macro adds the file descriptor I to I. Adding a file " "descriptor that is already present in the set is a no-op, and does not " "produce an error." 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 "" "This macro removes the file descriptor I from I. Removing a file " "descriptor that is not present in the set is a no-op, and does not produce " "an error." 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 "" "B(), the B() macro can be " "used to test if a file descriptor is still present in a set. B() " "returns nonzero if the file descriptor I is present in I, and zero " "if it is not." msgstr "" "يقوم B()، يمكن استخدام الماكرو B() لاختبار ما إذا كان " "واصف الملف لا يزال موجوداً في مجموعة. يُرجع B() قيمة غير صفرية إذا " "كان واصف الملف I موجوداً في I، وصفراً إذا لم يكن كذلك." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Arguments" msgstr "المعطيات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The arguments of B() هي كما يلي:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched to see if they are ready for " "reading. A file descriptor is ready for reading if a read operation will " "not block; in particular, a file descriptor is also ready on end-of-file." msgstr "" "يتم مراقبة واصفات الملفات في هذه المجموعة لمعرفة ما إذا كانت جاهزة للقراءة. " "واصف الملف جاهز للقراءة إذا كانت عملية القراءة لن تحظر؛ على وجه الخصوص، واصف " "الملف جاهز أيضًا عند نهاية الملف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B()، سيتم مسح I من جميع واصفات الملفات باستثناء " "تلك الجاهزة للقراءة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched to see if they are ready for " "writing. A file descriptor is ready for writing if a write operation will " "not block. However, even if a file descriptor indicates as writable, a " "large write may still block." msgstr "" "يتم مراقبة واصفات الملفات في هذه المجموعة لمعرفة ما إذا كانت جاهزة للكتابة. " "واصف الملف جاهز للكتابة إذا كانت عملية الكتابة لن تحظر. ومع ذلك، حتى إذا " "أشار واصف الملف إلى أنه قابل للكتابة، فقد تظل الكتابة الكبيرة تحظر." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B()، سيتم مسح I من جميع واصفات الملفات " "باستثناء تلك الجاهزة للكتابة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched for \"exceptional " "conditions\". For examples of some exceptional conditions, see the " "discussion of B in B(2)." msgstr "" "يتم مراقبة واصفات الملفات في هذه المجموعة لـ \"ظروف استثنائية\". للحصول على " "أمثلة لبعض الظروف الاستثنائية، انظر مناقشة B في B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B()، سيتم مسح I من جميع واصفات الملفات " "باستثناء تلك التي حدثت لها حالة استثنائية." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This argument should be set to the highest-numbered file descriptor in any " "of the three sets, plus 1. The indicated file descriptors in each set are " "checked, up to this limit (but see BUGS)." msgstr "" "يجب تعيين هذه الوسيطة إلى أعلى واصف ملف مرقم في أي من المجموعات الثلاث، زائد " "1. يتم فحص واصفات الملفات المشار إليها في كل مجموعة، حتى هذا الحد (ولكن " "انظر الأخطاء)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument is a I structure (shown below) that " "specifies the interval that B() منتظراً حتى يصبح واصف الملف جاهزاً. سوف يحظر " "الاستدعاء حتى:" #. 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 "a file descriptor becomes ready;" msgstr "يصبح واصف الملف جاهزًا؛" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the call is interrupted by a signal handler; or" msgstr "الاستدعاء قوطع بواسطة معالج إشارة؛ أو" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the timeout expires." msgstr "انتهاء المهلة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that the I interval will be rounded up to the system clock " "granularity, and kernel scheduling delays mean that the blocking interval " "may overrun by a small amount." msgstr "" "لاحظ أن فاصل I سيتم تقريبه لأعلى إلى دقة ساعة النظام، وتأخيرات " "جدولة النواة تعني أن فاصل الحظر قد يتجاوز بمقدار صغير." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If both fields of the I structure are zero, then 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 specified as NULL, B() يحظر إلى أجل غير مسمى " "منتظراً حتى يصبح واصف الملف جاهزاً." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "pselect()" msgstr "pselect()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call allows an application to safely wait until " "either a file descriptor becomes ready or until a signal is caught." msgstr "" "استدعاء النظام B() يسمح للتطبيق بالانتظار بأمان حتى يصبح واصف " "الملف جاهزاً أو حتى يتم التقاط إشارة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The operation of B() و B() متطابقة، باستثناء هذه الاختلافات الثلاثة:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() مهلة زمنية من النوع I (مع الثواني " "والميكروثواني)، بينما تستخدم B() النوع I (مع " "الثواني والنانوثواني)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() الوسيط I للإشارة إلى مقدار الوقت المتبقي. لا " "تغيّر B() هذه الوسيط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() على وسيط I، وتتصرف مثل B() التي " "استُدعيت مع I بقيمة NULL." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is a pointer to a signal mask (see B(2)); if it is " "not NULL, then B() first replaces the current signal mask by the " "one pointed to by I, then does the \"select\" function, and then " "restores the original signal mask. (If I is NULL, the signal mask " "is not modified during the B() call.)" msgstr "" "I هو مؤشر لقناع إشارة (انظر B(2))؛ إذا لم يكن NULL، " "فإن B() تستبدل أولاً قناع الإشارة الحالي بالقناع المشار إليه بواسطة " "I، ثم تؤدي وظيفة \"select\"، ثم تستعيد قناع الإشارة الأصلي. (إذا " "كان I هو NULL، لا يُعدّل قناع الإشارة أثناء استدعاء B().)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Other than the difference in the precision of the I argument, the " "following B() call:" msgstr "" "بخلاف الاختلاف في دقة وسيط I، فإن استدعاء B() التالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" " timeout, &sigmask);\n" msgstr "" "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" " timeout, &sigmask);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "is equivalent to I executing the following calls:" 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 "" "sigset_t origmask;\n" "\\&\n" "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" msgstr "" "sigset_t origmask;\n" "\\&\n" "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The reason that B() is needed is that if one wants to wait for " "either a signal or for a file descriptor to become ready, then an atomic " "test is needed to prevent race conditions. (Suppose the signal handler sets " "a global flag and returns. Then a test of this global flag followed by a " "call of B() قد يتعطل إلى أجل غير مسمى إذا وصلت الإشارة بعد " "الاختبار مباشرة ولكن قبل الاستدعاء. على النقيض، تسمح B() للمرء " "أولاً بحظر الإشارات، ومعالجة الإشارات التي وصلت، ثم استدعاء B() مع " "I المطلوب، متجنبًا السباق.)" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The timeout" msgstr "المهلة الزمنية" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument for B() هو بنية من النوع التالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct timeval {\n" " time_t tv_sec; /* seconds */\n" " suseconds_t tv_usec; /* microseconds */\n" "};\n" msgstr "" "struct timeval {\n" " time_t tv_sec; /* seconds */\n" " suseconds_t tv_usec; /* microseconds */\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The corresponding argument for B() is a B(3) structure." msgstr "الوسيط المقابل لـ B() هو بنية B(3)." #. .P - it is rumored that: #. On BSD, when a timeout occurs, the file descriptor bits are not changed. #. - it is certainly true that: #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "On Linux, B()s in a loop without " "reinitializing it. Consider I to be undefined after B() I لتعكس مقدار الوقت غير المُنام؛ معظم " "التطبيقات الأخرى لا تفعل هذا. (يسمح POSIX.1 بأي من السلوكين.) يسبب هذا " "مشاكل سواء عندما يُنقل كود لينكس الذي يقرأ I إلى أنظمة تشغيل أخرى، " "وعندما يُنقل كود إلى لينكس يعيد استخدام I لعدة 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() و B() عدد واصفات الملفات الموجودة في " "مجموعات الواصفات الثلاث المُعادة (أي العدد الإجمالي للبتات المُعيّنة في " "I و I و I). قد تكون قيمة الإرجاع صفرًا إذا " "انتهت المهلة الزمنية قبل أن يصبح أي واصف ملف جاهزًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On error, -1 is returned, and I is set to indicate the error; the " "file descriptor sets are unmodified, and I becomes undefined." msgstr "" "عند الخطأ، تُعاد -1، ويُعيّن I للإشارة إلى الخطأ؛ تبقى مجموعات واصفات " "الملفات دون تعديل، ويصبح 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 "" "An invalid file descriptor was given in one of the sets. (Perhaps a file " "descriptor that was already closed, or one on which an error has occurred.) " "However, see BUGS." 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 "A signal was caught; 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 "" "I is negative or exceeds the B resource limit (see " "B(2))." msgstr "" "I سالب أو يتجاوز حد المورد B (انظر B(2))." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The value contained within I is invalid." msgstr "القيمة الموجودة داخل 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 "Unable to allocate memory for internal tables." msgstr "غير قادر على تخصيص ذاكرة للجداول الداخلية." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "الإصدارات" #. Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On some other UNIX systems, B(). Portable programs may wish to check for B and " "loop, just as with B." msgstr "" "في بعض أنظمة UNIX الأخرى، قد تفشل B(). قد ترغب البرامج " "المحمولة في التحقق من B والتكرار، تمامًا كما هو الحال مع B." #. 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." msgstr "POSIX.1-2001،‏ 4.4BSD (ظهر أولاً في 4.2BSD)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Generally portable to/from non-BSD systems supporting clones of the BSD " "socket layer (including System\\ V variants). However, note that the " "System\\ V variant typically sets the timeout variable before returning, but " "the BSD variant does not." msgstr "" "يمكن نقلها عمومًا من وإلى الأنظمة غير التابعة لنظام BSD التي تدعم نسخًا مطابقة " "لطبقة مآخذ BSD (بما في ذلك متغيرات System V). ومع ذلك، تجدر الإشارة إلى أن " "متغير System V عادةً ما يقوم بتعيين متغير المهلة قبل العودة، بينما لا يقوم " "متغير BSD بذلك." #. 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 "Linux 2.6.16. POSIX.1g, POSIX.1-2001." msgstr "لينكس 2.6.16. POSIX.1g, POSIX.1-2001." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Prior to this, it was emulated in glibc (but see BUGS)." msgstr "قبل ذلك، كان يُحاكى في glibc (ولكن انظر الأخطاء)." #. 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 "POSIX.1-2001." msgstr "POSIX.1-2001." #. 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 following header also provides the I type: Isys/time." "hE>." msgstr "" "الملف الرأسي التالي يوفر أيضًا النوع I: Isys/time.hE>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An I is a fixed size buffer. Executing B() or B() " "with a value of I that is negative or is equal to or larger than " "B will result in undefined behavior. Moreover, POSIX requires " "I to be a valid file descriptor." msgstr "" "I هو مخزن ثابت الحجم. تنفيذ B() أو B() بقيمة I " "سالبة أو تساوي أو أكبر من B سيؤدي إلى سلوك غير معرف. علاوة على " "ذلك، يتطلب POSIX أن يكون I واصف ملف صالحًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The operation of B() و B() بالعلامة B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The self-pipe trick" msgstr "خدعة الأنبوب الذاتي" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On systems that lack B(), reliable (and more portable) signal " "trapping can be achieved using the self-pipe trick. In this technique, a " "signal handler writes a byte to a pipe whose other end is monitored by " "B() في البرنامج " "الرئيسي. (لتجنب الحظر المحتمل عند الكتابة إلى أنبوب قد يكون ممتلئًا أو " "القراءة من أنبوب قد يكون فارغًا، يُستخدم الإدخال/الإخراج غير المحظور عند " "القراءة من والكتابة إلى الأنبوب.)" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Emulating usleep(3)" msgstr "محاكاة usleep(3)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before the advent of B(3), some code employed a call to B() مع جميع " "المجموعات الثلاث فارغة، I صفر، و I غير NULL كطريقة قابلة " "للنقل بشكل معقول للنوم بدقة دون الثانية." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Correspondence between select() and poll() notifications" msgstr "التوافق بين إشعارات select() و poll()" #. fs/select.c #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Within the Linux kernel source, we find the following definitions which show " "the correspondence between the readable, writable, and exceptional condition " "notifications of B() " "وإشعارات الأحداث التي توفرها B(2) و B(7):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" " EPOLLHUP | EPOLLERR)\n" " /* Ready for reading */\n" "#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" " EPOLLERR)\n" " /* Ready for writing */\n" "#define POLLEX_SET (EPOLLPRI)\n" " /* Exceptional condition */\n" msgstr "" "#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" " EPOLLHUP | EPOLLERR)\n" " /* Ready for reading */\n" "#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" " EPOLLERR)\n" " /* Ready for writing */\n" "#define POLLEX_SET (EPOLLPRI)\n" " /* Exceptional condition */\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Multithreaded applications" msgstr "التطبيقات متعددة الخيوط" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If a file descriptor being monitored by B() " "unblocks and returns, with an indication that the file descriptor is ready " "(a subsequent I/O operation will likely fail with an error, unless another " "process reopens the file descriptor between the time B(). " "In summary, any application that relies on a particular behavior in this " "scenario must be considered buggy." msgstr "" "إذا أُغلق واصف ملف تراقبه B() الحظر وتعود، مع إشارة أن واصف الملف جاهز " "(ستفشل عملية الإدخال/الإخراج اللاحقة غالبًا بخطأ، ما لم يفتح عملية أخرى واصف " "الملف بين وقت عودة B(). " "باختصار، أي تطبيق يعتمد على سلوك معين في هذا السيناريو يجب اعتباره معطوبًا." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "C library/kernel differences" msgstr "الاختلافات بين مكتبة C والنواة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The Linux kernel allows file descriptor sets of arbitrary size, determining " "the length of the sets to be checked from the value of I. However, in " "the glibc implementation, the I type is fixed in size. See also " "BUGS." msgstr "" "يسمح نواة لينكس بمجموعات واصفات ملفات ذات حجم عشوائي، محددًا طول المجموعات " "المراد فحصها من قيمة I. لكن، في تطبيق glibc، النوع I ثابت " "الحجم. انظر أيضًا الأخطاء." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() interface described in this page is implemented by glibc. " "The underlying Linux system call is named B(). This system call " "has somewhat different behavior from the glibc wrapper function." msgstr "" "واجهة B() الموصوفة في هذه الصفحة منفذة بواسطة glibc. استدعاء نظام " "لينكس الأساسي يُسمى B(). هذا الاستدعاء له سلوك مختلف قليلاً عن دالة " "الغلاف glibc." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The Linux B() system call modifies its I argument. " "However, the glibc wrapper function hides this behavior by using a local " "variable for the timeout argument that is passed to the system call. Thus, " "the glibc B() function does not modify its I argument; " "this is the behavior required by POSIX.1-2001." msgstr "" "يعدل استدعاء نظام لينكس B() وسيطته I. لكن، دالة غلاف " "glibc تخفي هذا السلوك باستخدام متغير محلي لوسيطة timeout التي تُمرر لاستدعاء " "النظام. وبالتالي، دالة glibc B() لا تعدل وسيطتها I؛ هذا " "هو السلوك المطلوب بواسطة POSIX.1-2001." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The final argument of the B() system call is not a I pointer, but is instead a structure of the form:" msgstr "" "الوسيطة الأخيرة لاستدعاء النظام B() ليست مؤشر I، بل " "هي بنية بالشكل:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct {\n" " const kernel_sigset_t *ss; /* Pointer to signal set */\n" " size_t ss_len; /* Size (in bytes) of object\n" " pointed to by \\[aq]ss\\[aq] */\n" "};\n" msgstr "" "struct {\n" " const kernel_sigset_t *ss; /* Pointer to signal set */\n" " size_t ss_len; /* Size (in bytes) of object\n" " pointed to by \\[aq]ss\\[aq] */\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This allows the system call to obtain both a pointer to the signal set and " "its size, while allowing for the fact that most architectures support a " "maximum of 6 arguments to a system call. See B(2) for a " "discussion of the difference between the kernel and libc notion of the " "signal set." msgstr "" "يسمح هذا لاستدعاء النظام بالحصول على كل من مؤشر لمجموعة الإشارات وحجمها، مع " "مراعاة حقيقة أن معظم البنى تدعم حدًا أقصى 6 وسائط لاستدعاء النظام. انظر " "B(2) لمناقشة الفرق بين مفهوم النواة وlibc لمجموعة الإشارات." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Historical glibc details" msgstr "تفاصيل glibc التاريخية" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "glibc 2.0 provided an incorrect version of B() that did not take a " "I argument." msgstr "" "قدم glibc 2.0 نسخة غير صحيحة من B() لم تأخذ وسيطة I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "From glibc 2.1 to glibc 2.2.1, one must define B<_GNU_SOURCE> in order to " "obtain the declaration of B() from Isys/select.hE>." msgstr "" "من glibc 2.1 إلى glibc 2.2.1، يجب تعريف B<_GNU_SOURCE> للحصول على تعريف " "B() من Isys/select.hE>." #. 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 "" "POSIX allows an implementation to define an upper limit, advertised via the " "constant B, on the range of file descriptors that can be " "specified in a file descriptor set. The Linux kernel imposes no fixed " "limit, but the glibc implementation makes I a fixed-size type, with " "B defined as 1024, and the B() macros operating according " "to that limit. To monitor file descriptors greater than 1023, use " "B(2) or B(7) instead." msgstr "" "يسمح POSIX للتطبيق بتعريف حد أعلى، معلن عنه عبر الثابت B، على " "نطاق واصفات الملفات التي يمكن تحديدها في مجموعة واصفات ملفات. لا تفرض نواة " "لينكس حدًا ثابتًا، لكن تطبيق glibc يجعل I نوعًا ثابت الحجم، مع تعريف " "B كـ 1024، وتعمل وحدات الماكرو B() وفقًا لذلك الحد. " "لمراقبة واصفات ملفات أكبر من 1023، استخدم B(2) أو B(7) بدلاً " "من ذلك." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The implementation of the I arguments as value-result arguments is a " "design error that is avoided in B(2) and B(7)." msgstr "" "تطبيق وسائط I كوسائط قيمة-نتيجة هو خطأ تصميمي يُتجنب في B(2) و " "B(7)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "According to POSIX, B() فحص جميع واصفات الملفات المحددة في " "المجموعات الثلاث لواصفات الملفات، حتى الحد I. لكن، التطبيق الحالي " "يتجاهل أي واصف ملف في هذه المجموعات أكبر من رقم واصف الملف الأقصى الذي " "تمتلكه العملية مفتوحًا حاليًا. وفقًا لـ POSIX، أي واصف ملف كهذا محدد في إحدى " "المجموعات يجب أن يؤدي إلى الخطأ B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Starting with glibc 2.1, glibc provided an emulation of B() that " "was implemented using B(2) and B(). ظل هذا التطبيق عرضة لنفس حالة السباق التي " "صُممت B() لمنعها. تستخدم الإصدارات الحديثة من glibc استدعاء النظام " "(الخالي من السباق) B() على النوى حيث يُوفر." #. Stevens discusses a case where accept can block after select #. returns successfully because of an intervening RST from the client. #. Maybe the kernel should have returned EIO in such a situation? #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On Linux, B() عن واصف ملف مقبس كـ \"جاهز للقراءة\"، بينما " "مع ذلك تقرأ لاحقة تحظر. يمكن أن يحدث هذا مثلاً عندما تصل بيانات ولكن عند " "الفحص يكون المجموع الاختباري خاطئًا وتُتجاهل. قد تكون هناك ظروف أخرى يُبلغ " "فيها عن واصف ملف كجاهز بشكل زائف. لذا قد يكون من الأكثر أمانًا استخدام " "B على مقابس لا يجب أن تحظر." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On Linux, B() أيضًا I إذا قاطع معالج إشارة الاستدعاء " "(أي، إرجاع الخطأ B). هذا غير مسموح به بواسطة POSIX.1. استدعاء نظام " "لينكس B() له نفس السلوك، لكن غلاف glibc يخفي هذا السلوك بنسخ " "I داخليًا إلى متغير محلي وتمرير ذلك المتغير لاستدعاء النظام." #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/select.hE\n" "#include Esys/time.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int retval;\n" " fd_set rfds;\n" " struct timeval tv;\n" "\\&\n" " /* Watch stdin (fd 0) to see when it has input. */\n" "\\&\n" " FD_ZERO(&rfds);\n" " FD_SET(0, &rfds);\n" "\\&\n" " /* Wait up to five seconds. */\n" "\\&\n" " tv.tv_sec = 5;\n" " tv.tv_usec = 0;\n" "\\&\n" " retval = select(1, &rfds, NULL, NULL, &tv);\n" " /* Don\\[aq]t rely on the value of tv now! */\n" "\\&\n" " if (retval == -1)\n" " perror(\"select()\");\n" " else if (retval)\n" " printf(\"Data is available now.\\[rs]n\");\n" " /* FD_ISSET(0, &rfds) will be true. */\n" " else\n" " printf(\"No data within five seconds.\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/select.hE\n" "#include Esys/time.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int retval;\n" " fd_set rfds;\n" " struct timeval tv;\n" "\\&\n" " /* Watch stdin (fd 0) to see when it has input. */\n" "\\&\n" " FD_ZERO(&rfds);\n" " FD_SET(0, &rfds);\n" "\\&\n" " /* Wait up to five seconds. */\n" "\\&\n" " tv.tv_sec = 5;\n" " tv.tv_usec = 0;\n" "\\&\n" " retval = select(1, &rfds, NULL, NULL, &tv);\n" " /* Don\\[aq]t rely on the value of tv now! */\n" "\\&\n" " if (retval == -1)\n" " perror(\"select()\");\n" " else if (retval)\n" " printf(\"Data is available now.\\[rs]n\");\n" " /* FD_ISSET(0, &rfds) will be true. */\n" " else\n" " printf(\"No data within five seconds.\\[rs]n\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. 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(2), " "B(2), B(2), B(2), B(2), " "B(3), B(7), B