Debian Codegraph @

po/ar/man2/pipe.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 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:35+0200\n"
9 "PO-Revision-Date: 2026-05-18 18:05+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 "pipe"
25 msgstr "pipe"
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 "pipe, pipe2 - create pipe"
51 msgstr "pipe, pipe2 - إنشاء أنبوب"
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>unistd.hE<gt>>\n"
78 msgstr "B<#include E<lt>unistd.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 pipe(int >I<pipefd>B<[2]);>\n"
85 msgstr "B<int pipe(int >I<pipefd>B<[2]);>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
93 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n"
94 "B<#include E<lt>unistd.hE<gt>>\n"
95 msgstr ""
96 "B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n"
97 "B<#include E<lt>fcntl.hE<gt>> /* تعريف ثوابت B<O_*> */\n"
98 "B<#include E<lt>unistd.hE<gt>>\n"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
105 msgstr "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n"
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 #, no-wrap
111 msgid ""
112 "/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the\n"
113 " following prototype; see VERSIONS */\n"
114 msgstr "/* في أنظمة Alpha وIA-64 وMIPS وSuperH وSPARC/SPARC64، يكون للوظيفة pipe() النموذج الأولي التالي؛ انظر VERSIONS */\n"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid ""
121 "B<struct fd_pair {>\n"
122 "B<long fd[2];>\n"
123 "B<};>\n"
124 "B<struct fd_pair pipe(void);>\n"
125 msgstr ""
126 "B<struct fd_pair {>\n"
127 "B<long fd[2];>\n"
128 "B<};>\n"
129 "B<struct fd_pair pipe(void);>\n"
130
131 #. type: SH
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, no-wrap
135 msgid "DESCRIPTION"
136 msgstr "الوصف"
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "B<pipe>() creates a pipe, a unidirectional data channel that can be used "
143 "for interprocess communication. The array I<pipefd> is used to return two "
144 "file descriptors referring to the ends of the pipe. I<pipefd[0]> refers to "
145 "the read end of the pipe. I<pipefd[1]> refers to the write end of the "
146 "pipe. Data written to the write end of the pipe is buffered by the kernel "
147 "until it is read from the read end of the pipe. For further details, see "
148 "B<pipe>(7)."
149 msgstr ""
150 "B<pipe>() ينشئ أنبوبًا، قناة بيانات أحادية الاتجاه يمكن استخدامها للتواصل "
151 "بين العمليات. المصفوفة I<pipefd> تُستخدم لإرجاع واصفي ملف يشيران إلى طرفي "
152 "الأنبوب. I<pipefd[0]> يشير إلى طرف القراءة للأنبوب. I<pipefd[1]> يشير إلى "
153 "طرف الكتابة للأنبوب. البيانات المكتوبة في طرف الكتابة للأنبوب تُخزن مؤقتًا "
154 "بواسطة النواة حتى تُقرأ من طرف القراءة للأنبوب. لمزيد من التفاصيل، انظر "
155 "B<pipe>(7)."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "If I<flags> is 0, then B<pipe2>() is the same as B<pipe>(). The following "
162 "values can be bitwise ORed in I<flags> to obtain different behavior:"
163 msgstr ""
164 "إذا كانت I<flags> تساوي 0، فإن B<pipe2>() مماثلة لـ B<pipe>(). يمكن إجراء "
165 "عملية OR على البتات للقيم التالية في I<flags> للحصول على سلوك مختلف:"
166
167 #. type: TP
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid "B<O_CLOEXEC>"
172 msgstr "B<O_CLOEXEC>"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "Set the close-on-exec (B<FD_CLOEXEC>) flag on the two new file "
179 "descriptors. See the description of the same flag in B<open>(2) for "
180 "reasons why this may be useful."
181 msgstr ""
182 "اضبط علم الإغلاق عند التنفيذ (B<FD_CLOEXEC>) على واصفي الملف الجديدين. "
183 "انظر وصف نفس العلم في B<open>(2) لأسباب قد تجعل هذا مفيدًا."
184
185 #. type: TP
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "B<O_DIRECT> (since Linux 3.4)"
190 msgstr "B<O_DIRECT> (منذ Linux 3.4)"
191
192 #. commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "Create a pipe that performs I/O in \"packet\" mode. Each B<write>(2) to "
198 "the pipe is dealt with as a separate packet, and B<read>(2)s from the pipe "
199 "will read one packet at a time. Note the following points:"
200 msgstr ""
201 "أنشئ أنبوبًا يؤدي الإدخال/الإخراج في وضع \"الحزمة\". كل B<write>(2) إلى "
202 "الأنبوب يُعالج كحزمة منفصلة، وقراءات B<read>(2) من الأنبوب ستقرأ حزمة واحدة "
203 "في كل مرة. لاحظ النقاط التالية:"
204
205 #. type: IP
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "\\[bu]"
210 msgstr "\\[bu]"
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 "Writes of greater than B<PIPE_BUF> bytes (see B<pipe>(7)) will be split "
217 "into multiple packets. The constant B<PIPE_BUF> is defined in I<E<lt>limits."
218 "hE<gt>>."
219 msgstr ""
220 "الكتابات التي تزيد عن B<PIPE_BUF> بايت (انظر B<pipe>(7)) ستُقسم إلى حزم "
221 "متعددة. الثابت B<PIPE_BUF> مُعرف في I<E<lt>limits.hE<gt>>."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "If a B<read>(2) specifies a buffer size that is smaller than the next "
228 "packet, then the requested number of bytes are read, and the excess bytes in "
229 "the packet are discarded. Specifying a buffer size of B<PIPE_BUF> will be "
230 "sufficient to read the largest possible packets (see the previous point)."
231 msgstr ""
232 "إذا حددت B<read>(2) حجم مخزن مؤقت أصغر من الحزمة التالية، فسيُقرأ العدد "
233 "المطلوب من البايتات، وتُتجاهل البايتات الزائدة في الحزمة. تحديد حجم مخزن "
234 "مؤقت بقيمة B<PIPE_BUF> سيكون كافيًا لقراءة أكبر الحزم الممكنة (انظر النقطة "
235 "السابقة)."
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid ""
241 "Zero-length packets are not supported. (A B<read>(2) that specifies a "
242 "buffer size of zero is a no-op, and returns 0.)"
243 msgstr ""
244 "الحزم ذات الطول الصفري غير مدعومة. (B<read>(2) التي تحدد حجم مخزن مؤقت "
245 "صفري هي عملية لا تفعل شيئًا، وتُرجع 0.)"
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "Older kernels that do not support this flag will indicate this via an "
252 "B<EINVAL> error."
253 msgstr "النوى الأقدم التي لا تدعم هذا العلم ستشير إلى ذلك عبر خطأ B<EINVAL>."
254
255 #. commit 0dbf5f20652108106cb822ad7662c786baaa03ff
256 #. FIXME . But, it is not possible to specify O_DIRECT when opening a FIFO
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 "Since Linux 4.5, it is possible to change the B<O_DIRECT> setting of a pipe "
262 "file descriptor using B<fcntl>(2)."
263 msgstr ""
264 "منذ Linux 4.5، من الممكن تغيير إعداد B<O_DIRECT> لواصف ملف أنبوب باستخدام "
265 "B<fcntl>(2)."
266
267 #. type: TP
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "B<O_NONBLOCK>"
272 msgstr "B<O_NONBLOCK>"
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "Set the B<O_NONBLOCK> file status flag on the open file descriptions "
279 "referred to by the new file descriptors. Using this flag saves extra calls "
280 "to B<fcntl>(2) to achieve the same result."
281 msgstr ""
282 "اضبط علم حالة الملف B<O_NONBLOCK> على أوصاف الملف المفتوحة المشار إليها "
283 "بواسطة واصفي الملف الجديدين. استخدام هذا العلم يوفر استدعاءات إضافية لـ "
284 "B<fcntl>(2) لتحقيق نفس النتيجة."
285
286 #. type: TP
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "B<O_NOTIFICATION_PIPE>"
291 msgstr "B<O_NOTIFICATION_PIPE>"
292
293 #. commit c73be61cede5882f9605a852414db559c0ebedfd
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "Since Linux 5.8, general notification mechanism is built on the top of the "
299 "pipe where kernel splices notification messages into pipes opened by user "
300 "space. The owner of the pipe has to tell the kernel which sources of events "
301 "to watch and filters can also be applied to select which subevents should be "
302 "placed into the pipe."
303 msgstr ""
304 "منذ Linux 5.8، آلية الإشعار العامة مبنية فوق الأنبوب حيث تقوم النواة بوصل "
305 "رسائل الإشعار في الأنابيب المفتوحة بواسطة مساحة المستخدم. يجب على مالك "
306 "الأنبوب إخبار النواة بمصادر الأحداث التي يجب مراقبتها، ويمكن أيضًا تطبيق "
307 "مرشحات لاختيار الأحداث الفرعية التي يجب وضعها في الأنبوب."
308
309 #. type: SH
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "RETURN VALUE"
314 msgstr "قيمة الإرجاع"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "On success, zero is returned. On error, -1 is returned, I<errno> is set to "
321 "indicate the error, and I<pipefd> is left unchanged."
322 msgstr ""
323 "عند النجاح، يُعاد صفر. عند الخطأ، يُعاد -1، ويُضبط I<errno> للإشارة إلى الخطأ، "
324 "ويُترك I<pipefd> دون تغيير."
325
326 #. http://austingroupbugs.net/view.php?id=467
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "On Linux (and other systems), B<pipe>() does not modify I<pipefd> on "
332 "failure. A requirement standardizing this behavior was added in "
333 "POSIX.1-2008 TC2. The Linux-specific B<pipe2>() system call likewise does "
334 "not modify I<pipefd> on failure."
335 msgstr ""
336 "على Linux (وأنظمة أخرى)، B<pipe>() لا تُعدل I<pipefd> عند الفشل. تمت إضافة "
337 "متطلب لتوحيد هذا السلوك في POSIX.1-2008 TC2. استدعاء النظام الخاص بـ Linux "
338 "B<pipe2>() بالمثل لا يُعدل I<pipefd> عند الفشل."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "ERRORS"
345 msgstr "الأخطاء"
346
347 #. type: TP
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "B<EFAULT>"
352 msgstr "B<EFAULT>"
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid "I<pipefd> is not valid."
358 msgstr "I<pipefd> غير صالح."
359
360 #. type: TP
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "B<EINVAL>"
365 msgstr "B<EINVAL>"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "(B<pipe2>()) Invalid value in I<flags>."
371 msgstr "(B<pipe2>()) قيمة غير صالحة في I<flags>."
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<EMFILE>"
378 msgstr "B<EMFILE>"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "The per-process limit on the number of open file descriptors has been "
385 "reached."
386 msgstr "وُصل إلى الحد الأقصى لواصفات الملفات المفتوحة لكل عملية."
387
388 #. type: TP
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "B<ENFILE>"
393 msgstr "B<ENFILE>"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "The system-wide limit on the total number of open files has been reached."
400 msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام."
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "The user hard limit on memory that can be allocated for pipes has been "
407 "reached and the caller is not privileged; see B<pipe>(7)."
408 msgstr ""
409 "تم الوصول إلى الحد الصعب للمستخدم على الذاكرة التي يمكن تخصيصها للأنابيب "
410 "والمتصل ليس له صلاحية؛ انظر B<pipe>(7)."
411
412 #. type: TP
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<ENOPKG>"
417 msgstr "B<ENOPKG>"
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "(B<pipe2>()) B<O_NOTIFICATION_PIPE> was passed in I<flags> and support for "
424 "notifications (B<CONFIG_WATCH_QUEUE>) is not compiled into the kernel."
425 msgstr ""
426 "(B<pipe2>()) تم تمرير B<O_NOTIFICATION_PIPE> في I<flags> ودعم الإشعارات "
427 "(B<CONFIG_WATCH_QUEUE>) غير مُجمّع في النواة."
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "VERSIONS"
434 msgstr "الإصدارات"
435
436 #. See http://math-atlas.sourceforge.net/devel/assembly/64.psabi.1.33.ps.Z
437 #. for example, section 3.2.1 "Registers and the Stack Frame".
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 "The System V ABI on some architectures allows the use of more than one "
443 "register for returning multiple values; several architectures (namely, "
444 "Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64) (ab)use this feature in "
445 "order to implement the B<pipe>() system call in a functional manner: the "
446 "call doesn't take any arguments and returns a pair of file descriptors as "
447 "the return value on success. The glibc B<pipe>() wrapper function "
448 "transparently deals with this. See B<syscall>(2) for information regarding "
449 "registers used for storing second file descriptor."
450 msgstr ""
451 "واجهة System V ABI على بعض البنى تسمح باستخدام أكثر من مسجل لإرجاع قيم "
452 "متعددة؛ عدة بنى (وهي Alpha وIA-64 وMIPS وSuperH وSPARC/SPARC64) (تساء) "
453 "استخدام هذه الميزة لتنفيذ استدعاء النظام B<pipe>() بطريقة وظيفية: الاستدعاء "
454 "لا يأخذ أي وسيطات ويُرجع زوجًا من واصفي الملف كقيمة إرجاع عند النجاح. دالة "
455 "الغلاف glibc B<pipe>() تتعامل مع هذا بشفافية. انظر B<syscall>(2) للحصول "
456 "على معلومات حول المسجلات المستخدمة لتخزين واصف الملف الثاني."
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "STANDARDS"
463 msgstr "المعايير"
464
465 #. type: Plain text
466 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
467 #: opensuse-tumbleweed
468 msgid "POSIX.1-2024."
469 msgstr "POSIX.1-2024."
470
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "HISTORY"
476 msgstr "التاريخ"
477
478 #. type: TP
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "B<pipe>()"
483 msgstr "B<pipe>()"
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid "POSIX.1-2001."
489 msgstr "POSIX.1-2001."
490
491 #. type: TP
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<pipe2>()"
496 msgstr "B<pipe2>()"
497
498 #. type: Plain text
499 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
500 #: opensuse-tumbleweed
501 msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
502 msgstr "POSIX.1-2024. Linux 2.6.27, glibc 2.9."
503
504 #. type: SH
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, no-wrap
508 msgid "EXAMPLES"
509 msgstr "أمثلة"
510
511 #. fork.2 refers to this example program.
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid ""
516 "The following program creates a pipe, and then B<fork>(2)s to create a child "
517 "process; the child inherits a duplicate set of file descriptors that refer "
518 "to the same pipe. After the B<fork>(2), each process closes the file "
519 "descriptors that it doesn't need for the pipe (see B<pipe>(7)). The parent "
520 "then writes the string contained in the program's command-line argument to "
521 "the pipe, and the child reads this string a byte at a time from the pipe and "
522 "echoes it on standard output."
523 msgstr ""
524 "البرنامج التالي ينشئ أنبوبًا، ثم يستدعي B<fork>(2) لإنشاء عملية طفل؛ يرث "
525 "الطفل مجموعة مكررة من واصفي الملف التي تشير إلى نفس الأنبوب. بعد "
526 "B<fork>(2)، تغلق كل عملية واصفات الملف التي لا تحتاجها للأنبوب (انظر "
527 "B<pipe>(7)). ثم يكتب الأب السلسلة الموجودة في وسيطة سطر الأوامر للبرنامج "
528 "إلى الأنبوب، ويقرأ الطفل هذه السلسلة بايتًا بايتًا من الأنبوب ويطبعها على "
529 "المخرجات القياسية."
530
531 #. type: SS
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 #, no-wrap
535 msgid "Program source"
536 msgstr "مصدر البرنامج"
537
538 #. type: Plain text
539 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
540 #: opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid ""
543 "#include E<lt>err.hE<gt>\n"
544 "#include E<lt>stdio.hE<gt>\n"
545 "#include E<lt>stdlib.hE<gt>\n"
546 "#include E<lt>string.hE<gt>\n"
547 "#include E<lt>sys/types.hE<gt>\n"
548 "#include E<lt>sys/wait.hE<gt>\n"
549 "#include E<lt>unistd.hE<gt>\n"
550 "\\&\n"
551 "int\n"
552 "main(int argc, char *argv[])\n"
553 "{\n"
554 " int pipefd[2];\n"
555 " char buf;\n"
556 " pid_t cpid;\n"
557 "\\&\n"
558 " if (argc != 2) {\n"
559 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
560 " exit(EXIT_FAILURE);\n"
561 " }\n"
562 "\\&\n"
563 " if (pipe(pipefd) == -1)\n"
564 " err(EXIT_FAILURE, \"pipe\");\n"
565 "\\&\n"
566 " cpid = fork();\n"
567 " if (cpid == -1)\n"
568 " err(EXIT_FAILURE, \"fork\");\n"
569 "\\&\n"
570 " if (cpid == 0) { /* Child reads from pipe */\n"
571 " if (close(pipefd[1]) == -1) /* Close unused write end */\n"
572 " err(EXIT_FAILURE, \"close\");\n"
573 "\\&\n"
574 " while (read(pipefd[0], &buf, 1) E<gt> 0) {\n"
575 " if (write(STDOUT_FILENO, &buf, 1) != 1)\n"
576 " err(EXIT_FAILURE, \"write\");\n"
577 " }\n"
578 "\\&\n"
579 " if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n"
580 " err(EXIT_FAILURE, \"write\");\n"
581 " if (close(pipefd[0]) == -1)\n"
582 " err(EXIT_FAILURE, \"close\");\n"
583 " _exit(EXIT_SUCCESS);\n"
584 "\\&\n"
585 " } else { /* Parent writes argv[1] to pipe */\n"
586 " if (close(pipefd[0]) == -1) /* Close unused read end */\n"
587 " err(EXIT_FAILURE, \"close\");\n"
588 " if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n"
589 " err(EXIT_FAILURE, \"write\");\n"
590 " if (close(pipefd[1]) == -1) /* Reader will see EOF */\n"
591 " err(EXIT_FAILURE, \"close\");\n"
592 " if (wait(NULL) == -1) /* Wait for child */\n"
593 " err(EXIT_FAILURE, \"wait\");\n"
594 " exit(EXIT_SUCCESS);\n"
595 " }\n"
596 "}\n"
597 msgstr ""
598 "#include E<lt>err.hE<gt>\n"
599 "#include E<lt>stdio.hE<gt>\n"
600 "#include E<lt>stdlib.hE<gt>\n"
601 "#include E<lt>string.hE<gt>\n"
602 "#include E<lt>sys/types.hE<gt>\n"
603 "#include E<lt>sys/wait.hE<gt>\n"
604 "#include E<lt>unistd.hE<gt>\n"
605 "\\&\n"
606 "int\n"
607 "main(int argc, char *argv[])\n"
608 "{\n"
609 " int pipefd[2];\n"
610 " char buf;\n"
611 " pid_t cpid;\n"
612 "\\&\n"
613 " if (argc != 2) {\n"
614 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
615 " exit(EXIT_FAILURE);\n"
616 " }\n"
617 "\\&\n"
618 " if (pipe(pipefd) == -1)\n"
619 " err(EXIT_FAILURE, \"pipe\");\n"
620 "\\&\n"
621 " cpid = fork();\n"
622 " if (cpid == -1)\n"
623 " err(EXIT_FAILURE, \"fork\");\n"
624 "\\&\n"
625 " if (cpid == 0) { /* Child reads from pipe */\n"
626 " if (close(pipefd[1]) == -1) /* Close unused write end */\n"
627 " err(EXIT_FAILURE, \"close\");\n"
628 "\\&\n"
629 " while (read(pipefd[0], &buf, 1) E<gt> 0) {\n"
630 " if (write(STDOUT_FILENO, &buf, 1) != 1)\n"
631 " err(EXIT_FAILURE, \"write\");\n"
632 " }\n"
633 "\\&\n"
634 " if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n"
635 " err(EXIT_FAILURE, \"write\");\n"
636 " if (close(pipefd[0]) == -1)\n"
637 " err(EXIT_FAILURE, \"close\");\n"
638 " _exit(EXIT_SUCCESS);\n"
639 "\\&\n"
640 " } else { /* Parent writes argv[1] to pipe */\n"
641 " if (close(pipefd[0]) == -1) /* Close unused read end */\n"
642 " err(EXIT_FAILURE, \"close\");\n"
643 " if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n"
644 " err(EXIT_FAILURE, \"write\");\n"
645 " if (close(pipefd[1]) == -1) /* Reader will see EOF */\n"
646 " err(EXIT_FAILURE, \"close\");\n"
647 " if (wait(NULL) == -1) /* Wait for child */\n"
648 " err(EXIT_FAILURE, \"wait\");\n"
649 " exit(EXIT_SUCCESS);\n"
650 " }\n"
651 "}\n"
652
653 #. SRC END
654 #. type: SH
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "SEE ALSO"
659 msgstr "انظر أيضًا"
660
661 #. type: Plain text
662 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
663 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
664 msgid ""
665 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
666 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
667 msgstr ""
668 "B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), "
669 "B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)"
670
671 #. type: TH
672 #: debian-trixie
673 #, no-wrap
674 msgid "2024-06-15"
675 msgstr "15 يونيو 2024"
676
677 #. type: TH
678 #: debian-trixie
679 #, no-wrap
680 msgid "Linux man-pages 6.9.1"
681 msgstr "صفحات دليل لينكس 6.9.1"
682
683 #. type: Plain text
684 #: debian-trixie
685 msgid "Standard C library (I<libc>, I<-lc>)"
686 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
687
688 #. type: Plain text
689 #: debian-trixie fedora-44 fedora-rawhide
690 msgid "POSIX.1-2008."
691 msgstr "POSIX.1-2008."
692
693 #. type: Plain text
694 #: debian-trixie fedora-44 fedora-rawhide
695 msgid "Linux."
696 msgstr "لينكس."
697
698 #. type: Plain text
699 #: debian-trixie fedora-44 fedora-rawhide
700 msgid "Linux 2.6.27, glibc 2.9."
701 msgstr "لينكس 2.6.27، glibc 2.9."
702
703 #. type: Plain text
704 #: debian-trixie
705 #, no-wrap
706 msgid ""
707 "#include E<lt>stdio.hE<gt>\n"
708 "#include E<lt>stdlib.hE<gt>\n"
709 "#include E<lt>string.hE<gt>\n"
710 "#include E<lt>sys/types.hE<gt>\n"
711 "#include E<lt>sys/wait.hE<gt>\n"
712 "#include E<lt>unistd.hE<gt>\n"
713 "\\&\n"
714 "int\n"
715 "main(int argc, char *argv[])\n"
716 "{\n"
717 " int pipefd[2];\n"
718 " char buf;\n"
719 " pid_t cpid;\n"
720 "\\&\n"
721 " if (argc != 2) {\n"
722 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
723 " exit(EXIT_FAILURE);\n"
724 " }\n"
725 "\\&\n"
726 " if (pipe(pipefd) == -1) {\n"
727 " perror(\"pipe\");\n"
728 " exit(EXIT_FAILURE);\n"
729 " }\n"
730 "\\&\n"
731 " cpid = fork();\n"
732 " if (cpid == -1) {\n"
733 " perror(\"fork\");\n"
734 " exit(EXIT_FAILURE);\n"
735 " }\n"
736 "\\&\n"
737 " if (cpid == 0) { /* Child reads from pipe */\n"
738 " close(pipefd[1]); /* Close unused write end */\n"
739 "\\&\n"
740 " while (read(pipefd[0], &buf, 1) E<gt> 0)\n"
741 " write(STDOUT_FILENO, &buf, 1);\n"
742 "\\&\n"
743 " write(STDOUT_FILENO, \"\\[rs]n\", 1);\n"
744 " close(pipefd[0]);\n"
745 " _exit(EXIT_SUCCESS);\n"
746 "\\&\n"
747 " } else { /* Parent writes argv[1] to pipe */\n"
748 " close(pipefd[0]); /* Close unused read end */\n"
749 " write(pipefd[1], argv[1], strlen(argv[1]));\n"
750 " close(pipefd[1]); /* Reader will see EOF */\n"
751 " wait(NULL); /* Wait for child */\n"
752 " exit(EXIT_SUCCESS);\n"
753 " }\n"
754 "}\n"
755 msgstr ""
756 "#include E<lt>stdio.hE<gt>\n"
757 "#include E<lt>stdlib.hE<gt>\n"
758 "#include E<lt>string.hE<gt>\n"
759 "#include E<lt>sys/types.hE<gt>\n"
760 "#include E<lt>sys/wait.hE<gt>\n"
761 "#include E<lt>unistd.hE<gt>\n"
762 "\\&\n"
763 "int\n"
764 "main(int argc, char *argv[])\n"
765 "{\n"
766 " int pipefd[2];\n"
767 " char buf;\n"
768 " pid_t cpid;\n"
769 "\\&\n"
770 " if (argc != 2) {\n"
771 " fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n"
772 " exit(EXIT_FAILURE);\n"
773 " }\n"
774 "\\&\n"
775 " if (pipe(pipefd) == -1) {\n"
776 " perror(\"pipe\");\n"
777 " exit(EXIT_FAILURE);\n"
778 " }\n"
779 "\\&\n"
780 " cpid = fork();\n"
781 " if (cpid == -1) {\n"
782 " perror(\"fork\");\n"
783 " exit(EXIT_FAILURE);\n"
784 " }\n"
785 "\\&\n"
786 " if (cpid == 0) { /* Child reads from pipe */\n"
787 " close(pipefd[1]); /* Close unused write end */\n"
788 "\\&\n"
789 " while (read(pipefd[0], &buf, 1) E<gt> 0)\n"
790 " write(STDOUT_FILENO, &buf, 1);\n"
791 "\\&\n"
792 " write(STDOUT_FILENO, \"\\[rs]n\", 1);\n"
793 " close(pipefd[0]);\n"
794 " _exit(EXIT_SUCCESS);\n"
795 "\\&\n"
796 " } else { /* Parent writes argv[1] to pipe */\n"
797 " close(pipefd[0]); /* Close unused read end */\n"
798 " write(pipefd[1], argv[1], strlen(argv[1]));\n"
799 " close(pipefd[1]); /* Reader will see EOF */\n"
800 " wait(NULL); /* Wait for child */\n"
801 " exit(EXIT_SUCCESS);\n"
802 " }\n"
803 "}\n"
804
805 #. type: TH
806 #: fedora-44 fedora-rawhide
807 #, no-wrap
808 msgid "2024-07-23"
809 msgstr "23 يوليو 2024"
810
811 #. type: TH
812 #: fedora-44 fedora-rawhide
813 #, no-wrap
814 msgid "Linux man-pages 6.13"
815 msgstr "صفحات دليل لينكس 6.13"
816
817 #. type: TH
818 #: mageia-cauldron
819 #, no-wrap
820 msgid "Linux man-pages 6.17"
821 msgstr "صفحات دليل لينكس 6.17"
822
823 #. type: TH
824 #: opensuse-leap-16-1 opensuse-tumbleweed
825 #, no-wrap
826 msgid "Linux man-pages (unreleased)"
827 msgstr "صفحات دليل لينكس (لم تصدر بعد)"