| 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:43+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-18 18:08+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 "signalfd" |
| 25 |
msgstr "signalfd" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2026-02-08" |
| 32 |
msgstr "8 فبراير 2026" |
| 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 "signalfd - create a file descriptor for accepting signals" |
| 51 |
msgstr "signalfd - إنشاء واصف ملف لقبول الإشارات" |
| 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 "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 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 "B<#include E<lt>sys/signalfd.hE<gt>>\n" |
| 78 |
msgstr "B<#include E<lt>sys/signalfd.hE<gt>>\n" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "B<int signalfd(int >I<fd>B<, const sigset_t *>I<mask>B<, int >I<flags>B<);>\n" |
| 85 |
msgstr "B<int signalfd(int >I<fd>B<, const sigset_t *>I<mask>B<, int >I<flags>B<);>\n" |
| 86 |
|
| 87 |
#. type: SH |
| 88 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 89 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 90 |
#, no-wrap |
| 91 |
msgid "DESCRIPTION" |
| 92 |
msgstr "الوصف" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 96 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 97 |
msgid "" |
| 98 |
"B<signalfd>() creates a file descriptor that can be used to accept signals " |
| 99 |
"targeted at the caller. This provides an alternative to the use of a signal " |
| 100 |
"handler or B<sigwaitinfo>(2), and has the advantage that the file descriptor " |
| 101 |
"may be monitored by B<select>(2), B<poll>(2), and B<epoll>(7)." |
| 102 |
msgstr "" |
| 103 |
"تنشئ B<signalfd>() واصف ملف يمكن استخدامه لقبول الإشارات الموجهة للمستدعي. " |
| 104 |
"يوفر هذا بديلاً لاستخدام معالج إشارة أو B<sigwaitinfo>(2)، وله ميزة إمكانية " |
| 105 |
"مراقبة واصف الملف بواسطة B<select>(2) وB<poll>(2) وB<epoll>(7)." |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"The I<mask> argument specifies the set of signals that the caller wishes to " |
| 112 |
"accept via the file descriptor. This argument is a signal set whose " |
| 113 |
"contents can be initialized using the macros described in B<sigsetops>(3). " |
| 114 |
"Normally, the set of signals to be received via the file descriptor should " |
| 115 |
"be blocked using B<sigprocmask>(2), to prevent the signals being handled " |
| 116 |
"according to their default dispositions. It is not possible to receive " |
| 117 |
"B<SIGKILL> or B<SIGSTOP> signals via a signalfd file descriptor; these " |
| 118 |
"signals are silently ignored if specified in I<mask>." |
| 119 |
msgstr "" |
| 120 |
"تحدد الوسيطة I<mask> مجموعة الإشارات التي يرغب المستدعي في قبولها عبر واصف " |
| 121 |
"الملف. هذه الوسيطة هي مجموعة إشارات يمكن تهيئة محتوياتها باستخدام الكليّات " |
| 122 |
"الموصوفة في B<sigsetops>(3). عادةً، يجب حظر مجموعة الإشارات المراد استقبالها " |
| 123 |
"عبر واصف الملف باستخدام B<sigprocmask>(2)، لمنع معالجة الإشارات وفقًا " |
| 124 |
"لترتيباتها المبدئية. لا يمكن استقبال إشارات B<SIGKILL> أو B<SIGSTOP> عبر " |
| 125 |
"واصف ملف signalfd؛ يتم تجاهل هذه الإشارات بصمت إذا تم تحديدها في I<mask>." |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"If the I<fd> argument is -1, then the call creates a new file descriptor and " |
| 132 |
"associates the signal set specified in I<mask> with that file descriptor. " |
| 133 |
"If I<fd> is not -1, then it must specify a valid existing signalfd file " |
| 134 |
"descriptor, and I<mask> is used to replace the signal set associated with " |
| 135 |
"that file descriptor." |
| 136 |
msgstr "" |
| 137 |
"إذا كانت الوسيطة I<fd> هي -1، فإن الاستدعاء ينشئ واصف ملف جديدًا ويربط مجموعة " |
| 138 |
"الإشارات المحددة في I<mask> بذلك الواصف. إذا لم تكن I<fd> هي -1، فيجب أن " |
| 139 |
"تحدد واصف ملف signalfd موجودًا صالحًا، ويتم استخدام I<mask> لاستبدال مجموعة " |
| 140 |
"الإشارات المرتبطة بذلك الواصف." |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"Starting with Linux 2.6.27, the following values may be bitwise ORed in " |
| 147 |
"I<flags> to change the behavior of B<signalfd>():" |
| 148 |
msgstr "" |
| 149 |
"بدءًا من لينكس 2.6.27، يمكن إجراء عملية OR بتية للقيم التالية في I<flags> " |
| 150 |
"لتغيير سلوك B<signalfd>():" |
| 151 |
|
| 152 |
#. type: TP |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<SFD_NONBLOCK>" |
| 157 |
msgstr "B<SFD_NONBLOCK>" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 164 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 165 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 166 |
msgstr "" |
| 167 |
"اضبط علامة حالة الملف B<O_NONBLOCK> على وصف الملف المفتوح (انظر B<open>(2)) " |
| 168 |
"المشار إليه بواسطة واصف الملف الجديد. استخدام هذه العلامة يوفر استدعاءات " |
| 169 |
"إضافية لـ B<fcntl>(2) لتحقيق النتيجة نفسها." |
| 170 |
|
| 171 |
#. type: TP |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "B<SFD_CLOEXEC>" |
| 176 |
msgstr "B<SFD_CLOEXEC>" |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
msgid "" |
| 182 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 183 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 184 |
"may be useful." |
| 185 |
msgstr "" |
| 186 |
"اضبط علامة الإغلاق عند التنفيذ (B<FD_CLOEXEC>) على واصف الملف الجديد. انظر " |
| 187 |
"وصف العلامة B<O_CLOEXEC> في B<open>(2) للأسباب التي تجعل هذا مفيدًا." |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified " |
| 194 |
"as zero." |
| 195 |
msgstr "حتى لينكس 2.6.26، معطى I<flags> غير مستخدم، ويجب تحديده كصفر." |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"B<signalfd>() returns a file descriptor that supports the following " |
| 202 |
"operations:" |
| 203 |
msgstr "ترجع B<signalfd>() واصف ملف يدعم العمليات التالية:" |
| 204 |
|
| 205 |
#. type: TP |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "B<read>(2)" |
| 210 |
msgstr "B<read>(2)" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"If one or more of the signals specified in I<mask> is pending for the " |
| 217 |
"process, then the buffer supplied to B<read>(2) is used to return one or " |
| 218 |
"more I<signalfd_siginfo> structures (see below) that describe the signals. " |
| 219 |
"The B<read>(2) returns information for as many signals as are pending and " |
| 220 |
"will fit in the supplied buffer. The buffer must be at least " |
| 221 |
"I<sizeof(struct signalfd_siginfo)> bytes. The return value of the " |
| 222 |
"B<read>(2) is the total number of bytes read." |
| 223 |
msgstr "" |
| 224 |
"إذا كانت إشارة واحدة أو أكثر من الإشارات المحددة في I<mask> معلقة للعملية، " |
| 225 |
"يتم استخدام المخزن المؤقت المقدم إلى B<read>(2) لإرجاع بنية أو أكثر من بنى " |
| 226 |
"I<signalfd_siginfo> (انظر أدناه) التي تصف الإشارات. يرجع B<read>(2) معلومات " |
| 227 |
"لعدد الإشارات المعلقة والتي تناسب المخزن المؤقت المقدم. يجب أن يكون المخزن " |
| 228 |
"المؤقت على الأقل I<sizeof(struct signalfd_siginfo)> بايت. قيمة إرجاع " |
| 229 |
"B<read>(2) هي إجمالي عدد البايتات المقروءة." |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"As a consequence of the B<read>(2), the signals are consumed, so that they " |
| 236 |
"are no longer pending for the process (i.e., will not be caught by signal " |
| 237 |
"handlers, and cannot be accepted using B<sigwaitinfo>(2))." |
| 238 |
msgstr "" |
| 239 |
"نتيجة لـ B<read>(2)، يتم استهلاك الإشارات، بحيث لا تبقى معلقة للعملية (أي لن " |
| 240 |
"يتم التقاطها بواسطة معالجات الإشارات، ولا يمكن قبولها باستخدام " |
| 241 |
"B<sigwaitinfo>(2))." |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"If none of the signals in I<mask> is pending for the process, then the " |
| 248 |
"B<read>(2) either blocks until one of the signals in I<mask> is generated " |
| 249 |
"for the process, or fails with the error B<EAGAIN> if the file descriptor " |
| 250 |
"has been made nonblocking." |
| 251 |
msgstr "" |
| 252 |
"إذا لم تكن أي من الإشارات في I<mask> معلقة للعملية، فإن B<read>(2) إما أن " |
| 253 |
"يحظر حتى يتم توليد إشارة من الإشارات في I<mask> للعملية، أو يفشل مع الخطأ " |
| 254 |
"B<EAGAIN> إذا تم جعل واصف الملف غير محظور." |
| 255 |
|
| 256 |
#. type: TP |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "B<poll>(2)" |
| 261 |
msgstr "B<poll>(2)" |
| 262 |
|
| 263 |
#. type: TQ |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "B<select>(2)" |
| 268 |
msgstr "B<select>(2)" |
| 269 |
|
| 270 |
#. type: TQ |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "(and similar)" |
| 275 |
msgstr "(وما شابه ذلك)" |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "" |
| 281 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 282 |
"B<poll>(2) B<POLLIN> flag) if one or more of the signals in I<mask> is " |
| 283 |
"pending for the process." |
| 284 |
msgstr "" |
| 285 |
"واصف الملف قابل للقراءة (وسيطة B<select>(2) I<readfds>؛ علم B<poll>(2) " |
| 286 |
"B<POLLIN>) إذا كانت إشارة واحدة أو أكثر من الإشارات في I<mask> معلقة للعملية." |
| 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 |
"The signalfd file descriptor also supports the other file-descriptor " |
| 293 |
"multiplexing APIs: B<pselect>(2), B<ppoll>(2), and B<epoll>(7)." |
| 294 |
msgstr "" |
| 295 |
"يدعم واصف ملف signalfd أيضًا واجهات برمجة تطبيقات تعدد إرسال واصفات الملف " |
| 296 |
"الأخرى: B<pselect>(2) وB<ppoll>(2) وB<epoll>(7)." |
| 297 |
|
| 298 |
#. type: TP |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
#, no-wrap |
| 302 |
msgid "B<close>(2)" |
| 303 |
msgstr "B<close>(2)" |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"When the file descriptor is no longer required it should be closed. When " |
| 310 |
"all file descriptors associated with the same signalfd object have been " |
| 311 |
"closed, the resources for object are freed by the kernel." |
| 312 |
msgstr "" |
| 313 |
"عندما لا يكون واصف الملف مطلوبًا بعد الآن، يجب إغلاقه. عندما يتم إغلاق جميع " |
| 314 |
"واصفات الملف المرتبطة بنفس كائن signalfd، يتم تحرير موارد الكائن بواسطة " |
| 315 |
"النواة." |
| 316 |
|
| 317 |
#. type: SS |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "The signalfd_siginfo structure" |
| 322 |
msgstr "بنية signalfd_siginfo" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "" |
| 328 |
"The format of the I<signalfd_siginfo> structure(s) returned by B<read>(2)s " |
| 329 |
"from a signalfd file descriptor is as follows:" |
| 330 |
msgstr "" |
| 331 |
"تنسيق بنية (بنى) I<signalfd_siginfo> التي ترجعها عمليات B<read>(2) من واصف " |
| 332 |
"ملف signalfd هو كما يلي:" |
| 333 |
|
| 334 |
#. ssi_trapno is unused on most arches |
| 335 |
#. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e |
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 338 |
#: opensuse-tumbleweed |
| 339 |
#, no-wrap |
| 340 |
msgid "" |
| 341 |
"struct signalfd_siginfo {\n" |
| 342 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 343 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 344 |
" int32_t ssi_code; /* Signal code */\n" |
| 345 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 346 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 347 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 348 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 349 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 350 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 351 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 352 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 353 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 354 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 355 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 356 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 357 |
" (SIGCHLD) */\n" |
| 358 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 359 |
" (for hardware-generated signals) */\n" |
| 360 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 361 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 362 |
" uint8_t pad[\\f[I]X\\fR]; /* Pad size to 128 bytes (allow for\n" |
| 363 |
" additional fields in the future) */\n" |
| 364 |
"};\n" |
| 365 |
msgstr "" |
| 366 |
"struct signalfd_siginfo {\n" |
| 367 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 368 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 369 |
" int32_t ssi_code; /* Signal code */\n" |
| 370 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 371 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 372 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 373 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 374 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 375 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 376 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 377 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 378 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 379 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 380 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 381 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 382 |
" (SIGCHLD) */\n" |
| 383 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 384 |
" (for hardware-generated signals) */\n" |
| 385 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 386 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 387 |
" uint8_t pad[\\f[I]X\\fR]; /* Pad size to 128 bytes (allow for\n" |
| 388 |
" additional fields in the future) */\n" |
| 389 |
"};\n" |
| 390 |
|
| 391 |
#. type: Plain text |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
msgid "" |
| 395 |
"Each of the fields in this structure is analogous to the similarly named " |
| 396 |
"field in the I<siginfo_t> structure. The I<siginfo_t> structure is " |
| 397 |
"described in B<sigaction>(2). Not all fields in the returned " |
| 398 |
"I<signalfd_siginfo> structure will be valid for a specific signal; the set " |
| 399 |
"of valid fields can be determined from the value returned in the I<ssi_code> " |
| 400 |
"field. This field is the analog of the I<siginfo_t> I<si_code> field; see " |
| 401 |
"B<sigaction>(2) for details." |
| 402 |
msgstr "" |
| 403 |
"كل حقل من الحقول في هذه البنية مماثل للحقل المسمى بالمثل في بنية " |
| 404 |
"I<siginfo_t>. يتم وصف بنية I<siginfo_t> في B<sigaction>(2). لن تكون جميع " |
| 405 |
"الحقول في بنية I<signalfd_siginfo> المرتجعة صالحة لإشارة محددة؛ يمكن تحديد " |
| 406 |
"مجموعة الحقول الصالحة من القيمة المرتجعة في حقل I<ssi_code>. هذا الحقل هو " |
| 407 |
"مماثل لحقل I<si_code> في I<siginfo_t>؛ انظر B<sigaction>(2) للتفاصيل." |
| 408 |
|
| 409 |
#. type: SS |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "fork(2) semantics" |
| 414 |
msgstr "دلالات fork(2)" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "" |
| 420 |
"After a B<fork>(2), the child inherits a copy of the signalfd file " |
| 421 |
"descriptor. A B<read>(2) from the file descriptor in the child will return " |
| 422 |
"information about signals queued to the child." |
| 423 |
msgstr "" |
| 424 |
"بعد B<fork>(2)، يرث الطفل نسخة من واصف ملف signalfd. سترجع عملية B<read>(2) " |
| 425 |
"من واصف الملف في الطفل معلومات حول الإشارات المنتظرة للطفل." |
| 426 |
|
| 427 |
#. type: SS |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
#, no-wrap |
| 431 |
msgid "Semantics of file descriptor passing" |
| 432 |
msgstr "دلالات تمرير واصف الملف" |
| 433 |
|
| 434 |
#. type: Plain text |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
msgid "" |
| 438 |
"As with other file descriptors, signalfd file descriptors can be passed to " |
| 439 |
"another process via a UNIX domain socket (see B<unix>(7)). In the receiving " |
| 440 |
"process, a B<read>(2) from the received file descriptor will return " |
| 441 |
"information about signals queued to that process." |
| 442 |
msgstr "" |
| 443 |
"كما هو الحال مع واصفات الملف الأخرى، يمكن تمرير واصفات ملف signalfd إلى " |
| 444 |
"عملية أخرى عبر مقبس نطاق UNIX (انظر B<unix>(7)). في العملية المستقبلة، سترجع " |
| 445 |
"عملية B<read>(2) من واصف الملف المستلم معلومات حول الإشارات المنتظرة لتلك " |
| 446 |
"العملية." |
| 447 |
|
| 448 |
#. type: SS |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
#, no-wrap |
| 452 |
msgid "execve(2) semantics" |
| 453 |
msgstr "دلالات execve(2)" |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
msgid "" |
| 459 |
"Just like any other file descriptor, a signalfd file descriptor remains open " |
| 460 |
"across an B<execve>(2), unless it has been marked for close-on-exec (see " |
| 461 |
"B<fcntl>(2)). Any signals that were available for reading before the " |
| 462 |
"B<execve>(2) remain available to the newly loaded program. (This is " |
| 463 |
"analogous to traditional signal semantics, where a blocked signal that is " |
| 464 |
"pending remains pending across an B<execve>(2).)" |
| 465 |
msgstr "" |
| 466 |
"تمامًا مثل أي واصف ملف آخر، يظل واصف ملف signalfd مفتوحًا عبر B<execve>(2)، ما " |
| 467 |
"لم يتم وضع علامة عليه للإغلاق عند التنفيذ (انظر B<fcntl>(2)). أي إشارات كانت " |
| 468 |
"متاحة للقراءة قبل B<execve>(2) تظل متاحة للبرنامج المحمل حديثًا. (هذا مماثل " |
| 469 |
"لدلالات الإشارات التقليدية، حيث تظل الإشارة المحظورة المعلقة معلقة عبر " |
| 470 |
"B<execve>(2).)" |
| 471 |
|
| 472 |
#. type: SS |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
#, no-wrap |
| 476 |
msgid "Thread semantics" |
| 477 |
msgstr "دلالات الخيوط" |
| 478 |
|
| 479 |
#. type: Plain text |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
msgid "" |
| 483 |
"The semantics of signalfd file descriptors in a multithreaded program mirror " |
| 484 |
"the standard semantics for signals. In other words, when a thread reads " |
| 485 |
"from a signalfd file descriptor, it will read the signals that are directed " |
| 486 |
"to the thread itself and the signals that are directed to the process (i.e., " |
| 487 |
"the entire thread group). (A thread will not be able to read signals that " |
| 488 |
"are directed to other threads in the process.)" |
| 489 |
msgstr "" |
| 490 |
"دلالات واصفات ملف signalfd في برنامج متعدد الخيوط تعكس الدلالات القياسية " |
| 491 |
"للإشارات. بعبارة أخرى، عندما يقرأ خيط من واصف ملف signalfd، سيقرأ الإشارات " |
| 492 |
"الموجهة للخيط نفسه والإشارات الموجهة للعملية (أي مجموعة الخيوط بأكملها). (لن " |
| 493 |
"يتمكن الخيط من قراءة الإشارات الموجهة لخيوط أخرى في العملية.)" |
| 494 |
|
| 495 |
#. type: SS |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "epoll(7) semantics" |
| 500 |
msgstr "دلالات epoll(7)" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "" |
| 506 |
"If a process adds (via B<epoll_ctl>(2)) a signalfd file descriptor to an " |
| 507 |
"B<epoll>(7) instance, then B<epoll_wait>(2) returns events only for " |
| 508 |
"signals sent to that process. In particular, if the process then uses " |
| 509 |
"B<fork>(2) to create a child process, then the child will be able to " |
| 510 |
"B<read>(2) signals that are sent to it using the signalfd file descriptor, " |
| 511 |
"but B<epoll_wait>(2) will B<not> indicate that the signalfd file descriptor " |
| 512 |
"is ready. In this scenario, a possible workaround is that after the " |
| 513 |
"B<fork>(2), the child process can close the signalfd file descriptor that it " |
| 514 |
"inherited from the parent process and then create another signalfd file " |
| 515 |
"descriptor and add it to the epoll instance. Alternatively, the parent and " |
| 516 |
"the child could delay creating their (separate) signalfd file descriptors " |
| 517 |
"and adding them to the epoll instance until after the call to B<fork>(2)." |
| 518 |
msgstr "" |
| 519 |
"إذا أضافت عملية ما (عبر B<epoll_ctl>(2)) مُعرف ملف signalfd إلى مثيل " |
| 520 |
"B<epoll>(7)، فإن B<epoll_wait>(2) تُرجع الأحداث الخاصة فقط بالإشارات المرسلة " |
| 521 |
"إلى تلك العملية. وعلى وجه الخصوص، إذا استخدمت العملية بعد ذلك B<fork>(2) " |
| 522 |
"لإنشاء عملية فرعية، فستتمكن العملية الفرعية من B<read>(2) الإشارات المرسلة " |
| 523 |
"إليها باستخدام واصف الملف signalfd، ولكن B<epoll_wait>(2) لن تشير إلى أن " |
| 524 |
"واصف الملف signalfd جاهز. في هذا السيناريو، هناك حل بديل ممكن وهو أنه بعد " |
| 525 |
"B<fork>(2)، يمكن للعملية الفرعية إغلاق واصف الملف signalfd الذي ورثته من " |
| 526 |
"العملية الأم ثم إنشاء واصف ملف signalfd آخر وإضافته إلى مثيل epoll. بدلاً من " |
| 527 |
"ذلك، يمكن للعملية الأم والعملية الفرعية تأخير إنشاء واصفات ملفات signalfd " |
| 528 |
"(المنفصلة) الخاصة بهما وإضافتها إلى مثيل epoll حتى ما بعد استدعاء B<fork>(2)." |
| 529 |
|
| 530 |
#. type: SH |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "RETURN VALUE" |
| 535 |
msgstr "قيمة الإرجاع" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
msgid "" |
| 541 |
"On success, B<signalfd>() returns a signalfd file descriptor; this is " |
| 542 |
"either a new file descriptor (if I<fd> was -1), or I<fd> if I<fd> was a " |
| 543 |
"valid signalfd file descriptor. On error, -1 is returned and I<errno> is " |
| 544 |
"set to indicate the error." |
| 545 |
msgstr "" |
| 546 |
"في حالة النجاح، تُرجع الدالة B<signalfd>() مُعرف ملف signalfd؛ ويكون هذا إما " |
| 547 |
"مُعرف ملف جديد (إذا كان I<fd> يساوي -1)، أو I<fd> نفسه إذا كان I<fd> مُعرف ملف " |
| 548 |
"signalfd صالحًا. وفي حالة حدوث خطأ، تُرجع الدالة القيمة -1 ويتم تعيين " |
| 549 |
"I<errno> للإشارة إلى الخطأ." |
| 550 |
|
| 551 |
#. type: SH |
| 552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 553 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
#, no-wrap |
| 555 |
msgid "ERRORS" |
| 556 |
msgstr "الأخطاء" |
| 557 |
|
| 558 |
#. type: TP |
| 559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 560 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "B<EBADF>" |
| 563 |
msgstr "B<EBADF>" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "The I<fd> file descriptor is not a valid file descriptor." |
| 569 |
msgstr "وصف الملف I<fd> ليس واصف ملف صالحًا." |
| 570 |
|
| 571 |
#. type: TP |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
#, no-wrap |
| 575 |
msgid "B<EINVAL>" |
| 576 |
msgstr "B<EINVAL>" |
| 577 |
|
| 578 |
#. or, the |
| 579 |
#. .I sizemask |
| 580 |
#. argument is not equal to |
| 581 |
#. .IR sizeof(sigset_t) ; |
| 582 |
#. type: Plain text |
| 583 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 584 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 585 |
msgid "I<fd> is not a valid signalfd file descriptor." |
| 586 |
msgstr "I<fd> ليس واصف ملف signalfd صالحًا." |
| 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 |
"I<flags> is invalid; or, in Linux 2.6.26 or earlier, I<flags> is nonzero." |
| 593 |
msgstr "I<flags> غير صالح؛ أو، في لينكس 2.6.26 أو أقدم، I<flags> ليس صفرًا." |
| 594 |
|
| 595 |
#. type: TP |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
#, no-wrap |
| 599 |
msgid "B<EMFILE>" |
| 600 |
msgstr "B<EMFILE>" |
| 601 |
|
| 602 |
#. type: Plain text |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
msgid "" |
| 606 |
"The per-process limit on the number of open file descriptors has been " |
| 607 |
"reached." |
| 608 |
msgstr "وُصل إلى الحد الأقصى لواصفات الملفات المفتوحة لكل عملية." |
| 609 |
|
| 610 |
#. type: TP |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
#, no-wrap |
| 614 |
msgid "B<ENFILE>" |
| 615 |
msgstr "B<ENFILE>" |
| 616 |
|
| 617 |
#. type: Plain text |
| 618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 619 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 620 |
msgid "" |
| 621 |
"The system-wide limit on the total number of open files has been reached." |
| 622 |
msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام." |
| 623 |
|
| 624 |
#. type: TP |
| 625 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 626 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 627 |
#, no-wrap |
| 628 |
msgid "B<ENODEV>" |
| 629 |
msgstr "B<ENODEV>" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "Could not mount (internal) anonymous inode device." |
| 635 |
msgstr "تعذر وصل جهاز inode (داخلي) مجهول." |
| 636 |
|
| 637 |
#. type: TP |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
#, no-wrap |
| 641 |
msgid "B<ENOMEM>" |
| 642 |
msgstr "B<ENOMEM>" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
msgid "There was insufficient memory to create a new signalfd file descriptor." |
| 648 |
msgstr "ذاكرة غير كافية لإنشاء واصف ملف signalfd جديد." |
| 649 |
|
| 650 |
#. type: SH |
| 651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 652 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 653 |
#, no-wrap |
| 654 |
msgid "VERSIONS" |
| 655 |
msgstr "الإصدارات" |
| 656 |
|
| 657 |
#. type: SS |
| 658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 659 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
#, no-wrap |
| 661 |
msgid "C library/kernel differences" |
| 662 |
msgstr "الاختلافات بين مكتبة C والنواة" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 666 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
msgid "" |
| 668 |
"The underlying Linux system call requires an additional argument, I<size_t " |
| 669 |
"sizemask>, which specifies the size of the I<mask> argument. The glibc " |
| 670 |
"B<signalfd>() wrapper function does not include this argument, since it " |
| 671 |
"provides the required value for the underlying system call." |
| 672 |
msgstr "" |
| 673 |
"استدعاء نظام Linux الأساسي يتطلب وسيطة إضافية، I<size_t sizemask>، التي تحدد " |
| 674 |
"حجم وسيطة I<mask>. دالة الغلاف B<signalfd>() في glibc لا تتضمن هذه الوسيطة، " |
| 675 |
"لأنها توفر القيمة المطلوبة لاستدعاء النظام الأساسي." |
| 676 |
|
| 677 |
#. type: Plain text |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
msgid "" |
| 681 |
"There are two underlying Linux system calls: B<signalfd>() and the more " |
| 682 |
"recent B<signalfd4>(). The former system call does not implement a I<flags> " |
| 683 |
"argument. The latter system call implements the I<flags> values described " |
| 684 |
"above. Starting with glibc 2.9, the B<signalfd>() wrapper function will " |
| 685 |
"use B<signalfd4>() where it is available." |
| 686 |
msgstr "" |
| 687 |
"هناك استدعاءان أساسيان لنظام Linux: B<signalfd>() والأحدث B<signalfd4>(). " |
| 688 |
"استدعاء النظام الأول لا ينفذ وسيطة I<flags>. استدعاء النظام الثاني ينفذ قيم " |
| 689 |
"I<flags> الموصوفة أعلاه. بدءًا من glibc 2.9، ستستخدم دالة الغلاف " |
| 690 |
"B<signalfd>() B<signalfd4>() حيثما كان متاحًا." |
| 691 |
|
| 692 |
#. type: SH |
| 693 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 694 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 695 |
#, no-wrap |
| 696 |
msgid "STANDARDS" |
| 697 |
msgstr "المعايير" |
| 698 |
|
| 699 |
#. type: Plain text |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
msgid "Linux." |
| 703 |
msgstr "لينكس." |
| 704 |
|
| 705 |
#. type: SH |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
#, no-wrap |
| 709 |
msgid "HISTORY" |
| 710 |
msgstr "التاريخ" |
| 711 |
|
| 712 |
#. type: TP |
| 713 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 714 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 715 |
#, no-wrap |
| 716 |
msgid "B<signalfd>()" |
| 717 |
msgstr "B<signalfd>()" |
| 718 |
|
| 719 |
#. signalfd() is in glibc 2.7, but reportedly does not build |
| 720 |
#. type: Plain text |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
msgid "Linux 2.6.22, glibc 2.8." |
| 724 |
msgstr "لينكس 2.6.22، glibc 2.8." |
| 725 |
|
| 726 |
#. type: TP |
| 727 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 728 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 729 |
#, no-wrap |
| 730 |
msgid "B<signalfd4>()" |
| 731 |
msgstr "B<signalfd4>()" |
| 732 |
|
| 733 |
#. type: Plain text |
| 734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
msgid "Linux 2.6.27." |
| 737 |
msgstr "لينكس 2.6.27." |
| 738 |
|
| 739 |
#. type: SH |
| 740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 741 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
#, no-wrap |
| 743 |
msgid "NOTES" |
| 744 |
msgstr "ملاحظات" |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"A process can create multiple signalfd file descriptors. This makes it " |
| 751 |
"possible to accept different signals on different file descriptors. (This " |
| 752 |
"may be useful if monitoring the file descriptors using B<select>(2), " |
| 753 |
"B<poll>(2), or B<epoll>(7): the arrival of different signals will make " |
| 754 |
"different file descriptors ready.) If a signal appears in the I<mask> of " |
| 755 |
"more than one of the file descriptors, then occurrences of that signal can " |
| 756 |
"be read (once) from any one of the file descriptors." |
| 757 |
msgstr "" |
| 758 |
"يمكن لعملية إنشاء واصفات ملف signalfd متعددة. هذا يجعل من الممكن قبول إشارات " |
| 759 |
"مختلفة على واصفات ملف مختلفة. (قد يكون هذا مفيدًا إذا كانت مراقبة واصفات " |
| 760 |
"الملف باستخدام B<select>(2) أو B<poll>(2) أو B<epoll>(7): وصول إشارات مختلفة " |
| 761 |
"سيجعل واصفات ملف مختلفة جاهزة.) إذا ظهرت إشارة في I<mask> لأكثر من واصف ملف " |
| 762 |
"واحد، فيمكن قراءة حدوث تلك الإشارة (مرة واحدة) من أي من واصفات الملف." |
| 763 |
|
| 764 |
#. type: Plain text |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
msgid "" |
| 768 |
"Attempts to include B<SIGKILL> and B<SIGSTOP> in I<mask> are silently " |
| 769 |
"ignored." |
| 770 |
msgstr "محاولات تضمين B<SIGKILL> و B<SIGSTOP> في I<mask> يتم تجاهلها بصمت." |
| 771 |
|
| 772 |
#. type: Plain text |
| 773 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 774 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 775 |
msgid "" |
| 776 |
"The signal mask employed by a signalfd file descriptor can be viewed via the " |
| 777 |
"entry for the corresponding file descriptor in the process's I</proc/>pidI</" |
| 778 |
"fdinfo> directory. See B<proc>(5) for further details." |
| 779 |
msgstr "" |
| 780 |
"يمكن عرض قناع الإشارة المستخدم بواسطة واصف ملف signalfd عبر الإدخال لواصف " |
| 781 |
"الملف المقابل في دليل I</proc/>pidI</fdinfo> للعملية. راجع B<proc>(5) لمزيد " |
| 782 |
"من التفاصيل." |
| 783 |
|
| 784 |
#. type: SS |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "Limitations" |
| 789 |
msgstr "القيود" |
| 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 "" |
| 795 |
"The signalfd mechanism can't be used to receive signals that are " |
| 796 |
"synchronously generated, such as the B<SIGSEGV> signal that results from " |
| 797 |
"accessing an invalid memory address or the B<SIGFPE> signal that results " |
| 798 |
"from an arithmetic error. Such signals can be caught only via signal " |
| 799 |
"handler." |
| 800 |
msgstr "" |
| 801 |
"لا يمكن استخدام آلية signalfd لاستقبال الإشارات المولدة بشكل متزامن، مثل " |
| 802 |
"إشارة B<SIGSEGV> الناتجة عن الوصول إلى عنوان ذاكرة غير صالح أو إشارة " |
| 803 |
"B<SIGFPE> الناتجة عن خطأ حسابي. يمكن التقاط هذه الإشارات فقط عبر معالج إشارة." |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
msgid "" |
| 809 |
"As described above, in normal usage one blocks the signals that will be " |
| 810 |
"accepted via B<signalfd>(). If spawning a child process to execute a helper " |
| 811 |
"program (that does not need the signalfd file descriptor), then, after the " |
| 812 |
"call to B<fork>(2), you will normally want to unblock those signals before " |
| 813 |
"calling B<execve>(2), so that the helper program can see any signals that it " |
| 814 |
"expects to see. Be aware, however, that this won't be possible in the case " |
| 815 |
"of a helper program spawned behind the scenes by any library function that " |
| 816 |
"the program may call. In such cases, one must fall back to using a " |
| 817 |
"traditional signal handler that writes to a file descriptor monitored by " |
| 818 |
"B<select>(2), B<poll>(2), or B<epoll>(7)." |
| 819 |
msgstr "" |
| 820 |
"كما هو موصوف أعلاه، في الاستخدام العادي يقوم المرء بحظر الإشارات التي سيتم " |
| 821 |
"قبولها عبر B<signalfd>(). إذا تم إنشاء عملية فرعية لتنفيذ برنامج مساعد (لا " |
| 822 |
"يحتاج إلى واصف ملف signalfd)، فبعد استدعاء B<fork>(2)، سترغب عادةً في إلغاء " |
| 823 |
"حظر تلك الإشارات قبل استدعاء B<execve>(2)، حتى يتمكن البرنامج المساعد من " |
| 824 |
"رؤية أي إشارات يتوقع رؤيتها. ومع ذلك، كن على علم أن هذا لن يكون ممكنًا في " |
| 825 |
"حالة برنامج مساعد تم إنشاؤه خلف الكواليس بواسطة أي دالة مكتبة قد يستدعيها " |
| 826 |
"البرنامج. في مثل هذه الحالات، يجب اللجوء إلى استخدام معالج إشارة تقليدي يكتب " |
| 827 |
"إلى واصف ملف يتم مراقبته بواسطة B<select>(2) أو B<poll>(2) أو B<epoll>(7)." |
| 828 |
|
| 829 |
#. type: SH |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
#, no-wrap |
| 833 |
msgid "BUGS" |
| 834 |
msgstr "العلل" |
| 835 |
|
| 836 |
#. The fix also was put into Linux 2.6.24.5 |
| 837 |
#. type: Plain text |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
msgid "" |
| 841 |
"Before Linux 2.6.25, the I<ssi_ptr> and I<ssi_int> fields are not filled in " |
| 842 |
"with the data accompanying a signal sent by B<sigqueue>(3)." |
| 843 |
msgstr "" |
| 844 |
"قبل لينكس 2.6.25، لا يتم ملء حقلي I<ssi_ptr> و I<ssi_int> بالبيانات المصاحبة " |
| 845 |
"لإشارة مرسلة بواسطة B<sigqueue>(3)." |
| 846 |
|
| 847 |
#. type: SH |
| 848 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 849 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 850 |
#, no-wrap |
| 851 |
msgid "EXAMPLES" |
| 852 |
msgstr "أمثلة" |
| 853 |
|
| 854 |
#. type: Plain text |
| 855 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 856 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 857 |
msgid "" |
| 858 |
"The program below accepts the signals B<SIGINT> and B<SIGQUIT> via a " |
| 859 |
"signalfd file descriptor. The program terminates after accepting a " |
| 860 |
"B<SIGQUIT> signal. The following shell session demonstrates the use of the " |
| 861 |
"program:" |
| 862 |
msgstr "" |
| 863 |
"البرنامج أدناه يقبل الإشارات B<SIGINT> و B<SIGQUIT> عبر واصف ملف signalfd. " |
| 864 |
"ينتهي البرنامج بعد قبول إشارة B<SIGQUIT>. جلسة الصدفة التالية توضح استخدام " |
| 865 |
"البرنامج:" |
| 866 |
|
| 867 |
#. type: Plain text |
| 868 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 869 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 870 |
#, no-wrap |
| 871 |
msgid "" |
| 872 |
"$B< ./signalfd_demo>\n" |
| 873 |
"B<\\[ha]C> # Control-C generates SIGINT\n" |
| 874 |
"Got SIGINT\n" |
| 875 |
"B<\\[ha]C>\n" |
| 876 |
"Got SIGINT\n" |
| 877 |
"B<\\[ha]\\[rs]> # Control-\\[rs] generates SIGQUIT\n" |
| 878 |
"Got SIGQUIT\n" |
| 879 |
"$\n" |
| 880 |
msgstr "" |
| 881 |
"$B< ./signalfd_demo>\n" |
| 882 |
"B<\\[ha]C> # Control-C generates SIGINT\n" |
| 883 |
"Got SIGINT\n" |
| 884 |
"B<\\[ha]C>\n" |
| 885 |
"Got SIGINT\n" |
| 886 |
"B<\\[ha]\\[rs]> # Control-\\[rs] generates SIGQUIT\n" |
| 887 |
"Got SIGQUIT\n" |
| 888 |
"$\n" |
| 889 |
|
| 890 |
#. type: SS |
| 891 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 892 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 893 |
#, no-wrap |
| 894 |
msgid "Program source" |
| 895 |
msgstr "مصدر البرنامج" |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 899 |
#: opensuse-tumbleweed |
| 900 |
#, no-wrap |
| 901 |
msgid "" |
| 902 |
"#include E<lt>err.hE<gt>\n" |
| 903 |
"#include E<lt>signal.hE<gt>\n" |
| 904 |
"#include E<lt>stdio.hE<gt>\n" |
| 905 |
"#include E<lt>stdlib.hE<gt>\n" |
| 906 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 907 |
"#include E<lt>sys/types.hE<gt>\n" |
| 908 |
"#include E<lt>unistd.hE<gt>\n" |
| 909 |
"\\&\n" |
| 910 |
"int\n" |
| 911 |
"main(void)\n" |
| 912 |
"{\n" |
| 913 |
" int sfd;\n" |
| 914 |
" ssize_t s;\n" |
| 915 |
" sigset_t mask;\n" |
| 916 |
" struct signalfd_siginfo fdsi;\n" |
| 917 |
"\\&\n" |
| 918 |
" sigemptyset(&mask);\n" |
| 919 |
" sigaddset(&mask, SIGINT);\n" |
| 920 |
" sigaddset(&mask, SIGQUIT);\n" |
| 921 |
"\\&\n" |
| 922 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 923 |
" according to their default dispositions. */\n" |
| 924 |
"\\&\n" |
| 925 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 926 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 927 |
"\\&\n" |
| 928 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 929 |
" if (sfd == -1)\n" |
| 930 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 931 |
"\\&\n" |
| 932 |
" for (;;) {\n" |
| 933 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 934 |
" if (s != sizeof(fdsi))\n" |
| 935 |
" err(EXIT_FAILURE, \"read\");\n" |
| 936 |
"\\&\n" |
| 937 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 938 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 939 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 940 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 941 |
" exit(EXIT_SUCCESS);\n" |
| 942 |
" } else {\n" |
| 943 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 944 |
" }\n" |
| 945 |
" }\n" |
| 946 |
"}\n" |
| 947 |
msgstr "" |
| 948 |
"#include E<lt>err.hE<gt>\n" |
| 949 |
"#include E<lt>signal.hE<gt>\n" |
| 950 |
"#include E<lt>stdio.hE<gt>\n" |
| 951 |
"#include E<lt>stdlib.hE<gt>\n" |
| 952 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 953 |
"#include E<lt>sys/types.hE<gt>\n" |
| 954 |
"#include E<lt>unistd.hE<gt>\n" |
| 955 |
"\\&\n" |
| 956 |
"int\n" |
| 957 |
"main(void)\n" |
| 958 |
"{\n" |
| 959 |
" int sfd;\n" |
| 960 |
" ssize_t s;\n" |
| 961 |
" sigset_t mask;\n" |
| 962 |
" struct signalfd_siginfo fdsi;\n" |
| 963 |
"\\&\n" |
| 964 |
" sigemptyset(&mask);\n" |
| 965 |
" sigaddset(&mask, SIGINT);\n" |
| 966 |
" sigaddset(&mask, SIGQUIT);\n" |
| 967 |
"\\&\n" |
| 968 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 969 |
" according to their default dispositions. */\n" |
| 970 |
"\\&\n" |
| 971 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 972 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 973 |
"\\&\n" |
| 974 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 975 |
" if (sfd == -1)\n" |
| 976 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 977 |
"\\&\n" |
| 978 |
" for (;;) {\n" |
| 979 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 980 |
" if (s != sizeof(fdsi))\n" |
| 981 |
" err(EXIT_FAILURE, \"read\");\n" |
| 982 |
"\\&\n" |
| 983 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 984 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 985 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 986 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 987 |
" exit(EXIT_SUCCESS);\n" |
| 988 |
" } else {\n" |
| 989 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 990 |
" }\n" |
| 991 |
" }\n" |
| 992 |
"}\n" |
| 993 |
|
| 994 |
#. SRC END |
| 995 |
#. type: SH |
| 996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 997 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 998 |
#, no-wrap |
| 999 |
msgid "SEE ALSO" |
| 1000 |
msgstr "انظر أيضًا" |
| 1001 |
|
| 1002 |
#. type: Plain text |
| 1003 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1004 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1005 |
msgid "" |
| 1006 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<sigaction>(2), " |
| 1007 |
"B<sigprocmask>(2), B<sigwaitinfo>(2), B<timerfd_create>(2), B<sigsetops>(3), " |
| 1008 |
"B<sigwait>(3), B<epoll>(7), B<signal>(7)" |
| 1009 |
msgstr "" |
| 1010 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<sigaction>(2), " |
| 1011 |
"B<sigprocmask>(2), B<sigwaitinfo>(2), B<timerfd_create>(2), B<sigsetops>(3), " |
| 1012 |
"B<sigwait>(3), B<epoll>(7), B<signal>(7)" |
| 1013 |
|
| 1014 |
#. type: TH |
| 1015 |
#: debian-trixie |
| 1016 |
#, no-wrap |
| 1017 |
msgid "2024-06-15" |
| 1018 |
msgstr "15 يونيو 2024" |
| 1019 |
|
| 1020 |
#. type: TH |
| 1021 |
#: debian-trixie |
| 1022 |
#, no-wrap |
| 1023 |
msgid "Linux man-pages 6.9.1" |
| 1024 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 1025 |
|
| 1026 |
#. type: Plain text |
| 1027 |
#: debian-trixie |
| 1028 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1029 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 1030 |
|
| 1031 |
#. ssi_trapno is unused on most arches |
| 1032 |
#. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e |
| 1033 |
#. type: Plain text |
| 1034 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1035 |
#, no-wrap |
| 1036 |
msgid "" |
| 1037 |
"struct signalfd_siginfo {\n" |
| 1038 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 1039 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 1040 |
" int32_t ssi_code; /* Signal code */\n" |
| 1041 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 1042 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 1043 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 1044 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 1045 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 1046 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 1047 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 1048 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 1049 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 1050 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 1051 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 1052 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 1053 |
" (SIGCHLD) */\n" |
| 1054 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 1055 |
" (for hardware-generated signals) */\n" |
| 1056 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 1057 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 1058 |
" uint8_t pad[I<X>]; /* Pad size to 128 bytes (allow for\n" |
| 1059 |
" additional fields in the future) */\n" |
| 1060 |
"};\n" |
| 1061 |
msgstr "" |
| 1062 |
"struct signalfd_siginfo {\n" |
| 1063 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 1064 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 1065 |
" int32_t ssi_code; /* Signal code */\n" |
| 1066 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 1067 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 1068 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 1069 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 1070 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 1071 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 1072 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 1073 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 1074 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 1075 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 1076 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 1077 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 1078 |
" (SIGCHLD) */\n" |
| 1079 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 1080 |
" (for hardware-generated signals) */\n" |
| 1081 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 1082 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 1083 |
" uint8_t pad[I<X>]; /* Pad size to 128 bytes (allow for\n" |
| 1084 |
" additional fields in the future) */\n" |
| 1085 |
"};\n" |
| 1086 |
|
| 1087 |
#. type: Plain text |
| 1088 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1089 |
#, no-wrap |
| 1090 |
msgid "" |
| 1091 |
"#include E<lt>err.hE<gt>\n" |
| 1092 |
"#include E<lt>signal.hE<gt>\n" |
| 1093 |
"#include E<lt>stdio.hE<gt>\n" |
| 1094 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1095 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 1096 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1097 |
"#include E<lt>unistd.hE<gt>\n" |
| 1098 |
"\\&\n" |
| 1099 |
"int\n" |
| 1100 |
"main(void)\n" |
| 1101 |
"{\n" |
| 1102 |
" int sfd;\n" |
| 1103 |
" ssize_t s;\n" |
| 1104 |
" sigset_t mask;\n" |
| 1105 |
" struct signalfd_siginfo fdsi;\n" |
| 1106 |
"\\&\n" |
| 1107 |
" sigemptyset(&mask);\n" |
| 1108 |
" sigaddset(&mask, SIGINT);\n" |
| 1109 |
" sigaddset(&mask, SIGQUIT);\n" |
| 1110 |
"\\&\n" |
| 1111 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 1112 |
" according to their default dispositions. */\n" |
| 1113 |
"\\&\n" |
| 1114 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 1115 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1116 |
"\\&\n" |
| 1117 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 1118 |
" if (sfd == -1)\n" |
| 1119 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 1120 |
"\\&\n" |
| 1121 |
" for (;;) {\n" |
| 1122 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 1123 |
" if (s != sizeof(fdsi))\n" |
| 1124 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1125 |
"\\&\n" |
| 1126 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 1127 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 1128 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 1129 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 1130 |
" exit(EXIT_SUCCESS);\n" |
| 1131 |
" } else {\n" |
| 1132 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 1133 |
" }\n" |
| 1134 |
" }\n" |
| 1135 |
"}\n" |
| 1136 |
msgstr "" |
| 1137 |
"#include E<lt>err.hE<gt>\n" |
| 1138 |
"#include E<lt>signal.hE<gt>\n" |
| 1139 |
"#include E<lt>stdio.hE<gt>\n" |
| 1140 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1141 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 1142 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1143 |
"#include E<lt>unistd.hE<gt>\n" |
| 1144 |
"\\&\n" |
| 1145 |
"int\n" |
| 1146 |
"main(void)\n" |
| 1147 |
"{\n" |
| 1148 |
" int sfd;\n" |
| 1149 |
" ssize_t s;\n" |
| 1150 |
" sigset_t mask;\n" |
| 1151 |
" struct signalfd_siginfo fdsi;\n" |
| 1152 |
"\\&\n" |
| 1153 |
" sigemptyset(&mask);\n" |
| 1154 |
" sigaddset(&mask, SIGINT);\n" |
| 1155 |
" sigaddset(&mask, SIGQUIT);\n" |
| 1156 |
"\\&\n" |
| 1157 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 1158 |
" according to their default dispositions. */\n" |
| 1159 |
"\\&\n" |
| 1160 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 1161 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1162 |
"\\&\n" |
| 1163 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 1164 |
" if (sfd == -1)\n" |
| 1165 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 1166 |
"\\&\n" |
| 1167 |
" for (;;) {\n" |
| 1168 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 1169 |
" if (s != sizeof(fdsi))\n" |
| 1170 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1171 |
"\\&\n" |
| 1172 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 1173 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 1174 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 1175 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 1176 |
" exit(EXIT_SUCCESS);\n" |
| 1177 |
" } else {\n" |
| 1178 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 1179 |
" }\n" |
| 1180 |
" }\n" |
| 1181 |
"}\n" |
| 1182 |
|
| 1183 |
#. type: TH |
| 1184 |
#: fedora-44 fedora-rawhide |
| 1185 |
#, no-wrap |
| 1186 |
msgid "2024-07-23" |
| 1187 |
msgstr "23 يوليو 2024" |
| 1188 |
|
| 1189 |
#. type: TH |
| 1190 |
#: fedora-44 fedora-rawhide |
| 1191 |
#, no-wrap |
| 1192 |
msgid "Linux man-pages 6.13" |
| 1193 |
msgstr "صفحات دليل لينكس 6.13" |
| 1194 |
|
| 1195 |
#. type: TH |
| 1196 |
#: mageia-cauldron |
| 1197 |
#, no-wrap |
| 1198 |
msgid "Linux man-pages 6.17" |
| 1199 |
msgstr "صفحات دليل لينكس 6.17" |
| 1200 |
|
| 1201 |
#. type: TH |
| 1202 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1203 |
#, no-wrap |
| 1204 |
msgid "Linux man-pages (unreleased)" |
| 1205 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |