Debian Codegraph @

po/ru/man3/inet_pton.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017, 2019.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, fuzzy, no-wrap
28 #| msgid "B<inet_pton>()"
29 msgid "inet_pton"
30 msgstr "B<inet_pton>()"
31
32 #. type: TH
33 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
34 #, no-wrap
35 msgid "2026-02-22"
36 msgstr "22 февраля 2026 г."
37
38 #. type: TH
39 #: archlinux debian-unstable
40 #, fuzzy, no-wrap
41 #| msgid "Linux man-pages 6.17"
42 msgid "Linux man-pages 6.18"
43 msgstr "Справочные страницы Linux 6.17"
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr "НАИМЕНОВАНИЕ"
51
52 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
56 msgstr ""
57 "inet_pton - преобразует адреса IPv4 и IPv6 из текстового вида в двоичный "
58 "формат"
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>arpa/inet.hE<gt>>\n"
85 msgstr "B<#include E<lt>arpa/inet.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 #, fuzzy, no-wrap
91 #| msgid "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
92 msgid "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
93 msgstr "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
94
95 #. type: SH
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid "DESCRIPTION"
100 msgstr "ОПИСАНИЕ"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "This function converts the character string I<src> into a network address "
107 "structure in the I<af> address family, then copies the network address "
108 "structure to I<dst>. The I<af> argument must be either B<AF_INET> or "
109 "B<AF_INET6>. I<dst> is written in network byte order."
110 msgstr ""
111 "Данная функция преобразует строку символов I<src> в структуру сетевого "
112 "адреса сетевого семейства адресов I<af>, а затем копирует полученную "
113 "структуру по адресу I<dst>. Значение аргумента I<af> должно быть равно "
114 "B<AF_INET> или B<AF_INET6>. Значение I<dst> записывается в сетевом порядке "
115 "байт."
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid "The following address families are currently supported:"
121 msgstr "В настоящее время поддерживаются следующие семейства адресов:"
122
123 #. type: TP
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "B<AF_INET>"
128 msgstr "B<AF_INET>"
129
130 #. type: Plain text
131 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
132 #: opensuse-tumbleweed
133 #, fuzzy
134 #| msgid ""
135 #| "I<src> points to a character string containing an IPv4 network address in "
136 #| "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
137 #| "number of up to three digits in the range 0 to 255. The address is "
138 #| "converted to a I<struct in_addr> and copied to I<dst>, which must be "
139 #| "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
140 msgid ""
141 "I<src> points to a character string containing an IPv4 network address in "
142 "dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a "
143 "decimal number of up to three digits in the range 0 to 255. The address is "
144 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
145 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
146 msgstr ""
147 "Значение I<src> указывает на строку символов, содержащую сетевой адрес IPv4 "
148 "в точечном формате «I<ddd.ddd.ddd.ddd>», где I<ddd> — десятичное число в "
149 "диапазоне от 0 до 255, состоящее максимум из трёх цифр. Адрес преобразуется "
150 "в I<struct in_addr> и копируется в I<dst>, размер которой должен быть равен "
151 "I<sizeof(struct in_addr)> (4) байтам (32 бита)."
152
153 #. type: TP
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "B<AF_INET6>"
158 msgstr "B<AF_INET6>"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "I<src> points to a character string containing an IPv6 network address. The "
165 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
166 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed "
167 "formats for IPv6 addresses follow these rules:"
168 msgstr ""
169 "Значение I<src> указывает на строку символов, содержащую сетевой адрес IPv6. "
170 "Адрес преобразуется в I<struct in6_addr> и копируется в I<dst>, размер "
171 "которой должен быть равен I<sizeof(struct in6_addr)> (16) байтам (128 бит). "
172 "Допустимые форматы адресов IPv6:"
173
174 #. type: IP
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "\\[bu]"
179 msgstr "\\[bu]"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight "
186 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
187 "can be up to 4 hex digits)."
188 msgstr ""
189 "Предпочтительный формат — I<x:x:x:x:x:x:x:x>. Он состоит из восьми "
190 "шестнадцатеричных чисел, каждое из которых представляет 16-битное значение "
191 "(т. е., каждый I<x> может содержать до 4 шестнадцатеричных цифр)."
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "A series of contiguous zero values in the preferred format can be "
198 "abbreviated to I<::>. Only one instance of I<::> can occur in an address. "
199 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
200 "I<::1>. The wildcard address, consisting of all zeros, can be written as "
201 "I<::>."
202 msgstr ""
203 "Серия непрерывных нулевых значений в предпочтительном формате может "
204 "сокращённо записываться как I<::>. В адресе допускается только одно "
205 "появление I<::>. Например, адрес интерфейса обратной петли "
206 "I<0:0:0:0:0:0:0:1> может быть сокращён до I<::1>. Шаблонный адрес, состоящий "
207 "из всех нулей, может быть записан как I<::>."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. "
214 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
215 "are hexadecimal values that define the six most-significant 16-bit pieces of "
216 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
217 "notation that defines the least significant 32 bits of the address. An "
218 "example of such an address is I<::FFFF:204.152.189.116>."
219 msgstr ""
220 "Альтернативный формат — полезен для записи IPv4-отображённых адресов IPv6. "
221 "Этот формат имеет вид I<x:x:x:x:x:x:d.d.d.d>, где шесть начальных I<x> "
222 "представляют собой шестнадцатеричные значения, которые определяют шесть "
223 "наиболее значимых 16-битных частей адреса (т. е., 96 бит), а символами I<d> "
224 "выражается значение в точечно-десятичном формате, которое определяет "
225 "наименее значимые 32 бита адреса. Пример адреса: I<::FFFF:204.152.189.116>."
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "See RFC 2373 for further details on the representation of IPv6 addresses."
232 msgstr ""
233 "Дополнительную информацию о представлении адресов IPv6 смотрите в RFC 2373."
234
235 #. type: SH
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "RETURN VALUE"
240 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "B<inet_pton>() returns 1 on success (network address was successfully "
247 "converted). 0 is returned if I<src> does not contain a character string "
248 "representing a valid network address in the specified address family. If "
249 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
250 "is set to B<EAFNOSUPPORT>."
251 msgstr ""
252 "При успешном выполнении функция B<inet_pton>() возвращает 1 (адрес "
253 "преобразован). Функция возвращает 0, если I<src> не содержит строку "
254 "символов, представляющую правильный сетевой адрес для указанного семейства "
255 "адресов. Если I<af> не содержит допустимого значения семейства адресов, то "
256 "возвращается -1 и I<errno> присваивается значение B<EAFNOSUPPORT>."
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "ATTRIBUTES"
263 msgstr "АТРИБУТЫ"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "For an explanation of the terms used in this section, see B<attributes>(7)."
270 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "Interface"
277 msgstr "Интерфейс"
278
279 #. type: tbl table
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "Attribute"
284 msgstr "Атрибут"
285
286 #. type: tbl table
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "Value"
291 msgstr "Значение"
292
293 #. type: tbl table
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid ".na\n"
298 msgstr ".na\n"
299
300 #. type: tbl table
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid ".nh\n"
305 msgstr ".nh\n"
306
307 #. type: tbl table
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "B<inet_pton>()"
312 msgstr "B<inet_pton>()"
313
314 #. type: tbl table
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "Thread safety"
319 msgstr "Безвредность в нитях"
320
321 #. type: tbl table
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "MT-Safe locale"
326 msgstr "MT-Safe locale"
327
328 #. type: SH
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "VERSIONS"
333 msgstr "ВЕРСИИ"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 "
340 "addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses "
341 "in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) "
342 "allow the more general numbers-and-dots notation (hexadecimal and octal "
343 "number formats, and formats that don't require all four bytes to be "
344 "explicitly written). For an interface that handles both IPv6 addresses, and "
345 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
346 msgstr ""
347 "В отличие от B<inet_aton>(3) и B<inet_addr>(3), B<inet_pton>() поддерживает "
348 "адреса IPv6. Но стоит отметить, что B<inet_pton>() работает только с "
349 "адресами IPv4 в точечно-десятичном формате, в то время как B<inet_aton>(3) и "
350 "B<inet_addr>(3) поддерживают более распространённый формат чисел-с-точками "
351 "(numbers-and-dots notation) (шестнадцатеричный и восьмеричный формат чисел, "
352 "и форматы, которые не требуют явного указания всех четырёх байт). "
353 "Программный интерфейс, который понимает одновременно адреса и IPv6, и IPv4 в "
354 "формате чисел-с-точками, смотрите B<getaddrinfo>(3)."
355
356 #. type: SH
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "STANDARDS"
361 msgstr "СТАНДАРТЫ"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "POSIX.1-2008."
367 msgstr "POSIX.1-2008."
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "HISTORY"
374 msgstr "ИСТОРИЯ"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "POSIX.1-2001."
380 msgstr "POSIX.1-2001."
381
382 #. type: SH
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "BUGS"
387 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
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 "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 "
394 "address must be supplied in I<src> instead."
395 msgstr ""
396 "При B<AF_INET6> не распознаются адреса IPv4. В этом случае в I<src> должен "
397 "указываться IPv4-отображённый адрес IPv6."
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "EXAMPLES"
404 msgstr "ПРИМЕРЫ"
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 "The program below demonstrates the use of B<inet_pton>() and "
411 "B<inet_ntop>(3). Here are some example runs:"
412 msgstr ""
413 "Представленная ниже программа показывает использование B<inet_pton>() и "
414 "B<inet_ntop>(3). Пример работы программы:"
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 #, no-wrap
420 msgid ""
421 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
422 "::\n"
423 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
424 "1::8\n"
425 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
426 "::ffff:204.152.189.116\n"
427 msgstr ""
428 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
429 "::\n"
430 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
431 "1::8\n"
432 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
433 "::ffff:204.152.189.116\n"
434
435 #. type: SS
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "Program source"
440 msgstr "Исходный код программы"
441
442 #. type: Plain text
443 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid ""
446 "#include E<lt>arpa/inet.hE<gt>\n"
447 "#include E<lt>stdio.hE<gt>\n"
448 "#include E<lt>stdlib.hE<gt>\n"
449 "#include E<lt>string.hE<gt>\n"
450 "\\&\n"
451 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
452 "\\&\n"
453 "int\n"
454 "main(int argc, char *argv[])\n"
455 "{\n"
456 " unsigned char buf[sizeof(struct in6_addr)];\n"
457 " int domain, s;\n"
458 " char str[INET6_ADDRSTRLEN];\n"
459 "\\&\n"
460 " if (argc != 3) {\n"
461 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
462 " exit(EXIT_FAILURE);\n"
463 " }\n"
464 "\\&\n"
465 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
466 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
467 "\\&\n"
468 " s = inet_pton(domain, argv[2], buf);\n"
469 " if (s E<lt>= 0) {\n"
470 " if (s == 0)\n"
471 " fprintf(stderr, \"Not in presentation format\");\n"
472 " else\n"
473 " perror(\"inet_pton\");\n"
474 " exit(EXIT_FAILURE);\n"
475 " }\n"
476 "\\&\n"
477 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
478 " perror(\"inet_ntop\");\n"
479 " exit(EXIT_FAILURE);\n"
480 " }\n"
481 "\\&\n"
482 " printf(\"%s\\[rs]n\", str);\n"
483 "\\&\n"
484 " exit(EXIT_SUCCESS);\n"
485 "}\n"
486 msgstr ""
487
488 #. SRC END
489 #. type: SH
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid "SEE ALSO"
494 msgstr "СМОТРИТЕ ТАКЖЕ"
495
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
500 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
501
502 #. type: TH
503 #: debian-trixie
504 #, no-wrap
505 msgid "2024-06-15"
506 msgstr "15 июня 2024 г."
507
508 #. type: TH
509 #: debian-trixie
510 #, no-wrap
511 msgid "Linux man-pages 6.9.1"
512 msgstr "Страницы руководства Linux 6.9.1"
513
514 #. type: Plain text
515 #: debian-trixie
516 msgid "Standard C library (I<libc>, I<-lc>)"
517 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
518
519 #. type: Plain text
520 #: debian-trixie fedora-44 fedora-rawhide
521 msgid ""
522 "I<src> points to a character string containing an IPv4 network address in "
523 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
524 "number of up to three digits in the range 0 to 255. The address is "
525 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
526 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
527 msgstr ""
528 "Значение I<src> указывает на строку символов, содержащую сетевой адрес IPv4 "
529 "в точечном формате «I<ddd.ddd.ddd.ddd>», где I<ddd> — десятичное число в "
530 "диапазоне от 0 до 255, состоящее максимум из трёх цифр. Адрес преобразуется "
531 "в I<struct in_addr> и копируется в I<dst>, размер которой должен быть равен "
532 "I<sizeof(struct in_addr)> (4) байтам (32 бита)."
533
534 #. type: Plain text
535 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
536 #, no-wrap
537 msgid ""
538 "#include E<lt>arpa/inet.hE<gt>\n"
539 "#include E<lt>stdio.hE<gt>\n"
540 "#include E<lt>stdlib.hE<gt>\n"
541 "#include E<lt>string.hE<gt>\n"
542 "\\&\n"
543 "int\n"
544 "main(int argc, char *argv[])\n"
545 "{\n"
546 " unsigned char buf[sizeof(struct in6_addr)];\n"
547 " int domain, s;\n"
548 " char str[INET6_ADDRSTRLEN];\n"
549 "\\&\n"
550 " if (argc != 3) {\n"
551 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
552 " exit(EXIT_FAILURE);\n"
553 " }\n"
554 "\\&\n"
555 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
556 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
557 "\\&\n"
558 " s = inet_pton(domain, argv[2], buf);\n"
559 " if (s E<lt>= 0) {\n"
560 " if (s == 0)\n"
561 " fprintf(stderr, \"Not in presentation format\");\n"
562 " else\n"
563 " perror(\"inet_pton\");\n"
564 " exit(EXIT_FAILURE);\n"
565 " }\n"
566 "\\&\n"
567 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
568 " perror(\"inet_ntop\");\n"
569 " exit(EXIT_FAILURE);\n"
570 " }\n"
571 "\\&\n"
572 " printf(\"%s\\[rs]n\", str);\n"
573 "\\&\n"
574 " exit(EXIT_SUCCESS);\n"
575 "}\n"
576 msgstr ""
577
578 #. type: TH
579 #: fedora-44 fedora-rawhide
580 #, no-wrap
581 msgid "2024-07-23"
582 msgstr "23 июля 2024 г."
583
584 #. type: TH
585 #: fedora-44 fedora-rawhide
586 #, no-wrap
587 msgid "Linux man-pages 6.13"
588 msgstr "Страницы руководства Linux 6.13"
589
590 #. type: TH
591 #: mageia-cauldron
592 #, no-wrap
593 msgid "2026-02-08"
594 msgstr "8 февраля 2026 г."
595
596 #. type: TH
597 #: mageia-cauldron
598 #, no-wrap
599 msgid "Linux man-pages 6.17"
600 msgstr "Страницы руководства Linux 6.17"
601
602 #. type: TH
603 #: opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "Linux man-pages (unreleased)"
606 msgstr "Страницы руководства Linux (не выпущены)"