Debian Codegraph @

templates/man3/fopen.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 "fopen"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-09-21"
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 "fopen, fdopen, freopen - stream open functions"
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<FILE *fopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<);>\n"
85 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
86 "B<FILE *freopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<,>\n"
87 "B< FILE *restrict >I<stream>B<);>\n"
88 msgstr ""
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 msgid ""
94 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid "B<fdopen>():"
101 msgstr ""
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 #, no-wrap
107 msgid " _POSIX_C_SOURCE\n"
108 msgstr ""
109
110 #. type: SH
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid "DESCRIPTION"
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
119 #: opensuse-tumbleweed
120 msgid ""
121 "The B<fopen>() function opens the file whose name is the string pointed to "
122 "by I<path> and associates a stream with it."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The argument I<mode> points to a string beginning with one of the following "
130 "sequences (possibly followed by additional characters, as described below):"
131 msgstr ""
132
133 #. type: TP
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "B<r>"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "Open text file for reading. The stream is positioned at the beginning of "
145 "the file."
146 msgstr ""
147
148 #. type: TP
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "B<r+>"
153 msgstr ""
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 "Open for reading and writing. The stream is positioned at the beginning of "
160 "the file."
161 msgstr ""
162
163 #. type: TP
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "B<w>"
168 msgstr ""
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "Truncate file to zero length or create text file for writing. The stream is "
175 "positioned at the beginning of the file."
176 msgstr ""
177
178 #. type: TP
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 #, no-wrap
182 msgid "B<w+>"
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "Open for reading and writing. The file is created if it does not exist, "
190 "otherwise it is truncated. The stream is positioned at the beginning of the "
191 "file."
192 msgstr ""
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "B<a>"
199 msgstr ""
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 "Open for appending (writing at end of file). The file is created if it does "
206 "not exist. The stream is positioned at the end of the file."
207 msgstr ""
208
209 #. type: TP
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<a+>"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "Open for reading and appending (writing at end of file). The file is "
221 "created if it does not exist. Output is always appended to the end of the "
222 "file. POSIX is silent on what the initial read position is when using this "
223 "mode. For glibc, the initial file position for reading is at the beginning "
224 "of the file, but for Android/BSD/MacOS, the initial file position for "
225 "reading is at the end of the file."
226 msgstr ""
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "The I<mode> string can also include the letter \\[aq]b\\[aq] either as a "
233 "last character or as a character between the characters in any of the two-"
234 "character strings described above. This is strictly for compatibility with "
235 "ISO C and has no effect; the \\[aq]b\\[aq] is ignored on all POSIX "
236 "conforming systems, including Linux. (Other systems may treat text files "
237 "and binary files differently, and adding the \\[aq]b\\[aq] may be a good "
238 "idea if you do I/O to a binary file and expect that your program may be "
239 "ported to non-UNIX environments.)"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid "See NOTES below for details of glibc extensions for I<mode>."
246 msgstr ""
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 ""
252 "Any created file will have the mode B<S_IRUSR> | B<S_IWUSR> | B<S_IRGRP> | "
253 "B<S_IWGRP> | B<S_IROTH> | B<S_IWOTH> (0666), as modified by the process's "
254 "umask value (see B<umask>(2))."
255 msgstr ""
256
257 #. type: Plain text
258 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
259 #: opensuse-tumbleweed
260 msgid ""
261 "Reads and writes may be intermixed on read/write streams in any order. Note "
262 "that ANSI C requires that a file positioning function intervene between "
263 "output and input, unless an input operation encounters end-of-file. (If "
264 "this condition is not met, then a read is allowed to return the result of "
265 "writes other than the most recent.) Therefore it is good practice (and "
266 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
267 "B<fsetpos>(3) operation between write and read operations on such a "
268 "stream. This operation may be an apparent no-op (as in I<fseek(...,\\ 0L,\\ "
269 "SEEK_CUR)> called for its synchronizing side effect)."
270 msgstr ""
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "Opening a file in append mode (B<a> as the first character of I<mode>) "
277 "causes all subsequent write operations to this stream to occur at end-of-"
278 "file, as if preceded by the call:"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "fseek(stream, 0, SEEK_END);\n"
286 msgstr ""
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "The file descriptor associated with the stream is opened as if by a call to "
293 "B<open>(2) with the following flags:"
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 "fopen() mode"
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 "open() flags"
308 msgstr ""
309
310 #. type: tbl table
311 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
312 #: opensuse-tumbleweed
313 #, no-wrap
314 msgid "r"
315 msgstr ""
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 "O_RDONLY"
322 msgstr ""
323
324 #. type: tbl table
325 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
326 #: opensuse-tumbleweed
327 #, no-wrap
328 msgid "w"
329 msgstr ""
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "O_WRONLY | O_CREAT | O_TRUNC"
336 msgstr ""
337
338 #. type: tbl table
339 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
340 #: opensuse-tumbleweed
341 #, no-wrap
342 msgid "a"
343 msgstr ""
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "O_WRONLY | O_CREAT | O_APPEND"
350 msgstr ""
351
352 #. type: tbl table
353 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
354 #: opensuse-tumbleweed
355 #, no-wrap
356 msgid "r+"
357 msgstr ""
358
359 #. type: tbl table
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "O_RDWR"
364 msgstr ""
365
366 #. type: tbl table
367 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
368 #: opensuse-tumbleweed
369 #, no-wrap
370 msgid "w+"
371 msgstr ""
372
373 #. type: tbl table
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "O_RDWR | O_CREAT | O_TRUNC"
378 msgstr ""
379
380 #. type: tbl table
381 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
382 #: opensuse-tumbleweed
383 #, no-wrap
384 msgid "a+"
385 msgstr ""
386
387 #. type: tbl table
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "O_RDWR | O_CREAT | O_APPEND"
392 msgstr ""
393
394 #. type: SS
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "fdopen()"
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "The B<fdopen>() function associates a stream with the existing file "
406 "descriptor, I<fd>. The I<mode> of the stream (one of the values \"r\", \"r+"
407 "\", \"w\", \"w+\", \"a\", \"a+\") must be compatible with the mode of the "
408 "file descriptor. The file position indicator of the new stream is set to "
409 "that belonging to I<fd>, and the error and end-of-file indicators are "
410 "cleared. Modes \"w\" or \"w+\" do not cause truncation of the file. The "
411 "file descriptor is not dup'ed, and will be closed when the stream created by "
412 "B<fdopen>() is closed. The result of applying B<fdopen>() to a shared "
413 "memory object is undefined."
414 msgstr ""
415
416 #. type: SS
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "freopen()"
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
425 #: opensuse-tumbleweed
426 msgid ""
427 "The B<freopen>() function opens the file whose name is the string pointed "
428 "to by I<path> and associates the stream pointed to by I<stream> with it. "
429 "The original stream (if it exists) is closed. The I<mode> argument is used "
430 "just as in the B<fopen>() function."
431 msgstr ""
432
433 #. type: Plain text
434 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
435 #: opensuse-tumbleweed
436 msgid ""
437 "If I<path> is a null pointer, B<freopen>() changes the mode of the stream "
438 "to that specified in I<mode>; that is, B<freopen>() reopens the pathname "
439 "that is associated with the stream. The specification for this behavior was "
440 "added in the C99 standard, which says:"
441 msgstr ""
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "In this case, the file descriptor associated with the stream need not be "
448 "closed if the call to B<freopen>() succeeds. It is implementation-defined "
449 "which changes of mode are permitted (if any), and under what circumstances."
450 msgstr ""
451
452 #. type: Plain text
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 msgid ""
456 "The primary use of the B<freopen>() function is to change the file "
457 "associated with a standard text stream (I<stderr>, I<stdin>, or I<stdout>)."
458 msgstr ""
459
460 #. type: SH
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "RETURN VALUE"
465 msgstr ""
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "Upon successful completion B<fopen>(), B<fdopen>(), and B<freopen>() return "
472 "a I<FILE> pointer. Otherwise, NULL is returned and I<errno> is set to "
473 "indicate the error."
474 msgstr ""
475
476 #. type: SH
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "ERRORS"
481 msgstr ""
482
483 #. type: TP
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "B<EINVAL>"
488 msgstr ""
489
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid ""
494 "The I<mode> provided to B<fopen>(), B<fdopen>(), or B<freopen>() was "
495 "invalid."
496 msgstr ""
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "The B<fopen>(), B<fdopen>(), and B<freopen>() functions may also fail and "
503 "set I<errno> for any of the errors specified for the routine B<malloc>(3)."
504 msgstr ""
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid ""
510 "The B<fopen>() function may also fail and set I<errno> for any of the "
511 "errors specified for the routine B<open>(2)."
512 msgstr ""
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "The B<fdopen>() function may also fail and set I<errno> for any of the "
519 "errors specified for the routine B<fcntl>(2)."
520 msgstr ""
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid ""
526 "The B<freopen>() function may also fail and set I<errno> for any of the "
527 "errors specified for the routines B<open>(2), B<fclose>(3), and B<fflush>(3)."
528 msgstr ""
529
530 #. type: SH
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "ATTRIBUTES"
535 msgstr ""
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "For an explanation of the terms used in this section, see B<attributes>(7)."
542 msgstr ""
543
544 #. type: tbl table
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "Interface"
549 msgstr ""
550
551 #. type: tbl table
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "Attribute"
556 msgstr ""
557
558 #. type: tbl table
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "Value"
563 msgstr ""
564
565 #. type: tbl table
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid ".na\n"
570 msgstr ""
571
572 #. type: tbl table
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid ".nh\n"
577 msgstr ""
578
579 #. type: tbl table
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid ""
584 "B<fopen>(),\n"
585 "B<fdopen>(),\n"
586 "B<freopen>()"
587 msgstr ""
588
589 #. type: tbl table
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 #, no-wrap
593 msgid "Thread safety"
594 msgstr ""
595
596 #. type: tbl table
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "MT-Safe"
601 msgstr ""
602
603 #. type: SH
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "STANDARDS"
608 msgstr ""
609
610 #. type: TP
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "B<fopen>()"
615 msgstr ""
616
617 #. type: TQ
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "B<freopen>()"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid "C11, POSIX.1-2008."
628 msgstr ""
629
630 #. type: TP
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "B<fdopen>()"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid "POSIX.1-2008."
641 msgstr ""
642
643 #. type: SH
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 #, no-wrap
647 msgid "HISTORY"
648 msgstr ""
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 msgid "POSIX.1-2001, C89."
654 msgstr ""
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid "POSIX.1-2001."
660 msgstr ""
661
662 #. type: SH
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 #, no-wrap
666 msgid "NOTES"
667 msgstr ""
668
669 #. type: SS
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 #, no-wrap
673 msgid "glibc notes"
674 msgstr ""
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "The GNU C library allows the following extensions for the string specified "
681 "in I<mode>:"
682 msgstr ""
683
684 #. type: TP
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "B<c> (since glibc 2.3.3)"
689 msgstr ""
690
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 msgid ""
695 "Do not make the open operation, or subsequent read and write operations, "
696 "thread cancelation points. This flag is ignored for B<fdopen>()."
697 msgstr ""
698
699 #. type: TP
700 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
701 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
702 #, no-wrap
703 msgid "B<e> (since glibc 2.7)"
704 msgstr ""
705
706 #. type: Plain text
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 msgid ""
710 "Open the file with the B<O_CLOEXEC> flag. See B<open>(2) for more "
711 "information. This flag is ignored for B<fdopen>()."
712 msgstr ""
713
714 #. type: TP
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid "B<m> (since glibc 2.3)"
719 msgstr ""
720
721 #. As at glibc 2.4:
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 msgid ""
726 "Attempt to access the file using B<mmap>(2), rather than I/O system calls "
727 "(B<read>(2), B<write>(2)). Currently, use of B<mmap>(2) is attempted only "
728 "for a file opened for reading."
729 msgstr ""
730
731 #. type: TP
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid "B<x>"
736 msgstr ""
737
738 #. Since glibc 2.0?
739 #. FIXME . C11 specifies this flag
740 #. type: Plain text
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 msgid ""
744 "Open the file exclusively (like the B<O_EXCL> flag of B<open>(2)). If the "
745 "file already exists, B<fopen>() fails, and sets I<errno> to B<EEXIST>. "
746 "This flag is ignored for B<fdopen>()."
747 msgstr ""
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "In addition to the above characters, B<fopen>() and B<freopen>() support "
754 "the following syntax in I<mode>:"
755 msgstr ""
756
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 msgid "B< ,ccs=>I<string>"
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 msgid ""
767 "The given I<string> is taken as the name of a coded character set and the "
768 "stream is marked as wide-oriented. Thereafter, internal conversion "
769 "functions convert I/O to and from the character set I<string>. If the "
770 "B<,ccs=>I<string> syntax is not specified, then the wide-orientation of the "
771 "stream is determined by the first file operation. If that operation is a "
772 "wide-character operation, the stream is marked wide-oriented, and functions "
773 "to convert to the coded character set are loaded."
774 msgstr ""
775
776 #. type: SH
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 #, no-wrap
780 msgid "BUGS"
781 msgstr ""
782
783 #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=12685
784 #. type: Plain text
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 msgid ""
788 "When parsing for individual flag characters in I<mode> (i.e., the characters "
789 "preceding the \"ccs\" specification), the glibc implementation of "
790 "B<fopen>() and B<freopen>() limits the number of characters examined in "
791 "I<mode> to 7 (or, before glibc 2.14, to 6, which was not enough to include "
792 "possible specifications such as \"rb+cmxe\"). The current implementation of "
793 "B<fdopen>() parses at most 5 characters in I<mode>."
794 msgstr ""
795
796 #. type: SH
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 #, no-wrap
800 msgid "SEE ALSO"
801 msgstr ""
802
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 msgid ""
807 "B<open>(2), B<fclose>(3), B<fileno>(3), B<fmemopen>(3), B<fopencookie>(3), "
808 "B<open_memstream>(3)"
809 msgstr ""
810
811 #. type: TH
812 #: debian-trixie
813 #, no-wrap
814 msgid "2024-05-02"
815 msgstr ""
816
817 #. type: TH
818 #: debian-trixie
819 #, no-wrap
820 msgid "Linux man-pages 6.9.1"
821 msgstr ""
822
823 #. type: Plain text
824 #: debian-trixie
825 msgid "Standard C library (I<libc>, I<-lc>)"
826 msgstr ""
827
828 #. type: Plain text
829 #: debian-trixie fedora-44 fedora-rawhide
830 #, no-wrap
831 msgid ""
832 "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
833 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
834 "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
835 "B< FILE *restrict >I<stream>B<);>\n"
836 msgstr ""
837
838 #. type: Plain text
839 #: debian-trixie fedora-44 fedora-rawhide
840 msgid ""
841 "The B<fopen>() function opens the file whose name is the string pointed to "
842 "by I<pathname> and associates a stream with it."
843 msgstr ""
844
845 #. type: Plain text
846 #: debian-trixie fedora-44 fedora-rawhide
847 msgid ""
848 "Reads and writes may be intermixed on read/write streams in any order. Note "
849 "that ANSI C requires that a file positioning function intervene between "
850 "output and input, unless an input operation encounters end-of-file. (If "
851 "this condition is not met, then a read is allowed to return the result of "
852 "writes other than the most recent.) Therefore it is good practice (and "
853 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
854 "B<fsetpos>(3) operation between write and read operations on such a "
855 "stream. This operation may be an apparent no-op (as in I<fseek(..., 0L, "
856 "SEEK_CUR)> called for its synchronizing side effect)."
857 msgstr ""
858
859 #. type: tbl table
860 #: debian-trixie fedora-44 fedora-rawhide
861 #, no-wrap
862 msgid "I<r>"
863 msgstr ""
864
865 #. type: tbl table
866 #: debian-trixie fedora-44 fedora-rawhide
867 #, no-wrap
868 msgid "I<w>"
869 msgstr ""
870
871 #. type: tbl table
872 #: debian-trixie fedora-44 fedora-rawhide
873 #, no-wrap
874 msgid "I<a>"
875 msgstr ""
876
877 #. type: tbl table
878 #: debian-trixie fedora-44 fedora-rawhide
879 #, no-wrap
880 msgid "I<r+>"
881 msgstr ""
882
883 #. type: tbl table
884 #: debian-trixie fedora-44 fedora-rawhide
885 #, no-wrap
886 msgid "I<w+>"
887 msgstr ""
888
889 #. type: tbl table
890 #: debian-trixie fedora-44 fedora-rawhide
891 #, no-wrap
892 msgid "I<a+>"
893 msgstr ""
894
895 #. type: Plain text
896 #: debian-trixie fedora-44 fedora-rawhide
897 msgid ""
898 "The B<freopen>() function opens the file whose name is the string pointed "
899 "to by I<pathname> and associates the stream pointed to by I<stream> with "
900 "it. The original stream (if it exists) is closed. The I<mode> argument is "
901 "used just as in the B<fopen>() function."
902 msgstr ""
903
904 #. type: Plain text
905 #: debian-trixie fedora-44 fedora-rawhide
906 msgid ""
907 "If the I<pathname> argument is a null pointer, B<freopen>() changes the "
908 "mode of the stream to that specified in I<mode>; that is, B<freopen>() "
909 "reopens the pathname that is associated with the stream. The specification "
910 "for this behavior was added in the C99 standard, which says:"
911 msgstr ""
912
913 #. type: TH
914 #: fedora-44 fedora-rawhide
915 #, no-wrap
916 msgid "2024-07-23"
917 msgstr ""
918
919 #. type: TH
920 #: fedora-44 fedora-rawhide
921 #, no-wrap
922 msgid "Linux man-pages 6.13"
923 msgstr ""
924
925 #. type: TH
926 #: mageia-cauldron
927 #, no-wrap
928 msgid "Linux man-pages 6.17"
929 msgstr ""
930
931 #. type: TH
932 #: opensuse-leap-16-1 opensuse-tumbleweed
933 #, no-wrap
934 msgid "Linux man-pages (unreleased)"
935 msgstr ""