| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Azamat Hackimov <[email protected]>, 2013-2014, 2017. |
| 5 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 6 |
# Vladislav <[email protected]>, 2015. |
| 7 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 8 |
# Иван Павлов <[email protected]>, 2017, 2019. |
| 9 |
msgid "" |
| 10 |
msgstr "" |
| 11 |
"Project-Id-Version: manpages-l10n\n" |
| 12 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 13 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 14 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 15 |
"Language-Team: Russian <[email protected]>\n" |
| 16 |
"Language: ru\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 21 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 22 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 23 |
"X-Generator: Lokalize 2.0\n" |
| 24 |
|
| 25 |
#. type: TH |
| 26 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 27 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, fuzzy, no-wrap |
| 29 |
#| msgid "B<getprotoent_r>(),\n" |
| 30 |
msgid "getprotoent_r" |
| 31 |
msgstr "B<getprotoent_r>(),\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 35 |
#: opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "2025-09-21" |
| 38 |
msgstr "21 сентября 2025 г." |
| 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 "" |
| 58 |
"getprotoent_r, getprotobyname_r, getprotobynumber_r - get protocol entry " |
| 59 |
"(reentrant)" |
| 60 |
msgstr "" |
| 61 |
"getprotoent_r, getprotobyname_r, getprotobynumber_r - возвращают запись о " |
| 62 |
"протоколе (реентерабельные версии)" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "LIBRARY" |
| 69 |
msgstr "БИБЛИОТЕКА" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 73 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 75 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 76 |
|
| 77 |
#. type: SH |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "SYNOPSIS" |
| 82 |
msgstr "СИНТАКСИС" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "B<#include E<lt>netdb.hE<gt>>\n" |
| 89 |
msgstr "B<#include E<lt>netdb.hE<gt>>\n" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 93 |
#: opensuse-tumbleweed |
| 94 |
#, no-wrap |
| 95 |
msgid "" |
| 96 |
"B<int getprotoent_r(>size_t size;\n" |
| 97 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 98 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 99 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 100 |
"B<int getprotobyname_r(>size_t size;\n" |
| 101 |
"B< const char *restrict >I<name>B<,>\n" |
| 102 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 103 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 104 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 105 |
"B<int getprotobynumber_r(>size_t size;\n" |
| 106 |
"B< int >I<proto>B<,>\n" |
| 107 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 108 |
"B< char >I<buf>B<[restrict >I<size>B<], size_t >I<size>B<,>\n" |
| 109 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "" |
| 116 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 117 |
msgstr "" |
| 118 |
"Требования макроса тестирования свойств для glibc (см. " |
| 119 |
"B<feature_test_macros>(7)):" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, fuzzy |
| 125 |
#| msgid "" |
| 126 |
#| "B<getrpcent_r>(),\n" |
| 127 |
#| "B<getrpcbyname_r>(),\n" |
| 128 |
#| "B<getrpcbynumber_r>()" |
| 129 |
msgid "B<getprotoent_r>(), B<getprotobyname_r>(), B<getprotobynumber_r>():" |
| 130 |
msgstr "" |
| 131 |
"B<getrpcent_r>(),\n" |
| 132 |
"B<getrpcbyname_r>(),\n" |
| 133 |
"B<getrpcbynumber_r>()" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
#, no-wrap |
| 139 |
msgid "" |
| 140 |
" Since glibc 2.19:\n" |
| 141 |
" _DEFAULT_SOURCE\n" |
| 142 |
" glibc 2.19 and earlier:\n" |
| 143 |
" _BSD_SOURCE || _SVID_SOURCE\n" |
| 144 |
msgstr "" |
| 145 |
" начиная с glibc 2.19:\n" |
| 146 |
" _DEFAULT_SOURCE\n" |
| 147 |
" в glibc 2.19 и старее:\n" |
| 148 |
" _BSD_SOURCE || _SVID_SOURCE\n" |
| 149 |
|
| 150 |
#. type: SH |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
#, no-wrap |
| 154 |
msgid "DESCRIPTION" |
| 155 |
msgstr "ОПИСАНИЕ" |
| 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 B<getprotoent_r>(), B<getprotobyname_r>(), and B<getprotobynumber_r>() " |
| 162 |
"functions are the reentrant equivalents of, respectively, B<getprotoent>(3), " |
| 163 |
"B<getprotobyname>(3), and B<getprotobynumber>(3). They differ in the way " |
| 164 |
"that the I<protoent> structure is returned, and in the function calling " |
| 165 |
"signature and return value. This manual page describes just the differences " |
| 166 |
"from the nonreentrant functions." |
| 167 |
msgstr "" |
| 168 |
"Функции B<getprotoent_r>(), B<getprotobyname_r>() и B<getprotobynumber_r>() " |
| 169 |
"являются реентерабельными эквивалентами B<getprotoent>(3), " |
| 170 |
"B<getprotobyname>(3) и B<getprotobynumber>(3), соответственно. Они " |
| 171 |
"отличаются способом возврата структуры I<protoent>, списком параметров и " |
| 172 |
"типом возвращаемого значения. В этой справочной странице описаны только " |
| 173 |
"различия с нереентерабельными функциями." |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
msgid "" |
| 179 |
"Instead of returning a pointer to a statically allocated I<protoent> " |
| 180 |
"structure as the function result, these functions copy the structure into " |
| 181 |
"the location pointed to by I<result_buf>." |
| 182 |
msgstr "" |
| 183 |
"Вместо возврата указателя на статически выделенную структуру I<protoent> в " |
| 184 |
"качестве результата эти функции копируют структуру в расположение, указанное " |
| 185 |
"I<result_buf>." |
| 186 |
|
| 187 |
#. #-#-#-#-# archlinux: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 188 |
#. I can find no information on the required/recommended buffer size; |
| 189 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 190 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 191 |
#. type: Plain text |
| 192 |
#. #-#-#-#-# debian-unstable: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 193 |
#. I can find no information on the required/recommended buffer size; |
| 194 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 195 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 196 |
#. type: Plain text |
| 197 |
#. #-#-#-#-# fedora-44: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 198 |
#. I can find no information on the required/recommended buffer size; |
| 199 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 200 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 201 |
#. type: Plain text |
| 202 |
#. #-#-#-#-# fedora-rawhide: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 203 |
#. I can find no information on the required/recommended buffer size; |
| 204 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 205 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 206 |
#. type: Plain text |
| 207 |
#. #-#-#-#-# mageia-cauldron: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 208 |
#. I can find no information on the required/recommended buffer size; |
| 209 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 210 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 211 |
#. type: Plain text |
| 212 |
#. #-#-#-#-# opensuse-leap-16-1: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 213 |
#. I can find no information on the required/recommended buffer size; |
| 214 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 215 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 216 |
#. type: Plain text |
| 217 |
#. #-#-#-#-# opensuse-tumbleweed: getprotoent_r.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 218 |
#. I can find no information on the required/recommended buffer size; |
| 219 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 220 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 223 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
#, fuzzy |
| 225 |
#| msgid "" |
| 226 |
#| "The I<buf> array is used to store the string fields pointed to by the " |
| 227 |
#| "returned I<protoent> structure. (The nonreentrant functions allocate " |
| 228 |
#| "these strings in static storage.) The size of this array is specified in " |
| 229 |
#| "I<buflen>. If I<buf> is too small, the call fails with the error " |
| 230 |
#| "B<ERANGE>, and the caller must try again with a larger buffer. (A buffer " |
| 231 |
#| "of length 1024 bytes should be sufficient for most applications.)" |
| 232 |
msgid "" |
| 233 |
"The I<buf> array is used to store the string fields pointed to by the " |
| 234 |
"returned I<protoent> structure. (The nonreentrant functions allocate these " |
| 235 |
"strings in static storage.) The size of this array is specified in " |
| 236 |
"I<size>. If I<buf> is too small, the call fails with the error B<ERANGE>, " |
| 237 |
"and the caller must try again with a larger buffer. (A buffer of size 1024 " |
| 238 |
"bytes should be sufficient for most applications.)" |
| 239 |
msgstr "" |
| 240 |
"Массив I<buf> используется для хранения строковых полей из возвращаемой " |
| 241 |
"структуры I<protoent> (нереентерабельные функции выделяют эти строки из " |
| 242 |
"статического хранилища). Размер данного массива задаётся в I<buflen>. Если " |
| 243 |
"I<buf> слишком мал, то вызов завершается с ошибкой B<ERANGE>, вызывающий " |
| 244 |
"должен его повторить с большим буфером (для большинства приложений должно " |
| 245 |
"быть достаточно буфера длиной 1024 байт)." |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"If the function call successfully obtains a protocol record, then I<*result> " |
| 252 |
"is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL." |
| 253 |
msgstr "" |
| 254 |
"Если вызов получил запись о протоколе, то I<*result> указывает на " |
| 255 |
"I<result_buf>; в противном случае I<*result> устанавливается в NULL." |
| 256 |
|
| 257 |
#. type: SH |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
#, no-wrap |
| 261 |
msgid "RETURN VALUE" |
| 262 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 263 |
|
| 264 |
#. type: Plain text |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
msgid "" |
| 268 |
"On success, these functions return 0. On error, they return one of the " |
| 269 |
"positive error numbers listed in ERRORS." |
| 270 |
msgstr "" |
| 271 |
"При успешном выполнении эти функции возвращают 0. При ошибке возвращается " |
| 272 |
"одно из положительных значений, перечисленных В разделе ОШИБКИ." |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"On error, record not found (B<getprotobyname_r>(), B<getprotobynumber_r>()), " |
| 279 |
"or end of input (B<getprotoent_r>()) I<result> is set to NULL." |
| 280 |
msgstr "" |
| 281 |
"При ошибке, отсутствии записи (B<getprotobyname_r>(), " |
| 282 |
"B<getprotobynumber_r>()) или конце данных (B<getprotoent_r>()) значение " |
| 283 |
"I<result> равно NULL." |
| 284 |
|
| 285 |
#. type: SH |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid "ERRORS" |
| 290 |
msgstr "ОШИБКИ" |
| 291 |
|
| 292 |
#. type: TP |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid "B<ENOENT>" |
| 297 |
msgstr "B<ENOENT>" |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
msgid "(B<getprotoent_r>()) No more records in database." |
| 303 |
msgstr "(B<getprotoent_r>()) Больше нет записей в базе данных." |
| 304 |
|
| 305 |
#. type: TP |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
#, no-wrap |
| 309 |
msgid "B<ERANGE>" |
| 310 |
msgstr "B<ERANGE>" |
| 311 |
|
| 312 |
#. type: Plain text |
| 313 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 314 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 315 |
#, fuzzy |
| 316 |
#| msgid "" |
| 317 |
#| "I<buf> is too small. Try again with a larger buffer (and increased " |
| 318 |
#| "I<buflen>)." |
| 319 |
msgid "" |
| 320 |
"I<buf> is too small. Try again with a larger buffer (and increased I<size>)." |
| 321 |
msgstr "" |
| 322 |
"Размер I<buf> слишком мал. Попробуйте ещё раз с большим буфером (и " |
| 323 |
"увеличенным значением I<buflen>)." |
| 324 |
|
| 325 |
#. type: SH |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "ATTRIBUTES" |
| 330 |
msgstr "АТРИБУТЫ" |
| 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 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 337 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 338 |
|
| 339 |
#. type: tbl table |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "Interface" |
| 344 |
msgstr "Интерфейс" |
| 345 |
|
| 346 |
#. type: tbl table |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "Attribute" |
| 351 |
msgstr "Атрибут" |
| 352 |
|
| 353 |
#. type: tbl table |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "Value" |
| 358 |
msgstr "Значение" |
| 359 |
|
| 360 |
#. type: tbl table |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid ".na\n" |
| 365 |
msgstr ".na\n" |
| 366 |
|
| 367 |
#. type: tbl table |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid ".nh\n" |
| 372 |
msgstr ".nh\n" |
| 373 |
|
| 374 |
#. type: tbl table |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, fuzzy, no-wrap |
| 378 |
#| msgid "" |
| 379 |
#| "B<getrpcent_r>(),\n" |
| 380 |
#| "B<getrpcbyname_r>(),\n" |
| 381 |
#| "B<getrpcbynumber_r>()" |
| 382 |
msgid "" |
| 383 |
"B<getprotoent_r>(),\n" |
| 384 |
"B<getprotobyname_r>(),\n" |
| 385 |
"B<getprotobynumber_r>()" |
| 386 |
msgstr "" |
| 387 |
"B<getrpcent_r>(),\n" |
| 388 |
"B<getrpcbyname_r>(),\n" |
| 389 |
"B<getrpcbynumber_r>()" |
| 390 |
|
| 391 |
#. type: tbl table |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "Thread safety" |
| 396 |
msgstr "Безвредность в нитях" |
| 397 |
|
| 398 |
#. type: tbl table |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "MT-Safe locale" |
| 403 |
msgstr "MT-Safe locale" |
| 404 |
|
| 405 |
#. type: SH |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
#, no-wrap |
| 409 |
msgid "VERSIONS" |
| 410 |
msgstr "ВЕРСИИ" |
| 411 |
|
| 412 |
#. type: Plain text |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
msgid "" |
| 416 |
"Functions with similar names exist on some other systems, though typically " |
| 417 |
"with different calling signatures." |
| 418 |
msgstr "" |
| 419 |
"Функции с похожими именами есть и в других системах, хотя и с другим набором " |
| 420 |
"параметров." |
| 421 |
|
| 422 |
#. type: SH |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid "STANDARDS" |
| 427 |
msgstr "СТАНДАРТЫ" |
| 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 "GNU." |
| 433 |
msgstr "GNU." |
| 434 |
|
| 435 |
#. type: SH |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "EXAMPLES" |
| 440 |
msgstr "ПРИМЕРЫ" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, fuzzy |
| 446 |
#| msgid "" |
| 447 |
#| "The program below uses B<getprotobyname_r>() to retrieve the protocol " |
| 448 |
#| "record for the protocol named in its first command-line argument. If a " |
| 449 |
#| "second (integer) command-line argument is supplied, it is used as the " |
| 450 |
#| "initial value for I<buflen>; if B<getprotobyname_r>() fails with the " |
| 451 |
#| "error B<ERANGE>, the program retries with larger buffer sizes. The " |
| 452 |
#| "following shell session shows a couple of sample runs:" |
| 453 |
msgid "" |
| 454 |
"The program below uses B<getprotobyname_r>() to retrieve the protocol " |
| 455 |
"record for the protocol named in its first command-line argument. If a " |
| 456 |
"second (integer) command-line argument is supplied, it is used as the " |
| 457 |
"initial value for I<size>; if B<getprotobyname_r>() fails with the error " |
| 458 |
"B<ERANGE>, the program retries with larger buffer sizes. The following " |
| 459 |
"shell session shows a couple of sample runs:" |
| 460 |
msgstr "" |
| 461 |
"Программа, представленная ниже, использует B<getprotobyname_r>() для " |
| 462 |
"получения записи о протоколе с именем, указанным в командной строке. Если " |
| 463 |
"задан второй параметр (целое), то он используется как начальное значение " |
| 464 |
"I<buflen>; если B<getprotobyname_r>() завершается с ошибкой B<ERANGE>, то " |
| 465 |
"программа повторяет попытки с большими значениями буфера. Пара примеров " |
| 466 |
"работы в сеансовой оболочке:" |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 470 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
#, fuzzy, no-wrap |
| 472 |
#| msgid "" |
| 473 |
#| "$B< ./a.out tcp 1>\n" |
| 474 |
#| "ERANGE! Retrying with larger buffer\n" |
| 475 |
#| "getprotobyname_r() returned: 0 (success) (buflen=78)\n" |
| 476 |
#| "p_name=tcp; p_proto=6; aliases=TCP\n" |
| 477 |
#| "$B< ./a.out xxx 1>\n" |
| 478 |
#| "ERANGE! Retrying with larger buffer\n" |
| 479 |
#| "getprotobyname_r() returned: 0 (success) (buflen=100)\n" |
| 480 |
#| "Call failed/record not found\n" |
| 481 |
msgid "" |
| 482 |
"$B< ./a.out tcp 1>\n" |
| 483 |
"ERANGE! Retrying with larger buffer\n" |
| 484 |
"getprotobyname_r() returned: 0 (success) (size=78)\n" |
| 485 |
"p_name=tcp; p_proto=6; aliases=TCP\n" |
| 486 |
"$B< ./a.out xxx 1>\n" |
| 487 |
"ERANGE! Retrying with larger buffer\n" |
| 488 |
"getprotobyname_r() returned: 0 (success) (size=100)\n" |
| 489 |
"Call failed/record not found\n" |
| 490 |
msgstr "" |
| 491 |
"$B< ./a.out tcp 1>\n" |
| 492 |
"ERANGE! Повтор с большим буфером\n" |
| 493 |
"результат getprotobyname_r(): 0 (успешно) (buflen=78)\n" |
| 494 |
"p_name=tcp; p_proto=6; aliases=TCP\n" |
| 495 |
"$B< ./a.out xxx 1>\n" |
| 496 |
"ERANGE! Повтор с большим буфером\n" |
| 497 |
"результат getprotobyname_r(): 0 (успешно) (buflen=100)\n" |
| 498 |
"Ошибка вызова/запись не найдена\n" |
| 499 |
|
| 500 |
#. type: SS |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, no-wrap |
| 504 |
msgid "Program source" |
| 505 |
msgstr "Исходный код программы" |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 509 |
#: opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "" |
| 512 |
"#define _GNU_SOURCE\n" |
| 513 |
"#include E<lt>ctype.hE<gt>\n" |
| 514 |
"#include E<lt>errno.hE<gt>\n" |
| 515 |
"#include E<lt>netdb.hE<gt>\n" |
| 516 |
"#include E<lt>stdio.hE<gt>\n" |
| 517 |
"#include E<lt>stdlib.hE<gt>\n" |
| 518 |
"#include E<lt>string.hE<gt>\n" |
| 519 |
"\\&\n" |
| 520 |
"#define MAX_BUF 10000\n" |
| 521 |
"\\&\n" |
| 522 |
"int\n" |
| 523 |
"main(int argc, char *argv[])\n" |
| 524 |
"{\n" |
| 525 |
" int size, erange_cnt, s;\n" |
| 526 |
" struct protoent result_buf;\n" |
| 527 |
" struct protoent *result;\n" |
| 528 |
" char buf[MAX_BUF];\n" |
| 529 |
"\\&\n" |
| 530 |
" if (argc E<lt> 2) {\n" |
| 531 |
" printf(\"Usage: %s proto-name [size]\\[rs]n\", argv[0]);\n" |
| 532 |
" exit(EXIT_FAILURE);\n" |
| 533 |
" }\n" |
| 534 |
"\\&\n" |
| 535 |
" size = 1024;\n" |
| 536 |
" if (argc E<gt> 2)\n" |
| 537 |
" size = atoi(argv[2]);\n" |
| 538 |
"\\&\n" |
| 539 |
" if (size E<gt> MAX_BUF) {\n" |
| 540 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 541 |
" exit(EXIT_FAILURE);\n" |
| 542 |
" }\n" |
| 543 |
"\\&\n" |
| 544 |
" erange_cnt = 0;\n" |
| 545 |
" do {\n" |
| 546 |
" s = getprotobyname_r(argv[1], &result_buf,\n" |
| 547 |
" buf, size, &result);\n" |
| 548 |
" if (s == ERANGE) {\n" |
| 549 |
" if (erange_cnt == 0)\n" |
| 550 |
" printf(\"ERANGE! Retrying with larger buffer\\[rs]n\");\n" |
| 551 |
" erange_cnt++;\n" |
| 552 |
"\\&\n" |
| 553 |
" /* Increment a byte at a time so we can see exactly\n" |
| 554 |
" what size buffer was required. */\n" |
| 555 |
"\\&\n" |
| 556 |
" size++;\n" |
| 557 |
"\\&\n" |
| 558 |
" if (size E<gt> MAX_BUF) {\n" |
| 559 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 560 |
" exit(EXIT_FAILURE);\n" |
| 561 |
" }\n" |
| 562 |
" }\n" |
| 563 |
" } while (s == ERANGE);\n" |
| 564 |
"\\&\n" |
| 565 |
" printf(\"getprotobyname_r() returned: %s (size=%d)\\[rs]n\",\n" |
| 566 |
" (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n" |
| 567 |
" strerror(s), size);\n" |
| 568 |
"\\&\n" |
| 569 |
" if (s != 0 || result == NULL) {\n" |
| 570 |
" printf(\"Call failed/record not found\\[rs]n\");\n" |
| 571 |
" exit(EXIT_FAILURE);\n" |
| 572 |
" }\n" |
| 573 |
"\\&\n" |
| 574 |
" printf(\"p_name=%s; p_proto=%d; aliases=\",\n" |
| 575 |
" result_buf.p_name, result_buf.p_proto);\n" |
| 576 |
" for (char **p = result_buf.p_aliases; *p != NULL; p++)\n" |
| 577 |
" printf(\"%s \", *p);\n" |
| 578 |
" printf(\"\\[rs]n\");\n" |
| 579 |
"\\&\n" |
| 580 |
" exit(EXIT_SUCCESS);\n" |
| 581 |
"}\n" |
| 582 |
msgstr "" |
| 583 |
|
| 584 |
#. SRC END |
| 585 |
#. type: SH |
| 586 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 587 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 588 |
#, no-wrap |
| 589 |
msgid "SEE ALSO" |
| 590 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 591 |
|
| 592 |
#. type: Plain text |
| 593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
msgid "B<getprotoent>(3), B<protocols>(5)" |
| 596 |
msgstr "B<getprotoent>(3), B<protocols>(5)" |
| 597 |
|
| 598 |
#. type: TH |
| 599 |
#: debian-trixie |
| 600 |
#, no-wrap |
| 601 |
msgid "2024-06-15" |
| 602 |
msgstr "15 июня 2024 г." |
| 603 |
|
| 604 |
#. type: TH |
| 605 |
#: debian-trixie |
| 606 |
#, no-wrap |
| 607 |
msgid "Linux man-pages 6.9.1" |
| 608 |
msgstr "Страницы руководства Linux 6.9.1" |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: debian-trixie |
| 612 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 613 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 614 |
|
| 615 |
#. type: Plain text |
| 616 |
#: debian-trixie |
| 617 |
#, no-wrap |
| 618 |
msgid "" |
| 619 |
"B<int getprotoent_r(struct protoent *restrict >I<result_buf>B<,>\n" |
| 620 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 621 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 622 |
"B<int getprotobyname_r(const char *restrict >I<name>B<,>\n" |
| 623 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 624 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 625 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 626 |
"B<int getprotobynumber_r(int >I<proto>B<,>\n" |
| 627 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 628 |
"B< char >I<buf>B<[restrict .>I<buflen>B<], size_t >I<buflen>B<,>\n" |
| 629 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#. I can find no information on the required/recommended buffer size; |
| 633 |
#. the nonreentrant functions use a 1024 byte buffer. |
| 634 |
#. The 1024 byte value is also what the Solaris man page suggests. -- mtk |
| 635 |
#. type: Plain text |
| 636 |
#: debian-trixie |
| 637 |
msgid "" |
| 638 |
"The I<buf> array is used to store the string fields pointed to by the " |
| 639 |
"returned I<protoent> structure. (The nonreentrant functions allocate these " |
| 640 |
"strings in static storage.) The size of this array is specified in " |
| 641 |
"I<buflen>. If I<buf> is too small, the call fails with the error B<ERANGE>, " |
| 642 |
"and the caller must try again with a larger buffer. (A buffer of length " |
| 643 |
"1024 bytes should be sufficient for most applications.)" |
| 644 |
msgstr "" |
| 645 |
"Массив I<buf> используется для хранения строковых полей из возвращаемой " |
| 646 |
"структуры I<protoent> (нереентерабельные функции выделяют эти строки из " |
| 647 |
"статического хранилища). Размер данного массива задаётся в I<buflen>. Если " |
| 648 |
"I<buf> слишком мал, то вызов завершается с ошибкой B<ERANGE>, вызывающий " |
| 649 |
"должен его повторить с большим буфером (для большинства приложений должно " |
| 650 |
"быть достаточно буфера длиной 1024 байт)." |
| 651 |
|
| 652 |
#. type: Plain text |
| 653 |
#: debian-trixie |
| 654 |
msgid "" |
| 655 |
"I<buf> is too small. Try again with a larger buffer (and increased " |
| 656 |
"I<buflen>)." |
| 657 |
msgstr "" |
| 658 |
"Размер I<buf> слишком мал. Попробуйте ещё раз с большим буфером (и " |
| 659 |
"увеличенным значением I<buflen>)." |
| 660 |
|
| 661 |
#. type: Plain text |
| 662 |
#: debian-trixie |
| 663 |
msgid "" |
| 664 |
"The program below uses B<getprotobyname_r>() to retrieve the protocol " |
| 665 |
"record for the protocol named in its first command-line argument. If a " |
| 666 |
"second (integer) command-line argument is supplied, it is used as the " |
| 667 |
"initial value for I<buflen>; if B<getprotobyname_r>() fails with the error " |
| 668 |
"B<ERANGE>, the program retries with larger buffer sizes. The following " |
| 669 |
"shell session shows a couple of sample runs:" |
| 670 |
msgstr "" |
| 671 |
"Программа, представленная ниже, использует B<getprotobyname_r>() для " |
| 672 |
"получения записи о протоколе с именем, указанным в командной строке. Если " |
| 673 |
"задан второй параметр (целое), то он используется как начальное значение " |
| 674 |
"I<buflen>; если B<getprotobyname_r>() завершается с ошибкой B<ERANGE>, то " |
| 675 |
"программа повторяет попытки с большими значениями буфера. Пара примеров " |
| 676 |
"работы в сеансовой оболочке:" |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: debian-trixie |
| 680 |
#, no-wrap |
| 681 |
msgid "" |
| 682 |
"$B< ./a.out tcp 1>\n" |
| 683 |
"ERANGE! Retrying with larger buffer\n" |
| 684 |
"getprotobyname_r() returned: 0 (success) (buflen=78)\n" |
| 685 |
"p_name=tcp; p_proto=6; aliases=TCP\n" |
| 686 |
"$B< ./a.out xxx 1>\n" |
| 687 |
"ERANGE! Retrying with larger buffer\n" |
| 688 |
"getprotobyname_r() returned: 0 (success) (buflen=100)\n" |
| 689 |
"Call failed/record not found\n" |
| 690 |
msgstr "" |
| 691 |
"$B< ./a.out tcp 1>\n" |
| 692 |
"ERANGE! Повтор с большим буфером\n" |
| 693 |
"результат getprotobyname_r(): 0 (успешно) (buflen=78)\n" |
| 694 |
"p_name=tcp; p_proto=6; aliases=TCP\n" |
| 695 |
"$B< ./a.out xxx 1>\n" |
| 696 |
"ERANGE! Повтор с большим буфером\n" |
| 697 |
"результат getprotobyname_r(): 0 (успешно) (buflen=100)\n" |
| 698 |
"Ошибка вызова/запись не найдена\n" |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: debian-trixie |
| 702 |
#, no-wrap |
| 703 |
msgid "" |
| 704 |
"#define _GNU_SOURCE\n" |
| 705 |
"#include E<lt>ctype.hE<gt>\n" |
| 706 |
"#include E<lt>errno.hE<gt>\n" |
| 707 |
"#include E<lt>netdb.hE<gt>\n" |
| 708 |
"#include E<lt>stdio.hE<gt>\n" |
| 709 |
"#include E<lt>stdlib.hE<gt>\n" |
| 710 |
"#include E<lt>string.hE<gt>\n" |
| 711 |
"\\&\n" |
| 712 |
"#define MAX_BUF 10000\n" |
| 713 |
"\\&\n" |
| 714 |
"int\n" |
| 715 |
"main(int argc, char *argv[])\n" |
| 716 |
"{\n" |
| 717 |
" int buflen, erange_cnt, s;\n" |
| 718 |
" struct protoent result_buf;\n" |
| 719 |
" struct protoent *result;\n" |
| 720 |
" char buf[MAX_BUF];\n" |
| 721 |
"\\&\n" |
| 722 |
" if (argc E<lt> 2) {\n" |
| 723 |
" printf(\"Usage: %s proto-name [buflen]\\[rs]n\", argv[0]);\n" |
| 724 |
" exit(EXIT_FAILURE);\n" |
| 725 |
" }\n" |
| 726 |
"\\&\n" |
| 727 |
" buflen = 1024;\n" |
| 728 |
" if (argc E<gt> 2)\n" |
| 729 |
" buflen = atoi(argv[2]);\n" |
| 730 |
"\\&\n" |
| 731 |
" if (buflen E<gt> MAX_BUF) {\n" |
| 732 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 733 |
" exit(EXIT_FAILURE);\n" |
| 734 |
" }\n" |
| 735 |
"\\&\n" |
| 736 |
" erange_cnt = 0;\n" |
| 737 |
" do {\n" |
| 738 |
" s = getprotobyname_r(argv[1], &result_buf,\n" |
| 739 |
" buf, buflen, &result);\n" |
| 740 |
" if (s == ERANGE) {\n" |
| 741 |
" if (erange_cnt == 0)\n" |
| 742 |
" printf(\"ERANGE! Retrying with larger buffer\\[rs]n\");\n" |
| 743 |
" erange_cnt++;\n" |
| 744 |
"\\&\n" |
| 745 |
" /* Increment a byte at a time so we can see exactly\n" |
| 746 |
" what size buffer was required. */\n" |
| 747 |
"\\&\n" |
| 748 |
" buflen++;\n" |
| 749 |
"\\&\n" |
| 750 |
" if (buflen E<gt> MAX_BUF) {\n" |
| 751 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 752 |
" exit(EXIT_FAILURE);\n" |
| 753 |
" }\n" |
| 754 |
" }\n" |
| 755 |
" } while (s == ERANGE);\n" |
| 756 |
"\\&\n" |
| 757 |
" printf(\"getprotobyname_r() returned: %s (buflen=%d)\\[rs]n\",\n" |
| 758 |
" (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n" |
| 759 |
" strerror(s), buflen);\n" |
| 760 |
"\\&\n" |
| 761 |
" if (s != 0 || result == NULL) {\n" |
| 762 |
" printf(\"Call failed/record not found\\[rs]n\");\n" |
| 763 |
" exit(EXIT_FAILURE);\n" |
| 764 |
" }\n" |
| 765 |
"\\&\n" |
| 766 |
" printf(\"p_name=%s; p_proto=%d; aliases=\",\n" |
| 767 |
" result_buf.p_name, result_buf.p_proto);\n" |
| 768 |
" for (char **p = result_buf.p_aliases; *p != NULL; p++)\n" |
| 769 |
" printf(\"%s \", *p);\n" |
| 770 |
" printf(\"\\[rs]n\");\n" |
| 771 |
"\\&\n" |
| 772 |
" exit(EXIT_SUCCESS);\n" |
| 773 |
"}\n" |
| 774 |
msgstr "" |
| 775 |
|
| 776 |
#. type: TH |
| 777 |
#: fedora-44 fedora-rawhide |
| 778 |
#, no-wrap |
| 779 |
msgid "2024-12-24" |
| 780 |
msgstr "24 декабря 2024 г." |
| 781 |
|
| 782 |
#. type: TH |
| 783 |
#: fedora-44 fedora-rawhide |
| 784 |
#, no-wrap |
| 785 |
msgid "Linux man-pages 6.13" |
| 786 |
msgstr "Страницы руководства Linux 6.13" |
| 787 |
|
| 788 |
#. type: Plain text |
| 789 |
#: fedora-44 fedora-rawhide |
| 790 |
#, no-wrap |
| 791 |
msgid "" |
| 792 |
"B<int getprotoent_r(struct protoent *restrict >I<result_buf>B<,>\n" |
| 793 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 794 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 795 |
"B<int getprotobyname_r(const char *restrict >I<name>B<,>\n" |
| 796 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 797 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 798 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 799 |
"B<int getprotobynumber_r(int >I<proto>B<,>\n" |
| 800 |
"B< struct protoent *restrict >I<result_buf>B<,>\n" |
| 801 |
"B< char >I<buf>B<[restrict .>I<size>B<], size_t >I<size>B<,>\n" |
| 802 |
"B< struct protoent **restrict >I<result>B<);>\n" |
| 803 |
msgstr "" |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: fedora-44 fedora-rawhide |
| 807 |
#, no-wrap |
| 808 |
msgid "" |
| 809 |
"#define _GNU_SOURCE\n" |
| 810 |
"#include E<lt>ctype.hE<gt>\n" |
| 811 |
"#include E<lt>errno.hE<gt>\n" |
| 812 |
"#include E<lt>netdb.hE<gt>\n" |
| 813 |
"#include E<lt>stdio.hE<gt>\n" |
| 814 |
"#include E<lt>stdlib.hE<gt>\n" |
| 815 |
"#include E<lt>string.hE<gt>\n" |
| 816 |
"\\&\n" |
| 817 |
"#define MAX_BUF 10000\n" |
| 818 |
"\\&\n" |
| 819 |
"int\n" |
| 820 |
"main(int argc, char *argv[])\n" |
| 821 |
"{\n" |
| 822 |
" int size, erange_cnt, s;\n" |
| 823 |
" struct protoent result_buf;\n" |
| 824 |
" struct protoent *result;\n" |
| 825 |
" char buf[MAX_BUF];\n" |
| 826 |
"\\&\n" |
| 827 |
" if (argc E<lt> 2) {\n" |
| 828 |
" printf(\"Usage: %s proto-name [size]\\[rs]n\", argv[0]);\n" |
| 829 |
" exit(EXIT_FAILURE);\n" |
| 830 |
" }\n" |
| 831 |
"\\&\n" |
| 832 |
" size = 1024;\n" |
| 833 |
" if (argc E<gt> 2)\n" |
| 834 |
" size = atoi(argv[2]);\n" |
| 835 |
"\\&\n" |
| 836 |
" if (size E<gt> MAX_BUF) {\n" |
| 837 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 838 |
" exit(EXIT_FAILURE);\n" |
| 839 |
" }\n" |
| 840 |
"\\&\n" |
| 841 |
" erange_cnt = 0;\n" |
| 842 |
" do {\n" |
| 843 |
" s = getprotobyname_r(argv[1], &result_buf,\n" |
| 844 |
" buf, size, &result);\n" |
| 845 |
" if (s == ERANGE) {\n" |
| 846 |
" if (erange_cnt == 0)\n" |
| 847 |
" printf(\"ERANGE! Retrying with larger buffer\\[rs]n\");\n" |
| 848 |
" erange_cnt++;\n" |
| 849 |
"\\&\n" |
| 850 |
" /* Increment a byte at a time so we can see exactly\n" |
| 851 |
" what size buffer was required. */\n" |
| 852 |
"\\&\n" |
| 853 |
" size++;\n" |
| 854 |
"\\&\n" |
| 855 |
" if (size E<gt> MAX_BUF) {\n" |
| 856 |
" printf(\"Exceeded buffer limit (%d)\\[rs]n\", MAX_BUF);\n" |
| 857 |
" exit(EXIT_FAILURE);\n" |
| 858 |
" }\n" |
| 859 |
" }\n" |
| 860 |
" } while (s == ERANGE);\n" |
| 861 |
"\\&\n" |
| 862 |
" printf(\"getprotobyname_r() returned: %s (size=%d)\\[rs]n\",\n" |
| 863 |
" (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n" |
| 864 |
" strerror(s), size);\n" |
| 865 |
"\\&\n" |
| 866 |
" if (s != 0 || result == NULL) {\n" |
| 867 |
" printf(\"Call failed/record not found\\[rs]n\");\n" |
| 868 |
" exit(EXIT_FAILURE);\n" |
| 869 |
" }\n" |
| 870 |
"\\&\n" |
| 871 |
" printf(\"p_name=%s; p_proto=%d; aliases=\",\n" |
| 872 |
" result_buf.p_name, result_buf.p_proto);\n" |
| 873 |
" for (char **p = result_buf.p_aliases; *p != NULL; p++)\n" |
| 874 |
" printf(\"%s \", *p);\n" |
| 875 |
" printf(\"\\[rs]n\");\n" |
| 876 |
"\\&\n" |
| 877 |
" exit(EXIT_SUCCESS);\n" |
| 878 |
"}\n" |
| 879 |
msgstr "" |
| 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 (не выпущены)" |