Debian Codegraph @

po/ar/man2/eventfd.2.po

raw
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\n"
8 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
9 "PO-Revision-Date: 2026-05-20 21: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 "eventfd"
25 msgstr "eventfd"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-16"
31 msgstr "16 فبراير 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "الاسم"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "eventfd - create a file descriptor for event notification"
50 msgstr "eventfd - إنشاء واصف ملف للإعلام بالأحداث"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr "المكتبة"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr "موجز"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>sys/eventfd.hE<gt>>\n"
77 msgstr "B<#include E<lt>sys/eventfd.hE<gt>>\n"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n"
84 msgstr "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n"
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr "الوصف"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "B<eventfd>() creates an \"eventfd object\" that can be used as an event "
98 "wait/notify mechanism by user-space applications, and by the kernel to "
99 "notify user-space applications of events. The object contains an unsigned "
100 "64-bit integer (I<uint64_t>) counter that is maintained by the kernel. "
101 "This counter is initialized with the value specified in the argument "
102 "I<initval>."
103 msgstr ""
104 "تنشئ B<eventfd>() \"كائن eventfd\" يمكن استخدامه كآلية انتظار/إعلام بالأحداث "
105 "من قبل تطبيقات مساحة المستخدم، ومن قبل النواة لإعلام تطبيقات مساحة المستخدم "
106 "بالأحداث. يحتوي الكائن على عداد صحيح غير موقع 64 بت (I<uint64_t>) تحتفظ به "
107 "النواة. يُهيأ هذا العداد بالقيمة المحددة في الوسيط I<initval>."
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "As its return value, B<eventfd>() returns a new file descriptor that can be "
114 "used to refer to the eventfd object."
115 msgstr ""
116 "كقيمة إرجاع، تُرجع B<eventfd>() واصف ملف جديد يمكن استخدامه للإشارة إلى كائن "
117 "eventfd."
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "The following values may be bitwise ORed in I<flags> to change the behavior "
124 "of B<eventfd>():"
125 msgstr ""
126 "يمكن تطبيق عملية OR على مستوى البتات للقيم التالية في I<flags> لتغيير سلوك "
127 "B<eventfd>():"
128
129 #. type: TP
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "B<EFD_CLOEXEC> (since Linux 2.6.27)"
134 msgstr "B<EFD_CLOEXEC> (منذ لينكس 2.6.27)"
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See "
141 "the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this "
142 "may be useful."
143 msgstr ""
144 "اضبط علامة الإغلاق عند التنفيذ (B<FD_CLOEXEC>) على واصف الملف الجديد. انظر "
145 "وصف العلامة B<O_CLOEXEC> في B<open>(2) للأسباب التي تجعل هذا مفيدًا."
146
147 #. type: TP
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "B<EFD_NONBLOCK> (since Linux 2.6.27)"
152 msgstr "B<EFD_NONBLOCK> (منذ لينكس 2.6.27)"
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "Set the B<O_NONBLOCK> file status flag on the open file description (see "
159 "B<open>(2)) referred to by the new file descriptor. Using this flag saves "
160 "extra calls to B<fcntl>(2) to achieve the same result."
161 msgstr ""
162 "اضبط علامة حالة الملف B<O_NONBLOCK> على وصف الملف المفتوح (انظر B<open>(2)) "
163 "المشار إليه بواسطة واصف الملف الجديد. استخدام هذه العلامة يوفر استدعاءات "
164 "إضافية لـ B<fcntl>(2) لتحقيق النتيجة نفسها."
165
166 #. type: TP
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "B<EFD_SEMAPHORE> (since Linux 2.6.30)"
171 msgstr "B<EFD_SEMAPHORE> (منذ لينكس 2.6.30)"
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "Provide semaphore-like semantics for reads from the new file descriptor. "
178 "See below."
179 msgstr ""
180 "توفر دلالات شبيهة بالإشارة (semaphore) للقراءات من واصف الملف الجديد. انظر "
181 "أدناه."
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified "
188 "as zero."
189 msgstr "حتى لينكس 2.6.26، معطى I<flags> غير مستخدم، ويجب تحديده كصفر."
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "The following operations can be performed on the file descriptor returned by "
196 "B<eventfd>():"
197 msgstr "يمكن تنفيذ العمليات التالية على واصف الملف المُعاد بواسطة B<eventfd>():"
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "B<read>(2)"
204 msgstr "B<read>(2)"
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "Each successful B<read>(2) returns an 8-byte integer. A B<read>(2) fails "
211 "with the error B<EINVAL> if the size of the supplied buffer is less than 8 "
212 "bytes."
213 msgstr ""
214 "تُرجع كل B<read>(2) ناجحة عددًا صحيحًا من 8 بايت. تفشل B<read>(2) مع الخطأ "
215 "B<EINVAL> إذا كان حجم المخزن المؤقت المقدم أقل من 8 بايت."
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "The value returned by B<read>(2) is in host byte order\\[em]that is, the "
222 "native byte order for integers on the host machine."
223 msgstr ""
224 "القيمة المُعادة بواسطة B<read>(2) تكون بترتيب بايت المضيف\\[em]أي ترتيب "
225 "البايت الأصلي للأعداد الصحيحة على جهاز المضيف."
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "The semantics of B<read>(2) depend on whether the eventfd counter currently "
232 "has a nonzero value and whether the B<EFD_SEMAPHORE> flag was specified when "
233 "creating the eventfd file descriptor:"
234 msgstr ""
235 "تعتمد دلالات B<read>(2) على ما إذا كان عداد eventfd لديه حاليًا قيمة غير "
236 "صفرية وما إذا كانت العلامة B<EFD_SEMAPHORE> قد حُددت عند إنشاء واصف ملف "
237 "eventfd:"
238
239 #. type: IP
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "\\[bu]"
244 msgstr "\\[bu]"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "If B<EFD_SEMAPHORE> was not specified and the eventfd counter has a nonzero "
251 "value, then a B<read>(2) returns 8 bytes containing that value, and the "
252 "counter's value is reset to zero."
253 msgstr ""
254 "إذا لم تُحدد B<EFD_SEMAPHORE> وكان للعداد eventfd قيمة غير صفرية، فإن "
255 "B<read>(2) تُرجع 8 بايت تحتوي على تلك القيمة، وتُعاد قيمة العداد إلى الصفر."
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid ""
261 "If B<EFD_SEMAPHORE> was specified and the eventfd counter has a nonzero "
262 "value, then a B<read>(2) returns 8 bytes containing the value 1, and the "
263 "counter's value is decremented by 1."
264 msgstr ""
265 "إذا حُددت B<EFD_SEMAPHORE> وكان للعداد eventfd قيمة غير صفرية، فإن B<read>(2) "
266 "تُرجع 8 بايت تحتوي على القيمة 1، وتُقلل قيمة العداد بمقدار 1."
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "If the eventfd counter is zero at the time of the call to B<read>(2), then "
273 "the call either blocks until the counter becomes nonzero (at which time, the "
274 "B<read>(2) proceeds as described above) or fails with the error B<EAGAIN> "
275 "if the file descriptor has been made nonblocking."
276 msgstr ""
277 "إذا كان عداد eventfd صفرًا وقت استدعاء B<read>(2)، فإن الاستدعاء إما أن يحظر "
278 "حتى يصبح العداد غير صفري (وعندها، تستمر B<read>(2) كما هو موصوف أعلاه) أو "
279 "يفشل مع الخطأ B<EAGAIN> إذا جُعل واصف الملف غير محظور."
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<write>(2)"
286 msgstr "B<write>(2)"
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 B<write>(2) call adds the 8-byte integer value supplied in its buffer to "
293 "the counter. The maximum value that may be stored in the counter is the "
294 "largest unsigned 64-bit value minus 1 (i.e., 0xfffffffffffffffe). If the "
295 "addition would cause the counter's value to exceed the maximum, then the "
296 "B<write>(2) either blocks until a B<read>(2) is performed on the file "
297 "descriptor, or fails with the error B<EAGAIN> if the file descriptor has "
298 "been made nonblocking."
299 msgstr ""
300 "يضيف استدعاء B<write>(2) قيمة العدد الصحيح 8 بايت المقدمة في مخزنه المؤقت "
301 "إلى العداد. القيمة القصوى التي يمكن تخزينها في العداد هي أكبر قيمة غير موقعة "
302 "64 بت ناقص 1 (أي 0xfffffffffffffffe). إذا تسببت الإضافة في تجاوز قيمة العداد "
303 "للحد الأقصى، فإن B<write>(2) إما تحظر حتى تُنفذ B<read>(2) على واصف الملف، أو "
304 "تفشل مع الخطأ B<EAGAIN> إذا جُعل واصف الملف غير محظور."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "A B<write>(2) fails with the error B<EINVAL> if the size of the supplied "
311 "buffer is less than 8 bytes, or if an attempt is made to write the value "
312 "0xffffffffffffffff."
313 msgstr ""
314 "تفشل B<write>(2) مع الخطأ B<EINVAL> إذا كان حجم المخزن المؤقت المقدم أقل من "
315 "8 بايت، أو إذا جرت محاولة لكتابة القيمة 0xffffffffffffffff."
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<poll>(2)"
322 msgstr "B<poll>(2)"
323
324 #. type: TQ
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<select>(2)"
329 msgstr "B<select>(2)"
330
331 #. type: TQ
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "(and similar)"
336 msgstr "(وما شابه ذلك)"
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 "The returned file descriptor supports B<poll>(2) (and analogously "
343 "B<epoll>(7)) and B<select>(2), as follows:"
344 msgstr ""
345 "يدعم واصف الملف المُعاد B<poll>(2) (وبالمثل B<epoll>(7)) و B<select>(2)، كما "
346 "يلي:"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "The file descriptor is readable (the B<select>(2) I<readfds> argument; the "
353 "B<poll>(2) B<POLLIN> flag) if the counter has a value greater than 0."
354 msgstr ""
355 "واصف الملف قابل للقراءة (وسيط B<select>(2) I<readfds>؛ علامة B<poll>(2) "
356 "B<POLLIN>) إذا كان للعداد قيمة أكبر من 0."
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid ""
362 "The file descriptor is writable (the B<select>(2) I<writefds> argument; the "
363 "B<poll>(2) B<POLLOUT> flag) if it is possible to write a value of at least "
364 "\"1\" without blocking."
365 msgstr ""
366 "واصف الملف قابل للكتابة (وسيط B<select>(2) I<writefds>؛ علامة B<poll>(2) "
367 "B<POLLOUT>) إذا كان من الممكن كتابة قيمة لا تقل عن \"1\" دون حظر."
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "If an overflow of the counter value was detected, then B<select>(2) "
374 "indicates the file descriptor as being both readable and writable, and "
375 "B<poll>(2) returns a B<POLLERR> event. As noted above, B<write>(2) can "
376 "never overflow the counter. However an overflow can occur if 2\\[ha]64 "
377 "eventfd \"signal posts\" were performed by the KAIO subsystem (theoretically "
378 "possible, but practically unlikely). If an overflow has occurred, then "
379 "B<read>(2) will return that maximum I<uint64_t> value (i.e., "
380 "0xffffffffffffffff)."
381 msgstr ""
382 "إذا اكتُشف تجاوز لقيمة العداد، فإن B<select>(2) تشير إلى واصف الملف على أنه "
383 "قابل للقراءة والكتابة معًا، وتُرجع B<poll>(2) حدث B<POLLERR>. كما ذُكر أعلاه، "
384 "لا يمكن لـ B<write>(2) أبدًا تجاوز العداد. ومع ذلك، يمكن أن يحدث تجاوز إذا "
385 "نُفذت 2\\[ha]64 \"إشارة إرسال\" eventfd بواسطة النظام الفرعي KAIO (ممكن "
386 "نظريًا، لكنه غير محتمل عمليًا). إذا حدث تجاوز، فإن B<read>(2) ستُرجع قيمة "
387 "I<uint64_t> القصوى (أي 0xffffffffffffffff)."
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The eventfd file descriptor also supports the other file-descriptor "
394 "multiplexing APIs: B<pselect>(2) and B<ppoll>(2)."
395 msgstr ""
396 "يدعم واصف ملف eventfd أيضًا واجهات برمجة تطبيقات تعدد إرسال واصفات الملف "
397 "الأخرى: B<pselect>(2) و B<ppoll>(2)."
398
399 #. type: TP
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "B<close>(2)"
404 msgstr "B<close>(2)"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "When the file descriptor is no longer required it should be closed. When "
411 "all file descriptors associated with the same eventfd object have been "
412 "closed, the resources for object are freed by the kernel."
413 msgstr ""
414 "عندما لا يعود واصف الملف مطلوبًا، يجب إغلاقه. عندما تُغلق جميع واصفات الملف "
415 "المرتبطة بنفس كائن eventfd، تُحرر النواة موارد الكائن."
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "A copy of the file descriptor created by B<eventfd>() is inherited by the "
422 "child produced by B<fork>(2). The duplicate file descriptor is associated "
423 "with the same eventfd object. File descriptors created by B<eventfd>() are "
424 "preserved across B<execve>(2), unless the close-on-exec flag has been set."
425 msgstr ""
426 "تُورث نسخة من واصف الملف الذي أنشأته B<eventfd>() بواسطة العملية التابعة "
427 "الناتجة عن B<fork>(2). يرتبط واصف الملف المكرر بنفس كائن eventfd. تُحفظ "
428 "واصفات الملف التي أنشأتها B<eventfd>() عبر B<execve>(2)، ما لم تُضبط علامة "
429 "الإغلاق عند التنفيذ."
430
431 #. type: SH
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, no-wrap
435 msgid "RETURN VALUE"
436 msgstr "قيمة الإرجاع"
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 msgid ""
442 "On success, B<eventfd>() returns a new eventfd file descriptor. On error, "
443 "-1 is returned and I<errno> is set to indicate the error."
444 msgstr ""
445 "عند النجاح، تُرجع B<eventfd>() واصف ملف eventfd جديد. عند الخطأ، تُرجع -1 "
446 "ويُضبط I<errno> للإشارة إلى الخطأ."
447
448 #. type: SH
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid "ERRORS"
453 msgstr "الأخطاء"
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<EINVAL>"
460 msgstr "B<EINVAL>"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid "An unsupported value was specified in I<flags>."
466 msgstr "عُيّنت قيمة غير مدعومة في I<flags>."
467
468 #. type: TP
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "B<EMFILE>"
473 msgstr "B<EMFILE>"
474
475 #. type: Plain text
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 msgid ""
479 "The per-process limit on the number of open file descriptors has been "
480 "reached."
481 msgstr "وُصل إلى الحد الأقصى لواصفات الملفات المفتوحة لكل عملية."
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "B<ENFILE>"
488 msgstr "B<ENFILE>"
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "The system-wide limit on the total number of open files has been reached."
495 msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام."
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<ENODEV>"
502 msgstr "B<ENODEV>"
503
504 #. #-#-#-#-# archlinux: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
505 #. Note from Davide:
506 #. The ENODEV error is basically never going to happen if
507 #. the kernel boots correctly. That error happen only if during
508 #. the kernel initialization, some error occur in the anonymous
509 #. inode source initialization.
510 #. type: Plain text
511 #. #-#-#-#-# debian-trixie: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
512 #. Note from Davide:
513 #. The ENODEV error is basically never going to happen if
514 #. the kernel boots correctly. That error happen only if during
515 #. the kernel initialization, some error occur in the anonymous
516 #. inode source initialization.
517 #. type: Plain text
518 #. #-#-#-#-# debian-unstable: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
519 #. Note from Davide:
520 #. The ENODEV error is basically never going to happen if
521 #. the kernel boots correctly. That error happen only if during
522 #. the kernel initialization, some error occur in the anonymous
523 #. inode source initialization.
524 #. type: Plain text
525 #. #-#-#-#-# fedora-44: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
526 #. Note from Davide:
527 #. The ENODEV error is basically never going to happen if
528 #. the kernel boots correctly. That error happen only if during
529 #. the kernel initialization, some error occur in the anonymous
530 #. inode source initialization.
531 #. type: Plain text
532 #. #-#-#-#-# fedora-rawhide: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
533 #. Note from Davide:
534 #. The ENODEV error is basically never going to happen if
535 #. the kernel boots correctly. That error happen only if during
536 #. the kernel initialization, some error occur in the anonymous
537 #. inode source initialization.
538 #. type: Plain text
539 #. #-#-#-#-# mageia-cauldron: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
540 #. Note from Davide:
541 #. The ENODEV error is basically never going to happen if
542 #. the kernel boots correctly. That error happen only if during
543 #. the kernel initialization, some error occur in the anonymous
544 #. inode source initialization.
545 #. type: Plain text
546 #. #-#-#-#-# opensuse-leap-16-1: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
547 #. Note from Davide:
548 #. The ENODEV error is basically never going to happen if
549 #. the kernel boots correctly. That error happen only if during
550 #. the kernel initialization, some error occur in the anonymous
551 #. inode source initialization.
552 #. type: Plain text
553 #. #-#-#-#-# opensuse-tumbleweed: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-#
554 #. Note from Davide:
555 #. The ENODEV error is basically never going to happen if
556 #. the kernel boots correctly. That error happen only if during
557 #. the kernel initialization, some error occur in the anonymous
558 #. inode source initialization.
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid "Could not mount (internal) anonymous inode device."
563 msgstr "تعذر وصل جهاز inode (داخلي) مجهول."
564
565 #. type: TP
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "B<ENOMEM>"
570 msgstr "B<ENOMEM>"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid "There was insufficient memory to create a new eventfd file descriptor."
576 msgstr "لم تكن هناك ذاكرة كافية لإنشاء واصف ملف eventfd جديد."
577
578 #. type: SH
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 #, no-wrap
582 msgid "ATTRIBUTES"
583 msgstr "السمات"
584
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
590 msgstr ""
591 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
592
593 #. type: tbl table
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "Interface"
598 msgstr "الواجهة"
599
600 #. type: tbl table
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "Attribute"
605 msgstr "السمة"
606
607 #. type: tbl table
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "Value"
612 msgstr "القيمة"
613
614 #. type: tbl table
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid ".na\n"
619 msgstr ".na\n"
620
621 #. type: tbl table
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid ".nh\n"
626 msgstr ".nh\n"
627
628 #. type: TP
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "B<eventfd>()"
633 msgstr "B<eventfd>()"
634
635 #. type: tbl table
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "Thread safety"
640 msgstr "سلامة الخيوط"
641
642 #. type: tbl table
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, no-wrap
646 msgid "MT-Safe"
647 msgstr "MT-Safe"
648
649 #. type: SH
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 #, no-wrap
653 msgid "VERSIONS"
654 msgstr "الإصدارات"
655
656 #. type: SS
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "C library/kernel differences"
661 msgstr "الاختلافات بين مكتبة C والنواة"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "There are two underlying Linux system calls: B<eventfd>() and the more "
668 "recent B<eventfd2>(). The former system call does not implement a I<flags> "
669 "argument. The latter system call implements the I<flags> values described "
670 "above. The glibc wrapper function will use B<eventfd2>() where it is "
671 "available."
672 msgstr ""
673 "يوجد استدعاءان نظاميان أساسيان في لينكس: B<eventfd>() و B<eventfd2>() "
674 "الأحدث. لا ينفذ استدعاء النظام الأول وسيط I<flags>. ينفذ استدعاء النظام "
675 "الثاني قيم I<flags> الموصوفة أعلاه. ستستخدم دالة الغلاف glibc B<eventfd2>() "
676 "حيثما كانت متاحة."
677
678 #. type: SS
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "Additional glibc features"
683 msgstr "ميزات glibc إضافية"
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid ""
689 "The GNU C library defines an additional type, and two functions that attempt "
690 "to abstract some of the details of reading and writing on an eventfd file "
691 "descriptor:"
692 msgstr ""
693 "تعرف مكتبة C في GNU نوعًا إضافيًا، ودالتين تحاولان تجريد بعض تفاصيل القراءة "
694 "والكتابة على واصف ملف eventfd:"
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 #, no-wrap
700 msgid ""
701 "typedef uint64_t eventfd_t;\n"
702 "\\&\n"
703 "int eventfd_read(int fd, eventfd_t *value);\n"
704 "int eventfd_write(int fd, eventfd_t value);\n"
705 msgstr ""
706 "typedef uint64_t eventfd_t;\n"
707 "\\&\n"
708 "int eventfd_read(int fd, eventfd_t *value);\n"
709 "int eventfd_write(int fd, eventfd_t value);\n"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "The functions perform the read and write operations on an eventfd file "
716 "descriptor, returning 0 if the correct number of bytes was transferred, or "
717 "-1 otherwise."
718 msgstr ""
719 "تنفذ الدالتان عمليات القراءة والكتابة على واصف ملف eventfd، وتُعيدان 0 إذا "
720 "نُقل العدد الصحيح من البايتات، أو -1 بخلاف ذلك."
721
722 #. type: SH
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid "STANDARDS"
727 msgstr "المعايير"
728
729 #. type: Plain text
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 msgid "Linux, GNU."
733 msgstr "لينكس، جنو."
734
735 #. type: SH
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 #, no-wrap
739 msgid "HISTORY"
740 msgstr "التاريخ"
741
742 #. eventfd() is in glibc 2.7, but reportedly does not build
743 #. type: Plain text
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 msgid "Linux 2.6.22, glibc 2.8."
747 msgstr "لينكس 2.6.22، glibc 2.8."
748
749 #. type: TP
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 #, no-wrap
753 msgid "B<eventfd2>()"
754 msgstr "B<eventfd2>()"
755
756 #. type: Plain text
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 msgid ""
760 "Linux 2.6.27 (see VERSIONS). Since glibc 2.9, the B<eventfd>() wrapper "
761 "will employ the B<eventfd2>() system call, if it is supported by the kernel."
762 msgstr ""
763 "لينكس 2.6.27 (انظر الإصدارات). منذ glibc 2.9، ستستخدم الدالة المغلفة "
764 "B<eventfd>() استدعاء النظام B<eventfd2>() إذا كان مدعومًا من النواة."
765
766 #. type: SH
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 #, no-wrap
770 msgid "NOTES"
771 msgstr "ملاحظات"
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid ""
777 "Applications can use an eventfd file descriptor instead of a pipe (see "
778 "B<pipe>(2)) in all cases where a pipe is used simply to signal events. The "
779 "kernel overhead of an eventfd file descriptor is much lower than that of a "
780 "pipe, and only one file descriptor is required (versus the two required for "
781 "a pipe)."
782 msgstr ""
783 "يمكن للتطبيقات استخدام واصف ملف eventfd بدلاً من الأنبوب (انظر B<pipe>(2)) في "
784 "جميع الحالات التي يُستخدم فيها الأنبوب ببساطة للإشارة إلى الأحداث. الحمل "
785 "الزائد للنواة لواصف ملف eventfd أقل بكثير من ذلك الخاص بالأنبوب، ويلزم واصف "
786 "ملف واحد فقط (مقابل اثنين مطلوبين للأنبوب)."
787
788 #. or eventually syslets/threadlets
789 #. type: Plain text
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 msgid ""
793 "When used in the kernel, an eventfd file descriptor can provide a bridge "
794 "from kernel to user space, allowing, for example, functionalities like KAIO "
795 "(kernel AIO) to signal to a file descriptor that some operation is complete."
796 msgstr ""
797 "عند استخدامه في النواة، يمكن لواصف ملف eventfd توفير جسر من النواة إلى مساحة "
798 "المستخدم، مما يسمح، على سبيل المثال، لوظائف مثل KAIO (AIO النواة) بالإشارة "
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 "A key point about an eventfd file descriptor is that it can be monitored "
806 "just like any other file descriptor using B<select>(2), B<poll>(2), or "
807 "B<epoll>(7). This means that an application can simultaneously monitor the "
808 "readiness of \"traditional\" files and the readiness of other kernel "
809 "mechanisms that support the eventfd interface. (Without the B<eventfd>() "
810 "interface, these mechanisms could not be multiplexed via B<select>(2), "
811 "B<poll>(2), or B<epoll>(7).)"
812 msgstr ""
813 "نقطة رئيسية حول واصف ملف eventfd هي أنه يمكن مراقبته تمامًا مثل أي واصف ملف "
814 "آخر باستخدام B<select>(2) أو B<poll>(2) أو B<epoll>(7). هذا يعني أن التطبيق "
815 "يمكنه مراقبة جاهزية الملفات \"التقليدية\" وجاهزية آليات النواة الأخرى التي "
816 "تدعم واجهة eventfd في وقت واحد. (بدون واجهة B<eventfd>()، لا يمكن تعدد هذه "
817 "الآليات عبر B<select>(2) أو B<poll>(2) أو B<epoll>(7).)"
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "The current value of an eventfd counter can be viewed via the entry for the "
824 "corresponding file descriptor in the process's I</proc/>pidI</fdinfo> "
825 "directory. See B<proc>(5) for further details."
826 msgstr ""
827 "يمكن عرض القيمة الحالية لعداد eventfd عبر الإدخال الخاص بواصف الملف المقابل "
828 "في دليل I</proc/>pidI</fdinfo> الخاص بالعملية. انظر B<proc>(5) لمزيد من "
829 "التفاصيل."
830
831 #. type: SH
832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
834 #, no-wrap
835 msgid "EXAMPLES"
836 msgstr "أمثلة"
837
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid ""
842 "The following program creates an eventfd file descriptor and then forks to "
843 "create a child process. While the parent briefly sleeps, the child writes "
844 "each of the integers supplied in the program's command-line arguments to the "
845 "eventfd file descriptor. When the parent has finished sleeping, it reads "
846 "from the eventfd file descriptor."
847 msgstr ""
848 "يقوم البرنامج التالي بإنشاء واصف ملف eventfd ثم يتفرع لإنشاء عملية تابعة. "
849 "بينما ينام الأب لفترة وجيزة، يكتب الابن كل عدد صحيح من الأعداد الصحيحة "
850 "المقدمة في وسائط سطر أوامر البرنامج إلى واصف ملف eventfd. عندما ينهي الأب "
851 "النوم، يقرأ من واصف ملف eventfd."
852
853 #. type: Plain text
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 msgid "The following shell session shows a sample run of the program:"
857 msgstr "تظهر جلسة الصدفة التالية تشغيلًا نموذجيًا للبرنامج:"
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid ""
864 "$B< ./a.out 1 2 4 7 14>\n"
865 "Child writing 1 to efd\n"
866 "Child writing 2 to efd\n"
867 "Child writing 4 to efd\n"
868 "Child writing 7 to efd\n"
869 "Child writing 14 to efd\n"
870 "Child completed write loop\n"
871 "Parent about to read\n"
872 "Parent read 28 (0x1c) from efd\n"
873 msgstr ""
874 "$B< ./a.out 1 2 4 7 14>\n"
875 "Child writing 1 to efd\n"
876 "Child writing 2 to efd\n"
877 "Child writing 4 to efd\n"
878 "Child writing 7 to efd\n"
879 "Child writing 14 to efd\n"
880 "Child completed write loop\n"
881 "Parent about to read\n"
882 "Parent read 28 (0x1c) from efd\n"
883
884 #. type: SS
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 #, no-wrap
888 msgid "Program source"
889 msgstr "مصدر البرنامج"
890
891 #. type: Plain text
892 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
893 #, no-wrap
894 msgid ""
895 "#include E<lt>err.hE<gt>\n"
896 "#include E<lt>inttypes.hE<gt>\n"
897 "#include E<lt>stdio.hE<gt>\n"
898 "#include E<lt>stdlib.hE<gt>\n"
899 "#include E<lt>sys/eventfd.hE<gt>\n"
900 "#include E<lt>sys/types.hE<gt>\n"
901 "#include E<lt>unistd.hE<gt>\n"
902 "\\&\n"
903 "int\n"
904 "main(int argc, char *argv[])\n"
905 "{\n"
906 " int efd;\n"
907 " uint64_t u;\n"
908 " ssize_t s;\n"
909 "\\&\n"
910 " if (argc E<lt> 2) {\n"
911 " fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n"
912 " exit(EXIT_FAILURE);\n"
913 " }\n"
914 "\\&\n"
915 " efd = eventfd(0, 0);\n"
916 " if (efd == -1)\n"
917 " err(EXIT_FAILURE, \"eventfd\");\n"
918 "\\&\n"
919 " switch (fork()) {\n"
920 " case 0:\n"
921 " for (size_t j = 1; j E<lt> argc; j++) {\n"
922 " printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n"
923 " u = strtoull(argv[j], NULL, 0);\n"
924 " /* strtoull() allows various bases */\n"
925 " s = write(efd, &u, sizeof(uint64_t));\n"
926 " if (s != sizeof(uint64_t))\n"
927 " err(EXIT_FAILURE, \"write\");\n"
928 " }\n"
929 " printf(\"Child completed write loop\\[rs]n\");\n"
930 "\\&\n"
931 " exit(EXIT_SUCCESS);\n"
932 "\\&\n"
933 " default:\n"
934 " sleep(2);\n"
935 "\\&\n"
936 " printf(\"Parent about to read\\[rs]n\");\n"
937 " s = read(efd, &u, sizeof(uint64_t));\n"
938 " if (s != sizeof(uint64_t))\n"
939 " err(EXIT_FAILURE, \"read\");\n"
940 " printf(\"Parent read %w64u (%#w64x) from efd\\[rs]n\", u, u);\n"
941 " exit(EXIT_SUCCESS);\n"
942 "\\&\n"
943 " case -1:\n"
944 " err(EXIT_FAILURE, \"fork\");\n"
945 " }\n"
946 "}\n"
947 msgstr ""
948 "#include E<lt>err.hE<gt>\n"
949 "#include E<lt>inttypes.hE<gt>\n"
950 "#include E<lt>stdio.hE<gt>\n"
951 "#include E<lt>stdlib.hE<gt>\n"
952 "#include E<lt>sys/eventfd.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(int argc, char *argv[])\n"
958 "{\n"
959 " int efd;\n"
960 " uint64_t u;\n"
961 " ssize_t s;\n"
962 "\\&\n"
963 " if (argc E<lt> 2) {\n"
964 " fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n"
965 " exit(EXIT_FAILURE);\n"
966 " }\n"
967 "\\&\n"
968 " efd = eventfd(0, 0);\n"
969 " if (efd == -1)\n"
970 " err(EXIT_FAILURE, \"eventfd\");\n"
971 "\\&\n"
972 " switch (fork()) {\n"
973 " case 0:\n"
974 " for (size_t j = 1; j E<lt> argc; j++) {\n"
975 " printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n"
976 " u = strtoull(argv[j], NULL, 0);\n"
977 " /* strtoull() allows various bases */\n"
978 " s = write(efd, &u, sizeof(uint64_t));\n"
979 " if (s != sizeof(uint64_t))\n"
980 " err(EXIT_FAILURE, \"write\");\n"
981 " }\n"
982 " printf(\"Child completed write loop\\[rs]n\");\n"
983 "\\&\n"
984 " exit(EXIT_SUCCESS);\n"
985 "\\&\n"
986 " default:\n"
987 " sleep(2);\n"
988 "\\&\n"
989 " printf(\"Parent about to read\\[rs]n\");\n"
990 " s = read(efd, &u, sizeof(uint64_t));\n"
991 " if (s != sizeof(uint64_t))\n"
992 " err(EXIT_FAILURE, \"read\");\n"
993 " printf(\"Parent read %w64u (%#w64x) from efd\\[rs]n\", u, u);\n"
994 " exit(EXIT_SUCCESS);\n"
995 "\\&\n"
996 " case -1:\n"
997 " err(EXIT_FAILURE, \"fork\");\n"
998 " }\n"
999 "}\n"
1000
1001 #. SRC END
1002 #. type: SH
1003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1005 #, no-wrap
1006 msgid "SEE ALSO"
1007 msgstr "انظر أيضًا"
1008
1009 #. type: Plain text
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 msgid ""
1013 "B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), "
1014 "B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), "
1015 "B<sem_overview>(7)"
1016 msgstr ""
1017 "B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), "
1018 "B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), "
1019 "B<sem_overview>(7)"
1020
1021 #. type: TH
1022 #: debian-trixie
1023 #, no-wrap
1024 msgid "2024-06-15"
1025 msgstr "15 يونيو 2024"
1026
1027 #. type: TH
1028 #: debian-trixie
1029 #, no-wrap
1030 msgid "Linux man-pages 6.9.1"
1031 msgstr "صفحات دليل لينكس 6.9.1"
1032
1033 #. type: Plain text
1034 #: debian-trixie
1035 msgid "Standard C library (I<libc>, I<-lc>)"
1036 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
1037
1038 #. type: Plain text
1039 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
1040 #, no-wrap
1041 msgid ""
1042 "#include E<lt>err.hE<gt>\n"
1043 "#include E<lt>inttypes.hE<gt>\n"
1044 "#include E<lt>stdio.hE<gt>\n"
1045 "#include E<lt>stdlib.hE<gt>\n"
1046 "#include E<lt>sys/eventfd.hE<gt>\n"
1047 "#include E<lt>sys/types.hE<gt>\n"
1048 "#include E<lt>unistd.hE<gt>\n"
1049 "\\&\n"
1050 "int\n"
1051 "main(int argc, char *argv[])\n"
1052 "{\n"
1053 " int efd;\n"
1054 " uint64_t u;\n"
1055 " ssize_t s;\n"
1056 "\\&\n"
1057 " if (argc E<lt> 2) {\n"
1058 " fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n"
1059 " exit(EXIT_FAILURE);\n"
1060 " }\n"
1061 "\\&\n"
1062 " efd = eventfd(0, 0);\n"
1063 " if (efd == -1)\n"
1064 " err(EXIT_FAILURE, \"eventfd\");\n"
1065 "\\&\n"
1066 " switch (fork()) {\n"
1067 " case 0:\n"
1068 " for (size_t j = 1; j E<lt> argc; j++) {\n"
1069 " printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n"
1070 " u = strtoull(argv[j], NULL, 0);\n"
1071 " /* strtoull() allows various bases */\n"
1072 " s = write(efd, &u, sizeof(uint64_t));\n"
1073 " if (s != sizeof(uint64_t))\n"
1074 " err(EXIT_FAILURE, \"write\");\n"
1075 " }\n"
1076 " printf(\"Child completed write loop\\[rs]n\");\n"
1077 "\\&\n"
1078 " exit(EXIT_SUCCESS);\n"
1079 "\\&\n"
1080 " default:\n"
1081 " sleep(2);\n"
1082 "\\&\n"
1083 " printf(\"Parent about to read\\[rs]n\");\n"
1084 " s = read(efd, &u, sizeof(uint64_t));\n"
1085 " if (s != sizeof(uint64_t))\n"
1086 " err(EXIT_FAILURE, \"read\");\n"
1087 " printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n"
1088 " exit(EXIT_SUCCESS);\n"
1089 "\\&\n"
1090 " case -1:\n"
1091 " err(EXIT_FAILURE, \"fork\");\n"
1092 " }\n"
1093 "}\n"
1094 msgstr ""
1095 "#include E<lt>err.hE<gt>\n"
1096 "#include E<lt>inttypes.hE<gt>\n"
1097 "#include E<lt>stdio.hE<gt>\n"
1098 "#include E<lt>stdlib.hE<gt>\n"
1099 "#include E<lt>sys/eventfd.hE<gt>\n"
1100 "#include E<lt>sys/types.hE<gt>\n"
1101 "#include E<lt>unistd.hE<gt>\n"
1102 "\\&\n"
1103 "int\n"
1104 "main(int argc, char *argv[])\n"
1105 "{\n"
1106 " int efd;\n"
1107 " uint64_t u;\n"
1108 " ssize_t s;\n"
1109 "\\&\n"
1110 " if (argc E<lt> 2) {\n"
1111 " fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n"
1112 " exit(EXIT_FAILURE);\n"
1113 " }\n"
1114 "\\&\n"
1115 " efd = eventfd(0, 0);\n"
1116 " if (efd == -1)\n"
1117 " err(EXIT_FAILURE, \"eventfd\");\n"
1118 "\\&\n"
1119 " switch (fork()) {\n"
1120 " case 0:\n"
1121 " for (size_t j = 1; j E<lt> argc; j++) {\n"
1122 " printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n"
1123 " u = strtoull(argv[j], NULL, 0);\n"
1124 " /* strtoull() allows various bases */\n"
1125 " s = write(efd, &u, sizeof(uint64_t));\n"
1126 " if (s != sizeof(uint64_t))\n"
1127 " err(EXIT_FAILURE, \"write\");\n"
1128 " }\n"
1129 " printf(\"Child completed write loop\\[rs]n\");\n"
1130 "\\&\n"
1131 " exit(EXIT_SUCCESS);\n"
1132 "\\&\n"
1133 " default:\n"
1134 " sleep(2);\n"
1135 "\\&\n"
1136 " printf(\"Parent about to read\\[rs]n\");\n"
1137 " s = read(efd, &u, sizeof(uint64_t));\n"
1138 " if (s != sizeof(uint64_t))\n"
1139 " err(EXIT_FAILURE, \"read\");\n"
1140 " printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n"
1141 " exit(EXIT_SUCCESS);\n"
1142 "\\&\n"
1143 " case -1:\n"
1144 " err(EXIT_FAILURE, \"fork\");\n"
1145 " }\n"
1146 "}\n"
1147
1148 #. type: TH
1149 #: fedora-44 fedora-rawhide
1150 #, no-wrap
1151 msgid "2024-07-23"
1152 msgstr "23 يوليو 2024"
1153
1154 #. type: TH
1155 #: fedora-44 fedora-rawhide
1156 #, no-wrap
1157 msgid "Linux man-pages 6.13"
1158 msgstr "صفحات دليل لينكس 6.13"
1159
1160 #. type: TH
1161 #: mageia-cauldron
1162 #, no-wrap
1163 msgid "2026-02-08"
1164 msgstr "8 فبراير 2026"
1165
1166 #. type: TH
1167 #: mageia-cauldron
1168 #, no-wrap
1169 msgid "Linux man-pages 6.17"
1170 msgstr "صفحات دليل لينكس 6.17"
1171
1172 #. type: TH
1173 #: opensuse-leap-16-1 opensuse-tumbleweed
1174 #, no-wrap
1175 msgid "Linux man-pages (unreleased)"
1176 msgstr "صفحات دليل لينكس (لم تصدر بعد)"