Debian Codegraph @

po/ru/man2/bind.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 # Artyom Kunyov <[email protected]>, 2012.
5 # Azamat Hackimov <[email protected]>, 2012.
6 # Dmitriy Ovchinnikov <[email protected]>, 2012.
7 # Dmitry Bolkhovskikh <[email protected]>, 2017.
8 # ITriskTI <[email protected]>, 2012.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "bind"
31 msgstr "bind"
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-02-08"
38 msgstr "8 февраля 2026 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid "bind - bind a name to a socket"
58 msgstr "bind - привязывает имя к сокету"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
85 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
93 "B< socklen_t >I<addrlen>B<);>\n"
94 msgstr ""
95 "B<int bind(int >I<sockfd>B<, const struct sockaddr *>I<addr>B<,>\n"
96 "B< socklen_t >I<addrlen>B<);>\n"
97
98 #. type: SH
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "DESCRIPTION"
103 msgstr "ОПИСАНИЕ"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, fuzzy
109 #| msgid ""
110 #| "When a socket is created with B<socket>(2), it exists in a name space "
111 #| "(address family) but has no address assigned to it. B<bind>() assigns "
112 #| "the address specified by I<addr> to the socket referred to by the file "
113 #| "descriptor I<sockfd>. I<addrlen> specifies the size, in bytes, of the "
114 #| "address structure pointed to by I<addr>. Traditionally, this operation "
115 #| "is called \\(lqassigning a name to a socket\\(rq."
116 msgid ""
117 "When a socket is created with B<socket>(2), it exists in a name space "
118 "(address family) but has no address assigned to it. B<bind>() assigns the "
119 "address specified by I<addr> to the socket referred to by the file "
120 "descriptor I<sockfd>. I<addrlen> specifies the size, in bytes, of the "
121 "address structure pointed to by I<addr>. Traditionally, this operation is "
122 "called \\[lq]assigning a name to a socket\\[rq]."
123 msgstr ""
124 "После создания с помощью B<socket>(2), сокет появляется в адресном "
125 "пространстве (семействе адресов), но без назначенного адреса. B<bind>() "
126 "назначает адрес, заданный в I<addr>, сокету, указываемому дескриптором файла "
127 "I<sockfd>. В аргументе I<addrlen> задаётся размер структуры адреса (в "
128 "байтах), на которую указывает I<addr>. В силу традиции, эта операция "
129 "называется «присваивание сокету имени»."
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "It is normally necessary to assign a local address using B<bind>() before a "
136 "B<SOCK_STREAM> socket may receive connections (see B<accept>(2))."
137 msgstr ""
138 "Обычно, сокету типа B<SOCK_STREAM> нужно назначить локальный адрес с помощью "
139 "B<bind>() до того, как он сможет принимать соединения (см. B<accept>(2))."
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The rules used in name binding vary between address families. Consult the "
146 "manual entries in Section 7 for detailed information. For B<AF_INET>, see "
147 "B<ip>(7); for B<AF_INET6>, see B<ipv6>(7); for B<AF_UNIX>, see B<unix>(7); "
148 "for B<AF_APPLETALK>, see B<ddp>(7); for B<AF_PACKET>, see B<packet>(7); for "
149 "B<AF_X25>, see B<x25>(7); and for B<AF_NETLINK>, see B<netlink>(7)."
150 msgstr ""
151 "Правила, используемые при привязке имён, отличаются в разных семействах "
152 "адресов. Подробности см. в соответствующем справочных страницах в разделе 7. "
153 "Описание B<AF_INET> находится в B<ip>(7), B<AF_INET6> в B<ipv6>(7), "
154 "B<AF_UNIX> в B<unix>(7), B<AF_APPLETALK> в B<ddp>(7), B<AF_PACKET> в "
155 "B<packet>(7), B<AF_X25> в B<x25>(7), а B<AF_NETLINK> в B<netlink>(7)."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "The actual structure passed for the I<addr> argument will depend on the "
162 "address family. The I<sockaddr> structure is defined as something like:"
163 msgstr ""
164 "Реальная структура, передаваемая через I<addr>, зависит от семейства "
165 "адресов. Структура I<sockaddr> определяется так:"
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid ""
172 "struct sockaddr {\n"
173 " sa_family_t sa_family;\n"
174 " char sa_data[14];\n"
175 "}\n"
176 msgstr ""
177 "struct sockaddr {\n"
178 " sa_family_t sa_family;\n"
179 " char sa_data[14];\n"
180 "}\n"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "The only purpose of this structure is to cast the structure pointer passed "
187 "in I<addr> in order to avoid compiler warnings. See EXAMPLES below."
188 msgstr ""
189 "Единственным смыслом этой структуры является преобразование указателя "
190 "структуры, передаваемого в I<addr>, чтобы избежать предупреждений "
191 "компилятора. См. ПРИМЕРЫ ниже."
192
193 #. type: SH
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "RETURN VALUE"
198 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "On success, zero is returned. On error, -1 is returned, and I<errno> is set "
205 "to indicate the error."
206 msgstr ""
207 "При успешном выполнении возвращается 0. При ошибке возвращается -1, а в "
208 "I<errno> содержится код ошибки."
209
210 #. type: SH
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "ERRORS"
215 msgstr "ОШИБКИ"
216
217 #. type: TP
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "B<EACCES>"
222 msgstr "B<EACCES>"
223
224 #. e.g., privileged port in AF_INET domain
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid "The address is protected, and the user is not the superuser."
229 msgstr "Адрес защищён, или пользователь не является суперпользователем."
230
231 #. type: TP
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "B<EADDRINUSE>"
236 msgstr "B<EADDRINUSE>"
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid "The given address is already in use."
242 msgstr "Указанный адрес уже используется."
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "(Internet domain sockets) The port number was specified as zero in the "
249 "socket address structure, but, upon attempting to bind to an ephemeral port, "
250 "it was determined that all port numbers in the ephemeral port range are "
251 "currently in use. See the discussion of I</proc/sys/net/ipv4/"
252 "ip_local_port_range> B<ip>(7)."
253 msgstr ""
254 "(доменные сокеты Интернета) В структуре адреса сокета указан номер порта "
255 "равный нулю, но при попытке привязаться к эфемеридному порту, было "
256 "определено, что все номера в диапазоне эфемеридных портов уже используются. "
257 "Смотрите обсуждение I</proc/sys/net/ipv4/ip_local_port_range> в B<ip>(7)."
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<EBADF>"
264 msgstr "B<EBADF>"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "I<sockfd> is not a valid file descriptor."
270 msgstr "Значение I<sockfd> не является правильным файловым дескриптором."
271
272 #. type: TP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "B<EINVAL>"
277 msgstr "B<EINVAL>"
278
279 #. This may change in the future: see
280 #. .I linux/unix/sock.c for details.
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "The socket is already bound to an address."
285 msgstr "Сокет уже привязан к адресу."
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "I<addrlen> is wrong, or I<addr> is not a valid address for this socket's "
292 "domain."
293 msgstr ""
294 "Некорректное значение I<addrlen>, или в I<addr> указан некорректный адрес "
295 "для этого доменного сокета."
296
297 #. type: TP
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "B<ENOTSOCK>"
302 msgstr "B<ENOTSOCK>"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid "The file descriptor I<sockfd> does not refer to a socket."
308 msgstr "Файловый дескриптор I<sockfd> указывает не на каталог."
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EADDRNOTAVAIL>"
315 msgstr "B<EADDRNOTAVAIL>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "A nonexistent interface was requested or the requested address was not local."
322 msgstr ""
323 "Запрошен несуществующий интерфейс или запрашиваемый адрес не является "
324 "локальным."
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid "The following errors are specific to UNIX domain (B<AF_UNIX>) sockets:"
330 msgstr "Следующие ошибки только для сокетов домена UNIX (B<AF_UNIX>):"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "Search permission is denied on a component of the path prefix. (See also "
337 "B<path_resolution>(7).)"
338 msgstr ""
339 "Поиск запрещён из-за одного из частей префикса пути (См. также "
340 "B<path_resolution>(7).)"
341
342 #. type: TP
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "B<EFAULT>"
347 msgstr "B<EFAULT>"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "I<addr> points outside the user's accessible address space."
353 msgstr "I<addr> указывает вне адресного пространства, доступного пользователю."
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<ELOOP>"
360 msgstr "B<ELOOP>"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid "Too many symbolic links were encountered in resolving I<addr>."
366 msgstr ""
367 "При определении I<addr> превышено количество переходов по символьной ссылке."
368
369 #. type: TP
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<ENAMETOOLONG>"
374 msgstr "B<ENAMETOOLONG>"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "I<addr> is too long."
380 msgstr "Аргумент I<addr> слишком большой."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<ENOENT>"
387 msgstr "B<ENOENT>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "A component in the directory prefix of the socket pathname does not exist."
394 msgstr "Компонент из каталожного префикса пути сокета не существует."
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<ENOMEM>"
401 msgstr "B<ENOMEM>"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid "Insufficient kernel memory was available."
407 msgstr "Недостаточное количество памяти ядра."
408
409 #. type: TP
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "B<ENOTDIR>"
414 msgstr "B<ENOTDIR>"
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid "A component of the path prefix is not a directory."
420 msgstr "Компонент в префиксе пути не является каталогом."
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<EROFS>"
427 msgstr "B<EROFS>"
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 "The socket inode would reside on a read-only filesystem."
433 msgstr ""
434 "Попытка создания inode сокета на файловой системе, доступной только для "
435 "чтения."
436
437 #. type: Plain text
438 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
439 #: opensuse-leap-16-1 opensuse-tumbleweed
440 msgid "Other errors may be generated by the underlying protocol modules."
441 msgstr ""
442
443 #. type: SH
444 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
445 #: opensuse-tumbleweed
446 #, no-wrap
447 msgid "VERSIONS"
448 msgstr "ВЕРСИИ"
449
450 #. type: Plain text
451 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
452 #: opensuse-tumbleweed
453 msgid ""
454 "Portable programs must ensure that I<addr.sun_path> is a null-terminated "
455 "string for B<AF_UNIX> sockets."
456 msgstr ""
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "STANDARDS"
463 msgstr "СТАНДАРТЫ"
464
465 #. type: Plain text
466 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
467 #: opensuse-tumbleweed
468 msgid "POSIX.1-2024."
469 msgstr "POSIX.1-2024."
470
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "HISTORY"
476 msgstr "ИСТОРИЯ"
477
478 #. SVr4 documents an additional
479 #. .B ENOSR
480 #. general error condition, and
481 #. additional
482 #. .B EIO
483 #. and
484 #. .B EISDIR
485 #. UNIX-domain error conditions.
486 #. type: Plain text
487 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
488 #: opensuse-tumbleweed
489 #, fuzzy
490 #| msgid "POSIX.1-2001, SVr4, 4.4BSD."
491 msgid "POSIX.1-2001, SVr4, 4.2BSD."
492 msgstr "POSIX.1-2001, SVr4, 4.4BSD."
493
494 #. type: SH
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "BUGS"
499 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
500
501 #. FIXME Document transparent proxy options
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 "The transparent proxy options are not described."
506 msgstr "Не описываются возможности, связанные с работой прозрачных прокси."
507
508 #. type: SH
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "EXAMPLES"
513 msgstr "ПРИМЕРЫ"
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "An example of the use of B<bind>() with Internet domain sockets can be "
520 "found in B<getaddrinfo>(3)."
521 msgstr ""
522 "Пример использования B<bind>() с сокетами домена Internet можно найти в "
523 "B<getaddrinfo>(3)."
524
525 #. listen.7 refers to this example.
526 #. accept.7 refers to this example.
527 #. unix.7 refers to this example.
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "The following example shows how to bind a stream socket in the UNIX "
533 "(B<AF_UNIX>) domain, and accept connections:"
534 msgstr ""
535 "Следующий пример показывает как привязать потоковый сокет к домену UNIX "
536 "(B<AF_UNIX>) и принимать соединения:"
537
538 #. type: Plain text
539 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
540 #: opensuse-tumbleweed
541 #, fuzzy, no-wrap
542 #| msgid ""
543 #| "#include E<lt>stdio.hE<gt>\n"
544 #| "#include E<lt>stdlib.hE<gt>\n"
545 #| "#include E<lt>string.hE<gt>\n"
546 #| "#include E<lt>sys/socket.hE<gt>\n"
547 #| "#include E<lt>sys/un.hE<gt>\n"
548 #| "#include E<lt>unistd.hE<gt>\n"
549 #| "\\&\n"
550 #| "#define MY_SOCK_PATH \"/somepath\"\n"
551 #| "#define LISTEN_BACKLOG 50\n"
552 #| "\\&\n"
553 #| "#define handle_error(msg) \\e\n"
554 #| " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
555 #| "\\&\n"
556 #| "int\n"
557 #| "main(void)\n"
558 #| "{\n"
559 #| " int sfd, cfd;\n"
560 #| " socklen_t peer_addr_size;\n"
561 #| " struct sockaddr_un my_addr, peer_addr;\n"
562 #| "\\&\n"
563 #| " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
564 #| " if (sfd == -1)\n"
565 #| " handle_error(\"socket\");\n"
566 #| "\\&\n"
567 #| " memset(&my_addr, 0, sizeof(my_addr));\n"
568 #| " my_addr.sun_family = AF_UNIX;\n"
569 #| " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
570 #| " sizeof(my_addr.sun_path) - 1);\n"
571 #| "\\&\n"
572 #| " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
573 #| " sizeof(my_addr)) == -1)\n"
574 #| " handle_error(\"bind\");\n"
575 #| "\\&\n"
576 #| " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
577 #| " handle_error(\"listen\");\n"
578 #| "\\&\n"
579 #| " /* Now we can accept incoming connections one\n"
580 #| " at a time using accept(2). */\n"
581 #| "\\&\n"
582 #| " peer_addr_size = sizeof(peer_addr);\n"
583 #| " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
584 #| " &peer_addr_size);\n"
585 #| " if (cfd == -1)\n"
586 #| " handle_error(\"accept\");\n"
587 #| "\\&\n"
588 #| " /* Code to deal with incoming connection(s)... */\n"
589 #| "\\&\n"
590 #| " if (close(sfd) == -1)\n"
591 #| " handle_error(\"close\");\n"
592 #| "\\&\n"
593 #| " if (unlink(MY_SOCK_PATH) == -1)\n"
594 #| " handle_error(\"unlink\");\n"
595 #| "}\n"
596 msgid ""
597 "#include E<lt>err.hE<gt>\n"
598 "#include E<lt>stdlib.hE<gt>\n"
599 "#include E<lt>string.hE<gt>\n"
600 "#include E<lt>sys/socket.hE<gt>\n"
601 "#include E<lt>sys/un.hE<gt>\n"
602 "#include E<lt>unistd.hE<gt>\n"
603 "\\&\n"
604 "#define MY_SOCK_PATH \"/somepath\"\n"
605 "#define LISTEN_BACKLOG 50\n"
606 "\\&\n"
607 "int\n"
608 "main(void)\n"
609 "{\n"
610 " int sfd, cfd;\n"
611 " socklen_t peer_addr_size;\n"
612 " struct sockaddr_un my_addr, peer_addr;\n"
613 "\\&\n"
614 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
615 " if (sfd == -1)\n"
616 " err(EXIT_FAILURE, \"socket\");\n"
617 "\\&\n"
618 " memset(&my_addr, 0, sizeof(my_addr));\n"
619 " my_addr.sun_family = AF_UNIX;\n"
620 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
621 " sizeof(my_addr.sun_path) - 1);\n"
622 "\\&\n"
623 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
624 " sizeof(my_addr)) == -1)\n"
625 " err(EXIT_FAILURE, \"bind\");\n"
626 "\\&\n"
627 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
628 " err(EXIT_FAILURE, \"listen\");\n"
629 "\\&\n"
630 " /* Now we can accept incoming connections one\n"
631 " at a time using accept(2). */\n"
632 "\\&\n"
633 " peer_addr_size = sizeof(peer_addr);\n"
634 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
635 " &peer_addr_size);\n"
636 " if (cfd == -1)\n"
637 " err(EXIT_FAILURE, \"accept\");\n"
638 "\\&\n"
639 " /* Code to deal with incoming connection(s)... */\n"
640 "\\&\n"
641 " if (close(sfd) == -1)\n"
642 " err(EXIT_FAILURE, \"close\");\n"
643 "\\&\n"
644 " if (unlink(MY_SOCK_PATH) == -1)\n"
645 " err(EXIT_FAILURE, \"unlink\");\n"
646 "}\n"
647 msgstr ""
648 "#include E<lt>stdio.hE<gt>\n"
649 "#include E<lt>stdlib.hE<gt>\n"
650 "#include E<lt>string.hE<gt>\n"
651 "#include E<lt>sys/socket.hE<gt>\n"
652 "#include E<lt>sys/un.hE<gt>\n"
653 "#include E<lt>unistd.hE<gt>\n"
654 "\\&\n"
655 "#define MY_SOCK_PATH \"/somepath\"\n"
656 "#define LISTEN_BACKLOG 50\n"
657 "\\&\n"
658 "#define handle_error(msg) \\e\n"
659 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
660 "\\&\n"
661 "int\n"
662 "main(void)\n"
663 "{\n"
664 " int sfd, cfd;\n"
665 " socklen_t peer_addr_size;\n"
666 " struct sockaddr_un my_addr, peer_addr;\n"
667 "\\&\n"
668 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
669 " if (sfd == -1)\n"
670 " handle_error(\"socket\");\n"
671 "\\&\n"
672 " memset(&my_addr, 0, sizeof(my_addr));\n"
673 " my_addr.sun_family = AF_UNIX;\n"
674 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
675 " sizeof(my_addr.sun_path) - 1);\n"
676 "\\&\n"
677 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
678 " sizeof(my_addr)) == -1)\n"
679 " handle_error(\"bind\");\n"
680 "\\&\n"
681 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
682 " handle_error(\"listen\");\n"
683 "\\&\n"
684 " /* Now we can accept incoming connections one\n"
685 " at a time using accept(2). */\n"
686 "\\&\n"
687 " peer_addr_size = sizeof(peer_addr);\n"
688 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
689 " &peer_addr_size);\n"
690 " if (cfd == -1)\n"
691 " handle_error(\"accept\");\n"
692 "\\&\n"
693 " /* Code to deal with incoming connection(s)... */\n"
694 "\\&\n"
695 " if (close(sfd) == -1)\n"
696 " handle_error(\"close\");\n"
697 "\\&\n"
698 " if (unlink(MY_SOCK_PATH) == -1)\n"
699 " handle_error(\"unlink\");\n"
700 "}\n"
701
702 #. SRC END
703 #. type: SH
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid "SEE ALSO"
708 msgstr "СМОТРИТЕ ТАКЖЕ"
709
710 #. type: Plain text
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 msgid ""
714 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
715 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
716 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
717 msgstr ""
718 "B<accept>(2), B<connect>(2), B<getsockname>(2), B<listen>(2), B<socket>(2), "
719 "B<getaddrinfo>(3), B<getifaddrs>(3), B<ip>(7), B<ipv6>(7), "
720 "B<path_resolution>(7), B<socket>(7), B<unix>(7)"
721
722 #. type: TH
723 #: debian-trixie
724 #, no-wrap
725 msgid "2024-06-15"
726 msgstr "15 июня 2024 г."
727
728 #. type: TH
729 #: debian-trixie
730 #, no-wrap
731 msgid "Linux man-pages 6.9.1"
732 msgstr "Страницы руководства Linux 6.9.1"
733
734 #. type: Plain text
735 #: debian-trixie
736 msgid "Standard C library (I<libc>, I<-lc>)"
737 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
738
739 #. type: Plain text
740 #: debian-trixie fedora-44 fedora-rawhide
741 msgid "POSIX.1-2008."
742 msgstr "POSIX.1-2008."
743
744 #. SVr4 documents an additional
745 #. .B ENOSR
746 #. general error condition, and
747 #. additional
748 #. .B EIO
749 #. and
750 #. .B EISDIR
751 #. UNIX-domain error conditions.
752 #. type: Plain text
753 #: debian-trixie fedora-44 fedora-rawhide
754 msgid "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() first appeared in 4.2BSD)."
755 msgstr "POSIX.1-2001, SVr4, 4.4BSD (B<bind>() впервые появился в 4.2BSD)."
756
757 #. type: Plain text
758 #: debian-trixie fedora-44 fedora-rawhide
759 #, no-wrap
760 msgid ""
761 "#include E<lt>stdio.hE<gt>\n"
762 "#include E<lt>stdlib.hE<gt>\n"
763 "#include E<lt>string.hE<gt>\n"
764 "#include E<lt>sys/socket.hE<gt>\n"
765 "#include E<lt>sys/un.hE<gt>\n"
766 "#include E<lt>unistd.hE<gt>\n"
767 "\\&\n"
768 "#define MY_SOCK_PATH \"/somepath\"\n"
769 "#define LISTEN_BACKLOG 50\n"
770 "\\&\n"
771 "#define handle_error(msg) \\[rs]\n"
772 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
773 "\\&\n"
774 "int\n"
775 "main(void)\n"
776 "{\n"
777 " int sfd, cfd;\n"
778 " socklen_t peer_addr_size;\n"
779 " struct sockaddr_un my_addr, peer_addr;\n"
780 "\\&\n"
781 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
782 " if (sfd == -1)\n"
783 " handle_error(\"socket\");\n"
784 "\\&\n"
785 " memset(&my_addr, 0, sizeof(my_addr));\n"
786 " my_addr.sun_family = AF_UNIX;\n"
787 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
788 " sizeof(my_addr.sun_path) - 1);\n"
789 "\\&\n"
790 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
791 " sizeof(my_addr)) == -1)\n"
792 " handle_error(\"bind\");\n"
793 "\\&\n"
794 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
795 " handle_error(\"listen\");\n"
796 "\\&\n"
797 " /* Now we can accept incoming connections one\n"
798 " at a time using accept(2). */\n"
799 "\\&\n"
800 " peer_addr_size = sizeof(peer_addr);\n"
801 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
802 " &peer_addr_size);\n"
803 " if (cfd == -1)\n"
804 " handle_error(\"accept\");\n"
805 "\\&\n"
806 " /* Code to deal with incoming connection(s)... */\n"
807 "\\&\n"
808 " if (close(sfd) == -1)\n"
809 " handle_error(\"close\");\n"
810 "\\&\n"
811 " if (unlink(MY_SOCK_PATH) == -1)\n"
812 " handle_error(\"unlink\");\n"
813 "}\n"
814 msgstr ""
815 "#include E<lt>stdio.hE<gt>\n"
816 "#include E<lt>stdlib.hE<gt>\n"
817 "#include E<lt>string.hE<gt>\n"
818 "#include E<lt>sys/socket.hE<gt>\n"
819 "#include E<lt>sys/un.hE<gt>\n"
820 "#include E<lt>unistd.hE<gt>\n"
821 "\\&\n"
822 "#define MY_SOCK_PATH \"/somepath\"\n"
823 "#define LISTEN_BACKLOG 50\n"
824 "\\&\n"
825 "#define handle_error(msg) \\[rs]\n"
826 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
827 "\\&\n"
828 "int\n"
829 "main(void)\n"
830 "{\n"
831 " int sfd, cfd;\n"
832 " socklen_t peer_addr_size;\n"
833 " struct sockaddr_un my_addr, peer_addr;\n"
834 "\\&\n"
835 " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n"
836 " if (sfd == -1)\n"
837 " handle_error(\"socket\");\n"
838 "\\&\n"
839 " memset(&my_addr, 0, sizeof(my_addr));\n"
840 " my_addr.sun_family = AF_UNIX;\n"
841 " strncpy(my_addr.sun_path, MY_SOCK_PATH,\n"
842 " sizeof(my_addr.sun_path) - 1);\n"
843 "\\&\n"
844 " if (bind(sfd, (struct sockaddr *) &my_addr,\n"
845 " sizeof(my_addr)) == -1)\n"
846 " handle_error(\"bind\");\n"
847 "\\&\n"
848 " if (listen(sfd, LISTEN_BACKLOG) == -1)\n"
849 " handle_error(\"listen\");\n"
850 "\\&\n"
851 " /* Now we can accept incoming connections one\n"
852 " at a time using accept(2). */\n"
853 "\\&\n"
854 " peer_addr_size = sizeof(peer_addr);\n"
855 " cfd = accept(sfd, (struct sockaddr *) &peer_addr,\n"
856 " &peer_addr_size);\n"
857 " if (cfd == -1)\n"
858 " handle_error(\"accept\");\n"
859 "\\&\n"
860 " /* Code to deal with incoming connection(s)... */\n"
861 "\\&\n"
862 " if (close(sfd) == -1)\n"
863 " handle_error(\"close\");\n"
864 "\\&\n"
865 " if (unlink(MY_SOCK_PATH) == -1)\n"
866 " handle_error(\"unlink\");\n"
867 "}\n"
868
869 #. type: TH
870 #: fedora-44 fedora-rawhide
871 #, no-wrap
872 msgid "2024-11-06"
873 msgstr "6 ноября 2024 г."
874
875 #. type: TH
876 #: fedora-44 fedora-rawhide
877 #, no-wrap
878 msgid "Linux man-pages 6.13"
879 msgstr "Страницы руководства Linux 6.13"
880
881 #. type: TH
882 #: mageia-cauldron
883 #, no-wrap
884 msgid "Linux man-pages 6.17"
885 msgstr "Страницы руководства Linux 6.17"
886
887 #. type: TH
888 #: opensuse-leap-16-1 opensuse-tumbleweed
889 #, no-wrap
890 msgid "Linux man-pages (unreleased)"
891 msgstr "Страницы руководства Linux (не выпущены)"