| 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 "inet_net_pton()" |
| 29 |
msgid "inet_net_pton" |
| 30 |
msgstr "inet_net_pton()" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 34 |
#: opensuse-tumbleweed |
| 35 |
#, no-wrap |
| 36 |
msgid "2026-02-08" |
| 37 |
msgstr "8 февраля 2026 г." |
| 38 |
|
| 39 |
#. type: TH |
| 40 |
#: archlinux debian-unstable |
| 41 |
#, fuzzy, no-wrap |
| 42 |
#| msgid "Linux man-pages 6.17" |
| 43 |
msgid "Linux man-pages 6.18" |
| 44 |
msgstr "Справочные страницы Linux 6.17" |
| 45 |
|
| 46 |
#. type: SH |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
#, no-wrap |
| 50 |
msgid "NAME" |
| 51 |
msgstr "НАИМЕНОВАНИЕ" |
| 52 |
|
| 53 |
#. type: Plain text |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
msgid "inet_net_pton, inet_net_ntop - Internet network number conversion" |
| 57 |
msgstr "inet_net_pton, inet_net_ntop - преобразует номер сети Интернета" |
| 58 |
|
| 59 |
#. type: SH |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "LIBRARY" |
| 64 |
msgstr "БИБЛИОТЕКА" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 68 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, fuzzy |
| 70 |
#| msgid "Real-time library (I<librt>, I<-lrt>)" |
| 71 |
msgid "Resolver library (I<libresolv>,\\ I<-lresolv>)" |
| 72 |
msgstr "Библиотека реального времени (I<librt>, I<-lrt>)" |
| 73 |
|
| 74 |
#. type: SH |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "SYNOPSIS" |
| 79 |
msgstr "СИНТАКСИС" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "B<#include E<lt>arpa/inet.hE<gt>>\n" |
| 86 |
msgstr "B<#include E<lt>arpa/inet.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 90 |
#: opensuse-tumbleweed |
| 91 |
#, fuzzy, no-wrap |
| 92 |
#| msgid "" |
| 93 |
#| "B<char *inet_net_ntop(int >I<af>B<, const void *>I<netp>B<, int >I<bits>B<,>\n" |
| 94 |
#| "B< char *>I<pres>B<, size_t >I<psize>B<);>\n" |
| 95 |
msgid "" |
| 96 |
"B<int inet_net_pton(>size_t nsize;\n" |
| 97 |
"B< int >I<af>B<, const char *>I<pres>B<,>\n" |
| 98 |
"B< void >I<netp>B<[>I<nsize>B<], size_t >I<nsize>B<);>\n" |
| 99 |
"B<char *inet_net_ntop(>int bits, size_t psize;\n" |
| 100 |
"B< int >I<af>B<,>\n" |
| 101 |
"B< const void >I<netp>B<[(>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n" |
| 102 |
"B< int >I<bits>B<,>\n" |
| 103 |
"B< char >I<pres>B<[>I<psize>B<], size_t >I<psize>B<);>\n" |
| 104 |
msgstr "" |
| 105 |
"B<char *inet_net_ntop(int >I<af>B<, const void *>I<netp>B<, int >I<bits>B<,>\n" |
| 106 |
"B< char *>I<pres>B<, size_t >I<psize>B<);>\n" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "" |
| 112 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 113 |
msgstr "" |
| 114 |
"Требования макроса тестирования свойств для glibc (см. " |
| 115 |
"B<feature_test_macros>(7)):" |
| 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 "B<inet_net_pton>(), B<inet_net_ntop>():" |
| 121 |
msgstr "B<inet_net_pton>(), B<inet_net_ntop>():" |
| 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 |
#, no-wrap |
| 127 |
msgid "" |
| 128 |
" Since glibc 2.20:\n" |
| 129 |
" _DEFAULT_SOURCE\n" |
| 130 |
" Before glibc 2.20:\n" |
| 131 |
" _BSD_SOURCE || _SVID_SOURCE\n" |
| 132 |
msgstr "" |
| 133 |
" Начиная с glibc 2.20:\n" |
| 134 |
" _DEFAULT_SOURCE\n" |
| 135 |
" До glibc 2.20:\n" |
| 136 |
" _BSD_SOURCE || _SVID_SOURCE\n" |
| 137 |
|
| 138 |
#. type: SH |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
#, no-wrap |
| 142 |
msgid "DESCRIPTION" |
| 143 |
msgstr "ОПИСАНИЕ" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
msgid "" |
| 149 |
"These functions convert network numbers between presentation (i.e., " |
| 150 |
"printable) format and network (i.e., binary) format." |
| 151 |
msgstr "" |
| 152 |
"Эти функции преобразуют номера сетей, представленных в сетевом формате (т. " |
| 153 |
"е. двоичном), в представленческий формат (т. е., печатаемый) и обратно." |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"For both functions, I<af> specifies the address family for the conversion; " |
| 160 |
"the only supported value is B<AF_INET>." |
| 161 |
msgstr "" |
| 162 |
"В обоих функциях в I<af> задаётся адресное семейство для преобразования; " |
| 163 |
"поддерживается только значение B<AF_INET>." |
| 164 |
|
| 165 |
#. type: SS |
| 166 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 167 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 168 |
#, no-wrap |
| 169 |
msgid "inet_net_pton()" |
| 170 |
msgstr "inet_net_pton()" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, fuzzy |
| 176 |
#| msgid "" |
| 177 |
#| "The B<inet_net_pton>() function converts I<pres>, a null-terminated " |
| 178 |
#| "string containing an Internet network number in presentation format to " |
| 179 |
#| "network format. The result of the conversion, which is in network byte " |
| 180 |
#| "order, is placed in the buffer pointed to by I<net>. (The I<netp> " |
| 181 |
#| "argument typically points to an I<in_addr> structure.) The I<nsize> " |
| 182 |
#| "argument specifies the number of bytes available in I<netp>." |
| 183 |
msgid "" |
| 184 |
"The B<inet_net_pton>() function converts I<pres>, a null-terminated string " |
| 185 |
"containing an Internet network number in presentation format to network " |
| 186 |
"format. The result of the conversion, which is in network byte order, is " |
| 187 |
"placed in the buffer pointed to by I<netp>. (The I<netp> argument typically " |
| 188 |
"points to an I<in_addr> structure.) The I<nsize> argument specifies the " |
| 189 |
"number of bytes available in I<netp>." |
| 190 |
msgstr "" |
| 191 |
"Функция B<inet_net_pton>() преобразует I<pres>, строку с null в конце, " |
| 192 |
"содержащую номер сети Интернета в представленческом формате, в сетевой " |
| 193 |
"формат. Результат преобразования с сетевым порядком байт помещается в буфер, " |
| 194 |
"указанный в I<net> (аргумент I<netp>, обычно, указывает на структуру " |
| 195 |
"I<in_addr>). В аргументе I<nsize> задаётся количество доступных байт в " |
| 196 |
"I<netp>." |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"On success, B<inet_net_pton>() returns the number of bits in the network " |
| 203 |
"number field of the result placed in I<netp>. For a discussion of the input " |
| 204 |
"presentation format and the return value, see NOTES." |
| 205 |
msgstr "" |
| 206 |
"При успешном выполнении B<inet_net_pton>() возвращает количество бит в поле " |
| 207 |
"номера сети результата, помещённого в I<netp>. Обсуждение входного " |
| 208 |
"представленческого формата и возвращаемое значение смотрите в ЗАМЕЧАНИЯХ." |
| 209 |
|
| 210 |
#. type: Plain text |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
msgid "" |
| 214 |
"I<Note>: the buffer pointed to by I<netp> should be zeroed out before " |
| 215 |
"calling B<inet_net_pton>(), since the call writes only as many bytes as are " |
| 216 |
"required for the network number (or as are explicitly specified by I<pres>), " |
| 217 |
"which may be less than the number of bytes in a complete network address." |
| 218 |
msgstr "" |
| 219 |
"I<Замечание>: буфер, указанный в I<netp>, должен быть заполнен нулями до " |
| 220 |
"вызова B<inet_net_pton>(), так как вызов изменяет только байты, необходимые " |
| 221 |
"для номера сети (или сколько явно указано в I<pres>), что может быть меньше, " |
| 222 |
"чем байт в полном адресе сети." |
| 223 |
|
| 224 |
#. type: SS |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "inet_net_ntop()" |
| 229 |
msgstr "inet_net_ntop()" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"The B<inet_net_ntop>() function converts the network number in the buffer " |
| 236 |
"pointed to by I<netp> to presentation format; I<*netp> is interpreted as a " |
| 237 |
"value in network byte order. The I<bits> argument specifies the number of " |
| 238 |
"bits in the network number in I<*netp>." |
| 239 |
msgstr "" |
| 240 |
"Функция B<inet_net_ntop>() преобразует номер сети в буфере, указанном в " |
| 241 |
"I<netp>, в представленческий формат; значение I<*netp> рассматривается в " |
| 242 |
"сетевом порядке байт. В аргументе I<bits> задаётся количество бит в номере " |
| 243 |
"сети из I<*netp>." |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"The null-terminated presentation-format string is placed in the buffer " |
| 250 |
"pointed to by I<pres>. The I<psize> argument specifies the number of bytes " |
| 251 |
"available in I<pres>. The presentation string is in CIDR format: a dotted-" |
| 252 |
"decimal number representing the network address, followed by a slash, and " |
| 253 |
"the size of the network number in bits." |
| 254 |
msgstr "" |
| 255 |
"Строка в представленческом формате с null в конце помещается в буфер, на " |
| 256 |
"который указывает I<pres>. В аргументе I<psize> задаётся количество байт, " |
| 257 |
"доступных в I<pres>. Представленческая строка имеет формат CIDR: адрес сети " |
| 258 |
"в виде чисел, разделённых точками, затем косая черта и размер сети в битах." |
| 259 |
|
| 260 |
#. type: SH |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "RETURN VALUE" |
| 265 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, fuzzy |
| 271 |
#| msgid "" |
| 272 |
#| "On success, B<inet_net_pton>() returns the number of bits in the network " |
| 273 |
#| "number. On error, it returns -1, and I<errno> is set to indicate the " |
| 274 |
#| "cause of the error." |
| 275 |
msgid "" |
| 276 |
"On success, B<inet_net_pton>() returns the number of bits in the network " |
| 277 |
"number. On error, it returns -1, and I<errno> is set to indicate the error." |
| 278 |
msgstr "" |
| 279 |
"При успешном выполнении B<inet_net_pton>() возвращает количество бит в " |
| 280 |
"номере сети. При ошибке возвращается -1, а в I<errno> содержится код ошибки." |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, fuzzy |
| 286 |
#| msgid "" |
| 287 |
#| "On success, B<inet_net_ntop>() returns I<pres>. On error, it returns " |
| 288 |
#| "NULL, and I<errno> is set to indicate the cause of the error." |
| 289 |
msgid "" |
| 290 |
"On success, B<inet_net_ntop>() returns I<pres>. On error, it returns NULL, " |
| 291 |
"and I<errno> is set to indicate the error." |
| 292 |
msgstr "" |
| 293 |
"При успешном выполнении B<inet_net_ntop>() возвращается I<pres>. При ошибке " |
| 294 |
"возвращается NULL, а в I<errno> содержится код ошибки." |
| 295 |
|
| 296 |
#. type: SH |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "ERRORS" |
| 301 |
msgstr "ОШИБКИ" |
| 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<EAFNOSUPPORT>" |
| 308 |
msgstr "B<EAFNOSUPPORT>" |
| 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 "I<af> specified a value other than B<AF_INET>." |
| 314 |
msgstr "В I<af> указано значение, отличное от B<AF_INET>." |
| 315 |
|
| 316 |
#. type: TP |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "B<EMSGSIZE>" |
| 321 |
msgstr "B<EMSGSIZE>" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "The size of the output buffer was insufficient." |
| 327 |
msgstr "Размер буфера результата недостаточен." |
| 328 |
|
| 329 |
#. type: TP |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
#, no-wrap |
| 333 |
msgid "B<ENOENT>" |
| 334 |
msgstr "B<ENOENT>" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "(B<inet_net_pton>()) I<pres> was not in correct presentation format." |
| 340 |
msgstr "" |
| 341 |
"(B<inet_net_pton>()) Значение I<pres> имеет некорректный представленческий " |
| 342 |
"формат." |
| 343 |
|
| 344 |
#. type: SH |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "STANDARDS" |
| 349 |
msgstr "СТАНДАРТЫ" |
| 350 |
|
| 351 |
#. type: Plain text |
| 352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
msgid "None." |
| 355 |
msgstr "Отсутствуют." |
| 356 |
|
| 357 |
#. type: SH |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
#, no-wrap |
| 361 |
msgid "NOTES" |
| 362 |
msgstr "ПРИМЕЧАНИЯ" |
| 363 |
|
| 364 |
#. type: SS |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "Input presentation format for inet_net_pton()" |
| 369 |
msgstr "Представленческий формат входных данных inet_net_pton()" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "" |
| 375 |
"The network number may be specified either as a hexadecimal value or in " |
| 376 |
"dotted-decimal notation." |
| 377 |
msgstr "" |
| 378 |
"Номер сети может задаваться в виде шестнадцатеричного значения или в точечно-" |
| 379 |
"десятичной форме." |
| 380 |
|
| 381 |
#. If the hexadecimal string is short, the remaining nibbles are zeroed. |
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
msgid "" |
| 386 |
"Hexadecimal values are indicated by an initial \"0x\" or \"0X\". The " |
| 387 |
"hexadecimal digits populate the nibbles (half octets) of the network number " |
| 388 |
"from left to right in network byte order." |
| 389 |
msgstr "" |
| 390 |
"Шестнадцатеричное значение определяется по начальному «0x» или «0X». " |
| 391 |
"Шестнадцатеричные цифры заполняют полубайты (половина октета) номера сети " |
| 392 |
"слева направо в сетевом порядке байт." |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
msgid "" |
| 398 |
"In dotted-decimal notation, up to four octets are specified, as decimal " |
| 399 |
"numbers separated by dots. Thus, any of the following forms are accepted:" |
| 400 |
msgstr "" |
| 401 |
"В точечно-десятичной форме указываются, максимум, первые четыре октета, с " |
| 402 |
"помощью десятичных чисел и точек. То есть можно использовать следующие " |
| 403 |
"форматы:" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
#, fuzzy, no-wrap |
| 409 |
#| msgid "" |
| 410 |
#| " a.b.c.d\n" |
| 411 |
#| " a.b.c\n" |
| 412 |
#| " a.b\n" |
| 413 |
#| " a\n" |
| 414 |
msgid "" |
| 415 |
"a.b.c.d\n" |
| 416 |
"a.b.c\n" |
| 417 |
"a.b\n" |
| 418 |
"a\n" |
| 419 |
msgstr "" |
| 420 |
" a.b.c.d\n" |
| 421 |
" a.b.c\n" |
| 422 |
" a.b\n" |
| 423 |
" a\n" |
| 424 |
|
| 425 |
#. #-#-#-#-# archlinux: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 426 |
#. Reading other man pages, some other implementations treat |
| 427 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 428 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 429 |
#. type: Plain text |
| 430 |
#. #-#-#-#-# debian-trixie: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 431 |
#. Reading other man pages, some other implementations treat |
| 432 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 433 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 434 |
#. type: Plain text |
| 435 |
#. #-#-#-#-# debian-unstable: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 436 |
#. Reading other man pages, some other implementations treat |
| 437 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 438 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 439 |
#. type: Plain text |
| 440 |
#. #-#-#-#-# fedora-44: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 441 |
#. Reading other man pages, some other implementations treat |
| 442 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 443 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 444 |
#. type: Plain text |
| 445 |
#. #-#-#-#-# fedora-rawhide: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 446 |
#. Reading other man pages, some other implementations treat |
| 447 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 448 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 449 |
#. type: Plain text |
| 450 |
#. #-#-#-#-# mageia-cauldron: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 451 |
#. Reading other man pages, some other implementations treat |
| 452 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 453 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 454 |
#. type: Plain text |
| 455 |
#. #-#-#-#-# opensuse-leap-16-1: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 456 |
#. Reading other man pages, some other implementations treat |
| 457 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 458 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 459 |
#. type: Plain text |
| 460 |
#. #-#-#-#-# opensuse-tumbleweed: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 461 |
#. Reading other man pages, some other implementations treat |
| 462 |
#. 'c' in a.b.c as a 16-bit number that populates right-most two bytes |
| 463 |
#. 'b' in a.b as a 24-bit number that populates right-most three bytes |
| 464 |
#. type: Plain text |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
msgid "" |
| 468 |
"Each part is a number in the range 0 to 255 that populates one byte of the " |
| 469 |
"resulting network number, going from left to right, in network-byte (big " |
| 470 |
"endian) order. Where a part is omitted, the resulting byte in the network " |
| 471 |
"number is zero." |
| 472 |
msgstr "" |
| 473 |
"Каждая часть — это число от 0 до 255, которое заполняет один байт " |
| 474 |
"получаемого номера сети; заполнение производится слева направо, в сетевом " |
| 475 |
"порядке байт (от старшего к младшему). Если часть пропущена, то байт " |
| 476 |
"результата в номере сети равно нулю." |
| 477 |
|
| 478 |
#. type: Plain text |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
msgid "" |
| 482 |
"For either hexadecimal or dotted-decimal format, the network number can " |
| 483 |
"optionally be followed by a slash and a number in the range 0 to 32, which " |
| 484 |
"specifies the size of the network number in bits." |
| 485 |
msgstr "" |
| 486 |
"В шестнадцатеричном или точечно-десятичном формате номер сети может " |
| 487 |
"содержать косую черту и число от 0 до 32, которое задаёт размер сети в битах." |
| 488 |
|
| 489 |
#. type: SS |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
#, no-wrap |
| 493 |
msgid "Return value of inet_net_pton()" |
| 494 |
msgstr "Возвращаемое значение inet_net_pton()" |
| 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 "" |
| 500 |
"The return value of B<inet_net_pton>() is the number of bits in the network " |
| 501 |
"number field. If the input presentation string terminates with a slash and " |
| 502 |
"an explicit size value, then that size becomes the return value of " |
| 503 |
"B<inet_net_pton>(). Otherwise, the return value, I<bits>, is inferred as " |
| 504 |
"follows:" |
| 505 |
msgstr "" |
| 506 |
"Возвращаемым значением B<inet_net_pton>() является количество бит поля " |
| 507 |
"номера сети. Если входная строка представленческих данных заканчивается " |
| 508 |
"косой чертой и явным значением размера, то это значение является результатом " |
| 509 |
"B<inet_net_pton>(). В противном случае возвращаемое значение, I<bits>, " |
| 510 |
"определяется следующим образом:" |
| 511 |
|
| 512 |
#. type: IP |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "\\[bu]" |
| 517 |
msgstr "\\[bu]" |
| 518 |
|
| 519 |
#. type: Plain text |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
msgid "" |
| 523 |
"If the most significant byte of the network number is greater than or equal " |
| 524 |
"to 240, then I<bits> is 32." |
| 525 |
msgstr "" |
| 526 |
"Если наиболее значимый байт номер сети больше или равен 240, то I<bits> " |
| 527 |
"равно 32." |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "" |
| 533 |
"Otherwise, if the most significant byte of the network number is greater " |
| 534 |
"than or equal to 224, then I<bits> is 4." |
| 535 |
msgstr "" |
| 536 |
"Или же, если наиболее значимый байт номер сети больше или равен 224, то " |
| 537 |
"I<bits> равно 4." |
| 538 |
|
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 541 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 542 |
msgid "" |
| 543 |
"Otherwise, if the most significant byte of the network number is greater " |
| 544 |
"than or equal to 192, then I<bits> is 24." |
| 545 |
msgstr "" |
| 546 |
"Или же, если наиболее значимый байт номер сети больше или равен 192, то " |
| 547 |
"I<bits> равно 24." |
| 548 |
|
| 549 |
#. type: Plain text |
| 550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 551 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 552 |
msgid "" |
| 553 |
"Otherwise, if the most significant byte of the network number is greater " |
| 554 |
"than or equal to 128, then I<bits> is 16." |
| 555 |
msgstr "" |
| 556 |
"Или же, если наиболее значимый байт номер сети больше или равен 128, то " |
| 557 |
"I<bits> равно 16." |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 561 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 562 |
msgid "Otherwise, I<bits> is 8." |
| 563 |
msgstr "В противном случае I<bits> равно 8." |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "" |
| 569 |
"If the resulting I<bits> value from the above steps is greater than or equal " |
| 570 |
"to 8, but the number of octets specified in the network number exceed I<bits/" |
| 571 |
"8>, then I<bits> is set to 8 times the number of octets actually specified." |
| 572 |
msgstr "" |
| 573 |
"Если значение результата I<bits> после определения больше или равно 8, но " |
| 574 |
"количество октетов, указанных в номере сети, превышает I<bits/8>, то I<bits> " |
| 575 |
"присваивается 8 кратное количество октетов, указанных на самом деле." |
| 576 |
|
| 577 |
#. type: SH |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
#, no-wrap |
| 581 |
msgid "EXAMPLES" |
| 582 |
msgstr "ПРИМЕРЫ" |
| 583 |
|
| 584 |
#. type: Plain text |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
msgid "" |
| 588 |
"The program below demonstrates the use of B<inet_net_pton>() and " |
| 589 |
"B<inet_net_ntop>(). It uses B<inet_net_pton>() to convert the presentation " |
| 590 |
"format network address provided in its first command-line argument to binary " |
| 591 |
"form, displays the return value from B<inet_net_pton>(). It then uses " |
| 592 |
"B<inet_net_ntop>() to convert the binary form back to presentation format, " |
| 593 |
"and displays the resulting string." |
| 594 |
msgstr "" |
| 595 |
"Программа, представленная далее, показывает использование B<inet_net_pton>() " |
| 596 |
"и B<inet_net_ntop>(). В ней используется B<inet_net_pton>() для " |
| 597 |
"преобразования адреса сети из значения в представленческом формате, " |
| 598 |
"переданном в первом аргументе командной строки, в двоичную форму; выводится " |
| 599 |
"полученное из B<inet_net_pton>() значение. Затем используется " |
| 600 |
"B<inet_net_ntop>() для преобразования двоичной формы обратно в " |
| 601 |
"представленческий формат, и выводится полученная строка." |
| 602 |
|
| 603 |
#. type: Plain text |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
msgid "" |
| 607 |
"In order to demonstrate that B<inet_net_pton>() may not write to all bytes " |
| 608 |
"of its I<netp> argument, the program allows an optional second command-line " |
| 609 |
"argument, a number used to initialize the buffer before B<inet_net_pton>() " |
| 610 |
"is called. As its final line of output, the program displays all of the " |
| 611 |
"bytes of the buffer returned by B<inet_net_pton>() allowing the user to see " |
| 612 |
"which bytes have not been touched by B<inet_net_pton>()." |
| 613 |
msgstr "" |
| 614 |
"Чтобы продемонстрировать, что B<inet_net_pton>() может не записывать все " |
| 615 |
"байты аргумента I<netp>, программе можно передать в командной строке " |
| 616 |
"необязательный второй аргумент — число, используемое для заполнения буфера " |
| 617 |
"перед вызовом B<inet_net_pton>(). В строке результата программа показывает " |
| 618 |
"все байты буфера, возвращаемого B<inet_net_pton>(), позволяя пользователю " |
| 619 |
"увидеть какие байты не изменялись B<inet_net_pton>()." |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
msgid "" |
| 625 |
"An example run, showing that B<inet_net_pton>() infers the number of bits " |
| 626 |
"in the network number:" |
| 627 |
msgstr "" |
| 628 |
"Пример работы, показывающий, как B<inet_net_pton>() прогнозирует количество " |
| 629 |
"бит в номере сети:" |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 633 |
#: opensuse-tumbleweed |
| 634 |
#, fuzzy, no-wrap |
| 635 |
#| msgid "" |
| 636 |
#| "$ B<./a.out 193.168>\n" |
| 637 |
#| "inet_net_pton() returned: 24\n" |
| 638 |
#| "inet_net_ntop() yielded: 193.168.0/24\n" |
| 639 |
#| "Raw address: c1a80000\n" |
| 640 |
msgid "" |
| 641 |
"$B< ./a.out 193.168>;\n" |
| 642 |
"inet_net_pton() returned: 24\n" |
| 643 |
"inet_net_ntop() yielded: 193.168.0/24\n" |
| 644 |
"Raw address: c1a80000\n" |
| 645 |
msgstr "" |
| 646 |
"$ B<./a.out 193.168>\n" |
| 647 |
"inet_net_pton() вернула: 24\n" |
| 648 |
"inet_net_ntop() выдала: 193.168.0/24\n" |
| 649 |
"Необработанный адрес: c1a80000\n" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
msgid "" |
| 655 |
"Demonstrate that B<inet_net_pton>() does not zero out unused bytes in its " |
| 656 |
"result buffer:" |
| 657 |
msgstr "" |
| 658 |
"Демонстрируется, как B<inet_net_pton>() не обнуляет неиспользованные байты в " |
| 659 |
"буфере результата:" |
| 660 |
|
| 661 |
#. type: Plain text |
| 662 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 663 |
#: opensuse-tumbleweed |
| 664 |
#, fuzzy, no-wrap |
| 665 |
#| msgid "" |
| 666 |
#| "$ B<./a.out 193.168 0xffffffff>\n" |
| 667 |
#| "inet_net_pton() returned: 24\n" |
| 668 |
#| "inet_net_ntop() yielded: 193.168.0/24\n" |
| 669 |
#| "Raw address: c1a800ff\n" |
| 670 |
msgid "" |
| 671 |
"$B< ./a.out 193.168 0xffffffff>;\n" |
| 672 |
"inet_net_pton() returned: 24\n" |
| 673 |
"inet_net_ntop() yielded: 193.168.0/24\n" |
| 674 |
"Raw address: c1a800ff\n" |
| 675 |
msgstr "" |
| 676 |
"$ B<./a.out 193.168 0xffffffff>\n" |
| 677 |
"inet_net_pton() вернула: 24\n" |
| 678 |
"inet_net_ntop() выдала: 193.168.0/24\n" |
| 679 |
"Необработанный адрес: c1a800ff\n" |
| 680 |
|
| 681 |
#. type: Plain text |
| 682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 683 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 684 |
msgid "" |
| 685 |
"Demonstrate that B<inet_net_pton>() will widen the inferred size of the " |
| 686 |
"network number, if the supplied number of bytes in the presentation string " |
| 687 |
"exceeds the inferred value:" |
| 688 |
msgstr "" |
| 689 |
"Демонстрируется, как B<inet_net_pton>() расширяет прогнозируемый размер " |
| 690 |
"номера сети, если полученное количество байт в представленческой строке " |
| 691 |
"превышает прогнозируемое значение:" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 695 |
#: opensuse-tumbleweed |
| 696 |
#, fuzzy, no-wrap |
| 697 |
#| msgid "" |
| 698 |
#| "$ B<./a.out 193.168.1.128>\n" |
| 699 |
#| "inet_net_pton() returned: 32\n" |
| 700 |
#| "inet_net_ntop() yielded: 193.168.1.128/32\n" |
| 701 |
#| "Raw address: c1a80180\n" |
| 702 |
msgid "" |
| 703 |
"$B< ./a.out 193.168.1.128>;\n" |
| 704 |
"inet_net_pton() returned: 32\n" |
| 705 |
"inet_net_ntop() yielded: 193.168.1.128/32\n" |
| 706 |
"Raw address: c1a80180\n" |
| 707 |
msgstr "" |
| 708 |
"$ B<./a.out 193.168.1.128>\n" |
| 709 |
"inet_net_pton() вернула: 32\n" |
| 710 |
"inet_net_ntop() выдала: 193.168.1.128/32\n" |
| 711 |
"Необработанный адрес: c1a80180\n" |
| 712 |
|
| 713 |
#. type: Plain text |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
msgid "" |
| 717 |
"Explicitly specifying the size of the network number overrides any inference " |
| 718 |
"about its size (but any extra bytes that are explicitly specified will still " |
| 719 |
"be used by B<inet_net_pton>(): to populate the result buffer):" |
| 720 |
msgstr "" |
| 721 |
"Явно указанный размер номера сети заменяет любой прогнозируемый (но все " |
| 722 |
"дополнительные байты, указанные явно, всё равно будут использованы " |
| 723 |
"B<inet_net_pton>() для заполнения буфера результата):" |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 727 |
#: opensuse-tumbleweed |
| 728 |
#, fuzzy, no-wrap |
| 729 |
#| msgid "" |
| 730 |
#| "$ B<./a.out 193.168.1.128/24>\n" |
| 731 |
#| "inet_net_pton() returned: 24\n" |
| 732 |
#| "inet_net_ntop() yielded: 193.168.1/24\n" |
| 733 |
#| "Raw address: c1a80180\n" |
| 734 |
msgid "" |
| 735 |
"$B< ./a.out 193.168.1.128/24>;\n" |
| 736 |
"inet_net_pton() returned: 24\n" |
| 737 |
"inet_net_ntop() yielded: 193.168.1/24\n" |
| 738 |
"Raw address: c1a80180\n" |
| 739 |
msgstr "" |
| 740 |
"$ B<./a.out 193.168.1.128/24>\n" |
| 741 |
"inet_net_pton() вернула: 24\n" |
| 742 |
"inet_net_ntop() выдала: 193.168.1/24\n" |
| 743 |
"Необработанный адрес: c1a80180\n" |
| 744 |
|
| 745 |
#. type: SS |
| 746 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 747 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 748 |
#, no-wrap |
| 749 |
msgid "Program source" |
| 750 |
msgstr "Исходный код программы" |
| 751 |
|
| 752 |
#. type: Plain text |
| 753 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 754 |
#: opensuse-tumbleweed |
| 755 |
#, no-wrap |
| 756 |
msgid "" |
| 757 |
"/* Link with \"-lresolv\" */\n" |
| 758 |
"\\&\n" |
| 759 |
"#include E<lt>arpa/inet.hE<gt>\n" |
| 760 |
"#include E<lt>err.hE<gt>\n" |
| 761 |
"#include E<lt>stdio.hE<gt>\n" |
| 762 |
"#include E<lt>stdlib.hE<gt>\n" |
| 763 |
"\\&\n" |
| 764 |
"int\n" |
| 765 |
"main(int argc, char *argv[])\n" |
| 766 |
"{\n" |
| 767 |
" char buf[100];\n" |
| 768 |
" struct in_addr addr;\n" |
| 769 |
" int bits;\n" |
| 770 |
"\\&\n" |
| 771 |
" if (argc E<lt> 2) {\n" |
| 772 |
" fprintf(stderr,\n" |
| 773 |
" \"Usage: %s presentation-form [addr-init-value]\\[rs]n\",\n" |
| 774 |
" argv[0]);\n" |
| 775 |
" exit(EXIT_FAILURE);\n" |
| 776 |
" }\n" |
| 777 |
"\\&\n" |
| 778 |
" /* If argv[2] is supplied (a numeric value), use it to initialize\n" |
| 779 |
" the output buffer given to inet_net_pton(), so that we can see\n" |
| 780 |
" that inet_net_pton() initializes only those bytes needed for\n" |
| 781 |
" the network number. If argv[2] is not supplied, then initialize\n" |
| 782 |
" the buffer to zero (as is recommended practice). */\n" |
| 783 |
"\\&\n" |
| 784 |
" addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n" |
| 785 |
"\\&\n" |
| 786 |
" /* Convert presentation network number in argv[1] to binary. */\n" |
| 787 |
"\\&\n" |
| 788 |
" bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n" |
| 789 |
" if (bits == -1)\n" |
| 790 |
" err(EXIT_FAILURE, \"inet_net_ntop\");\n" |
| 791 |
"\\&\n" |
| 792 |
" printf(\"inet_net_pton() returned: %d\\[rs]n\", bits);\n" |
| 793 |
"\\&\n" |
| 794 |
" /* Convert binary format back to presentation, using \\[aq]bits\\[aq]\n" |
| 795 |
" returned by inet_net_pton(). */\n" |
| 796 |
"\\&\n" |
| 797 |
" if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n" |
| 798 |
" err(EXIT_FAILURE, \"inet_net_ntop\");\n" |
| 799 |
"\\&\n" |
| 800 |
" printf(\"inet_net_ntop() yielded: %s\\[rs]n\", buf);\n" |
| 801 |
"\\&\n" |
| 802 |
" /* Display \\[aq]addr\\[aq] in raw form (in network byte order), so we can\n" |
| 803 |
" see bytes not displayed by inet_net_ntop(); some of those bytes\n" |
| 804 |
" may not have been touched by inet_net_ntop(), and so will still\n" |
| 805 |
" have any initial value that was specified in argv[2]. */\n" |
| 806 |
"\\&\n" |
| 807 |
" printf(\"Raw address: %x\\[rs]n\", htonl(addr.s_addr));\n" |
| 808 |
"\\&\n" |
| 809 |
" exit(EXIT_SUCCESS);\n" |
| 810 |
"}\n" |
| 811 |
msgstr "" |
| 812 |
|
| 813 |
#. SRC END |
| 814 |
#. type: SH |
| 815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 816 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 817 |
#, no-wrap |
| 818 |
msgid "SEE ALSO" |
| 819 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 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 "B<inet>(3), B<networks>(5)" |
| 825 |
msgstr "B<inet>(3), B<networks>(5)" |
| 826 |
|
| 827 |
#. type: TH |
| 828 |
#: debian-trixie |
| 829 |
#, no-wrap |
| 830 |
msgid "2024-06-15" |
| 831 |
msgstr "15 июня 2024 г." |
| 832 |
|
| 833 |
#. type: TH |
| 834 |
#: debian-trixie |
| 835 |
#, no-wrap |
| 836 |
msgid "Linux man-pages 6.9.1" |
| 837 |
msgstr "Страницы руководства Linux 6.9.1" |
| 838 |
|
| 839 |
#. type: Plain text |
| 840 |
#: debian-trixie |
| 841 |
msgid "Resolver library (I<libresolv>, I<-lresolv>)" |
| 842 |
msgstr "" |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: debian-trixie fedora-44 fedora-rawhide |
| 846 |
#, fuzzy, no-wrap |
| 847 |
#| msgid "" |
| 848 |
#| "B<char *inet_net_ntop(int >I<af>B<, const void *>I<netp>B<, int >I<bits>B<,>\n" |
| 849 |
#| "B< char *>I<pres>B<, size_t >I<psize>B<);>\n" |
| 850 |
msgid "" |
| 851 |
"B<int inet_net_pton(int >I<af>B<, const char *>I<pres>B<,>\n" |
| 852 |
"B< void >I<netp>B<[.>I<nsize>B<], size_t >I<nsize>B<);>\n" |
| 853 |
"B<char *inet_net_ntop(int >I<af>B<,>\n" |
| 854 |
"B< const void >I<netp>B<[(.>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n" |
| 855 |
"B< int >I<bits>B<,>\n" |
| 856 |
"B< char >I<pres>B<[.>I<psize>B<], size_t >I<psize>B<);>\n" |
| 857 |
msgstr "" |
| 858 |
"B<char *inet_net_ntop(int >I<af>B<, const void *>I<netp>B<, int >I<bits>B<,>\n" |
| 859 |
"B< char *>I<pres>B<, size_t >I<psize>B<);>\n" |
| 860 |
|
| 861 |
#. type: Plain text |
| 862 |
#: debian-trixie fedora-44 fedora-rawhide |
| 863 |
#, no-wrap |
| 864 |
msgid "" |
| 865 |
"$ B<./a.out 193.168>\n" |
| 866 |
"inet_net_pton() returned: 24\n" |
| 867 |
"inet_net_ntop() yielded: 193.168.0/24\n" |
| 868 |
"Raw address: c1a80000\n" |
| 869 |
msgstr "" |
| 870 |
"$ B<./a.out 193.168>\n" |
| 871 |
"inet_net_pton() вернула: 24\n" |
| 872 |
"inet_net_ntop() выдала: 193.168.0/24\n" |
| 873 |
"Необработанный адрес: c1a80000\n" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: debian-trixie fedora-44 fedora-rawhide |
| 877 |
#, no-wrap |
| 878 |
msgid "" |
| 879 |
"$ B<./a.out 193.168 0xffffffff>\n" |
| 880 |
"inet_net_pton() returned: 24\n" |
| 881 |
"inet_net_ntop() yielded: 193.168.0/24\n" |
| 882 |
"Raw address: c1a800ff\n" |
| 883 |
msgstr "" |
| 884 |
"$ B<./a.out 193.168 0xffffffff>\n" |
| 885 |
"inet_net_pton() вернула: 24\n" |
| 886 |
"inet_net_ntop() выдала: 193.168.0/24\n" |
| 887 |
"Необработанный адрес: c1a800ff\n" |
| 888 |
|
| 889 |
#. type: Plain text |
| 890 |
#: debian-trixie fedora-44 fedora-rawhide |
| 891 |
#, no-wrap |
| 892 |
msgid "" |
| 893 |
"$ B<./a.out 193.168.1.128>\n" |
| 894 |
"inet_net_pton() returned: 32\n" |
| 895 |
"inet_net_ntop() yielded: 193.168.1.128/32\n" |
| 896 |
"Raw address: c1a80180\n" |
| 897 |
msgstr "" |
| 898 |
"$ B<./a.out 193.168.1.128>\n" |
| 899 |
"inet_net_pton() вернула: 32\n" |
| 900 |
"inet_net_ntop() выдала: 193.168.1.128/32\n" |
| 901 |
"Необработанный адрес: c1a80180\n" |
| 902 |
|
| 903 |
#. type: Plain text |
| 904 |
#: debian-trixie fedora-44 fedora-rawhide |
| 905 |
#, no-wrap |
| 906 |
msgid "" |
| 907 |
"$ B<./a.out 193.168.1.128/24>\n" |
| 908 |
"inet_net_pton() returned: 24\n" |
| 909 |
"inet_net_ntop() yielded: 193.168.1/24\n" |
| 910 |
"Raw address: c1a80180\n" |
| 911 |
msgstr "" |
| 912 |
"$ B<./a.out 193.168.1.128/24>\n" |
| 913 |
"inet_net_pton() вернула: 24\n" |
| 914 |
"inet_net_ntop() выдала: 193.168.1/24\n" |
| 915 |
"Необработанный адрес: c1a80180\n" |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: debian-trixie fedora-44 fedora-rawhide |
| 919 |
#, no-wrap |
| 920 |
msgid "" |
| 921 |
"/* Link with \"-lresolv\" */\n" |
| 922 |
"\\&\n" |
| 923 |
"#include E<lt>arpa/inet.hE<gt>\n" |
| 924 |
"#include E<lt>stdio.hE<gt>\n" |
| 925 |
"#include E<lt>stdlib.hE<gt>\n" |
| 926 |
"\\&\n" |
| 927 |
"#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" |
| 928 |
" } while (0)\n" |
| 929 |
"\\&\n" |
| 930 |
"int\n" |
| 931 |
"main(int argc, char *argv[])\n" |
| 932 |
"{\n" |
| 933 |
" char buf[100];\n" |
| 934 |
" struct in_addr addr;\n" |
| 935 |
" int bits;\n" |
| 936 |
"\\&\n" |
| 937 |
" if (argc E<lt> 2) {\n" |
| 938 |
" fprintf(stderr,\n" |
| 939 |
" \"Usage: %s presentation-form [addr-init-value]\\[rs]n\",\n" |
| 940 |
" argv[0]);\n" |
| 941 |
" exit(EXIT_FAILURE);\n" |
| 942 |
" }\n" |
| 943 |
"\\&\n" |
| 944 |
" /* If argv[2] is supplied (a numeric value), use it to initialize\n" |
| 945 |
" the output buffer given to inet_net_pton(), so that we can see\n" |
| 946 |
" that inet_net_pton() initializes only those bytes needed for\n" |
| 947 |
" the network number. If argv[2] is not supplied, then initialize\n" |
| 948 |
" the buffer to zero (as is recommended practice). */\n" |
| 949 |
"\\&\n" |
| 950 |
" addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n" |
| 951 |
"\\&\n" |
| 952 |
" /* Convert presentation network number in argv[1] to binary. */\n" |
| 953 |
"\\&\n" |
| 954 |
" bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n" |
| 955 |
" if (bits == -1)\n" |
| 956 |
" errExit(\"inet_net_ntop\");\n" |
| 957 |
"\\&\n" |
| 958 |
" printf(\"inet_net_pton() returned: %d\\[rs]n\", bits);\n" |
| 959 |
"\\&\n" |
| 960 |
" /* Convert binary format back to presentation, using \\[aq]bits\\[aq]\n" |
| 961 |
" returned by inet_net_pton(). */\n" |
| 962 |
"\\&\n" |
| 963 |
" if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n" |
| 964 |
" errExit(\"inet_net_ntop\");\n" |
| 965 |
"\\&\n" |
| 966 |
" printf(\"inet_net_ntop() yielded: %s\\[rs]n\", buf);\n" |
| 967 |
"\\&\n" |
| 968 |
" /* Display \\[aq]addr\\[aq] in raw form (in network byte order), so we can\n" |
| 969 |
" see bytes not displayed by inet_net_ntop(); some of those bytes\n" |
| 970 |
" may not have been touched by inet_net_ntop(), and so will still\n" |
| 971 |
" have any initial value that was specified in argv[2]. */\n" |
| 972 |
"\\&\n" |
| 973 |
" printf(\"Raw address: %x\\[rs]n\", htonl(addr.s_addr));\n" |
| 974 |
"\\&\n" |
| 975 |
" exit(EXIT_SUCCESS);\n" |
| 976 |
"}\n" |
| 977 |
msgstr "" |
| 978 |
|
| 979 |
#. type: TH |
| 980 |
#: fedora-44 fedora-rawhide |
| 981 |
#, no-wrap |
| 982 |
msgid "2024-07-23" |
| 983 |
msgstr "23 июля 2024 г." |
| 984 |
|
| 985 |
#. type: TH |
| 986 |
#: fedora-44 fedora-rawhide |
| 987 |
#, no-wrap |
| 988 |
msgid "Linux man-pages 6.13" |
| 989 |
msgstr "Страницы руководства Linux 6.13" |
| 990 |
|
| 991 |
#. type: TH |
| 992 |
#: mageia-cauldron |
| 993 |
#, no-wrap |
| 994 |
msgid "Linux man-pages 6.17" |
| 995 |
msgstr "Страницы руководства Linux 6.17" |
| 996 |
|
| 997 |
#. type: TH |
| 998 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 999 |
#, no-wrap |
| 1000 |
msgid "Linux man-pages (unreleased)" |
| 1001 |
msgstr "Страницы руководства Linux (не выпущены)" |