Debian Codegraph @

templates/man3/fread.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "fread"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-10"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "fread, fwrite - binary stream input/output"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>stdio.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
81 #: opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<size_t fread(>size_t size, size_t n;\n"
85 "B< void >I<ptr>B<[restrict >I<size>B< * >I<n>B<],>\n"
86 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
87 "B< FILE *restrict >I<stream>B<);>\n"
88 "B<size_t fwrite(>size_t size, size_t n;\n"
89 "B< const 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 msgstr ""
93
94 #. type: SH
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid "DESCRIPTION"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
103 #: opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "The function B<fread>() reads I<n> items of data, each I<size> bytes long, "
106 "from the stream pointed to by I<stream>, storing them at the location given "
107 "by I<ptr>."
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
112 #: opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "The function B<fwrite>() writes I<n> items of data, each I<size> bytes "
115 "long, to the stream pointed to by I<stream>, obtaining them from the "
116 "location given by I<ptr>."
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid "For nonlocking counterparts, see B<unlocked_stdio>(3)."
123 msgstr ""
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "RETURN VALUE"
130 msgstr ""
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 ""
136 "On success, B<fread>() and B<fwrite>() return the number of items read or "
137 "written. This number equals the number of bytes transferred only when "
138 "I<size> is 1. If an error occurs, or the end of the file is reached, the "
139 "return value is a short item count (or zero)."
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The file position indicator for the stream is advanced by the number of "
147 "bytes successfully read or written."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "B<fread>() does not distinguish between end-of-file and error, and callers "
155 "must use B<feof>(3) and B<ferror>(3) to determine which occurred."
156 msgstr ""
157
158 #. type: SH
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "ATTRIBUTES"
163 msgstr ""
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 ""
169 "For an explanation of the terms used in this section, see B<attributes>(7)."
170 msgstr ""
171
172 #. type: tbl table
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "Interface"
177 msgstr ""
178
179 #. type: tbl table
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "Attribute"
184 msgstr ""
185
186 #. type: tbl table
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "Value"
191 msgstr ""
192
193 #. type: tbl table
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid ".na\n"
198 msgstr ""
199
200 #. type: tbl table
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid ".nh\n"
205 msgstr ""
206
207 #. type: tbl table
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid ""
212 "B<fread>(),\n"
213 "B<fwrite>()"
214 msgstr ""
215
216 #. type: tbl table
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "Thread safety"
221 msgstr ""
222
223 #. type: tbl table
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "MT-Safe"
228 msgstr ""
229
230 #. type: SH
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 #, no-wrap
234 msgid "STANDARDS"
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid "C11, POSIX.1-2008."
241 msgstr ""
242
243 #. type: SH
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "HISTORY"
248 msgstr ""
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 "POSIX.1-2001, C89."
254 msgstr ""
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 "EXAMPLES"
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 "The program below demonstrates the use of B<fread>() by parsing /bin/sh ELF "
268 "executable in binary mode and printing its magic and class:"
269 msgstr ""
270
271 #. type: Plain text
272 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
273 #: opensuse-tumbleweed
274 #, no-wrap
275 msgid ""
276 "$B< ./a.out>;\n"
277 "ELF magic: 0x7f454c46\n"
278 "Class: 0x02\n"
279 msgstr ""
280
281 #. type: SS
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "Program source"
286 msgstr ""
287
288 #. type: Plain text
289 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
290 #: opensuse-tumbleweed
291 #, no-wrap
292 msgid ""
293 "#include E<lt>stdcountof.hE<gt>\n"
294 "#include E<lt>stdio.hE<gt>\n"
295 "#include E<lt>stdlib.hE<gt>\n"
296 "\\&\n"
297 "int\n"
298 "main(void)\n"
299 "{\n"
300 " FILE *fp;\n"
301 " size_t ret;\n"
302 " unsigned char buffer[4];\n"
303 "\\&\n"
304 " fp = fopen(\"/bin/sh\", \"rb\");\n"
305 " if (!fp) {\n"
306 " perror(\"fopen\");\n"
307 " return EXIT_FAILURE;\n"
308 " }\n"
309 "\\&\n"
310 " ret = fread(buffer, sizeof(*buffer), countof(buffer), fp);\n"
311 " if (ret != countof(buffer)) {\n"
312 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
313 " exit(EXIT_FAILURE);\n"
314 " }\n"
315 "\\&\n"
316 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
317 " buffer[2], buffer[3]);\n"
318 "\\&\n"
319 " ret = fread(buffer, 1, 1, fp);\n"
320 " if (ret != 1) {\n"
321 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
322 " exit(EXIT_FAILURE);\n"
323 " }\n"
324 "\\&\n"
325 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
326 "\\&\n"
327 " fclose(fp);\n"
328 "\\&\n"
329 " exit(EXIT_SUCCESS);\n"
330 "}\n"
331 msgstr ""
332
333 #. SRC END
334 #. type: SH
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid "SEE ALSO"
339 msgstr ""
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid "B<read>(2), B<write>(2), B<feof>(3), B<ferror>(3), B<unlocked_stdio>(3)"
345 msgstr ""
346
347 #. type: TH
348 #: debian-trixie
349 #, no-wrap
350 msgid "2024-06-15"
351 msgstr ""
352
353 #. type: TH
354 #: debian-trixie
355 #, no-wrap
356 msgid "Linux man-pages 6.9.1"
357 msgstr ""
358
359 #. type: Plain text
360 #: debian-trixie
361 msgid "Standard C library (I<libc>, I<-lc>)"
362 msgstr ""
363
364 #. type: Plain text
365 #: debian-trixie
366 #, no-wrap
367 msgid ""
368 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
369 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
370 "B< FILE *restrict >I<stream>B<);>\n"
371 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<nmemb>B<],>\n"
372 "B< size_t >I<size>B<, size_t >I<nmemb>B<,>\n"
373 "B< FILE *restrict >I<stream>B<);>\n"
374 msgstr ""
375
376 #. type: Plain text
377 #: debian-trixie
378 msgid ""
379 "The function B<fread>() reads I<nmemb> items of data, each I<size> bytes "
380 "long, from the stream pointed to by I<stream>, storing them at the location "
381 "given by I<ptr>."
382 msgstr ""
383
384 #. type: Plain text
385 #: debian-trixie
386 msgid ""
387 "The function B<fwrite>() writes I<nmemb> items of data, each I<size> bytes "
388 "long, to the stream pointed to by I<stream>, obtaining them from the "
389 "location given by I<ptr>."
390 msgstr ""
391
392 #. type: Plain text
393 #: debian-trixie fedora-44 fedora-rawhide
394 #, no-wrap
395 msgid ""
396 "$ B<./a.out>\n"
397 "ELF magic: 0x7f454c46\n"
398 "Class: 0x02\n"
399 msgstr ""
400
401 #. type: Plain text
402 #: debian-trixie fedora-44 fedora-rawhide
403 #, no-wrap
404 msgid ""
405 "#include E<lt>stdio.hE<gt>\n"
406 "#include E<lt>stdlib.hE<gt>\n"
407 "\\&\n"
408 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
409 "\\&\n"
410 "int\n"
411 "main(void)\n"
412 "{\n"
413 " FILE *fp;\n"
414 " size_t ret;\n"
415 " unsigned char buffer[4];\n"
416 "\\&\n"
417 " fp = fopen(\"/bin/sh\", \"rb\");\n"
418 " if (!fp) {\n"
419 " perror(\"fopen\");\n"
420 " return EXIT_FAILURE;\n"
421 " }\n"
422 "\\&\n"
423 " ret = fread(buffer, sizeof(*buffer), ARRAY_SIZE(buffer), fp);\n"
424 " if (ret != ARRAY_SIZE(buffer)) {\n"
425 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
426 " exit(EXIT_FAILURE);\n"
427 " }\n"
428 "\\&\n"
429 " printf(\"ELF magic: %#04x%02x%02x%02x\\[rs]n\", buffer[0], buffer[1],\n"
430 " buffer[2], buffer[3]);\n"
431 "\\&\n"
432 " ret = fread(buffer, 1, 1, fp);\n"
433 " if (ret != 1) {\n"
434 " fprintf(stderr, \"fread() failed: %zu\\[rs]n\", ret);\n"
435 " exit(EXIT_FAILURE);\n"
436 " }\n"
437 "\\&\n"
438 " printf(\"Class: %#04x\\[rs]n\", buffer[0]);\n"
439 "\\&\n"
440 " fclose(fp);\n"
441 "\\&\n"
442 " exit(EXIT_SUCCESS);\n"
443 "}\n"
444 msgstr ""
445
446 #. type: TH
447 #: fedora-44 fedora-rawhide
448 #, no-wrap
449 msgid "2024-11-17"
450 msgstr ""
451
452 #. type: TH
453 #: fedora-44 fedora-rawhide
454 #, no-wrap
455 msgid "Linux man-pages 6.13"
456 msgstr ""
457
458 #. type: Plain text
459 #: fedora-44 fedora-rawhide
460 #, no-wrap
461 msgid ""
462 "B<size_t fread(void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
463 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
464 "B< FILE *restrict >I<stream>B<);>\n"
465 "B<size_t fwrite(const void >I<ptr>B<[restrict .>I<size>B< * .>I<n>B<],>\n"
466 "B< size_t >I<size>B<, size_t >I<n>B<,>\n"
467 "B< FILE *restrict >I<stream>B<);>\n"
468 msgstr ""
469
470 #. type: TH
471 #: mageia-cauldron
472 #, no-wrap
473 msgid "Linux man-pages 6.17"
474 msgstr ""
475
476 #. type: TH
477 #: opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "Linux man-pages (unreleased)"
480 msgstr ""