Debian Codegraph @

po/ru/man2/getrandom.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 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Vladislav <[email protected]>, 2015.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017, 2019.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "getrandom"
30 msgstr "getrandom"
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 "getrandom - obtain a series of random bytes"
57 msgstr "getrandom - возвращает серию произвольных байт"
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>sys/random.hE<gt>>\n"
84 msgstr "B<#include E<lt>sys/random.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<ssize_t getrandom(void *>I<buf>B<, size_t >I<buflen>B<, unsigned int >I<flags>B<);>\n"
91 msgid ""
92 "B<ssize_t getrandom(>size_t size;\n"
93 "B< void >I<buf>B<[>I<size>B<], size_t >I<size>B<, unsigned int >I<flags>B<);>\n"
94 msgstr "B<ssize_t getrandom(void *>I<buf>B<, size_t >I<buflen>B<, unsigned int >I<flags>B<);>\n"
95
96 #. type: SH
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "DESCRIPTION"
101 msgstr "ОПИСАНИЕ"
102
103 #. type: Plain text
104 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
105 #: opensuse-tumbleweed
106 #, fuzzy
107 #| msgid ""
108 #| "The B<getrandom>() system call fills the buffer pointed to by I<buf> "
109 #| "with up to I<buflen> random bytes. These bytes can be used to seed user-"
110 #| "space random number generators or for cryptographic purposes."
111 msgid ""
112 "The B<getrandom>() system call fills the buffer pointed to by I<buf> with "
113 "up to I<size> random bytes. These bytes can be used to seed user-space "
114 "random number generators or for cryptographic purposes."
115 msgstr ""
116 "Системный вызов B<getrandom>() заполняет буфер, указанный в I<buf>, "
117 "произвольными байтами в количестве до I<buflen>. Эти байты можно "
118 "использовать как начальные значения в генераторах произвольных чисел "
119 "пространства пользователя или с целями шифрования."
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "By default, B<getrandom>() draws entropy from the I<urandom> source (i.e., "
126 "the same source as the I</dev/urandom> device). This behavior can be "
127 "changed via the I<flags> argument."
128 msgstr ""
129 "По умолчанию, B<getrandom>() забирает энтропию из источника I<urandom> (т. "
130 "е., того же источника что и устройство I</dev/urandom>). Это поведение можно "
131 "изменить через параметр I<flags>."
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 "If the I<urandom> source has been initialized, reads of up to 256 bytes will "
138 "always return as many bytes as requested and will not be interrupted by "
139 "signals. No such guarantees apply for larger buffer sizes. For example, if "
140 "the call is interrupted by a signal handler, it may return a partially "
141 "filled buffer, or fail with the error B<EINTR>."
142 msgstr ""
143 "Если источник I<urandom> инициализирован, то из него можно прочитать не "
144 "более 256 байт, но всегда возвращается столько байт, сколько запрошено и это "
145 "не будет прерываться сигналами. Для буферов большего размера это не "
146 "гарантируется. Например, если вызов прерывается обработчиком сигнала, то он "
147 "может вернуть частично заполненный буфер или завершиться с ошибкой B<EINTR>."
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "If the I<urandom> source has not yet been initialized, then B<getrandom>() "
154 "will block, unless B<GRND_NONBLOCK> is specified in I<flags>."
155 msgstr ""
156 "Если источник I<urandom> ещё не инициализирован, то вызов B<getrandom>() "
157 "блокируется, если в I<flags> не указано значение B<GRND_NONBLOCK>."
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 "The I<flags> argument is a bit mask that can contain zero or more of the "
164 "following values ORed together:"
165 msgstr ""
166 "Аргумент I<flags> является битовой маской, которая может содержать ноль или "
167 "более следующих флагов:"
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<GRND_RANDOM>"
174 msgstr "B<GRND_RANDOM>"
175
176 #. type: Plain text
177 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
178 #: opensuse-tumbleweed
179 #, fuzzy
180 #| msgid ""
181 #| "If this bit is set, then random bytes are drawn from the I<random> source "
182 #| "(i.e., the same source as the I</dev/random> device) instead of the "
183 #| "I<urandom> source. The I<random> source is limited based on the entropy "
184 #| "that can be obtained from environmental noise. If the number of "
185 #| "available bytes in the I<random> source is less than requested in "
186 #| "I<buflen>, the call returns just the available random bytes. If no "
187 #| "random bytes are available, the behavior depends on the presence of "
188 #| "B<GRND_NONBLOCK> in the I<flags> argument."
189 msgid ""
190 "If this bit is set, then random bytes are drawn from the I<random> source "
191 "(i.e., the same source as the I</dev/random> device) instead of the "
192 "I<urandom> source. The I<random> source is limited based on the entropy "
193 "that can be obtained from environmental noise. If the number of available "
194 "bytes in the I<random> source is less than requested in I<size>, the call "
195 "returns just the available random bytes. If no random bytes are available, "
196 "the behavior depends on the presence of B<GRND_NONBLOCK> in the I<flags> "
197 "argument."
198 msgstr ""
199 "Если этот бит установлен, то произвольные байты берутся из источника "
200 "I<random> (т. е., того же источника что и устройство I</dev/urandom>), а не "
201 "из источника I<urandom>. Ограничение источника I<random> следует из "
202 "энтропии, которую можно получить из окружающего шума. Если количество "
203 "доступных байт в I<random> меньше запрашиваемых в I<buflen>, то вызов "
204 "завершается сразу после выдачи всех доступных произвольных байт. Если "
205 "произвольных байт нет, то поведение зависит от наличия флага "
206 "B<GRND_NONBLOCK> в параметре I<flags>."
207
208 #. type: TP
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "B<GRND_NONBLOCK>"
213 msgstr "B<GRND_NONBLOCK>"
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "By default, when reading from the I<random> source, B<getrandom>() blocks "
220 "if no random bytes are available, and when reading from the I<urandom> "
221 "source, it blocks if the entropy pool has not yet been initialized. If the "
222 "B<GRND_NONBLOCK> flag is set, then B<getrandom>() does not block in these "
223 "cases, but instead immediately returns -1 with I<errno> set to B<EAGAIN>."
224 msgstr ""
225 "По умолчанию, при чтении из источника I<random> вызов B<getrandom>() "
226 "блокируется, если произвольные байты недоступны, и а при чтении из источника "
227 "I<urandom> блокируется, если ещё не инициализирован пул энтропии. Если "
228 "указан флаг B<GRND_NONBLOCK>, то в этих случаях B<getrandom>() не "
229 "блокируется, а сразу возвращает -1 и присваивает I<errno> значение B<EAGAIN>."
230
231 #. type: SH
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "RETURN VALUE"
236 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
237
238 #. type: Plain text
239 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
240 #: opensuse-tumbleweed
241 #, fuzzy
242 #| msgid ""
243 #| "On success, B<getrandom>() returns the number of bytes that were copied "
244 #| "to the buffer I<buf>. This may be less than the number of bytes "
245 #| "requested via I<buflen> if either B<GRND_RANDOM> was specified in "
246 #| "I<flags> and insufficient entropy was present in the I<random> source or "
247 #| "the system call was interrupted by a signal."
248 msgid ""
249 "On success, B<getrandom>() returns the number of bytes that were copied to "
250 "the buffer I<buf>. This may be less than the number of bytes requested via "
251 "I<size> if either B<GRND_RANDOM> was specified in I<flags> and insufficient "
252 "entropy was present in the I<random> source or the system call was "
253 "interrupted by a signal."
254 msgstr ""
255 "При успешном выполнении B<getrandom>() возвращает количество скопированных в "
256 "буфер I<buf> байт. Это значение может быть меньше, чем количество "
257 "запрашиваемых в I<buflen> байт, если в I<flags> был указан B<GRND_RANDOM> и "
258 "нет достаточного количества энтропии в источнике I<random>, или если "
259 "системный вызов был прерван сигналом."
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
265 msgstr ""
266 "В случае ошибки возвращается -1, а I<errno> устанавливается в значение "
267 "ошибки."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "ERRORS"
274 msgstr "ОШИБКИ"
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<EAGAIN>"
281 msgstr "B<EAGAIN>"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "The requested entropy was not available, and B<getrandom>() would have "
288 "blocked if the B<GRND_NONBLOCK> flag was not set."
289 msgstr ""
290 "Запрошенное количество энтропии недоступно, и B<getrandom>() заблокировался "
291 "бы, если бы отсутствовал флаг B<GRND_NONBLOCK>."
292
293 #. type: TP
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "B<EFAULT>"
298 msgstr "B<EFAULT>"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "The address referred to by I<buf> is outside the accessible address space."
305 msgstr ""
306 "Адрес, указанный в I<buf>, лежит вне доступного адресного пространства."
307
308 #. type: TP
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "B<EINTR>"
313 msgstr "B<EINTR>"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "The call was interrupted by a signal handler; see the description of how "
320 "interrupted B<read>(2) calls on \"slow\" devices are handled with and "
321 "without the B<SA_RESTART> flag in the B<signal>(7) man page."
322 msgstr ""
323 "Вызов был прерван обработчиком сигнала; смотрите описание о прерывании "
324 "вызовов B<read>(2) при работе с «медленными» устройствами и при отсутствии "
325 "флага B<SA_RESTART> в справочной странице B<signal>(7)."
326
327 #. type: TP
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "B<EINVAL>"
332 msgstr "B<EINVAL>"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid "An invalid flag was specified in I<flags>."
338 msgstr "В I<flags> указан неверный флаг."
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<ENOSYS>"
345 msgstr "B<ENOSYS>"
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 "The glibc wrapper function for B<getrandom>() determined that the "
352 "underlying kernel does not implement this system call."
353 msgstr ""
354 "Обёрточная функция в glibc для B<getrandom>() определила, что используемое "
355 "ядро не поддерживает данный системный вызов."
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "STANDARDS"
362 msgstr "СТАНДАРТЫ"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid "Linux."
368 msgstr "Linux."
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 "HISTORY"
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 #, fuzzy
381 #| msgid "Since glibc 2.2.2:"
382 msgid "Linux 3.17, glibc 2.25."
383 msgstr "Начиная с glibc 2.2.2:"
384
385 #. type: SH
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "NOTES"
390 msgstr "ПРИМЕЧАНИЯ"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "For an overview and comparison of the various interfaces that can be used to "
397 "obtain randomness, see B<random>(7)."
398 msgstr ""
399 "Обзор и сравнение возможных интерфейсов, через которые можно получать "
400 "случайные данные, смотрите в B<random>(7)."
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid ""
406 "Unlike I</dev/random> and I</dev/urandom>, B<getrandom>() does not involve "
407 "the use of pathnames or file descriptors. Thus, B<getrandom>() can be "
408 "useful in cases where B<chroot>(2) makes I</dev> pathnames invisible, and "
409 "where an application (e.g., a daemon during start-up) closes a file "
410 "descriptor for one of these files that was opened by a library."
411 msgstr ""
412 "В отличие от I</dev/random> и I</dev/urandom>, в вызове B<getrandom>() не "
413 "используются пути или файловые дескрипторы. Таким образом, B<getrandom>() "
414 "полезен в случаях, когда B<chroot>(2) делает пути I</dev> невидимыми и "
415 "приложение (например, служба во время загрузки) закрывает файловый "
416 "дескриптор одного из этих файлов, которые были открыты библиотекой."
417
418 #. type: SS
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid "Maximum number of bytes returned"
423 msgstr "Возвращается максимальное количество байтов"
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid "As of Linux 3.19 the following limits apply:"
429 msgstr "На момент Linux 3.19 существуют следующие ограничения:"
430
431 #. type: IP
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, no-wrap
435 msgid "\\[bu]"
436 msgstr "\\[bu]"
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, fuzzy
442 #| msgid ""
443 #| "When reading from the I<urandom> source, a maximum of 33554431 bytes is "
444 #| "returned by a single call to B<getrandom>() on systems where I<int> has "
445 #| "a size of 32 bits."
446 msgid ""
447 "When reading from the I<urandom> source, a maximum of 32Mi-1 bytes is "
448 "returned by a single call to B<getrandom>() on systems where I<int> has a "
449 "size of 32 bits."
450 msgstr ""
451 "При чтении из источника I<urandom> в системах, где размер I<int> равен 32 "
452 "битам, один вызов B<getrandom>() возвращает максимум 33554431 байт."
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "When reading from the I<random> source, a maximum of 512 bytes is returned."
459 msgstr "При чтении из источника I<random> возвращается максимум 512 байт."
460
461 #. type: SS
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "Interruption by a signal handler"
466 msgstr "Прерывание обработчиком сигнала"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "When reading from the I<urandom> source (B<GRND_RANDOM> is not set), "
473 "B<getrandom>() will block until the entropy pool has been initialized "
474 "(unless the B<GRND_NONBLOCK> flag was specified). If a request is made to "
475 "read a large number of bytes (more than 256), B<getrandom>() will block "
476 "until those bytes have been generated and transferred from kernel memory to "
477 "I<buf>. When reading from the I<random> source (B<GRND_RANDOM> is set), "
478 "B<getrandom>() will block until some random bytes become available (unless "
479 "the B<GRND_NONBLOCK> flag was specified)."
480 msgstr ""
481 "При чтении из источника I<urandom> (B<GRND_RANDOM> не указан), "
482 "B<getrandom>() блокируется до тех пор, пока не специализируется пул энтропии "
483 "(если не указан флаг B<GRND_NONBLOCK>). Если запрос требует большого "
484 "количества байт (больше 256), B<getrandom>() будет заблокирован до тех пор, "
485 "пока байты не будут сгенерированы и переданы из памяти ядра в I<buf>. При "
486 "чтении из I<random> (указан B<GRND_RANDOM>), B<getrandom>() будет "
487 "заблокирован до тех пор, пока какое-то количество произвольных байт не "
488 "станет доступно (если не указан флаг B<GRND_NONBLOCK>)."
489
490 #. type: Plain text
491 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
492 #: opensuse-tumbleweed
493 #, fuzzy
494 #| msgid ""
495 #| "The behavior when a call to B<getrandom>() that is blocked while reading "
496 #| "from the I<urandom> source is interrupted by a signal handler depends on "
497 #| "the initialization state of the entropy buffer and on the request size, "
498 #| "I<buflen>. If the entropy is not yet initialized, then the call fails "
499 #| "with the B<EINTR> error. If the entropy pool has been initialized and "
500 #| "the request size is large (I<buflen>\\ E<gt>\\ 256), the call either "
501 #| "succeeds, returning a partially filled buffer, or fails with the error "
502 #| "B<EINTR>. If the entropy pool has been initialized and the request size "
503 #| "is small (I<buflen>\\ E<lt>=\\ 256), then B<getrandom>() will not fail "
504 #| "with B<EINTR>. Instead, it will return all of the bytes that have been "
505 #| "requested."
506 msgid ""
507 "The behavior when a call to B<getrandom>() that is blocked while reading "
508 "from the I<urandom> source is interrupted by a signal handler depends on the "
509 "initialization state of the entropy buffer and on the request size, "
510 "I<size>. If the entropy is not yet initialized, then the call fails with "
511 "the B<EINTR> error. If the entropy pool has been initialized and the "
512 "request size is large (I<size>\\ E<gt>\\ 256), the call either succeeds, "
513 "returning a partially filled buffer, or fails with the error B<EINTR>. If "
514 "the entropy pool has been initialized and the request size is small "
515 "(I<size>\\ E<lt>=\\ 256), then B<getrandom>() will not fail with B<EINTR>. "
516 "Instead, it will return all of the bytes that have been requested."
517 msgstr ""
518 "Поведение при прерывании обработчиком сигнала вызова B<getrandom>(), "
519 "заблокированного чтением источника I<urandom>, зависит от состояния "
520 "инициализации буфера энтропии и от запрашиваемого объёма I<buflen>. Если "
521 "энтропия ещё не инициализирована, то вызов завершается ошибкой B<EINTR>. "
522 "Если пул энтропии инициализирован и запрашиваемый объём большой (I<buflen>\\ "
523 "E<gt>\\ 256), то вызов или завершится успешно, вернув частично заполненный "
524 "буфер, или завершится с ошибкой B<EINTR>. Если пул энтропии инициализирован "
525 "и запрашиваемый объём мал (I<buflen>\\ E<lt>=\\ 256), то B<getrandom>() "
526 "завершится без ошибки B<EINTR>. Вместо этого, он вернёт все запрашиваемый "
527 "байты."
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "When reading from the I<random> source, blocking requests of any size can be "
534 "interrupted by a signal handler (the call fails with the error B<EINTR>)."
535 msgstr ""
536 "При чтении из источника I<random> блокирующие запросы на любой объём могут "
537 "быть прерваны обработчиком сигналом (вызов завершается с ошибкой B<EINTR>)."
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid ""
543 "Using B<getrandom>() to read small buffers (E<lt>=\\ 256 bytes) from the "
544 "I<urandom> source is the preferred mode of usage."
545 msgstr ""
546 "Использование B<getrandom>() для чтения маленьких буферов (E<lt>=\\ 256 "
547 "байт) из источника I<urandom> — предпочтительный способ использования."
548
549 #. type: Plain text
550 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 #, fuzzy
553 #| msgid ""
554 #| "The special treatment of small values of I<buflen> was designed for "
555 #| "compatibility with OpenBSD's B<getentropy>(3), which is nowadays "
556 #| "supported by glibc."
557 msgid ""
558 "The special treatment of small values of I<size> was designed for "
559 "compatibility with OpenBSD's B<getentropy>(3), which is nowadays supported "
560 "by glibc."
561 msgstr ""
562 "Специальный режим для маленького объёма I<buflen> был разработан для "
563 "совместимости с системным вызовом B<getentropy>(3) из OpenBSD, который "
564 "теперь поддерживается glibc."
565
566 #. type: Plain text
567 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
568 #: opensuse-tumbleweed
569 #, fuzzy
570 #| msgid ""
571 #| "The user of B<getrandom>() I<must> always check the return value, to "
572 #| "determine whether either an error occurred or fewer bytes than requested "
573 #| "were returned. In the case where B<GRND_RANDOM> is not specified and "
574 #| "I<buflen> is less than or equal to 256, a return of fewer bytes than "
575 #| "requested should never happen, but the careful programmer will check for "
576 #| "this anyway!"
577 msgid ""
578 "The user of B<getrandom>() I<must> always check the return value, to "
579 "determine whether either an error occurred or fewer bytes than requested "
580 "were returned. In the case where B<GRND_RANDOM> is not specified and "
581 "I<size> is less than or equal to 256, a return of fewer bytes than requested "
582 "should never happen, but the careful programmer will check for this anyway!"
583 msgstr ""
584 "Пользователь B<getrandom>() всегда I<должен> проверять возвращаемое "
585 "значение, чтобы определить что возникла ошибка или возвращено меньшее "
586 "количество запрошенных байт. В случае когда флаг B<GRND_RANDOM> не указан и "
587 "значение I<buflen> меньше или равно 256, возврат меньшего количества байт "
588 "чем запрошено никогда не происходит, но осторожный программист всегда "
589 "проверяет значение!"
590
591 #. type: SH
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 #, no-wrap
595 msgid "BUGS"
596 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
597
598 #. FIXME patch proposed https://lkml.org/lkml/2014/11/29/16
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid "As of Linux 3.19, the following bug exists:"
603 msgstr "В Linux 3.19 существуют следующие дефекты:"
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "Depending on CPU load, B<getrandom>() does not react to interrupts before "
610 "reading all bytes requested."
611 msgstr ""
612 "В зависимости от загруженности ЦП, B<getrandom>() не реагирует на "
613 "прерывания, пока не прочитает все запрашиваемые байты."
614
615 #. type: SH
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "SEE ALSO"
620 msgstr "СМОТРИТЕ ТАКЖЕ"
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "B<getentropy>(3), B<random>(4), B<urandom>(4), B<random>(7), B<signal>(7)"
627 msgstr ""
628 "B<getentropy>(3), B<random>(4), B<urandom>(4), B<random>(7), B<signal>(7)"
629
630 #. type: TH
631 #: debian-trixie
632 #, no-wrap
633 msgid "2024-05-02"
634 msgstr "2 мая 2024 г."
635
636 #. type: TH
637 #: debian-trixie
638 #, no-wrap
639 msgid "Linux man-pages 6.9.1"
640 msgstr "Страницы руководства Linux 6.9.1"
641
642 #. type: Plain text
643 #: debian-trixie
644 msgid "Standard C library (I<libc>, I<-lc>)"
645 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
646
647 #. type: Plain text
648 #: debian-trixie fedora-44 fedora-rawhide
649 #, fuzzy, no-wrap
650 #| msgid "B<ssize_t getrandom(void *>I<buf>B<, size_t >I<buflen>B<, unsigned int >I<flags>B<);>\n"
651 msgid "B<ssize_t getrandom(void >I<buf>B<[.>I<buflen>B<], size_t >I<buflen>B<, unsigned int >I<flags>B<);>\n"
652 msgstr "B<ssize_t getrandom(void *>I<buf>B<, size_t >I<buflen>B<, unsigned int >I<flags>B<);>\n"
653
654 #. type: Plain text
655 #: debian-trixie fedora-44 fedora-rawhide
656 msgid ""
657 "The B<getrandom>() system call fills the buffer pointed to by I<buf> with "
658 "up to I<buflen> random bytes. These bytes can be used to seed user-space "
659 "random number generators or for cryptographic purposes."
660 msgstr ""
661 "Системный вызов B<getrandom>() заполняет буфер, указанный в I<buf>, "
662 "произвольными байтами в количестве до I<buflen>. Эти байты можно "
663 "использовать как начальные значения в генераторах произвольных чисел "
664 "пространства пользователя или с целями шифрования."
665
666 #. type: Plain text
667 #: debian-trixie fedora-44 fedora-rawhide
668 msgid ""
669 "If this bit is set, then random bytes are drawn from the I<random> source "
670 "(i.e., the same source as the I</dev/random> device) instead of the "
671 "I<urandom> source. The I<random> source is limited based on the entropy "
672 "that can be obtained from environmental noise. If the number of available "
673 "bytes in the I<random> source is less than requested in I<buflen>, the call "
674 "returns just the available random bytes. If no random bytes are available, "
675 "the behavior depends on the presence of B<GRND_NONBLOCK> in the I<flags> "
676 "argument."
677 msgstr ""
678 "Если этот бит установлен, то произвольные байты берутся из источника "
679 "I<random> (т. е., того же источника что и устройство I</dev/urandom>), а не "
680 "из источника I<urandom>. Ограничение источника I<random> следует из "
681 "энтропии, которую можно получить из окружающего шума. Если количество "
682 "доступных байт в I<random> меньше запрашиваемых в I<buflen>, то вызов "
683 "завершается сразу после выдачи всех доступных произвольных байт. Если "
684 "произвольных байт нет, то поведение зависит от наличия флага "
685 "B<GRND_NONBLOCK> в параметре I<flags>."
686
687 #. type: Plain text
688 #: debian-trixie fedora-44 fedora-rawhide
689 msgid ""
690 "On success, B<getrandom>() returns the number of bytes that were copied to "
691 "the buffer I<buf>. This may be less than the number of bytes requested via "
692 "I<buflen> if either B<GRND_RANDOM> was specified in I<flags> and "
693 "insufficient entropy was present in the I<random> source or the system call "
694 "was interrupted by a signal."
695 msgstr ""
696 "При успешном выполнении B<getrandom>() возвращает количество скопированных в "
697 "буфер I<buf> байт. Это значение может быть меньше, чем количество "
698 "запрашиваемых в I<buflen> байт, если в I<flags> был указан B<GRND_RANDOM> и "
699 "нет достаточного количества энтропии в источнике I<random>, или если "
700 "системный вызов был прерван сигналом."
701
702 #. type: Plain text
703 #: debian-trixie fedora-44 fedora-rawhide
704 msgid ""
705 "The behavior when a call to B<getrandom>() that is blocked while reading "
706 "from the I<urandom> source is interrupted by a signal handler depends on the "
707 "initialization state of the entropy buffer and on the request size, "
708 "I<buflen>. If the entropy is not yet initialized, then the call fails with "
709 "the B<EINTR> error. If the entropy pool has been initialized and the "
710 "request size is large (I<buflen>\\ E<gt>\\ 256), the call either succeeds, "
711 "returning a partially filled buffer, or fails with the error B<EINTR>. If "
712 "the entropy pool has been initialized and the request size is small "
713 "(I<buflen>\\ E<lt>=\\ 256), then B<getrandom>() will not fail with "
714 "B<EINTR>. Instead, it will return all of the bytes that have been requested."
715 msgstr ""
716 "Поведение при прерывании обработчиком сигнала вызова B<getrandom>(), "
717 "заблокированного чтением источника I<urandom>, зависит от состояния "
718 "инициализации буфера энтропии и от запрашиваемого объёма I<buflen>. Если "
719 "энтропия ещё не инициализирована, то вызов завершается ошибкой B<EINTR>. "
720 "Если пул энтропии инициализирован и запрашиваемый объём большой (I<buflen>\\ "
721 "E<gt>\\ 256), то вызов или завершится успешно, вернув частично заполненный "
722 "буфер, или завершится с ошибкой B<EINTR>. Если пул энтропии инициализирован "
723 "и запрашиваемый объём мал (I<buflen>\\ E<lt>=\\ 256), то B<getrandom>() "
724 "завершится без ошибки B<EINTR>. Вместо этого, он вернёт все запрашиваемый "
725 "байты."
726
727 #. type: Plain text
728 #: debian-trixie fedora-44 fedora-rawhide
729 msgid ""
730 "The special treatment of small values of I<buflen> was designed for "
731 "compatibility with OpenBSD's B<getentropy>(3), which is nowadays supported "
732 "by glibc."
733 msgstr ""
734 "Специальный режим для маленького объёма I<buflen> был разработан для "
735 "совместимости с системным вызовом B<getentropy>(3) из OpenBSD, который "
736 "теперь поддерживается glibc."
737
738 #. type: Plain text
739 #: debian-trixie fedora-44 fedora-rawhide
740 msgid ""
741 "The user of B<getrandom>() I<must> always check the return value, to "
742 "determine whether either an error occurred or fewer bytes than requested "
743 "were returned. In the case where B<GRND_RANDOM> is not specified and "
744 "I<buflen> is less than or equal to 256, a return of fewer bytes than "
745 "requested should never happen, but the careful programmer will check for "
746 "this anyway!"
747 msgstr ""
748 "Пользователь B<getrandom>() всегда I<должен> проверять возвращаемое "
749 "значение, чтобы определить что возникла ошибка или возвращено меньшее "
750 "количество запрошенных байт. В случае когда флаг B<GRND_RANDOM> не указан и "
751 "значение I<buflen> меньше или равно 256, возврат меньшего количества байт "
752 "чем запрошено никогда не происходит, но осторожный программист всегда "
753 "проверяет значение!"
754
755 #. type: TH
756 #: fedora-44 fedora-rawhide
757 #, no-wrap
758 msgid "2024-07-23"
759 msgstr "23 июля 2024 г."
760
761 #. type: TH
762 #: fedora-44 fedora-rawhide
763 #, no-wrap
764 msgid "Linux man-pages 6.13"
765 msgstr "Страницы руководства Linux 6.13"
766
767 #. type: TH
768 #: mageia-cauldron
769 #, no-wrap
770 msgid "Linux man-pages 6.17"
771 msgstr "Страницы руководства Linux 6.17"
772
773 #. type: TH
774 #: opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "Linux man-pages (unreleased)"
777 msgstr "Страницы руководства Linux (не выпущены)"