| 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:25+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-01 17:51+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 "getline" |
| 25 |
msgstr "getline" |
| 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 "getline, getdelim - delimited string input" |
| 51 |
msgstr "getline, getdelim - إدخال سلسلة محارف محددة" |
| 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>stdio.hE<gt>>\n" |
| 78 |
msgstr "B<#include E<lt>stdio.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 "" |
| 85 |
"B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n" |
| 86 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 87 |
"B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n" |
| 88 |
"B< int >I<delim>B<, FILE *restrict >I<stream>B<);>\n" |
| 89 |
msgstr "" |
| 90 |
"B<ssize_t getline(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n" |
| 91 |
"B< FILE *restrict >I<stream>B<);>\n" |
| 92 |
"B<ssize_t getdelim(char **restrict >I<lineptr>B<, size_t *restrict >I<n>B<,>\n" |
| 93 |
"B< int >I<delim>B<, FILE *restrict >I<stream>B<);>\n" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "" |
| 99 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 100 |
msgstr "" |
| 101 |
"متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "B<getline>(), B<getdelim>():" |
| 107 |
msgstr "B<getline>(), B<getdelim>():" |
| 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 |
#, no-wrap |
| 113 |
msgid "" |
| 114 |
" Since glibc 2.10:\n" |
| 115 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 116 |
" Before glibc 2.10:\n" |
| 117 |
" _GNU_SOURCE\n" |
| 118 |
msgstr "" |
| 119 |
" منذ glibc 2.10:\n" |
| 120 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 121 |
" قبل glibc 2.10:\n" |
| 122 |
" _GNU_SOURCE\n" |
| 123 |
|
| 124 |
#. type: SH |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "DESCRIPTION" |
| 129 |
msgstr "الوصف" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"B<getline>() reads an entire line from I<stream>, storing the address of " |
| 136 |
"the buffer containing the text into I<*lineptr>. The buffer is null-" |
| 137 |
"terminated and includes the newline character, if one was found." |
| 138 |
msgstr "" |
| 139 |
"B<getline>() تقرأ سطرًا كاملاً من I<stream>، وتخزن عنوان المخزن المؤقت الذي " |
| 140 |
"يحتوي النص في I<*lineptr>. يُنهى المخزن المؤقت بحرف فارغ ويتضمن حرف السطر " |
| 141 |
"الجديد، إذا وُجد." |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"If I<*lineptr> is set to NULL before the call, then B<getline>() will " |
| 148 |
"allocate a buffer for storing the line. This buffer should be freed by the " |
| 149 |
"user program even if B<getline>() failed." |
| 150 |
msgstr "" |
| 151 |
"إذا ضُبط I<*lineptr> على NULL قبل الاستدعاء، فستخصص B<getline>() مخزنًا مؤقتًا " |
| 152 |
"لتخزين السطر. يجب تحرير هذا المخزن المؤقت بواسطة برنامج المستخدم حتى لو " |
| 153 |
"فشلت B<getline>()." |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"Alternatively, before calling B<getline>(), I<*lineptr> can contain a " |
| 160 |
"pointer to a B<malloc>(3)-allocated buffer I<*n> bytes in size. If the " |
| 161 |
"buffer is not large enough to hold the line, B<getline>() resizes it with " |
| 162 |
"B<realloc>(3), updating I<*lineptr> and I<*n> as necessary." |
| 163 |
msgstr "" |
| 164 |
"بدلاً من ذلك، قبل استدعاء B<getline>()، يمكن أن يحتوي I<*lineptr> على مؤشر " |
| 165 |
"إلى مخزن مؤقت مخصص بواسطة B<malloc>(3) بحجم I<*n> بايت. إذا لم يكن المخزن " |
| 166 |
"المؤقت كبيرًا بما يكفي لاستيعاب السطر، فتعيد B<getline>() تحجيمه باستخدام " |
| 167 |
"B<realloc>(3)، وتُحدّث I<*lineptr> و I<*n> حسب الضرورة." |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"In either case, on a successful call, I<*lineptr> and I<*n> will be updated " |
| 174 |
"to reflect the buffer address and allocated size respectively." |
| 175 |
msgstr "" |
| 176 |
"في كلتا الحالتين، عند استدعاء ناجح، يُحدّث I<*lineptr> و I<*n> ليعكسا عنوان " |
| 177 |
"المخزن المؤقت والحجم المخصص على التوالي." |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"B<getdelim>() works like B<getline>(), except that a line delimiter other " |
| 184 |
"than newline can be specified as the I<delimiter> argument. As with " |
| 185 |
"B<getline>(), a delimiter character is not added if one was not present in " |
| 186 |
"the input before end of file was reached." |
| 187 |
msgstr "" |
| 188 |
"تعمل B<getdelim>() مثل B<getline>()، باستثناء أنه يمكن تحديد محدد سطر غير " |
| 189 |
"السطر الجديد كوسيطة I<delimiter>. كما هو الحال مع B<getline>()، لا يُضاف حرف " |
| 190 |
"المحدد إذا لم يكن موجودًا في الإدخال قبل الوصول إلى نهاية الملف." |
| 191 |
|
| 192 |
#. type: SH |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
#, no-wrap |
| 196 |
msgid "RETURN VALUE" |
| 197 |
msgstr "قيمة الإرجاع" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"On success, B<getline>() and B<getdelim>() return the number of characters " |
| 204 |
"read, including the delimiter character, but not including the terminating " |
| 205 |
"null byte (\\[aq]\\[rs]0\\[aq]). This value can be used to handle embedded " |
| 206 |
"null bytes in the line read." |
| 207 |
msgstr "" |
| 208 |
"عند النجاح، تُرجع B<getline>() و B<getdelim>() عدد المحارف المقروءة، بما في " |
| 209 |
"ذلك حرف المحدد، ولكن لا يشمل البايت الفارغ الختامي (\\[aq]\\[rs]0\\[aq]). " |
| 210 |
"يمكن استخدام هذه القيمة للتعامل مع البايتات الفارغة المضمنة في السطر المقروء." |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 214 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"At end of file, both functions return -1 with the file stream end-of-file " |
| 217 |
"indicator set. On error, both functions return -1 with the file stream " |
| 218 |
"error indicator set, and I<errno> is set to indicate the error." |
| 219 |
msgstr "" |
| 220 |
"عند نهاية الملف، تُرجع كلتا الدالتين -1 مع تعيين مؤشر نهاية الملف لدفق " |
| 221 |
"الملف. عند الخطأ، تُرجع كلتا الدالتين -1 مع تعيين مؤشر خطأ دفق الملف، ويُضبط " |
| 222 |
"I<errno> للإشارة إلى الخطأ." |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "" |
| 228 |
"If I<*lineptr> was set to NULL before the call, then the buffer should be " |
| 229 |
"freed by the user program even on failure." |
| 230 |
msgstr "" |
| 231 |
"إذا ضُبط I<*lineptr> على NULL قبل الاستدعاء، فيجب تحرير المخزن المؤقت بواسطة " |
| 232 |
"برنامج المستخدم حتى عند الفشل." |
| 233 |
|
| 234 |
#. type: SH |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
#, no-wrap |
| 238 |
msgid "ERRORS" |
| 239 |
msgstr "الأخطاء" |
| 240 |
|
| 241 |
#. type: TP |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "B<EINVAL>" |
| 246 |
msgstr "B<EINVAL>" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "Bad arguments (I<n> or I<lineptr> is NULL, or I<stream> is not valid)." |
| 252 |
msgstr "وسائط سيئة (I<n> أو I<lineptr> هو NULL، أو I<stream> غير صالح)." |
| 253 |
|
| 254 |
#. type: TP |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "B<ENOMEM>" |
| 259 |
msgstr "B<ENOMEM>" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "Allocation or reallocation of the line buffer failed." |
| 265 |
msgstr "فشل تخصيص أو إعادة تخصيص المخزن المؤقت للسطر." |
| 266 |
|
| 267 |
#. type: SH |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "ATTRIBUTES" |
| 272 |
msgstr "السمات" |
| 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 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 279 |
msgstr "" |
| 280 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 281 |
|
| 282 |
#. type: tbl table |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "Interface" |
| 287 |
msgstr "الواجهة" |
| 288 |
|
| 289 |
#. type: tbl table |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "Attribute" |
| 294 |
msgstr "السمة" |
| 295 |
|
| 296 |
#. type: tbl table |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "Value" |
| 301 |
msgstr "القيمة" |
| 302 |
|
| 303 |
#. type: tbl table |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid ".na\n" |
| 308 |
msgstr ".na\n" |
| 309 |
|
| 310 |
#. type: tbl table |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid ".nh\n" |
| 315 |
msgstr ".nh\n" |
| 316 |
|
| 317 |
#. type: tbl table |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "" |
| 322 |
"B<getline>(),\n" |
| 323 |
"B<getdelim>()" |
| 324 |
msgstr "" |
| 325 |
"B<getline>(),\n" |
| 326 |
"B<getdelim>()" |
| 327 |
|
| 328 |
#. type: tbl table |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
#, no-wrap |
| 332 |
msgid "Thread safety" |
| 333 |
msgstr "سلامة الخيوط" |
| 334 |
|
| 335 |
#. type: tbl table |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "MT-Safe" |
| 340 |
msgstr "MT-Safe" |
| 341 |
|
| 342 |
#. type: SH |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
#, no-wrap |
| 346 |
msgid "STANDARDS" |
| 347 |
msgstr "المعايير" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "POSIX.1-2008." |
| 353 |
msgstr "POSIX.1-2008." |
| 354 |
|
| 355 |
#. type: SH |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "HISTORY" |
| 360 |
msgstr "التاريخ" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
msgid "GNU, POSIX.1-2008." |
| 366 |
msgstr "جنو، POSIX.1-2008." |
| 367 |
|
| 368 |
#. type: SH |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "EXAMPLES" |
| 373 |
msgstr "أمثلة" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 377 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
#, no-wrap |
| 379 |
msgid "" |
| 380 |
"#define _GNU_SOURCE\n" |
| 381 |
"#include E<lt>stdio.hE<gt>\n" |
| 382 |
"#include E<lt>stdlib.hE<gt>\n" |
| 383 |
"\\&\n" |
| 384 |
"int\n" |
| 385 |
"main(int argc, char *argv[])\n" |
| 386 |
"{\n" |
| 387 |
" FILE *stream;\n" |
| 388 |
" char *line = NULL;\n" |
| 389 |
" size_t size = 0;\n" |
| 390 |
" ssize_t nread;\n" |
| 391 |
"\\&\n" |
| 392 |
" if (argc != 2) {\n" |
| 393 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 394 |
" exit(EXIT_FAILURE);\n" |
| 395 |
" }\n" |
| 396 |
"\\&\n" |
| 397 |
" stream = fopen(argv[1], \"r\");\n" |
| 398 |
" if (stream == NULL) {\n" |
| 399 |
" perror(\"fopen\");\n" |
| 400 |
" exit(EXIT_FAILURE);\n" |
| 401 |
" }\n" |
| 402 |
"\\&\n" |
| 403 |
" while ((nread = getline(&line, &size, stream)) != -1) {\n" |
| 404 |
" printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n" |
| 405 |
" fwrite(line, nread, 1, stdout);\n" |
| 406 |
" }\n" |
| 407 |
"\\&\n" |
| 408 |
" free(line);\n" |
| 409 |
" fclose(stream);\n" |
| 410 |
" exit(EXIT_SUCCESS);\n" |
| 411 |
"}\n" |
| 412 |
msgstr "" |
| 413 |
"#define _GNU_SOURCE\n" |
| 414 |
"#include E<lt>stdio.hE<gt>\n" |
| 415 |
"#include E<lt>stdlib.hE<gt>\n" |
| 416 |
"\\&\n" |
| 417 |
"int\n" |
| 418 |
"main(int argc, char *argv[])\n" |
| 419 |
"{\n" |
| 420 |
" FILE *stream;\n" |
| 421 |
" char *line = NULL;\n" |
| 422 |
" size_t size = 0;\n" |
| 423 |
" ssize_t nread;\n" |
| 424 |
"\\&\n" |
| 425 |
" if (argc != 2) {\n" |
| 426 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 427 |
" exit(EXIT_FAILURE);\n" |
| 428 |
" }\n" |
| 429 |
"\\&\n" |
| 430 |
" stream = fopen(argv[1], \"r\");\n" |
| 431 |
" if (stream == NULL) {\n" |
| 432 |
" perror(\"fopen\");\n" |
| 433 |
" exit(EXIT_FAILURE);\n" |
| 434 |
" }\n" |
| 435 |
"\\&\n" |
| 436 |
" while ((nread = getline(&line, &size, stream)) != -1) {\n" |
| 437 |
" printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n" |
| 438 |
" fwrite(line, nread, 1, stdout);\n" |
| 439 |
" }\n" |
| 440 |
"\\&\n" |
| 441 |
" free(line);\n" |
| 442 |
" fclose(stream);\n" |
| 443 |
" exit(EXIT_SUCCESS);\n" |
| 444 |
"}\n" |
| 445 |
|
| 446 |
#. SRC END |
| 447 |
#. type: SH |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "SEE ALSO" |
| 452 |
msgstr "انظر أيضًا" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)" |
| 458 |
msgstr "B<read>(2), B<fgets>(3), B<fopen>(3), B<fread>(3), B<scanf>(3)" |
| 459 |
|
| 460 |
#. type: TH |
| 461 |
#: debian-trixie |
| 462 |
#, no-wrap |
| 463 |
msgid "2024-06-15" |
| 464 |
msgstr "15 يونيو 2024" |
| 465 |
|
| 466 |
#. type: TH |
| 467 |
#: debian-trixie |
| 468 |
#, no-wrap |
| 469 |
msgid "Linux man-pages 6.9.1" |
| 470 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: debian-trixie |
| 474 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 475 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: debian-trixie |
| 479 |
msgid "" |
| 480 |
"Both functions return -1 on failure to read a line (including end-of-file " |
| 481 |
"condition). In the event of a failure, I<errno> is set to indicate the " |
| 482 |
"error." |
| 483 |
msgstr "" |
| 484 |
"تُرجع كلتا الدالتين -1 عند فشل قراءة سطر (بما في ذلك حالة نهاية الملف). في " |
| 485 |
"حالة الفشل، يُضبط I<errno> للإشارة إلى الخطأ." |
| 486 |
|
| 487 |
#. type: Plain text |
| 488 |
#: debian-trixie |
| 489 |
#, no-wrap |
| 490 |
msgid "" |
| 491 |
"#define _GNU_SOURCE\n" |
| 492 |
"#include E<lt>stdio.hE<gt>\n" |
| 493 |
"#include E<lt>stdlib.hE<gt>\n" |
| 494 |
"\\&\n" |
| 495 |
"int\n" |
| 496 |
"main(int argc, char *argv[])\n" |
| 497 |
"{\n" |
| 498 |
" FILE *stream;\n" |
| 499 |
" char *line = NULL;\n" |
| 500 |
" size_t len = 0;\n" |
| 501 |
" ssize_t nread;\n" |
| 502 |
"\\&\n" |
| 503 |
" if (argc != 2) {\n" |
| 504 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 505 |
" exit(EXIT_FAILURE);\n" |
| 506 |
" }\n" |
| 507 |
"\\&\n" |
| 508 |
" stream = fopen(argv[1], \"r\");\n" |
| 509 |
" if (stream == NULL) {\n" |
| 510 |
" perror(\"fopen\");\n" |
| 511 |
" exit(EXIT_FAILURE);\n" |
| 512 |
" }\n" |
| 513 |
"\\&\n" |
| 514 |
" while ((nread = getline(&line, &len, stream)) != -1) {\n" |
| 515 |
" printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n" |
| 516 |
" fwrite(line, nread, 1, stdout);\n" |
| 517 |
" }\n" |
| 518 |
"\\&\n" |
| 519 |
" free(line);\n" |
| 520 |
" fclose(stream);\n" |
| 521 |
" exit(EXIT_SUCCESS);\n" |
| 522 |
"}\n" |
| 523 |
msgstr "" |
| 524 |
"#define _GNU_SOURCE\n" |
| 525 |
"#include E<lt>stdio.hE<gt>\n" |
| 526 |
"#include E<lt>stdlib.hE<gt>\n" |
| 527 |
"\\&\n" |
| 528 |
"int\n" |
| 529 |
"main(int argc, char *argv[])\n" |
| 530 |
"{\n" |
| 531 |
" FILE *stream;\n" |
| 532 |
" char *line = NULL;\n" |
| 533 |
" size_t len = 0;\n" |
| 534 |
" ssize_t nread;\n" |
| 535 |
"\\&\n" |
| 536 |
" if (argc != 2) {\n" |
| 537 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 538 |
" exit(EXIT_FAILURE);\n" |
| 539 |
" }\n" |
| 540 |
"\\&\n" |
| 541 |
" stream = fopen(argv[1], \"r\");\n" |
| 542 |
" if (stream == NULL) {\n" |
| 543 |
" perror(\"fopen\");\n" |
| 544 |
" exit(EXIT_FAILURE);\n" |
| 545 |
" }\n" |
| 546 |
"\\&\n" |
| 547 |
" while ((nread = getline(&line, &len, stream)) != -1) {\n" |
| 548 |
" printf(\"Retrieved line of length %zd:\\[rs]n\", nread);\n" |
| 549 |
" fwrite(line, nread, 1, stdout);\n" |
| 550 |
" }\n" |
| 551 |
"\\&\n" |
| 552 |
" free(line);\n" |
| 553 |
" fclose(stream);\n" |
| 554 |
" exit(EXIT_SUCCESS);\n" |
| 555 |
"}\n" |
| 556 |
|
| 557 |
#. type: TH |
| 558 |
#: fedora-44 fedora-rawhide |
| 559 |
#, no-wrap |
| 560 |
msgid "2024-12-20" |
| 561 |
msgstr "20 ديسمبر 2024" |
| 562 |
|
| 563 |
#. type: TH |
| 564 |
#: fedora-44 fedora-rawhide |
| 565 |
#, no-wrap |
| 566 |
msgid "Linux man-pages 6.13" |
| 567 |
msgstr "صفحات دليل لينكس 6.13" |
| 568 |
|
| 569 |
#. type: TH |
| 570 |
#: mageia-cauldron |
| 571 |
#, no-wrap |
| 572 |
msgid "Linux man-pages 6.17" |
| 573 |
msgstr "صفحات دليل لينكس 6.17" |
| 574 |
|
| 575 |
#. type: TH |
| 576 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 577 |
#, no-wrap |
| 578 |
msgid "Linux man-pages (unreleased)" |
| 579 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |