# 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:49+0200\n" "PO-Revision-Date: 2026-06-05 21:40+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 "timerfd_create" msgstr "timerfd_create" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-16" msgstr "16 فبراير 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 "" "timerfd_create, timerfd_settime, timerfd_gettime - timers that notify via " "file descriptors" msgstr "" "timerfd_create, timerfd_settime, timerfd_gettime - مؤقتات تُعلم عبر واصفات " "الملفات" #. 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/timerfd.hE>\n" msgstr "B<#include Esys/timerfd.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<, int >IB<);>\n" msgstr "BIB<, int >IB<);>\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<, int >IB<,>\n" "B< const struct itimerspec *>IB<,>\n" "B< struct itimerspec *_Nullable >IB<);>\n" "BIB<, struct itimerspec *>IB<);>\n" msgstr "" "BIB<, int >IB<,>\n" "B< const struct itimerspec *>IB<,>\n" "B< struct itimerspec *_Nullable >IB<);>\n" "BIB<, struct itimerspec *>IB<);>\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 "" "These system calls create and operate on a timer that delivers timer " "expiration notifications via a file descriptor. They provide an alternative " "to the use of B(2) or B(2), with the advantage " "that the file descriptor may be monitored by B(2) و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 use of these three system calls is analogous to the use of " "B(2), B(2), and B(2). (There is " "no analog of B(2), since that functionality is provided by " "B(2), as described below.)" msgstr "" "استخدام هذه الاستدعاءات النظامية الثلاثة مماثل لاستخدام B(2) " "وB(2) وB(2). (لا يوجد مماثل لـ " "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 "timerfd_create()" msgstr "timerfd_create()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() creates a new timer object, and returns a file " "descriptor that refers to that timer. The I argument specifies the " "clock that is used to mark the progress of the timer, and must be one of the " "following:" msgstr "" "ينشئ 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 "A settable system-wide real-time clock." 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 nonsettable monotonically increasing clock that measures time from some " "unspecified point in the past that does not change after system startup." msgstr "" "ساعة تزايدية رتيبة غير قابلة للضبط تقيس الوقت من نقطة غير محددة في الماضي لا " "تتغير بعد بدء تشغيل النظام." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (Since Linux 3.15)" msgstr "B (منذ لينكس 3.15)" #. commit 4a2378a943f09907fb1ae35c15de917f60289c14 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Like B, this is a monotonically increasing clock. However, " "whereas the B clock does not measure the time while a " "system is suspended, the B clock does include the time " "during which the system is suspended. This is useful for applications that " "need to be suspend-aware. B is not suitable for such " "applications, since that clock is affected by discontinuous changes to the " "system clock." msgstr "" "مثل B، هذه ساعة تتزايد برتابة. ومع ذلك، فبينما لا تقيس ساعة " "B الوقت أثناء تعليق النظام، فإن ساعة B تشمل " "الوقت الذي يكون فيه النظام معلقاً. هذا مفيد للتطبيقات التي تحتاج أن تكون " "مدركة للتعليق. ساعة B ليست مناسبة لمثل هذه التطبيقات، لأن " "تلك الساعة تتأثر بالتغيرات غير المستمرة في ساعة النظام." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 3.11)" msgstr "B (منذ لينكس 3.11)" #. commit 11ffa9d6065f344a9bd769a2452f26f2f671e5f8 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This clock is like B, but will wake the system if it is " "suspended. The caller must have the B capability in order " "to set a timer against this clock." msgstr "" "هذه الساعة تشبه B، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " "يتمتع المستدعِي بصلاحية B لضبط مؤقت لهذه الساعة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 3.11)" msgstr "B (منذ لينكس 3.11)" #. commit 11ffa9d6065f344a9bd769a2452f26f2f671e5f8 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This clock is like B, but will wake the system if it is " "suspended. The caller must have the B capability in order " "to set a timer against this clock." msgstr "" "هذه الساعة تشبه B، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " "يتمتع المستدعِي بصلاحية B لضبط مؤقت لهذه الساعة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "See B(2) for some further details on the above clocks." msgstr "انظر B(2) لمزيد من التفاصيل حول الساعات المذكورة أعلاه." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The current value of each of these clocks can be retrieved using " "B(2)." msgstr "" "يمكن استرجاع القيمة الحالية لكل من هذه الساعات باستخدام B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Starting with Linux 2.6.27, the following values may be bitwise ORed in " "I to change the behavior of B():" msgstr "" "بدءًا من لينكس 2.6.27، يمكن إجراء عملية OR بتية على القيم التالية في 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 "" "Set the B file status flag on the open file description (see " "B(2)) referred to by the new file descriptor. Using this flag saves " "extra calls to B(2) to achieve the same result." msgstr "" "اضبط علامة حالة الملف B على وصف الملف المفتوح (انظر B(2)) " "المشار إليه بواسطة واصف الملف الجديد. استخدام هذه العلامة يوفر استدعاءات " "إضافية لـ B(2) لتحقيق النتيجة نفسها." #. 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 "" "Set the close-on-exec (B) flag on the new file descriptor. See " "the description of the B flag in B(2) for reasons why this " "may be useful." msgstr "" "اضبط علامة الإغلاق عند التنفيذ (B) على واصف الملف الجديد. انظر " "وصف العلامة B في B(2) للأسباب التي تجعل هذا مفيدًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In Linux versions up to and including 2.6.26, I must be specified as " "zero." msgstr "في إصدارات لينكس حتى 2.6.26 شاملة، يجب تحديد I كصفر." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "timerfd_settime()" msgstr "timerfd_settime()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() arms (starts) or disarms (stops) the timer referred " "to by the file descriptor I." msgstr "" "يُسلّح (يبدأ) أو يُنزع سلاح (يوقف) B() المؤقت المشار إليه " "بواصف الملف 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 specifies the initial expiration and interval for " "the timer. The I structure used for this argument is described " "in B(3type)." msgstr "" "تُحدد الوسيطة I الانتهاء الأولي والفاصل الزمني للمؤقت. بنية " "I المستخدمة لهذه الوسيطة موصوفة في B(3type)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I specifies the initial expiration of the timer, in " "seconds and nanoseconds. Setting either field of I to a " "nonzero value arms the timer. Setting both fields of I " "to zero disarms the timer." msgstr "" "يُحدد I الانتهاء الأولي للمؤقت، بالثواني والنانوثانية. " "ضبط أي من حقلي I على قيمة غير صفرية يُسلّح المؤقت. ضبط" " كلا " "الحقلين على صفر يُنزع سلاح المؤقت." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Setting one or both fields of I to nonzero values " "specifies the period, in seconds and nanoseconds, for repeated timer " "expirations after the initial expiration. If both fields of I are zero, the timer expires just once, at the time specified by " "I." msgstr "" "ضبط أحد حقلَي I أو كليهما على قيم غير صفرية يُحدد " "الفترة، بالثواني والنانوثانية، لانتهاءات المؤقت المتكررة بعد الانتهاء " "الأولي. إذا كان كلا الحقلين صفرًا، ينتهي المؤقت مرة واحدة فقط، في الوقت " "المُحدد بواسطة I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "By default, the initial expiration time specified in I is " "interpreted relative to the current time on the timer's clock at the time of " "the call (i.e., I specifies a time relative to the " "current value of the clock specified by I). An absolute timeout " "can be selected via the I argument." msgstr "" "مبدئيًا، يُفسر وقت الانتهاء الأولي المُحدد في I بالنسبة للوقت" " الحالي " "على ساعة المؤقت وقت الاستدعاء (أي، يُحدد I وقتًا نسبيًا " "للقيمة الحالية للساعة المُحددة بواسطة I). يمكن اختيار مهلة مطلقة عبر " "الوسيطة 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 bit mask that can include the following values:" 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 "" "Interpret I as an absolute value on the timer's clock. " "The timer will expire when the value of the timer's clock reaches the value " "specified in I." 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 "" "If this flag is specified along with B and the clock for " "this timer is B or B, then mark this " "timer as cancelable if the real-time clock undergoes a discontinuous change " "(B(2), B(2), or similar). When such changes " "occur, a current or future B(2) from the file descriptor will fail " "with the error B." msgstr "" "إذا تم تحديد هذه العلامة مع B وكانت ساعة هذا المؤقت هي " "B أو B، فسيتم وضع علامة على هذا المؤقت " "كقابل للإلغاء إذا خضعت الساعة الفعلية لتغيير غير مستمر (B(2) " "أو B(2) أو ما شابه). عند حدوث مثل هذه التغييرات، سيفشل " "استدعاء B(2) حالي أو مستقبلي من واصف الملف مع الخطأ B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I argument is not NULL, then the I structure " "that it points to is used to return the setting of the timer that was " "current at the time of the call; see the description of " "B() following." msgstr "" "إذا كانت الوسيطة I ليست NULL، فسيتم استخدام بنية I " "التي تشير إليها لإعادة إعداد المؤقت الذي كان ساريًا وقت الاستدعاء؛ انظر وصف " "B() أدناه." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "timerfd_gettime()" msgstr "timerfd_gettime()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns, in I, an I structure " "that contains the current setting of the timer referred to by the file " "descriptor I." msgstr "" "يُعيد 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 "" "The I field returns the amount of time until the timer will next " "expire. If both fields of this structure are zero, then the timer is " "currently disarmed. This field always contains a relative value, regardless " "of whether the B flag was specified when setting the " "timer." msgstr "" "يُرجع حقل I مقدار الوقت المتبقي حتى انتهاء المؤقت التالي. إذا كان " "كلا حقلي هذه البنية صفرًا، فإن المؤقت غير مسلح حاليًا. يحتوي هذا الحقل دائمًا " "على قيمة نسبية، بغض النظر عما إذا كانت العلامة B قد حُددت " "عند ضبط المؤقت." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I field returns the interval of the timer. If both fields " "of this structure are zero, then the timer is set to expire just once, at " "the time specified by I." msgstr "" "يُرجع حقل I الفاصل الزمني للمؤقت. إذا كان كلا حقلي هذه البنية " "صفرًا، فإن المؤقت مضبوط لينتهي مرة واحدة فقط، في الوقت المحدد بواسطة " "I." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Operating on a timer file descriptor" msgstr "التشغيل على واصف ملف المؤقت" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptor returned by B() supports the following " "additional operations:" 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(2)" msgstr "B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the timer has already expired one or more times since its settings were " "last modified using B(), or since the last successful " "B(2), then the buffer given to B(2) returns an unsigned 8-byte " "integer (I) containing the number of expirations that have " "occurred. (The returned value is in host byte order\\[em]that is, the " "native byte order for integers on the host machine.)" msgstr "" "إذا كان المؤقت قد انتهى مرة أو أكثر منذ آخر تعديل لإعداداته باستخدام " "B()، أو منذ آخر B(2) ناجح، فإن المخزن المؤقت المُعطى " "لـ B(2) يُرجع عددًا صحيحًا غير مُوقع بطول 8 بايت (I) يحتوي" " على " "عدد مرات الانتهاء التي حدثت. (القيمة المُرجعة تكون بترتيب بايت المضيف\\[em]أي " "ترتيب البايت الأصلي للأعداد الصحيحة على جهاز المضيف.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If no timer expirations have occurred at the time of the B(2), then " "the call either blocks until the next timer expiration, or fails with the " "error B if the file descriptor has been made nonblocking (via the " "use of the B(2) B operation to set the B flag)." msgstr "" "إذا لم تحدث أي انتهاءات للمؤقت في وقت B(2)، فإن الاستدعاء إما أن يحظر " "حتى انتهاء المؤقت التالي، أو يفشل مع الخطأ B إذا جُعل واصف الملف غير " "محظور (باستخدام عملية B(2) B لتعيين العلامة B)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A B(2) fails with the error B if the size of the supplied " "buffer is less than 8 bytes." msgstr "" "يفشل B(2) مع الخطأ B إذا كان حجم المخزن المؤقت المُقدم أقل من 8 " "بايت." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the associated clock is either B or " "B, the timer is absolute (B), and " "the flag B was specified when calling " "B(), then B(2) fails with the error B if " "the real-time clock undergoes a discontinuous change. (This allows the " "reading application to discover such discontinuous changes to the clock.)" msgstr "" "إذا كانت الساعة المرتبطة إما B أو B، " "وكان المؤقت مطلقًا (B)، وحددت العلامة " "B عند استدعاء B()، فإن B(2) " "يفشل مع الخطأ B إذا خضعت ساعة الوقت الحقيقي لتغيير غير مستمر. " "(يسمح هذا للتطبيق القارئ باكتشاف مثل هذه التغييرات غير المستمرة في الساعة.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the associated clock is either B or " "B, the timer is absolute (B), and " "the flag B was I specified when calling " "B(), then a discontinuous negative change to the clock (e." "g., B(2)) may cause B(2) to unblock, but return a " "value of 0 (i.e., no bytes read), if the clock change occurs after the time " "expired, but before the B(2) on the file descriptor." msgstr "" "إذا كانت الساعة المرتبطة إما B أو B، " "وكان المؤقت مطلقًا (B)، وI<لم> تحدد العلامة " "B عند استدعاء B()، فإن تغييرًا " "سلبيًا غير مستمر في الساعة (مثل B(2)) قد يتسبب في إلغاء حظر " "B(2)، ولكن يُرجع قيمة 0 (أي عدم قراءة بايتات)، إذا حدث تغيير الساعة بعد " "انتهاء الوقت، ولكن قبل B(2) على واصف الملف." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" msgstr "B(2)" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(and similar)" msgstr "(وما شابه ذلك)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptor is readable (the B(2) I؛ علامة B(2) " "B) إذا حدث انتهاء مؤقت واحد أو أكثر." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptor also supports the other file-descriptor multiplexing " "APIs: B(2), B(2), and B(7)." msgstr "" "يدعم واصف الملف أيضًا واجهات برمجة التطبيقات الأخرى لتعدد إرسال واصفات " "الملفات: B(2)، B(2)، و 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(2)" msgstr "B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following timerfd-specific command is supported:" msgstr "الأمر التالي الخاص بـ timerfd مدعوم:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 3.17)" msgstr "B (منذ لينكس 3.17)" #. commit 5442e9fbd7c23172a1c9bc736629cd123a9923f0 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Adjust the number of timer expirations that have occurred. The argument is " "a pointer to a nonzero 8-byte integer (I*) containing the new " "number of expirations. Once the number is set, any waiter on the timer is " "woken up. The only purpose of this command is to restore the expirations " "for the purpose of checkpoint/restore. This operation is available only if " "the kernel was configured with the B option." msgstr "" "يضبط عدد مرات انتهاء المؤقت التي حدثت. الوسيطة هي مؤشر لعدد صحيح غير صفري " "بطول 8 بايت (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(2)" msgstr "B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When the file descriptor is no longer required it should be closed. When " "all file descriptors associated with the same timer object have been closed, " "the timer is disarmed and its resources are freed by the kernel." msgstr "" "عندما لا يعود واصف الملف مطلوبًا، يجب إغلاقه. عندما تُغلق جميع واصفات الملفات " "المرتبطة بنفس كائن المؤقت، يُسلح المؤقت وتُحرر موارده بواسطة النواة." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "fork(2) semantics" msgstr "دلالات fork(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After a B(2), the child inherits a copy of the file descriptor created " "by B(). The file descriptor refers to the same underlying " "timer object as the corresponding file descriptor in the parent, and " "B(2)s in the child will return information about expirations of the " "timer." msgstr "" "بعد B(2)، يرث الطفل نسخة من واصف الملف الذي أنشأه B(). " "يشير واصف الملف إلى نفس كائن المؤقت الأساسي مثل واصف الملف المقابل في الأب، " "وستُرجع عمليات B(2) في الطفل معلومات حول انتهاءات المؤقت." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "execve(2) semantics" msgstr "دلالات execve(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A file descriptor created by B() is preserved across " "B(2), and continues to generate timer expirations if the timer was " "armed." 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 "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() returns a new file descriptor. On error, " "-1 is returned and I is set to indicate the error." msgstr "" "عند النجاح، يُرجع B() واصف ملف جديد. عند الخطأ، يُرجع -1" " ويُعين " "I للإشارة إلى الخطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() and B() return 0 on success; on " "error 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: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B() can fail with the following errors:" 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 I is not valid." msgstr "I غير صالح." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is invalid; or, in Linux 2.6.26 or earlier, I is nonzero." msgstr "I غير صالح؛ أو، في لينكس 2.6.26 أو أقدم، 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 per-process limit on the number of open file descriptors has been " "reached." 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 system-wide limit on the total number of open files has been reached." 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 "Could not mount (internal) anonymous inode device." msgstr "تعذر وصل جهاز inode (داخلي) مجهول." #. 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 "There was insufficient kernel memory to create the timer." 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 "" "I was B or B but the " "caller did not have the B capability." 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 "" "B() and B() can fail with the following " "errors:" msgstr "" "يمكن أن يفشل B() و 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 "I is not a valid file descriptor." 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 "I, I, or I is not a valid pointer." msgstr "I، أو I، أو I ليس مؤشراً صالحاً." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a valid timerfd file descriptor." msgstr "I ليس واصف ملف timerfd صالحًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B() can also fail with the following errors:" 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 "See NOTES." msgstr "انظر الملاحظات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is not properly initialized (one of the I falls " "outside the range zero to 999,999,999)." msgstr "" "I غير مهيأ بشكل صحيح (أحد حقول I يقع خارج النطاق من صفر " "إلى 999,999,999)." #. This case only checked since Linux 2.6.29, and Linux 2.2.2[78].some-stable-version. #. In older kernel versions, no check was made for invalid flags. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is invalid." msgstr "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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "لينكس." #. 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: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 2.6.25, glibc 2.8." msgstr "لينكس 2.6.25، glibc 2.8." #. 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 "" "Suppose the following scenario for B or " "B timer that was created with B():" msgstr "" "افترض السيناريو التالي لمؤقت B أو B " "الذي أُنشئ باستخدام B():" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(1)" msgstr "(1)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The timer has been started (B()) with the " "B and B flags;" msgstr "" "بدأ المؤقت (B()) بالعلامتين B و " "B؛" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(2)" msgstr "(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A discontinuous change (e.g., B(2)) is subsequently made to " "the B clock; and" msgstr "" "يُجرى تغيير غير مستمر (مثل B(2)) لاحقًا على ساعة " "B؛ و" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(3)" msgstr "(3)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "the caller once more calls B() to rearm the timer (without " "first doing a B(2) on the file descriptor)." 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 "In this case the following occurs:" msgstr "في هذه الحالة، يحدث ما يلي:" #. 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 "" "The B() returns -1 with I set to B. " "(This enables the caller to know that the previous timer was affected by a " "discontinuous change to the clock.)" msgstr "" "تُرجع B() -1 مع تعيين I إلى B. (يُمكّن هذا " "المتصل من معرفة أن المؤقت السابق تأثر بتغيير غير مستمر في الساعة.)" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The timer I with the settings provided in the " "second B() call. (This was probably an implementation " "accident, but won't be fixed now, in case there are applications that depend " "on this behavior.)" msgstr "" "I<أُعيد تنشيط> المؤقت بنجاح باستخدام الإعدادات المُقدمة في استدعاء الدالة B<" "timerfd_settime>() الثاني. (ربما كان هذا خطأً في التنفيذ، ولكن لن يتم إصلاحه" " الآن، تحسبًا لوجود تطبيقات تعتمد على هذا السلوك)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. 2.6.29 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Currently, B() supports fewer types of clock IDs than " "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 "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 program creates a timer and then monitors its progress. The " "program accepts up to three command-line arguments. The first argument " "specifies the number of seconds for the initial expiration of the timer. " "The second argument specifies the interval for the timer, in seconds. The " "third argument specifies the number of times the program should allow the " "timer to expire before terminating. The second and third command-line " "arguments are optional." msgstr "" "ينشئ البرنامج التالي مؤقتًا ثم يراقب تقدمه. يقبل البرنامج ما يصل إلى ثلاث " "وسائط لسطر الأوامر. تحدد الوسيطة الأولى عدد الثواني للانتهاء الأولي للمؤقت. " "تحدد الوسيطة الثانية الفاصل الزمني للمؤقت، بالثواني. تحدد الوسيطة الثالثة " "عدد المرات التي يجب أن يسمح فيها البرنامج بانتهاء المؤقت قبل الإنهاء. " "الوسيطتان الثانية والثالثة لسطر الأوامر اختياريتان." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following shell session demonstrates the use of the program:" msgstr "توضح جلسة الشل التالية استخدام البرنامج:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< a.out 3 1 100>\n" "0.000:\ttimer started\n" "3.000:\tread: 1; total=1\n" "4.000:\tread: 1; total=2\n" "B<\\[ha]Z > # type control-Z to suspend the program\n" "[1]+ Stopped ./timerfd3_demo 3 1 100\n" "$ B # Resume execution after a few seconds\n" "a.out 3 1 100\n" "9.660:\tread: 5; total=7\n" "10.000:\tread: 1; total=8\n" "11.000:\tread: 1; total=9\n" "B<\\[ha]C > # type control-C to suspend the program\n" msgstr "" "$B< a.out 3 1 100>\n" "0.000:\ttimer started\n" "3.000:\tread: 1; total=1\n" "4.000:\tread: 1; total=2\n" "B<\\[ha]Z > # type control-Z to suspend the program\n" "[1]+ Stopped ./timerfd3_demo 3 1 100\n" "$ B # Resume execution after a few seconds\n" "a.out 3 1 100\n" "9.660:\tread: 5; total=7\n" "10.000:\tread: 1; total=8\n" "11.000:\tread: 1; total=9\n" "B<\\[ha]C > # type control-C to suspend the program\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. The commented out code here is what we currently need until #. the required stuff is in glibc #. /* Link with \-lrt */ #. #define _GNU_SOURCE #. #include #. #include #. #include #. #if defined(__i386__) #. #define __NR_timerfd_create 322 #. #define __NR_timerfd_settime 325 #. #define __NR_timerfd_gettime 326 #. #endif #. static int #. timerfd_create(int clockid, int flags) #. { #. return syscall(__NR_timerfd_create, clockid, flags); #. } #. static int #. timerfd_settime(int fd, int flags, struct itimerspec *new_value, #. struct itimerspec *curr_value) #. { #. return syscall(__NR_timerfd_settime, fd, flags, new_value, #. curr_value); #. } #. static int #. timerfd_gettime(int fd, struct itimerspec *curr_value) #. { #. return syscall(__NR_timerfd_gettime, fd, curr_value); #. } #. #define TFD_TIMER_ABSTIME (1 << 0) #. //////////////////////////////////////////////////////////// #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Eerr.hE\n" "#include Einttypes.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/timerfd.hE\n" "#include Esys/types.hE\n" "#include Etime.hE\n" "#include Eunistd.hE\n" "\\&\n" "static void\n" "print_elapsed_time(void)\n" "{\n" " int secs, nsecs;\n" " static int first_call = 1;\n" " struct timespec curr;\n" " static struct timespec start;\n" "\\&\n" " if (first_call) {\n" " first_call = 0;\n" " if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" " }\n" "\\&\n" " if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" "\\&\n" " secs = curr.tv_sec - start.tv_sec;\n" " nsecs = curr.tv_nsec - start.tv_nsec;\n" " if (nsecs E 0) {\n" " secs--;\n" " nsecs += 1000000000;\n" " }\n" " printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " ssize_t s;\n" " uint64_t expir, tot_expir, max_expir;\n" " struct timespec now;\n" " struct itimerspec new_value;\n" "\\&\n" " if (argc != 2 && argc != 4) {\n" " fprintf(stderr, \"%s init-secs [interval-secs" " max-num-expir]\\[rs]n\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" "\\&\n" " /* Create a CLOCK_REALTIME absolute timer with initial\n" " expiration and interval as specified in command line. */\n" "\\&\n" " new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" " new_value.it_value.tv_nsec = now.tv_nsec;\n" " if (argc == 2) {\n" " new_value.it_interval.tv_sec = 0;\n" " max_expir = 1;\n" " } else {\n" " new_value.it_interval.tv_sec = atoi(argv[2]);\n" " max_expir = atoi(argv[3]);\n" " }\n" " new_value.it_interval.tv_nsec = 0;\n" "\\&\n" " fd = timerfd_create(CLOCK_REALTIME, 0);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"timerfd_create\");\n" "\\&\n" " if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" " err(EXIT_FAILURE, \"timerfd_settime\");\n" "\\&\n" " print_elapsed_time();\n" " printf(\"timer started\\[rs]n\");\n" "\\&\n" " for (tot_expir = 0; tot_expir E max_expir;) {\n" " s = read(fd, &expir, sizeof(uint64_t));\n" " if (s != sizeof(uint64_t))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " tot_expir += expir;\n" " print_elapsed_time();\n" " printf(\"read: %w64u; total=%w64u\\[rs]n\", expir, tot_expir);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Einttypes.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/timerfd.hE\n" "#include Esys/types.hE\n" "#include Etime.hE\n" "#include Eunistd.hE\n" "\\&\n" "static void\n" "print_elapsed_time(void)\n" "{\n" " int secs, nsecs;\n" " static int first_call = 1;\n" " struct timespec curr;\n" " static struct timespec start;\n" "\\&\n" " if (first_call) {\n" " first_call = 0;\n" " if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" " }\n" "\\&\n" " if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" "\\&\n" " secs = curr.tv_sec - start.tv_sec;\n" " nsecs = curr.tv_nsec - start.tv_nsec;\n" " if (nsecs E 0) {\n" " secs--;\n" " nsecs += 1000000000;\n" " }\n" " printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " ssize_t s;\n" " uint64_t expir, tot_expir, max_expir;\n" " struct timespec now;\n" " struct itimerspec new_value;\n" "\\&\n" " if (argc != 2 && argc != 4) {\n" " fprintf(stderr, \"%s init-secs [interval-secs" " max-num-expir]\\[rs]n\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" "\\&\n" " /* Create a CLOCK_REALTIME absolute timer with initial\n" " expiration and interval as specified in command line. */\n" "\\&\n" " new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" " new_value.it_value.tv_nsec = now.tv_nsec;\n" " if (argc == 2) {\n" " new_value.it_interval.tv_sec = 0;\n" " max_expir = 1;\n" " } else {\n" " new_value.it_interval.tv_sec = atoi(argv[2]);\n" " max_expir = atoi(argv[3]);\n" " }\n" " new_value.it_interval.tv_nsec = 0;\n" "\\&\n" " fd = timerfd_create(CLOCK_REALTIME, 0);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"timerfd_create\");\n" "\\&\n" " if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" " err(EXIT_FAILURE, \"timerfd_settime\");\n" "\\&\n" " print_elapsed_time();\n" " printf(\"timer started\\[rs]n\");\n" "\\&\n" " for (tot_expir = 0; tot_expir E max_expir;) {\n" " s = read(fd, &expir, sizeof(uint64_t));\n" " if (s != sizeof(uint64_t))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " tot_expir += expir;\n" " print_elapsed_time();\n" " printf(\"read: %w64u; total=%w64u\\[rs]n\", expir, tot_expir);\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