Debian Codegraph @

po/ru/man2/recv.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 "recv"
33 msgstr "recv"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2025-10-29"
40 msgstr "29 октября 2025 г."
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 "recv, recvfrom, recvmsg - receive a message from a socket"
60 msgstr "recv, recvfrom, recvmsg - принимает сообщение из сокета"
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>sys/socket.hE<gt>>\n"
87 msgstr "B<#include E<lt>sys/socket.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 ""
94 #| "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
95 #| "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
96 #| "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
97 #| "B< socklen_t *restrict >I<addrlen>B<);>\n"
98 #| "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
99 msgid ""
100 "B<ssize_t recv(>size_t size;\n"
101 "B< int >I<sockfd>B<, void >I<buf>B<[>I<size>B<], size_t >I<size>B<,>\n"
102 "B< int >I<flags>B<);>\n"
103 "B<ssize_t recvfrom(>size_t size;\n"
104 "B< int >I<sockfd>B<, void >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n"
105 "B< int >I<flags>B<,>\n"
106 "B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n"
107 "B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n"
108 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
109 msgstr ""
110 "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
111 "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
112 "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
113 "B< socklen_t *restrict >I<addrlen>B<);>\n"
114 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
115
116 #. type: SH
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid "DESCRIPTION"
121 msgstr "ОПИСАНИЕ"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "The B<recv>(), B<recvfrom>(), and B<recvmsg>() calls are used to receive "
128 "messages from a socket. They may be used to receive data on both "
129 "connectionless and connection-oriented sockets. This page first describes "
130 "common features of all three system calls, and then describes the "
131 "differences between the calls."
132 msgstr ""
133 "Системные вызовы B<recv>(), B<recvfrom>() и B<recvmsg>() используются для "
134 "получения сообщений из сокета. Они могут использоваться для получения "
135 "данных, независимо от того, является ли сокет ориентированным на соединения "
136 "или нет. В этой странице сперва описаны общие свойства всех трёх системных "
137 "вызовов, а затем описываются различия между ними."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The only difference between B<recv>() and B<read>(2) is the presence of "
144 "I<flags>. With a zero I<flags> argument, B<recv>() is generally equivalent "
145 "to B<read>(2) (but see NOTES). Also, the following call"
146 msgstr ""
147 "Вызов B<recv>() отличается от B<read>(2) только наличием аргумента I<flags>. "
148 "Если значение I<flags> равно нулю, то вызов B<recv>() эквивалентен "
149 "B<read>(2) (но смотрите ЗАМЕЧАНИЯ). Также, вызов"
150
151 #. type: Plain text
152 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
153 #: opensuse-leap-16-1 opensuse-tumbleweed
154 #, fuzzy, no-wrap
155 #| msgid "recv(sockfd, buf, len, flags);\n"
156 msgid "recv(sockfd, buf, size, flags);\n"
157 msgstr "recv(sockfd, buf, len, flags);\n"
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 "is equivalent to"
163 msgstr "равнозначно"
164
165 #. type: Plain text
166 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
167 #: opensuse-leap-16-1 opensuse-tumbleweed
168 #, fuzzy, no-wrap
169 #| msgid "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
170 msgid "recvfrom(sockfd, buf, size, flags, NULL, NULL);\n"
171 msgstr "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
172
173 #. type: Plain text
174 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
175 #: opensuse-leap-16-1 opensuse-tumbleweed
176 #, fuzzy
177 #| msgid ""
178 #| "All three calls return the length of the message on successful "
179 #| "completion. If a message is too long to fit in the supplied buffer, "
180 #| "excess bytes may be discarded depending on the type of socket the message "
181 #| "is received from."
182 msgid ""
183 "All three calls return the size of the message on successful completion. If "
184 "a message is too long to fit in the supplied buffer, excess bytes may be "
185 "discarded depending on the type of socket the message is received from."
186 msgstr ""
187 "При успешном выполнении все три вызова возвращают длину сообщения. Если "
188 "сообщение слишком длинное и не поместилось в предоставленный буфер, лишние "
189 "байты могут быть отброшены, в зависимости от типа сокета, на котором "
190 "принимаются сообщения."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, fuzzy
196 #| msgid ""
197 #| "If no messages are available at the socket, the receive calls wait for a "
198 #| "message to arrive, unless the socket is nonblocking (see B<fcntl>(2)), in "
199 #| "which case the value -1 is returned and the external variable I<errno> is "
200 #| "set to B<EAGAIN> or B<EWOULDBLOCK>. The receive calls normally return "
201 #| "any data available, up to the requested amount, rather than waiting for "
202 #| "receipt of the full amount requested."
203 msgid ""
204 "If no messages are available at the socket, the receive calls wait for a "
205 "message to arrive, unless the socket is nonblocking (see B<fcntl>(2)), in "
206 "which case the value -1 is returned and I<errno> is set to B<EAGAIN> or "
207 "B<EWOULDBLOCK>. The receive calls normally return any data available, up to "
208 "the requested amount, rather than waiting for receipt of the full amount "
209 "requested."
210 msgstr ""
211 "Если на сокете не доступно ни одного сообщения, то обсуждаемые вызовы "
212 "ожидают их прибытия, если сокет не помечен как неблокирующий (см. "
213 "B<fcntl>(2)), в противном случае возвращается значение -1, а внешняя "
214 "переменная I<errno> устанавливается в значение B<EAGAIN> или B<EWOULDBLOCK>. "
215 "Все эти вызовы обычно сразу возвращают все доступные данные вплоть до "
216 "запрошенного объема, а не ждут, пока появятся данные полной запрошенной "
217 "длины."
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid ""
223 "An application can use B<select>(2), B<poll>(2), or B<epoll>(7) to "
224 "determine when more data arrives on a socket."
225 msgstr ""
226 "Для определения появления новых данных в сокете приложение может "
227 "использовать B<select>(2), B<poll>(2) или B<epoll>(7)."
228
229 #. type: SS
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "The flags argument"
234 msgstr "Аргумент флагов"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "The I<flags> argument is formed by ORing one or more of the following values:"
241 msgstr ""
242 "Аргумент I<flags> формируется с помощью объединения логической операцией ИЛИ "
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<MSG_CMSG_CLOEXEC> (B<recvmsg>() only; since Linux 2.6.23)"
250 msgstr "B<MSG_CMSG_CLOEXEC> (только для B<recvmsg>(); начиная с Linux 2.6.23)"
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 ""
256 "Set the close-on-exec flag for the file descriptor received via a UNIX "
257 "domain file descriptor using the B<SCM_RIGHTS> operation (described in "
258 "B<unix>(7)). This flag is useful for the same reasons as the B<O_CLOEXEC> "
259 "flag of B<open>(2)."
260 msgstr ""
261 "Установить флаг close-on-exec для файлового дескриптора, полученного через "
262 "доменный файловый дескриптор UNIX, с помощью операции B<SCM_RIGHTS> (описана "
263 "в B<unix>(7)). Этот флаг полезен по тем же причинам что и флаг B<O_CLOEXEC> "
264 "у B<open>(2)."
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<MSG_DONTWAIT> (since Linux 2.2)"
271 msgstr "B<MSG_DONTWAIT> (начиная с Linux 2.2)"
272
273 #. type: Plain text
274 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
275 #: opensuse-tumbleweed
276 #, fuzzy
277 #| msgid ""
278 #| "Enables nonblocking operation; if the operation would block, the call "
279 #| "fails with the error B<EAGAIN> or B<EWOULDBLOCK>. This provides similar "
280 #| "behavior to setting the B<O_NONBLOCK> flag (via the B<fcntl>(2) "
281 #| "B<F_SETFL> operation), but differs in that B<MSG_DONTWAIT> is a per-call "
282 #| "option, whereas B<O_NONBLOCK> is a setting on the open file description "
283 #| "(see B<open>(2)), which will affect all threads in the calling process "
284 #| "and as well as other processes that hold file descriptors referring to "
285 #| "the same open file description."
286 msgid ""
287 "Enables nonblocking operation; if the operation would block, the call fails "
288 "with B<EAGAIN> or B<EWOULDBLOCK>. This provides similar behavior to setting "
289 "the B<O_NONBLOCK> flag (via the B<fcntl>(2) B<F_SETFL> operation), but "
290 "differs in that B<MSG_DONTWAIT> is a per-call option, whereas B<O_NONBLOCK> "
291 "is a setting on the open file description (see B<open>(2)), which will "
292 "affect all threads in the calling process as well as other processes that "
293 "hold file descriptors referring to the same open file description."
294 msgstr ""
295 "Включить неблокирующий режим. Если операция могла бы привести к блокировке, "
296 "возвращается B<EAGAIN> или B<EWOULDBLOCK>. Такое поведение подобно заданию "
297 "флага B<O_NONBLOCK> (в B<fcntl>(2) операцией B<F_SETFL>), но отличие в том, "
298 "что B<MSG_DONTWAIT> указывается в вызове, а B<O_NONBLOCK> задаётся в "
299 "описании открытого файла (смотрите B<open>(2)), что влияет на все нити "
300 "вызывающего процесса, а также на другие процессы, у которых есть файловые "
301 "дескрипторы, ссылающиеся на это описание открытого файла."
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<MSG_ERRQUEUE> (since Linux 2.2)"
308 msgstr "B<MSG_ERRQUEUE> (начиная с Linux 2.2)"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "This flag specifies that queued errors should be received from the socket "
315 "error queue. The error is passed in an ancillary message with a type "
316 "dependent on the protocol (for IPv4 B<IP_RECVERR>). The user should supply "
317 "a buffer of sufficient size. See B<cmsg>(3) and B<ip>(7) for more "
318 "information. The payload of the original packet that caused the error is "
319 "passed as normal data via I<msg_iovec>. The original destination address of "
320 "the datagram that caused the error is supplied via I<msg_name>."
321 msgstr ""
322 "Указание этого флага позволяет получить из очереди ошибок сокета "
323 "накопившиеся ошибки. Ошибка передаётся в вспомогательном сообщении тип "
324 "которого зависит от протокола (для IPv4 это B<IP_RECVERR>). Вызывающий "
325 "должен предоставить буфер достаточного размера. Дополнительная информация "
326 "приведена в B<cmsg>(3) и B<ip>(7). Содержимое исходного пакета, который "
327 "привёл к ошибке, передаётся в виде обычных данных через I<msg_iovec>. "
328 "Исходный адрес назначения датаграммы, которая привела к ошибке, передаётся "
329 "через I<msg_name>."
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid "The error is supplied in a I<sock_extended_err> structure:"
335 msgstr "Ошибка передаётся в виде структуры I<sock_extended_err>:"
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 #, fuzzy, no-wrap
341 #| msgid ""
342 #| "struct sock_extended_err\n"
343 #| "{\n"
344 #| " uint32_t ee_errno; /* Error number */\n"
345 #| " uint8_t ee_origin; /* Where the error originated */\n"
346 #| " uint8_t ee_type; /* Type */\n"
347 #| " uint8_t ee_code; /* Code */\n"
348 #| " uint8_t ee_pad; /* Padding */\n"
349 #| " uint32_t ee_info; /* Additional information */\n"
350 #| " uint32_t ee_data; /* Other data */\n"
351 #| " /* More data may follow */\n"
352 #| "};\n"
353 msgid ""
354 "#define SO_EE_ORIGIN_NONE 0\n"
355 "#define SO_EE_ORIGIN_LOCAL 1\n"
356 "#define SO_EE_ORIGIN_ICMP 2\n"
357 "#define SO_EE_ORIGIN_ICMP6 3\n"
358 "\\&\n"
359 "struct sock_extended_err\n"
360 "{\n"
361 " uint32_t ee_errno; /* Error number */\n"
362 " uint8_t ee_origin; /* Where the error originated */\n"
363 " uint8_t ee_type; /* Type */\n"
364 " uint8_t ee_code; /* Code */\n"
365 " uint8_t ee_pad; /* Padding */\n"
366 " uint32_t ee_info; /* Additional information */\n"
367 " uint32_t ee_data; /* Other data */\n"
368 " /* More data may follow */\n"
369 "};\n"
370 "\\&\n"
371 "struct sockaddr *SO_EE_OFFENDER(struct sock_extended_err *);\n"
372 msgstr ""
373 "struct sock_extended_err\n"
374 "{\n"
375 " uint32_t ee_errno; /* номер ошибки */\n"
376 " uint8_t ee_origin; /* источник её происхождения */\n"
377 " uint8_t ee_type; /* тип */\n"
378 " uint8_t ee_code; /* код */\n"
379 " uint8_t ee_pad; /* заполнение для выравнивания */\n"
380 " uint32_t ee_info; /* дополнительная информация */\n"
381 " uint32_t ee_data; /* прочие данные */\n"
382 " /* далее могут содержаться ещё данные */\n"
383 "};\n"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "I<ee_errno> contains the I<errno> number of the queued error. I<ee_origin> "
390 "is the origin code of where the error originated. The other fields are "
391 "protocol-specific. The macro B<SO_EE_OFFENDER> returns a pointer to the "
392 "address of the network object where the error originated from given a "
393 "pointer to the ancillary message. If this address is not known, the "
394 "I<sa_family> member of the I<sockaddr> contains B<AF_UNSPEC> and the other "
395 "fields of the I<sockaddr> are undefined. The payload of the packet that "
396 "caused the error is passed as normal data."
397 msgstr ""
398 "В I<ee_errno> содержится значение I<errno> для ожидающей ошибки. В "
399 "I<ee_origin> содержится источник происхождения ошибки. Смысл остальных полей "
400 "зависит от протокола. Макрос B<SO_EE_OFFENDER> возвращает указатель на адрес "
401 "сетевого объекта, породившего ошибку. Если этот адрес неизвестен, то поле "
402 "I<sa_family> структуры I<sockaddr> содержит значение B<AF_UNSPEC>, а прочие "
403 "поля структуры I<sockaddr> не определены. Содержимое пакета, вызвавшего "
404 "ошибку, передаётся в виде обычных данных."
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "For local errors, no address is passed (this can be checked with the "
411 "I<cmsg_len> member of the I<cmsghdr>). For error receives, the "
412 "B<MSG_ERRQUEUE> flag is set in the I<msghdr>. After an error has been "
413 "passed, the pending socket error is regenerated based on the next queued "
414 "error and will be passed on the next socket operation."
415 msgstr ""
416 "Для локальных ошибок адрес не передаётся (это можно выяснить, проверив поле "
417 "I<cmsg_len> структуры I<cmsghdr>). Для ошибок при приёме устанавливается "
418 "флаг B<MSG_ERRQUEUE> в I<msghdr>. После того, как ошибка передана программе, "
419 "следующая ошибка в очереди ошибок становится ожидающей ошибкой и передается "
420 "программе при следующей операции на сокете."
421
422 #. type: TP
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid "B<MSG_OOB>"
427 msgstr "B<MSG_OOB>"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "This flag requests receipt of out-of-band data that would not be received in "
434 "the normal data stream. Some protocols place expedited data at the head of "
435 "the normal data queue, and thus this flag cannot be used with such protocols."
436 msgstr ""
437 "Этот флаг запрашивает приём внеполосных данных, которые в противном случае "
438 "не были бы получены в обычном потоке данных. Некоторые протоколы помещают "
439 "данные повышенной срочности в начало очереди с обычными данными, и поэтому "
440 "этот флаг не может использоваться с такими протоколами."
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<MSG_PEEK>"
447 msgstr "B<MSG_PEEK>"
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "This flag causes the receive operation to return data from the beginning of "
454 "the receive queue without removing that data from the queue. Thus, a "
455 "subsequent receive call will return the same data."
456 msgstr ""
457 "Этот флаг заставляет выбрать данные из начала очереди приёма, но не удалять "
458 "их оттуда. Таким образом, последующий вызов вернёт те же самые данные."
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<MSG_TRUNC> (since Linux 2.2)"
465 msgstr "B<MSG_TRUNC> (начиная с Linux 2.2)"
466
467 #. commit 9f6f9af7694ede6314bed281eec74d588ba9474f
468 #. type: Plain text
469 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
470 #: opensuse-leap-16-1 opensuse-tumbleweed
471 #, fuzzy
472 #| msgid ""
473 #| "For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), "
474 #| "netlink (since Linux 2.6.22), and UNIX datagram (since Linux 3.4) "
475 #| "sockets: return the real length of the packet or datagram, even when it "
476 #| "was longer than the passed buffer."
477 msgid ""
478 "For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), "
479 "netlink (since Linux 2.6.22), and UNIX datagram as well as sequenced-packet "
480 "(since Linux 3.4) sockets: return the real size of the packet or datagram, "
481 "even when it was longer than the passed buffer."
482 msgstr ""
483 "Для «сырых» данных (B<AF_PACKET>), дейтаграмм Интернета (начиная с Linux "
484 "2.4.27/2.6.8), netlink (начиная с Linux 2.6.22) и дейтаграмм UNIX (начиная с "
485 "Linux 3.4) возвращает реальную длину пакета или дейтаграммы, даже если она "
486 "была больше, чем предоставленный буфер."
487
488 #. type: Plain text
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 msgid "For use with Internet stream sockets, see B<tcp>(7)."
492 msgstr ""
493 "Описание использования с потоковым сокетами Интернета смотрите в B<tcp>(7)."
494
495 #. type: TP
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "B<MSG_WAITALL> (since Linux 2.2)"
500 msgstr "B<MSG_WAITALL> (начиная с Linux 2.2)"
501
502 #. type: Plain text
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 msgid ""
506 "This flag requests that the operation block until the full request is "
507 "satisfied. However, the call may still return less data than requested if a "
508 "signal is caught, an error or disconnect occurs, or the next data to be "
509 "received is of a different type than that returned. This flag has no effect "
510 "for datagram sockets."
511 msgstr ""
512 "Этим флагом включается блокирование операции до полной обработки запроса. "
513 "Однако, этот вызов всё равно может вернуть меньше данных, чем было "
514 "запрошено, если был пойман сигнал, произошла ошибка или разрыв соединения, "
515 "или если начали поступать данные другого типа, не того, который был сначала. "
516 "Этот флаг не влияет на датаграммные сокеты."
517
518 #. type: SS
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "recvfrom()"
523 msgstr "recvfrom()"
524
525 #. type: Plain text
526 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
527 #: opensuse-leap-16-1 opensuse-tumbleweed
528 #, fuzzy
529 #| msgid ""
530 #| "B<recvfrom>() places the received message into the buffer I<buf>. The "
531 #| "caller must specify the size of the buffer in I<len>."
532 msgid ""
533 "B<recvfrom>() places the received message into the buffer I<buf>. The "
534 "caller must specify the size of the buffer in I<size>."
535 msgstr ""
536 "Вызов B<recvfrom>() помещает принятое сообщение в буфер I<buf>. Вызывающий "
537 "должен указать размер буфера в I<len>."
538
539 #. #-#-#-#-# archlinux: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
540 #. (Note: for datagram sockets in both the UNIX and Internet domains,
541 #. .I src_addr
542 #. is filled in.
543 #. .I src_addr
544 #. is also filled in for stream sockets in the UNIX domain, but is not
545 #. filled in for stream sockets in the Internet domain.)
546 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
547 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
548 #. type: Plain text
549 #. #-#-#-#-# debian-trixie: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
550 #. (Note: for datagram sockets in both the UNIX and Internet domains,
551 #. .I src_addr
552 #. is filled in.
553 #. .I src_addr
554 #. is also filled in for stream sockets in the UNIX domain, but is not
555 #. filled in for stream sockets in the Internet domain.)
556 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
557 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
558 #. type: Plain text
559 #. #-#-#-#-# debian-unstable: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
560 #. (Note: for datagram sockets in both the UNIX and Internet domains,
561 #. .I src_addr
562 #. is filled in.
563 #. .I src_addr
564 #. is also filled in for stream sockets in the UNIX domain, but is not
565 #. filled in for stream sockets in the Internet domain.)
566 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
567 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
568 #. type: Plain text
569 #. #-#-#-#-# fedora-44: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
570 #. (Note: for datagram sockets in both the UNIX and Internet domains,
571 #. .I src_addr
572 #. is filled in.
573 #. .I src_addr
574 #. is also filled in for stream sockets in the UNIX domain, but is not
575 #. filled in for stream sockets in the Internet domain.)
576 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
577 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
578 #. type: Plain text
579 #. #-#-#-#-# fedora-rawhide: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
580 #. (Note: for datagram sockets in both the UNIX and Internet domains,
581 #. .I src_addr
582 #. is filled in.
583 #. .I src_addr
584 #. is also filled in for stream sockets in the UNIX domain, but is not
585 #. filled in for stream sockets in the Internet domain.)
586 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
587 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
588 #. type: Plain text
589 #. #-#-#-#-# mageia-cauldron: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
590 #. (Note: for datagram sockets in both the UNIX and Internet domains,
591 #. .I src_addr
592 #. is filled in.
593 #. .I src_addr
594 #. is also filled in for stream sockets in the UNIX domain, but is not
595 #. filled in for stream sockets in the Internet domain.)
596 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
597 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
598 #. type: Plain text
599 #. #-#-#-#-# opensuse-leap-16-1: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
600 #. (Note: for datagram sockets in both the UNIX and Internet domains,
601 #. .I src_addr
602 #. is filled in.
603 #. .I src_addr
604 #. is also filled in for stream sockets in the UNIX domain, but is not
605 #. filled in for stream sockets in the Internet domain.)
606 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
607 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
608 #. type: Plain text
609 #. #-#-#-#-# opensuse-tumbleweed: recv.2.pot (PACKAGE VERSION) #-#-#-#-#
610 #. (Note: for datagram sockets in both the UNIX and Internet domains,
611 #. .I src_addr
612 #. is filled in.
613 #. .I src_addr
614 #. is also filled in for stream sockets in the UNIX domain, but is not
615 #. filled in for stream sockets in the Internet domain.)
616 #. [The above notes on AF_UNIX and AF_INET sockets apply as at
617 #. Kernel 2.4.18. (MTK, 22 Jul 02)]
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid ""
622 "If I<src_addr> is not NULL, and the underlying protocol provides the source "
623 "address of the message, that source address is placed in the buffer pointed "
624 "to by I<src_addr>. In this case, I<addrlen> is a value-result argument. "
625 "Before the call, it should be initialized to the size of the buffer "
626 "associated with I<src_addr>. Upon return, I<addrlen> is updated to contain "
627 "the actual size of the source address. The returned address is truncated if "
628 "the buffer provided is too small; in this case, I<addrlen> will return a "
629 "value greater than was supplied to the call."
630 msgstr ""
631 "Если значение I<src_addr> не равно NULL, и в нижележащем протоколе "
632 "используется адрес источника сообщения, то адрес источника помещается в "
633 "буфер, указанный в I<src_addr>. В этом случае I<addrlen> является аргументом-"
634 "результатом. Перед вызовом ему должно быть присвоено значение длины буфера, "
635 "связанного с I<src_addr>. При возврате I<addrlen> обновляется и содержит "
636 "действительный размер адреса источника. Возвращаемый адрес обрезается, если "
637 "предоставленный буфер слишком мал; в этом случае I<addrlen> будет содержать "
638 "значение большее, чем указывалось в вызове."
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid ""
644 "If the caller is not interested in the source address, I<src_addr> and "
645 "I<addrlen> should be specified as NULL."
646 msgstr ""
647 "Если вызывающему адрес источника не нужен, то значение I<src_addr> и "
648 "I<addrlen> должно быть равно NULL."
649
650 #. type: SS
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 #, no-wrap
654 msgid "recv()"
655 msgstr "recv()"
656
657 #. type: Plain text
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 msgid ""
661 "The B<recv>() call is normally used only on a I<connected> socket (see "
662 "B<connect>(2)). It is equivalent to the call:"
663 msgstr ""
664 "Вызов B<recv>(), обычно, используется только на I<соединённом> сокете "
665 "(смотрите B<connect>(2)). Он идентичен вызову:"
666
667 #. type: Plain text
668 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
669 #: opensuse-tumbleweed
670 #, fuzzy, no-wrap
671 #| msgid "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
672 msgid "recvfrom(fd, buf, size, flags, NULL, NULL);\n"
673 msgstr "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
674
675 #. type: SS
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 #, no-wrap
679 msgid "recvmsg()"
680 msgstr "recvmsg()"
681
682 #. type: Plain text
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 msgid ""
686 "The B<recvmsg>() call uses a I<msghdr> structure to minimize the number of "
687 "directly supplied arguments. This structure is defined as follows in "
688 "I<E<lt>sys/socket.hE<gt>>:"
689 msgstr ""
690 "Для минимизации количества передаваемых аргументов в вызов B<recvmsg>() "
691 "используется структура I<msghdr>. Она определена в I<E<lt>sys/socket.hE<gt>> "
692 "следующим образом:"
693
694 #. type: Plain text
695 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
696 #: opensuse-leap-16-1 opensuse-tumbleweed
697 #, fuzzy, no-wrap
698 #| msgid ""
699 #| "struct msghdr {\n"
700 #| " void *msg_name; /* Optional address */\n"
701 #| " socklen_t msg_namelen; /* Size of address */\n"
702 #| " struct iovec *msg_iov; /* Scatter/gather array */\n"
703 #| " size_t msg_iovlen; /* # elements in msg_iov */\n"
704 #| " void *msg_control; /* Ancillary data, see below */\n"
705 #| " size_t msg_controllen; /* Ancillary data buffer len */\n"
706 #| " int msg_flags; /* Flags on received message */\n"
707 #| "};\n"
708 msgid ""
709 "struct msghdr {\n"
710 " void *msg_name; /* Optional address */\n"
711 " socklen_t msg_namelen; /* Size of address */\n"
712 " struct iovec *msg_iov; /* Scatter/gather array */\n"
713 " size_t msg_iovlen; /* # elements in msg_iov */\n"
714 " void *msg_control; /* Ancillary data, see below */\n"
715 " size_t msg_controllen; /* Ancillary data buffer size */\n"
716 " int msg_flags; /* Flags on received message */\n"
717 "};\n"
718 msgstr ""
719 "struct msghdr {\n"
720 " void *msg_name; /* необязательный адрес */\n"
721 " socklen_t msg_namelen; /* размер адреса */\n"
722 " struct iovec *msg_iov; /* массив приёма/передачи */\n"
723 " size_t msg_iovlen; /* количество элементов в msg_iov */\n"
724 " void *msg_control; /* вспомогательные данные,\n"
725 " см. ниже */\n"
726 " size_t msg_controllen; /* размер буфера вспомогательных\n"
727 " данных */\n"
728 " int msg_flags; /* флаги принятого сообщения */\n"
729 "};\n"
730
731 #. type: Plain text
732 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
733 #: opensuse-leap-16-1 opensuse-tumbleweed
734 #, fuzzy
735 #| msgid ""
736 #| "The I<msg_name> field points to a caller-allocated buffer that is used to "
737 #| "return the source address if the socket is unconnected. The caller "
738 #| "should set I<msg_namelen> to the size of this buffer before this call; "
739 #| "upon return from a successful call, I<msg_namelen> will contain the "
740 #| "length of the returned address. If the application does not need to know "
741 #| "the source address, I<msg_name> can be specified as NULL."
742 msgid ""
743 "The I<msg_name> field points to a caller-allocated buffer that is used to "
744 "return the source address if the socket is unconnected. The caller should "
745 "set I<msg_namelen> to the size of this buffer before this call; upon return "
746 "from a successful call, I<msg_namelen> will contain the size of the returned "
747 "address. If the application does not need to know the source address, "
748 "I<msg_name> can be specified as NULL."
749 msgstr ""
750 "Поле I<msg_name> указывает на выделенный вызывающим буфер, который "
751 "используется для возврата адреса источника, если сокет не соединён. "
752 "Вызывающий должен указать в I<msg_namelen> размер этого буфера перед "
753 "вызовом; при успешном выполнении вызова в I<msg_namelen> будет содержаться "
754 "длина возвращаемого адреса. Если приложению не нужно знать адрес источника, "
755 "то в I<msg_name> можно указать NULL."
756
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 msgid ""
761 "The fields I<msg_iov> and I<msg_iovlen> describe scatter-gather locations, "
762 "as discussed in B<readv>(2)."
763 msgstr ""
764 "В полях I<msg_iov> и I<msg_iovlen> описываются место приёма/передачи, "
765 "обсуждаемые в B<readv>(2)."
766
767 #. type: Plain text
768 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
769 #: opensuse-leap-16-1 opensuse-tumbleweed
770 #, fuzzy
771 #| msgid ""
772 #| "The field I<msg_control>, which has length I<msg_controllen>, points to a "
773 #| "buffer for other protocol control-related messages or miscellaneous "
774 #| "ancillary data. When B<recvmsg>() is called, I<msg_controllen> should "
775 #| "contain the length of the available buffer in I<msg_control>; upon return "
776 #| "from a successful call it will contain the length of the control message "
777 #| "sequence."
778 msgid ""
779 "The field I<msg_control>, which has size I<msg_controllen>, points to a "
780 "buffer for other protocol control-related messages or miscellaneous "
781 "ancillary data. When B<recvmsg>() is called, I<msg_controllen> should "
782 "contain the size of the available buffer in I<msg_control>; upon return from "
783 "a successful call it will contain the size of the control message sequence."
784 msgstr ""
785 "Поле I<msg_control> длиной I<msg_controllen> указывает на буфер для других "
786 "сообщений, связанных с управлением протоколом или на буфер для разнообразных "
787 "вспомогательных данных. При вызове B<recvmsg>() в поле I<msg_controllen> "
788 "должен указываться размер доступного буфера, чей адрес передан в "
789 "I<msg_control>; при успешном выполнении вызова в этом параметре будет "
790 "находиться длина последовательности контрольных сообщений."
791
792 #. type: Plain text
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 msgid "The messages are of the form:"
796 msgstr "Сообщения имеют следующий вид:"
797
798 #. type: Plain text
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 #, no-wrap
802 msgid ""
803 "struct cmsghdr {\n"
804 " size_t cmsg_len; /* Data byte count, including header\n"
805 " (type is socklen_t in POSIX) */\n"
806 " int cmsg_level; /* Originating protocol */\n"
807 " int cmsg_type; /* Protocol-specific type */\n"
808 "/* followed by\n"
809 " unsigned char cmsg_data[]; */\n"
810 "};\n"
811 msgstr ""
812 "struct cmsghdr {\n"
813 " size_t cmsg_len; /* счетчик байтов данных с заголовком\n"
814 " (тип — socklen_t в POSIX) */\n"
815 " int cmsg_level; /* начальный протокол */\n"
816 " int cmsg_type; /* тип, зависящий от протокола */\n"
817 "/* после\n"
818 " unsigned char cmsg_data[]; */\n"
819 "};\n"
820
821 #. type: Plain text
822 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
823 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
824 msgid ""
825 "Ancillary data should be accessed only by the macros defined in B<cmsg>(3)."
826 msgstr ""
827 "К вспомогательным данным нужно обращаться только с помощью макросов, "
828 "определённых в B<cmsg>(3)."
829
830 #. type: Plain text
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 #, fuzzy
834 #| msgid ""
835 #| "As an example, Linux uses this ancillary data mechanism to pass extended "
836 #| "errors, IP options, or file descriptors over UNIX domain sockets."
837 msgid ""
838 "As an example, Linux uses this ancillary data mechanism to pass extended "
839 "errors, IP options, or file descriptors over UNIX domain sockets. For "
840 "further information on the use of ancillary data in various socket domains, "
841 "see B<unix>(7) and B<ip>(7)."
842 msgstr ""
843 "Например, этот механизм вспомогательных данных используется в Linux для "
844 "передачи расширенных ошибок, флагов IP и файловых дескрипторов через "
845 "доменные сокеты Unix."
846
847 #. type: Plain text
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 msgid ""
851 "The I<msg_flags> field in the I<msghdr> is set on return of B<recvmsg>(). "
852 "It can contain several flags:"
853 msgstr ""
854 "При возврате из B<recvmsg>() устанавливается значение поля I<msg_flags> в "
855 "I<msghdr>. Оно может содержать несколько флагов:"
856
857 #. type: TP
858 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
859 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
860 #, no-wrap
861 msgid "B<MSG_EOR>"
862 msgstr "B<MSG_EOR>"
863
864 #. type: Plain text
865 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
866 #: opensuse-tumbleweed
867 #, fuzzy
868 #| msgid ""
869 #| "indicates end-of-record; the data returned completed a record (generally "
870 #| "used with sockets of type B<SOCK_SEQPACKET>)."
871 msgid ""
872 "indicates end-of-record; the data returned completed a record (generally, "
873 "used with sockets of type B<SOCK_SEQPACKET>)."
874 msgstr ""
875 "означает конец записи: возвращённые данные заканчивают запись (обычно "
876 "используется вместе с сокетами типа B<SOCK_SEQPACKET>)."
877
878 #. type: TP
879 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
880 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
881 #, no-wrap
882 msgid "B<MSG_TRUNC>"
883 msgstr "B<MSG_TRUNC>"
884
885 #. type: Plain text
886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
888 msgid ""
889 "indicates that the trailing portion of a datagram was discarded because the "
890 "datagram was larger than the buffer supplied."
891 msgstr ""
892 "означает, что хвостовая часть датаграммы была отброшена, потому что "
893 "датаграмма была больше, чем предоставленный буфер."
894
895 #. type: TP
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 #, no-wrap
899 msgid "B<MSG_CTRUNC>"
900 msgstr "B<MSG_CTRUNC>"
901
902 #. type: Plain text
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 msgid ""
906 "indicates that some control data was discarded due to lack of space in the "
907 "buffer for ancillary data."
908 msgstr ""
909 "означает, что часть управляющих данных была отброшена из-за недостатка места "
910 "в буфере вспомогательных данных."
911
912 #. type: Plain text
913 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
914 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
915 msgid ""
916 "is returned to indicate that expedited or out-of-band data was received."
917 msgstr ""
918 "возвращается для индикации, что получены курируемые или внеполосные данные."
919
920 #. type: TP
921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
923 #, no-wrap
924 msgid "B<MSG_ERRQUEUE>"
925 msgstr "B<MSG_ERRQUEUE>"
926
927 #. type: Plain text
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 msgid ""
931 "indicates that no data was received but an extended error from the socket "
932 "error queue."
933 msgstr ""
934 "означает, что были получены не данные, а расширенное сообщение об ошибке из "
935 "очереди ошибок сокета."
936
937 #. type: TP
938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
940 #, fuzzy, no-wrap
941 #| msgid "B<MSG_CMSG_CLOEXEC> (B<recvmsg>() only; since Linux 2.6.23)"
942 msgid "B<MSG_CMSG_CLOEXEC> (since Linux 2.6.23)"
943 msgstr "B<MSG_CMSG_CLOEXEC> (только для B<recvmsg>(); начиная с Linux 2.6.23)"
944
945 #. commit 4a19542e5f694cd408a32c3d9dc593ba9366e2d7
946 #. type: Plain text
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 msgid ""
950 "indicates that B<MSG_CMSG_CLOEXEC> was specified in the I<flags> argument of "
951 "B<recvmsg>()."
952 msgstr ""
953
954 #. type: SH
955 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
956 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
957 #, no-wrap
958 msgid "RETURN VALUE"
959 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "These calls return the number of bytes received, or -1 if an error "
966 "occurred. In the event of an error, I<errno> is set to indicate the error."
967 msgstr ""
968 "Эти вызовы возвращают количество принятых байт или -1, если произошла "
969 "ошибка. В случае ошибки в I<errno> записывается код ошибки."
970
971 #. type: Plain text
972 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
973 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
974 msgid ""
975 "When a stream socket peer has performed an orderly shutdown, the return "
976 "value will be 0 (the traditional \"end-of-file\" return)."
977 msgstr ""
978 "Когда ответная сторона потока выполняет корректное отключение (shutdown), то "
979 "возвращается 0 (обычный возврат «конец файла»)."
980
981 #. type: Plain text
982 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
983 #: opensuse-leap-16-1 opensuse-tumbleweed
984 #, fuzzy
985 #| msgid ""
986 #| "Datagram sockets in various domains (e.g., the UNIX and Internet "
987 #| "domains) permit zero-length datagrams. When such a datagram is "
988 #| "received, the return value is 0."
989 msgid ""
990 "Datagram sockets in various domains (e.g., the UNIX and Internet domains) "
991 "permit zero-size datagrams. When such a datagram is received, the return "
992 "value is 0."
993 msgstr ""
994 "В датаграмных сокетах некоторых доменов (например, доменах UNIX и Internet) "
995 "разрешены датаграммы нулевой длины. При получении такой датаграммы "
996 "возвращается значение 0."
997
998 #. type: Plain text
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 msgid ""
1002 "The value 0 may also be returned if the requested number of bytes to receive "
1003 "from a stream socket was 0."
1004 msgstr ""
1005 "Также значение 0 может возвращаться, если запрошенное количество принимаемых "
1006 "байт из потокового сокета равно 0."
1007
1008 #. type: SH
1009 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1010 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1011 #, no-wrap
1012 msgid "ERRORS"
1013 msgstr "ОШИБКИ"
1014
1015 #. type: Plain text
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 msgid ""
1019 "These are some standard errors generated by the socket layer. Additional "
1020 "errors may be generated and returned from the underlying protocol modules; "
1021 "see their manual pages."
1022 msgstr ""
1023 "Здесь представлено несколько стандартных ошибок, возвращаемых с уровня "
1024 "сокетов. Могут также появиться другие ошибки, возвращаемые из "
1025 "соответствующих протокольных модулей; их описание находится в "
1026 "соответствующих справочных страницах."
1027
1028 #. type: TP
1029 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1030 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1031 #, no-wrap
1032 msgid "B<EAGAIN> or B<EWOULDBLOCK>"
1033 msgstr "B<EAGAIN> или B<EWOULDBLOCK>"
1034
1035 #. Actually EAGAIN on Linux
1036 #. type: Plain text
1037 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1038 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1039 msgid ""
1040 "The socket is marked nonblocking and the receive operation would block, or a "
1041 "receive timeout had been set and the timeout expired before data was "
1042 "received. POSIX.1 allows either error to be returned for this case, and "
1043 "does not require these constants to have the same value, so a portable "
1044 "application should check for both possibilities."
1045 msgstr ""
1046 "Сокет помечен как неблокируемый, а операция приёма привела бы к блокировке, "
1047 "или установлено время ожидания данных и это время истекло до получения "
1048 "данных. Согласно POSIX.1 в этом случае может возвращаться любая ошибка и не "
1049 "требуется, чтобы эти константы имели одинаковое значение, поэтому "
1050 "переносимое приложение должно проверить оба случая."
1051
1052 #. type: TP
1053 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1054 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1055 #, no-wrap
1056 msgid "B<EBADF>"
1057 msgstr "B<EBADF>"
1058
1059 #. type: Plain text
1060 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1061 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1062 msgid "The argument I<sockfd> is an invalid file descriptor."
1063 msgstr "Аргумент I<sockfd> содержит неверный файловый дескриптор."
1064
1065 #. type: TP
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 #, no-wrap
1069 msgid "B<ECONNREFUSED>"
1070 msgstr "B<ECONNREFUSED>"
1071
1072 #. type: Plain text
1073 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1074 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1075 msgid ""
1076 "A remote host refused to allow the network connection (typically because it "
1077 "is not running the requested service)."
1078 msgstr ""
1079 "Удалённый узел отказался устанавливать сетевое соединение (обычно потому, "
1080 "что там не работает запрошенная служба)."
1081
1082 #. type: TP
1083 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1084 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1085 #, no-wrap
1086 msgid "B<EFAULT>"
1087 msgstr "B<EFAULT>"
1088
1089 #. type: Plain text
1090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1092 msgid ""
1093 "The receive buffer pointer(s) point outside the process's address space."
1094 msgstr ""
1095 "Указатель на приёмный буфер указывает вне адресного пространства процесса."
1096
1097 #. type: TP
1098 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1099 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1100 #, no-wrap
1101 msgid "B<EINTR>"
1102 msgstr "B<EINTR>"
1103
1104 #. type: Plain text
1105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1107 msgid ""
1108 "The receive was interrupted by delivery of a signal before any data was "
1109 "available; see B<signal>(7)."
1110 msgstr ""
1111 "Приём данных был прерван сигналом, а данные ещё не были доступны; смотрите "
1112 "B<signal>(7)."
1113
1114 #. type: TP
1115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1117 #, no-wrap
1118 msgid "B<EINVAL>"
1119 msgstr "B<EINVAL>"
1120
1121 #. e.g., msg_namelen < 0 for recvmsg() or addrlen < 0 for recvfrom()
1122 #. type: Plain text
1123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1125 msgid "Invalid argument passed."
1126 msgstr "Передан неверный аргумент."
1127
1128 #. type: TP
1129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1131 #, no-wrap
1132 msgid "B<ENOMEM>"
1133 msgstr "B<ENOMEM>"
1134
1135 #. type: Plain text
1136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1138 msgid "Could not allocate memory for B<recvmsg>()."
1139 msgstr "Не удалось выделить память для B<recvmsg>()."
1140
1141 #. type: TP
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 #, no-wrap
1145 msgid "B<ENOTCONN>"
1146 msgstr "B<ENOTCONN>"
1147
1148 #. type: Plain text
1149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1151 msgid ""
1152 "The socket is associated with a connection-oriented protocol and has not "
1153 "been connected (see B<connect>(2) and B<accept>(2))."
1154 msgstr ""
1155 "Сокет, связанный с протоколом, ориентированным на соединение, не был "
1156 "соединён (см. B<connect>(2) и B<accept>(2))."
1157
1158 #. type: TP
1159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1161 #, no-wrap
1162 msgid "B<ENOTSOCK>"
1163 msgstr "B<ENOTSOCK>"
1164
1165 #. type: Plain text
1166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1168 msgid "The file descriptor I<sockfd> does not refer to a socket."
1169 msgstr "Файловый дескриптор I<sockfd> указывает не на каталог."
1170
1171 #. type: SH
1172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1174 #, no-wrap
1175 msgid "VERSIONS"
1176 msgstr "ВЕРСИИ"
1177
1178 #. POSIX.1-2001, POSIX.1-2008
1179 #. glibc bug for msg_controllen raised 12 Mar 2006
1180 #. http://sourceware.org/bugzilla/show_bug.cgi?id=2448
1181 #. The problem is an underlying kernel issue: the size of the
1182 #. __kernel_size_t type used to type these fields varies
1183 #. across architectures, but socklen_t is always 32 bits,
1184 #. as (at least with GCC) is int.
1185 #. type: Plain text
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 #, fuzzy
1189 #| msgid ""
1190 #| "According to POSIX.1, the I<msg_controllen> field of the I<msghdr> "
1191 #| "structure should be typed as I<socklen_t>, but glibc currently types it "
1192 #| "as I<size_t>."
1193 msgid ""
1194 "According to POSIX.1, the I<msg_controllen> field of the I<msghdr> structure "
1195 "should be typed as I<socklen_t>, and the I<msg_iovlen> field should be typed "
1196 "as I<int>, but glibc currently types both as I<size_t>."
1197 msgstr ""
1198 "В соответствие с POSIX.1 поле I<msg_controllen> структуры I<msghdr> должно "
1199 "иметь тип I<socklen_t>, но в настоящее время в glibc оно имеет тип I<size_t>."
1200
1201 #. type: SH
1202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1204 #, no-wrap
1205 msgid "STANDARDS"
1206 msgstr "СТАНДАРТЫ"
1207
1208 #. type: Plain text
1209 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1210 #: opensuse-tumbleweed
1211 msgid "POSIX.1-2024."
1212 msgstr "POSIX.1-2024."
1213
1214 #. type: SH
1215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1217 #, no-wrap
1218 msgid "HISTORY"
1219 msgstr "ИСТОРИЯ"
1220
1221 #. type: Plain text
1222 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1223 #: opensuse-tumbleweed
1224 msgid "POSIX.1-2001, 4.2BSD."
1225 msgstr "POSIX.1-2001, 4.2BSD."
1226
1227 #. type: Plain text
1228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1230 msgid ""
1231 "POSIX.1 describes only the B<MSG_OOB>, B<MSG_PEEK>, and B<MSG_WAITALL> flags."
1232 msgstr ""
1233 "В POSIX.1 описаны только флаги B<MSG_OOB>, B<MSG_PEEK> и B<MSG_WAITALL>."
1234
1235 #. type: SH
1236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1238 #, no-wrap
1239 msgid "NOTES"
1240 msgstr "ПРИМЕЧАНИЯ"
1241
1242 #. type: Plain text
1243 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1244 #: opensuse-leap-16-1 opensuse-tumbleweed
1245 #, fuzzy
1246 #| msgid ""
1247 #| "If a zero-length datagram is pending, B<read>(2) and B<recv>() with a "
1248 #| "I<flags> argument of zero provide different behavior. In this "
1249 #| "circumstance, B<read>(2) has no effect (the datagram remains pending), "
1250 #| "while B<recv>() consumes the pending datagram."
1251 msgid ""
1252 "If a zero-size datagram is pending, B<read>(2) and B<recv>() with a "
1253 "I<flags> argument of zero provide different behavior. In this circumstance, "
1254 "B<read>(2) has no effect (the datagram remains pending), while B<recv>() "
1255 "consumes the pending datagram."
1256 msgstr ""
1257 "Если ожидает дейтаграмма нулевой длины, то B<read>(2) и B<recv>() с нулевым "
1258 "аргументом I<flags> работают по-разному. В этом случае B<read>(2) ничего не "
1259 "делает (дейтаграмма продолжает ждать), а B<recv>() обрабатывает ожидающую "
1260 "дейтаграмму."
1261
1262 #. type: Plain text
1263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1265 msgid ""
1266 "See B<recvmmsg>(2) for information about a Linux-specific system call that "
1267 "can be used to receive multiple datagrams in a single call."
1268 msgstr ""
1269 "В B<recvmmsg>(2) можно найти информацию о специальном системном вызове "
1270 "Linux, который можно использовать для приёма нескольких датаграмм за один "
1271 "вызов."
1272
1273 #. type: SH
1274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1276 #, no-wrap
1277 msgid "EXAMPLES"
1278 msgstr "ПРИМЕРЫ"
1279
1280 #. type: Plain text
1281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1283 msgid "An example of the use of B<recvfrom>() is shown in B<getaddrinfo>(3)."
1284 msgstr "Пример использования B<recvfrom>() показан в B<getaddrinfo>(3)."
1285
1286 #. type: SH
1287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1289 #, no-wrap
1290 msgid "SEE ALSO"
1291 msgstr "СМОТРИТЕ ТАКЖЕ"
1292
1293 #. type: Plain text
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 msgid ""
1297 "B<fcntl>(2), B<getsockopt>(2), B<read>(2), B<recvmmsg>(2), B<select>(2), "
1298 "B<shutdown>(2), B<socket>(2), B<cmsg>(3), B<sockatmark>(3), B<ip>(7), "
1299 "B<ipv6>(7), B<socket>(7), B<tcp>(7), B<udp>(7), B<unix>(7)"
1300 msgstr ""
1301 "B<fcntl>(2), B<getsockopt>(2), B<read>(2), B<recvmmsg>(2), B<select>(2), "
1302 "B<shutdown>(2), B<socket>(2), B<cmsg>(3), B<sockatmark>(3), B<ip>(7), "
1303 "B<ipv6>(7), B<socket>(7), B<tcp>(7), B<udp>(7), B<unix>(7)"
1304
1305 #. type: TH
1306 #: debian-trixie
1307 #, no-wrap
1308 msgid "2024-05-02"
1309 msgstr "2 мая 2024 г."
1310
1311 #. type: TH
1312 #: debian-trixie
1313 #, no-wrap
1314 msgid "Linux man-pages 6.9.1"
1315 msgstr "Страницы руководства Linux 6.9.1"
1316
1317 #. type: Plain text
1318 #: debian-trixie
1319 msgid "Standard C library (I<libc>, I<-lc>)"
1320 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1321
1322 #. type: Plain text
1323 #: debian-trixie
1324 #, fuzzy, no-wrap
1325 #| msgid ""
1326 #| "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1327 #| "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
1328 #| "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
1329 #| "B< socklen_t *restrict >I<addrlen>B<);>\n"
1330 #| "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1331 msgid ""
1332 "B<ssize_t recv(int >I<sockfd>B<, void >I<buf>B<[.>I<len>B<], size_t >I<len>B<,>\n"
1333 "B< int >I<flags>B<);>\n"
1334 "B<ssize_t recvfrom(int >I<sockfd>B<, void >I<buf>B<[restrict .>I<len>B<], size_t >I<len>B<,>\n"
1335 "B< int >I<flags>B<,>\n"
1336 "B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n"
1337 "B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n"
1338 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1339 msgstr ""
1340 "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1341 "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
1342 "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
1343 "B< socklen_t *restrict >I<addrlen>B<);>\n"
1344 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1345
1346 #. type: Plain text
1347 #: debian-trixie
1348 #, no-wrap
1349 msgid "recv(sockfd, buf, len, flags);\n"
1350 msgstr "recv(sockfd, buf, len, flags);\n"
1351
1352 #. type: Plain text
1353 #: debian-trixie
1354 #, no-wrap
1355 msgid "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
1356 msgstr "recvfrom(sockfd, buf, len, flags, NULL, NULL);\n"
1357
1358 #. type: Plain text
1359 #: debian-trixie
1360 msgid ""
1361 "All three calls return the length of the message on successful completion. "
1362 "If a message is too long to fit in the supplied buffer, excess bytes may be "
1363 "discarded depending on the type of socket the message is received from."
1364 msgstr ""
1365 "При успешном выполнении все три вызова возвращают длину сообщения. Если "
1366 "сообщение слишком длинное и не поместилось в предоставленный буфер, лишние "
1367 "байты могут быть отброшены, в зависимости от типа сокета, на котором "
1368 "принимаются сообщения."
1369
1370 #. type: Plain text
1371 #: debian-trixie fedora-44 fedora-rawhide
1372 #, fuzzy
1373 #| msgid ""
1374 #| "Enables nonblocking operation; if the operation would block, the call "
1375 #| "fails with the error B<EAGAIN> or B<EWOULDBLOCK>. This provides similar "
1376 #| "behavior to setting the B<O_NONBLOCK> flag (via the B<fcntl>(2) "
1377 #| "B<F_SETFL> operation), but differs in that B<MSG_DONTWAIT> is a per-call "
1378 #| "option, whereas B<O_NONBLOCK> is a setting on the open file description "
1379 #| "(see B<open>(2)), which will affect all threads in the calling process "
1380 #| "and as well as other processes that hold file descriptors referring to "
1381 #| "the same open file description."
1382 msgid ""
1383 "Enables nonblocking operation; if the operation would block, the call fails "
1384 "with the error B<EAGAIN> or B<EWOULDBLOCK>. This provides similar behavior "
1385 "to setting the B<O_NONBLOCK> flag (via the B<fcntl>(2) B<F_SETFL> "
1386 "operation), but differs in that B<MSG_DONTWAIT> is a per-call option, "
1387 "whereas B<O_NONBLOCK> is a setting on the open file description (see "
1388 "B<open>(2)), which will affect all threads in the calling process as well as "
1389 "other processes that hold file descriptors referring to the same open file "
1390 "description."
1391 msgstr ""
1392 "Включить неблокирующий режим. Если операция могла бы привести к блокировке, "
1393 "возвращается B<EAGAIN> или B<EWOULDBLOCK>. Такое поведение подобно заданию "
1394 "флага B<O_NONBLOCK> (в B<fcntl>(2) операцией B<F_SETFL>), но отличие в том, "
1395 "что B<MSG_DONTWAIT> указывается в вызове, а B<O_NONBLOCK> задаётся в "
1396 "описании открытого файла (смотрите B<open>(2)), что влияет на все нити "
1397 "вызывающего процесса, а также на другие процессы, у которых есть файловые "
1398 "дескрипторы, ссылающиеся на это описание открытого файла."
1399
1400 #. commit 9f6f9af7694ede6314bed281eec74d588ba9474f
1401 #. type: Plain text
1402 #: debian-trixie
1403 #, fuzzy
1404 #| msgid ""
1405 #| "For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), "
1406 #| "netlink (since Linux 2.6.22), and UNIX datagram (since Linux 3.4) "
1407 #| "sockets: return the real length of the packet or datagram, even when it "
1408 #| "was longer than the passed buffer."
1409 msgid ""
1410 "For raw (B<AF_PACKET>), Internet datagram (since Linux 2.4.27/2.6.8), "
1411 "netlink (since Linux 2.6.22), and UNIX datagram as well as sequenced-packet "
1412 "(since Linux 3.4) sockets: return the real length of the packet or datagram, "
1413 "even when it was longer than the passed buffer."
1414 msgstr ""
1415 "Для «сырых» данных (B<AF_PACKET>), дейтаграмм Интернета (начиная с Linux "
1416 "2.4.27/2.6.8), netlink (начиная с Linux 2.6.22) и дейтаграмм UNIX (начиная с "
1417 "Linux 3.4) возвращает реальную длину пакета или дейтаграммы, даже если она "
1418 "была больше, чем предоставленный буфер."
1419
1420 #. type: Plain text
1421 #: debian-trixie
1422 msgid ""
1423 "B<recvfrom>() places the received message into the buffer I<buf>. The "
1424 "caller must specify the size of the buffer in I<len>."
1425 msgstr ""
1426 "Вызов B<recvfrom>() помещает принятое сообщение в буфер I<buf>. Вызывающий "
1427 "должен указать размер буфера в I<len>."
1428
1429 #. type: Plain text
1430 #: debian-trixie
1431 #, no-wrap
1432 msgid "recvfrom(fd, buf, len, flags, NULL, 0);\n"
1433 msgstr "recvfrom(fd, buf, len, flags, NULL, 0);\n"
1434
1435 #. type: Plain text
1436 #: debian-trixie
1437 #, no-wrap
1438 msgid ""
1439 "struct msghdr {\n"
1440 " void *msg_name; /* Optional address */\n"
1441 " socklen_t msg_namelen; /* Size of address */\n"
1442 " struct iovec *msg_iov; /* Scatter/gather array */\n"
1443 " size_t msg_iovlen; /* # elements in msg_iov */\n"
1444 " void *msg_control; /* Ancillary data, see below */\n"
1445 " size_t msg_controllen; /* Ancillary data buffer len */\n"
1446 " int msg_flags; /* Flags on received message */\n"
1447 "};\n"
1448 msgstr ""
1449 "struct msghdr {\n"
1450 " void *msg_name; /* необязательный адрес */\n"
1451 " socklen_t msg_namelen; /* размер адреса */\n"
1452 " struct iovec *msg_iov; /* массив приёма/передачи */\n"
1453 " size_t msg_iovlen; /* количество элементов в msg_iov */\n"
1454 " void *msg_control; /* вспомогательные данные,\n"
1455 " см. ниже */\n"
1456 " size_t msg_controllen; /* размер буфера вспомогательных\n"
1457 " данных */\n"
1458 " int msg_flags; /* флаги принятого сообщения */\n"
1459 "};\n"
1460
1461 #. type: Plain text
1462 #: debian-trixie
1463 msgid ""
1464 "The I<msg_name> field points to a caller-allocated buffer that is used to "
1465 "return the source address if the socket is unconnected. The caller should "
1466 "set I<msg_namelen> to the size of this buffer before this call; upon return "
1467 "from a successful call, I<msg_namelen> will contain the length of the "
1468 "returned address. If the application does not need to know the source "
1469 "address, I<msg_name> can be specified as NULL."
1470 msgstr ""
1471 "Поле I<msg_name> указывает на выделенный вызывающим буфер, который "
1472 "используется для возврата адреса источника, если сокет не соединён. "
1473 "Вызывающий должен указать в I<msg_namelen> размер этого буфера перед "
1474 "вызовом; при успешном выполнении вызова в I<msg_namelen> будет содержаться "
1475 "длина возвращаемого адреса. Если приложению не нужно знать адрес источника, "
1476 "то в I<msg_name> можно указать NULL."
1477
1478 #. type: Plain text
1479 #: debian-trixie
1480 msgid ""
1481 "The field I<msg_control>, which has length I<msg_controllen>, points to a "
1482 "buffer for other protocol control-related messages or miscellaneous "
1483 "ancillary data. When B<recvmsg>() is called, I<msg_controllen> should "
1484 "contain the length of the available buffer in I<msg_control>; upon return "
1485 "from a successful call it will contain the length of the control message "
1486 "sequence."
1487 msgstr ""
1488 "Поле I<msg_control> длиной I<msg_controllen> указывает на буфер для других "
1489 "сообщений, связанных с управлением протоколом или на буфер для разнообразных "
1490 "вспомогательных данных. При вызове B<recvmsg>() в поле I<msg_controllen> "
1491 "должен указываться размер доступного буфера, чей адрес передан в "
1492 "I<msg_control>; при успешном выполнении вызова в этом параметре будет "
1493 "находиться длина последовательности контрольных сообщений."
1494
1495 #. type: Plain text
1496 #: debian-trixie fedora-44 fedora-rawhide
1497 msgid ""
1498 "indicates end-of-record; the data returned completed a record (generally "
1499 "used with sockets of type B<SOCK_SEQPACKET>)."
1500 msgstr ""
1501 "означает конец записи: возвращённые данные заканчивают запись (обычно "
1502 "используется вместе с сокетами типа B<SOCK_SEQPACKET>)."
1503
1504 #. type: Plain text
1505 #: debian-trixie
1506 msgid ""
1507 "Datagram sockets in various domains (e.g., the UNIX and Internet domains) "
1508 "permit zero-length datagrams. When such a datagram is received, the return "
1509 "value is 0."
1510 msgstr ""
1511 "В датаграмных сокетах некоторых доменов (например, доменах UNIX и Internet) "
1512 "разрешены датаграммы нулевой длины. При получении такой датаграммы "
1513 "возвращается значение 0."
1514
1515 #. type: Plain text
1516 #: debian-trixie fedora-44 fedora-rawhide
1517 msgid "POSIX.1-2008."
1518 msgstr "POSIX.1-2008."
1519
1520 #. type: Plain text
1521 #: debian-trixie fedora-44 fedora-rawhide
1522 msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)."
1523 msgstr "POSIX.1-2001, 4.4BSD (впервые появились в 4.2BSD)."
1524
1525 #. type: Plain text
1526 #: debian-trixie
1527 msgid ""
1528 "If a zero-length datagram is pending, B<read>(2) and B<recv>() with a "
1529 "I<flags> argument of zero provide different behavior. In this circumstance, "
1530 "B<read>(2) has no effect (the datagram remains pending), while B<recv>() "
1531 "consumes the pending datagram."
1532 msgstr ""
1533 "Если ожидает дейтаграмма нулевой длины, то B<read>(2) и B<recv>() с нулевым "
1534 "аргументом I<flags> работают по-разному. В этом случае B<read>(2) ничего не "
1535 "делает (дейтаграмма продолжает ждать), а B<recv>() обрабатывает ожидающую "
1536 "дейтаграмму."
1537
1538 #. type: TH
1539 #: fedora-44 fedora-rawhide
1540 #, no-wrap
1541 msgid "2024-11-17"
1542 msgstr "17 ноября 2024 г."
1543
1544 #. type: TH
1545 #: fedora-44 fedora-rawhide
1546 #, no-wrap
1547 msgid "Linux man-pages 6.13"
1548 msgstr "Страницы руководства Linux 6.13"
1549
1550 #. type: Plain text
1551 #: fedora-44 fedora-rawhide
1552 #, fuzzy, no-wrap
1553 #| msgid ""
1554 #| "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1555 #| "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
1556 #| "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
1557 #| "B< socklen_t *restrict >I<addrlen>B<);>\n"
1558 #| "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1559 msgid ""
1560 "B<ssize_t recv(int >I<sockfd>B<, void >I<buf>B<[.>I<size>B<], size_t >I<size>B<,>\n"
1561 "B< int >I<flags>B<);>\n"
1562 "B<ssize_t recvfrom(int >I<sockfd>B<, void >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n"
1563 "B< int >I<flags>B<,>\n"
1564 "B< struct sockaddr *_Nullable restrict >I<src_addr>B<,>\n"
1565 "B< socklen_t *_Nullable restrict >I<addrlen>B<);>\n"
1566 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1567 msgstr ""
1568 "B<ssize_t recv(int >I<sockfd>B<, void *>I<buf>B<, size_t >I<len>B<, int >I<flags>B<);>\n"
1569 "B<ssize_t recvfrom(int >I<sockfd>B<, void *restrict >I<buf>B<, size_t >I<len>B<, int >I<flags>B<,>\n"
1570 "B< struct sockaddr *restrict >I<src_addr>B<,>\n"
1571 "B< socklen_t *restrict >I<addrlen>B<);>\n"
1572 "B<ssize_t recvmsg(int >I<sockfd>B<, struct msghdr *>I<msg>B<, int >I<flags>B<);>\n"
1573
1574 #. type: Plain text
1575 #: fedora-44 fedora-rawhide
1576 #, fuzzy, no-wrap
1577 #| msgid "recvfrom(fd, buf, len, flags, NULL, 0);\n"
1578 msgid "recvfrom(fd, buf, size, flags, NULL, 0);\n"
1579 msgstr "recvfrom(fd, buf, len, flags, NULL, 0);\n"
1580
1581 #. type: TH
1582 #: mageia-cauldron
1583 #, no-wrap
1584 msgid "Linux man-pages 6.17"
1585 msgstr "Страницы руководства Linux 6.17"
1586
1587 #. type: TH
1588 #: opensuse-leap-16-1 opensuse-tumbleweed
1589 #, no-wrap
1590 msgid "Linux man-pages (unreleased)"
1591 msgstr "Страницы руководства Linux (не выпущены)"