| 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:48+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-18 18:01+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 "tee" |
| 25 |
msgstr "tee" |
| 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 "tee - duplicating pipe content" |
| 51 |
msgstr "tee - مضاعفة محتوى الأنبوب" |
| 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<#include E<lt>fcntl.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
"B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n" |
| 82 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 86 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 89 |
msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 90 |
|
| 91 |
#. Return type was long before glibc 2.7 |
| 92 |
#. type: SH |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "DESCRIPTION" |
| 97 |
msgstr "الوصف" |
| 98 |
|
| 99 |
#. Example programs http://brick.kernel.dk/snaps |
| 100 |
#. add a "tee(in, out1, out2)" system call that duplicates the pages |
| 101 |
#. (again, incrementing their reference count, not copying the data) from |
| 102 |
#. one pipe to two other pipes. |
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 105 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"B<tee>() duplicates up to I<size> bytes of data from the pipe referred to " |
| 108 |
"by the file descriptor I<fd_in> to the pipe referred to by the file " |
| 109 |
"descriptor I<fd_out>. It does not consume the data that is duplicated from " |
| 110 |
"I<fd_in>; therefore, that data can be copied by a subsequent B<splice>(2)." |
| 111 |
msgstr "" |
| 112 |
"تضاعف B<tee>() حتى I<size> بايت من البيانات من الأنبوب المشار إليه بواصف " |
| 113 |
"الملف I<fd_in> إلى الأنبوب المشار إليه بواصف الملف I<fd_out>. لا تستهلك " |
| 114 |
"البيانات المكررة من I<fd_in>؛ لذلك، يمكن نسخ تلك البيانات بواسطة " |
| 115 |
"B<splice>(2) لاحق." |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
msgid "" |
| 121 |
"I<flags> is a bit mask that is composed by ORing together zero or more of " |
| 122 |
"the following values:" |
| 123 |
msgstr "I<flags> قناع بت يتكون من جمع (OR) صفر أو أكثر من القيم التالية:" |
| 124 |
|
| 125 |
#. type: TP |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
#, no-wrap |
| 129 |
msgid "B<SPLICE_F_MOVE>" |
| 130 |
msgstr "B<SPLICE_F_MOVE>" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
msgid "Currently has no effect for B<tee>(); see B<splice>(2)." |
| 136 |
msgstr "ليس له تأثير حالياً على B<tee>()؛ انظر B<splice>(2)." |
| 137 |
|
| 138 |
#. type: TP |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
#, no-wrap |
| 142 |
msgid "B<SPLICE_F_NONBLOCK>" |
| 143 |
msgstr "B<SPLICE_F_NONBLOCK>" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
msgid "Do not block on I/O; see B<splice>(2) for further details." |
| 149 |
msgstr "لا تعيق الإدخال/الإخراج؛ انظر B<splice>(2) لمزيد من التفاصيل." |
| 150 |
|
| 151 |
#. type: TP |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
#, no-wrap |
| 155 |
msgid "B<SPLICE_F_MORE>" |
| 156 |
msgstr "B<SPLICE_F_MORE>" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Currently has no effect for B<tee>(), but may be implemented in the future; " |
| 163 |
"see B<splice>(2)." |
| 164 |
msgstr "" |
| 165 |
"ليس له تأثير حالياً على B<tee>()، لكن قد يُنفذ في المستقبل؛ انظر B<splice>(2)." |
| 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<SPLICE_F_GIFT>" |
| 172 |
msgstr "B<SPLICE_F_GIFT>" |
| 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 "Unused for B<tee>(); see B<vmsplice>(2)." |
| 178 |
msgstr "غير مستخدم لـ B<tee>()؛ انظر B<vmsplice>(2)." |
| 179 |
|
| 180 |
#. type: SH |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "RETURN VALUE" |
| 185 |
msgstr "قيمة الإرجاع" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"Upon successful completion, B<tee>() returns the number of bytes that were " |
| 192 |
"duplicated between the input and output. A return value of 0 means that " |
| 193 |
"there was no data to transfer, and it would not make sense to block, because " |
| 194 |
"there are no writers connected to the write end of the pipe referred to by " |
| 195 |
"I<fd_in>." |
| 196 |
msgstr "" |
| 197 |
"عند الإكمال بنجاح، ترجع B<tee>() عدد البايتات التي تم تكرارها بين الإدخال " |
| 198 |
"والإخراج. قيمة الإرجاع 0 تعني عدم وجود بيانات للنقل، ولا معنى للحظر، لعدم " |
| 199 |
"وجود كتّاب متصلين بنهاية الكتابة للأنبوب المشار إليه بـ I<fd_in>." |
| 200 |
|
| 201 |
#. type: Plain text |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
msgid "" |
| 205 |
"On error, B<tee>() returns -1 and I<errno> is set to indicate the error." |
| 206 |
msgstr "عند الخطأ، ترجع B<tee>() -1 ويُضبط I<errno> للإشارة إلى الخطأ." |
| 207 |
|
| 208 |
#. type: SH |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
#, no-wrap |
| 212 |
msgid "ERRORS" |
| 213 |
msgstr "الأخطاء" |
| 214 |
|
| 215 |
#. type: TP |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "B<EAGAIN>" |
| 220 |
msgstr "B<EAGAIN>" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
msgid "" |
| 226 |
"B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file " |
| 227 |
"descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the " |
| 228 |
"operation would block." |
| 229 |
msgstr "" |
| 230 |
"حُدد B<SPLICE_F_NONBLOCK> في I<flags> أو وُسم أحد واصفات الملفات على أنه غير " |
| 231 |
"مانع (B<O_NONBLOCK>)B<،> وكانت العملية ستمنع." |
| 232 |
|
| 233 |
#. type: TP |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "B<EINVAL>" |
| 238 |
msgstr "B<EINVAL>" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
msgid "" |
| 244 |
"I<fd_in> or I<fd_out> does not refer to a pipe; or I<fd_in> and I<fd_out> " |
| 245 |
"refer to the same pipe." |
| 246 |
msgstr "" |
| 247 |
"I<fd_in> أو I<fd_out> لا يشير إلى أنبوب؛ أو I<fd_in> و I<fd_out> يشيران إلى " |
| 248 |
"نفس الأنبوب." |
| 249 |
|
| 250 |
#. type: TP |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
#, no-wrap |
| 254 |
msgid "B<ENOMEM>" |
| 255 |
msgstr "B<ENOMEM>" |
| 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 "Out of memory." |
| 261 |
msgstr "نفدت الذاكرة." |
| 262 |
|
| 263 |
#. type: SH |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "STANDARDS" |
| 268 |
msgstr "المعايير" |
| 269 |
|
| 270 |
#. type: Plain text |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
msgid "Linux." |
| 274 |
msgstr "لينكس." |
| 275 |
|
| 276 |
#. type: SH |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
#, no-wrap |
| 280 |
msgid "HISTORY" |
| 281 |
msgstr "التاريخ" |
| 282 |
|
| 283 |
#. type: Plain text |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
msgid "Linux 2.6.17, glibc 2.5." |
| 287 |
msgstr "لينكس 2.6.17، glibc 2.5." |
| 288 |
|
| 289 |
#. type: SH |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "NOTES" |
| 294 |
msgstr "ملاحظات" |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "" |
| 300 |
"Conceptually, B<tee>() copies the data between the two pipes. In reality " |
| 301 |
"no real data copying takes place though: under the covers, B<tee>() assigns " |
| 302 |
"data to the output by merely grabbing a reference to the input." |
| 303 |
msgstr "" |
| 304 |
"مفاهيمياً، تنسخ B<tee>() البيانات بين الأنبوبين. في الواقع لا يحدث نسخ " |
| 305 |
"حقيقي للبيانات: تحت الغطاء، تُسند B<tee>() البيانات إلى الإخراج بمجرد أخذ " |
| 306 |
"مرجع إلى الإدخال." |
| 307 |
|
| 308 |
#. type: SH |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "EXAMPLES" |
| 313 |
msgstr "أمثلة" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"The example below implements a basic B<tee>(1) program using the B<tee>() " |
| 320 |
"system call. Here is an example of its use:" |
| 321 |
msgstr "" |
| 322 |
"المثال أدناه ينفذ برنامج B<tee>(1) أساسي باستخدام استدعاء النظام B<tee>(). " |
| 323 |
"إليك مثال لاستخدامه:" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 327 |
#: opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "" |
| 330 |
"$B< date | ./a.out out.log | cat>;\n" |
| 331 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 332 |
"$B< cat out.log>;\n" |
| 333 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 334 |
msgstr "" |
| 335 |
"$B< date | ./a.out out.log | cat>;\n" |
| 336 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 337 |
"$B< cat out.log>;\n" |
| 338 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 339 |
|
| 340 |
#. type: SS |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "Program source" |
| 345 |
msgstr "مصدر البرنامج" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 349 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "" |
| 352 |
"#define _GNU_SOURCE\n" |
| 353 |
"#include E<lt>errno.hE<gt>\n" |
| 354 |
"#include E<lt>fcntl.hE<gt>\n" |
| 355 |
"#include E<lt>limits.hE<gt>\n" |
| 356 |
"#include E<lt>stdio.hE<gt>\n" |
| 357 |
"#include E<lt>stdlib.hE<gt>\n" |
| 358 |
"#include E<lt>sys/types.hE<gt>\n" |
| 359 |
"#include E<lt>unistd.hE<gt>\n" |
| 360 |
"\\&\n" |
| 361 |
"int\n" |
| 362 |
"main(int argc, char *argv[])\n" |
| 363 |
"{\n" |
| 364 |
" int fd;\n" |
| 365 |
" ssize_t size, ssize;\n" |
| 366 |
"\\&\n" |
| 367 |
" if (argc != 2) {\n" |
| 368 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 369 |
" exit(EXIT_FAILURE);\n" |
| 370 |
" }\n" |
| 371 |
"\\&\n" |
| 372 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 373 |
" if (fd == -1) {\n" |
| 374 |
" perror(\"open\");\n" |
| 375 |
" exit(EXIT_FAILURE);\n" |
| 376 |
" }\n" |
| 377 |
"\\&\n" |
| 378 |
" for (;;) {\n" |
| 379 |
" /*\n" |
| 380 |
" * tee stdin to stdout.\n" |
| 381 |
" */\n" |
| 382 |
" size = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 383 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 384 |
" if (size E<lt> 0) {\n" |
| 385 |
" if (errno == EAGAIN)\n" |
| 386 |
" continue;\n" |
| 387 |
" perror(\"tee\");\n" |
| 388 |
" exit(EXIT_FAILURE);\n" |
| 389 |
" }\n" |
| 390 |
" if (size == 0)\n" |
| 391 |
" break;\n" |
| 392 |
"\\&\n" |
| 393 |
" /*\n" |
| 394 |
" * Consume stdin by splicing it to a file.\n" |
| 395 |
" */\n" |
| 396 |
" while (size E<gt> 0) {\n" |
| 397 |
" ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 398 |
" size, SPLICE_F_MOVE);\n" |
| 399 |
" if (ssize E<lt> 0) {\n" |
| 400 |
" perror(\"splice\");\n" |
| 401 |
" exit(EXIT_FAILURE);\n" |
| 402 |
" }\n" |
| 403 |
" size -= ssize;\n" |
| 404 |
" }\n" |
| 405 |
" }\n" |
| 406 |
"\\&\n" |
| 407 |
" close(fd);\n" |
| 408 |
" exit(EXIT_SUCCESS);\n" |
| 409 |
"}\n" |
| 410 |
msgstr "" |
| 411 |
"#define _GNU_SOURCE\n" |
| 412 |
"#include E<lt>errno.hE<gt>\n" |
| 413 |
"#include E<lt>fcntl.hE<gt>\n" |
| 414 |
"#include E<lt>limits.hE<gt>\n" |
| 415 |
"#include E<lt>stdio.hE<gt>\n" |
| 416 |
"#include E<lt>stdlib.hE<gt>\n" |
| 417 |
"#include E<lt>sys/types.hE<gt>\n" |
| 418 |
"#include E<lt>unistd.hE<gt>\n" |
| 419 |
"\\&\n" |
| 420 |
"int\n" |
| 421 |
"main(int argc, char *argv[])\n" |
| 422 |
"{\n" |
| 423 |
" int fd;\n" |
| 424 |
" ssize_t size, ssize;\n" |
| 425 |
"\\&\n" |
| 426 |
" if (argc != 2) {\n" |
| 427 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 428 |
" exit(EXIT_FAILURE);\n" |
| 429 |
" }\n" |
| 430 |
"\\&\n" |
| 431 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 432 |
" if (fd == -1) {\n" |
| 433 |
" perror(\"open\");\n" |
| 434 |
" exit(EXIT_FAILURE);\n" |
| 435 |
" }\n" |
| 436 |
"\\&\n" |
| 437 |
" for (;;) {\n" |
| 438 |
" /*\n" |
| 439 |
" * tee stdin to stdout.\n" |
| 440 |
" */\n" |
| 441 |
" size = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 442 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 443 |
" if (size E<lt> 0) {\n" |
| 444 |
" if (errno == EAGAIN)\n" |
| 445 |
" continue;\n" |
| 446 |
" perror(\"tee\");\n" |
| 447 |
" exit(EXIT_FAILURE);\n" |
| 448 |
" }\n" |
| 449 |
" if (size == 0)\n" |
| 450 |
" break;\n" |
| 451 |
"\\&\n" |
| 452 |
" /*\n" |
| 453 |
" * Consume stdin by splicing it to a file.\n" |
| 454 |
" */\n" |
| 455 |
" while (size E<gt> 0) {\n" |
| 456 |
" ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 457 |
" size, SPLICE_F_MOVE);\n" |
| 458 |
" if (ssize E<lt> 0) {\n" |
| 459 |
" perror(\"splice\");\n" |
| 460 |
" exit(EXIT_FAILURE);\n" |
| 461 |
" }\n" |
| 462 |
" size -= ssize;\n" |
| 463 |
" }\n" |
| 464 |
" }\n" |
| 465 |
"\\&\n" |
| 466 |
" close(fd);\n" |
| 467 |
" exit(EXIT_SUCCESS);\n" |
| 468 |
"}\n" |
| 469 |
|
| 470 |
#. SRC END |
| 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 "SEE ALSO" |
| 476 |
msgstr "انظر أيضًا" |
| 477 |
|
| 478 |
#. type: Plain text |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
msgid "B<splice>(2), B<vmsplice>(2), B<pipe>(7)" |
| 482 |
msgstr "B<splice>(2), B<vmsplice>(2), B<pipe>(7)" |
| 483 |
|
| 484 |
#. type: TH |
| 485 |
#: debian-trixie |
| 486 |
#, no-wrap |
| 487 |
msgid "2024-06-15" |
| 488 |
msgstr "15 يونيو 2024" |
| 489 |
|
| 490 |
#. type: TH |
| 491 |
#: debian-trixie |
| 492 |
#, no-wrap |
| 493 |
msgid "Linux man-pages 6.9.1" |
| 494 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 495 |
|
| 496 |
#. type: Plain text |
| 497 |
#: debian-trixie |
| 498 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 499 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 500 |
|
| 501 |
#. type: Plain text |
| 502 |
#: debian-trixie |
| 503 |
#, no-wrap |
| 504 |
msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 505 |
msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 506 |
|
| 507 |
#. Example programs http://brick.kernel.dk/snaps |
| 508 |
#. add a "tee(in, out1, out2)" system call that duplicates the pages |
| 509 |
#. (again, incrementing their reference count, not copying the data) from |
| 510 |
#. one pipe to two other pipes. |
| 511 |
#. type: Plain text |
| 512 |
#: debian-trixie |
| 513 |
msgid "" |
| 514 |
"B<tee>() duplicates up to I<len> bytes of data from the pipe referred to by " |
| 515 |
"the file descriptor I<fd_in> to the pipe referred to by the file descriptor " |
| 516 |
"I<fd_out>. It does not consume the data that is duplicated from I<fd_in>; " |
| 517 |
"therefore, that data can be copied by a subsequent B<splice>(2)." |
| 518 |
msgstr "" |
| 519 |
"تضاعف B<tee>() حتى I<len> بايت من البيانات من الأنبوب المشار إليه بواصف " |
| 520 |
"الملف I<fd_in> إلى الأنبوب المشار إليه بواصف الملف I<fd_out>. لا تستهلك " |
| 521 |
"البيانات المكررة من I<fd_in>؛ لذلك، يمكن نسخ تلك البيانات بواسطة " |
| 522 |
"B<splice>(2) لاحق." |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: debian-trixie fedora-44 fedora-rawhide |
| 526 |
#, no-wrap |
| 527 |
msgid "" |
| 528 |
"$ B<date | ./a.out out.log | cat>\n" |
| 529 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 530 |
"$ B<cat out.log>\n" |
| 531 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 532 |
msgstr "" |
| 533 |
"$ B<date | ./a.out out.log | cat>\n" |
| 534 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 535 |
"$ B<cat out.log>\n" |
| 536 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 537 |
|
| 538 |
#. type: Plain text |
| 539 |
#: debian-trixie |
| 540 |
#, no-wrap |
| 541 |
msgid "" |
| 542 |
"#define _GNU_SOURCE\n" |
| 543 |
"#include E<lt>errno.hE<gt>\n" |
| 544 |
"#include E<lt>fcntl.hE<gt>\n" |
| 545 |
"#include E<lt>limits.hE<gt>\n" |
| 546 |
"#include E<lt>stdio.hE<gt>\n" |
| 547 |
"#include E<lt>stdlib.hE<gt>\n" |
| 548 |
"#include E<lt>sys/types.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 fd;\n" |
| 555 |
" ssize_t len, slen;\n" |
| 556 |
"\\&\n" |
| 557 |
" if (argc != 2) {\n" |
| 558 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 559 |
" exit(EXIT_FAILURE);\n" |
| 560 |
" }\n" |
| 561 |
"\\&\n" |
| 562 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 563 |
" if (fd == -1) {\n" |
| 564 |
" perror(\"open\");\n" |
| 565 |
" exit(EXIT_FAILURE);\n" |
| 566 |
" }\n" |
| 567 |
"\\&\n" |
| 568 |
" for (;;) {\n" |
| 569 |
" /*\n" |
| 570 |
" * tee stdin to stdout.\n" |
| 571 |
" */\n" |
| 572 |
" len = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 573 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 574 |
" if (len E<lt> 0) {\n" |
| 575 |
" if (errno == EAGAIN)\n" |
| 576 |
" continue;\n" |
| 577 |
" perror(\"tee\");\n" |
| 578 |
" exit(EXIT_FAILURE);\n" |
| 579 |
" }\n" |
| 580 |
" if (len == 0)\n" |
| 581 |
" break;\n" |
| 582 |
"\\&\n" |
| 583 |
" /*\n" |
| 584 |
" * Consume stdin by splicing it to a file.\n" |
| 585 |
" */\n" |
| 586 |
" while (len E<gt> 0) {\n" |
| 587 |
" slen = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 588 |
" len, SPLICE_F_MOVE);\n" |
| 589 |
" if (slen E<lt> 0) {\n" |
| 590 |
" perror(\"splice\");\n" |
| 591 |
" exit(EXIT_FAILURE);\n" |
| 592 |
" }\n" |
| 593 |
" len -= slen;\n" |
| 594 |
" }\n" |
| 595 |
" }\n" |
| 596 |
"\\&\n" |
| 597 |
" close(fd);\n" |
| 598 |
" exit(EXIT_SUCCESS);\n" |
| 599 |
"}\n" |
| 600 |
msgstr "" |
| 601 |
"#define _GNU_SOURCE\n" |
| 602 |
"#include E<lt>errno.hE<gt>\n" |
| 603 |
"#include E<lt>fcntl.hE<gt>\n" |
| 604 |
"#include E<lt>limits.hE<gt>\n" |
| 605 |
"#include E<lt>stdio.hE<gt>\n" |
| 606 |
"#include E<lt>stdlib.hE<gt>\n" |
| 607 |
"#include E<lt>sys/types.hE<gt>\n" |
| 608 |
"#include E<lt>unistd.hE<gt>\n" |
| 609 |
"\\&\n" |
| 610 |
"int\n" |
| 611 |
"main(int argc, char *argv[])\n" |
| 612 |
"{\n" |
| 613 |
" int fd;\n" |
| 614 |
" ssize_t len, slen;\n" |
| 615 |
"\\&\n" |
| 616 |
" if (argc != 2) {\n" |
| 617 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 618 |
" exit(EXIT_FAILURE);\n" |
| 619 |
" }\n" |
| 620 |
"\\&\n" |
| 621 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 622 |
" if (fd == -1) {\n" |
| 623 |
" perror(\"open\");\n" |
| 624 |
" exit(EXIT_FAILURE);\n" |
| 625 |
" }\n" |
| 626 |
"\\&\n" |
| 627 |
" for (;;) {\n" |
| 628 |
" /*\n" |
| 629 |
" * tee stdin to stdout.\n" |
| 630 |
" */\n" |
| 631 |
" len = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 632 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 633 |
" if (len E<lt> 0) {\n" |
| 634 |
" if (errno == EAGAIN)\n" |
| 635 |
" continue;\n" |
| 636 |
" perror(\"tee\");\n" |
| 637 |
" exit(EXIT_FAILURE);\n" |
| 638 |
" }\n" |
| 639 |
" if (len == 0)\n" |
| 640 |
" break;\n" |
| 641 |
"\\&\n" |
| 642 |
" /*\n" |
| 643 |
" * Consume stdin by splicing it to a file.\n" |
| 644 |
" */\n" |
| 645 |
" while (len E<gt> 0) {\n" |
| 646 |
" slen = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 647 |
" len, SPLICE_F_MOVE);\n" |
| 648 |
" if (slen E<lt> 0) {\n" |
| 649 |
" perror(\"splice\");\n" |
| 650 |
" exit(EXIT_FAILURE);\n" |
| 651 |
" }\n" |
| 652 |
" len -= slen;\n" |
| 653 |
" }\n" |
| 654 |
" }\n" |
| 655 |
"\\&\n" |
| 656 |
" close(fd);\n" |
| 657 |
" exit(EXIT_SUCCESS);\n" |
| 658 |
"}\n" |
| 659 |
|
| 660 |
#. type: TH |
| 661 |
#: fedora-44 fedora-rawhide |
| 662 |
#, no-wrap |
| 663 |
msgid "2024-11-17" |
| 664 |
msgstr "17 نوفمبر 2024" |
| 665 |
|
| 666 |
#. type: TH |
| 667 |
#: fedora-44 fedora-rawhide |
| 668 |
#, no-wrap |
| 669 |
msgid "Linux man-pages 6.13" |
| 670 |
msgstr "صفحات دليل لينكس 6.13" |
| 671 |
|
| 672 |
#. type: TH |
| 673 |
#: mageia-cauldron |
| 674 |
#, no-wrap |
| 675 |
msgid "Linux man-pages 6.17" |
| 676 |
msgstr "صفحات دليل لينكس 6.17" |
| 677 |
|
| 678 |
#. type: TH |
| 679 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
#, no-wrap |
| 681 |
msgid "Linux man-pages (unreleased)" |
| 682 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |