Debian Codegraph @

po/ar/man2/splice.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:44+0200\n"
9 "PO-Revision-Date: 2026-05-18 17:58+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "splice"
25 msgstr "splice"
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 "splice - splice data to/from a pipe"
51 msgstr "splice - وصل البيانات من/إلى أنبوب"
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 ""
78 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
79 "B<#define _FILE_OFFSET_BITS 64>\n"
80 "B<#include E<lt>fcntl.hE<gt>>\n"
81 msgstr ""
82 "B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n"
83 "B<#define _FILE_OFFSET_BITS 64>\n"
84 "B<#include E<lt>fcntl.hE<gt>>\n"
85
86 #. Return type was long before glibc 2.7
87 #. type: Plain text
88 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
89 #: opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n"
93 "B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n"
94 "B< size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
95 msgstr ""
96 "B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n"
97 "B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n"
98 "B< size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "DESCRIPTION"
105 msgstr "الوصف"
106
107 #. type: Plain text
108 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
109 #: opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "B<splice>() moves data between two file descriptors without copying between "
112 "kernel address space and user address space. It transfers up to I<size> "
113 "bytes of data from the file descriptor I<fd_in> to the file descriptor "
114 "I<fd_out>, where one of the file descriptors must refer to a pipe."
115 msgstr ""
116 "تنقل B<splice>() البيانات بين واصفي ملف دون نسخ بين مساحة عنوان النواة "
117 "ومساحة عنوان المستخدم. تنقل حتى I<size> بايت من البيانات من واصف الملف "
118 "I<fd_in> إلى واصف الملف I<fd_out>، حيث يجب أن يشير أحد واصفي الملف إلى أنبوب."
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid "The following semantics apply for I<fd_in> and I<off_in>:"
124 msgstr "تنطبق الدلالات التالية على I<fd_in> و I<off_in>:"
125
126 #. type: IP
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid "\\[bu]"
131 msgstr "\\[bu]"
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 msgid "If I<fd_in> refers to a pipe, then I<off_in> must be NULL."
137 msgstr "إذا كان I<fd_in> يشير إلى أنبوب، فيجب أن يكون I<off_in> NULL."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "If I<fd_in> does not refer to a pipe and I<off_in> is NULL, then bytes are "
144 "read from I<fd_in> starting from the file offset, and the file offset is "
145 "adjusted appropriately."
146 msgstr ""
147 "إذا كان I<fd_in> لا يشير إلى أنبوب وكان I<off_in> NULL، تُقرأ البايتات من "
148 "I<fd_in> بدءًا من إزاحة الملف، وتُضبط إزاحة الملف بشكل مناسب."
149
150 #. type: Plain text
151 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
152 #: opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then "
155 "I<off_in> must point to a buffer which specifies the starting offset from "
156 "which bytes will be read from I<fd_in>; in this case, the file offset of "
157 "I<fd_in> is not changed, and the offset pointed to by I<off_in> is adjusted "
158 "appropriately instead."
159 msgstr ""
160 "إذا كان I<fd_in> لا يشير إلى أنبوب وكان I<off_in> ليس NULL، فيجب أن يشير "
161 "I<off_in> إلى مخزن مؤقت يحدد الإزاحة الابتدائية التي ستُقرأ منها البايتات من "
162 "I<fd_in>؛ في هذه الحالة، لا تتغير إزاحة ملف I<fd_in>، وتُضبط الإزاحة المشار "
163 "إليها بواسطة I<off_in> بدلاً من ذلك."
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid "Analogous statements apply for I<fd_out> and I<off_out>."
169 msgstr "تنطبق عبارات مماثلة على I<fd_out> و I<off_out>."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The I<flags> argument is a bit mask that is composed by ORing together zero "
176 "or more of the following values:"
177 msgstr ""
178 "المعامل I<flags> هو قناع بتات (bit mask) يتكون من دمج صفر أو أكثر من القيم "
179 "التالية باستخدام عملية OR المنطقية:"
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<SPLICE_F_MOVE>"
186 msgstr "B<SPLICE_F_MOVE>"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "Attempt to move pages instead of copying. This is only a hint to the "
193 "kernel: pages may still be copied if the kernel cannot move the pages from "
194 "the pipe, or if the pipe buffers don't refer to full pages. The initial "
195 "implementation of this flag was buggy: therefore starting in Linux 2.6.21 it "
196 "is a no-op (but is still permitted in a B<splice>() call); in the future, a "
197 "correct implementation may be restored."
198 msgstr ""
199 "محاولة نقل الصفحات بدلاً من نسخها. هذا مجرد تلميح للنواة: قد تُنسخ الصفحات إذا "
200 "لم تستطع النواة نقل الصفحات من الأنبوب، أو إذا كانت مخازن الأنبوب المؤقتة لا "
201 "تشير إلى صفحات كاملة. كان التنفيذ الأولي لهذه العلامة معيبًا: لذلك بدءًا من "
202 "Linux 2.6.21 أصبحت بلا تأثير (ولكنها لا تزال مسموحة في استدعاء B<splice>())؛ "
203 "في المستقبل، قد يُستعاد تنفيذ صحيح."
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<SPLICE_F_NONBLOCK>"
210 msgstr "B<SPLICE_F_NONBLOCK>"
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 "Do not block on I/O. This makes the splice pipe operations nonblocking, but "
217 "B<splice>() may nevertheless block because the file descriptors that are "
218 "spliced to/from may block (unless they have the B<O_NONBLOCK> flag set)."
219 msgstr ""
220 "لا تحجب على الإدخال/الإخراج. هذا يجعل عمليات أنبوب splice غير محجوبة، ولكن "
221 "B<splice>() قد تحجب مع ذلك لأن واصفات الملف التي يتم الوصل منها/إليها قد "
222 "تحجب (ما لم تكن تحتوي على العلامة B<O_NONBLOCK>)."
223
224 #. type: TP
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "B<SPLICE_F_MORE>"
229 msgstr "B<SPLICE_F_MORE>"
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 "More data will be coming in a subsequent splice. This is a helpful hint "
236 "when the I<fd_out> refers to a socket (see also the description of "
237 "B<MSG_MORE> in B<send>(2), and the description of B<TCP_CORK> in B<tcp>(7))."
238 msgstr ""
239 "ستأتي بيانات إضافية في splice لاحق. هذا تلميح مفيد عندما يشير I<fd_out> إلى "
240 "مقبس (انظر أيضًا وصف B<MSG_MORE> في B<send>(2)، ووصف B<TCP_CORK> في "
241 "B<tcp>(7))."
242
243 #. type: TP
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "B<SPLICE_F_GIFT>"
248 msgstr "B<SPLICE_F_GIFT>"
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid "Unused for B<splice>(); see B<vmsplice>(2)."
254 msgstr "غير مستخدم لـ B<splice>()؛ انظر B<vmsplice>(2)."
255
256 #. type: SH
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "RETURN VALUE"
261 msgstr "قيمة الإرجاع"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "Upon successful completion, B<splice>() returns the number of bytes spliced "
268 "to or from the pipe."
269 msgstr ""
270 "عند الإكمال بنجاح، تُرجع B<splice>() عدد البايتات التي تم وصلها إلى أو من "
271 "الأنبوب."
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "A return value of 0 means end of input. If I<fd_in> refers to a pipe, then "
278 "this means that there was no data to transfer, and it would not make sense "
279 "to block because there are no writers connected to the write end of the pipe."
280 msgstr ""
281 "قيمة الإرجاع 0 تعني نهاية الإدخال. إذا كان I<fd_in> يشير إلى أنبوب، فهذا "
282 "يعني عدم وجود بيانات للنقل، ولن يكون من المنطقي الحجب لأنه لا توجد كتّاب "
283 "متصلون بنهاية الكتابة للأنبوب."
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid ""
289 "On error, B<splice>() returns -1 and I<errno> is set to indicate the error."
290 msgstr "عند الخطأ، تُرجع B<splice>() -1 ويُضبط I<errno> للإشارة إلى الخطأ."
291
292 #. type: SH
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "ERRORS"
297 msgstr "الأخطاء"
298
299 #. type: TP
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "B<EAGAIN>"
304 msgstr "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 "B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file "
311 "descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the "
312 "operation would block."
313 msgstr ""
314 "حُدد B<SPLICE_F_NONBLOCK> في I<flags> أو وُسم أحد واصفات الملفات على أنه غير "
315 "مانع (B<O_NONBLOCK>)B<،> وكانت العملية ستمنع."
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<EBADF>"
322 msgstr "B<EBADF>"
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 "One or both file descriptors are not valid, or do not have proper read-write "
329 "mode."
330 msgstr "واصف ملف واحد أو كلاهما غير صالح، أو ليس لديه وضع قراءة-كتابة مناسب."
331
332 #. type: TP
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "B<EINVAL>"
337 msgstr "B<EINVAL>"
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "The target filesystem doesn't support splicing."
343 msgstr "نظام الملفات الهدف لا يدعم الوصل."
344
345 #. The append-mode error is given since Linux 2.6.27; in earlier kernels,
346 #. splice() in append mode was broken
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "The target file is opened in append mode."
351 msgstr "الملف الهدف مفتوح في وضع الإلحاق."
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid "Neither of the file descriptors refers to a pipe."
357 msgstr "لا يشير أي من واصفي الملف إلى أنبوب."
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid "An offset was given for nonseekable device (e.g., a pipe)."
363 msgstr "أُعطيت إزاحة لجهاز غير قابل للبحث (مثل أنبوب)."
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid "I<fd_in> and I<fd_out> refer to the same pipe."
369 msgstr "يشير I<fd_in> و I<fd_out> إلى نفس الأنبوب."
370
371 #. type: TP
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "B<ENOMEM>"
376 msgstr "B<ENOMEM>"
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid "Out of memory."
382 msgstr "نفدت الذاكرة."
383
384 #. type: TP
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "B<ESPIPE>"
389 msgstr "B<ESPIPE>"
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 "Either I<off_in> or I<off_out> was not NULL, but the corresponding file "
396 "descriptor refers to a pipe."
397 msgstr ""
398 "إما I<off_in> أو I<off_out> لم يكن NULL، ولكن واصف الملف المقابل يشير إلى "
399 "أنبوب."
400
401 #. type: SH
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "STANDARDS"
406 msgstr "المعايير"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid "Linux."
412 msgstr "لينكس."
413
414 #. type: SH
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "HISTORY"
419 msgstr "التاريخ"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "Linux 2.6.17, glibc 2.5."
425 msgstr "لينكس 2.6.17، glibc 2.5."
426
427 #. commit 7c77f0b3f9208c339a4b40737bb2cb0f0319bb8d
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "In Linux 2.6.30 and earlier, exactly one of I<fd_in> and I<fd_out> was "
433 "required to be a pipe. Since Linux 2.6.31, both arguments may refer to "
434 "pipes."
435 msgstr ""
436 "في Linux 2.6.30 والإصدارات الأقدم، كان مطلوبًا أن يكون واحد بالضبط من "
437 "I<fd_in> و I<fd_out> أنبوبًا. منذ Linux 2.6.31، قد يشير كلا الوسيطين إلى "
438 "أنابيب."
439
440 #. type: SH
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "NOTES"
445 msgstr "ملاحظات"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid ""
451 "The three system calls B<splice>(), B<vmsplice>(2), and B<tee>(2), provide "
452 "user-space programs with full control over an arbitrary kernel buffer, "
453 "implemented within the kernel using the same type of buffer that is used for "
454 "a pipe. In overview, these system calls perform the following tasks:"
455 msgstr ""
456 "توفر استدعاءات النظام الثلاثة B<splice>() و B<vmsplice>(2) و B<tee>(2) "
457 "لبرامج مساحة المستخدم تحكمًا كاملاً في مخزن مؤقت عشوائي للنواة، يُنفذ داخل "
458 "النواة باستخدام نفس نوع المخزن المؤقت المستخدم للأنبوب. بشكل عام، تؤدي "
459 "استدعاءات النظام هذه المهام التالية:"
460
461 #. type: TP
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "B<splice>()"
466 msgstr "B<splice>()"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "moves data from the buffer to an arbitrary file descriptor, or vice versa, "
473 "or from one buffer to another."
474 msgstr ""
475 "تنقل البيانات من المخزن المؤقت إلى واصف ملف عشوائي، أو العكس، أو من مخزن "
476 "مؤقت إلى آخر."
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<tee>(2)"
483 msgstr "B<tee>(2)"
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 "\"copies\" the data from one buffer to another."
489 msgstr "\"تنسخ\" البيانات من مخزن مؤقت إلى آخر."
490
491 #. type: TP
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "B<vmsplice>(2)"
496 msgstr "B<vmsplice>(2)"
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid "\"copies\" data from user space into the buffer."
502 msgstr "\"تنسخ\" البيانات من مساحة المستخدم إلى المخزن المؤقت."
503
504 #. Linus: Now, imagine using the above in a media server, for example.
505 #. Let's say that a year or two has passed, so that the video drivers
506 #. have been updated to be able to do the splice thing, and what can
507 #. you do? You can:
508 #. - splice from the (mpeg or whatever - let's just assume that the video
509 #. input is either digital or does the encoding on its own - like they
510 #. pretty much all do) video input into a pipe (remember: no copies - the
511 #. video input will just DMA directly into memory, and splice will just
512 #. set up the pages in the pipe buffer)
513 #. - tee that pipe to split it up
514 #. - splice one end to a file (ie "save the compressed stream to disk")
515 #. - splice the other end to a real-time video decoder window for your
516 #. real-time viewing pleasure.
517 #. Linus: Now, the advantage of splice()/tee() is that you can
518 #. do zero-copy movement of data, and unlike sendfile() you can
519 #. do it on _arbitrary_ data (and, as shown by "tee()", it's more
520 #. than just sending the data to somebody else: you can duplicate
521 #. the data and choose to forward it to two or more different
522 #. users - for things like logging etc.).
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid ""
527 "Though we talk of copying, actual copies are generally avoided. The kernel "
528 "does this by implementing a pipe buffer as a set of reference-counted "
529 "pointers to pages of kernel memory. The kernel creates \"copies\" of pages "
530 "in a buffer by creating new pointers (for the output buffer) referring to "
531 "the pages, and increasing the reference counts for the pages: only pointers "
532 "are copied, not the pages of the buffer."
533 msgstr ""
534 "على الرغم من أننا نتحدث عن النسخ، إلا أن النسخ الفعلية تُتجنب عمومًا. تفعل "
535 "النواة ذلك بتنفيذ مخزن أنبوب مؤقت كمجموعة من المؤشرات ذات العد المرجعي "
536 "لصفحات ذاكرة النواة. تنشئ النواة \"نسخًا\" من الصفحات في مخزن مؤقت بإنشاء "
537 "مؤشرات جديدة (للمخزن المؤقت الناتج) تشير إلى الصفحات، وزيادة أعداد المراجع "
538 "للصفحات: تُنسخ المؤشرات فقط، وليس صفحات المخزن المؤقت."
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "B<_FILE_OFFSET_BITS> should be defined to be 64 in code that uses non-null "
545 "I<off_in> or I<off_out> or that takes the address of B<splice>, if the code "
546 "is intended to be portable to traditional 32-bit x86 and ARM platforms where "
547 "B<off_t>'s width defaults to 32 bits."
548 msgstr ""
549 "يجب تعريف B<_FILE_OFFSET_BITS> ليكون 64 في الكود الذي يستخدم I<off_in> أو "
550 "I<off_out> غير فارغ أو الذي يأخذ عنوان B<splice>، إذا كان الكود مخصصًا ليكون "
551 "محمولاً إلى منصات x86 و ARM التقليدية 32 بت حيث يكون عرض B<off_t> مبدئيًا 32 "
552 "بت."
553
554 #. type: SH
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "EXAMPLES"
559 msgstr "أمثلة"
560
561 #. type: Plain text
562 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
563 #: opensuse-leap-16-1 opensuse-tumbleweed
564 msgid "See B<tee>(2) for another example."
565 msgstr "انظر B<tee>(2) لمثال آخر."
566
567 #. type: Plain text
568 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
569 #: opensuse-tumbleweed
570 #, no-wrap
571 msgid ""
572 "\\&\n"
573 "#define _GNU_SOURCE\n"
574 "#define _FILE_OFFSET_BITS 64\n"
575 "#include E<lt>err.hE<gt>\n"
576 "#include E<lt>fcntl.hE<gt>\n"
577 "#include E<lt>stdint.hE<gt>\n"
578 "#include E<lt>stdio.hE<gt>\n"
579 "#include E<lt>stdlib.hE<gt>\n"
580 "#include E<lt>sys/types.hE<gt>\n"
581 "#include E<lt>unistd.hE<gt>\n"
582 "\\&\n"
583 "int\n"
584 "main(void)\n"
585 "{\n"
586 " int fd;\n"
587 " int pfd[2];\n"
588 " off_t off;\n"
589 " [[gnu::nonstring]]\n"
590 "\tconst char s[12] = \"Hello, world\";\n"
591 "\\&\n"
592 " fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n"
593 " if (fd == -1)\n"
594 " err(EXIT_FAILURE, \"open\");\n"
595 "\\&\n"
596 " if (pipe(pfd) == -1)\n"
597 " err(EXIT_FAILURE, \"pipe\");\n"
598 "\\&\n"
599 " if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n"
600 " err(EXIT_FAILURE, \"write\");\n"
601 " if (close(pfd[1]) == -1)\n"
602 " err(EXIT_FAILURE, \"close\");\n"
603 "\\&\n"
604 " off = 10;\n"
605 " if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n"
606 " err(EXIT_FAILURE, \"splice\");\n"
607 " if (close(pfd[0]) == -1)\n"
608 " err(EXIT_FAILURE, \"close\");\n"
609 "\\&\n"
610 " printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n"
611 "\\&\n"
612 " if (close(fd) == -1)\n"
613 " err(EXIT_FAILURE, \"close\");\n"
614 " exit(EXIT_SUCCESS);\n"
615 "}\n"
616 msgstr ""
617 "\\&\n"
618 "#define _GNU_SOURCE\n"
619 "#define _FILE_OFFSET_BITS 64\n"
620 "#include E<lt>err.hE<gt>\n"
621 "#include E<lt>fcntl.hE<gt>\n"
622 "#include E<lt>stdint.hE<gt>\n"
623 "#include E<lt>stdio.hE<gt>\n"
624 "#include E<lt>stdlib.hE<gt>\n"
625 "#include E<lt>sys/types.hE<gt>\n"
626 "#include E<lt>unistd.hE<gt>\n"
627 "\\&\n"
628 "int\n"
629 "main(void)\n"
630 "{\n"
631 " int fd;\n"
632 " int pfd[2];\n"
633 " off_t off;\n"
634 " [[gnu::nonstring]]\n"
635 "\tconst char s[12] = \"Hello, world\";\n"
636 "\\&\n"
637 " fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n"
638 " if (fd == -1)\n"
639 " err(EXIT_FAILURE, \"open\");\n"
640 "\\&\n"
641 " if (pipe(pfd) == -1)\n"
642 " err(EXIT_FAILURE, \"pipe\");\n"
643 "\\&\n"
644 " if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n"
645 " err(EXIT_FAILURE, \"write\");\n"
646 " if (close(pfd[1]) == -1)\n"
647 " err(EXIT_FAILURE, \"close\");\n"
648 "\\&\n"
649 " off = 10;\n"
650 " if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n"
651 " err(EXIT_FAILURE, \"splice\");\n"
652 " if (close(pfd[0]) == -1)\n"
653 " err(EXIT_FAILURE, \"close\");\n"
654 "\\&\n"
655 " printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n"
656 "\\&\n"
657 " if (close(fd) == -1)\n"
658 " err(EXIT_FAILURE, \"close\");\n"
659 " exit(EXIT_SUCCESS);\n"
660 "}\n"
661
662 #. #-#-#-#-# archlinux: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
663 #. SRC END
664 #. type: SH
665 #. #-#-#-#-# debian-trixie: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
666 #. type: SH
667 #. #-#-#-#-# debian-unstable: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
668 #. SRC END
669 #. type: SH
670 #. #-#-#-#-# fedora-44: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
671 #. SRC END
672 #. type: SH
673 #. #-#-#-#-# fedora-rawhide: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
674 #. SRC END
675 #. type: SH
676 #. #-#-#-#-# mageia-cauldron: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
677 #. SRC END
678 #. type: SH
679 #. #-#-#-#-# opensuse-leap-16-1: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
680 #. SRC END
681 #. type: SH
682 #. #-#-#-#-# opensuse-tumbleweed: splice.2.pot (PACKAGE VERSION) #-#-#-#-#
683 #. SRC END
684 #. type: SH
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "SEE ALSO"
689 msgstr "انظر أيضًا"
690
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 msgid ""
695 "B<copy_file_range>(2), B<sendfile>(2), B<tee>(2), B<vmsplice>(2), B<pipe>(7)"
696 msgstr ""
697 "B<copy_file_range>(2), B<sendfile>(2), B<tee>(2), B<vmsplice>(2), B<pipe>(7)"
698
699 #. type: TH
700 #: debian-trixie
701 #, no-wrap
702 msgid "2024-05-02"
703 msgstr "2 مايو 2024"
704
705 #. type: TH
706 #: debian-trixie
707 #, no-wrap
708 msgid "Linux man-pages 6.9.1"
709 msgstr "صفحات دليل لينكس 6.9.1"
710
711 #. type: Plain text
712 #: debian-trixie
713 msgid "Standard C library (I<libc>, I<-lc>)"
714 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
715
716 #. Return type was long before glibc 2.7
717 #. type: Plain text
718 #: debian-trixie
719 #, no-wrap
720 msgid ""
721 "B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n"
722 "B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n"
723 "B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
724 msgstr ""
725 "B<ssize_t splice(int >I<fd_in>B<, off_t *_Nullable >I<off_in>B<,>\n"
726 "B< int >I<fd_out>B<, off_t *_Nullable >I<off_out>B<,>\n"
727 "B< size_t >I<len>B<, unsigned int >I<flags>B<);>\n"
728
729 #. type: Plain text
730 #: debian-trixie
731 msgid ""
732 "B<splice>() moves data between two file descriptors without copying between "
733 "kernel address space and user address space. It transfers up to I<len> "
734 "bytes of data from the file descriptor I<fd_in> to the file descriptor "
735 "I<fd_out>, where one of the file descriptors must refer to a pipe."
736 msgstr ""
737 "تنقل B<splice>() البيانات بين واصفي ملف دون نسخ بين مساحة عنوان النواة "
738 "ومساحة عنوان المستخدم. تنقل حتى I<len> بايت من البيانات من واصف الملف "
739 "I<fd_in> إلى واصف الملف I<fd_out>، حيث يجب أن يشير أحد واصفي الملف إلى أنبوب."
740
741 #. type: Plain text
742 #: debian-trixie
743 msgid ""
744 "If I<fd_in> does not refer to a pipe and I<off_in> is not NULL, then "
745 "I<off_in> must point to a buffer which specifies the starting offset from "
746 "which bytes will be read from I<fd_in>; in this case, the file offset of "
747 "I<fd_in> is not changed."
748 msgstr ""
749 "إذا لم يشير I<fd_in> إلى أنبوب ولم يكن I<off_in> NULL، فيجب أن يشير "
750 "I<off_in> إلى مخزن يحدد الإزاحة الابتدائية التي ستُقرأ منها البايتات من "
751 "I<fd_in>؛ في هذه الحالة، لا يتغير إزاحة ملف I<fd_in>."
752
753 #. type: Plain text
754 #: debian-trixie
755 msgid "See B<tee>(2)."
756 msgstr "انظر B<tee>(2)."
757
758 #. type: TH
759 #: fedora-44 fedora-rawhide
760 #, no-wrap
761 msgid "2024-11-17"
762 msgstr "17 نوفمبر 2024"
763
764 #. type: TH
765 #: fedora-44 fedora-rawhide
766 #, no-wrap
767 msgid "Linux man-pages 6.13"
768 msgstr "صفحات دليل لينكس 6.13"
769
770 #. type: Plain text
771 #: fedora-44 fedora-rawhide
772 #, no-wrap
773 msgid ""
774 "\\&\n"
775 "#define _GNU_SOURCE\n"
776 "#define _FILE_OFFSET_BITS 64\n"
777 "#include E<lt>err.hE<gt>\n"
778 "#include E<lt>fcntl.hE<gt>\n"
779 "#include E<lt>stdint.hE<gt>\n"
780 "#include E<lt>stdio.hE<gt>\n"
781 "#include E<lt>stdlib.hE<gt>\n"
782 "#include E<lt>sys/types.hE<gt>\n"
783 "#include E<lt>unistd.hE<gt>\n"
784 "\\&\n"
785 "int\n"
786 "main(void)\n"
787 "{\n"
788 " int fd;\n"
789 " int pfd[2];\n"
790 " off_t off;\n"
791 " const char s[12] = \"Hello, world\";\n"
792 "\\&\n"
793 " fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n"
794 " if (fd == -1)\n"
795 " err(EXIT_FAILURE, \"open\");\n"
796 "\\&\n"
797 " if (pipe(pfd) == -1)\n"
798 " err(EXIT_FAILURE, \"pipe\");\n"
799 "\\&\n"
800 " if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n"
801 " err(EXIT_FAILURE, \"write\");\n"
802 " if (close(pfd[1]) == -1)\n"
803 " err(EXIT_FAILURE, \"close\");\n"
804 "\\&\n"
805 " off = 10;\n"
806 " if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n"
807 " err(EXIT_FAILURE, \"splice\");\n"
808 " if (close(pfd[0]) == -1)\n"
809 " err(EXIT_FAILURE, \"close\");\n"
810 "\\&\n"
811 " printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n"
812 "\\&\n"
813 " if (close(fd) == -1)\n"
814 " err(EXIT_FAILURE, \"close\");\n"
815 " exit(EXIT_SUCCESS);\n"
816 "}\n"
817 msgstr ""
818 "\\&\n"
819 "#define _GNU_SOURCE\n"
820 "#define _FILE_OFFSET_BITS 64\n"
821 "#include E<lt>err.hE<gt>\n"
822 "#include E<lt>fcntl.hE<gt>\n"
823 "#include E<lt>stdint.hE<gt>\n"
824 "#include E<lt>stdio.hE<gt>\n"
825 "#include E<lt>stdlib.hE<gt>\n"
826 "#include E<lt>sys/types.hE<gt>\n"
827 "#include E<lt>unistd.hE<gt>\n"
828 "\\&\n"
829 "int\n"
830 "main(void)\n"
831 "{\n"
832 " int fd;\n"
833 " int pfd[2];\n"
834 " off_t off;\n"
835 " const char s[12] = \"Hello, world\";\n"
836 "\\&\n"
837 " fd = open(\"out\", O_WRONLY | O_CREAT | O_EXCL, 0666);\n"
838 " if (fd == -1)\n"
839 " err(EXIT_FAILURE, \"open\");\n"
840 "\\&\n"
841 " if (pipe(pfd) == -1)\n"
842 " err(EXIT_FAILURE, \"pipe\");\n"
843 "\\&\n"
844 " if (write(pfd[1], s, sizeof(s)) != sizeof(s))\n"
845 " err(EXIT_FAILURE, \"write\");\n"
846 " if (close(pfd[1]) == -1)\n"
847 " err(EXIT_FAILURE, \"close\");\n"
848 "\\&\n"
849 " off = 10;\n"
850 " if (splice(pfd[0], NULL, fd, &off, sizeof(s), 0) != sizeof(s))\n"
851 " err(EXIT_FAILURE, \"splice\");\n"
852 " if (close(pfd[0]) == -1)\n"
853 " err(EXIT_FAILURE, \"close\");\n"
854 "\\&\n"
855 " printf(\"New offset is %jd\\[rs]n\", (intmax_t) off);\n"
856 "\\&\n"
857 " if (close(fd) == -1)\n"
858 " err(EXIT_FAILURE, \"close\");\n"
859 " exit(EXIT_SUCCESS);\n"
860 "}\n"
861
862 #. type: TH
863 #: mageia-cauldron
864 #, no-wrap
865 msgid "Linux man-pages 6.17"
866 msgstr "صفحات دليل لينكس 6.17"
867
868 #. type: TH
869 #: opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid "Linux man-pages (unreleased)"
872 msgstr "صفحات دليل لينكس (لم تصدر بعد)"