Debian Codegraph @

po/ru/man3/fopen.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\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=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, fuzzy, no-wrap
28 #| msgid "fdopen()"
29 msgid "fopen"
30 msgstr "fdopen()"
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2025-09-21"
37 msgstr "21 сентября 2025 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "fopen, fdopen, freopen - stream open functions"
57 msgstr "fopen, fdopen, freopen - функции для открытия потоков"
58
59 #. type: SH
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "LIBRARY"
64 msgstr "БИБЛИОТЕКА"
65
66 #. type: Plain text
67 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 msgid "Standard C library (I<libc>,\\ I<-lc>)"
70 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
71
72 #. type: SH
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "SYNOPSIS"
77 msgstr "СИНТАКСИС"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<#include E<lt>stdio.hE<gt>>\n"
84 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
88 #: opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<FILE *fopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<);>\n"
92 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
93 "B<FILE *freopen(const char *restrict >I<path>B<, const char *restrict >I<mode>B<,>\n"
94 "B< FILE *restrict >I<stream>B<);>\n"
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 ""
101 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
102 msgstr ""
103 "Требования макроса тестирования свойств для glibc (см. "
104 "B<feature_test_macros>(7)):"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, fuzzy
110 #| msgid "B<fmemopen>():"
111 msgid "B<fdopen>():"
112 msgstr "B<fmemopen>():"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid " _POSIX_C_SOURCE\n"
119 msgstr " _POSIX_C_SOURCE\n"
120
121 #. type: SH
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "DESCRIPTION"
126 msgstr "ОПИСАНИЕ"
127
128 #. type: Plain text
129 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
130 #: opensuse-tumbleweed
131 #, fuzzy
132 #| msgid ""
133 #| "The B<fopen>() function opens the file whose name is the string pointed "
134 #| "to by I<pathname> and associates a stream with it."
135 msgid ""
136 "The B<fopen>() function opens the file whose name is the string pointed to "
137 "by I<path> and associates a stream with it."
138 msgstr ""
139 "Функция B<fopen>() открывает файл с именем, которое задано в виде строки в "
140 "I<pathname>, и связывает его с потоком."
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 argument I<mode> points to a string beginning with one of the following "
147 "sequences (possibly followed by additional characters, as described below):"
148 msgstr ""
149 "Параметр I<mode> указывает на строку, начинающуюся с одной из следующих "
150 "последовательностей (за ними могут следовать дополнительные символы, "
151 "описанные далее):"
152
153 #. type: TP
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "B<r>"
158 msgstr "B<r>"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "Open text file for reading. The stream is positioned at the beginning of "
165 "the file."
166 msgstr "Открыть текстовый файл для чтения. Поток совмещается с началом файла."
167
168 #. type: TP
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "B<r+>"
173 msgstr "B<r+>"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "Open for reading and writing. The stream is positioned at the beginning of "
180 "the file."
181 msgstr "Открыть для чтения и записи. Поток совмещается с началом файла."
182
183 #. type: TP
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "B<w>"
188 msgstr "B<w>"
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "Truncate file to zero length or create text file for writing. The stream is "
195 "positioned at the beginning of the file."
196 msgstr ""
197 "Обрезать файл до нулевой длины или создать текстовый файл для записи. Поток "
198 "совмещается с началом файла."
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<w+>"
205 msgstr "B<w+>"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "Open for reading and writing. The file is created if it does not exist, "
212 "otherwise it is truncated. The stream is positioned at the beginning of the "
213 "file."
214 msgstr ""
215 "Открыть для чтения и записи. Файл создаётся, если его не существует, в "
216 "противном случае он обрезается. Поток совмещается с началом файла."
217
218 #. type: TP
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "B<a>"
223 msgstr "B<a>"
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "Open for appending (writing at end of file). The file is created if it does "
230 "not exist. The stream is positioned at the end of the file."
231 msgstr ""
232 "Открыть для добавления (записи в конец файла). Файл создаётся, если его не "
233 "существует. Поток совмещается с концом файла."
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<a+>"
240 msgstr "B<a+>"
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 ""
246 "Open for reading and appending (writing at end of file). The file is "
247 "created if it does not exist. Output is always appended to the end of the "
248 "file. POSIX is silent on what the initial read position is when using this "
249 "mode. For glibc, the initial file position for reading is at the beginning "
250 "of the file, but for Android/BSD/MacOS, the initial file position for "
251 "reading is at the end of the file."
252 msgstr ""
253 "Открыть для чтения и добавления (записи в конец файла). Файл создаётся, если "
254 "не существует. Вывод всегда добавляется в конец файла. В POSIX ничего не "
255 "упоминается о начальном положении при чтении, когда используется данный "
256 "режим. В glibc начальное положение в файле для чтения устанавливается в "
257 "начало файла, но в Android/BSD/MacOS начальное положение в файле для чтения "
258 "устанавливается в конец файла."
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, fuzzy
264 #| msgid ""
265 #| "The I<mode> string can also include the letter \\(aqb\\(aq either as a "
266 #| "last character or as a character between the characters in any of the two-"
267 #| "character strings described above. This is strictly for compatibility "
268 #| "with C89 and has no effect; the \\(aqb\\(aq is ignored on all POSIX "
269 #| "conforming systems, including Linux. (Other systems may treat text files "
270 #| "and binary files differently, and adding the \\(aqb\\(aq may be a good "
271 #| "idea if you do I/O to a binary file and expect that your program may be "
272 #| "ported to non-UNIX environments.)"
273 msgid ""
274 "The I<mode> string can also include the letter \\[aq]b\\[aq] either as a "
275 "last character or as a character between the characters in any of the two-"
276 "character strings described above. This is strictly for compatibility with "
277 "ISO C and has no effect; the \\[aq]b\\[aq] is ignored on all POSIX "
278 "conforming systems, including Linux. (Other systems may treat text files "
279 "and binary files differently, and adding the \\[aq]b\\[aq] may be a good "
280 "idea if you do I/O to a binary file and expect that your program may be "
281 "ported to non-UNIX environments.)"
282 msgstr ""
283 "Строка I<mode> может также содержать символ «b» в качестве последнего "
284 "символа или символа между двумя символами в любых описанных выше "
285 "двухсимвольных комбинациях. Это требуется только для совместимости с C89 и "
286 "не оказывает никакого влияния; символ «b» игнорируется во всех POSIX-"
287 "совместимых системах, включая Linux. Другие системы могут по-разному "
288 "обращаться с текстовыми и двоичными файлами, и добавление «b» может "
289 "оказаться полезным, если вы осуществляете ввод-вывод в двоичный файл и "
290 "ожидаете, что ваша программа может быть перенесена в не UNIX окружение."
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "See NOTES below for details of glibc extensions for I<mode>."
296 msgstr "О имеющихся расширениях I<mode> в glibc смотрите ЗАМЕЧАНИЯ далее."
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "Any created file will have the mode B<S_IRUSR> | B<S_IWUSR> | B<S_IRGRP> | "
303 "B<S_IWGRP> | B<S_IROTH> | B<S_IWOTH> (0666), as modified by the process's "
304 "umask value (see B<umask>(2))."
305 msgstr ""
306 "Любой созданный файл будет иметь атрибуты B<S_IRUSR> | B<S_IWUSR> | "
307 "B<S_IRGRP> | B<S_IWGRP> | B<S_IROTH> | B<S_IWOTH> (0666), как изменённые в "
308 "соответствии со значением umask процесса (смотрите B<umask>(2))."
309
310 #. type: Plain text
311 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
312 #: opensuse-tumbleweed
313 #, fuzzy
314 #| msgid ""
315 #| "Reads and writes may be intermixed on read/write streams in any order. "
316 #| "Note that ANSI C requires that a file positioning function intervene "
317 #| "between output and input, unless an input operation encounters end-of-"
318 #| "file. (If this condition is not met, then a read is allowed to return "
319 #| "the result of writes other than the most recent.) Therefore it is good "
320 #| "practice (and indeed sometimes necessary under Linux) to put an "
321 #| "B<fseek>(3) or B<fgetpos>(3) operation between write and read "
322 #| "operations on such a stream. This operation may be an apparent no-op (as "
323 #| "in I<fseek(..., 0L, SEEK_CUR)> called for its synchronizing side effect)."
324 msgid ""
325 "Reads and writes may be intermixed on read/write streams in any order. Note "
326 "that ANSI C requires that a file positioning function intervene between "
327 "output and input, unless an input operation encounters end-of-file. (If "
328 "this condition is not met, then a read is allowed to return the result of "
329 "writes other than the most recent.) Therefore it is good practice (and "
330 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
331 "B<fsetpos>(3) operation between write and read operations on such a "
332 "stream. This operation may be an apparent no-op (as in I<fseek(...,\\ 0L,\\ "
333 "SEEK_CUR)> called for its synchronizing side effect)."
334 msgstr ""
335 "Чтение и запись могут перемешиваться друг с другом в потоке, открытом для "
336 "чтения/записи, в любом порядке). Заметим, что в ANSI C требуется, чтобы "
337 "между выводом и вводом использовались функции позиционирования в файле, если "
338 "операция ввода не встретила конец файла. Если это условие не выполняется, то "
339 "при чтении разрешается возвращать результат, не совпадающий с данными самой "
340 "последней записи. Поэтому рекомендуется (а иногда и действительно необходимо "
341 "в Linux) использовать функции B<fseek>(3) или B<fgetpos>(3) между операциями "
342 "чтения и записи в одном потоке. Эти операции могут фактически быть пустыми "
343 "(например, I<fseek(..., 0L, SEEK_CUR)>, вызванная для того, чтобы возник её "
344 "побочный эффект синхронизации)."
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, fuzzy
350 #| msgid ""
351 #| "Opening a file in append mode (B<a> as the first character of I<mode>) "
352 #| "causes all subsequent write operations to this stream to occur at end-of-"
353 #| "file, as if preceded the call:"
354 msgid ""
355 "Opening a file in append mode (B<a> as the first character of I<mode>) "
356 "causes all subsequent write operations to this stream to occur at end-of-"
357 "file, as if preceded by the call:"
358 msgstr ""
359 "Открытие файла в режиме дописывания (B<a> в качестве первого символа "
360 "I<mode>) приводит к тому, что все последующие операции записи в этот поток "
361 "производятся в конец файла, как если бы перед ними была вызвана:"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "fseek(stream, 0, SEEK_END);\n"
368 msgstr "fseek(stream, 0, SEEK_END);\n"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "The file descriptor associated with the stream is opened as if by a call to "
375 "B<open>(2) with the following flags:"
376 msgstr ""
377 "Файловый дескриптор, связанный с потоком, открывается как при вызове "
378 "B<open>(2) со следующими флагами:"
379
380 #. type: tbl table
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "fopen() mode"
385 msgstr "режим fopen()"
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 "open() flags"
392 msgstr "флаги open()"
393
394 #. type: tbl table
395 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
396 #: opensuse-tumbleweed
397 #, no-wrap
398 msgid "r"
399 msgstr "r"
400
401 #. type: tbl table
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "O_RDONLY"
406 msgstr "O_RDONLY"
407
408 #. type: tbl table
409 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
410 #: opensuse-tumbleweed
411 #, no-wrap
412 msgid "w"
413 msgstr "w"
414
415 #. type: tbl table
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "O_WRONLY | O_CREAT | O_TRUNC"
420 msgstr "O_WRONLY | O_CREAT | O_TRUNC"
421
422 #. type: tbl table
423 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
424 #: opensuse-tumbleweed
425 #, no-wrap
426 msgid "a"
427 msgstr "a"
428
429 #. type: tbl table
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "O_WRONLY | O_CREAT | O_APPEND"
434 msgstr "O_WRONLY | O_CREAT | O_APPEND"
435
436 #. type: tbl table
437 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
438 #: opensuse-tumbleweed
439 #, fuzzy, no-wrap
440 #| msgid "+"
441 msgid "r+"
442 msgstr "+"
443
444 #. type: tbl table
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "O_RDWR"
449 msgstr "O_RDWR"
450
451 #. type: tbl table
452 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
453 #: opensuse-tumbleweed
454 #, fuzzy, no-wrap
455 #| msgid "+"
456 msgid "w+"
457 msgstr "+"
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "O_RDWR | O_CREAT | O_TRUNC"
464 msgstr "O_RDWR | O_CREAT | O_TRUNC"
465
466 #. type: tbl table
467 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
468 #: opensuse-tumbleweed
469 #, fuzzy, no-wrap
470 #| msgid "+"
471 msgid "a+"
472 msgstr "+"
473
474 #. type: tbl table
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "O_RDWR | O_CREAT | O_APPEND"
479 msgstr "O_RDWR | O_CREAT | O_APPEND"
480
481 #. type: SS
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, no-wrap
485 msgid "fdopen()"
486 msgstr "fdopen()"
487
488 #. type: Plain text
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 msgid ""
492 "The B<fdopen>() function associates a stream with the existing file "
493 "descriptor, I<fd>. The I<mode> of the stream (one of the values \"r\", \"r+"
494 "\", \"w\", \"w+\", \"a\", \"a+\") must be compatible with the mode of the "
495 "file descriptor. The file position indicator of the new stream is set to "
496 "that belonging to I<fd>, and the error and end-of-file indicators are "
497 "cleared. Modes \"w\" or \"w+\" do not cause truncation of the file. The "
498 "file descriptor is not dup'ed, and will be closed when the stream created by "
499 "B<fdopen>() is closed. The result of applying B<fdopen>() to a shared "
500 "memory object is undefined."
501 msgstr ""
502 "Функция B<fdopen>() связывает поток с существующим дескриптором файла I<fd>. "
503 "Режим I<mode> потока (одно из следующих значений: «r», «r+», «w», ,w+», «a», "
504 "«a+») должен быть совместим с режимом дескриптора файла. Указатель положения "
505 "в файле в новом потоке принимает значение, равное значению у I<fd>, а "
506 "указатели ошибок и конца файла очищаются. Режимы «w» или «w+» не обрезают "
507 "файл. При этом не делается копия дескриптора файла и он будет закрыт "
508 "одновременно с закрытием потока, созданного B<fdopen>(). Результат "
509 "применения B<fdopen>() к общему объекту памяти не определён."
510
511 #. type: SS
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "freopen()"
516 msgstr "freopen()"
517
518 #. type: Plain text
519 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
520 #: opensuse-tumbleweed
521 #, fuzzy
522 #| msgid ""
523 #| "The B<freopen>() function opens the file whose name is the string "
524 #| "pointed to by I<pathname> and associates the stream pointed to by "
525 #| "I<stream> with it. The original stream (if it exists) is closed. The "
526 #| "I<mode> argument is used just as in the B<fopen>() function."
527 msgid ""
528 "The B<freopen>() function opens the file whose name is the string pointed "
529 "to by I<path> and associates the stream pointed to by I<stream> with it. "
530 "The original stream (if it exists) is closed. The I<mode> argument is used "
531 "just as in the B<fopen>() function."
532 msgstr ""
533 "Функция B<freopen>() открывает файл с именем I<pathname> и связывает его с "
534 "потоком, указанным в I<stream>. Исходный поток (если такой существовал) "
535 "закрывается. Значение параметра I<mode> такое же как для функции B<fopen>()."
536
537 #. type: Plain text
538 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
539 #: opensuse-tumbleweed
540 #, fuzzy
541 #| msgid ""
542 #| "If the I<pathname> argument is a null pointer, B<freopen>() changes the "
543 #| "mode of the stream to that specified in I<mode>; that is, B<freopen>() "
544 #| "reopens the pathname that is associated with the stream. The "
545 #| "specification for this behavior was added in the C99 standard, which says:"
546 msgid ""
547 "If I<path> is a null pointer, B<freopen>() changes the mode of the stream "
548 "to that specified in I<mode>; that is, B<freopen>() reopens the pathname "
549 "that is associated with the stream. The specification for this behavior was "
550 "added in the C99 standard, which says:"
551 msgstr ""
552 "Если значение I<pathname> равно указателю null, то B<freopen>() изменяет "
553 "режим потока на указанный в I<mode>; то есть, B<freopen>() переоткрывает "
554 "pathname, связанный с потоком. Описание этого поведения было добавлено в "
555 "стандарт C99, где сказано:"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "In this case, the file descriptor associated with the stream need not be "
562 "closed if the call to B<freopen>() succeeds. It is implementation-defined "
563 "which changes of mode are permitted (if any), and under what circumstances."
564 msgstr ""
565 "В этом случае файловый дескриптор, связанный с потоком, не нужно закрывать, "
566 "если вызов B<freopen>() завершился без ошибок. Допустимость изменения режима "
567 "и при каких условиях определяется реализацией."
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "The primary use of the B<freopen>() function is to change the file "
574 "associated with a standard text stream (I<stderr>, I<stdin>, or I<stdout>)."
575 msgstr ""
576 "Основной задачей функции B<freopen>() является смена файла, связанного со "
577 "стандартным текстовым потоком (I<stderr>, I<stdin> или I<stdout>)."
578
579 #. type: SH
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "RETURN VALUE"
584 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, fuzzy
590 #| msgid ""
591 #| "Upon successful completion B<fopen>(), B<fdopen>() and B<freopen>() "
592 #| "return a I<FILE> pointer. Otherwise, NULL is returned and I<errno> is "
593 #| "set to indicate the error."
594 msgid ""
595 "Upon successful completion B<fopen>(), B<fdopen>(), and B<freopen>() return "
596 "a I<FILE> pointer. Otherwise, NULL is returned and I<errno> is set to "
597 "indicate the error."
598 msgstr ""
599 "При успешном выполнении B<fopen>(), B<fdopen>() и B<freopen>() возвращается "
600 "указатель I<FILE>. В противном случае возвращается NULL и I<errno> "
601 "присваивается код ошибки."
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 "ERRORS"
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<EINVAL>"
615 msgstr "B<EINVAL>"
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 msgid ""
621 "The I<mode> provided to B<fopen>(), B<fdopen>(), or B<freopen>() was "
622 "invalid."
623 msgstr ""
624 "Передано неверное значение I<mode> в B<fopen>(), B<fdopen>() или "
625 "B<freopen>()."
626
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, fuzzy
631 #| msgid ""
632 #| "The B<fopen>(), B<fdopen>() and B<freopen>() functions may also fail "
633 #| "and set I<errno> for any of the errors specified for the routine "
634 #| "B<malloc>(3)."
635 msgid ""
636 "The B<fopen>(), B<fdopen>(), and B<freopen>() functions may also fail and "
637 "set I<errno> for any of the errors specified for the routine B<malloc>(3)."
638 msgstr ""
639 "Функции B<fopen>(), B<fdopen>() и B<freopen>() могут также завершаться с "
640 "ошибками и устанавливают значение I<errno> равным какому-либо значению из "
641 "определённых в B<malloc>(3)."
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid ""
647 "The B<fopen>() function may also fail and set I<errno> for any of the "
648 "errors specified for the routine B<open>(2)."
649 msgstr ""
650 "Функция B<fopen>() при ошибках устанавливает значение I<errno> равным какому-"
651 "либо значению из определённых в B<open>(2)."
652
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 msgid ""
657 "The B<fdopen>() function may also fail and set I<errno> for any of the "
658 "errors specified for the routine B<fcntl>(2)."
659 msgstr ""
660 "Функция B<fdopen>() при ошибках устанавливает значение I<errno> равным "
661 "какому-либо значению из определённых в B<fcntl>(2)."
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "The B<freopen>() function may also fail and set I<errno> for any of the "
668 "errors specified for the routines B<open>(2), B<fclose>(3), and B<fflush>(3)."
669 msgstr ""
670 "Функция B<freopen>() при ошибках устанавливает I<errno> равным какому-либо "
671 "значению из определённых в B<open>(2), B<fclose>(3) и B<fflush>(3)."
672
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "ATTRIBUTES"
678 msgstr "АТРИБУТЫ"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "For an explanation of the terms used in this section, see B<attributes>(7)."
685 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
686
687 #. type: tbl table
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "Interface"
692 msgstr "Интерфейс"
693
694 #. type: tbl table
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid "Attribute"
699 msgstr "Атрибут"
700
701 #. type: tbl table
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 #, no-wrap
705 msgid "Value"
706 msgstr "Значение"
707
708 #. type: tbl table
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 #, no-wrap
712 msgid ".na\n"
713 msgstr ".na\n"
714
715 #. type: tbl table
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid ".nh\n"
720 msgstr ".nh\n"
721
722 #. type: tbl table
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid ""
727 "B<fopen>(),\n"
728 "B<fdopen>(),\n"
729 "B<freopen>()"
730 msgstr ""
731 "B<fopen>(),\n"
732 "B<fdopen>(),\n"
733 "B<freopen>()"
734
735 #. type: tbl table
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 #, no-wrap
739 msgid "Thread safety"
740 msgstr "Безвредность в нитях"
741
742 #. type: tbl table
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 #, no-wrap
746 msgid "MT-Safe"
747 msgstr "MT-Safe"
748
749 #. type: SH
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 #, no-wrap
753 msgid "STANDARDS"
754 msgstr "СТАНДАРТЫ"
755
756 #. type: TP
757 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
758 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
759 #, fuzzy, no-wrap
760 #| msgid "B<fmemopen>():"
761 msgid "B<fopen>()"
762 msgstr "B<fmemopen>():"
763
764 #. type: TQ
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, fuzzy, no-wrap
768 #| msgid "freopen()"
769 msgid "B<freopen>()"
770 msgstr "freopen()"
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 msgid "C11, POSIX.1-2008."
776 msgstr "C11, POSIX.1-2008."
777
778 #. type: TP
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 #, fuzzy, no-wrap
782 #| msgid "B<fmemopen>():"
783 msgid "B<fdopen>()"
784 msgstr "B<fmemopen>():"
785
786 #. type: Plain text
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 msgid "POSIX.1-2008."
790 msgstr "POSIX.1-2008."
791
792 #. type: SH
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, no-wrap
796 msgid "HISTORY"
797 msgstr "ИСТОРИЯ"
798
799 #. type: Plain text
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 msgid "POSIX.1-2001, C89."
803 msgstr "POSIX.1-2001, C89."
804
805 #. type: Plain text
806 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
807 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
808 msgid "POSIX.1-2001."
809 msgstr "POSIX.1-2001."
810
811 #. type: SH
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 #, no-wrap
815 msgid "NOTES"
816 msgstr "ПРИМЕЧАНИЯ"
817
818 #. type: SS
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 #, no-wrap
822 msgid "glibc notes"
823 msgstr "Замечания по glibc"
824
825 #. type: Plain text
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 msgid ""
829 "The GNU C library allows the following extensions for the string specified "
830 "in I<mode>:"
831 msgstr "Библиотека GNU C предоставляет следующие расширения строки в I<mode>:"
832
833 #. type: TP
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "B<c> (since glibc 2.3.3)"
838 msgstr "B<c> (начиная с glibc 2.3.3)"
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 #, fuzzy
844 #| msgid ""
845 #| "Do not make the open operation, or subsequent read and write operations, "
846 #| "thread cancellation points. This flag is ignored for B<fdopen>()."
847 msgid ""
848 "Do not make the open operation, or subsequent read and write operations, "
849 "thread cancelation points. This flag is ignored for B<fdopen>()."
850 msgstr ""
851 "Не выполнять операцию открытия, последующие чтение и запись, точки отмены "
852 "нити (thread cancellation points). Этот флаг игнорируется для B<fdopen>()."
853
854 #. type: TP
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 #, no-wrap
858 msgid "B<e> (since glibc 2.7)"
859 msgstr "B<e> (начиная с glibc 2.7)"
860
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 "Open the file with the B<O_CLOEXEC> flag. See B<open>(2) for more "
866 "information. This flag is ignored for B<fdopen>()."
867 msgstr ""
868 "Открыть файл с флагом B<O_CLOEXEC>. Подробности смотрите в B<open>(2). Этот "
869 "флаг игнорируется для B<fdopen>()."
870
871 #. type: TP
872 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
873 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
874 #, no-wrap
875 msgid "B<m> (since glibc 2.3)"
876 msgstr "B<m> (начиная с glibc 2.3)"
877
878 #. As at glibc 2.4:
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 "Attempt to access the file using B<mmap>(2), rather than I/O system calls "
884 "(B<read>(2), B<write>(2)). Currently, use of B<mmap>(2) is attempted only "
885 "for a file opened for reading."
886 msgstr ""
887 "Пытаться получить доступ к файлу с помощью B<mmap>(2), а не с помощью "
888 "системных операций ввода-вывода (B<read>(2), B<write>(2)). В настоящее время "
889 "B<mmap>(2) используется только для файла, открытого на чтение."
890
891 #. type: TP
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 #, no-wrap
895 msgid "B<x>"
896 msgstr "B<x>"
897
898 #. Since glibc 2.0?
899 #. FIXME . C11 specifies this flag
900 #. type: Plain text
901 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
902 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
903 msgid ""
904 "Open the file exclusively (like the B<O_EXCL> flag of B<open>(2)). If the "
905 "file already exists, B<fopen>() fails, and sets I<errno> to B<EEXIST>. "
906 "This flag is ignored for B<fdopen>()."
907 msgstr ""
908 "Открыть файл в монопольном режиме (как с флагом B<O_EXCL> у B<open>(2)). "
909 "Если файл уже существует, то B<fopen>() завершается с ошибкой и "
910 "устанавливает значение I<errno> равное B<EEXIST>. Этот флаг игнорируется для "
911 "B<fdopen>()."
912
913 #. type: Plain text
914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
916 msgid ""
917 "In addition to the above characters, B<fopen>() and B<freopen>() support "
918 "the following syntax in I<mode>:"
919 msgstr ""
920 "В дополнении к этим символам, для B<fopen>() и B<freopen>() поддерживается "
921 "следующий синтаксис в I<mode>:"
922
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 "B< ,ccs=>I<string>"
927 msgstr "B< ,ccs=>I<строка>"
928
929 #. type: Plain text
930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
932 msgid ""
933 "The given I<string> is taken as the name of a coded character set and the "
934 "stream is marked as wide-oriented. Thereafter, internal conversion "
935 "functions convert I/O to and from the character set I<string>. If the "
936 "B<,ccs=>I<string> syntax is not specified, then the wide-orientation of the "
937 "stream is determined by the first file operation. If that operation is a "
938 "wide-character operation, the stream is marked wide-oriented, and functions "
939 "to convert to the coded character set are loaded."
940 msgstr ""
941 "Передаваемая I<строка> используется как имя набора символов и поток "
942 "помечается как широкосимвольный. С того момента внутренние функции "
943 "преобразования перекодируют данные ввода-вывода в соответствии с набором "
944 "символов с именем I<строка>. Если синтаксис B<,ccs=>I<строка> не указан, то "
945 "широкосимвольность потока определяется по первой файловой операции. Если это "
946 "операция является широкосимвольной, то поток помечается как широкосимвольный "
947 "и загружаются функции для перекодировки."
948
949 #. type: SH
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 #, no-wrap
953 msgid "BUGS"
954 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
955
956 #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=12685
957 #. type: Plain text
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 #, fuzzy
961 #| msgid ""
962 #| "When parsing for individual flag characters in I<mode> (i.e., the "
963 #| "characters preceding the \"ccs\" specification), the glibc implementation "
964 #| "of B<fopen>() and B<freopen>() limits the number of characters examined "
965 #| "in I<mode> to 7 (or, in glibc versions before 2.14, to 6, which was not "
966 #| "enough to include possible specifications such as \"rb+cmxe\"). The "
967 #| "current implementation of B<fdopen>() parses at most 5 characters in "
968 #| "I<mode>."
969 msgid ""
970 "When parsing for individual flag characters in I<mode> (i.e., the characters "
971 "preceding the \"ccs\" specification), the glibc implementation of "
972 "B<fopen>() and B<freopen>() limits the number of characters examined in "
973 "I<mode> to 7 (or, before glibc 2.14, to 6, which was not enough to include "
974 "possible specifications such as \"rb+cmxe\"). The current implementation of "
975 "B<fdopen>() parses at most 5 characters in I<mode>."
976 msgstr ""
977 "При анализе отдельных флагов в I<mode> (т. е., символов перед «ccs») "
978 "реализация glibc для B<fopen>() и B<freopen>() ограничивает количество "
979 "обрабатываемых в I<mode> символов 7-ю (или, в glibc до версии 2.14, 6-ю, что "
980 "было недостаточно для включения всех возможных флагов, например «rb+cmxe»). "
981 "Текущая реализация B<fdopen>() анализирует в I<mode> не более 5 символов."
982
983 #. type: SH
984 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
985 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
986 #, no-wrap
987 msgid "SEE ALSO"
988 msgstr "СМОТРИТЕ ТАКЖЕ"
989
990 #. type: Plain text
991 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
992 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
993 msgid ""
994 "B<open>(2), B<fclose>(3), B<fileno>(3), B<fmemopen>(3), B<fopencookie>(3), "
995 "B<open_memstream>(3)"
996 msgstr ""
997 "B<open>(2), B<fclose>(3), B<fileno>(3), B<fmemopen>(3), B<fopencookie>(3), "
998 "B<open_memstream>(3)"
999
1000 #. type: TH
1001 #: debian-trixie
1002 #, no-wrap
1003 msgid "2024-05-02"
1004 msgstr "2 мая 2024 г."
1005
1006 #. type: TH
1007 #: debian-trixie
1008 #, no-wrap
1009 msgid "Linux man-pages 6.9.1"
1010 msgstr "Страницы руководства Linux 6.9.1"
1011
1012 #. type: Plain text
1013 #: debian-trixie
1014 msgid "Standard C library (I<libc>, I<-lc>)"
1015 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1016
1017 #. type: Plain text
1018 #: debian-trixie fedora-44 fedora-rawhide
1019 #, no-wrap
1020 msgid ""
1021 "B<FILE *fopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<);>\n"
1022 "B<FILE *fdopen(int >I<fd>B<, const char *>I<mode>B<);>\n"
1023 "B<FILE *freopen(const char *restrict >I<pathname>B<, const char *restrict >I<mode>B<,>\n"
1024 "B< FILE *restrict >I<stream>B<);>\n"
1025 msgstr ""
1026
1027 #. type: Plain text
1028 #: debian-trixie fedora-44 fedora-rawhide
1029 msgid ""
1030 "The B<fopen>() function opens the file whose name is the string pointed to "
1031 "by I<pathname> and associates a stream with it."
1032 msgstr ""
1033 "Функция B<fopen>() открывает файл с именем, которое задано в виде строки в "
1034 "I<pathname>, и связывает его с потоком."
1035
1036 #. type: Plain text
1037 #: debian-trixie fedora-44 fedora-rawhide
1038 #, fuzzy
1039 #| msgid ""
1040 #| "Reads and writes may be intermixed on read/write streams in any order. "
1041 #| "Note that ANSI C requires that a file positioning function intervene "
1042 #| "between output and input, unless an input operation encounters end-of-"
1043 #| "file. (If this condition is not met, then a read is allowed to return "
1044 #| "the result of writes other than the most recent.) Therefore it is good "
1045 #| "practice (and indeed sometimes necessary under Linux) to put an "
1046 #| "B<fseek>(3) or B<fgetpos>(3) operation between write and read "
1047 #| "operations on such a stream. This operation may be an apparent no-op (as "
1048 #| "in I<fseek(..., 0L, SEEK_CUR)> called for its synchronizing side effect)."
1049 msgid ""
1050 "Reads and writes may be intermixed on read/write streams in any order. Note "
1051 "that ANSI C requires that a file positioning function intervene between "
1052 "output and input, unless an input operation encounters end-of-file. (If "
1053 "this condition is not met, then a read is allowed to return the result of "
1054 "writes other than the most recent.) Therefore it is good practice (and "
1055 "indeed sometimes necessary under Linux) to put an B<fseek>(3) or "
1056 "B<fsetpos>(3) operation between write and read operations on such a "
1057 "stream. This operation may be an apparent no-op (as in I<fseek(..., 0L, "
1058 "SEEK_CUR)> called for its synchronizing side effect)."
1059 msgstr ""
1060 "Чтение и запись могут перемешиваться друг с другом в потоке, открытом для "
1061 "чтения/записи, в любом порядке). Заметим, что в ANSI C требуется, чтобы "
1062 "между выводом и вводом использовались функции позиционирования в файле, если "
1063 "операция ввода не встретила конец файла. Если это условие не выполняется, то "
1064 "при чтении разрешается возвращать результат, не совпадающий с данными самой "
1065 "последней записи. Поэтому рекомендуется (а иногда и действительно необходимо "
1066 "в Linux) использовать функции B<fseek>(3) или B<fgetpos>(3) между операциями "
1067 "чтения и записи в одном потоке. Эти операции могут фактически быть пустыми "
1068 "(например, I<fseek(..., 0L, SEEK_CUR)>, вызванная для того, чтобы возник её "
1069 "побочный эффект синхронизации)."
1070
1071 #. type: tbl table
1072 #: debian-trixie fedora-44 fedora-rawhide
1073 #, no-wrap
1074 msgid "I<r>"
1075 msgstr "I<r>"
1076
1077 #. type: tbl table
1078 #: debian-trixie fedora-44 fedora-rawhide
1079 #, no-wrap
1080 msgid "I<w>"
1081 msgstr "I<w>"
1082
1083 #. type: tbl table
1084 #: debian-trixie fedora-44 fedora-rawhide
1085 #, no-wrap
1086 msgid "I<a>"
1087 msgstr "I<a>"
1088
1089 #. type: tbl table
1090 #: debian-trixie fedora-44 fedora-rawhide
1091 #, no-wrap
1092 msgid "I<r+>"
1093 msgstr "I<r+>"
1094
1095 #. type: tbl table
1096 #: debian-trixie fedora-44 fedora-rawhide
1097 #, no-wrap
1098 msgid "I<w+>"
1099 msgstr "I<w+>"
1100
1101 #. type: tbl table
1102 #: debian-trixie fedora-44 fedora-rawhide
1103 #, no-wrap
1104 msgid "I<a+>"
1105 msgstr "I<a+>"
1106
1107 #. type: Plain text
1108 #: debian-trixie fedora-44 fedora-rawhide
1109 msgid ""
1110 "The B<freopen>() function opens the file whose name is the string pointed "
1111 "to by I<pathname> and associates the stream pointed to by I<stream> with "
1112 "it. The original stream (if it exists) is closed. The I<mode> argument is "
1113 "used just as in the B<fopen>() function."
1114 msgstr ""
1115 "Функция B<freopen>() открывает файл с именем I<pathname> и связывает его с "
1116 "потоком, указанным в I<stream>. Исходный поток (если такой существовал) "
1117 "закрывается. Значение параметра I<mode> такое же как для функции B<fopen>()."
1118
1119 #. type: Plain text
1120 #: debian-trixie fedora-44 fedora-rawhide
1121 msgid ""
1122 "If the I<pathname> argument is a null pointer, B<freopen>() changes the "
1123 "mode of the stream to that specified in I<mode>; that is, B<freopen>() "
1124 "reopens the pathname that is associated with the stream. The specification "
1125 "for this behavior was added in the C99 standard, which says:"
1126 msgstr ""
1127 "Если значение I<pathname> равно указателю null, то B<freopen>() изменяет "
1128 "режим потока на указанный в I<mode>; то есть, B<freopen>() переоткрывает "
1129 "pathname, связанный с потоком. Описание этого поведения было добавлено в "
1130 "стандарт C99, где сказано:"
1131
1132 #. type: TH
1133 #: fedora-44 fedora-rawhide
1134 #, no-wrap
1135 msgid "2024-07-23"
1136 msgstr "23 июля 2024 г."
1137
1138 #. type: TH
1139 #: fedora-44 fedora-rawhide
1140 #, no-wrap
1141 msgid "Linux man-pages 6.13"
1142 msgstr "Страницы руководства Linux 6.13"
1143
1144 #. type: TH
1145 #: mageia-cauldron
1146 #, no-wrap
1147 msgid "Linux man-pages 6.17"
1148 msgstr "Страницы руководства Linux 6.17"
1149
1150 #. type: TH
1151 #: opensuse-leap-16-1 opensuse-tumbleweed
1152 #, no-wrap
1153 msgid "Linux man-pages (unreleased)"
1154 msgstr "Страницы руководства Linux (не выпущены)"