Debian Codegraph @

po/ar/man3/fread.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
9 "PO-Revision-Date: 2026-06-03 04:49+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 ".MIME-Version: 1.0\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
18 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "fread"
26 msgstr "fread"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-10"
33 msgstr "10 فبراير 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "صفحات دليل لينكس 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "الاسم"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "fread, fwrite - binary stream input/output"
52 msgstr "fread, fwrite - إدخال/إخراج الدفق الثنائي"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>stdio.hE<gt>>\n"
79 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<size_t fread(>size_t size, size_t n;\n"
87 "B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
88 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
89 "B< FILE *restrict >I<stream>B<);>\n"
90 "B<size_t fwrite(>size_t size, size_t n;\n"
91 "B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
92 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
93 "B< FILE *restrict >I<stream>B<);>\n"
94 msgstr ""
95 "B<size_t fread(>size_t size, size_t n;\n"
96 "B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
97 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
98 "B< FILE *restrict >I<stream>B<);>\n"
99 "B<size_t fwrite(>size_t size, size_t n;\n"
100 "B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
101 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
102 "B< FILE *restrict >I<stream>B<);>\n"
103
104 #. type: SH
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid "DESCRIPTION"
109 msgstr "الوصف"
110
111 #. type: Plain text
112 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
113 #: opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "The function B<fread>() reads I<n> items of data, each I<size> bytes long, "
116 "from the stream pointed to by I<stream>, storing them at the location given "
117 "by I<ptr>."
118 msgstr ""
119 "الدالة B<fread>() تقرأ I<n> عنصرًا من البيانات، كل منها بطول I<size> بايت، "
120 "من الدفق المشار إليه بـ I<stream>، وتخزنها في الموقع المعطى بـ I<ptr>."
121
122 #. type: Plain text
123 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
124 #: opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The function B<fwrite>() writes I<n> items of data, each I<size> bytes "
127 "long, to the stream pointed to by I<stream>, obtaining them from the "
128 "location given by I<ptr>."
129 msgstr ""
130 "الدالة B<fwrite>() تكتب I<n> عنصرًا من البيانات، كل منها بطول I<size> بايت، "
131 "إلى الدفق المشار إليه بـ I<stream>، وتستمدها من الموقع المعطى بـ I<ptr>."
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 "For nonlocking counterparts, see B<unlocked_stdio>(3)."
137 msgstr "للحصول على نظائر غير مقفلة، انظر B<unlocked_stdio>(3)."
138
139 #. type: SH
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid "RETURN VALUE"
144 msgstr "قيمة الإرجاع"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "On success, B<fread>() and B<fwrite>() return the number of items read or "
151 "written. This number equals the number of bytes transferred only when "
152 "I<size> is 1. If an error occurs, or the end of the file is reached, the "
153 "return value is a short item count (or zero)."
154 msgstr ""
155 "عند النجاح، B<fread>() و B<fwrite>() تُرجعان عدد العناصر المقروءة أو "
156 "المكتوبة. هذا العدد يساوي عدد البايتات المنقولة فقط عندما يكون I<size> هو 1. "
157 "إذا حدث خطأ، أو تم الوصول إلى نهاية الملف، تكون القيمة المُرجَعة عدد عناصر "
158 "قصير (أو صفر)."
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "The file position indicator for the stream is advanced by the number of "
165 "bytes successfully read or written."
166 msgstr ""
167 "مؤشر موضع الملف للدفق يُقدَّم بعدد البايتات التي تمت قراءتها أو كتابتها بنجاح."
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 "B<fread>() does not distinguish between end-of-file and error, and callers "
174 "must use B<feof>(3) and B<ferror>(3) to determine which occurred."
175 msgstr ""
176 "B<fread>() لا تفرق بين نهاية الملف والخطأ، ويجب على المستدعين استخدام "
177 "B<feof>(3) و B<ferror>(3) لتحديد أيهما حدث."
178
179 #. type: SH
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "ATTRIBUTES"
184 msgstr "السمات"
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "For an explanation of the terms used in this section, see B<attributes>(7)."
191 msgstr ""
192 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
193
194 #. type: tbl table
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "Interface"
199 msgstr "الواجهة"
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "Attribute"
206 msgstr "السمة"
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "Value"
213 msgstr "القيمة"
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid ".na\n"
220 msgstr ".na\n"
221
222 #. type: tbl table
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid ".nh\n"
227 msgstr ".nh\n"
228
229 #. type: tbl table
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid ""
234 "B<fread>(),\n"
235 "B<fwrite>()"
236 msgstr ""
237 "B<fread>()،\n"
238 "B<fwrite>()"
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "Thread safety"
245 msgstr "سلامة الخيوط"
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "MT-Safe"
252 msgstr "MT-Safe"
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "STANDARDS"
259 msgstr "المعايير"
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 "C11, POSIX.1-2008."
265 msgstr "C11, POSIX.1-2008."
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 "HISTORY"
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 "POSIX.1-2001, C89."
278 msgstr "POSIX.1-2001، C89."
279
280 #. type: SH
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "EXAMPLES"
285 msgstr "أمثلة"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "The program below demonstrates the use of B<fread>() by parsing /bin/sh ELF "
292 "executable in binary mode and printing its magic and class:"
293 msgstr ""
294 "البرنامج أدناه يوضح استخدام B<fread>() عن طريق تحليل الملف التنفيذي ELF /"
295 "bin/sh في الوضع الثنائي وطباعة سحره وفئته:"
296
297 #. type: Plain text
298 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
299 #: opensuse-tumbleweed
300 #, no-wrap
301 msgid ""
302 "$B< ./a.out>;\n"
303 "ELF magic: 0x7f454c46\n"
304 "Class: 0x02\n"
305 msgstr ""
306 "$B< ./a.out>;\n"
307 "ELF magic: 0x7f454c46\n"
308 "Class: 0x02\n"
309
310 #. type: SS
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "Program source"
315 msgstr "مصدر البرنامج"
316
317 #. type: Plain text
318 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
319 #: opensuse-tumbleweed
320 #, no-wrap
321 msgid ""
322 "#include E<lt>stdcountof.hE<gt>\n"
323 "#include E<lt>stdio.hE<gt>\n"
324 "#include E<lt>stdlib.hE<gt>\n"
325 "\\&\n"
326 "int\n"
327 "main(void)\n"
328 "{\n"
329 " FILE *fp;\n"
330 " size_t ret;\n"
331 " unsigned char buffer[4];\n"
332 "\\&\n"
333 " fp = fopen(\"/bin/sh\", \"rb\");\n"
334 " if (!fp) {\n"
335 " perror(\"fopen\");\n"
336 " return EXIT_FAILURE;\n"
337 " }\n"
338 "\\&\n"
339 " ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n"
340 " if (ret != countof(buffer)) {\n"
341 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
342 " exit(EXIT_FAILURE);\n"
343 " }\n"
344 "\\&\n"
345 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
346 " buffer[2], buffer[3]);\n"
347 "\\&\n"
348 " ret = fread(buffer, 1, 1, fp);\n"
349 " if (ret != 1) {\n"
350 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
351 " exit(EXIT_FAILURE);\n"
352 " }\n"
353 "\\&\n"
354 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
355 "\\&\n"
356 " fclose(fp);\n"
357 "\\&\n"
358 " exit(EXIT_SUCCESS);\n"
359 "}\n"
360 msgstr ""
361 "#include E<lt>stdcountof.hE<gt>\n"
362 "#include E<lt>stdio.hE<gt>\n"
363 "#include E<lt>stdlib.hE<gt>\n"
364 "\\&\n"
365 "int\n"
366 "main(void)\n"
367 "{\n"
368 " FILE *fp;\n"
369 " size_t ret;\n"
370 " unsigned char buffer[4];\n"
371 "\\&\n"
372 " fp = fopen(\"/bin/sh\", \"rb\");\n"
373 " if (!fp) {\n"
374 " perror(\"fopen\");\n"
375 " return EXIT_FAILURE;\n"
376 " }\n"
377 "\\&\n"
378 " ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n"
379 " if (ret != countof(buffer)) {\n"
380 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
381 " exit(EXIT_FAILURE);\n"
382 " }\n"
383 "\\&\n"
384 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
385 " buffer[2], buffer[3]);\n"
386 "\\&\n"
387 " ret = fread(buffer, 1, 1, fp);\n"
388 " if (ret != 1) {\n"
389 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
390 " exit(EXIT_FAILURE);\n"
391 " }\n"
392 "\\&\n"
393 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
394 "\\&\n"
395 " fclose(fp);\n"
396 "\\&\n"
397 " exit(EXIT_SUCCESS);\n"
398 "}\n"
399
400 #. SRC END
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 "SEE ALSO"
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 "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)"
412 msgstr ""
413 "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)"
414
415 #. type: TH
416 #: debian-trixie
417 #, no-wrap
418 msgid "2024-06-15"
419 msgstr "15 يونيو 2024"
420
421 #. type: TH
422 #: debian-trixie
423 #, no-wrap
424 msgid "Linux man-pages 6.9.1"
425 msgstr "صفحات دليل لينكس 6.9.1"
426
427 #. type: Plain text
428 #: debian-trixie
429 msgid "Standard C library (I<libc>, I<-lc>)"
430 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
431
432 #. type: Plain text
433 #: debian-trixie
434 #, no-wrap
435 msgid ""
436 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
437 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
438 "B< FILE *restrict >I<stream>B<);>\n"
439 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
440 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
441 "B< FILE *restrict >I<stream>B<);>\n"
442 msgstr ""
443 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
444 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
445 "B< FILE *restrict >I<stream>B<);>\n"
446 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
447 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
448 "B< FILE *restrict >I<stream>B<);>\n"
449
450 #. type: Plain text
451 #: debian-trixie
452 msgid ""
453 "The function B<fread>() reads I<nmemb> items of data, each I<size> bytes "
454 "long, from the stream pointed to by I<stream>, storing them at the location "
455 "given by I<ptr>."
456 msgstr ""
457 "الدالة B<fread>() تقرأ I<nmemb> عنصرًا من البيانات، كل منها بطول I<size> "
458 "بايت، من الدفق المشار إليه بـ I<stream>، وتخزنها في الموقع المعطى بـ I<ptr>."
459
460 #. type: Plain text
461 #: debian-trixie
462 msgid ""
463 "The function B<fwrite>() writes I<nmemb> items of data, each I<size> bytes "
464 "long, to the stream pointed to by I<stream>, obtaining them from the "
465 "location given by I<ptr>."
466 msgstr ""
467 "الدالة B<fwrite>() تكتب I<nmemb> عنصرًا من البيانات، كل منها بطول I<size> "
468 "بايت، إلى الدفق المشار إليه بـ I<stream>، وتستمدها من الموقع المعطى بـ "
469 "I<ptr>."
470
471 #. type: Plain text
472 #: debian-trixie fedora-44 fedora-rawhide
473 #, no-wrap
474 msgid ""
475 "$ B<./a.out>\n"
476 "ELF magic: 0x7f454c46\n"
477 "Class: 0x02\n"
478 msgstr ""
479 "$ B<./a.out>\n"
480 "ELF magic: 0x7f454c46\n"
481 "Class: 0x02\n"
482
483 #. type: Plain text
484 #: debian-trixie fedora-44 fedora-rawhide
485 #, no-wrap
486 msgid ""
487 "#include E<lt>stdio.hE<gt>\n"
488 "#include E<lt>stdlib.hE<gt>\n"
489 "\\&\n"
490 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
491 "\\&\n"
492 "int\n"
493 "main(void)\n"
494 "{\n"
495 " FILE *fp;\n"
496 " size_t ret;\n"
497 " unsigned char buffer[4];\n"
498 "\\&\n"
499 " fp = fopen(\"/bin/sh\", \"rb\");\n"
500 " if (!fp) {\n"
501 " perror(\"fopen\");\n"
502 " return EXIT_FAILURE;\n"
503 " }\n"
504 "\\&\n"
505 " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n"
506 " if (ret != ARRAY_SIZE(buffer)) {\n"
507 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
508 " exit(EXIT_FAILURE);\n"
509 " }\n"
510 "\\&\n"
511 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
512 " buffer[2], buffer[3]);\n"
513 "\\&\n"
514 " ret = fread(buffer, 1, 1, fp);\n"
515 " if (ret != 1) {\n"
516 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
517 " exit(EXIT_FAILURE);\n"
518 " }\n"
519 "\\&\n"
520 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
521 "\\&\n"
522 " fclose(fp);\n"
523 "\\&\n"
524 " exit(EXIT_SUCCESS);\n"
525 "}\n"
526 msgstr ""
527 "#include E<lt>stdio.hE<gt>\n"
528 "#include E<lt>stdlib.hE<gt>\n"
529 "\\&\n"
530 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
531 "\\&\n"
532 "int\n"
533 "main(void)\n"
534 "{\n"
535 " FILE *fp;\n"
536 " size_t ret;\n"
537 " unsigned char buffer[4];\n"
538 "\\&\n"
539 " fp = fopen(\"/bin/sh\", \"rb\");\n"
540 " if (!fp) {\n"
541 " perror(\"fopen\");\n"
542 " return EXIT_FAILURE;\n"
543 " }\n"
544 "\\&\n"
545 " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n"
546 " if (ret != ARRAY_SIZE(buffer)) {\n"
547 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
548 " exit(EXIT_FAILURE);\n"
549 " }\n"
550 "\\&\n"
551 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
552 " buffer[2], buffer[3]);\n"
553 "\\&\n"
554 " ret = fread(buffer, 1, 1, fp);\n"
555 " if (ret != 1) {\n"
556 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
557 " exit(EXIT_FAILURE);\n"
558 " }\n"
559 "\\&\n"
560 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
561 "\\&\n"
562 " fclose(fp);\n"
563 "\\&\n"
564 " exit(EXIT_SUCCESS);\n"
565 "}\n"
566
567 #. type: TH
568 #: fedora-44 fedora-rawhide
569 #, no-wrap
570 msgid "2024-11-17"
571 msgstr "17 نوفمبر 2024"
572
573 #. type: TH
574 #: fedora-44 fedora-rawhide
575 #, no-wrap
576 msgid "Linux man-pages 6.13"
577 msgstr "صفحات دليل لينكس 6.13"
578
579 #. type: Plain text
580 #: fedora-44 fedora-rawhide
581 #, no-wrap
582 msgid ""
583 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
584 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
585 "B< FILE *restrict >I<stream>B<);>\n"
586 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
587 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
588 "B< FILE *restrict >I<stream>B<);>\n"
589 msgstr ""
590 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
591 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
592 "B< FILE *restrict >I<stream>B<);>\n"
593 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
594 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
595 "B< FILE *restrict >I<stream>B<);>\n"
596
597 #. type: TH
598 #: mageia-cauldron
599 #, no-wrap
600 msgid "Linux man-pages 6.17"
601 msgstr "صفحات دليل لينكس 6.17"
602
603 #. type: TH
604 #: opensuse-leap-16-1 opensuse-tumbleweed
605 #, no-wrap
606 msgid "Linux man-pages (unreleased)"
607 msgstr "صفحات دليل لينكس (لم تصدر بعد)"