Debian Codegraph @

po/ru/man2/read.2.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 # aereiae <[email protected]>, 2014.
5 # Azamat Hackimov <[email protected]>, 2013-2014, 2016.
6 # Dmitriy S. Seregin <[email protected]>, 2013.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Lockal <[email protected]>, 2013.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Баринов Владимир, 2016.
11 # Иван Павлов <[email protected]>, 2017,2019.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "read"
33 msgstr "read"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "read - read from a file descriptor"
60 msgstr "read - читает из файлового дескриптора"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<#include E<lt>unistd.hE<gt>>\n"
87 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
91 #: opensuse-tumbleweed
92 #, fuzzy, no-wrap
93 #| msgid "B<ssize_t read(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<);>\n"
94 msgid ""
95 "B<ssize_t read(>size_t count;\n"
96 "B< int >I<fd>B<, void >I<buf>B<[>I<count>B<], size_t >I<count>B<);>\n"
97 msgstr "B<ssize_t read(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<);>\n"
98
99 #. type: SH
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "DESCRIPTION"
104 msgstr "ОПИСАНИЕ"
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 msgid ""
110 "B<read>() attempts to read up to I<count> bytes from file descriptor I<fd> "
111 "into the buffer starting at I<buf>."
112 msgstr ""
113 "Вызов B<read>() пытается прочитать I<count> байт из файлового дескриптора "
114 "I<fd> в буфер, начинающийся по адресу I<buf>."
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "On files that support seeking, the read operation commences at the file "
121 "offset, and the file offset is incremented by the number of bytes read. If "
122 "the file offset is at or past the end of file, no bytes are read, and "
123 "B<read>() returns zero."
124 msgstr ""
125 "Для файлов, поддерживающих смещения, операция чтения начинается с файлового "
126 "смещения, и файловое смещение увеличивается на количество прочитанных байт. "
127 "Если файловое смещение находится за концом файла, то ничего не читается и "
128 "B<read>() возвращает ноль."
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "If I<count> is zero, B<read>() I<may> detect the errors described below. "
135 "In the absence of any errors, or if B<read>() does not check for errors, a "
136 "B<read>() with a I<count> of 0 returns zero and has no other effects."
137 msgstr ""
138 "Если значение I<count> равно 0, то B<read>() I<может> обнаружить ошибки, "
139 "описанные далее. При отсутствии ошибок, или если B<read>() не выполняет "
140 "проверки, то B<read>() с I<count> равным 0 возвращает 0 и ничего не меняет."
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 "According to POSIX.1, if I<count> is greater than B<SSIZE_MAX>, the result "
147 "is implementation-defined; see NOTES for the upper limit on Linux."
148 msgstr ""
149 "В соответствие с POSIX.1, если I<count> больше B<SSIZE_MAX>, то результат "
150 "зависит от реализации; смотрите ЗАМЕЧАНИЯ по верхнему пределу в Linux."
151
152 #. type: SH
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid "RETURN VALUE"
157 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid ""
163 "On success, the number of bytes read is returned (zero indicates end of "
164 "file), and the file position is advanced by this number. It is not an error "
165 "if this number is smaller than the number of bytes requested; this may "
166 "happen for example because fewer bytes are actually available right now "
167 "(maybe because we were close to end-of-file, or because we are reading from "
168 "a pipe, or from a terminal), or because B<read>() was interrupted by a "
169 "signal. See also NOTES."
170 msgstr ""
171 "При успешном выполнении возвращается количество прочитанных байт (ноль "
172 "означает конец файла), а позиция в файле увеличивается на это значение. Если "
173 "количество прочитанных байт меньше, чем количество запрошенных, то это не "
174 "считается ошибкой: например, это могло произойти из-за того, что прямо "
175 "сейчас доступно меньшее количество байт (может быть из-за того, что позиция "
176 "ближе к концу файла, или потому что выполняется чтение из канала или "
177 "терминала), или потому что работа B<read>() была прервана сигналом. См. "
178 "также ЗАМЕЧАНИЯ."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, fuzzy
184 #| msgid ""
185 #| "On error, -1 is returned, and I<errno> is set appropriately. In this "
186 #| "case, it is left unspecified whether the file position (if any) changes."
187 msgid ""
188 "On error, -1 is returned, and I<errno> is set to indicate the error. In "
189 "this case, it is left unspecified whether the file position (if any) changes."
190 msgstr ""
191 "В случае ошибки возвращается -1, а I<errno> устанавливается в "
192 "соответствующее значение. В этом случае изменение позиции файла остаётся "
193 "неопределённым (если это вообще происходило)."
194
195 #. type: SH
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "ERRORS"
200 msgstr "ОШИБКИ"
201
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "B<EAGAIN>"
207 msgstr "B<EAGAIN>"
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The file descriptor I<fd> refers to a file other than a socket and has been "
214 "marked nonblocking (B<O_NONBLOCK>), and the read would block. See "
215 "B<open>(2) for further details on the B<O_NONBLOCK> flag."
216 msgstr ""
217 "Файловый дескриптор I<fd> указывает на файл, не являющийся сокетом и "
218 "помеченный как неблокирующий ввод/вывод (B<O_NONBLOCK>), а чтение вызовет "
219 "блокировку. См. B<open>(2) для дальнейшей информации по флагу B<O_NONBLOCK>."
220
221 #. type: TP
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "B<EAGAIN> or B<EWOULDBLOCK>"
226 msgstr "B<EAGAIN> или B<EWOULDBLOCK>"
227
228 #. Actually EAGAIN on Linux
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "The file descriptor I<fd> refers to a socket and has been marked nonblocking "
234 "(B<O_NONBLOCK>), and the read would block. POSIX.1-2001 allows either error "
235 "to be returned for this case, and does not require these constants to have "
236 "the same value, so a portable application should check for both "
237 "possibilities."
238 msgstr ""
239 "Файловый дескриптор I<fd> указывает на сокет и он помечен как неблокирующий "
240 "(B<O_NONBLOCK>), а чтение вызвало бы блокировку. POSIX.1-2001 позволяет "
241 "вернуть любую ошибку в этом случае и не требует, чтобы эти константы имели "
242 "одинаковое значение, поэтому переносимое приложение должно проверять обе эти "
243 "возможности."
244
245 #. type: TP
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "B<EBADF>"
250 msgstr "B<EBADF>"
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid "I<fd> is not a valid file descriptor or is not open for reading."
256 msgstr ""
257 "I<fd> не является допустимым файловым дескриптором или не открыт на чтение."
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<EFAULT>"
264 msgstr "B<EFAULT>"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "I<buf> is outside your accessible address space."
270 msgstr "I<buf> находится за пределами доступного вам адресного пространства."
271
272 #. type: TP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "B<EINTR>"
277 msgstr "B<EINTR>"
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "The call was interrupted by a signal before any data was read; see "
284 "B<signal>(7)."
285 msgstr ""
286 "Вызов был прерван сигналом до того как были прочитаны данные; см. "
287 "B<signal>(7)."
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EINVAL>"
294 msgstr "B<EINVAL>"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "I<fd> is attached to an object which is unsuitable for reading; or the file "
301 "was opened with the B<O_DIRECT> flag, and either the address specified in "
302 "I<buf>, the value specified in I<count>, or the file offset is not suitably "
303 "aligned."
304 msgstr ""
305 "I<fd> присоединён к объекту, который не подходит для чтения; или файл был "
306 "открыт с указанием флага B<O_DIRECT>, или неправильно выравнены адрес в "
307 "I<buf>, значение I<count> или файловое смещение."
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "I<fd> was created via a call to B<timerfd_create>(2) and the wrong size "
314 "buffer was given to B<read>(); see B<timerfd_create>(2) for further "
315 "information."
316 msgstr ""
317 "I<fd> был создан вызовом B<timerfd_create>(2), а в B<read>() был передан "
318 "неверный размер буфера; подробней см. в B<timerfd_create>(2)."
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<EIO>"
325 msgstr "B<EIO>"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "I/O error. This will happen for example when the process is in a background "
332 "process group, tries to read from its controlling terminal, and either it is "
333 "ignoring or blocking B<SIGTTIN> or its process group is orphaned. It may "
334 "also occur when there is a low-level I/O error while reading from a disk or "
335 "tape. A further possible cause of B<EIO> on networked filesystems is when "
336 "an advisory lock had been taken out on the file descriptor and this lock has "
337 "been lost. See the I<Lost locks> section of B<fcntl>(2) for further "
338 "details."
339 msgstr ""
340 "Ошибка ввода/вывода. Например, это происходит когда процесс, находящийся в "
341 "фоновой группе процессов, пытается выполнить чтение из своего управляющего "
342 "терминала, и игнорирует или блокирует сигнал B<SIGTTIN>, или же его группа "
343 "процессов осталась без родителя. Это также может случиться, если произошла "
344 "низкоуровневая ошибка ввода-вывода при чтении с диска или ленты. Также "
345 "B<EIO> может возникать у сетевых файловых систем, когда консультативная "
346 "блокировка была убрана у дескриптора файла и потеряна. Подробности смотрите "
347 "в абзаце I<Потерянные блокировки> в B<fcntl>(2)."
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<EISDIR>"
354 msgstr "B<EISDIR>"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "I<fd> refers to a directory."
360 msgstr "I<fd> указывает на каталог."
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid "Other errors may occur, depending on the object connected to I<fd>."
366 msgstr ""
367 "В зависимости от объекта, на который указывает I<fd>, могут происходить и "
368 "другие ошибки."
369
370 #. type: SH
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "STANDARDS"
375 msgstr "СТАНДАРТЫ"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "POSIX.1-2008."
381 msgstr "POSIX.1-2008."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "HISTORY"
388 msgstr "ИСТОРИЯ"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "SVr4, 4.3BSD, POSIX.1-2001."
394 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "NOTES"
401 msgstr "ПРИМЕЧАНИЯ"
402
403 #. commit e28cc71572da38a5a12c1cfe4d7032017adccf69
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "On Linux, B<read>() (and similar system calls) will transfer at most "
409 "0x7ffff000 (2,147,479,552) bytes, returning the number of bytes actually "
410 "transferred. (This is true on both 32-bit and 64-bit systems.)"
411 msgstr ""
412 "В Linux B<read>() (и похожие системные вызовы) передаст не больше 0x7ffff000 "
413 "(2 147 479 552) байт, возвращая число байт, переданных на самом деле (это "
414 "утверждение справедливо как к 32-битным, так и к 64-битным системам)."
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid ""
420 "On NFS filesystems, reading small amounts of data will update the timestamp "
421 "only the first time, subsequent calls may not do so. This is caused by "
422 "client side attribute caching, because most if not all NFS clients leave "
423 "I<st_atime> (last file access time) updates to the server, and client side "
424 "reads satisfied from the client's cache will not cause I<st_atime> updates "
425 "on the server as there are no server-side reads. UNIX semantics can be "
426 "obtained by disabling client-side attribute caching, but in most situations "
427 "this will substantially increase server load and decrease performance."
428 msgstr ""
429 "На файловых системах NFS чтение небольших порций данных обновляет отметки "
430 "времени только в первый раз, последующие вызовы не делают этого. Это вызвано "
431 "кэшированием атрибутов с клиентской стороны, потому что большинство (если не "
432 "все) клиентов NFS предоставляют серверу обновлять I<st_atime> (время "
433 "последнего доступа), а запросы на чтение, которые удовлетворяются из "
434 "клиентского кэша, не вызывают обновления I<st_atime>, потому что данные не "
435 "читаются с сервера. Семантика UNIX может быть достигнута запретом "
436 "кэширования атрибутов на стороне клиента, но в большинстве случаев это "
437 "увеличит нагрузку на сервер и снизит производительность."
438
439 #. type: SH
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "BUGS"
444 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
445
446 #. type: Plain text
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 msgid ""
450 "According to POSIX.1-2008/SUSv4 Section XSI 2.9.7 (\"Thread Interactions "
451 "with Regular File Operations\"):"
452 msgstr ""
453 "В соответствие с POSIX.1-2008/SUSv4 раздел XSI 2.9.7 (\"Thread Interactions "
454 "with Regular File Operations\"):"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "All of the following functions shall be atomic with respect to each other in "
461 "the effects specified in POSIX.1-2008 when they operate on regular files or "
462 "symbolic links: ..."
463 msgstr ""
464 "Следующие функции должны выполняться атомарно по отношению друг к другу, "
465 "чтобы работать с обычными файлами или символическими ссылками так, как "
466 "указано в POSIX.1-2008: …"
467
468 #. http://thread.gmane.org/gmane.linux.kernel/1649458
469 #. From: Michael Kerrisk (man-pages <mtk.manpages <at> gmail.com>
470 #. Subject: Update of file offset on write() etc. is non-atomic with I/O
471 #. Date: 2014-02-17 15:41:37 GMT
472 #. Newsgroups: gmane.linux.kernel, gmane.linux.file-systems
473 #. commit 9c225f2655e36a470c4f58dbbc99244c5fc7f2d4
474 #. Author: Linus Torvalds <[email protected]>
475 #. Date: Mon Mar 3 09:36:58 2014 -0800
476 #. vfs: atomic f_pos accesses as per POSIX
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, fuzzy
481 #| msgid ""
482 #| "Among the APIs subsequently listed are B<read>() and B<readv>(2). And "
483 #| "among the effects that should be atomic across threads (and processes) "
484 #| "are updates of the file offset. However, on Linux before version 3.14, "
485 #| "this was not the case: if two processes that share an open file "
486 #| "description (see B<open>(2)) perform a B<read>() (or B<readv>(2)) at "
487 #| "the same time, then the I/O operations were not atomic with respect "
488 #| "updating the file offset, with the result that the reads in the two "
489 #| "processes might (incorrectly) overlap in the blocks of data that they "
490 #| "obtained. This problem was fixed in Linux 3.14."
491 msgid ""
492 "Among the APIs subsequently listed are B<read>() and B<readv>(2). And "
493 "among the effects that should be atomic across threads (and processes) are "
494 "updates of the file offset. However, before Linux 3.14, this was not the "
495 "case: if two processes that share an open file description (see B<open>(2)) "
496 "perform a B<read>() (or B<readv>(2)) at the same time, then the I/O "
497 "operations were not atomic with respect to updating the file offset, with "
498 "the result that the reads in the two processes might (incorrectly) overlap "
499 "in the blocks of data that they obtained. This problem was fixed in Linux "
500 "3.14."
501 msgstr ""
502 "Среди перечисленных в программном интерфейсе есть B<read>() и B<readv>(2). И "
503 "среди действий, которые должны выполняться атомарно между нитями (и "
504 "процессами), если обновление файлового смещения. Однако в Linux до версии "
505 "3.14 это было не так: если два процесса с общим открытым файловым описанием "
506 "(смотрите B<open>(2)) выполняют B<read>() (или B<readv>(2)) одновременно, то "
507 "операции ввода-вывода не атомарны при обновлении файлового смещения; в "
508 "результате прочитанные двумя процессами блоки данных могут (некорректно) "
509 "перекрываться. Эта ошибка исправлена в Linux 3.14."
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "SEE ALSO"
516 msgstr "СМОТРИТЕ ТАКЖЕ"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "B<close>(2), B<fcntl>(2), B<ioctl>(2), B<lseek>(2), B<open>(2), B<pread>(2), "
523 "B<readdir>(2), B<readlink>(2), B<readv>(2), B<select>(2), B<write>(2), "
524 "B<fread>(3)"
525 msgstr ""
526 "B<close>(2), B<fcntl>(2), B<ioctl>(2), B<lseek>(2), B<open>(2), B<pread>(2), "
527 "B<readdir>(2), B<readlink>(2), B<readv>(2), B<select>(2), B<write>(2), "
528 "B<fread>(3)"
529
530 #. type: TH
531 #: debian-trixie
532 #, no-wrap
533 msgid "2024-05-02"
534 msgstr "2 мая 2024 г."
535
536 #. type: TH
537 #: debian-trixie
538 #, no-wrap
539 msgid "Linux man-pages 6.9.1"
540 msgstr "Страницы руководства Linux 6.9.1"
541
542 #. type: Plain text
543 #: debian-trixie
544 msgid "Standard C library (I<libc>, I<-lc>)"
545 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
546
547 #. type: Plain text
548 #: debian-trixie fedora-44 fedora-rawhide
549 #, fuzzy, no-wrap
550 #| msgid "B<ssize_t read(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<);>\n"
551 msgid "B<ssize_t read(int >I<fd>B<, void >I<buf>B<[.>I<count>B<], size_t >I<count>B<);>\n"
552 msgstr "B<ssize_t read(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<);>\n"
553
554 #. type: TH
555 #: fedora-44 fedora-rawhide
556 #, no-wrap
557 msgid "2024-07-23"
558 msgstr "23 июля 2024 г."
559
560 #. type: TH
561 #: fedora-44 fedora-rawhide
562 #, no-wrap
563 msgid "Linux man-pages 6.13"
564 msgstr "Страницы руководства Linux 6.13"
565
566 #. type: TH
567 #: mageia-cauldron
568 #, no-wrap
569 msgid "Linux man-pages 6.17"
570 msgstr "Страницы руководства Linux 6.17"
571
572 #. type: TH
573 #: opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "Linux man-pages (unreleased)"
576 msgstr "Страницы руководства Linux (не выпущены)"