| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
|
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:49+0200\n" |
| 10 |
"PO-Revision-Date: 2026-06-05 21:40+0400\n" |
| 11 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 12 |
"Language-Team: Arabic <[email protected]>\n" |
| 13 |
"Language: ar\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
".MIME-Version: 1.0\n" |
| 18 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&" |
| 19 |
" n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 20 |
"X-Generator: Lokalize 23.08.5\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "timerfd_create" |
| 27 |
msgstr "timerfd_create" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "2026-02-16" |
| 33 |
msgstr "16 فبراير 2026" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable |
| 37 |
#, no-wrap |
| 38 |
msgid "Linux man-pages 6.18" |
| 39 |
msgstr "صفحات دليل لينكس 6.18" |
| 40 |
|
| 41 |
#. type: SH |
| 42 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 43 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "NAME" |
| 46 |
msgstr "الاسم" |
| 47 |
|
| 48 |
#. type: Plain text |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
msgid "" |
| 52 |
"timerfd_create, timerfd_settime, timerfd_gettime - timers that notify via " |
| 53 |
"file descriptors" |
| 54 |
msgstr "" |
| 55 |
"timerfd_create, timerfd_settime, timerfd_gettime - مؤقتات تُعلم عبر واصفات " |
| 56 |
"الملفات" |
| 57 |
|
| 58 |
#. type: SH |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, no-wrap |
| 62 |
msgid "LIBRARY" |
| 63 |
msgstr "المكتبة" |
| 64 |
|
| 65 |
#. type: Plain text |
| 66 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 67 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 69 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 70 |
|
| 71 |
#. type: SH |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "SYNOPSIS" |
| 76 |
msgstr "موجز" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "B<#include E<lt>sys/timerfd.hE<gt>>\n" |
| 83 |
msgstr "B<#include E<lt>sys/timerfd.hE<gt>>\n" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "B<int timerfd_create(int >I<clockid>B<, int >I<flags>B<);>\n" |
| 90 |
msgstr "B<int timerfd_create(int >I<clockid>B<, int >I<flags>B<);>\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "" |
| 97 |
"B<int timerfd_settime(int >I<fd>B<, int >I<flags>B<,>\n" |
| 98 |
"B< const struct itimerspec *>I<new_value>B<,>\n" |
| 99 |
"B< struct itimerspec *_Nullable >I<old_value>B<);>\n" |
| 100 |
"B<int timerfd_gettime(int >I<fd>B<, struct itimerspec *>I<curr_value>B<);>\n" |
| 101 |
msgstr "" |
| 102 |
"B<int timerfd_settime(int >I<fd>B<, int >I<flags>B<,>\n" |
| 103 |
"B< const struct itimerspec *>I<new_value>B<,>\n" |
| 104 |
"B< struct itimerspec *_Nullable >I<old_value>B<);>\n" |
| 105 |
"B<int timerfd_gettime(int >I<fd>B<, struct itimerspec *>I<curr_value>B<);>\n" |
| 106 |
|
| 107 |
#. type: SH |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "DESCRIPTION" |
| 112 |
msgstr "الوصف" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"These system calls create and operate on a timer that delivers timer " |
| 119 |
"expiration notifications via a file descriptor. They provide an alternative " |
| 120 |
"to the use of B<setitimer>(2) or B<timer_create>(2), with the advantage " |
| 121 |
"that the file descriptor may be monitored by B<select>(2), B<poll>(2), and " |
| 122 |
"B<epoll>(7)." |
| 123 |
msgstr "" |
| 124 |
"تنشئ هذه الاستدعاءات النظامية وتُشغّل مؤقتًا يُسلم إشعارات انتهاء صلاحية" |
| 125 |
" المؤقت " |
| 126 |
"عبر واصف ملف. توفر بديلاً لاستخدام B<setitimer>(2) أو B<timer_create>(2)، مع " |
| 127 |
"ميزة إمكانية مراقبة واصف الملف بواسطة B<select>(2) وB<poll>(2) وB<epoll>(7)." |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "" |
| 133 |
"The use of these three system calls is analogous to the use of " |
| 134 |
"B<timer_create>(2), B<timer_settime>(2), and B<timer_gettime>(2). (There is " |
| 135 |
"no analog of B<timer_getoverrun>(2), since that functionality is provided by " |
| 136 |
"B<read>(2), as described below.)" |
| 137 |
msgstr "" |
| 138 |
"استخدام هذه الاستدعاءات النظامية الثلاثة مماثل لاستخدام B<timer_create>(2) " |
| 139 |
"وB<timer_settime>(2) وB<timer_gettime>(2). (لا يوجد مماثل لـ " |
| 140 |
"B<timer_getoverrun>(2)، لأن تلك الوظيفة تُوفرها B<read>(2)، كما هو موصوف " |
| 141 |
"أدناه.)" |
| 142 |
|
| 143 |
#. type: SS |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "timerfd_create()" |
| 148 |
msgstr "timerfd_create()" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"B<timerfd_create>() creates a new timer object, and returns a file " |
| 155 |
"descriptor that refers to that timer. The I<clockid> argument specifies the " |
| 156 |
"clock that is used to mark the progress of the timer, and must be one of the " |
| 157 |
"following:" |
| 158 |
msgstr "" |
| 159 |
"ينشئ B<timerfd_create>() كائن مؤقت جديد، ويُعيد واصف ملف يشير إلى ذلك المؤقت. " |
| 160 |
"تُحدد الوسيطة I<clockid> الساعة المستخدمة لتعليم تقدم المؤقت، ويجب أن تكون " |
| 161 |
"واحدة مما يلي:" |
| 162 |
|
| 163 |
#. type: TP |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
#, no-wrap |
| 167 |
msgid "B<CLOCK_REALTIME>" |
| 168 |
msgstr "B<CLOCK_REALTIME>" |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "A settable system-wide real-time clock." |
| 174 |
msgstr "ساعة وقت حقيقي قابلة للضبط على مستوى النظام." |
| 175 |
|
| 176 |
#. type: TP |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
#, no-wrap |
| 180 |
msgid "B<CLOCK_MONOTONIC>" |
| 181 |
msgstr "B<CLOCK_MONOTONIC>" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"A nonsettable monotonically increasing clock that measures time from some " |
| 188 |
"unspecified point in the past that does not change after system startup." |
| 189 |
msgstr "" |
| 190 |
"ساعة تزايدية رتيبة غير قابلة للضبط تقيس الوقت من نقطة غير محددة في الماضي لا " |
| 191 |
"تتغير بعد بدء تشغيل النظام." |
| 192 |
|
| 193 |
#. type: TP |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "B<CLOCK_BOOTTIME> (Since Linux 3.15)" |
| 198 |
msgstr "B<CLOCK_BOOTTIME> (منذ لينكس 3.15)" |
| 199 |
|
| 200 |
#. commit 4a2378a943f09907fb1ae35c15de917f60289c14 |
| 201 |
#. type: Plain text |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
msgid "" |
| 205 |
"Like B<CLOCK_MONOTONIC>, this is a monotonically increasing clock. However, " |
| 206 |
"whereas the B<CLOCK_MONOTONIC> clock does not measure the time while a " |
| 207 |
"system is suspended, the B<CLOCK_BOOTTIME> clock does include the time " |
| 208 |
"during which the system is suspended. This is useful for applications that " |
| 209 |
"need to be suspend-aware. B<CLOCK_REALTIME> is not suitable for such " |
| 210 |
"applications, since that clock is affected by discontinuous changes to the " |
| 211 |
"system clock." |
| 212 |
msgstr "" |
| 213 |
"مثل B<CLOCK_MONOTONIC>، هذه ساعة تتزايد برتابة. ومع ذلك، فبينما لا تقيس ساعة " |
| 214 |
"B<CLOCK_MONOTONIC> الوقت أثناء تعليق النظام، فإن ساعة B<CLOCK_BOOTTIME> تشمل " |
| 215 |
"الوقت الذي يكون فيه النظام معلقاً. هذا مفيد للتطبيقات التي تحتاج أن تكون " |
| 216 |
"مدركة للتعليق. ساعة B<CLOCK_REALTIME> ليست مناسبة لمثل هذه التطبيقات، لأن " |
| 217 |
"تلك الساعة تتأثر بالتغيرات غير المستمرة في ساعة النظام." |
| 218 |
|
| 219 |
#. type: TP |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
#, no-wrap |
| 223 |
msgid "B<CLOCK_REALTIME_ALARM> (since Linux 3.11)" |
| 224 |
msgstr "B<CLOCK_REALTIME_ALARM> (منذ لينكس 3.11)" |
| 225 |
|
| 226 |
#. commit 11ffa9d6065f344a9bd769a2452f26f2f671e5f8 |
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
msgid "" |
| 231 |
"This clock is like B<CLOCK_REALTIME>, but will wake the system if it is " |
| 232 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 233 |
"to set a timer against this clock." |
| 234 |
msgstr "" |
| 235 |
"هذه الساعة تشبه B<CLOCK_REALTIME>، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " |
| 236 |
"يتمتع المستدعِي بصلاحية B<CAP_WAKE_ALARM> لضبط مؤقت لهذه الساعة." |
| 237 |
|
| 238 |
#. type: TP |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
#, no-wrap |
| 242 |
msgid "B<CLOCK_BOOTTIME_ALARM> (since Linux 3.11)" |
| 243 |
msgstr "B<CLOCK_BOOTTIME_ALARM> (منذ لينكس 3.11)" |
| 244 |
|
| 245 |
#. commit 11ffa9d6065f344a9bd769a2452f26f2f671e5f8 |
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"This clock is like B<CLOCK_BOOTTIME>, but will wake the system if it is " |
| 251 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 252 |
"to set a timer against this clock." |
| 253 |
msgstr "" |
| 254 |
"هذه الساعة تشبه B<CLOCK_BOOTTIME>، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " |
| 255 |
"يتمتع المستدعِي بصلاحية B<CAP_WAKE_ALARM> لضبط مؤقت لهذه الساعة." |
| 256 |
|
| 257 |
#. type: Plain text |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
msgid "See B<clock_getres>(2) for some further details on the above clocks." |
| 261 |
msgstr "انظر B<clock_getres>(2) لمزيد من التفاصيل حول الساعات المذكورة أعلاه." |
| 262 |
|
| 263 |
#. type: Plain text |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
msgid "" |
| 267 |
"The current value of each of these clocks can be retrieved using " |
| 268 |
"B<clock_gettime>(2)." |
| 269 |
msgstr "" |
| 270 |
"يمكن استرجاع القيمة الحالية لكل من هذه الساعات باستخدام B<clock_gettime>(2)." |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"Starting with Linux 2.6.27, the following values may be bitwise ORed in " |
| 277 |
"I<flags> to change the behavior of B<timerfd_create>():" |
| 278 |
msgstr "" |
| 279 |
"بدءًا من لينكس 2.6.27، يمكن إجراء عملية OR بتية على القيم التالية في I<flags> " |
| 280 |
"لتغيير سلوك B<timerfd_create>():" |
| 281 |
|
| 282 |
#. type: TP |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "B<TFD_NONBLOCK>" |
| 287 |
msgstr "B<TFD_NONBLOCK>" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
msgid "" |
| 293 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 294 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 295 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 296 |
msgstr "" |
| 297 |
"اضبط علامة حالة الملف B<O_NONBLOCK> على وصف الملف المفتوح (انظر B<open>(2)) " |
| 298 |
"المشار إليه بواسطة واصف الملف الجديد. استخدام هذه العلامة يوفر استدعاءات " |
| 299 |
"إضافية لـ B<fcntl>(2) لتحقيق النتيجة نفسها." |
| 300 |
|
| 301 |
#. type: TP |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "B<TFD_CLOEXEC>" |
| 306 |
msgstr "B<TFD_CLOEXEC>" |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
msgid "" |
| 312 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 313 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 314 |
"may be useful." |
| 315 |
msgstr "" |
| 316 |
"اضبط علامة الإغلاق عند التنفيذ (B<FD_CLOEXEC>) على واصف الملف الجديد. انظر " |
| 317 |
"وصف العلامة B<O_CLOEXEC> في B<open>(2) للأسباب التي تجعل هذا مفيدًا." |
| 318 |
|
| 319 |
#. type: Plain text |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
msgid "" |
| 323 |
"In Linux versions up to and including 2.6.26, I<flags> must be specified as " |
| 324 |
"zero." |
| 325 |
msgstr "في إصدارات لينكس حتى 2.6.26 شاملة، يجب تحديد I<flags> كصفر." |
| 326 |
|
| 327 |
#. type: SS |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "timerfd_settime()" |
| 332 |
msgstr "timerfd_settime()" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "" |
| 338 |
"B<timerfd_settime>() arms (starts) or disarms (stops) the timer referred " |
| 339 |
"to by the file descriptor I<fd>." |
| 340 |
msgstr "" |
| 341 |
"يُسلّح (يبدأ) أو يُنزع سلاح (يوقف) B<timerfd_settime>() المؤقت المشار إليه " |
| 342 |
"بواصف الملف I<fd>." |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "" |
| 348 |
"The I<new_value> argument specifies the initial expiration and interval for " |
| 349 |
"the timer. The I<itimerspec> structure used for this argument is described " |
| 350 |
"in B<itimerspec>(3type)." |
| 351 |
msgstr "" |
| 352 |
"تُحدد الوسيطة I<new_value> الانتهاء الأولي والفاصل الزمني للمؤقت. بنية " |
| 353 |
"I<itimerspec> المستخدمة لهذه الوسيطة موصوفة في B<itimerspec>(3type)." |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
msgid "" |
| 359 |
"I<new_value.it_value> specifies the initial expiration of the timer, in " |
| 360 |
"seconds and nanoseconds. Setting either field of I<new_value.it_value> to a " |
| 361 |
"nonzero value arms the timer. Setting both fields of I<new_value.it_value> " |
| 362 |
"to zero disarms the timer." |
| 363 |
msgstr "" |
| 364 |
"يُحدد I<new_value.it_value> الانتهاء الأولي للمؤقت، بالثواني والنانوثانية. " |
| 365 |
"ضبط أي من حقلي I<new_value.it_value> على قيمة غير صفرية يُسلّح المؤقت. ضبط" |
| 366 |
" كلا " |
| 367 |
"الحقلين على صفر يُنزع سلاح المؤقت." |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"Setting one or both fields of I<new_value.it_interval> to nonzero values " |
| 374 |
"specifies the period, in seconds and nanoseconds, for repeated timer " |
| 375 |
"expirations after the initial expiration. If both fields of I<new_value." |
| 376 |
"it_interval> are zero, the timer expires just once, at the time specified by " |
| 377 |
"I<new_value.it_value>." |
| 378 |
msgstr "" |
| 379 |
"ضبط أحد حقلَي I<new_value.it_interval> أو كليهما على قيم غير صفرية يُحدد " |
| 380 |
"الفترة، بالثواني والنانوثانية، لانتهاءات المؤقت المتكررة بعد الانتهاء " |
| 381 |
"الأولي. إذا كان كلا الحقلين صفرًا، ينتهي المؤقت مرة واحدة فقط، في الوقت " |
| 382 |
"المُحدد بواسطة I<new_value.it_value>." |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "" |
| 388 |
"By default, the initial expiration time specified in I<new_value> is " |
| 389 |
"interpreted relative to the current time on the timer's clock at the time of " |
| 390 |
"the call (i.e., I<new_value.it_value> specifies a time relative to the " |
| 391 |
"current value of the clock specified by I<clockid>). An absolute timeout " |
| 392 |
"can be selected via the I<flags> argument." |
| 393 |
msgstr "" |
| 394 |
"مبدئيًا، يُفسر وقت الانتهاء الأولي المُحدد في I<new_value> بالنسبة للوقت" |
| 395 |
" الحالي " |
| 396 |
"على ساعة المؤقت وقت الاستدعاء (أي، يُحدد I<new_value.it_value> وقتًا نسبيًا " |
| 397 |
"للقيمة الحالية للساعة المُحددة بواسطة I<clockid>). يمكن اختيار مهلة مطلقة عبر " |
| 398 |
"الوسيطة I<flags>." |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 402 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 403 |
msgid "" |
| 404 |
"The I<flags> argument is a bit mask that can include the following values:" |
| 405 |
msgstr "الوسيطة I<flags> هي قناع بت يمكن أن يتضمن القيم التالية:" |
| 406 |
|
| 407 |
#. type: TP |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
#, no-wrap |
| 411 |
msgid "B<TFD_TIMER_ABSTIME>" |
| 412 |
msgstr "B<TFD_TIMER_ABSTIME>" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 416 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
msgid "" |
| 418 |
"Interpret I<new_value.it_value> as an absolute value on the timer's clock. " |
| 419 |
"The timer will expire when the value of the timer's clock reaches the value " |
| 420 |
"specified in I<new_value.it_value>." |
| 421 |
msgstr "" |
| 422 |
"يفسر I<new_value.it_value> كقيمة مطلقة على ساعة المؤقت. سينتهي المؤقت عندما " |
| 423 |
"تصل قيمة ساعة المؤقت إلى القيمة المُحددة في I<new_value.it_value>." |
| 424 |
|
| 425 |
#. type: TP |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
#, no-wrap |
| 429 |
msgid "B<TFD_TIMER_CANCEL_ON_SET>" |
| 430 |
msgstr "B<TFD_TIMER_CANCEL_ON_SET>" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "" |
| 436 |
"If this flag is specified along with B<TFD_TIMER_ABSTIME> and the clock for " |
| 437 |
"this timer is B<CLOCK_REALTIME> or B<CLOCK_REALTIME_ALARM>, then mark this " |
| 438 |
"timer as cancelable if the real-time clock undergoes a discontinuous change " |
| 439 |
"(B<settimeofday>(2), B<clock_settime>(2), or similar). When such changes " |
| 440 |
"occur, a current or future B<read>(2) from the file descriptor will fail " |
| 441 |
"with the error B<ECANCELED>." |
| 442 |
msgstr "" |
| 443 |
"إذا تم تحديد هذه العلامة مع B<TFD_TIMER_ABSTIME> وكانت ساعة هذا المؤقت هي " |
| 444 |
"B<CLOCK_REALTIME> أو B<CLOCK_REALTIME_ALARM>، فسيتم وضع علامة على هذا المؤقت " |
| 445 |
"كقابل للإلغاء إذا خضعت الساعة الفعلية لتغيير غير مستمر (B<settimeofday>(2) " |
| 446 |
"أو B<clock_settime>(2) أو ما شابه). عند حدوث مثل هذه التغييرات، سيفشل " |
| 447 |
"استدعاء B<read>(2) حالي أو مستقبلي من واصف الملف مع الخطأ B<ECANCELED>." |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "" |
| 453 |
"If the I<old_value> argument is not NULL, then the I<itimerspec> structure " |
| 454 |
"that it points to is used to return the setting of the timer that was " |
| 455 |
"current at the time of the call; see the description of " |
| 456 |
"B<timerfd_gettime>() following." |
| 457 |
msgstr "" |
| 458 |
"إذا كانت الوسيطة I<old_value> ليست NULL، فسيتم استخدام بنية I<itimerspec> " |
| 459 |
"التي تشير إليها لإعادة إعداد المؤقت الذي كان ساريًا وقت الاستدعاء؛ انظر وصف " |
| 460 |
"B<timerfd_gettime>() أدناه." |
| 461 |
|
| 462 |
#. type: SS |
| 463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 465 |
#, no-wrap |
| 466 |
msgid "timerfd_gettime()" |
| 467 |
msgstr "timerfd_gettime()" |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
msgid "" |
| 473 |
"B<timerfd_gettime>() returns, in I<curr_value>, an I<itimerspec> structure " |
| 474 |
"that contains the current setting of the timer referred to by the file " |
| 475 |
"descriptor I<fd>." |
| 476 |
msgstr "" |
| 477 |
"يُعيد B<timerfd_gettime>()، في I<curr_value>، بنية I<itimerspec> تحتوي على " |
| 478 |
"الإعداد الحالي للمؤقت المشار إليه بواصف الملف I<fd>." |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"The I<it_value> field returns the amount of time until the timer will next " |
| 485 |
"expire. If both fields of this structure are zero, then the timer is " |
| 486 |
"currently disarmed. This field always contains a relative value, regardless " |
| 487 |
"of whether the B<TFD_TIMER_ABSTIME> flag was specified when setting the " |
| 488 |
"timer." |
| 489 |
msgstr "" |
| 490 |
"يُرجع حقل I<it_value> مقدار الوقت المتبقي حتى انتهاء المؤقت التالي. إذا كان " |
| 491 |
"كلا حقلي هذه البنية صفرًا، فإن المؤقت غير مسلح حاليًا. يحتوي هذا الحقل دائمًا " |
| 492 |
"على قيمة نسبية، بغض النظر عما إذا كانت العلامة B<TFD_TIMER_ABSTIME> قد حُددت " |
| 493 |
"عند ضبط المؤقت." |
| 494 |
|
| 495 |
#. type: Plain text |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
msgid "" |
| 499 |
"The I<it_interval> field returns the interval of the timer. If both fields " |
| 500 |
"of this structure are zero, then the timer is set to expire just once, at " |
| 501 |
"the time specified by I<curr_value.it_value>." |
| 502 |
msgstr "" |
| 503 |
"يُرجع حقل I<it_interval> الفاصل الزمني للمؤقت. إذا كان كلا حقلي هذه البنية " |
| 504 |
"صفرًا، فإن المؤقت مضبوط لينتهي مرة واحدة فقط، في الوقت المحدد بواسطة " |
| 505 |
"I<curr_value.it_value>." |
| 506 |
|
| 507 |
#. type: SS |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "Operating on a timer file descriptor" |
| 512 |
msgstr "التشغيل على واصف ملف المؤقت" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "" |
| 518 |
"The file descriptor returned by B<timerfd_create>() supports the following " |
| 519 |
"additional operations:" |
| 520 |
msgstr "" |
| 521 |
"يدعم واصف الملف الذي يُرجعه B<timerfd_create>() العمليات الإضافية التالية:" |
| 522 |
|
| 523 |
#. type: TP |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
#, no-wrap |
| 527 |
msgid "B<read>(2)" |
| 528 |
msgstr "B<read>(2)" |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
msgid "" |
| 534 |
"If the timer has already expired one or more times since its settings were " |
| 535 |
"last modified using B<timerfd_settime>(), or since the last successful " |
| 536 |
"B<read>(2), then the buffer given to B<read>(2) returns an unsigned 8-byte " |
| 537 |
"integer (I<uint64_t>) containing the number of expirations that have " |
| 538 |
"occurred. (The returned value is in host byte order\\[em]that is, the " |
| 539 |
"native byte order for integers on the host machine.)" |
| 540 |
msgstr "" |
| 541 |
"إذا كان المؤقت قد انتهى مرة أو أكثر منذ آخر تعديل لإعداداته باستخدام " |
| 542 |
"B<timerfd_settime>()، أو منذ آخر B<read>(2) ناجح، فإن المخزن المؤقت المُعطى " |
| 543 |
"لـ B<read>(2) يُرجع عددًا صحيحًا غير مُوقع بطول 8 بايت (I<uint64_t>) يحتوي" |
| 544 |
" على " |
| 545 |
"عدد مرات الانتهاء التي حدثت. (القيمة المُرجعة تكون بترتيب بايت المضيف\\[em]أي " |
| 546 |
"ترتيب البايت الأصلي للأعداد الصحيحة على جهاز المضيف.)" |
| 547 |
|
| 548 |
#. type: Plain text |
| 549 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 550 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 551 |
msgid "" |
| 552 |
"If no timer expirations have occurred at the time of the B<read>(2), then " |
| 553 |
"the call either blocks until the next timer expiration, or fails with the " |
| 554 |
"error B<EAGAIN> if the file descriptor has been made nonblocking (via the " |
| 555 |
"use of the B<fcntl>(2) B<F_SETFL> operation to set the B<O_NONBLOCK> flag)." |
| 556 |
msgstr "" |
| 557 |
"إذا لم تحدث أي انتهاءات للمؤقت في وقت B<read>(2)، فإن الاستدعاء إما أن يحظر " |
| 558 |
"حتى انتهاء المؤقت التالي، أو يفشل مع الخطأ B<EAGAIN> إذا جُعل واصف الملف غير " |
| 559 |
"محظور (باستخدام عملية B<fcntl>(2) B<F_SETFL> لتعيين العلامة B<O_NONBLOCK>)." |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
msgid "" |
| 565 |
"A B<read>(2) fails with the error B<EINVAL> if the size of the supplied " |
| 566 |
"buffer is less than 8 bytes." |
| 567 |
msgstr "" |
| 568 |
"يفشل B<read>(2) مع الخطأ B<EINVAL> إذا كان حجم المخزن المؤقت المُقدم أقل من 8 " |
| 569 |
"بايت." |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
msgid "" |
| 575 |
"If the associated clock is either B<CLOCK_REALTIME> or " |
| 576 |
"B<CLOCK_REALTIME_ALARM>, the timer is absolute (B<TFD_TIMER_ABSTIME>), and " |
| 577 |
"the flag B<TFD_TIMER_CANCEL_ON_SET> was specified when calling " |
| 578 |
"B<timerfd_settime>(), then B<read>(2) fails with the error B<ECANCELED> if " |
| 579 |
"the real-time clock undergoes a discontinuous change. (This allows the " |
| 580 |
"reading application to discover such discontinuous changes to the clock.)" |
| 581 |
msgstr "" |
| 582 |
"إذا كانت الساعة المرتبطة إما B<CLOCK_REALTIME> أو B<CLOCK_REALTIME_ALARM>، " |
| 583 |
"وكان المؤقت مطلقًا (B<TFD_TIMER_ABSTIME>)، وحددت العلامة " |
| 584 |
"B<TFD_TIMER_CANCEL_ON_SET> عند استدعاء B<timerfd_settime>()، فإن B<read>(2) " |
| 585 |
"يفشل مع الخطأ B<ECANCELED> إذا خضعت ساعة الوقت الحقيقي لتغيير غير مستمر. " |
| 586 |
"(يسمح هذا للتطبيق القارئ باكتشاف مثل هذه التغييرات غير المستمرة في الساعة.)" |
| 587 |
|
| 588 |
#. type: Plain text |
| 589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 590 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 591 |
msgid "" |
| 592 |
"If the associated clock is either B<CLOCK_REALTIME> or " |
| 593 |
"B<CLOCK_REALTIME_ALARM>, the timer is absolute (B<TFD_TIMER_ABSTIME>), and " |
| 594 |
"the flag B<TFD_TIMER_CANCEL_ON_SET> was I<not> specified when calling " |
| 595 |
"B<timerfd_settime>(), then a discontinuous negative change to the clock (e." |
| 596 |
"g., B<clock_settime>(2)) may cause B<read>(2) to unblock, but return a " |
| 597 |
"value of 0 (i.e., no bytes read), if the clock change occurs after the time " |
| 598 |
"expired, but before the B<read>(2) on the file descriptor." |
| 599 |
msgstr "" |
| 600 |
"إذا كانت الساعة المرتبطة إما B<CLOCK_REALTIME> أو B<CLOCK_REALTIME_ALARM>، " |
| 601 |
"وكان المؤقت مطلقًا (B<TFD_TIMER_ABSTIME>)، وI<لم> تحدد العلامة " |
| 602 |
"B<TFD_TIMER_CANCEL_ON_SET> عند استدعاء B<timerfd_settime>()، فإن تغييرًا " |
| 603 |
"سلبيًا غير مستمر في الساعة (مثل B<clock_settime>(2)) قد يتسبب في إلغاء حظر " |
| 604 |
"B<read>(2)، ولكن يُرجع قيمة 0 (أي عدم قراءة بايتات)، إذا حدث تغيير الساعة بعد " |
| 605 |
"انتهاء الوقت، ولكن قبل B<read>(2) على واصف الملف." |
| 606 |
|
| 607 |
#. type: TP |
| 608 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 609 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 610 |
#, no-wrap |
| 611 |
msgid "B<poll>(2)" |
| 612 |
msgstr "B<poll>(2)" |
| 613 |
|
| 614 |
#. type: TQ |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
#, no-wrap |
| 618 |
msgid "B<select>(2)" |
| 619 |
msgstr "B<select>(2)" |
| 620 |
|
| 621 |
#. type: TQ |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
#, no-wrap |
| 625 |
msgid "(and similar)" |
| 626 |
msgstr "(وما شابه ذلك)" |
| 627 |
|
| 628 |
#. type: Plain text |
| 629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
msgid "" |
| 632 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 633 |
"B<poll>(2) B<POLLIN> flag) if one or more timer expirations have occurred." |
| 634 |
msgstr "" |
| 635 |
"واصف الملف قابل للقراءة (وسيطة B<select>(2) I<readfds>؛ علامة B<poll>(2) " |
| 636 |
"B<POLLIN>) إذا حدث انتهاء مؤقت واحد أو أكثر." |
| 637 |
|
| 638 |
#. type: Plain text |
| 639 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 640 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 641 |
msgid "" |
| 642 |
"The file descriptor also supports the other file-descriptor multiplexing " |
| 643 |
"APIs: B<pselect>(2), B<ppoll>(2), and B<epoll>(7)." |
| 644 |
msgstr "" |
| 645 |
"يدعم واصف الملف أيضًا واجهات برمجة التطبيقات الأخرى لتعدد إرسال واصفات " |
| 646 |
"الملفات: B<pselect>(2)، B<ppoll>(2)، و B<epoll>(7)." |
| 647 |
|
| 648 |
#. type: TP |
| 649 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 650 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
#, no-wrap |
| 652 |
msgid "B<ioctl>(2)" |
| 653 |
msgstr "B<ioctl>(2)" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 657 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
msgid "The following timerfd-specific command is supported:" |
| 659 |
msgstr "الأمر التالي الخاص بـ timerfd مدعوم:" |
| 660 |
|
| 661 |
#. type: TP |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
#, no-wrap |
| 665 |
msgid "B<TFD_IOC_SET_TICKS> (since Linux 3.17)" |
| 666 |
msgstr "B<TFD_IOC_SET_TICKS> (منذ لينكس 3.17)" |
| 667 |
|
| 668 |
#. commit 5442e9fbd7c23172a1c9bc736629cd123a9923f0 |
| 669 |
#. type: Plain text |
| 670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 672 |
msgid "" |
| 673 |
"Adjust the number of timer expirations that have occurred. The argument is " |
| 674 |
"a pointer to a nonzero 8-byte integer (I<uint64_t>*) containing the new " |
| 675 |
"number of expirations. Once the number is set, any waiter on the timer is " |
| 676 |
"woken up. The only purpose of this command is to restore the expirations " |
| 677 |
"for the purpose of checkpoint/restore. This operation is available only if " |
| 678 |
"the kernel was configured with the B<CONFIG_CHECKPOINT_RESTORE> option." |
| 679 |
msgstr "" |
| 680 |
"يضبط عدد مرات انتهاء المؤقت التي حدثت. الوسيطة هي مؤشر لعدد صحيح غير صفري " |
| 681 |
"بطول 8 بايت (I<uint64_t>*) يحتوي على العدد الجديد من مرات الانتهاء. بمجرد " |
| 682 |
"تعيين العدد، يُوقظ أي منتظر على المؤقت. الغرض الوحيد من هذا الأمر هو استعادة " |
| 683 |
"مرات الانتهاء لغرض نقطة التفتيش/الاستعادة. هذه العملية متاحة فقط إذا كان " |
| 684 |
"النواة مُهيأة بخيار B<CONFIG_CHECKPOINT_RESTORE>." |
| 685 |
|
| 686 |
#. type: TP |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "B<close>(2)" |
| 691 |
msgstr "B<close>(2)" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
msgid "" |
| 697 |
"When the file descriptor is no longer required it should be closed. When " |
| 698 |
"all file descriptors associated with the same timer object have been closed, " |
| 699 |
"the timer is disarmed and its resources are freed by the kernel." |
| 700 |
msgstr "" |
| 701 |
"عندما لا يعود واصف الملف مطلوبًا، يجب إغلاقه. عندما تُغلق جميع واصفات الملفات " |
| 702 |
"المرتبطة بنفس كائن المؤقت، يُسلح المؤقت وتُحرر موارده بواسطة النواة." |
| 703 |
|
| 704 |
#. type: SS |
| 705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 706 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 707 |
#, no-wrap |
| 708 |
msgid "fork(2) semantics" |
| 709 |
msgstr "دلالات fork(2)" |
| 710 |
|
| 711 |
#. type: Plain text |
| 712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 713 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 714 |
msgid "" |
| 715 |
"After a B<fork>(2), the child inherits a copy of the file descriptor created " |
| 716 |
"by B<timerfd_create>(). The file descriptor refers to the same underlying " |
| 717 |
"timer object as the corresponding file descriptor in the parent, and " |
| 718 |
"B<read>(2)s in the child will return information about expirations of the " |
| 719 |
"timer." |
| 720 |
msgstr "" |
| 721 |
"بعد B<fork>(2)، يرث الطفل نسخة من واصف الملف الذي أنشأه B<timerfd_create>(). " |
| 722 |
"يشير واصف الملف إلى نفس كائن المؤقت الأساسي مثل واصف الملف المقابل في الأب، " |
| 723 |
"وستُرجع عمليات B<read>(2) في الطفل معلومات حول انتهاءات المؤقت." |
| 724 |
|
| 725 |
#. type: SS |
| 726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 727 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
#, no-wrap |
| 729 |
msgid "execve(2) semantics" |
| 730 |
msgstr "دلالات execve(2)" |
| 731 |
|
| 732 |
#. type: Plain text |
| 733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 734 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 735 |
msgid "" |
| 736 |
"A file descriptor created by B<timerfd_create>() is preserved across " |
| 737 |
"B<execve>(2), and continues to generate timer expirations if the timer was " |
| 738 |
"armed." |
| 739 |
msgstr "" |
| 740 |
"يُحافظ على واصف الملف الذي أنشأه B<timerfd_create>() عبر B<execve>(2)، ويستمر " |
| 741 |
"في توليد انتهاءات المؤقت إذا كان المؤقت مسلحًا." |
| 742 |
|
| 743 |
#. type: SH |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
#, no-wrap |
| 747 |
msgid "RETURN VALUE" |
| 748 |
msgstr "قيمة الإرجاع" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
msgid "" |
| 754 |
"On success, B<timerfd_create>() returns a new file descriptor. On error, " |
| 755 |
"-1 is returned and I<errno> is set to indicate the error." |
| 756 |
msgstr "" |
| 757 |
"عند النجاح، يُرجع B<timerfd_create>() واصف ملف جديد. عند الخطأ، يُرجع -1" |
| 758 |
" ويُعين " |
| 759 |
"I<errno> للإشارة إلى الخطأ." |
| 760 |
|
| 761 |
#. type: Plain text |
| 762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 763 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 764 |
msgid "" |
| 765 |
"B<timerfd_settime>() and B<timerfd_gettime>() return 0 on success; on " |
| 766 |
"error they return -1, and set I<errno> to indicate the error." |
| 767 |
msgstr "" |
| 768 |
"يُرجع B<timerfd_settime>() و B<timerfd_gettime>() 0 عند النجاح؛ عند الخطأ " |
| 769 |
"يُرجعان -1، ويُعينان I<errno> للإشارة إلى الخطأ." |
| 770 |
|
| 771 |
#. type: SH |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "ERRORS" |
| 776 |
msgstr "الأخطاء" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "B<timerfd_create>() can fail with the following errors:" |
| 782 |
msgstr "يمكن أن يفشل B<timerfd_create>() مع الأخطاء التالية:" |
| 783 |
|
| 784 |
#. type: TP |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "B<EINVAL>" |
| 789 |
msgstr "B<EINVAL>" |
| 790 |
|
| 791 |
#. type: Plain text |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
msgid "The I<clockid> is not valid." |
| 795 |
msgstr "I<clockid> غير صالح." |
| 796 |
|
| 797 |
#. type: Plain text |
| 798 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 799 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 800 |
msgid "" |
| 801 |
"I<flags> is invalid; or, in Linux 2.6.26 or earlier, I<flags> is nonzero." |
| 802 |
msgstr "I<flags> غير صالح؛ أو، في لينكس 2.6.26 أو أقدم، I<flags> ليس صفرًا." |
| 803 |
|
| 804 |
#. type: TP |
| 805 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 806 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 807 |
#, no-wrap |
| 808 |
msgid "B<EMFILE>" |
| 809 |
msgstr "B<EMFILE>" |
| 810 |
|
| 811 |
#. type: Plain text |
| 812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 813 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 814 |
msgid "" |
| 815 |
"The per-process limit on the number of open file descriptors has been " |
| 816 |
"reached." |
| 817 |
msgstr "وُصل إلى الحد الأقصى لواصفات الملفات المفتوحة لكل عملية." |
| 818 |
|
| 819 |
#. type: TP |
| 820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 821 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 822 |
#, no-wrap |
| 823 |
msgid "B<ENFILE>" |
| 824 |
msgstr "B<ENFILE>" |
| 825 |
|
| 826 |
#. type: Plain text |
| 827 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 828 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 829 |
msgid "" |
| 830 |
"The system-wide limit on the total number of open files has been reached." |
| 831 |
msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام." |
| 832 |
|
| 833 |
#. type: TP |
| 834 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 835 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 836 |
#, no-wrap |
| 837 |
msgid "B<ENODEV>" |
| 838 |
msgstr "B<ENODEV>" |
| 839 |
|
| 840 |
#. type: Plain text |
| 841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 842 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 843 |
msgid "Could not mount (internal) anonymous inode device." |
| 844 |
msgstr "تعذر وصل جهاز inode (داخلي) مجهول." |
| 845 |
|
| 846 |
#. type: TP |
| 847 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 848 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 849 |
#, no-wrap |
| 850 |
msgid "B<ENOMEM>" |
| 851 |
msgstr "B<ENOMEM>" |
| 852 |
|
| 853 |
#. type: Plain text |
| 854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 855 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 856 |
msgid "There was insufficient kernel memory to create the timer." |
| 857 |
msgstr "ذاكرة نواة غير كافية لإنشاء المؤقت." |
| 858 |
|
| 859 |
#. type: TP |
| 860 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 861 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 862 |
#, no-wrap |
| 863 |
msgid "B<EPERM>" |
| 864 |
msgstr "B<EPERM>" |
| 865 |
|
| 866 |
#. type: Plain text |
| 867 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 868 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 869 |
msgid "" |
| 870 |
"I<clockid> was B<CLOCK_REALTIME_ALARM> or B<CLOCK_BOOTTIME_ALARM> but the " |
| 871 |
"caller did not have the B<CAP_WAKE_ALARM> capability." |
| 872 |
msgstr "" |
| 873 |
"كان I<clockid> هو B<CLOCK_REALTIME_ALARM> أو B<CLOCK_BOOTTIME_ALARM> ولكن " |
| 874 |
"المستدعي لم يمتلك قدرة B<CAP_WAKE_ALARM>." |
| 875 |
|
| 876 |
#. type: Plain text |
| 877 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 878 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 879 |
msgid "" |
| 880 |
"B<timerfd_settime>() and B<timerfd_gettime>() can fail with the following " |
| 881 |
"errors:" |
| 882 |
msgstr "" |
| 883 |
"يمكن أن يفشل B<timerfd_settime>() و B<timerfd_gettime>() مع الأخطاء التالية:" |
| 884 |
|
| 885 |
#. type: TP |
| 886 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 887 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 888 |
#, no-wrap |
| 889 |
msgid "B<EBADF>" |
| 890 |
msgstr "B<EBADF>" |
| 891 |
|
| 892 |
#. type: Plain text |
| 893 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 894 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 895 |
msgid "I<fd> is not a valid file descriptor." |
| 896 |
msgstr "I<fd> ليس واصف ملف صالح." |
| 897 |
|
| 898 |
#. type: TP |
| 899 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 900 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 901 |
#, no-wrap |
| 902 |
msgid "B<EFAULT>" |
| 903 |
msgstr "B<EFAULT>" |
| 904 |
|
| 905 |
#. type: Plain text |
| 906 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 907 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 908 |
msgid "I<new_value>, I<old_value>, or I<curr_value> is not a valid pointer." |
| 909 |
msgstr "I<new_value>، أو I<old_value>، أو I<curr_value> ليس مؤشراً صالحاً." |
| 910 |
|
| 911 |
#. type: Plain text |
| 912 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 913 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 914 |
msgid "I<fd> is not a valid timerfd file descriptor." |
| 915 |
msgstr "I<fd> ليس واصف ملف timerfd صالحًا." |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 919 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 920 |
msgid "B<timerfd_settime>() can also fail with the following errors:" |
| 921 |
msgstr "يمكن أن يفشل B<timerfd_settime>() أيضًا مع الأخطاء التالية:" |
| 922 |
|
| 923 |
#. type: TP |
| 924 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 925 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 926 |
#, no-wrap |
| 927 |
msgid "B<ECANCELED>" |
| 928 |
msgstr "B<ECANCELED>" |
| 929 |
|
| 930 |
#. type: Plain text |
| 931 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 932 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 933 |
msgid "See NOTES." |
| 934 |
msgstr "انظر الملاحظات." |
| 935 |
|
| 936 |
#. type: Plain text |
| 937 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 938 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 939 |
msgid "" |
| 940 |
"I<new_value> is not properly initialized (one of the I<tv_nsec> falls " |
| 941 |
"outside the range zero to 999,999,999)." |
| 942 |
msgstr "" |
| 943 |
"I<new_value> غير مهيأ بشكل صحيح (أحد حقول I<tv_nsec> يقع خارج النطاق من صفر " |
| 944 |
"إلى 999,999,999)." |
| 945 |
|
| 946 |
#. This case only checked since Linux 2.6.29, and Linux 2.2.2[78].some-stable-version. |
| 947 |
#. In older kernel versions, no check was made for invalid flags. |
| 948 |
#. type: Plain text |
| 949 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 950 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 951 |
msgid "I<flags> is invalid." |
| 952 |
msgstr "I<flags> غير صالحة." |
| 953 |
|
| 954 |
#. type: SH |
| 955 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 956 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 957 |
#, no-wrap |
| 958 |
msgid "STANDARDS" |
| 959 |
msgstr "المعايير" |
| 960 |
|
| 961 |
#. type: Plain text |
| 962 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 963 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 964 |
msgid "Linux." |
| 965 |
msgstr "لينكس." |
| 966 |
|
| 967 |
#. type: SH |
| 968 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 969 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 970 |
#, no-wrap |
| 971 |
msgid "HISTORY" |
| 972 |
msgstr "التاريخ" |
| 973 |
|
| 974 |
#. type: Plain text |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
msgid "Linux 2.6.25, glibc 2.8." |
| 978 |
msgstr "لينكس 2.6.25، glibc 2.8." |
| 979 |
|
| 980 |
#. type: SH |
| 981 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 982 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 983 |
#, no-wrap |
| 984 |
msgid "NOTES" |
| 985 |
msgstr "ملاحظات" |
| 986 |
|
| 987 |
#. type: Plain text |
| 988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 989 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 990 |
msgid "" |
| 991 |
"Suppose the following scenario for B<CLOCK_REALTIME> or " |
| 992 |
"B<CLOCK_REALTIME_ALARM> timer that was created with B<timerfd_create>():" |
| 993 |
msgstr "" |
| 994 |
"افترض السيناريو التالي لمؤقت B<CLOCK_REALTIME> أو B<CLOCK_REALTIME_ALARM> " |
| 995 |
"الذي أُنشئ باستخدام B<timerfd_create>():" |
| 996 |
|
| 997 |
#. type: IP |
| 998 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 999 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1000 |
#, no-wrap |
| 1001 |
msgid "(1)" |
| 1002 |
msgstr "(1)" |
| 1003 |
|
| 1004 |
#. type: Plain text |
| 1005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1006 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1007 |
msgid "" |
| 1008 |
"The timer has been started (B<timerfd_settime>()) with the " |
| 1009 |
"B<TFD_TIMER_ABSTIME> and B<TFD_TIMER_CANCEL_ON_SET> flags;" |
| 1010 |
msgstr "" |
| 1011 |
"بدأ المؤقت (B<timerfd_settime>()) بالعلامتين B<TFD_TIMER_ABSTIME> و " |
| 1012 |
"B<TFD_TIMER_CANCEL_ON_SET>؛" |
| 1013 |
|
| 1014 |
#. type: IP |
| 1015 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1016 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1017 |
#, no-wrap |
| 1018 |
msgid "(2)" |
| 1019 |
msgstr "(2)" |
| 1020 |
|
| 1021 |
#. type: Plain text |
| 1022 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1023 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1024 |
msgid "" |
| 1025 |
"A discontinuous change (e.g., B<settimeofday>(2)) is subsequently made to " |
| 1026 |
"the B<CLOCK_REALTIME> clock; and" |
| 1027 |
msgstr "" |
| 1028 |
"يُجرى تغيير غير مستمر (مثل B<settimeofday>(2)) لاحقًا على ساعة " |
| 1029 |
"B<CLOCK_REALTIME>؛ و" |
| 1030 |
|
| 1031 |
#. type: IP |
| 1032 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1033 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1034 |
#, no-wrap |
| 1035 |
msgid "(3)" |
| 1036 |
msgstr "(3)" |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1040 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1041 |
msgid "" |
| 1042 |
"the caller once more calls B<timerfd_settime>() to rearm the timer (without " |
| 1043 |
"first doing a B<read>(2) on the file descriptor)." |
| 1044 |
msgstr "" |
| 1045 |
"يستدعي المتصل مرة أخرى B<timerfd_settime>() لإعادة تسليح المؤقت (دون إجراء " |
| 1046 |
"B<read>(2) أولاً على واصف الملف)." |
| 1047 |
|
| 1048 |
#. type: Plain text |
| 1049 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1050 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1051 |
msgid "In this case the following occurs:" |
| 1052 |
msgstr "في هذه الحالة، يحدث ما يلي:" |
| 1053 |
|
| 1054 |
#. type: IP |
| 1055 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1056 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1057 |
#, no-wrap |
| 1058 |
msgid "\\[bu]" |
| 1059 |
msgstr "\\[bu]" |
| 1060 |
|
| 1061 |
#. type: Plain text |
| 1062 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1063 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1064 |
msgid "" |
| 1065 |
"The B<timerfd_settime>() returns -1 with I<errno> set to B<ECANCELED>. " |
| 1066 |
"(This enables the caller to know that the previous timer was affected by a " |
| 1067 |
"discontinuous change to the clock.)" |
| 1068 |
msgstr "" |
| 1069 |
"تُرجع B<timerfd_settime>() -1 مع تعيين I<errno> إلى B<ECANCELED>. (يُمكّن هذا " |
| 1070 |
"المتصل من معرفة أن المؤقت السابق تأثر بتغيير غير مستمر في الساعة.)" |
| 1071 |
|
| 1072 |
#. type: Plain text |
| 1073 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1074 |
#: opensuse-tumbleweed |
| 1075 |
msgid "" |
| 1076 |
"The timer I<is successfully rearmed> with the settings provided in the " |
| 1077 |
"second B<timerfd_settime>() call. (This was probably an implementation " |
| 1078 |
"accident, but won't be fixed now, in case there are applications that depend " |
| 1079 |
"on this behavior.)" |
| 1080 |
msgstr "" |
| 1081 |
"I<أُعيد تنشيط> المؤقت بنجاح باستخدام الإعدادات المُقدمة في استدعاء الدالة B<" |
| 1082 |
"timerfd_settime>() الثاني. (ربما كان هذا خطأً في التنفيذ، ولكن لن يتم إصلاحه" |
| 1083 |
" الآن، تحسبًا لوجود تطبيقات تعتمد على هذا السلوك)." |
| 1084 |
|
| 1085 |
#. type: SH |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
#, no-wrap |
| 1089 |
msgid "BUGS" |
| 1090 |
msgstr "العلل" |
| 1091 |
|
| 1092 |
#. 2.6.29 |
| 1093 |
#. type: Plain text |
| 1094 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1095 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1096 |
msgid "" |
| 1097 |
"Currently, B<timerfd_create>() supports fewer types of clock IDs than " |
| 1098 |
"B<timer_create>(2)." |
| 1099 |
msgstr "" |
| 1100 |
"حاليًا، يدعم B<timerfd_create>() أنواعًا أقل من معرفات الساعة مقارنة بـ " |
| 1101 |
"B<timer_create>(2)." |
| 1102 |
|
| 1103 |
#. type: SH |
| 1104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1106 |
#, no-wrap |
| 1107 |
msgid "EXAMPLES" |
| 1108 |
msgstr "أمثلة" |
| 1109 |
|
| 1110 |
#. type: Plain text |
| 1111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1113 |
msgid "" |
| 1114 |
"The following program creates a timer and then monitors its progress. The " |
| 1115 |
"program accepts up to three command-line arguments. The first argument " |
| 1116 |
"specifies the number of seconds for the initial expiration of the timer. " |
| 1117 |
"The second argument specifies the interval for the timer, in seconds. The " |
| 1118 |
"third argument specifies the number of times the program should allow the " |
| 1119 |
"timer to expire before terminating. The second and third command-line " |
| 1120 |
"arguments are optional." |
| 1121 |
msgstr "" |
| 1122 |
"ينشئ البرنامج التالي مؤقتًا ثم يراقب تقدمه. يقبل البرنامج ما يصل إلى ثلاث " |
| 1123 |
"وسائط لسطر الأوامر. تحدد الوسيطة الأولى عدد الثواني للانتهاء الأولي للمؤقت. " |
| 1124 |
"تحدد الوسيطة الثانية الفاصل الزمني للمؤقت، بالثواني. تحدد الوسيطة الثالثة " |
| 1125 |
"عدد المرات التي يجب أن يسمح فيها البرنامج بانتهاء المؤقت قبل الإنهاء. " |
| 1126 |
"الوسيطتان الثانية والثالثة لسطر الأوامر اختياريتان." |
| 1127 |
|
| 1128 |
#. type: Plain text |
| 1129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1131 |
msgid "The following shell session demonstrates the use of the program:" |
| 1132 |
msgstr "توضح جلسة الشل التالية استخدام البرنامج:" |
| 1133 |
|
| 1134 |
#. type: Plain text |
| 1135 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1136 |
#: opensuse-tumbleweed |
| 1137 |
#, no-wrap |
| 1138 |
msgid "" |
| 1139 |
"$B< a.out 3 1 100>\n" |
| 1140 |
"0.000:\ttimer started\n" |
| 1141 |
"3.000:\tread: 1; total=1\n" |
| 1142 |
"4.000:\tread: 1; total=2\n" |
| 1143 |
"B<\\[ha]Z > # type control-Z to suspend the program\n" |
| 1144 |
"[1]+ Stopped ./timerfd3_demo 3 1 100\n" |
| 1145 |
"$ B<fg> # Resume execution after a few seconds\n" |
| 1146 |
"a.out 3 1 100\n" |
| 1147 |
"9.660:\tread: 5; total=7\n" |
| 1148 |
"10.000:\tread: 1; total=8\n" |
| 1149 |
"11.000:\tread: 1; total=9\n" |
| 1150 |
"B<\\[ha]C > # type control-C to suspend the program\n" |
| 1151 |
msgstr "" |
| 1152 |
"$B< a.out 3 1 100>\n" |
| 1153 |
"0.000:\ttimer started\n" |
| 1154 |
"3.000:\tread: 1; total=1\n" |
| 1155 |
"4.000:\tread: 1; total=2\n" |
| 1156 |
"B<\\[ha]Z > # type control-Z to suspend the program\n" |
| 1157 |
"[1]+ Stopped ./timerfd3_demo 3 1 100\n" |
| 1158 |
"$ B<fg> # Resume execution after a few seconds\n" |
| 1159 |
"a.out 3 1 100\n" |
| 1160 |
"9.660:\tread: 5; total=7\n" |
| 1161 |
"10.000:\tread: 1; total=8\n" |
| 1162 |
"11.000:\tread: 1; total=9\n" |
| 1163 |
"B<\\[ha]C > # type control-C to suspend the program\n" |
| 1164 |
|
| 1165 |
#. type: SS |
| 1166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1168 |
#, no-wrap |
| 1169 |
msgid "Program source" |
| 1170 |
msgstr "مصدر البرنامج" |
| 1171 |
|
| 1172 |
#. The commented out code here is what we currently need until |
| 1173 |
#. the required stuff is in glibc |
| 1174 |
#. /* Link with \-lrt */ |
| 1175 |
#. #define _GNU_SOURCE |
| 1176 |
#. #include <sys/syscall.h> |
| 1177 |
#. #include <unistd.h> |
| 1178 |
#. #include <time.h> |
| 1179 |
#. #if defined(__i386__) |
| 1180 |
#. #define __NR_timerfd_create 322 |
| 1181 |
#. #define __NR_timerfd_settime 325 |
| 1182 |
#. #define __NR_timerfd_gettime 326 |
| 1183 |
#. #endif |
| 1184 |
#. static int |
| 1185 |
#. timerfd_create(int clockid, int flags) |
| 1186 |
#. { |
| 1187 |
#. return syscall(__NR_timerfd_create, clockid, flags); |
| 1188 |
#. } |
| 1189 |
#. static int |
| 1190 |
#. timerfd_settime(int fd, int flags, struct itimerspec *new_value, |
| 1191 |
#. struct itimerspec *curr_value) |
| 1192 |
#. { |
| 1193 |
#. return syscall(__NR_timerfd_settime, fd, flags, new_value, |
| 1194 |
#. curr_value); |
| 1195 |
#. } |
| 1196 |
#. static int |
| 1197 |
#. timerfd_gettime(int fd, struct itimerspec *curr_value) |
| 1198 |
#. { |
| 1199 |
#. return syscall(__NR_timerfd_gettime, fd, curr_value); |
| 1200 |
#. } |
| 1201 |
#. #define TFD_TIMER_ABSTIME (1 << 0) |
| 1202 |
#. //////////////////////////////////////////////////////////// |
| 1203 |
#. type: Plain text |
| 1204 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1205 |
#, no-wrap |
| 1206 |
msgid "" |
| 1207 |
"#include E<lt>err.hE<gt>\n" |
| 1208 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1209 |
"#include E<lt>stdio.hE<gt>\n" |
| 1210 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1211 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1212 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1213 |
"#include E<lt>time.hE<gt>\n" |
| 1214 |
"#include E<lt>unistd.hE<gt>\n" |
| 1215 |
"\\&\n" |
| 1216 |
"static void\n" |
| 1217 |
"print_elapsed_time(void)\n" |
| 1218 |
"{\n" |
| 1219 |
" int secs, nsecs;\n" |
| 1220 |
" static int first_call = 1;\n" |
| 1221 |
" struct timespec curr;\n" |
| 1222 |
" static struct timespec start;\n" |
| 1223 |
"\\&\n" |
| 1224 |
" if (first_call) {\n" |
| 1225 |
" first_call = 0;\n" |
| 1226 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1227 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1228 |
" }\n" |
| 1229 |
"\\&\n" |
| 1230 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1231 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1232 |
"\\&\n" |
| 1233 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1234 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1235 |
" if (nsecs E<lt> 0) {\n" |
| 1236 |
" secs--;\n" |
| 1237 |
" nsecs += 1000000000;\n" |
| 1238 |
" }\n" |
| 1239 |
" printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" |
| 1240 |
"}\n" |
| 1241 |
"\\&\n" |
| 1242 |
"int\n" |
| 1243 |
"main(int argc, char *argv[])\n" |
| 1244 |
"{\n" |
| 1245 |
" int fd;\n" |
| 1246 |
" ssize_t s;\n" |
| 1247 |
" uint64_t expir, tot_expir, max_expir;\n" |
| 1248 |
" struct timespec now;\n" |
| 1249 |
" struct itimerspec new_value;\n" |
| 1250 |
"\\&\n" |
| 1251 |
" if (argc != 2 && argc != 4) {\n" |
| 1252 |
" fprintf(stderr, \"%s init-secs [interval-secs" |
| 1253 |
" max-num-expir]\\[rs]n\",\n" |
| 1254 |
" argv[0]);\n" |
| 1255 |
" exit(EXIT_FAILURE);\n" |
| 1256 |
" }\n" |
| 1257 |
"\\&\n" |
| 1258 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1259 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1260 |
"\\&\n" |
| 1261 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1262 |
" expiration and interval as specified in command line. */\n" |
| 1263 |
"\\&\n" |
| 1264 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1265 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1266 |
" if (argc == 2) {\n" |
| 1267 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1268 |
" max_expir = 1;\n" |
| 1269 |
" } else {\n" |
| 1270 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1271 |
" max_expir = atoi(argv[3]);\n" |
| 1272 |
" }\n" |
| 1273 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1274 |
"\\&\n" |
| 1275 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1276 |
" if (fd == -1)\n" |
| 1277 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1278 |
"\\&\n" |
| 1279 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1280 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1281 |
"\\&\n" |
| 1282 |
" print_elapsed_time();\n" |
| 1283 |
" printf(\"timer started\\[rs]n\");\n" |
| 1284 |
"\\&\n" |
| 1285 |
" for (tot_expir = 0; tot_expir E<lt> max_expir;) {\n" |
| 1286 |
" s = read(fd, &expir, sizeof(uint64_t));\n" |
| 1287 |
" if (s != sizeof(uint64_t))\n" |
| 1288 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1289 |
"\\&\n" |
| 1290 |
" tot_expir += expir;\n" |
| 1291 |
" print_elapsed_time();\n" |
| 1292 |
" printf(\"read: %w64u; total=%w64u\\[rs]n\", expir, tot_expir);\n" |
| 1293 |
" }\n" |
| 1294 |
"\\&\n" |
| 1295 |
" exit(EXIT_SUCCESS);\n" |
| 1296 |
"}\n" |
| 1297 |
msgstr "" |
| 1298 |
"#include E<lt>err.hE<gt>\n" |
| 1299 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1300 |
"#include E<lt>stdio.hE<gt>\n" |
| 1301 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1302 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1303 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1304 |
"#include E<lt>time.hE<gt>\n" |
| 1305 |
"#include E<lt>unistd.hE<gt>\n" |
| 1306 |
"\\&\n" |
| 1307 |
"static void\n" |
| 1308 |
"print_elapsed_time(void)\n" |
| 1309 |
"{\n" |
| 1310 |
" int secs, nsecs;\n" |
| 1311 |
" static int first_call = 1;\n" |
| 1312 |
" struct timespec curr;\n" |
| 1313 |
" static struct timespec start;\n" |
| 1314 |
"\\&\n" |
| 1315 |
" if (first_call) {\n" |
| 1316 |
" first_call = 0;\n" |
| 1317 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1318 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1319 |
" }\n" |
| 1320 |
"\\&\n" |
| 1321 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1322 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1323 |
"\\&\n" |
| 1324 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1325 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1326 |
" if (nsecs E<lt> 0) {\n" |
| 1327 |
" secs--;\n" |
| 1328 |
" nsecs += 1000000000;\n" |
| 1329 |
" }\n" |
| 1330 |
" printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" |
| 1331 |
"}\n" |
| 1332 |
"\\&\n" |
| 1333 |
"int\n" |
| 1334 |
"main(int argc, char *argv[])\n" |
| 1335 |
"{\n" |
| 1336 |
" int fd;\n" |
| 1337 |
" ssize_t s;\n" |
| 1338 |
" uint64_t expir, tot_expir, max_expir;\n" |
| 1339 |
" struct timespec now;\n" |
| 1340 |
" struct itimerspec new_value;\n" |
| 1341 |
"\\&\n" |
| 1342 |
" if (argc != 2 && argc != 4) {\n" |
| 1343 |
" fprintf(stderr, \"%s init-secs [interval-secs" |
| 1344 |
" max-num-expir]\\[rs]n\",\n" |
| 1345 |
" argv[0]);\n" |
| 1346 |
" exit(EXIT_FAILURE);\n" |
| 1347 |
" }\n" |
| 1348 |
"\\&\n" |
| 1349 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1350 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1351 |
"\\&\n" |
| 1352 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1353 |
" expiration and interval as specified in command line. */\n" |
| 1354 |
"\\&\n" |
| 1355 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1356 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1357 |
" if (argc == 2) {\n" |
| 1358 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1359 |
" max_expir = 1;\n" |
| 1360 |
" } else {\n" |
| 1361 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1362 |
" max_expir = atoi(argv[3]);\n" |
| 1363 |
" }\n" |
| 1364 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1365 |
"\\&\n" |
| 1366 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1367 |
" if (fd == -1)\n" |
| 1368 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1369 |
"\\&\n" |
| 1370 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1371 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1372 |
"\\&\n" |
| 1373 |
" print_elapsed_time();\n" |
| 1374 |
" printf(\"timer started\\[rs]n\");\n" |
| 1375 |
"\\&\n" |
| 1376 |
" for (tot_expir = 0; tot_expir E<lt> max_expir;) {\n" |
| 1377 |
" s = read(fd, &expir, sizeof(uint64_t));\n" |
| 1378 |
" if (s != sizeof(uint64_t))\n" |
| 1379 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1380 |
"\\&\n" |
| 1381 |
" tot_expir += expir;\n" |
| 1382 |
" print_elapsed_time();\n" |
| 1383 |
" printf(\"read: %w64u; total=%w64u\\[rs]n\", expir, tot_expir);\n" |
| 1384 |
" }\n" |
| 1385 |
"\\&\n" |
| 1386 |
" exit(EXIT_SUCCESS);\n" |
| 1387 |
"}\n" |
| 1388 |
|
| 1389 |
#. SRC END |
| 1390 |
#. type: SH |
| 1391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1393 |
#, no-wrap |
| 1394 |
msgid "SEE ALSO" |
| 1395 |
msgstr "انظر أيضًا" |
| 1396 |
|
| 1397 |
#. type: Plain text |
| 1398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1400 |
msgid "" |
| 1401 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<setitimer>(2), " |
| 1402 |
"B<signalfd>(2), B<timer_create>(2), B<timer_gettime>(2), " |
| 1403 |
"B<timer_settime>(2), B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1404 |
msgstr "" |
| 1405 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<setitimer>(2), " |
| 1406 |
"B<signalfd>(2), B<timer_create>(2), B<timer_gettime>(2), " |
| 1407 |
"B<timer_settime>(2), B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1408 |
|
| 1409 |
#. type: TH |
| 1410 |
#: debian-trixie |
| 1411 |
#, no-wrap |
| 1412 |
msgid "2024-06-15" |
| 1413 |
msgstr "15 يونيو 2024" |
| 1414 |
|
| 1415 |
#. type: TH |
| 1416 |
#: debian-trixie |
| 1417 |
#, no-wrap |
| 1418 |
msgid "Linux man-pages 6.9.1" |
| 1419 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 1420 |
|
| 1421 |
#. type: Plain text |
| 1422 |
#: debian-trixie |
| 1423 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1424 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 1425 |
|
| 1426 |
#. type: Plain text |
| 1427 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1428 |
msgid "" |
| 1429 |
"The timer I<is successfully rearmed> with the settings provided in the " |
| 1430 |
"second B<timerfd_settime>() call. (This was probably an implementation " |
| 1431 |
"accident, but won't be fixed now, in case there are applications that depend " |
| 1432 |
"on this behaviour.)" |
| 1433 |
msgstr "" |
| 1434 |
"I<أُعيد تنشيط> المؤقت بنجاح بالإعدادات المقدمة في استدعاء B<timerfd_settime" |
| 1435 |
">() " |
| 1436 |
"الثاني. (ربما كان هذا حادثًا في التنفيذ، لكنه لن يُصلح الآن، تحسبًا لوجود " |
| 1437 |
"تطبيقات تعتمد على هذا السلوك.)" |
| 1438 |
|
| 1439 |
#. type: Plain text |
| 1440 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1441 |
#, no-wrap |
| 1442 |
msgid "" |
| 1443 |
"$B< a.out 3 1 100>\n" |
| 1444 |
"0.000: timer started\n" |
| 1445 |
"3.000: read: 1; total=1\n" |
| 1446 |
"4.000: read: 1; total=2\n" |
| 1447 |
"B<\\[ha]Z > # type control-Z to suspend the program\n" |
| 1448 |
"[1]+ Stopped ./timerfd3_demo 3 1 100\n" |
| 1449 |
"$ B<fg> # Resume execution after a few seconds\n" |
| 1450 |
"a.out 3 1 100\n" |
| 1451 |
"9.660: read: 5; total=7\n" |
| 1452 |
"10.000: read: 1; total=8\n" |
| 1453 |
"11.000: read: 1; total=9\n" |
| 1454 |
"B<\\[ha]C > # type control-C to suspend the program\n" |
| 1455 |
msgstr "" |
| 1456 |
"$B< a.out 3 1 100>\n" |
| 1457 |
"0.000: timer started\n" |
| 1458 |
"3.000: read: 1; total=1\n" |
| 1459 |
"4.000: read: 1; total=2\n" |
| 1460 |
"B<\\[ha]Z > # type control-Z to suspend the program\n" |
| 1461 |
"[1]+ Stopped ./timerfd3_demo 3 1 100\n" |
| 1462 |
"$ B<fg> # Resume execution after a few seconds\n" |
| 1463 |
"a.out 3 1 100\n" |
| 1464 |
"9.660: read: 5; total=7\n" |
| 1465 |
"10.000: read: 1; total=8\n" |
| 1466 |
"11.000: read: 1; total=9\n" |
| 1467 |
"B<\\[ha]C > # type control-C to suspend the program\n" |
| 1468 |
|
| 1469 |
#. The commented out code here is what we currently need until |
| 1470 |
#. the required stuff is in glibc |
| 1471 |
#. /* Link with \-lrt */ |
| 1472 |
#. #define _GNU_SOURCE |
| 1473 |
#. #include <sys/syscall.h> |
| 1474 |
#. #include <unistd.h> |
| 1475 |
#. #include <time.h> |
| 1476 |
#. #if defined(__i386__) |
| 1477 |
#. #define __NR_timerfd_create 322 |
| 1478 |
#. #define __NR_timerfd_settime 325 |
| 1479 |
#. #define __NR_timerfd_gettime 326 |
| 1480 |
#. #endif |
| 1481 |
#. static int |
| 1482 |
#. timerfd_create(int clockid, int flags) |
| 1483 |
#. { |
| 1484 |
#. return syscall(__NR_timerfd_create, clockid, flags); |
| 1485 |
#. } |
| 1486 |
#. static int |
| 1487 |
#. timerfd_settime(int fd, int flags, struct itimerspec *new_value, |
| 1488 |
#. struct itimerspec *curr_value) |
| 1489 |
#. { |
| 1490 |
#. return syscall(__NR_timerfd_settime, fd, flags, new_value, |
| 1491 |
#. curr_value); |
| 1492 |
#. } |
| 1493 |
#. static int |
| 1494 |
#. timerfd_gettime(int fd, struct itimerspec *curr_value) |
| 1495 |
#. { |
| 1496 |
#. return syscall(__NR_timerfd_gettime, fd, curr_value); |
| 1497 |
#. } |
| 1498 |
#. #define TFD_TIMER_ABSTIME (1 << 0) |
| 1499 |
#. //////////////////////////////////////////////////////////// |
| 1500 |
#. type: Plain text |
| 1501 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1502 |
#, no-wrap |
| 1503 |
msgid "" |
| 1504 |
"#include E<lt>err.hE<gt>\n" |
| 1505 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1506 |
"#include E<lt>stdio.hE<gt>\n" |
| 1507 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1508 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1509 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1510 |
"#include E<lt>time.hE<gt>\n" |
| 1511 |
"#include E<lt>unistd.hE<gt>\n" |
| 1512 |
"\\&\n" |
| 1513 |
"static void\n" |
| 1514 |
"print_elapsed_time(void)\n" |
| 1515 |
"{\n" |
| 1516 |
" int secs, nsecs;\n" |
| 1517 |
" static int first_call = 1;\n" |
| 1518 |
" struct timespec curr;\n" |
| 1519 |
" static struct timespec start;\n" |
| 1520 |
"\\&\n" |
| 1521 |
" if (first_call) {\n" |
| 1522 |
" first_call = 0;\n" |
| 1523 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1524 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1525 |
" }\n" |
| 1526 |
"\\&\n" |
| 1527 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1528 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1529 |
"\\&\n" |
| 1530 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1531 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1532 |
" if (nsecs E<lt> 0) {\n" |
| 1533 |
" secs--;\n" |
| 1534 |
" nsecs += 1000000000;\n" |
| 1535 |
" }\n" |
| 1536 |
" printf(\"%d.%03d: \", secs, (nsecs + 500000) / 1000000);\n" |
| 1537 |
"}\n" |
| 1538 |
"\\&\n" |
| 1539 |
"int\n" |
| 1540 |
"main(int argc, char *argv[])\n" |
| 1541 |
"{\n" |
| 1542 |
" int fd;\n" |
| 1543 |
" ssize_t s;\n" |
| 1544 |
" uint64_t exp, tot_exp, max_exp;\n" |
| 1545 |
" struct timespec now;\n" |
| 1546 |
" struct itimerspec new_value;\n" |
| 1547 |
"\\&\n" |
| 1548 |
" if (argc != 2 && argc != 4) {\n" |
| 1549 |
" fprintf(stderr, \"%s init-secs [interval-secs max-exp]\\[rs]n\",\n" |
| 1550 |
" argv[0]);\n" |
| 1551 |
" exit(EXIT_FAILURE);\n" |
| 1552 |
" }\n" |
| 1553 |
"\\&\n" |
| 1554 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1555 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1556 |
"\\&\n" |
| 1557 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1558 |
" expiration and interval as specified in command line. */\n" |
| 1559 |
"\\&\n" |
| 1560 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1561 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1562 |
" if (argc == 2) {\n" |
| 1563 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1564 |
" max_exp = 1;\n" |
| 1565 |
" } else {\n" |
| 1566 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1567 |
" max_exp = atoi(argv[3]);\n" |
| 1568 |
" }\n" |
| 1569 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1570 |
"\\&\n" |
| 1571 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1572 |
" if (fd == -1)\n" |
| 1573 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1574 |
"\\&\n" |
| 1575 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1576 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1577 |
"\\&\n" |
| 1578 |
" print_elapsed_time();\n" |
| 1579 |
" printf(\"timer started\\[rs]n\");\n" |
| 1580 |
"\\&\n" |
| 1581 |
" for (tot_exp = 0; tot_exp E<lt> max_exp;) {\n" |
| 1582 |
" s = read(fd, &exp, sizeof(uint64_t));\n" |
| 1583 |
" if (s != sizeof(uint64_t))\n" |
| 1584 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1585 |
"\\&\n" |
| 1586 |
" tot_exp += exp;\n" |
| 1587 |
" print_elapsed_time();\n" |
| 1588 |
" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\[rs]n\", exp," |
| 1589 |
" tot_exp);\n" |
| 1590 |
" }\n" |
| 1591 |
"\\&\n" |
| 1592 |
" exit(EXIT_SUCCESS);\n" |
| 1593 |
"}\n" |
| 1594 |
msgstr "" |
| 1595 |
"#include E<lt>err.hE<gt>\n" |
| 1596 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1597 |
"#include E<lt>stdio.hE<gt>\n" |
| 1598 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1599 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1600 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1601 |
"#include E<lt>time.hE<gt>\n" |
| 1602 |
"#include E<lt>unistd.hE<gt>\n" |
| 1603 |
"\\&\n" |
| 1604 |
"static void\n" |
| 1605 |
"print_elapsed_time(void)\n" |
| 1606 |
"{\n" |
| 1607 |
" int secs, nsecs;\n" |
| 1608 |
" static int first_call = 1;\n" |
| 1609 |
" struct timespec curr;\n" |
| 1610 |
" static struct timespec start;\n" |
| 1611 |
"\\&\n" |
| 1612 |
" if (first_call) {\n" |
| 1613 |
" first_call = 0;\n" |
| 1614 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1615 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1616 |
" }\n" |
| 1617 |
"\\&\n" |
| 1618 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1619 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1620 |
"\\&\n" |
| 1621 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1622 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1623 |
" if (nsecs E<lt> 0) {\n" |
| 1624 |
" secs--;\n" |
| 1625 |
" nsecs += 1000000000;\n" |
| 1626 |
" }\n" |
| 1627 |
" printf(\"%d.%03d: \", secs, (nsecs + 500000) / 1000000);\n" |
| 1628 |
"}\n" |
| 1629 |
"\\&\n" |
| 1630 |
"int\n" |
| 1631 |
"main(int argc, char *argv[])\n" |
| 1632 |
"{\n" |
| 1633 |
" int fd;\n" |
| 1634 |
" ssize_t s;\n" |
| 1635 |
" uint64_t exp, tot_exp, max_exp;\n" |
| 1636 |
" struct timespec now;\n" |
| 1637 |
" struct itimerspec new_value;\n" |
| 1638 |
"\\&\n" |
| 1639 |
" if (argc != 2 && argc != 4) {\n" |
| 1640 |
" fprintf(stderr, \"%s init-secs [interval-secs max-exp]\\[rs]n\",\n" |
| 1641 |
" argv[0]);\n" |
| 1642 |
" exit(EXIT_FAILURE);\n" |
| 1643 |
" }\n" |
| 1644 |
"\\&\n" |
| 1645 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1646 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1647 |
"\\&\n" |
| 1648 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1649 |
" expiration and interval as specified in command line. */\n" |
| 1650 |
"\\&\n" |
| 1651 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1652 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1653 |
" if (argc == 2) {\n" |
| 1654 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1655 |
" max_exp = 1;\n" |
| 1656 |
" } else {\n" |
| 1657 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1658 |
" max_exp = atoi(argv[3]);\n" |
| 1659 |
" }\n" |
| 1660 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1661 |
"\\&\n" |
| 1662 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1663 |
" if (fd == -1)\n" |
| 1664 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1665 |
"\\&\n" |
| 1666 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1667 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1668 |
"\\&\n" |
| 1669 |
" print_elapsed_time();\n" |
| 1670 |
" printf(\"timer started\\[rs]n\");\n" |
| 1671 |
"\\&\n" |
| 1672 |
" for (tot_exp = 0; tot_exp E<lt> max_exp;) {\n" |
| 1673 |
" s = read(fd, &exp, sizeof(uint64_t));\n" |
| 1674 |
" if (s != sizeof(uint64_t))\n" |
| 1675 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1676 |
"\\&\n" |
| 1677 |
" tot_exp += exp;\n" |
| 1678 |
" print_elapsed_time();\n" |
| 1679 |
" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\[rs]n\", exp," |
| 1680 |
" tot_exp);\n" |
| 1681 |
" }\n" |
| 1682 |
"\\&\n" |
| 1683 |
" exit(EXIT_SUCCESS);\n" |
| 1684 |
"}\n" |
| 1685 |
|
| 1686 |
#. type: TH |
| 1687 |
#: fedora-44 fedora-rawhide |
| 1688 |
#, no-wrap |
| 1689 |
msgid "2024-07-23" |
| 1690 |
msgstr "23 يوليو 2024" |
| 1691 |
|
| 1692 |
#. type: TH |
| 1693 |
#: fedora-44 fedora-rawhide |
| 1694 |
#, no-wrap |
| 1695 |
msgid "Linux man-pages 6.13" |
| 1696 |
msgstr "صفحات دليل لينكس 6.13" |
| 1697 |
|
| 1698 |
#. type: TH |
| 1699 |
#: mageia-cauldron |
| 1700 |
#, no-wrap |
| 1701 |
msgid "2026-02-08" |
| 1702 |
msgstr "8 فبراير 2026" |
| 1703 |
|
| 1704 |
#. type: TH |
| 1705 |
#: mageia-cauldron |
| 1706 |
#, no-wrap |
| 1707 |
msgid "Linux man-pages 6.17" |
| 1708 |
msgstr "صفحات دليل لينكس 6.17" |
| 1709 |
|
| 1710 |
#. The commented out code here is what we currently need until |
| 1711 |
#. the required stuff is in glibc |
| 1712 |
#. /* Link with \-lrt */ |
| 1713 |
#. #define _GNU_SOURCE |
| 1714 |
#. #include <sys/syscall.h> |
| 1715 |
#. #include <unistd.h> |
| 1716 |
#. #include <time.h> |
| 1717 |
#. #if defined(__i386__) |
| 1718 |
#. #define __NR_timerfd_create 322 |
| 1719 |
#. #define __NR_timerfd_settime 325 |
| 1720 |
#. #define __NR_timerfd_gettime 326 |
| 1721 |
#. #endif |
| 1722 |
#. static int |
| 1723 |
#. timerfd_create(int clockid, int flags) |
| 1724 |
#. { |
| 1725 |
#. return syscall(__NR_timerfd_create, clockid, flags); |
| 1726 |
#. } |
| 1727 |
#. static int |
| 1728 |
#. timerfd_settime(int fd, int flags, struct itimerspec *new_value, |
| 1729 |
#. struct itimerspec *curr_value) |
| 1730 |
#. { |
| 1731 |
#. return syscall(__NR_timerfd_settime, fd, flags, new_value, |
| 1732 |
#. curr_value); |
| 1733 |
#. } |
| 1734 |
#. static int |
| 1735 |
#. timerfd_gettime(int fd, struct itimerspec *curr_value) |
| 1736 |
#. { |
| 1737 |
#. return syscall(__NR_timerfd_gettime, fd, curr_value); |
| 1738 |
#. } |
| 1739 |
#. #define TFD_TIMER_ABSTIME (1 << 0) |
| 1740 |
#. //////////////////////////////////////////////////////////// |
| 1741 |
#. type: Plain text |
| 1742 |
#: mageia-cauldron |
| 1743 |
#, no-wrap |
| 1744 |
msgid "" |
| 1745 |
"#include E<lt>err.hE<gt>\n" |
| 1746 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1747 |
"#include E<lt>stdio.hE<gt>\n" |
| 1748 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1749 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1750 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1751 |
"#include E<lt>time.hE<gt>\n" |
| 1752 |
"#include E<lt>unistd.hE<gt>\n" |
| 1753 |
"\\&\n" |
| 1754 |
"static void\n" |
| 1755 |
"print_elapsed_time(void)\n" |
| 1756 |
"{\n" |
| 1757 |
" int secs, nsecs;\n" |
| 1758 |
" static int first_call = 1;\n" |
| 1759 |
" struct timespec curr;\n" |
| 1760 |
" static struct timespec start;\n" |
| 1761 |
"\\&\n" |
| 1762 |
" if (first_call) {\n" |
| 1763 |
" first_call = 0;\n" |
| 1764 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1765 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1766 |
" }\n" |
| 1767 |
"\\&\n" |
| 1768 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1769 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1770 |
"\\&\n" |
| 1771 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1772 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1773 |
" if (nsecs E<lt> 0) {\n" |
| 1774 |
" secs--;\n" |
| 1775 |
" nsecs += 1000000000;\n" |
| 1776 |
" }\n" |
| 1777 |
" printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" |
| 1778 |
"}\n" |
| 1779 |
"\\&\n" |
| 1780 |
"int\n" |
| 1781 |
"main(int argc, char *argv[])\n" |
| 1782 |
"{\n" |
| 1783 |
" int fd;\n" |
| 1784 |
" ssize_t s;\n" |
| 1785 |
" uint64_t expir, tot_expir, max_expir;\n" |
| 1786 |
" struct timespec now;\n" |
| 1787 |
" struct itimerspec new_value;\n" |
| 1788 |
"\\&\n" |
| 1789 |
" if (argc != 2 && argc != 4) {\n" |
| 1790 |
" fprintf(stderr, \"%s init-secs [interval-secs" |
| 1791 |
" max-num-expir]\\[rs]n\",\n" |
| 1792 |
" argv[0]);\n" |
| 1793 |
" exit(EXIT_FAILURE);\n" |
| 1794 |
" }\n" |
| 1795 |
"\\&\n" |
| 1796 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1797 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1798 |
"\\&\n" |
| 1799 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1800 |
" expiration and interval as specified in command line. */\n" |
| 1801 |
"\\&\n" |
| 1802 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1803 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1804 |
" if (argc == 2) {\n" |
| 1805 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1806 |
" max_expir = 1;\n" |
| 1807 |
" } else {\n" |
| 1808 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1809 |
" max_expir = atoi(argv[3]);\n" |
| 1810 |
" }\n" |
| 1811 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1812 |
"\\&\n" |
| 1813 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1814 |
" if (fd == -1)\n" |
| 1815 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1816 |
"\\&\n" |
| 1817 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1818 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1819 |
"\\&\n" |
| 1820 |
" print_elapsed_time();\n" |
| 1821 |
" printf(\"timer started\\[rs]n\");\n" |
| 1822 |
"\\&\n" |
| 1823 |
" for (tot_expir = 0; tot_expir E<lt> max_expir;) {\n" |
| 1824 |
" s = read(fd, &expir, sizeof(uint64_t));\n" |
| 1825 |
" if (s != sizeof(uint64_t))\n" |
| 1826 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1827 |
"\\&\n" |
| 1828 |
" tot_expir += expir;\n" |
| 1829 |
" print_elapsed_time();\n" |
| 1830 |
" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\[rs]n\",\n" |
| 1831 |
" expir, tot_expir);\n" |
| 1832 |
" }\n" |
| 1833 |
"\\&\n" |
| 1834 |
" exit(EXIT_SUCCESS);\n" |
| 1835 |
"}\n" |
| 1836 |
msgstr "" |
| 1837 |
"#include E<lt>err.hE<gt>\n" |
| 1838 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1839 |
"#include E<lt>stdio.hE<gt>\n" |
| 1840 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1841 |
"#include E<lt>sys/timerfd.hE<gt>\n" |
| 1842 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1843 |
"#include E<lt>time.hE<gt>\n" |
| 1844 |
"#include E<lt>unistd.hE<gt>\n" |
| 1845 |
"\\&\n" |
| 1846 |
"static void\n" |
| 1847 |
"print_elapsed_time(void)\n" |
| 1848 |
"{\n" |
| 1849 |
" int secs, nsecs;\n" |
| 1850 |
" static int first_call = 1;\n" |
| 1851 |
" struct timespec curr;\n" |
| 1852 |
" static struct timespec start;\n" |
| 1853 |
"\\&\n" |
| 1854 |
" if (first_call) {\n" |
| 1855 |
" first_call = 0;\n" |
| 1856 |
" if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)\n" |
| 1857 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1858 |
" }\n" |
| 1859 |
"\\&\n" |
| 1860 |
" if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)\n" |
| 1861 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1862 |
"\\&\n" |
| 1863 |
" secs = curr.tv_sec - start.tv_sec;\n" |
| 1864 |
" nsecs = curr.tv_nsec - start.tv_nsec;\n" |
| 1865 |
" if (nsecs E<lt> 0) {\n" |
| 1866 |
" secs--;\n" |
| 1867 |
" nsecs += 1000000000;\n" |
| 1868 |
" }\n" |
| 1869 |
" printf(\"%d.%03d:\\[rs]t\", secs, (nsecs + 500000) / 1000000);\n" |
| 1870 |
"}\n" |
| 1871 |
"\\&\n" |
| 1872 |
"int\n" |
| 1873 |
"main(int argc, char *argv[])\n" |
| 1874 |
"{\n" |
| 1875 |
" int fd;\n" |
| 1876 |
" ssize_t s;\n" |
| 1877 |
" uint64_t expir, tot_expir, max_expir;\n" |
| 1878 |
" struct timespec now;\n" |
| 1879 |
" struct itimerspec new_value;\n" |
| 1880 |
"\\&\n" |
| 1881 |
" if (argc != 2 && argc != 4) {\n" |
| 1882 |
" fprintf(stderr, \"%s init-secs [interval-secs" |
| 1883 |
" max-num-expir]\\[rs]n\",\n" |
| 1884 |
" argv[0]);\n" |
| 1885 |
" exit(EXIT_FAILURE);\n" |
| 1886 |
" }\n" |
| 1887 |
"\\&\n" |
| 1888 |
" if (clock_gettime(CLOCK_REALTIME, &now) == -1)\n" |
| 1889 |
" err(EXIT_FAILURE, \"clock_gettime\");\n" |
| 1890 |
"\\&\n" |
| 1891 |
" /* Create a CLOCK_REALTIME absolute timer with initial\n" |
| 1892 |
" expiration and interval as specified in command line. */\n" |
| 1893 |
"\\&\n" |
| 1894 |
" new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);\n" |
| 1895 |
" new_value.it_value.tv_nsec = now.tv_nsec;\n" |
| 1896 |
" if (argc == 2) {\n" |
| 1897 |
" new_value.it_interval.tv_sec = 0;\n" |
| 1898 |
" max_expir = 1;\n" |
| 1899 |
" } else {\n" |
| 1900 |
" new_value.it_interval.tv_sec = atoi(argv[2]);\n" |
| 1901 |
" max_expir = atoi(argv[3]);\n" |
| 1902 |
" }\n" |
| 1903 |
" new_value.it_interval.tv_nsec = 0;\n" |
| 1904 |
"\\&\n" |
| 1905 |
" fd = timerfd_create(CLOCK_REALTIME, 0);\n" |
| 1906 |
" if (fd == -1)\n" |
| 1907 |
" err(EXIT_FAILURE, \"timerfd_create\");\n" |
| 1908 |
"\\&\n" |
| 1909 |
" if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)\n" |
| 1910 |
" err(EXIT_FAILURE, \"timerfd_settime\");\n" |
| 1911 |
"\\&\n" |
| 1912 |
" print_elapsed_time();\n" |
| 1913 |
" printf(\"timer started\\[rs]n\");\n" |
| 1914 |
"\\&\n" |
| 1915 |
" for (tot_expir = 0; tot_expir E<lt> max_expir;) {\n" |
| 1916 |
" s = read(fd, &expir, sizeof(uint64_t));\n" |
| 1917 |
" if (s != sizeof(uint64_t))\n" |
| 1918 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1919 |
"\\&\n" |
| 1920 |
" tot_expir += expir;\n" |
| 1921 |
" print_elapsed_time();\n" |
| 1922 |
" printf(\"read: %\" PRIu64 \"; total=%\" PRIu64 \"\\[rs]n\",\n" |
| 1923 |
" expir, tot_expir);\n" |
| 1924 |
" }\n" |
| 1925 |
"\\&\n" |
| 1926 |
" exit(EXIT_SUCCESS);\n" |
| 1927 |
"}\n" |
| 1928 |
|
| 1929 |
#. type: TH |
| 1930 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1931 |
#, no-wrap |
| 1932 |
msgid "Linux man-pages (unreleased)" |
| 1933 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |
| 1934 |
|
| 1935 |
|