Debian Codegraph @

po/ru/man3/fmemopen.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 "B<fmemopen>():"
29 msgid "fmemopen"
30 msgstr "B<fmemopen>():"
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-02-08"
37 msgstr "8 февраля 2026 г."
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 "fmemopen - open memory as stream"
57 msgstr "fmemopen - открывает память как поток"
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 #, fuzzy, no-wrap
90 #| msgid "B<FILE *fmemopen(void *>I<buf>B<, size_t >I<size>B<, const char *>I<mode>B<);>\n"
91 msgid ""
92 "B<FILE *fmemopen(>size_t size;\n"
93 "B< void >I<buf>B<[>I<size>B<], size_t >I<size>B<, const char *>I<mode>B<);>\n"
94 msgstr "B<FILE *fmemopen(void *>I<buf>B<, size_t >I<size>B<, const char *>I<mode>B<);>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
101 msgstr ""
102 "Требования макроса тестирования свойств для glibc (см. "
103 "B<feature_test_macros>(7)):"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid "B<fmemopen>():"
109 msgstr "B<fmemopen>():"
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 #, no-wrap
115 msgid ""
116 " Since glibc 2.10:\n"
117 " _POSIX_C_SOURCE E<gt>= 200809L\n"
118 " Before glibc 2.10:\n"
119 " _GNU_SOURCE\n"
120 msgstr ""
121 " Начиная с glibc 2.10:\n"
122 " _POSIX_C_SOURCE E<gt>= 200809L\n"
123 " До glibc 2.10:\n"
124 " _BSD_SOURCE\n"
125
126 #. type: SH
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid "DESCRIPTION"
131 msgstr "ОПИСАНИЕ"
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 msgid ""
137 "The B<fmemopen>() function opens a stream that permits the access specified "
138 "by I<mode>. The stream allows I/O to be performed on the string or memory "
139 "buffer pointed to by I<buf>."
140 msgstr ""
141 "Функция B<fmemopen>() открывает поток, тип доступа указывается в I<mode>. "
142 "Поток позволяет выполнять операции ввода-вывода со строкой или буфером "
143 "памяти, указанным в I<buf>."
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 msgid ""
149 "The I<mode> argument specifies the semantics of I/O on the stream, and is "
150 "one of the following:"
151 msgstr ""
152 "В аргументе I<mode> задаётся семантика ввода-вывода потока и может "
153 "указываться одно из следующих значений:"
154
155 #. type: TP
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "I<r>"
160 msgstr "I<r>"
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid "The stream is opened for reading."
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 "I<w>"
173 msgstr "I<w>"
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 "The stream is opened for writing."
179 msgstr "Поток открывается для записи."
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "I<a>"
186 msgstr "I<a>"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "Append; open the stream for writing, with the initial buffer position set to "
193 "the first null byte."
194 msgstr ""
195 "Добавление; поток открывается для записи, начальное положение в буфере "
196 "указывает на первый байт null."
197
198 #. type: TP
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "I<r+>"
203 msgstr "I<r+>"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid "Open the stream for reading and writing."
209 msgstr "Поток открывается для чтения и записи."
210
211 #. type: TP
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "I<w+>"
216 msgstr "I<w+>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, fuzzy
222 #| msgid ""
223 #| "Open the stream for reading and writing. The buffer contents are "
224 #| "truncated (i.e., \\(aq\\e0\\(aq is placed in the first byte of the "
225 #| "buffer)."
226 msgid ""
227 "Open the stream for reading and writing. The buffer contents are truncated "
228 "(i.e., \\[aq]\\[rs]0\\[aq] is placed in the first byte of the buffer)."
229 msgstr ""
230 "Поток открывается для чтения и записи. Содержимое буфера обрезается (то "
231 "есть, в первый байт буфера помещается \\(aq\\e0\\(aq)."
232
233 #. type: TP
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "I<a+>"
238 msgstr "I<a+>"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "Append; open the stream for reading and writing, with the initial buffer "
245 "position set to the first null byte."
246 msgstr ""
247 "Добавление; поток открывается для чтения и записи, начальное положение в "
248 "буфере указывает на первый байт null."
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "The stream maintains the notion of a current position, the location where "
255 "the next I/O operation will be performed. The current position is "
256 "implicitly updated by I/O operations. It can be explicitly updated using "
257 "B<fseek>(3), and determined using B<ftell>(3). In all modes other than "
258 "append, the initial position is set to the start of the buffer. In append "
259 "mode, if no null byte is found within the buffer, then the initial position "
260 "is I<size+1>."
261 msgstr ""
262 "Для потока поддерживается понятие текущего положения — место, откуда будет "
263 "выполнена следующая операция ввода-вывода. Текущее положение неявно "
264 "обновляется операциями ввода-вывода. Оно может быть изменено явным образом с "
265 "помощью B<fseek>(3) и получено с помощью B<ftell>(3). Во всех режимах кроме "
266 "добавления, начальное положение указывает на начало буфера. В режиме "
267 "добавления, если в буфере нет байта null, то начальное положение равно "
268 "I<size+1>."
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "If I<buf> is specified as NULL, then B<fmemopen>() allocates a buffer of "
275 "I<size> bytes. This is useful for an application that wants to write data "
276 "to a temporary buffer and then read it back again. The initial position is "
277 "set to the start of the buffer. The buffer is automatically freed when the "
278 "stream is closed. Note that the caller has no way to obtain a pointer to "
279 "the temporary buffer allocated by this call (but see B<open_memstream>(3))."
280 msgstr ""
281 "Если значение I<buf> равно NULL, то B<fmemopen>() выделяет буфер длиной "
282 "I<size> байт. Это полезно для приложений, которым нужно записать данные во "
283 "временный буфер и прочитать из него. Начальное положение указывает на начало "
284 "буфера. Буфер автоматически освобождается при закрытии потока. Заметим, что "
285 "вызывающий никогда не получит указатель на временный буфер, выделенный этим "
286 "вызовом (но смотрите B<open_memstream>(3))."
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, fuzzy
292 #| msgid ""
293 #| "If I<buf> is not NULL, then it should point to a buffer of at least "
294 #| "I<len> bytes allocated by the caller."
295 msgid ""
296 "If I<buf> is not NULL, then it should point to a buffer of at least I<size> "
297 "bytes allocated by the caller."
298 msgstr ""
299 "Если I<buf> не равно NULL, то значение должно указывать на буфер длиной не "
300 "менее I<len> байт, выделенный вызывающим."
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "When a stream that has been opened for writing is flushed (B<fflush>(3)) or "
307 "closed (B<fclose>(3)), a null byte is written at the end of the buffer if "
308 "there is space. The caller should ensure that an extra byte is available in "
309 "the buffer (and that I<size> counts that byte) to allow for this."
310 msgstr ""
311 "Когда поток, открытый на запись, сбрасывается (flushed) (B<fflush>(3)) или "
312 "закрывается (B<fclose>(3)), то в конец буфера записывается байт null, если "
313 "есть место. Вызывающий должен быть уверен, что в буфере есть место для "
314 "дополнительного байта (и в I<size> учитывается этот байт), чтобы это "
315 "произошло."
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, fuzzy
321 #| msgid ""
322 #| "In a stream opened for reading, null bytes (\\(aq\\e0\\(aq) in the buffer "
323 #| "do not cause read operations to return an end-of-file indication. A read "
324 #| "from the buffer will indicate end-of-file only when the current buffer "
325 #| "position advances I<size> bytes past the start of the buffer."
326 msgid ""
327 "In a stream opened for reading, null bytes (\\[aq]\\[rs]0\\[aq]) in the "
328 "buffer do not cause read operations to return an end-of-file indication. A "
329 "read from the buffer will indicate end-of-file only when the current buffer "
330 "position advances I<size> bytes past the start of the buffer."
331 msgstr ""
332 "В потоке, открытом на чтение, при обнаружении байтов null («\\e0») в буфере "
333 "операции чтения не возвращают конец файла. Чтение из буфера будет возвращать "
334 "конец файла, только когда текущее положение в буфере достигнет I<size> байт "
335 "от начала буфера."
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "Write operations take place either at the current position (for modes other "
342 "than append), or at the current size of the stream (for append modes)."
343 msgstr ""
344 "Операции записи выполняются, или по текущему положению (для всех режимов, "
345 "кроме добавления), или по текущему размеру потока (в режимах добавления)."
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "Attempts to write more than I<size> bytes to the buffer result in an error. "
352 "By default, such errors will be visible (by the absence of data) only when "
353 "the I<stdio> buffer is flushed. Disabling buffering with the following call "
354 "may be useful to detect errors at the time of an output operation:"
355 msgstr ""
356 "Попытка записать более I<size> байт в буфер приводит к ошибке. По умолчанию, "
357 "такие ошибки будут видимы (по отсутствию данных) только в момент сброса "
358 "буфера I<stdio>. Следующий вызов отключает буферизацию, что может быть "
359 "полезно для обнаружения ошибок в момент операции вывода:"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, fuzzy, no-wrap
365 #| msgid " setbuf(stream, NULL);\n"
366 msgid "setbuf(stream, NULL);\n"
367 msgstr " setbuf(stream, NULL);\n"
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "RETURN VALUE"
374 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "Upon successful completion, B<fmemopen>() returns a I<FILE> pointer. "
381 "Otherwise, NULL is returned and I<errno> is set to indicate the error."
382 msgstr ""
383 "При успешном выполнении B<fmemopen>() возвращается указатель I<FILE>. В "
384 "противном случае возвращается NULL и I<errno> присваивается код ошибки."
385
386 #. type: SH
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "ATTRIBUTES"
391 msgstr "АТРИБУТЫ"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "For an explanation of the terms used in this section, see B<attributes>(7)."
398 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
399
400 #. type: tbl table
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "Interface"
405 msgstr "Интерфейс"
406
407 #. type: tbl table
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "Attribute"
412 msgstr "Атрибут"
413
414 #. type: tbl table
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "Value"
419 msgstr "Значение"
420
421 #. type: tbl table
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid ".na\n"
426 msgstr ".na\n"
427
428 #. type: tbl table
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid ".nh\n"
433 msgstr ".nh\n"
434
435 #. type: tbl table
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "B<fmemopen>(),"
440 msgstr "B<fmemopen>(),"
441
442 #. type: tbl table
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "Thread safety"
447 msgstr "Безвредность в нитях"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "MT-Safe"
454 msgstr "MT-Safe"
455
456 #. type: SH
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "STANDARDS"
461 msgstr "СТАНДАРТЫ"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid "POSIX.1-2008."
467 msgstr "POSIX.1-2008."
468
469 #. type: SH
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "HISTORY"
474 msgstr "ИСТОРИЯ"
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, fuzzy
480 #| msgid "glibc 2.1. C99, POSIX.1-2001."
481 msgid "glibc 1.0.x. POSIX.1-2008."
482 msgstr "glibc 2.1. C99, POSIX.1-2001."
483
484 #. http://austingroupbugs.net/view.php?id=396
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, fuzzy
489 #| msgid ""
490 #| "POSIX.1-2008 specifies that \\(aqb\\(aq in I<mode> shall be ignored. "
491 #| "However, Technical Corrigendum 1 adjusts the standard to allow "
492 #| "implementation-specific treatment for this case, thus permitting the "
493 #| "glibc treatment of \\(aqb\\(aq."
494 msgid ""
495 "POSIX.1-2008 specifies that \\[aq]b\\[aq] in I<mode> shall be ignored. "
496 "However, Technical Corrigendum 1 adjusts the standard to allow "
497 "implementation-specific treatment for this case, thus permitting the glibc "
498 "treatment of \\[aq]b\\[aq]."
499 msgstr ""
500 "В POSIX.1-2008 указано, что символ «b» в I<mode> должен игнорироваться. "
501 "Однако в Technical Corrigendum 1 изменили стандарт, позволив реализации "
502 "решать что делать; это позволяет glibc учитывать «b»."
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, fuzzy
508 #| msgid ""
509 #| "With version 2.22, binary mode (see below) was removed, many longstanding "
510 #| "bugs in the implementation of B<fmemopen>() were fixed, and a new "
511 #| "versioned symbol was created for this interface."
512 msgid ""
513 "With glibc 2.22, binary mode (see below) was removed, many longstanding bugs "
514 "in the implementation of B<fmemopen>() were fixed, and a new versioned "
515 "symbol was created for this interface."
516 msgstr ""
517 "Начиная с версии 2.22 двоичный режим (смотрите ниже) был удалён, было "
518 "исправлено много дефектов в реализации B<fmemopen>() и для этого интерфейса "
519 "был создан новый символ с версией."
520
521 #. type: SS
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "Binary mode"
526 msgstr "Двоичный режим"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, fuzzy
532 #| msgid ""
533 #| "From version 2.9 to 2.21, the glibc implementation of B<fmemopen>() "
534 #| "supported a \"binary\" mode, enabled by specifying the letter \\(aqb\\(aq "
535 #| "as the second character in I<mode>. In this mode, writes don't "
536 #| "implicitly add a terminating null byte, and B<fseek>(3) B<SEEK_END> is "
537 #| "relative to the end of the buffer (i.e., the value specified by the "
538 #| "I<size> argument), rather than the current string length."
539 msgid ""
540 "From glibc 2.9 to glibc 2.21, the glibc implementation of B<fmemopen>() "
541 "supported a \"binary\" mode, enabled by specifying the letter \\[aq]b\\[aq] "
542 "as the second character in I<mode>. In this mode, writes don't implicitly "
543 "add a terminating null byte, and B<fseek>(3) B<SEEK_END> is relative to the "
544 "end of the buffer (i.e., the value specified by the I<size> argument), "
545 "rather than the current string length."
546 msgstr ""
547 "В версиях с 2.9 по 2.21 реализация B<fmemopen>() в glibc поддерживает "
548 "«двоичный» режим, включаемый в I<mode> указанием вторым символа \\(aqb\\(aq. "
549 "В этом режиме при записи не выполняется неявное добавление конечного байта "
550 "null и B<fseek>(3) B<SEEK_END> считается относительно конца буфера (т. е., "
551 "значения, указанного в аргументе I<size>), а не длины текущей строки."
552
553 #. http://sourceware.org/bugzilla/show_bug.cgi?id=12836
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, fuzzy
558 #| msgid ""
559 #| "An API bug afflicted the implementation of binary mode: to specify binary "
560 #| "mode, the \\(aqb\\(aq must be the I<second> character in I<mode>. Thus, "
561 #| "for example, \"wb+\" has the desired effect, but \"w+b\" does not. This "
562 #| "is inconsistent with the treatment of I<mode> by B<fopen>(3)."
563 msgid ""
564 "An API bug afflicted the implementation of binary mode: to specify binary "
565 "mode, the \\[aq]b\\[aq] must be the I<second> character in I<mode>. Thus, "
566 "for example, \"wb+\" has the desired effect, but \"w+b\" does not. This is "
567 "inconsistent with the treatment of I<mode> by B<fopen>(3)."
568 msgstr ""
569 "Дефект программного интерфейса перешёл и в реализацию двоичного режима: для "
570 "задания двоичного режима \\(aqb\\(aq должен указываться I<вторым> символом в "
571 "I<mode>. То есть, например, «wb+» сработает, а «w+b» — нет. Это не совпадает "
572 "с трактовкой I<mode> в B<fopen>(3)."
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, fuzzy
578 #| msgid ""
579 #| "Binary mode was removed in glibc 2.22; a \\(aqb\\(aq specified in I<mode> "
580 #| "has no effect."
581 msgid ""
582 "Binary mode was removed in glibc 2.22; a \\[aq]b\\[aq] specified in I<mode> "
583 "has no effect."
584 msgstr ""
585 "Двоичный режим удалён в glibc 2.22; указание \\(aqb\\(aq в I<mode> "
586 "игнорируется."
587
588 #. type: SH
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "NOTES"
593 msgstr "ПРИМЕЧАНИЯ"
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "There is no file descriptor associated with the file stream returned by this "
600 "function (i.e., B<fileno>(3) will return an error if called on the returned "
601 "stream)."
602 msgstr ""
603 "У файлового потока, возвращаемого этой функцией, отсутствует файловый "
604 "дескриптор (т. е., если файловый поток передать в B<fileno>(3), то "
605 "произойдёт ошибка)."
606
607 #. type: SH
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "BUGS"
612 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
613
614 #. http://sourceware.org/bugzilla/show_bug.cgi?id=11216
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, fuzzy
619 #| msgid ""
620 #| "In versions of glibc before 2.22, if I<size> is specified as zero, "
621 #| "B<fmemopen>() fails with the error B<EINVAL>. It would be more "
622 #| "consistent if this case successfully created a stream that then returned "
623 #| "end-of-file on the first attempt at reading; since version 2.22, the "
624 #| "glibc implementation provides that behavior."
625 msgid ""
626 "Before glibc 2.22, if I<size> is specified as zero, B<fmemopen>() fails "
627 "with the error B<EINVAL>. It would be more consistent if this case "
628 "successfully created a stream that then returned end-of-file on the first "
629 "attempt at reading; since glibc 2.22, the glibc implementation provides that "
630 "behavior."
631 msgstr ""
632 "В glibc до версии 2.22, если I<size> равно нулю, то B<fmemopen>() "
633 "завершается с ошибкой B<EINVAL>. Было бы логичней, если бы в этом случае "
634 "успешно создавался поток, который затем бы возвращал конец файла при первой "
635 "попытке его чтения; начиная с версии 2.22 реализация glibc поступает именно "
636 "так."
637
638 #. http://sourceware.org/bugzilla/show_bug.cgi?id=13152
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, fuzzy
643 #| msgid ""
644 #| "In versions of glibc before 2.22, specifying append mode (\"a\" or \"a+"
645 #| "\") for B<fmemopen>() sets the initial buffer position to the first null "
646 #| "byte, but (if the current position is reset to a location other than the "
647 #| "end of the stream) does not force subsequent writes to append at the end "
648 #| "of the stream. This bug is fixed in glibc 2.22."
649 msgid ""
650 "Before glibc 2.22, specifying append mode (\"a\" or \"a+\") for "
651 "B<fmemopen>() sets the initial buffer position to the first null byte, but "
652 "(if the current position is reset to a location other than the end of the "
653 "stream) does not force subsequent writes to append at the end of the "
654 "stream. This bug is fixed in glibc 2.22."
655 msgstr ""
656 "В glibc до версии 2.22 указание в B<fmemopen>() режима добавления («a» или "
657 "«a+») устанавливает начальное положение в буфере на первый байт null, но "
658 "(если положение сбрасывается в расположение, отличное от конца потока) не "
659 "заставляет последующие операции записи выполнять добавление в конец потока. "
660 "Этот дефект исправлен в glibc 2.22."
661
662 #. http://sourceware.org/bugzilla/show_bug.cgi?id=13151
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, fuzzy
667 #| msgid ""
668 #| "In versions of glibc before 2.22, if the I<mode> argument to "
669 #| "B<fmemopen>() specifies append (\"a\" or \"a+\"), and the I<size> "
670 #| "argument does not cover a null byte in I<buf>, then, according to "
671 #| "POSIX.1-2008, the initial buffer position should be set to the next byte "
672 #| "after the end of the buffer. However, in this case the glibc "
673 #| "B<fmemopen>() sets the buffer position to -1. This bug is fixed in "
674 #| "glibc 2.22."
675 msgid ""
676 "Before glibc 2.22, if the I<mode> argument to B<fmemopen>() specifies "
677 "append (\"a\" or \"a+\"), and the I<size> argument does not cover a null "
678 "byte in I<buf>, then, according to POSIX.1-2008, the initial buffer position "
679 "should be set to the next byte after the end of the buffer. However, in "
680 "this case the glibc B<fmemopen>() sets the buffer position to -1. This bug "
681 "is fixed in glibc 2.22."
682 msgstr ""
683 "В glibc до версии 2.22, если в аргументе I<mode> в B<fmemopen>() включено "
684 "добавление («a» или «a+») и аргумент I<size> не учитывает байт null в "
685 "I<buf>, то согласно POSIX.1-2008 начальное положение буфера должно указывать "
686 "на следующий байт за концом буфера. Однако, в этом случае glibc "
687 "B<fmemopen>() присваивает положению буфера значение -1. Этот дефект "
688 "исправлен в glibc 2.22."
689
690 #. https://sourceware.org/bugzilla/show_bug.cgi?id=14292
691 #. type: Plain text
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, fuzzy
695 #| msgid ""
696 #| "In versions of glibc before 2.22, when a call to B<fseek>(3) with a "
697 #| "I<whence> value of B<SEEK_END> was performed on a stream created by "
698 #| "B<fmemopen>(), the I<offset> was I<subtracted> from the end-of-stream "
699 #| "position, instead of being added. This bug is fixed in glibc 2.22."
700 msgid ""
701 "Before glibc 2.22, when a call to B<fseek>(3) with a I<whence> value of "
702 "B<SEEK_END> was performed on a stream created by B<fmemopen>(), the "
703 "I<offset> was I<subtracted> from the end-of-stream position, instead of "
704 "being added. This bug is fixed in glibc 2.22."
705 msgstr ""
706 "В glibc до версии 2.22 при вызове B<fseek>(3) со значением I<whence>, равным "
707 "B<SEEK_END>, и для потока, созданного B<fmemopen>(), значение I<offset> "
708 "I<вычитается> из положения конца потока, а не добавляется. Этот дефект "
709 "исправлен в glibc 2.22."
710
711 #. http://sourceware.org/bugzilla/show_bug.cgi?id=6544
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, fuzzy
716 #| msgid ""
717 #| "The glibc 2.9 addition of \"binary\" mode for B<fmemopen>() silently "
718 #| "changed the ABI: previously, B<fmemopen>() ignored \\(aqb\\(aq in "
719 #| "I<mode>."
720 msgid ""
721 "The glibc 2.9 addition of \"binary\" mode for B<fmemopen>() silently "
722 "changed the ABI: previously, B<fmemopen>() ignored \\[aq]b\\[aq] in I<mode>."
723 msgstr ""
724 "При дополнении B<fmemopen>() в glibc 2.9 «двоичным» режимом было потихоньку "
725 "изменено ABI: раньше B<fmemopen>() игнорировала «b» в I<mode>."
726
727 #. type: SH
728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
730 #, no-wrap
731 msgid "EXAMPLES"
732 msgstr "ПРИМЕРЫ"
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 msgid ""
738 "The program below uses B<fmemopen>() to open an input buffer, and "
739 "B<open_memstream>(3) to open a dynamically sized output buffer. The "
740 "program scans its input string (taken from the program's first command-line "
741 "argument) reading integers, and writes the squares of these integers to the "
742 "output buffer. An example of the output produced by this program is the "
743 "following:"
744 msgstr ""
745 "Программа, показанная ниже, использует B<fmemopen>() для открытия входного "
746 "буфера и B<open_memstream>(3) для открытия выходного буфера с динамически "
747 "изменяющимся размером. Программа сканирует входную строку (первый аргумент "
748 "командной строки программы), читая целые числа, и записывает квадраты этих "
749 "чисел в выходной буфер. Пример результата работы программы:"
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, fuzzy, no-wrap
755 #| msgid ""
756 #| "$B< ./a.out \\(aq1 23 43\\(aq>\n"
757 #| "size=11; ptr=1 529 1849\n"
758 msgid ""
759 "$B< ./a.out \\[aq]1 23 43\\[aq]>\n"
760 "size=11; ptr=1 529 1849\n"
761 msgstr ""
762 "$B< ./a.out \\(aq1 23 43\\(aq>\n"
763 "размер=11; ptr=1 529 1849\n"
764
765 #. type: SS
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 #, no-wrap
769 msgid "Program source"
770 msgstr "Исходный код программы"
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 #, no-wrap
776 msgid ""
777 "#define _GNU_SOURCE\n"
778 "#include E<lt>err.hE<gt>\n"
779 "#include E<lt>stdio.hE<gt>\n"
780 "#include E<lt>stdlib.hE<gt>\n"
781 "#include E<lt>string.hE<gt>\n"
782 "\\&\n"
783 "int\n"
784 "main(int argc, char *argv[])\n"
785 "{\n"
786 " FILE *out, *in;\n"
787 " int v, s;\n"
788 " size_t size;\n"
789 " char *ptr;\n"
790 "\\&\n"
791 " if (argc != 2) {\n"
792 " fprintf(stderr, \"Usage: %s \\[aq]E<lt>numE<gt>...\\[aq]\\[rs]n\", argv[0]);\n"
793 " exit(EXIT_FAILURE);\n"
794 " }\n"
795 "\\&\n"
796 " in = fmemopen(argv[1], strlen(argv[1]), \"r\");\n"
797 " if (in == NULL)\n"
798 " err(EXIT_FAILURE, \"fmemopen\");\n"
799 "\\&\n"
800 " out = open_memstream(&ptr, &size);\n"
801 " if (out == NULL)\n"
802 " err(EXIT_FAILURE, \"open_memstream\");\n"
803 "\\&\n"
804 " for (;;) {\n"
805 " s = fscanf(in, \"%d\", &v);\n"
806 " if (s E<lt>= 0)\n"
807 " break;\n"
808 "\\&\n"
809 " s = fprintf(out, \"%d \", v * v);\n"
810 " if (s == -1)\n"
811 " err(EXIT_FAILURE, \"fprintf\");\n"
812 " }\n"
813 "\\&\n"
814 " fclose(in);\n"
815 " fclose(out);\n"
816 "\\&\n"
817 " printf(\"size=%zu; ptr=%s\\[rs]n\", size, ptr);\n"
818 "\\&\n"
819 " free(ptr);\n"
820 " exit(EXIT_SUCCESS);\n"
821 "}\n"
822 msgstr ""
823
824 #. SRC END
825 #. type: SH
826 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
827 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
828 #, no-wrap
829 msgid "SEE ALSO"
830 msgstr "СМОТРИТЕ ТАКЖЕ"
831
832 #. type: Plain text
833 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
834 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
835 msgid "B<fopen>(3), B<fopencookie>(3), B<open_memstream>(3)"
836 msgstr "B<fopen>(3), B<fopencookie>(3), B<open_memstream>(3)"
837
838 #. type: TH
839 #: debian-trixie
840 #, no-wrap
841 msgid "2024-06-15"
842 msgstr "15 июня 2024 г."
843
844 #. type: TH
845 #: debian-trixie
846 #, no-wrap
847 msgid "Linux man-pages 6.9.1"
848 msgstr "Страницы руководства Linux 6.9.1"
849
850 #. type: Plain text
851 #: debian-trixie
852 msgid "Standard C library (I<libc>, I<-lc>)"
853 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
854
855 #. type: Plain text
856 #: debian-trixie fedora-44 fedora-rawhide
857 #, fuzzy, no-wrap
858 #| msgid "B<FILE *fmemopen(void *>I<buf>B<, size_t >I<size>B<, const char *>I<mode>B<);>\n"
859 msgid "B<FILE *fmemopen(void >I<buf>B<[.>I<size>B<], size_t >I<size>B<, const char *>I<mode>B<);>\n"
860 msgstr "B<FILE *fmemopen(void *>I<buf>B<, size_t >I<size>B<, const char *>I<mode>B<);>\n"
861
862 #. type: TH
863 #: fedora-44 fedora-rawhide
864 #, no-wrap
865 msgid "2024-07-23"
866 msgstr "23 июля 2024 г."
867
868 #. type: TH
869 #: fedora-44 fedora-rawhide
870 #, no-wrap
871 msgid "Linux man-pages 6.13"
872 msgstr "Страницы руководства Linux 6.13"
873
874 #. type: TH
875 #: mageia-cauldron
876 #, no-wrap
877 msgid "Linux man-pages 6.17"
878 msgstr "Страницы руководства Linux 6.17"
879
880 #. type: TH
881 #: opensuse-leap-16-1 opensuse-tumbleweed
882 #, no-wrap
883 msgid "Linux man-pages (unreleased)"
884 msgstr "Страницы руководства Linux (не выпущены)"