| 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 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.2\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:49+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-18 17:58+0400\n" |
| 10 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 11 |
"Language-Team: Arabic <[email protected]>\n" |
| 12 |
"Language: ar\n" |
| 13 |
"MIME-Version: 1.0\n" |
| 14 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 15 |
"Content-Transfer-Encoding: 8bit\n" |
| 16 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
| 17 |
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 18 |
"X-Generator: Lokalize 23.08.5\n" |
| 19 |
|
| 20 |
#. type: TH |
| 21 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 22 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 23 |
#, no-wrap |
| 24 |
msgid "timer_create" |
| 25 |
msgstr "timer_create" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2025-10-29" |
| 32 |
msgstr "29 أكتوبر 2025" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "صفحات دليل لينكس 6.18" |
| 39 |
|
| 40 |
#. type: SH |
| 41 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 42 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "NAME" |
| 45 |
msgstr "الاسم" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
msgid "timer_create - create a POSIX per-process timer" |
| 51 |
msgstr "timer_create - إنشاء مؤقت POSIX لكل عملية" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "LIBRARY" |
| 58 |
msgstr "المكتبة" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 62 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "Real-time library (I<librt>,\\ I<-lrt>)" |
| 64 |
msgstr "مكتبة الوقت الحقيقي (I<librt>،\\ I<-lrt>)" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "موجز" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "" |
| 78 |
"B<#include E<lt>signal.hE<gt>> /* Definition of B<SIGEV_*> constants */\n" |
| 79 |
"B<#include E<lt>time.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
"B<#include E<lt>signal.hE<gt>> /* تعريف ثوابت B<SIGEV_*> */\n" |
| 82 |
"B<#include E<lt>time.hE<gt>>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "" |
| 89 |
"B<int timer_create(clockid_t >I<clockid>B<,>\n" |
| 90 |
"B< struct sigevent *_Nullable restrict >I<sevp>B<,>\n" |
| 91 |
"B< timer_t *restrict >I<timerid>B<);>\n" |
| 92 |
msgstr "" |
| 93 |
"B<int timer_create(clockid_t >I<clockid>B<,>\n" |
| 94 |
"B< struct sigevent *_Nullable restrict >I<sevp>B<,>\n" |
| 95 |
"B< timer_t *restrict >I<timerid>B<);>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
msgid "" |
| 101 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 102 |
msgstr "" |
| 103 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "B<timer_create>():" |
| 109 |
msgstr "B<timer_create>():" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
#, no-wrap |
| 115 |
msgid " _POSIX_C_SOURCE E<gt>= 199309L\n" |
| 116 |
msgstr " _POSIX_C_SOURCE E<gt>= 199309L\n" |
| 117 |
|
| 118 |
#. type: SH |
| 119 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 120 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
#, no-wrap |
| 122 |
msgid "DESCRIPTION" |
| 123 |
msgstr "الوصف" |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "" |
| 129 |
"B<timer_create>() creates a new per-process interval timer. The ID of the " |
| 130 |
"new timer is returned in the buffer pointed to by I<timerid>, which must be " |
| 131 |
"a non-null pointer. This ID is unique within the process, until the timer " |
| 132 |
"is deleted. The new timer is initially disarmed." |
| 133 |
msgstr "" |
| 134 |
"تنشئ B<timer_create>() مؤقت فاصل زمني جديد لكل عملية. يُعاد معرف المؤقت " |
| 135 |
"الجديد في المخزن المؤقت المشار إليه بواسطة I<timerid>، والذي يجب أن يكون " |
| 136 |
"مؤشرًا غير فارغ. هذا المعرف فريد داخل العملية، حتى يُحذف المؤقت. المؤقت الجديد " |
| 137 |
"يكون غير مُسلح مبدئيًا." |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "" |
| 143 |
"The I<clockid> argument specifies the clock that the new timer uses to " |
| 144 |
"measure time. It can be specified as one of the following values:" |
| 145 |
msgstr "" |
| 146 |
"تحدد الوسيطة I<clockid> الساعة التي يستخدمها المؤقت الجديد لقياس الوقت. يمكن " |
| 147 |
"تحديدها كأحد القيم التالية:" |
| 148 |
|
| 149 |
#. type: TP |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
#, no-wrap |
| 153 |
msgid "B<CLOCK_REALTIME>" |
| 154 |
msgstr "B<CLOCK_REALTIME>" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "A settable system-wide real-time clock." |
| 160 |
msgstr "ساعة وقت حقيقي قابلة للضبط على مستوى النظام." |
| 161 |
|
| 162 |
#. type: TP |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "B<CLOCK_MONOTONIC>" |
| 167 |
msgstr "B<CLOCK_MONOTONIC>" |
| 168 |
|
| 169 |
#. Note: the CLOCK_MONOTONIC_RAW clock added for clock_gettime() |
| 170 |
#. in Linux 2.6.28 is not supported for POSIX timers -- mtk, Feb 2009 |
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"A nonsettable monotonically increasing clock that measures time from some " |
| 176 |
"unspecified point in the past that does not change after system startup." |
| 177 |
msgstr "" |
| 178 |
"ساعة تزايدية رتيبة غير قابلة للضبط تقيس الوقت من نقطة غير محددة في الماضي لا " |
| 179 |
"تتغير بعد بدء تشغيل النظام." |
| 180 |
|
| 181 |
#. type: TP |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
#, no-wrap |
| 185 |
msgid "B<CLOCK_PROCESS_CPUTIME_ID> (since Linux 2.6.12)" |
| 186 |
msgstr "B<CLOCK_PROCESS_CPUTIME_ID> (منذ لينكس 2.6.12)" |
| 187 |
|
| 188 |
#. type: Plain text |
| 189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 191 |
msgid "" |
| 192 |
"A clock that measures (user and system) CPU time consumed by (all of the " |
| 193 |
"threads in) the calling process." |
| 194 |
msgstr "" |
| 195 |
"ساعة تقيس وقت وحدة المعالجة المركزية (المستخدم والنظام) المستهلك بواسطة " |
| 196 |
"(جميع الخيوط في) العملية المستدعية." |
| 197 |
|
| 198 |
#. type: TP |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "B<CLOCK_THREAD_CPUTIME_ID> (since Linux 2.6.12)" |
| 203 |
msgstr "B<CLOCK_THREAD_CPUTIME_ID> (منذ لينكس 2.6.12)" |
| 204 |
|
| 205 |
#. The CLOCK_MONOTONIC_RAW that was added in Linux 2.6.28 can't be used |
| 206 |
#. to create a timer -- mtk, Feb 2009 |
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "" |
| 211 |
"A clock that measures (user and system) CPU time consumed by the calling " |
| 212 |
"thread." |
| 213 |
msgstr "" |
| 214 |
"ساعة تقيس وقت وحدة المعالجة المركزية (المستخدم والنظام) المستهلك بواسطة " |
| 215 |
"الخيط المستدعي." |
| 216 |
|
| 217 |
#. type: TP |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "B<CLOCK_BOOTTIME> (Since Linux 2.6.39)" |
| 222 |
msgstr "B<CLOCK_BOOTTIME> (منذ لينكس 2.6.39)" |
| 223 |
|
| 224 |
#. commit 70a08cca1227dc31c784ec930099a4417a06e7d0 |
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"Like B<CLOCK_MONOTONIC>, this is a monotonically increasing clock. However, " |
| 230 |
"whereas the B<CLOCK_MONOTONIC> clock does not measure the time while a " |
| 231 |
"system is suspended, the B<CLOCK_BOOTTIME> clock does include the time " |
| 232 |
"during which the system is suspended. This is useful for applications that " |
| 233 |
"need to be suspend-aware. B<CLOCK_REALTIME> is not suitable for such " |
| 234 |
"applications, since that clock is affected by discontinuous changes to the " |
| 235 |
"system clock." |
| 236 |
msgstr "" |
| 237 |
"مثل B<CLOCK_MONOTONIC>، هذه ساعة تتزايد برتابة. ومع ذلك، فبينما لا تقيس ساعة " |
| 238 |
"B<CLOCK_MONOTONIC> الوقت أثناء تعليق النظام، فإن ساعة B<CLOCK_BOOTTIME> تشمل " |
| 239 |
"الوقت الذي يكون فيه النظام معلقاً. هذا مفيد للتطبيقات التي تحتاج أن تكون " |
| 240 |
"مدركة للتعليق. ساعة B<CLOCK_REALTIME> ليست مناسبة لمثل هذه التطبيقات، لأن " |
| 241 |
"تلك الساعة تتأثر بالتغيرات غير المستمرة في ساعة النظام." |
| 242 |
|
| 243 |
#. type: TP |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
#, no-wrap |
| 247 |
msgid "B<CLOCK_REALTIME_ALARM> (since Linux 3.0)" |
| 248 |
msgstr "B<CLOCK_REALTIME_ALARM> (منذ لينكس 3.0)" |
| 249 |
|
| 250 |
#. commit 9a7adcf5c6dea63d2e47e6f6d2f7a6c9f48b9337 |
| 251 |
#. type: Plain text |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
msgid "" |
| 255 |
"This clock is like B<CLOCK_REALTIME>, but will wake the system if it is " |
| 256 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 257 |
"to set a timer against this clock." |
| 258 |
msgstr "" |
| 259 |
"هذه الساعة تشبه B<CLOCK_REALTIME>، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " |
| 260 |
"يتمتع المستدعِي بصلاحية B<CAP_WAKE_ALARM> لضبط مؤقت لهذه الساعة." |
| 261 |
|
| 262 |
#. type: TP |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid "B<CLOCK_BOOTTIME_ALARM> (since Linux 3.0)" |
| 267 |
msgstr "B<CLOCK_BOOTTIME_ALARM> (منذ لينكس 3.0)" |
| 268 |
|
| 269 |
#. commit 9a7adcf5c6dea63d2e47e6f6d2f7a6c9f48b9337 |
| 270 |
#. type: Plain text |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
msgid "" |
| 274 |
"This clock is like B<CLOCK_BOOTTIME>, but will wake the system if it is " |
| 275 |
"suspended. The caller must have the B<CAP_WAKE_ALARM> capability in order " |
| 276 |
"to set a timer against this clock." |
| 277 |
msgstr "" |
| 278 |
"هذه الساعة تشبه B<CLOCK_BOOTTIME>، لكنها ستوقظ النظام إذا كان معلقًا. يجب أن " |
| 279 |
"يتمتع المستدعِي بصلاحية B<CAP_WAKE_ALARM> لضبط مؤقت لهذه الساعة." |
| 280 |
|
| 281 |
#. type: TP |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "B<CLOCK_TAI> (since Linux 3.10)" |
| 286 |
msgstr "B<CLOCK_TAI> (منذ لينكس 3.10)" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"A system-wide clock derived from wall-clock time but counting leap seconds." |
| 293 |
msgstr "" |
| 294 |
"ساعة على مستوى النظام مشتقة من وقت الساعة الجدارية ولكنها تحسب الثواني " |
| 295 |
"الكبيسة." |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "See B<clock_getres>(2) for some further details on the above clocks." |
| 301 |
msgstr "انظر B<clock_getres>(2) لمزيد من التفاصيل حول الساعات المذكورة أعلاه." |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "" |
| 307 |
"As well as the above values, I<clockid> can be specified as the I<clockid> " |
| 308 |
"returned by a call to B<clock_getcpuclockid>(3) or " |
| 309 |
"B<pthread_getcpuclockid>(3)." |
| 310 |
msgstr "" |
| 311 |
"بالإضافة إلى القيم أعلاه، يمكن تحديد I<clockid> كـ I<clockid> المُعاد بواسطة " |
| 312 |
"استدعاء B<clock_getcpuclockid>(3) أو B<pthread_getcpuclockid>(3)." |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "" |
| 318 |
"The I<sevp> argument points to a I<sigevent> structure that specifies how " |
| 319 |
"the caller should be notified when the timer expires. For the definition " |
| 320 |
"and general details of this structure, see B<sigevent>(3type)." |
| 321 |
msgstr "" |
| 322 |
"تشير الوسيطة I<sevp> إلى بنية I<sigevent> تحدد كيف ينبغي إعلام المستدعي عند " |
| 323 |
"انتهاء المؤقت. للتعريف والتفاصيل العامة لهذه البنية، انظر B<sigevent>(3type)." |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
msgid "The I<sevp.sigev_notify> field can have the following values:" |
| 329 |
msgstr "يمكن أن يأخذ الحقل I<sevp.sigev_notify> القيم التالية:" |
| 330 |
|
| 331 |
#. type: TP |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
#, no-wrap |
| 335 |
msgid "B<SIGEV_NONE>" |
| 336 |
msgstr "B<SIGEV_NONE>" |
| 337 |
|
| 338 |
#. type: Plain text |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
msgid "" |
| 342 |
"Don't asynchronously notify when the timer expires. Progress of the timer " |
| 343 |
"can be monitored using B<timer_gettime>(2)." |
| 344 |
msgstr "" |
| 345 |
"لا تُعلم بشكل غير متزامن عند انتهاء المؤقت. يمكن مراقبة تقدم المؤقت باستخدام " |
| 346 |
"B<timer_gettime>(2)." |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<SIGEV_SIGNAL>" |
| 353 |
msgstr "B<SIGEV_SIGNAL>" |
| 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 |
"Upon timer expiration, generate the signal I<sigev_signo> for the process. " |
| 360 |
"See B<sigevent>(3type) for general details. The I<si_code> field of the " |
| 361 |
"I<siginfo_t> structure will be set to B<SI_TIMER>. At any point in time, at " |
| 362 |
"most one signal is queued to the process for a given timer; see " |
| 363 |
"B<timer_getoverrun>(2) for more details." |
| 364 |
msgstr "" |
| 365 |
"عند انتهاء المؤقت، يُولد الإشارة I<sigev_signo> للعملية. انظر " |
| 366 |
"B<sigevent>(3type) للتفاصيل العامة. سيُضبط الحقل I<si_code> من بنية " |
| 367 |
"I<siginfo_t> إلى B<SI_TIMER>. في أي نقطة زمنية، يُصطف إشارة واحدة على الأكثر " |
| 368 |
"للعملية لمؤقت معين؛ انظر B<timer_getoverrun>(2) لمزيد من التفاصيل." |
| 369 |
|
| 370 |
#. type: TP |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "B<SIGEV_THREAD>" |
| 375 |
msgstr "B<SIGEV_THREAD>" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
msgid "" |
| 381 |
"Upon timer expiration, invoke I<sigev_notify_function> as if it were the " |
| 382 |
"start function of a new thread. See B<sigevent>(3type) for details." |
| 383 |
msgstr "" |
| 384 |
"عند انتهاء المؤقت، يُستدعى I<sigev_notify_function> كما لو كانت دالة بدء خيط " |
| 385 |
"جديد. انظر B<sigevent>(3type) للتفاصيل." |
| 386 |
|
| 387 |
#. type: TP |
| 388 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 389 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 390 |
#, no-wrap |
| 391 |
msgid "B<SIGEV_THREAD_ID> (Linux-specific)" |
| 392 |
msgstr "B<SIGEV_THREAD_ID> (خاص بلينكس)" |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
msgid "" |
| 398 |
"As for B<SIGEV_SIGNAL>, but the signal is targeted at the thread whose ID is " |
| 399 |
"given in I<sigev_notify_thread_id>, which must be a thread in the same " |
| 400 |
"process as the caller. The I<sigev_notify_thread_id> field specifies a " |
| 401 |
"kernel thread ID, that is, the value returned by B<clone>(2) or " |
| 402 |
"B<gettid>(2). This flag is intended only for use by threading libraries." |
| 403 |
msgstr "" |
| 404 |
"كما في B<SIGEV_SIGNAL>، لكن الإشارة موجهة إلى الخيط الذي يُعطى معرفه في " |
| 405 |
"I<sigev_notify_thread_id>، والذي يجب أن يكون خيطًا في نفس العملية مثل " |
| 406 |
"المستدعي. يحدد الحقل I<sigev_notify_thread_id> معرف خيط النواة، أي القيمة " |
| 407 |
"المُعادة بواسطة B<clone>(2) أو B<gettid>(2). هذه العلامة مخصصة للاستخدام فقط " |
| 408 |
"من قبل مكتبات الخيوط." |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"Specifying I<sevp> as NULL is equivalent to specifying a pointer to a " |
| 415 |
"I<sigevent> structure in which I<sigev_notify> is B<SIGEV_SIGNAL>, " |
| 416 |
"I<sigev_signo> is B<SIGALRM>, and I<sigev_value.sival_int> is the timer ID." |
| 417 |
msgstr "" |
| 418 |
"تحديد I<sevp> كـ NULL يعادل تحديد مؤشر لبنية I<sigevent> حيث I<sigev_notify> " |
| 419 |
"هو B<SIGEV_SIGNAL>، وI<sigev_signo> هو B<SIGALRM>، وI<sigev_value.sival_int> " |
| 420 |
"هو معرف المؤقت." |
| 421 |
|
| 422 |
#. type: SH |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid "RETURN VALUE" |
| 427 |
msgstr "قيمة الإرجاع" |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
msgid "" |
| 433 |
"On success, B<timer_create>() returns 0, and the ID of the new timer is " |
| 434 |
"placed in I<*timerid>. On failure, -1 is returned, and I<errno> is set to " |
| 435 |
"indicate the error." |
| 436 |
msgstr "" |
| 437 |
"عند النجاح، تُعيد B<timer_create>() 0، ويُوضع معرف المؤقت الجديد في " |
| 438 |
"I<*timerid>. عند الفشل، تُعيد -1، ويُضبط I<errno> للإشارة إلى الخطأ." |
| 439 |
|
| 440 |
#. type: SH |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
#, no-wrap |
| 444 |
msgid "ERRORS" |
| 445 |
msgstr "الأخطاء" |
| 446 |
|
| 447 |
#. type: TP |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "B<EAGAIN>" |
| 452 |
msgstr "B<EAGAIN>" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "Temporary error during kernel allocation of timer structures." |
| 458 |
msgstr "خطأ مؤقت أثناء تخصيص النواة لبنى المؤقت." |
| 459 |
|
| 460 |
#. type: TP |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "B<EINVAL>" |
| 465 |
msgstr "B<EINVAL>" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"Clock ID, I<sigev_notify>, I<sigev_signo>, or I<sigev_notify_thread_id> is " |
| 472 |
"invalid." |
| 473 |
msgstr "" |
| 474 |
"معرف الساعة، أو I<sigev_notify>، أو I<sigev_signo>، أو " |
| 475 |
"I<sigev_notify_thread_id> غير صالح." |
| 476 |
|
| 477 |
#. type: TP |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "B<ENOMEM>" |
| 482 |
msgstr "B<ENOMEM>" |
| 483 |
|
| 484 |
#. glibc layer: malloc() |
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
msgid "Could not allocate memory." |
| 489 |
msgstr "تعذر تخصيص الذاكرة." |
| 490 |
|
| 491 |
#. type: TP |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "B<ENOTSUP>" |
| 496 |
msgstr "B<ENOTSUP>" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
msgid "The kernel does not support creating a timer against this I<clockid>." |
| 502 |
msgstr "لا تدعم النواة إنشاء مؤقت مقابل I<clockid> هذا." |
| 503 |
|
| 504 |
#. type: TP |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "B<EPERM>" |
| 509 |
msgstr "B<EPERM>" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "" |
| 515 |
"I<clockid> was B<CLOCK_REALTIME_ALARM> or B<CLOCK_BOOTTIME_ALARM> but the " |
| 516 |
"caller did not have the B<CAP_WAKE_ALARM> capability." |
| 517 |
msgstr "" |
| 518 |
"كان I<clockid> هو B<CLOCK_REALTIME_ALARM> أو B<CLOCK_BOOTTIME_ALARM> ولكن " |
| 519 |
"المستدعي لم يمتلك قدرة B<CAP_WAKE_ALARM>." |
| 520 |
|
| 521 |
#. type: SH |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
#, no-wrap |
| 525 |
msgid "VERSIONS" |
| 526 |
msgstr "الإصدارات" |
| 527 |
|
| 528 |
#. type: SS |
| 529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 531 |
#, no-wrap |
| 532 |
msgid "C library/kernel differences" |
| 533 |
msgstr "الاختلافات بين مكتبة C والنواة" |
| 534 |
|
| 535 |
#. See nptl/sysdeps/unix/sysv/linux/timer_create.c |
| 536 |
#. type: Plain text |
| 537 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 538 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
msgid "" |
| 540 |
"Part of the implementation of the POSIX timers API is provided by glibc. In " |
| 541 |
"particular:" |
| 542 |
msgstr "" |
| 543 |
"جزء من تنفيذ واجهة برمجة تطبيقات مؤقتات POSIX يُوفر بواسطة glibc. على وجه " |
| 544 |
"الخصوص:" |
| 545 |
|
| 546 |
#. type: IP |
| 547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 548 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
#, no-wrap |
| 550 |
msgid "\\[bu]" |
| 551 |
msgstr "\\[bu]" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
msgid "" |
| 557 |
"Much of the functionality for B<SIGEV_THREAD> is implemented within glibc, " |
| 558 |
"rather than the kernel. (This is necessarily so, since the thread involved " |
| 559 |
"in handling the notification is one that must be managed by the C library " |
| 560 |
"POSIX threads implementation.) Although the notification delivered to the " |
| 561 |
"process is via a thread, internally the NPTL implementation uses a " |
| 562 |
"I<sigev_notify> value of B<SIGEV_THREAD_ID> along with a real-time signal " |
| 563 |
"that is reserved by the implementation (see B<nptl>(7))." |
| 564 |
msgstr "" |
| 565 |
"معظم وظائف B<SIGEV_THREAD> مُنفذة داخل glibc، وليس النواة. (هذا ضروري، لأن " |
| 566 |
"الخيط المشارك في معالجة الإعلام هو خيط يجب إدارته بواسطة تنفيذ خيوط POSIX " |
| 567 |
"لمكتبة C.) على الرغم من أن الإعلام المُسلم للعملية يكون عبر خيط، داخليًا " |
| 568 |
"يستخدم تنفيذ NPTL قيمة I<sigev_notify> من B<SIGEV_THREAD_ID> مع إشارة زمن " |
| 569 |
"حقيقي محجوزة بواسطة التنفيذ (انظر B<nptl>(7))." |
| 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 |
"The implementation of the default case where I<evp> is NULL is handled " |
| 576 |
"inside glibc, which invokes the underlying system call with a suitably " |
| 577 |
"populated I<sigevent> structure." |
| 578 |
msgstr "" |
| 579 |
"تنفيذ الحالة المبدئية حيث I<evp> هو NULL يُعالج داخل glibc، الذي يستدعي " |
| 580 |
"استدعاء النظام الأساسي مع بنية I<sigevent> مملوءة بشكل مناسب." |
| 581 |
|
| 582 |
#. See the glibc source file kernel-posix-timers.h for the structure |
| 583 |
#. that glibc uses to map user-space timer IDs to kernel timer IDs |
| 584 |
#. The kernel-level timer ID is exposed via siginfo.si_tid. |
| 585 |
#. type: Plain text |
| 586 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 587 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 588 |
msgid "" |
| 589 |
"The timer IDs presented at user level are maintained by glibc, which maps " |
| 590 |
"these IDs to the timer IDs employed by the kernel." |
| 591 |
msgstr "" |
| 592 |
"معرفات المؤقت المُقدمة على مستوى المستخدم تُحافظ عليها glibc، التي تُخطط هذه " |
| 593 |
"المعرفات إلى معرفات المؤقت المستخدمة بواسطة النواة." |
| 594 |
|
| 595 |
#. type: SH |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
#, no-wrap |
| 599 |
msgid "STANDARDS" |
| 600 |
msgstr "المعايير" |
| 601 |
|
| 602 |
#. type: Plain text |
| 603 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 604 |
#: opensuse-tumbleweed |
| 605 |
msgid "POSIX.1-2024." |
| 606 |
msgstr "POSIX.1-2024." |
| 607 |
|
| 608 |
#. type: SH |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
#, no-wrap |
| 612 |
msgid "HISTORY" |
| 613 |
msgstr "التاريخ" |
| 614 |
|
| 615 |
#. type: Plain text |
| 616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 617 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 618 |
msgid "Linux 2.6. POSIX.1-2001." |
| 619 |
msgstr "لينكس 2.6. POSIX.1-2001." |
| 620 |
|
| 621 |
#. glibc commit 93a78ac437ba44f493333d7e2a4b0249839ce460 |
| 622 |
#. type: Plain text |
| 623 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 624 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 625 |
msgid "" |
| 626 |
"Prior to Linux 2.6, glibc provided an incomplete user-space implementation " |
| 627 |
"(B<CLOCK_REALTIME> timers only) using POSIX threads, and before glibc 2.17, " |
| 628 |
"the implementation falls back to this technique on systems running kernels " |
| 629 |
"older than Linux 2.6." |
| 630 |
msgstr "" |
| 631 |
"قبل لينكس 2.6، وفرت glibc تطبيقًا غير مكتمل في مساحة المستخدم (مؤقتات " |
| 632 |
"B<CLOCK_REALTIME> فقط) باستخدام خيوط POSIX، وقبل glibc 2.17، يتراجع التطبيق " |
| 633 |
"إلى هذه التقنية على الأنظمة التي تشغل أنوية أقدم من لينكس 2.6." |
| 634 |
|
| 635 |
#. type: SH |
| 636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 637 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 638 |
#, no-wrap |
| 639 |
msgid "NOTES" |
| 640 |
msgstr "ملاحظات" |
| 641 |
|
| 642 |
#. type: Plain text |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
msgid "A program may create multiple interval timers using B<timer_create>()." |
| 646 |
msgstr "يمكن للبرنامج إنشاء مؤقتات دورية متعددة باستخدام B<timer_create>()." |
| 647 |
|
| 648 |
#. type: Plain text |
| 649 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 650 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
msgid "" |
| 652 |
"Timers are not inherited by the child of a B<fork>(2), and are disarmed and " |
| 653 |
"deleted during an B<execve>(2)." |
| 654 |
msgstr "" |
| 655 |
"لا تُورث المؤقتات إلى الطفل الناتج عن B<fork>(2)، ويتم نزع سلاحها وحذفها " |
| 656 |
"أثناء B<execve>(2)." |
| 657 |
|
| 658 |
#. type: Plain text |
| 659 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 660 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 661 |
msgid "" |
| 662 |
"The kernel preallocates a \"queued real-time signal\" for each timer created " |
| 663 |
"using B<timer_create>(). Consequently, the number of timers is limited by " |
| 664 |
"the B<RLIMIT_SIGPENDING> resource limit (see B<setrlimit>(2))." |
| 665 |
msgstr "" |
| 666 |
"يخصص النواة مسبقًا \"إشارة زمن حقيقي في طابور\" لكل مؤقت يُنشأ باستخدام " |
| 667 |
"B<timer_create>(). وبالتالي، يُحدد عدد المؤقتات بحد المورد " |
| 668 |
"B<RLIMIT_SIGPENDING> (انظر B<setrlimit>(2))." |
| 669 |
|
| 670 |
#. type: Plain text |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
msgid "" |
| 674 |
"The timers created by B<timer_create>() are commonly known as \"POSIX " |
| 675 |
"(interval) timers\". The POSIX timers API consists of the following " |
| 676 |
"interfaces:" |
| 677 |
msgstr "" |
| 678 |
"تُعرف المؤقتات التي ينشئها B<timer_create>() باسم \"مؤقتات POSIX " |
| 679 |
"(الدورية)\". تتكون واجهة برمجة تطبيقات مؤقتات POSIX من الواجهات التالية:" |
| 680 |
|
| 681 |
#. type: TP |
| 682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 683 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 684 |
#, no-wrap |
| 685 |
msgid "B<timer_create>()" |
| 686 |
msgstr "B<timer_create>()" |
| 687 |
|
| 688 |
#. type: Plain text |
| 689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 690 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 691 |
msgid "Create a timer." |
| 692 |
msgstr "إنشاء مؤقت." |
| 693 |
|
| 694 |
#. type: TP |
| 695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 697 |
#, no-wrap |
| 698 |
msgid "B<timer_settime>(2)" |
| 699 |
msgstr "B<timer_settime>(2)" |
| 700 |
|
| 701 |
#. type: Plain text |
| 702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 703 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 704 |
msgid "Arm (start) or disarm (stop) a timer." |
| 705 |
msgstr "تسليح (بدء) أو نزع سلاح (إيقاف) مؤقت." |
| 706 |
|
| 707 |
#. type: TP |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
#, no-wrap |
| 711 |
msgid "B<timer_gettime>(2)" |
| 712 |
msgstr "B<timer_gettime>(2)" |
| 713 |
|
| 714 |
#. type: Plain text |
| 715 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 716 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 717 |
msgid "" |
| 718 |
"Fetch the time remaining until the next expiration of a timer, along with " |
| 719 |
"the interval setting of the timer." |
| 720 |
msgstr "" |
| 721 |
"جلب الوقت المتبقي حتى انتهاء المؤقت التالي، بالإضافة إلى إعداد الفاصل الزمني " |
| 722 |
"للمؤقت." |
| 723 |
|
| 724 |
#. type: TP |
| 725 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 726 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 727 |
#, no-wrap |
| 728 |
msgid "B<timer_getoverrun>(2)" |
| 729 |
msgstr "B<timer_getoverrun>(2)" |
| 730 |
|
| 731 |
#. type: Plain text |
| 732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 733 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 734 |
msgid "Return the overrun count for the last timer expiration." |
| 735 |
msgstr "إرجاع عدد التجاوزات لآخر انتهاء مؤقت." |
| 736 |
|
| 737 |
#. type: TP |
| 738 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 739 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 740 |
#, no-wrap |
| 741 |
msgid "B<timer_delete>(2)" |
| 742 |
msgstr "B<timer_delete>(2)" |
| 743 |
|
| 744 |
#. type: Plain text |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
msgid "Disarm and delete a timer." |
| 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 |
"Since Linux 3.10, the I</proc/>pidI</timers> file can be used to list the " |
| 755 |
"POSIX timers for the process with PID I<pid>. See B<proc>(5) for further " |
| 756 |
"information." |
| 757 |
msgstr "" |
| 758 |
"منذ لينكس 3.10، يمكن استخدام الملف I</proc/>pidI</timers> لسرد مؤقتات POSIX " |
| 759 |
"للعملية ذات PID I<pid>. انظر B<proc>(5) لمزيد من المعلومات." |
| 760 |
|
| 761 |
#. baa73d9e478ff32d62f3f9422822b59dd9a95a21 |
| 762 |
#. type: Plain text |
| 763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 764 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 765 |
msgid "" |
| 766 |
"Since Linux 4.10, support for POSIX timers is a configurable option that is " |
| 767 |
"enabled by default. Kernel support can be disabled via the " |
| 768 |
"B<CONFIG_POSIX_TIMERS> option." |
| 769 |
msgstr "" |
| 770 |
"منذ لينكس 4.10، دعم مؤقتات POSIX هو خيار قابل للتكوين ومُفعّل مبدئيًا. يمكن " |
| 771 |
"تعطيل دعم النواة عبر الخيار B<CONFIG_POSIX_TIMERS>." |
| 772 |
|
| 773 |
#. type: SH |
| 774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 775 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 776 |
#, no-wrap |
| 777 |
msgid "EXAMPLES" |
| 778 |
msgstr "أمثلة" |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 782 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 783 |
msgid "" |
| 784 |
"The program below takes two arguments: a sleep period in seconds, and a " |
| 785 |
"timer frequency in nanoseconds. The program establishes a handler for the " |
| 786 |
"signal it uses for the timer, blocks that signal, creates and arms a timer " |
| 787 |
"that expires with the given frequency, sleeps for the specified number of " |
| 788 |
"seconds, and then unblocks the timer signal. Assuming that the timer " |
| 789 |
"expired at least once while the program slept, the signal handler will be " |
| 790 |
"invoked, and the handler displays some information about the timer " |
| 791 |
"notification. The program terminates after one invocation of the signal " |
| 792 |
"handler." |
| 793 |
msgstr "" |
| 794 |
"البرنامج أدناه يأخذ وسيطتين: فترة سكون بالثواني، وتردد مؤقت بالنانو ثانية. " |
| 795 |
"يُنشئ البرنامج معالجًا للإشارة التي يستخدمها للمؤقت، ويحجب تلك الإشارة، وينشئ " |
| 796 |
"ويسلح مؤقتًا ينتهي بالتردد المُعطى، وينام لعدد الثواني المحدد، ثم يرفع حجب " |
| 797 |
"إشارة المؤقت. بافتراض أن المؤقت انتهى مرة واحدة على الأقل أثناء نوم " |
| 798 |
"البرنامج، سيُستدعى معالج الإشارة، ويعرض المعالج بعض المعلومات حول إشعار " |
| 799 |
"المؤقت. ينتهي البرنامج بعد استدعاء واحد لمعالج الإشارة." |
| 800 |
|
| 801 |
#. type: Plain text |
| 802 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 803 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 804 |
msgid "" |
| 805 |
"In the following example run, the program sleeps for 1 second, after " |
| 806 |
"creating a timer that has a frequency of 100 nanoseconds. By the time the " |
| 807 |
"signal is unblocked and delivered, there have been around ten million " |
| 808 |
"overruns." |
| 809 |
msgstr "" |
| 810 |
"في تشغيل المثال التالي، ينام البرنامج لمدة ثانية واحدة، بعد إنشاء مؤقت بتردد " |
| 811 |
"100 نانو ثانية. بحلول وقت رفع حجب الإشارة وتسليمها، حدث حوالي عشرة ملايين " |
| 812 |
"تجاوز." |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 816 |
#: opensuse-tumbleweed |
| 817 |
#, no-wrap |
| 818 |
msgid "" |
| 819 |
"$B< ./a.out 1 100>;\n" |
| 820 |
"Establishing handler for signal 34\n" |
| 821 |
"Blocking signal 34\n" |
| 822 |
"timer ID is 0x804c008\n" |
| 823 |
"Sleeping for 1 seconds\n" |
| 824 |
"Unblocking signal 34\n" |
| 825 |
"Caught signal 34\n" |
| 826 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 827 |
" overrun count = 10004886\n" |
| 828 |
msgstr "" |
| 829 |
"$B< ./a.out 1 100>;\n" |
| 830 |
"Establishing handler for signal 34\n" |
| 831 |
"Blocking signal 34\n" |
| 832 |
"timer ID is 0x804c008\n" |
| 833 |
"Sleeping for 1 seconds\n" |
| 834 |
"Unblocking signal 34\n" |
| 835 |
"Caught signal 34\n" |
| 836 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 837 |
" overrun count = 10004886\n" |
| 838 |
|
| 839 |
#. type: SS |
| 840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 841 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
#, no-wrap |
| 843 |
msgid "Program source" |
| 844 |
msgstr "مصدر البرنامج" |
| 845 |
|
| 846 |
#. type: Plain text |
| 847 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 848 |
#: opensuse-tumbleweed |
| 849 |
#, no-wrap |
| 850 |
msgid "" |
| 851 |
"#include E<lt>err.hE<gt>\n" |
| 852 |
"#include E<lt>signal.hE<gt>\n" |
| 853 |
"#include E<lt>stdint.hE<gt>\n" |
| 854 |
"#include E<lt>stdio.hE<gt>\n" |
| 855 |
"#include E<lt>stdlib.hE<gt>\n" |
| 856 |
"#include E<lt>time.hE<gt>\n" |
| 857 |
"#include E<lt>unistd.hE<gt>\n" |
| 858 |
"\\&\n" |
| 859 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 860 |
"#define SIG SIGRTMIN\n" |
| 861 |
"\\&\n" |
| 862 |
"static void\n" |
| 863 |
"print_siginfo(siginfo_t *si)\n" |
| 864 |
"{\n" |
| 865 |
" int or;\n" |
| 866 |
" timer_t *tidp;\n" |
| 867 |
"\\&\n" |
| 868 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 869 |
"\\&\n" |
| 870 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 871 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 872 |
"\\&\n" |
| 873 |
" or = timer_getoverrun(*tidp);\n" |
| 874 |
" if (or == -1)\n" |
| 875 |
" err(EXIT_FAILURE, \"timer_getoverrun\");\n" |
| 876 |
"\\&\n" |
| 877 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 878 |
"}\n" |
| 879 |
"\\&\n" |
| 880 |
"static void\n" |
| 881 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 882 |
"{\n" |
| 883 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 884 |
" (and should not be done in production programs), since\n" |
| 885 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 886 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 887 |
" showing that the handler was called. */\n" |
| 888 |
"\\&\n" |
| 889 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 890 |
" print_siginfo(si);\n" |
| 891 |
" signal(sig, SIG_IGN);\n" |
| 892 |
"}\n" |
| 893 |
"\\&\n" |
| 894 |
"int\n" |
| 895 |
"main(int argc, char *argv[])\n" |
| 896 |
"{\n" |
| 897 |
" timer_t timerid;\n" |
| 898 |
" sigset_t mask;\n" |
| 899 |
" long long freq_nanosecs;\n" |
| 900 |
" struct sigevent sev;\n" |
| 901 |
" struct sigaction sa;\n" |
| 902 |
" struct itimerspec its;\n" |
| 903 |
"\\&\n" |
| 904 |
" if (argc != 3) {\n" |
| 905 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 906 |
" argv[0]);\n" |
| 907 |
" exit(EXIT_FAILURE);\n" |
| 908 |
" }\n" |
| 909 |
"\\&\n" |
| 910 |
" /* Establish handler for timer signal. */\n" |
| 911 |
"\\&\n" |
| 912 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 913 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 914 |
" sa.sa_sigaction = handler;\n" |
| 915 |
" sigemptyset(&sa.sa_mask);\n" |
| 916 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 917 |
" err(EXIT_FAILURE, \"sigaction\");\n" |
| 918 |
"\\&\n" |
| 919 |
" /* Block timer signal temporarily. */\n" |
| 920 |
"\\&\n" |
| 921 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 922 |
" sigemptyset(&mask);\n" |
| 923 |
" sigaddset(&mask, SIG);\n" |
| 924 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 925 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 926 |
"\\&\n" |
| 927 |
" /* Create the timer. */\n" |
| 928 |
"\\&\n" |
| 929 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 930 |
" sev.sigev_signo = SIG;\n" |
| 931 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 932 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 933 |
" err(EXIT_FAILURE, \"timer_create\");\n" |
| 934 |
"\\&\n" |
| 935 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 936 |
"\\&\n" |
| 937 |
" /* Start the timer. */\n" |
| 938 |
"\\&\n" |
| 939 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 940 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 941 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 942 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 943 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 944 |
"\\&\n" |
| 945 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 946 |
" err(EXIT_FAILURE, \"timer_settime\");\n" |
| 947 |
"\\&\n" |
| 948 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 949 |
" multiple times. */\n" |
| 950 |
"\\&\n" |
| 951 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 952 |
" sleep(atoi(argv[1]));\n" |
| 953 |
"\\&\n" |
| 954 |
" /* Unlock the timer signal, so that timer notification\n" |
| 955 |
" can be delivered. */\n" |
| 956 |
"\\&\n" |
| 957 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 958 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 959 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 960 |
"\\&\n" |
| 961 |
" exit(EXIT_SUCCESS);\n" |
| 962 |
"}\n" |
| 963 |
msgstr "" |
| 964 |
"#include E<lt>err.hE<gt>\n" |
| 965 |
"#include E<lt>signal.hE<gt>\n" |
| 966 |
"#include E<lt>stdint.hE<gt>\n" |
| 967 |
"#include E<lt>stdio.hE<gt>\n" |
| 968 |
"#include E<lt>stdlib.hE<gt>\n" |
| 969 |
"#include E<lt>time.hE<gt>\n" |
| 970 |
"#include E<lt>unistd.hE<gt>\n" |
| 971 |
"\\&\n" |
| 972 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 973 |
"#define SIG SIGRTMIN\n" |
| 974 |
"\\&\n" |
| 975 |
"static void\n" |
| 976 |
"print_siginfo(siginfo_t *si)\n" |
| 977 |
"{\n" |
| 978 |
" int or;\n" |
| 979 |
" timer_t *tidp;\n" |
| 980 |
"\\&\n" |
| 981 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 982 |
"\\&\n" |
| 983 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 984 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 985 |
"\\&\n" |
| 986 |
" or = timer_getoverrun(*tidp);\n" |
| 987 |
" if (or == -1)\n" |
| 988 |
" err(EXIT_FAILURE, \"timer_getoverrun\");\n" |
| 989 |
"\\&\n" |
| 990 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 991 |
"}\n" |
| 992 |
"\\&\n" |
| 993 |
"static void\n" |
| 994 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 995 |
"{\n" |
| 996 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 997 |
" (and should not be done in production programs), since\n" |
| 998 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 999 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 1000 |
" showing that the handler was called. */\n" |
| 1001 |
"\\&\n" |
| 1002 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1003 |
" print_siginfo(si);\n" |
| 1004 |
" signal(sig, SIG_IGN);\n" |
| 1005 |
"}\n" |
| 1006 |
"\\&\n" |
| 1007 |
"int\n" |
| 1008 |
"main(int argc, char *argv[])\n" |
| 1009 |
"{\n" |
| 1010 |
" timer_t timerid;\n" |
| 1011 |
" sigset_t mask;\n" |
| 1012 |
" long long freq_nanosecs;\n" |
| 1013 |
" struct sigevent sev;\n" |
| 1014 |
" struct sigaction sa;\n" |
| 1015 |
" struct itimerspec its;\n" |
| 1016 |
"\\&\n" |
| 1017 |
" if (argc != 3) {\n" |
| 1018 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1019 |
" argv[0]);\n" |
| 1020 |
" exit(EXIT_FAILURE);\n" |
| 1021 |
" }\n" |
| 1022 |
"\\&\n" |
| 1023 |
" /* Establish handler for timer signal. */\n" |
| 1024 |
"\\&\n" |
| 1025 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1026 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1027 |
" sa.sa_sigaction = handler;\n" |
| 1028 |
" sigemptyset(&sa.sa_mask);\n" |
| 1029 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1030 |
" err(EXIT_FAILURE, \"sigaction\");\n" |
| 1031 |
"\\&\n" |
| 1032 |
" /* Block timer signal temporarily. */\n" |
| 1033 |
"\\&\n" |
| 1034 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1035 |
" sigemptyset(&mask);\n" |
| 1036 |
" sigaddset(&mask, SIG);\n" |
| 1037 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1038 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1039 |
"\\&\n" |
| 1040 |
" /* Create the timer. */\n" |
| 1041 |
"\\&\n" |
| 1042 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1043 |
" sev.sigev_signo = SIG;\n" |
| 1044 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1045 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1046 |
" err(EXIT_FAILURE, \"timer_create\");\n" |
| 1047 |
"\\&\n" |
| 1048 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1049 |
"\\&\n" |
| 1050 |
" /* Start the timer. */\n" |
| 1051 |
"\\&\n" |
| 1052 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1053 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1054 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1055 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1056 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1057 |
"\\&\n" |
| 1058 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1059 |
" err(EXIT_FAILURE, \"timer_settime\");\n" |
| 1060 |
"\\&\n" |
| 1061 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 1062 |
" multiple times. */\n" |
| 1063 |
"\\&\n" |
| 1064 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1065 |
" sleep(atoi(argv[1]));\n" |
| 1066 |
"\\&\n" |
| 1067 |
" /* Unlock the timer signal, so that timer notification\n" |
| 1068 |
" can be delivered. */\n" |
| 1069 |
"\\&\n" |
| 1070 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1071 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1072 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1073 |
"\\&\n" |
| 1074 |
" exit(EXIT_SUCCESS);\n" |
| 1075 |
"}\n" |
| 1076 |
|
| 1077 |
#. SRC END |
| 1078 |
#. type: SH |
| 1079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1080 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1081 |
#, no-wrap |
| 1082 |
msgid "SEE ALSO" |
| 1083 |
msgstr "انظر أيضًا" |
| 1084 |
|
| 1085 |
#. type: Plain text |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
msgid "" |
| 1089 |
"B<clock_gettime>(2), B<setitimer>(2), B<timer_delete>(2), " |
| 1090 |
"B<timer_getoverrun>(2), B<timer_settime>(2), B<timerfd_create>(2), " |
| 1091 |
"B<clock_getcpuclockid>(3), B<pthread_getcpuclockid>(3), B<pthreads>(7), " |
| 1092 |
"B<sigevent>(3type), B<signal>(7), B<time>(7)" |
| 1093 |
msgstr "" |
| 1094 |
"B<clock_gettime>(2), B<setitimer>(2), B<timer_delete>(2), " |
| 1095 |
"B<timer_getoverrun>(2), B<timer_settime>(2), B<timerfd_create>(2), " |
| 1096 |
"B<clock_getcpuclockid>(3), B<pthread_getcpuclockid>(3), B<pthreads>(7), " |
| 1097 |
"B<sigevent>(3type), B<signal>(7), B<time>(7)" |
| 1098 |
|
| 1099 |
#. type: TH |
| 1100 |
#: debian-trixie |
| 1101 |
#, no-wrap |
| 1102 |
msgid "2024-06-15" |
| 1103 |
msgstr "15 يونيو 2024" |
| 1104 |
|
| 1105 |
#. type: TH |
| 1106 |
#: debian-trixie |
| 1107 |
#, no-wrap |
| 1108 |
msgid "Linux man-pages 6.9.1" |
| 1109 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 1110 |
|
| 1111 |
#. type: Plain text |
| 1112 |
#: debian-trixie |
| 1113 |
msgid "Real-time library (I<librt>, I<-lrt>)" |
| 1114 |
msgstr "مكتبة الوقت الحقيقي (I<librt>، I<-lrt>)" |
| 1115 |
|
| 1116 |
#. type: Plain text |
| 1117 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1118 |
msgid "POSIX.1-2008." |
| 1119 |
msgstr "POSIX.1-2008." |
| 1120 |
|
| 1121 |
#. type: Plain text |
| 1122 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1123 |
#, no-wrap |
| 1124 |
msgid "" |
| 1125 |
"$ B<./a.out 1 100>\n" |
| 1126 |
"Establishing handler for signal 34\n" |
| 1127 |
"Blocking signal 34\n" |
| 1128 |
"timer ID is 0x804c008\n" |
| 1129 |
"Sleeping for 1 seconds\n" |
| 1130 |
"Unblocking signal 34\n" |
| 1131 |
"Caught signal 34\n" |
| 1132 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 1133 |
" overrun count = 10004886\n" |
| 1134 |
msgstr "" |
| 1135 |
"$ B<./a.out 1 100>\n" |
| 1136 |
"Establishing handler for signal 34\n" |
| 1137 |
"Blocking signal 34\n" |
| 1138 |
"timer ID is 0x804c008\n" |
| 1139 |
"Sleeping for 1 seconds\n" |
| 1140 |
"Unblocking signal 34\n" |
| 1141 |
"Caught signal 34\n" |
| 1142 |
" sival_ptr = 0xbfb174f4; *sival_ptr = 0x804c008\n" |
| 1143 |
" overrun count = 10004886\n" |
| 1144 |
|
| 1145 |
#. type: Plain text |
| 1146 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1147 |
#, no-wrap |
| 1148 |
msgid "" |
| 1149 |
"#include E<lt>signal.hE<gt>\n" |
| 1150 |
"#include E<lt>stdint.hE<gt>\n" |
| 1151 |
"#include E<lt>stdio.hE<gt>\n" |
| 1152 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1153 |
"#include E<lt>time.hE<gt>\n" |
| 1154 |
"#include E<lt>unistd.hE<gt>\n" |
| 1155 |
"\\&\n" |
| 1156 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 1157 |
"#define SIG SIGRTMIN\n" |
| 1158 |
"\\&\n" |
| 1159 |
"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" |
| 1160 |
" } while (0)\n" |
| 1161 |
"\\&\n" |
| 1162 |
"static void\n" |
| 1163 |
"print_siginfo(siginfo_t *si)\n" |
| 1164 |
"{\n" |
| 1165 |
" int or;\n" |
| 1166 |
" timer_t *tidp;\n" |
| 1167 |
"\\&\n" |
| 1168 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 1169 |
"\\&\n" |
| 1170 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 1171 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 1172 |
"\\&\n" |
| 1173 |
" or = timer_getoverrun(*tidp);\n" |
| 1174 |
" if (or == -1)\n" |
| 1175 |
" errExit(\"timer_getoverrun\");\n" |
| 1176 |
" else\n" |
| 1177 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 1178 |
"}\n" |
| 1179 |
"\\&\n" |
| 1180 |
"static void\n" |
| 1181 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 1182 |
"{\n" |
| 1183 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 1184 |
" (and should not be done in production programs), since\n" |
| 1185 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 1186 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 1187 |
" showing that the handler was called. */\n" |
| 1188 |
"\\&\n" |
| 1189 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1190 |
" print_siginfo(si);\n" |
| 1191 |
" signal(sig, SIG_IGN);\n" |
| 1192 |
"}\n" |
| 1193 |
"\\&\n" |
| 1194 |
"int\n" |
| 1195 |
"main(int argc, char *argv[])\n" |
| 1196 |
"{\n" |
| 1197 |
" timer_t timerid;\n" |
| 1198 |
" sigset_t mask;\n" |
| 1199 |
" long long freq_nanosecs;\n" |
| 1200 |
" struct sigevent sev;\n" |
| 1201 |
" struct sigaction sa;\n" |
| 1202 |
" struct itimerspec its;\n" |
| 1203 |
"\\&\n" |
| 1204 |
" if (argc != 3) {\n" |
| 1205 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1206 |
" argv[0]);\n" |
| 1207 |
" exit(EXIT_FAILURE);\n" |
| 1208 |
" }\n" |
| 1209 |
"\\&\n" |
| 1210 |
" /* Establish handler for timer signal. */\n" |
| 1211 |
"\\&\n" |
| 1212 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1213 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1214 |
" sa.sa_sigaction = handler;\n" |
| 1215 |
" sigemptyset(&sa.sa_mask);\n" |
| 1216 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1217 |
" errExit(\"sigaction\");\n" |
| 1218 |
"\\&\n" |
| 1219 |
" /* Block timer signal temporarily. */\n" |
| 1220 |
"\\&\n" |
| 1221 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1222 |
" sigemptyset(&mask);\n" |
| 1223 |
" sigaddset(&mask, SIG);\n" |
| 1224 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1225 |
" errExit(\"sigprocmask\");\n" |
| 1226 |
"\\&\n" |
| 1227 |
" /* Create the timer. */\n" |
| 1228 |
"\\&\n" |
| 1229 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1230 |
" sev.sigev_signo = SIG;\n" |
| 1231 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1232 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1233 |
" errExit(\"timer_create\");\n" |
| 1234 |
"\\&\n" |
| 1235 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1236 |
"\\&\n" |
| 1237 |
" /* Start the timer. */\n" |
| 1238 |
"\\&\n" |
| 1239 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1240 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1241 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1242 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1243 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1244 |
"\\&\n" |
| 1245 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1246 |
" errExit(\"timer_settime\");\n" |
| 1247 |
"\\&\n" |
| 1248 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 1249 |
" multiple times. */\n" |
| 1250 |
"\\&\n" |
| 1251 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1252 |
" sleep(atoi(argv[1]));\n" |
| 1253 |
"\\&\n" |
| 1254 |
" /* Unlock the timer signal, so that timer notification\n" |
| 1255 |
" can be delivered. */\n" |
| 1256 |
"\\&\n" |
| 1257 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1258 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1259 |
" errExit(\"sigprocmask\");\n" |
| 1260 |
"\\&\n" |
| 1261 |
" exit(EXIT_SUCCESS);\n" |
| 1262 |
"}\n" |
| 1263 |
msgstr "" |
| 1264 |
"#include E<lt>signal.hE<gt>\n" |
| 1265 |
"#include E<lt>stdint.hE<gt>\n" |
| 1266 |
"#include E<lt>stdio.hE<gt>\n" |
| 1267 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1268 |
"#include E<lt>time.hE<gt>\n" |
| 1269 |
"#include E<lt>unistd.hE<gt>\n" |
| 1270 |
"\\&\n" |
| 1271 |
"#define CLOCKID CLOCK_REALTIME\n" |
| 1272 |
"#define SIG SIGRTMIN\n" |
| 1273 |
"\\&\n" |
| 1274 |
"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" |
| 1275 |
" } while (0)\n" |
| 1276 |
"\\&\n" |
| 1277 |
"static void\n" |
| 1278 |
"print_siginfo(siginfo_t *si)\n" |
| 1279 |
"{\n" |
| 1280 |
" int or;\n" |
| 1281 |
" timer_t *tidp;\n" |
| 1282 |
"\\&\n" |
| 1283 |
" tidp = si-E<gt>si_value.sival_ptr;\n" |
| 1284 |
"\\&\n" |
| 1285 |
" printf(\" sival_ptr = %p; \", si-E<gt>si_value.sival_ptr);\n" |
| 1286 |
" printf(\" *sival_ptr = %#jx\\[rs]n\", (uintmax_t) *tidp);\n" |
| 1287 |
"\\&\n" |
| 1288 |
" or = timer_getoverrun(*tidp);\n" |
| 1289 |
" if (or == -1)\n" |
| 1290 |
" errExit(\"timer_getoverrun\");\n" |
| 1291 |
" else\n" |
| 1292 |
" printf(\" overrun count = %d\\[rs]n\", or);\n" |
| 1293 |
"}\n" |
| 1294 |
"\\&\n" |
| 1295 |
"static void\n" |
| 1296 |
"handler(int sig, siginfo_t *si, void *uc)\n" |
| 1297 |
"{\n" |
| 1298 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 1299 |
" (and should not be done in production programs), since\n" |
| 1300 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 1301 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 1302 |
" showing that the handler was called. */\n" |
| 1303 |
"\\&\n" |
| 1304 |
" printf(\"Caught signal %d\\[rs]n\", sig);\n" |
| 1305 |
" print_siginfo(si);\n" |
| 1306 |
" signal(sig, SIG_IGN);\n" |
| 1307 |
"}\n" |
| 1308 |
"\\&\n" |
| 1309 |
"int\n" |
| 1310 |
"main(int argc, char *argv[])\n" |
| 1311 |
"{\n" |
| 1312 |
" timer_t timerid;\n" |
| 1313 |
" sigset_t mask;\n" |
| 1314 |
" long long freq_nanosecs;\n" |
| 1315 |
" struct sigevent sev;\n" |
| 1316 |
" struct sigaction sa;\n" |
| 1317 |
" struct itimerspec its;\n" |
| 1318 |
"\\&\n" |
| 1319 |
" if (argc != 3) {\n" |
| 1320 |
" fprintf(stderr, \"Usage: %s E<lt>sleep-secsE<gt> E<lt>freq-nanosecsE<gt>\\[rs]n\",\n" |
| 1321 |
" argv[0]);\n" |
| 1322 |
" exit(EXIT_FAILURE);\n" |
| 1323 |
" }\n" |
| 1324 |
"\\&\n" |
| 1325 |
" /* Establish handler for timer signal. */\n" |
| 1326 |
"\\&\n" |
| 1327 |
" printf(\"Establishing handler for signal %d\\[rs]n\", SIG);\n" |
| 1328 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 1329 |
" sa.sa_sigaction = handler;\n" |
| 1330 |
" sigemptyset(&sa.sa_mask);\n" |
| 1331 |
" if (sigaction(SIG, &sa, NULL) == -1)\n" |
| 1332 |
" errExit(\"sigaction\");\n" |
| 1333 |
"\\&\n" |
| 1334 |
" /* Block timer signal temporarily. */\n" |
| 1335 |
"\\&\n" |
| 1336 |
" printf(\"Blocking signal %d\\[rs]n\", SIG);\n" |
| 1337 |
" sigemptyset(&mask);\n" |
| 1338 |
" sigaddset(&mask, SIG);\n" |
| 1339 |
" if (sigprocmask(SIG_SETMASK, &mask, NULL) == -1)\n" |
| 1340 |
" errExit(\"sigprocmask\");\n" |
| 1341 |
"\\&\n" |
| 1342 |
" /* Create the timer. */\n" |
| 1343 |
"\\&\n" |
| 1344 |
" sev.sigev_notify = SIGEV_SIGNAL;\n" |
| 1345 |
" sev.sigev_signo = SIG;\n" |
| 1346 |
" sev.sigev_value.sival_ptr = &timerid;\n" |
| 1347 |
" if (timer_create(CLOCKID, &sev, &timerid) == -1)\n" |
| 1348 |
" errExit(\"timer_create\");\n" |
| 1349 |
"\\&\n" |
| 1350 |
" printf(\"timer ID is %#jx\\[rs]n\", (uintmax_t) timerid);\n" |
| 1351 |
"\\&\n" |
| 1352 |
" /* Start the timer. */\n" |
| 1353 |
"\\&\n" |
| 1354 |
" freq_nanosecs = atoll(argv[2]);\n" |
| 1355 |
" its.it_value.tv_sec = freq_nanosecs / 1000000000;\n" |
| 1356 |
" its.it_value.tv_nsec = freq_nanosecs % 1000000000;\n" |
| 1357 |
" its.it_interval.tv_sec = its.it_value.tv_sec;\n" |
| 1358 |
" its.it_interval.tv_nsec = its.it_value.tv_nsec;\n" |
| 1359 |
"\\&\n" |
| 1360 |
" if (timer_settime(timerid, 0, &its, NULL) == -1)\n" |
| 1361 |
" errExit(\"timer_settime\");\n" |
| 1362 |
"\\&\n" |
| 1363 |
" /* Sleep for a while; meanwhile, the timer may expire\n" |
| 1364 |
" multiple times. */\n" |
| 1365 |
"\\&\n" |
| 1366 |
" printf(\"Sleeping for %d seconds\\[rs]n\", atoi(argv[1]));\n" |
| 1367 |
" sleep(atoi(argv[1]));\n" |
| 1368 |
"\\&\n" |
| 1369 |
" /* Unlock the timer signal, so that timer notification\n" |
| 1370 |
" can be delivered. */\n" |
| 1371 |
"\\&\n" |
| 1372 |
" printf(\"Unblocking signal %d\\[rs]n\", SIG);\n" |
| 1373 |
" if (sigprocmask(SIG_UNBLOCK, &mask, NULL) == -1)\n" |
| 1374 |
" errExit(\"sigprocmask\");\n" |
| 1375 |
"\\&\n" |
| 1376 |
" exit(EXIT_SUCCESS);\n" |
| 1377 |
"}\n" |
| 1378 |
|
| 1379 |
#. type: TH |
| 1380 |
#: fedora-44 fedora-rawhide |
| 1381 |
#, no-wrap |
| 1382 |
msgid "2024-07-23" |
| 1383 |
msgstr "23 يوليو 2024" |
| 1384 |
|
| 1385 |
#. type: TH |
| 1386 |
#: fedora-44 fedora-rawhide |
| 1387 |
#, no-wrap |
| 1388 |
msgid "Linux man-pages 6.13" |
| 1389 |
msgstr "صفحات دليل لينكس 6.13" |
| 1390 |
|
| 1391 |
#. type: TH |
| 1392 |
#: mageia-cauldron |
| 1393 |
#, no-wrap |
| 1394 |
msgid "Linux man-pages 6.17" |
| 1395 |
msgstr "صفحات دليل لينكس 6.17" |
| 1396 |
|
| 1397 |
#. type: TH |
| 1398 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1399 |
#, no-wrap |
| 1400 |
msgid "Linux man-pages (unreleased)" |
| 1401 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |