Debian Codegraph @

po/pt_BR/man3/fopen.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Rubens de Jesus Nogueira <[email protected]>, 2000.
5 # André Luiz Fassone <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
10 "PO-Revision-Date: 2000-06-02 19:20-0300\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Virtaal 1.0.0-beta1\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 "fopen"
26 msgstr "fopen"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2025-09-21"
33 msgstr "21 setembro 2025"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "fopen, fdopen, freopen - stream open functions"
53 msgstr "fopen, fdopen, freopen - funções de abertura de fluxo"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>stdio.hE<gt>>\n"
80 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
88 #| "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
89 #| "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
90 #| "B< FILE *restrict >I<stream>B<);>\n"
91 msgid ""
92 "B<FILE *fopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<);>\n"
93 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
94 "B<FILE *freopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<,>\n"
95 "B< FILE *restrict >I<stream>B<);>\n"
96 msgstr ""
97 "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
98 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
99 "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
100 "B< FILE *restrict >I<stream>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "Requisitos de macro de teste de recursos para o glibc (consulte "
109 "B<feature_test_macros>(7)):"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid "B<fdopen>():"
115 msgstr "B<fdopen>():"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid " _POSIX_C_SOURCE\n"
122 msgstr " _POSIX_C_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 "DESCRIÇÃO"
130
131 #. type: Plain text
132 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
133 #: opensuse-tumbleweed
134 #, fuzzy
135 #| msgid ""
136 #| "The B<fopen>() function opens the file whose name is the string pointed "
137 #| "to by I<pathname> and associates a stream with it."
138 msgid ""
139 "The B<fopen>() function opens the file whose name is the string pointed to "
140 "by I<path> and associates a stream with it."
141 msgstr ""
142 "A função B<fopen>() abre o arquivo cujo nome é a sequência apontada por "
143 "I<pathname> e associa um fluxo com ele."
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, fuzzy
149 #| msgid ""
150 #| "The argument I<mode> points to a string beginning with one of the "
151 #| "following sequences (Additional characters may follow these sequences.):"
152 msgid ""
153 "The argument I<mode> points to a string beginning with one of the following "
154 "sequences (possibly followed by additional characters, as described below):"
155 msgstr ""
156 "O argumento I<mode> aponta para uma sequência que começa com uma ou mais "
157 "sequências (Caracteres adicionais podem seguir essas sequências.):"
158
159 #. type: TP
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "B<r>"
164 msgstr "B<r>"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "Open text file for reading. The stream is positioned at the beginning of "
171 "the file."
172 msgstr ""
173 "Abre arquivo de texto para leitura. O fluxo é posicionado no começo do "
174 "arquivo."
175
176 #. type: TP
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "B<r+>"
181 msgstr "B<r+>"
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "Open for reading and writing. The stream is positioned at the beginning of "
188 "the file."
189 msgstr ""
190 "Abre para leitura e escrita. O fluxo é posicionado no começo do arquivo."
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<w>"
197 msgstr "B<w>"
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 "Truncate file to zero length or create text file for writing. The stream is "
204 "positioned at the beginning of the file."
205 msgstr ""
206 "Trunca o arquivo para comprimento zero, ou cria arquivo de texto para "
207 "escrita. O fluxo é posicionado no começo do arquivo."
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<w+>"
214 msgstr "B<w+>"
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 writing. The file is created if it does not exist, "
221 "otherwise it is truncated. The stream is positioned at the beginning of the "
222 "file."
223 msgstr ""
224 "Abre para leitura e escrita. O arquivo é criado se não existir, caso "
225 "contrário ele é truncado. O fluxo é posicionado no começo do arquivo."
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<a>"
232 msgstr "B<a>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, fuzzy
238 #| msgid ""
239 #| "Open for reading and writing. The file is created if it does not exist. "
240 #| "The stream is positioned at the end of the file."
241 msgid ""
242 "Open for appending (writing at end of file). The file is created if it does "
243 "not exist. The stream is positioned at the end of the file."
244 msgstr ""
245 "Abre para leitura e escrita. O arquivo é criado se não existir. O fluxo é "
246 "posicionado no fim do arquivo."
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<a+>"
253 msgstr "B<a+>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "Open for reading and appending (writing at end of file). The file is "
260 "created if it does not exist. Output is always appended to the end of the "
261 "file. POSIX is silent on what the initial read position is when using this "
262 "mode. For glibc, the initial file position for reading is at the beginning "
263 "of the file, but for Android/BSD/MacOS, the initial file position for "
264 "reading is at the end of the file."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, fuzzy
271 #| msgid ""
272 #| "The I<mode> string can also include the letter ``b'' either as a last "
273 #| "character or as a character between the characters in any of the two-"
274 #| "character strings described above. This is strictly for compatibility "
275 #| "with ANSI X3.159-1989 (``ANSI C'') and has no effect; the ``b'' is "
276 #| "ignored on all POSIX conforming systems, including Linux. (Other systems "
277 #| "may treat text files and binary files differently, and adding the ``b'' "
278 #| "may be a good idea if you do I/O to a binary file and expect that your "
279 #| "program may be ported to non-Unix environments.)"
280 msgid ""
281 "The I<mode> string can also include the letter \\[aq]b\\[aq] either as a "
282 "last character or as a character between the characters in any of the two-"
283 "character strings described above. This is strictly for compatibility with "
284 "ISO C and has no effect; the \\[aq]b\\[aq] is ignored on all POSIX "
285 "conforming systems, including Linux. (Other systems may treat text files "
286 "and binary files differently, and adding the \\[aq]b\\[aq] may be a good "
287 "idea if you do I/O to a binary file and expect that your program may be "
288 "ported to non-UNIX environments.)"
289 msgstr ""
290 "A sequência de I<mode> também pode incluir a letra 'b' como um último "
291 "caractere ou como um caractere entre os caracteres em qualquer uma das "
292 "sequências de dois caracteres descritas acima. Isto é estritamente para "
293 "compatibilidade com ANSI X3.159-1989 ('ANSI C') e não tem efeito; o 'b' é "
294 "ignorado em todos os sistemas conformes com POSIX, incluindo o Linux. "
295 "(Outros sistemas podem tratar arquivos de texto e arquivos binários de "
296 "formas diferentes, e o acréscimo de 'b' pode ser uma boa idéia se você faz E/"
297 "S para um arquivo binário e espera que seu programa possa ser portado para "
298 "ambientes não-Unix.)"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "See NOTES below for details of glibc extensions for I<mode>."
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, fuzzy
310 #| msgid ""
311 #| "Any created files will have mode B<S_IRUSR>\\&|B<S_IWUSR>\\&|"
312 #| "B<S_IRGRP>\\&|B<S_IWGRP>\\&|B<S_IROTH>\\&|B<S_IWOTH> (0666), as modified "
313 #| "by the process' umask value (see B<umask>(2)."
314 msgid ""
315 "Any created file will have the mode B<S_IRUSR> | B<S_IWUSR> | B<S_IRGRP> | "
316 "B<S_IWGRP> | B<S_IROTH> | B<S_IWOTH> (0666), as modified by the process's "
317 "umask value (see B<umask>(2))."
318 msgstr ""
319 "Quaisquer arquivos criados terão o modo B<S_IRUSR>\\&|B<S_IWUSR>\\&|"
320 "B<S_IRGRP>\\&|B<S_IWGRP>\\&|B<S_IROTH>\\&|B<S_IWOTH> (0666), conforme "
321 "modificado pelo valor de 'umask' do processo, veja B<umask>(2)."
322
323 #. type: Plain text
324 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
325 #: opensuse-tumbleweed
326 #, fuzzy
327 #| msgid ""
328 #| "Reads and writes may be intermixed on read/write streams in any order. "
329 #| "Note that ANSI C requires that a file positioning function intervene "
330 #| "between output and input, unless an input operation encounters end-of-"
331 #| "file. (If this condition is not met, then a read is allowed to return "
332 #| "the result of writes other than the most recent.) Therefore it is good "
333 #| "practice (and indeed sometimes necessary under Linux) to put an "
334 #| "B<fseek>(3) or B<fsetpos>(3) operation between write and read "
335 #| "operations on such a stream. This operation may be an apparent no-op (as "
336 #| "in I<fseek(..., 0L, SEEK_CUR)> called for its synchronizing side effect)."
337 msgid ""
338 "Reads and writes may be intermixed on read/write streams in any order. Note "
339 "that ANSI C requires that a file positioning function intervene between "
340 "output and input, unless an input operation encounters end-of-file. (If "
341 "this condition is not met, then a read is allowed to return the result of "
342 "writes other than the most recent.) Therefore it is good practice (and "
343 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
344 "B<fsetpos>(3) operation between write and read operations on such a "
345 "stream. This operation may be an apparent no-op (as in I<fseek(...,\\ 0L,\\ "
346 "SEEK_CUR)> called for its synchronizing side effect)."
347 msgstr ""
348 "Leitura e escrita pode ser mescladas em fluxos de leitura/escrita em "
349 "qualquer ordem. Note que o C ANSI requer que uma função de posicionamento de "
350 "arquivo intercale-se entre a saída e a entrada, a menos que uma operação de "
351 "entrada encontre o fim do arquivo. (Se esta condição não é encontrada, então "
352 "uma leitura é permitida para retornar o resultado de escritas que não sejam "
353 "a mais recente.) Portanto é uma boa prática (e de fato necessário sob o "
354 "Linux, às vezes) colocar uma operação B<fseek>(3) ou B<fsetpos>(3) entre "
355 "operações de escrita e leitura em tais fluxos. Esta operação pode ser um "
356 "aparente no-op ('no operation', como em I<fseek(..., 0L, SEEK_CUR)> chamado "
357 "para seu efeito colateral de sincronismo)."
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "Opening a file in append mode (B<a> as the first character of I<mode>) "
364 "causes all subsequent write operations to this stream to occur at end-of-"
365 "file, as if preceded by the call:"
366 msgstr ""
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "fseek(stream, 0, SEEK_END);\n"
373 msgstr "fseek(stream, 0, SEEK_END);\n"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "The file descriptor associated with the stream is opened as if by a call to "
380 "B<open>(2) with the following flags:"
381 msgstr ""
382
383 #. type: tbl table
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "fopen() mode"
388 msgstr ""
389
390 #. type: tbl table
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "open() flags"
395 msgstr ""
396
397 #. type: tbl table
398 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
399 #: opensuse-tumbleweed
400 #, no-wrap
401 msgid "r"
402 msgstr "r"
403
404 #. type: tbl table
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "O_RDONLY"
409 msgstr "O_RDONLY"
410
411 #. type: tbl table
412 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
413 #: opensuse-tumbleweed
414 #, no-wrap
415 msgid "w"
416 msgstr "w"
417
418 #. type: tbl table
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "O_WRONLY | O_CREAT | O_TRUNC"
423 msgstr "O_WRONLY | O_CREAT | O_TRUNC"
424
425 #. type: tbl table
426 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
427 #: opensuse-tumbleweed
428 #, no-wrap
429 msgid "a"
430 msgstr "a"
431
432 #. type: tbl table
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "O_WRONLY | O_CREAT | O_APPEND"
437 msgstr "O_WRONLY | O_CREAT | O_APPEND"
438
439 #. type: tbl table
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 #, fuzzy, no-wrap
443 #| msgid "+"
444 msgid "r+"
445 msgstr "+"
446
447 #. type: tbl table
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "O_RDWR"
452 msgstr "O_RDWR"
453
454 #. type: tbl table
455 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
456 #: opensuse-tumbleweed
457 #, fuzzy, no-wrap
458 #| msgid "+"
459 msgid "w+"
460 msgstr "+"
461
462 #. type: tbl table
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "O_RDWR | O_CREAT | O_TRUNC"
467 msgstr "O_RDWR | O_CREAT | O_TRUNC"
468
469 #. type: tbl table
470 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
471 #: opensuse-tumbleweed
472 #, fuzzy, no-wrap
473 #| msgid "+"
474 msgid "a+"
475 msgstr "+"
476
477 #. type: tbl table
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "O_RDWR | O_CREAT | O_APPEND"
482 msgstr "O_RDWR | O_CREAT | O_APPEND"
483
484 #. type: SS
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "fdopen()"
489 msgstr "fdopen()"
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid ""
495 "The B<fdopen>() function associates a stream with the existing file "
496 "descriptor, I<fd>. The I<mode> of the stream (one of the values \"r\", \"r+"
497 "\", \"w\", \"w+\", \"a\", \"a+\") must be compatible with the mode of the "
498 "file descriptor. The file position indicator of the new stream is set to "
499 "that belonging to I<fd>, and the error and end-of-file indicators are "
500 "cleared. Modes \"w\" or \"w+\" do not cause truncation of the file. The "
501 "file descriptor is not dup'ed, and will be closed when the stream created by "
502 "B<fdopen>() is closed. The result of applying B<fdopen>() to a shared "
503 "memory object is undefined."
504 msgstr ""
505 "A função B<fdopen>() associa um fluxo com o descritor de arquivos existente, "
506 "I<fd>. O I<modo> do fluxo (um dos valores 'r', 'r+', 'w', 'w+', 'a', 'a+') "
507 "precisa ser compatível com o modo do descritor de arquivo. O indicador de "
508 "posição do arquivo do novo fluxo é selecionado para aquele pertencente ao "
509 "I<fd>, e os indicadores de erro e fim de arquivo são limpos. Os modos 'w' ou "
510 "'w+' não provocam truncamento do arquivo. O descritor de arquivo não sofre "
511 "um 'dup', e será fechado quando o fluxo criado por B<fdopen>() for fechado. "
512 "O resultado da aplicação de B<fdopen>() para um objeto de memória "
513 "compartilhado é indefinido."
514
515 #. type: SS
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "freopen()"
520 msgstr "freopen()"
521
522 #. type: Plain text
523 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
524 #: opensuse-tumbleweed
525 #, fuzzy
526 #| msgid ""
527 #| "The B<freopen> function opens the file whose name is the string pointed "
528 #| "to by I<path> and associates the stream pointed to by I<stream> with it. "
529 #| "The original stream (if it exists) is closed. The I<mode> argument is "
530 #| "used just as in the B<fopen> function. The primary use of the B<freopen> "
531 #| "function is to change the file associated with a standard text stream "
532 #| "(I<stderr>, I<stdin>, or I<stdout>)."
533 msgid ""
534 "The B<freopen>() function opens the file whose name is the string pointed "
535 "to by I<path> and associates the stream pointed to by I<stream> with it. "
536 "The original stream (if it exists) is closed. The I<mode> argument is used "
537 "just as in the B<fopen>() function."
538 msgstr ""
539 "A função B<freopen> abre o arquivo cujo nome é a sequência apontada por "
540 "I<path> e associa o fluxo apontado por I<stream> a ele. O fluxo original (se "
541 "existir) é encerrado. O argumento I<mode> é usado apenas como na função "
542 "B<fopen>. O uso primário da função B<freopen> é mudar o arquivo associado "
543 "com o fluxo de texto padrão (I<stderr>, I<stdin> ou I<stdout>)."
544
545 #. type: Plain text
546 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
547 #: opensuse-tumbleweed
548 msgid ""
549 "If I<path> is a null pointer, B<freopen>() changes the mode of the stream "
550 "to that specified in I<mode>; that is, B<freopen>() reopens the pathname "
551 "that is associated with the stream. The specification for this behavior was "
552 "added in the C99 standard, which says:"
553 msgstr ""
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "In this case, the file descriptor associated with the stream need not be "
560 "closed if the call to B<freopen>() succeeds. It is implementation-defined "
561 "which changes of mode are permitted (if any), and under what circumstances."
562 msgstr ""
563
564 #. type: Plain text
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 msgid ""
568 "The primary use of the B<freopen>() function is to change the file "
569 "associated with a standard text stream (I<stderr>, I<stdin>, or I<stdout>)."
570 msgstr ""
571
572 #. type: SH
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid "RETURN VALUE"
577 msgstr "VALOR DE RETORNO"
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, fuzzy
583 #| msgid ""
584 #| "Upon successful completion B<fopen>, B<fdopen> and B<freopen> return a "
585 #| "B<FILE> pointer. Otherwise, B<NULL> is returned and the global variable "
586 #| "I<errno> is set to indicate the error."
587 msgid ""
588 "Upon successful completion B<fopen>(), B<fdopen>(), and B<freopen>() return "
589 "a I<FILE> pointer. Otherwise, NULL is returned and I<errno> is set to "
590 "indicate the error."
591 msgstr ""
592 "Em caso de término bem sucedido, B<fopen>, B<fdopen> e B<freopen> retornam "
593 "um ponteiro para B<FILE>. Caso contrário, é retornado um B<NULO> e a "
594 "variável global I<errno> é selecionada adequadamente."
595
596 #. type: SH
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "ERRORS"
601 msgstr "ERROS"
602
603 #. type: TP
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "B<EINVAL>"
608 msgstr "B<EINVAL>"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "The I<mode> provided to B<fopen>(), B<fdopen>(), or B<freopen>() was "
615 "invalid."
616 msgstr ""
617 "O I<mode> fornecido para B<fopen>(), B<fdopen>() ou B<freopen>() era "
618 "inválido."
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 msgid ""
624 "The B<fopen>(), B<fdopen>(), and B<freopen>() functions may also fail and "
625 "set I<errno> for any of the errors specified for the routine B<malloc>(3)."
626 msgstr ""
627 "As funções B<fopen>(), B<fdopen>() e B<freopen>() também podem falhar e "
628 "selecionar I<errno> para quaisquer dos erros especificados para a rotina "
629 "B<malloc>(3)."
630
631 #. type: Plain text
632 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
633 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
634 msgid ""
635 "The B<fopen>() function may also fail and set I<errno> for any of the "
636 "errors specified for the routine B<open>(2)."
637 msgstr ""
638 "A função B<fopen>() também pode falhar e selecionar I<errno> para quaisquer "
639 "dos erros especificados para a rotina B<open>(2)."
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid ""
645 "The B<fdopen>() function may also fail and set I<errno> for any of the "
646 "errors specified for the routine B<fcntl>(2)."
647 msgstr ""
648 "A função B<fdopen>() também pode falhar e selecionar I<errno> para quaisquer "
649 "dos erros especificados para a rotina B<fcntl>(2)."
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "The B<freopen>() function may also fail and set I<errno> for any of the "
656 "errors specified for the routines B<open>(2), B<fclose>(3), and B<fflush>(3)."
657 msgstr ""
658 "A função B<freopen>() também pode falhar e selecionar I<errno> para "
659 "quaisquer dos erros especificados para as rotinas B<open>(2), B<fclose>(3) e "
660 "B<fflush>(3)."
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 "ATTRIBUTES"
667 msgstr "ATRIBUTOS"
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "For an explanation of the terms used in this section, see B<attributes>(7)."
674 msgstr ""
675 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
676
677 #. type: tbl table
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "Interface"
682 msgstr "Interface"
683
684 #. type: tbl table
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 #, no-wrap
688 msgid "Attribute"
689 msgstr "Atributo"
690
691 #. type: tbl table
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, no-wrap
695 msgid "Value"
696 msgstr "Valor"
697
698 #. type: tbl table
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid ".na\n"
703 msgstr ".na\n"
704
705 #. type: tbl table
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid ".nh\n"
710 msgstr ".nh\n"
711
712 #. type: tbl table
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, no-wrap
716 msgid ""
717 "B<fopen>(),\n"
718 "B<fdopen>(),\n"
719 "B<freopen>()"
720 msgstr ""
721 "B<fopen>(),\n"
722 "B<fdopen>(),\n"
723 "B<freopen>()"
724
725 #. type: tbl table
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid "Thread safety"
730 msgstr "Thread safety"
731
732 #. type: tbl table
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "MT-Safe"
737 msgstr "MT-Safe"
738
739 #. type: SH
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 #, no-wrap
743 msgid "STANDARDS"
744 msgstr "PADRÕES"
745
746 #. type: TP
747 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
748 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
749 #, fuzzy, no-wrap
750 #| msgid "B<fdopen>():"
751 msgid "B<fopen>()"
752 msgstr "B<fdopen>():"
753
754 #. type: TQ
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 #, fuzzy, no-wrap
758 #| msgid "freopen()"
759 msgid "B<freopen>()"
760 msgstr "freopen()"
761
762 #. type: Plain text
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 msgid "C11, POSIX.1-2008."
766 msgstr "C11, POSIX.1-2008."
767
768 #. type: TP
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 #, fuzzy, no-wrap
772 #| msgid "B<fdopen>():"
773 msgid "B<fdopen>()"
774 msgstr "B<fdopen>():"
775
776 #. type: Plain text
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 msgid "POSIX.1-2008."
780 msgstr "POSIX.1-2008."
781
782 #. type: SH
783 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
784 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
785 #, no-wrap
786 msgid "HISTORY"
787 msgstr "HISTÓRICO"
788
789 #. type: Plain text
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 msgid "POSIX.1-2001, C89."
793 msgstr "POSIX.1-2001, C89."
794
795 #. type: Plain text
796 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
797 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
798 msgid "POSIX.1-2001."
799 msgstr "POSIX.1-2001."
800
801 #. type: SH
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "NOTES"
806 msgstr "NOTAS"
807
808 #. type: SS
809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
811 #, no-wrap
812 msgid "glibc notes"
813 msgstr "Notas sobre glibc"
814
815 #. type: Plain text
816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
818 msgid ""
819 "The GNU C library allows the following extensions for the string specified "
820 "in I<mode>:"
821 msgstr ""
822
823 #. type: TP
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 #, no-wrap
827 msgid "B<c> (since glibc 2.3.3)"
828 msgstr "B<c> (desde o glibc 2.3.3)"
829
830 #. type: Plain text
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 msgid ""
834 "Do not make the open operation, or subsequent read and write operations, "
835 "thread cancelation points. This flag is ignored for B<fdopen>()."
836 msgstr ""
837
838 #. type: TP
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 #, no-wrap
842 msgid "B<e> (since glibc 2.7)"
843 msgstr "B<e> (desde o glibc 2.7)"
844
845 #. type: Plain text
846 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
847 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
848 msgid ""
849 "Open the file with the B<O_CLOEXEC> flag. See B<open>(2) for more "
850 "information. This flag is ignored for B<fdopen>()."
851 msgstr ""
852
853 #. type: TP
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "B<m> (since glibc 2.3)"
858 msgstr "B<m> (desde o glibc 2.3)"
859
860 #. As at glibc 2.4:
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 msgid ""
865 "Attempt to access the file using B<mmap>(2), rather than I/O system calls "
866 "(B<read>(2), B<write>(2)). Currently, use of B<mmap>(2) is attempted only "
867 "for a file opened for reading."
868 msgstr ""
869
870 #. type: TP
871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
873 #, no-wrap
874 msgid "B<x>"
875 msgstr "B<x>"
876
877 #. Since glibc 2.0?
878 #. FIXME . C11 specifies this flag
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid ""
883 "Open the file exclusively (like the B<O_EXCL> flag of B<open>(2)). If the "
884 "file already exists, B<fopen>() fails, and sets I<errno> to B<EEXIST>. "
885 "This flag is ignored for B<fdopen>()."
886 msgstr ""
887
888 #. type: Plain text
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 msgid ""
892 "In addition to the above characters, B<fopen>() and B<freopen>() support "
893 "the following syntax in I<mode>:"
894 msgstr ""
895
896 #. type: Plain text
897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
899 msgid "B< ,ccs=>I<string>"
900 msgstr ""
901
902 #. type: Plain text
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 msgid ""
906 "The given I<string> is taken as the name of a coded character set and the "
907 "stream is marked as wide-oriented. Thereafter, internal conversion "
908 "functions convert I/O to and from the character set I<string>. If the "
909 "B<,ccs=>I<string> syntax is not specified, then the wide-orientation of the "
910 "stream is determined by the first file operation. If that operation is a "
911 "wide-character operation, the stream is marked wide-oriented, and functions "
912 "to convert to the coded character set are loaded."
913 msgstr ""
914
915 #. type: SH
916 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
917 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
918 #, no-wrap
919 msgid "BUGS"
920 msgstr "BUGS"
921
922 #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=12685
923 #. type: Plain text
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 msgid ""
927 "When parsing for individual flag characters in I<mode> (i.e., the characters "
928 "preceding the \"ccs\" specification), the glibc implementation of "
929 "B<fopen>() and B<freopen>() limits the number of characters examined in "
930 "I<mode> to 7 (or, before glibc 2.14, to 6, which was not enough to include "
931 "possible specifications such as \"rb+cmxe\"). The current implementation of "
932 "B<fdopen>() parses at most 5 characters in I<mode>."
933 msgstr ""
934
935 #. type: SH
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 #, no-wrap
939 msgid "SEE ALSO"
940 msgstr "VEJA TAMBÉM"
941
942 #. type: Plain text
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 msgid ""
946 "B<open>(2), B<fclose>(3), B<fileno>(3), B<fmemopen>(3), B<fopencookie>(3), "
947 "B<open_memstream>(3)"
948 msgstr ""
949 "B<open>(2), B<fclose>(3), B<fileno>(3), B<fmemopen>(3), B<fopencookie>(3), "
950 "B<open_memstream>(3)"
951
952 #. type: TH
953 #: debian-trixie
954 #, no-wrap
955 msgid "2024-05-02"
956 msgstr "2 maio 2024"
957
958 #. type: TH
959 #: debian-trixie
960 #, no-wrap
961 msgid "Linux man-pages 6.9.1"
962 msgstr "Linux man-pages 6.9.1"
963
964 #. type: Plain text
965 #: debian-trixie
966 msgid "Standard C library (I<libc>, I<-lc>)"
967 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
968
969 #. type: Plain text
970 #: debian-trixie fedora-44 fedora-rawhide
971 #, no-wrap
972 msgid ""
973 "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
974 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
975 "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
976 "B< FILE *restrict >I<stream>B<);>\n"
977 msgstr ""
978 "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
979 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
980 "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
981 "B< FILE *restrict >I<stream>B<);>\n"
982
983 #. type: Plain text
984 #: debian-trixie fedora-44 fedora-rawhide
985 msgid ""
986 "The B<fopen>() function opens the file whose name is the string pointed to "
987 "by I<pathname> and associates a stream with it."
988 msgstr ""
989 "A função B<fopen>() abre o arquivo cujo nome é a sequência apontada por "
990 "I<pathname> e associa um fluxo com ele."
991
992 #. type: Plain text
993 #: debian-trixie fedora-44 fedora-rawhide
994 msgid ""
995 "Reads and writes may be intermixed on read/write streams in any order. Note "
996 "that ANSI C requires that a file positioning function intervene between "
997 "output and input, unless an input operation encounters end-of-file. (If "
998 "this condition is not met, then a read is allowed to return the result of "
999 "writes other than the most recent.) Therefore it is good practice (and "
1000 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
1001 "B<fsetpos>(3) operation between write and read operations on such a "
1002 "stream. This operation may be an apparent no-op (as in I<fseek(..., 0L, "
1003 "SEEK_CUR)> called for its synchronizing side effect)."
1004 msgstr ""
1005 "Leitura e escrita pode ser mescladas em fluxos de leitura/escrita em "
1006 "qualquer ordem. Note que o C ANSI requer que uma função de posicionamento de "
1007 "arquivo intercale-se entre a saída e a entrada, a menos que uma operação de "
1008 "entrada encontre o fim do arquivo. (Se esta condição não é encontrada, então "
1009 "uma leitura é permitida para retornar o resultado de escritas que não sejam "
1010 "a mais recente.) Portanto é uma boa prática (e de fato necessário sob o "
1011 "Linux, às vezes) colocar uma operação B<fseek>(3) ou B<fsetpos>(3) entre "
1012 "operações de escrita e leitura em tais fluxos. Esta operação pode ser um "
1013 "aparente no-op ('no operation', como em I<fseek(..., 0L, SEEK_CUR)> chamado "
1014 "para seu efeito colateral de sincronismo)."
1015
1016 #. type: tbl table
1017 #: debian-trixie fedora-44 fedora-rawhide
1018 #, no-wrap
1019 msgid "I<r>"
1020 msgstr "I<r>"
1021
1022 #. type: tbl table
1023 #: debian-trixie fedora-44 fedora-rawhide
1024 #, no-wrap
1025 msgid "I<w>"
1026 msgstr "I<w>"
1027
1028 #. type: tbl table
1029 #: debian-trixie fedora-44 fedora-rawhide
1030 #, no-wrap
1031 msgid "I<a>"
1032 msgstr "I<a>"
1033
1034 #. type: tbl table
1035 #: debian-trixie fedora-44 fedora-rawhide
1036 #, no-wrap
1037 msgid "I<r+>"
1038 msgstr "I<r+>"
1039
1040 #. type: tbl table
1041 #: debian-trixie fedora-44 fedora-rawhide
1042 #, no-wrap
1043 msgid "I<w+>"
1044 msgstr "I<w+>"
1045
1046 #. type: tbl table
1047 #: debian-trixie fedora-44 fedora-rawhide
1048 #, no-wrap
1049 msgid "I<a+>"
1050 msgstr "I<a+>"
1051
1052 #. type: Plain text
1053 #: debian-trixie fedora-44 fedora-rawhide
1054 #, fuzzy
1055 #| msgid ""
1056 #| "The B<freopen> function opens the file whose name is the string pointed "
1057 #| "to by I<path> and associates the stream pointed to by I<stream> with it. "
1058 #| "The original stream (if it exists) is closed. The I<mode> argument is "
1059 #| "used just as in the B<fopen> function. The primary use of the B<freopen> "
1060 #| "function is to change the file associated with a standard text stream "
1061 #| "(I<stderr>, I<stdin>, or I<stdout>)."
1062 msgid ""
1063 "The B<freopen>() function opens the file whose name is the string pointed "
1064 "to by I<pathname> and associates the stream pointed to by I<stream> with "
1065 "it. The original stream (if it exists) is closed. The I<mode> argument is "
1066 "used just as in the B<fopen>() function."
1067 msgstr ""
1068 "A função B<freopen> abre o arquivo cujo nome é a sequência apontada por "
1069 "I<path> e associa o fluxo apontado por I<stream> a ele. O fluxo original (se "
1070 "existir) é encerrado. O argumento I<mode> é usado apenas como na função "
1071 "B<fopen>. O uso primário da função B<freopen> é mudar o arquivo associado "
1072 "com o fluxo de texto padrão (I<stderr>, I<stdin> ou I<stdout>)."
1073
1074 #. type: Plain text
1075 #: debian-trixie fedora-44 fedora-rawhide
1076 msgid ""
1077 "If the I<pathname> argument is a null pointer, B<freopen>() changes the "
1078 "mode of the stream to that specified in I<mode>; that is, B<freopen>() "
1079 "reopens the pathname that is associated with the stream. The specification "
1080 "for this behavior was added in the C99 standard, which says:"
1081 msgstr ""
1082
1083 #. type: TH
1084 #: fedora-44 fedora-rawhide
1085 #, no-wrap
1086 msgid "2024-07-23"
1087 msgstr "23 julho 2024"
1088
1089 #. type: TH
1090 #: fedora-44 fedora-rawhide
1091 #, no-wrap
1092 msgid "Linux man-pages 6.13"
1093 msgstr "Linux man-pages 6.13"
1094
1095 #. type: TH
1096 #: mageia-cauldron
1097 #, no-wrap
1098 msgid "Linux man-pages 6.17"
1099 msgstr "Linux man-pages 6.17"
1100
1101 #. type: TH
1102 #: opensuse-leap-16-1 opensuse-tumbleweed
1103 #, no-wrap
1104 msgid "Linux man-pages (unreleased)"
1105 msgstr "Linux man-pages (não lançado)"