Debian Codegraph @

po/pl/man3/fread.3.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Adam Byrtek <[email protected]>, 1999.
5 # Andrzej Krzysztofowicz <[email protected]>, 2001.
6 # Robert Luberda <[email protected]>, 2017.
7 # Michał Kułach <[email protected]>, 2024, 2025, 2026.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-pl\n"
11 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
12 "PO-Revision-Date: 2026-03-25 06:01+0100\n"
13 "Last-Translator: Michał Kułach <[email protected]>\n"
14 "Language-Team: Polish <[email protected]>\n"
15 "Language: pl\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
20 "|| n%100>=20) ? 1 : 2);\n"
21 "X-Generator: Lokalize 25.04.0\n"
22
23 #. type: TH
24 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
25 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
26 #, no-wrap
27 msgid "fread"
28 msgstr "fread"
29
30 #. type: TH
31 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
32 #: opensuse-tumbleweed
33 #, no-wrap
34 msgid "2026-02-10"
35 msgstr "10 lutego 2026 r."
36
37 #. type: TH
38 #: archlinux debian-unstable
39 #, no-wrap
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.18"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NAZWA"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "fread, fwrite - binary stream input/output"
54 msgstr "fread, fwrite - odczytuje/zapisuje strumień binarny"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTEKA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SKŁADNIA"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>stdio.hE<gt>>\n"
81 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<size_t fread(>size_t size, size_t n;\n"
89 "B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
90 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
91 "B< FILE *restrict >I<stream>B<);>\n"
92 "B<size_t fwrite(>size_t size, size_t n;\n"
93 "B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
94 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
95 "B< FILE *restrict >I<stream>B<);>\n"
96 msgstr ""
97 "B<size_t fread(>size_t size, size_t n;\n"
98 "B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
99 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
100 "B< FILE *restrict >I<stream>B<);>\n"
101 "B<size_t fwrite(>size_t size, size_t n;\n"
102 "B< const void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
103 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
104 "B< FILE *restrict >I<stream>B<);>\n"
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr "OPIS"
112
113 #. type: Plain text
114 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
115 #: opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "The function B<fread>() reads I<n> items of data, each I<size> bytes long, "
118 "from the stream pointed to by I<stream>, storing them at the location given "
119 "by I<ptr>."
120 msgstr ""
121 "Funkcja B<fread>() odczytuje I<n> elementów danych, każdy o rozmiarze "
122 "I<size> bajtów, ze strumienia wskazywanego przez I<stream>, do miejsca w "
123 "pamięci wskazywanego przez I<ptr>."
124
125 #. type: Plain text
126 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
127 #: opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The function B<fwrite>() writes I<n> items of data, each I<size> bytes "
130 "long, to the stream pointed to by I<stream>, obtaining them from the "
131 "location given by I<ptr>."
132 msgstr ""
133 "Funkcja B<fwrite>() zapisuje I<n> elementów danych, każdy o rozmiarze "
134 "I<size> bajtów, do strumienia wskazywanego przez I<stream>, pobierając je z "
135 "miejsca w pamięci wskazywanego przez I<ptr>."
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid "For nonlocking counterparts, see B<unlocked_stdio>(3)."
141 msgstr ""
142 "Informacje o nieblokujących odpowiednikach znajdują się w "
143 "B<unlocked_stdio>(3)."
144
145 #. type: SH
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "RETURN VALUE"
150 msgstr "WARTOŚĆ ZWRACANA"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "On success, B<fread>() and B<fwrite>() return the number of items read or "
157 "written. This number equals the number of bytes transferred only when "
158 "I<size> is 1. If an error occurs, or the end of the file is reached, the "
159 "return value is a short item count (or zero)."
160 msgstr ""
161 "Funkcje B<fread>() oraz B<fwrite>(), jeśli się powiodą, zwracają liczbę "
162 "faktycznie odczytanych lub zapisanych elementów. Ta liczba jest równa liczne "
163 "przesłanych bajtów tylko wtedy, gdy I<size> wynosi 1. Jeśli wystąpi błąd lub "
164 "osiągnięty zostanie koniec pliku, zwracana jest zmniejszona liczba elementów "
165 "(lub zero)."
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "The file position indicator for the stream is advanced by the number of "
172 "bytes successfully read or written."
173 msgstr ""
174 "Wskaźnik pozycji pliku jest przesuwany o liczbę pomyślnie odczytanych lub "
175 "zapisanych bajtów."
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid ""
181 "B<fread>() does not distinguish between end-of-file and error, and callers "
182 "must use B<feof>(3) and B<ferror>(3) to determine which occurred."
183 msgstr ""
184 "Funkcja B<fread>() nie rozróżnia pomiędzy końcem pliku a błędem, należy w "
185 "tym celu wywołać funkcję B<feof>(3) oraz B<ferror>(3)."
186
187 #. type: SH
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "ATTRIBUTES"
192 msgstr "ATRYBUTY"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "For an explanation of the terms used in this section, see B<attributes>(7)."
199 msgstr ""
200 "Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku "
201 "B<attributes>(7)."
202
203 #. type: tbl table
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "Interface"
208 msgstr "Interfejs"
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "Attribute"
215 msgstr "Atrybut"
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "Value"
222 msgstr "Wartość"
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid ".na\n"
229 msgstr ".na\n"
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid ".nh\n"
236 msgstr ".nh\n"
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid ""
243 "B<fread>(),\n"
244 "B<fwrite>()"
245 msgstr ""
246 "B<fread>(),\n"
247 "B<fwrite>()"
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "Thread safety"
254 msgstr "Bezpieczeństwo wątkowe"
255
256 #. type: tbl table
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "MT-Safe"
261 msgstr "MT-bezpieczne"
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 "STANDARDY"
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 "C11, POSIX.1-2008."
274 msgstr "C11, POSIX.1-2008."
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 "HISTORIA"
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 "POSIX.1-2001, C89."
287 msgstr "POSIX.1-2001, C89."
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 "EXAMPLES"
294 msgstr "PRZYKŁADY"
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 "The program below demonstrates the use of B<fread>() by parsing /bin/sh ELF "
301 "executable in binary mode and printing its magic and class:"
302 msgstr ""
303 "Program poniżej demonstruje użycie B<fread>(), przez analizę pliku "
304 "wykonywalnego ELF /bin/sh w trybie binarnym i wypisanie jego magii i klasy:"
305
306 #. type: Plain text
307 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
308 #: opensuse-tumbleweed
309 #, no-wrap
310 msgid ""
311 "$B< ./a.out>;\n"
312 "ELF magic: 0x7f454c46\n"
313 "Class: 0x02\n"
314 msgstr ""
315 "$B< ./a.out>;\n"
316 "Magia ELF: 0x7f454c46\n"
317 "Klasa: 0x02\n"
318
319 #. type: SS
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "Program source"
324 msgstr "Kod źródłowy programu"
325
326 #. type: Plain text
327 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
328 #: opensuse-tumbleweed
329 #, no-wrap
330 msgid ""
331 "#include E<lt>stdcountof.hE<gt>\n"
332 "#include E<lt>stdio.hE<gt>\n"
333 "#include E<lt>stdlib.hE<gt>\n"
334 "\\&\n"
335 "int\n"
336 "main(void)\n"
337 "{\n"
338 " FILE *fp;\n"
339 " size_t ret;\n"
340 " unsigned char buffer[4];\n"
341 "\\&\n"
342 " fp = fopen(\"/bin/sh\", \"rb\");\n"
343 " if (!fp) {\n"
344 " perror(\"fopen\");\n"
345 " return EXIT_FAILURE;\n"
346 " }\n"
347 "\\&\n"
348 " ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n"
349 " if (ret != countof(buffer)) {\n"
350 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
351 " exit(EXIT_FAILURE);\n"
352 " }\n"
353 "\\&\n"
354 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
355 " buffer[2], buffer[3]);\n"
356 "\\&\n"
357 " ret = fread(buffer, 1, 1, fp);\n"
358 " if (ret != 1) {\n"
359 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
360 " exit(EXIT_FAILURE);\n"
361 " }\n"
362 "\\&\n"
363 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
364 "\\&\n"
365 " fclose(fp);\n"
366 "\\&\n"
367 " exit(EXIT_SUCCESS);\n"
368 "}\n"
369 msgstr ""
370 "#include E<lt>stdcountof.hE<gt>\n"
371 "#include E<lt>stdio.hE<gt>\n"
372 "#include E<lt>stdlib.hE<gt>\n"
373 "\\&\n"
374 "int\n"
375 "main(void)\n"
376 "{\n"
377 " FILE *fp;\n"
378 " size_t ret;\n"
379 " unsigned char buffer[4];\n"
380 "\\&\n"
381 " fp = fopen(\"/bin/sh\", \"rb\");\n"
382 " if (!fp) {\n"
383 " perror(\"fopen\");\n"
384 " return EXIT_FAILURE;\n"
385 " }\n"
386 "\\&\n"
387 " ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n"
388 " if (ret != countof(buffer)) {\n"
389 " fprintf(stderr, \"fread() zawiodło: %zu\\[rs]n\", ret);\n"
390 " exit(EXIT_FAILURE);\n"
391 " }\n"
392 "\\&\n"
393 " printf(\"Magia ELF: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
394 " buffer[2], buffer[3]);\n"
395 "\\&\n"
396 " ret = fread(buffer, 1, 1, fp);\n"
397 " if (ret != 1) {\n"
398 " fprintf(stderr, \"fread() zawiodło: %zu\\[rs]n\", ret);\n"
399 " exit(EXIT_FAILURE);\n"
400 " }\n"
401 "\\&\n"
402 " printf(\"Klasa: %#04x\\[rs]n\", buffer[0]);\n"
403 "\\&\n"
404 " fclose(fp);\n"
405 "\\&\n"
406 " exit(EXIT_SUCCESS);\n"
407 "}\n"
408
409 #. SRC END
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "SEE ALSO"
415 msgstr "ZOBACZ TAKŻE"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)"
421 msgstr ""
422 "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)"
423
424 #. type: TH
425 #: debian-trixie
426 #, no-wrap
427 msgid "2024-06-15"
428 msgstr "15 czerwca 2024 r."
429
430 #. type: TH
431 #: debian-trixie
432 #, no-wrap
433 msgid "Linux man-pages 6.9.1"
434 msgstr "Linux man-pages 6.9.1"
435
436 #. type: Plain text
437 #: debian-trixie
438 msgid "Standard C library (I<libc>, I<-lc>)"
439 msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)"
440
441 #. type: Plain text
442 #: debian-trixie
443 #, no-wrap
444 msgid ""
445 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
446 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
447 "B< FILE *restrict >I<stream>B<);>\n"
448 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
449 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
450 "B< FILE *restrict >I<stream>B<);>\n"
451 msgstr ""
452 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
453 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
454 "B< FILE *restrict >I<stream>B<);>\n"
455 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
456 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
457 "B< FILE *restrict >I<stream>B<);>\n"
458
459 #. type: Plain text
460 #: debian-trixie
461 msgid ""
462 "The function B<fread>() reads I<nmemb> items of data, each I<size> bytes "
463 "long, from the stream pointed to by I<stream>, storing them at the location "
464 "given by I<ptr>."
465 msgstr ""
466 "Funkcja B<fread>() odczytuje I<nmemb> elementów danych, każdy o rozmiarze "
467 "I<size> bajtów, ze strumienia wskazywanego przez I<stream>, do miejsca w "
468 "pamięci wskazywanego przez I<ptr>."
469
470 #. type: Plain text
471 #: debian-trixie
472 msgid ""
473 "The function B<fwrite>() writes I<nmemb> items of data, each I<size> bytes "
474 "long, to the stream pointed to by I<stream>, obtaining them from the "
475 "location given by I<ptr>."
476 msgstr ""
477 "Funkcja B<fwrite>() zapisuje I<nmemb> elementów danych, każdy o rozmiarze "
478 "I<size> bajtów, do strumienia wskazywanego przez I<stream>, pobierając je z "
479 "miejsca w pamięci wskazywanego przez I<ptr>."
480
481 #. type: Plain text
482 #: debian-trixie fedora-44 fedora-rawhide
483 #, no-wrap
484 msgid ""
485 "$ B<./a.out>\n"
486 "ELF magic: 0x7f454c46\n"
487 "Class: 0x02\n"
488 msgstr ""
489 "$ B<./a.out>\n"
490 "Magia ELF: 0x7f454c46\n"
491 "Klasa: 0x02\n"
492
493 #. type: Plain text
494 #: debian-trixie fedora-44 fedora-rawhide
495 #, no-wrap
496 msgid ""
497 "#include E<lt>stdio.hE<gt>\n"
498 "#include E<lt>stdlib.hE<gt>\n"
499 "\\&\n"
500 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
501 "\\&\n"
502 "int\n"
503 "main(void)\n"
504 "{\n"
505 " FILE *fp;\n"
506 " size_t ret;\n"
507 " unsigned char buffer[4];\n"
508 "\\&\n"
509 " fp = fopen(\"/bin/sh\", \"rb\");\n"
510 " if (!fp) {\n"
511 " perror(\"fopen\");\n"
512 " return EXIT_FAILURE;\n"
513 " }\n"
514 "\\&\n"
515 " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n"
516 " if (ret != ARRAY_SIZE(buffer)) {\n"
517 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
518 " exit(EXIT_FAILURE);\n"
519 " }\n"
520 "\\&\n"
521 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
522 " buffer[2], buffer[3]);\n"
523 "\\&\n"
524 " ret = fread(buffer, 1, 1, fp);\n"
525 " if (ret != 1) {\n"
526 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
527 " exit(EXIT_FAILURE);\n"
528 " }\n"
529 "\\&\n"
530 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
531 "\\&\n"
532 " fclose(fp);\n"
533 "\\&\n"
534 " exit(EXIT_SUCCESS);\n"
535 "}\n"
536 msgstr ""
537 "#include E<lt>stdio.hE<gt>\n"
538 "#include E<lt>stdlib.hE<gt>\n"
539 "\\&\n"
540 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
541 "\\&\n"
542 "int\n"
543 "main(void)\n"
544 "{\n"
545 " FILE *fp;\n"
546 " size_t ret;\n"
547 " unsigned char buffer[4];\n"
548 "\\&\n"
549 " fp = fopen(\"/bin/sh\", \"rb\");\n"
550 " if (!fp) {\n"
551 " perror(\"fopen\");\n"
552 " return EXIT_FAILURE;\n"
553 " }\n"
554 "\\&\n"
555 " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n"
556 " if (ret != ARRAY_SIZE(buffer)) {\n"
557 " fprintf(stderr, \"fread() zawiodło: %zu\\[rs]n\", ret);\n"
558 " exit(EXIT_FAILURE);\n"
559 " }\n"
560 "\\&\n"
561 " printf(\"Magia ELF: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
562 " buffer[2], buffer[3]);\n"
563 "\\&\n"
564 " ret = fread(buffer, 1, 1, fp);\n"
565 " if (ret != 1) {\n"
566 " fprintf(stderr, \"fread() zawiodło: %zu\\[rs]n\", ret);\n"
567 " exit(EXIT_FAILURE);\n"
568 " }\n"
569 "\\&\n"
570 " printf(\"Klasa: %#04x\\[rs]n\", buffer[0]);\n"
571 "\\&\n"
572 " fclose(fp);\n"
573 "\\&\n"
574 " exit(EXIT_SUCCESS);\n"
575 "}\n"
576
577 #. type: TH
578 #: fedora-44 fedora-rawhide
579 #, no-wrap
580 msgid "2024-11-17"
581 msgstr "17 listopada 2024 r."
582
583 #. type: TH
584 #: fedora-44 fedora-rawhide
585 #, no-wrap
586 msgid "Linux man-pages 6.13"
587 msgstr "Linux man-pages 6.13"
588
589 #. type: Plain text
590 #: fedora-44 fedora-rawhide
591 #, no-wrap
592 msgid ""
593 "B<size_t fread(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 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
597 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
598 "B< FILE *restrict >I<stream>B<);>\n"
599 msgstr ""
600 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
601 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
602 "B< FILE *restrict >I<stream>B<);>\n"
603 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
604 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
605 "B< FILE *restrict >I<stream>B<);>\n"
606
607 #. type: TH
608 #: mageia-cauldron
609 #, no-wrap
610 msgid "Linux man-pages 6.17"
611 msgstr "Linux man-pages 6.17"
612
613 #. type: TH
614 #: opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "Linux man-pages (unreleased)"
617 msgstr "Linux man-pages (niewydane)"