| 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:26+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<getsubopt>()" |
| 30 |
msgid "getsubopt" |
| 31 |
msgstr "B<getsubopt>()" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 35 |
#: opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "2026-02-08" |
| 38 |
msgstr "8 февраля 2026 г." |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable |
| 42 |
#, fuzzy, no-wrap |
| 43 |
#| msgid "Linux man-pages 6.17" |
| 44 |
msgid "Linux man-pages 6.18" |
| 45 |
msgstr "Справочные страницы Linux 6.17" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
#, no-wrap |
| 51 |
msgid "NAME" |
| 52 |
msgstr "НАИМЕНОВАНИЕ" |
| 53 |
|
| 54 |
#. type: Plain text |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
msgid "getsubopt - parse suboption arguments from a string" |
| 58 |
msgstr "getsubopt - анализирует подпараметры аргументов строки" |
| 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>stdlib.hE<gt>>\n" |
| 85 |
msgstr "B<#include E<lt>stdlib.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 getsubopt(char **>I<optionp>B<, char * const *>I<tokens>B<, char **>I<valuep>B<);>" |
| 92 |
msgid "" |
| 93 |
"B<int getsubopt(char **restrict >I<optionp>B<, char *const *restrict >I<tokens>B<,>\n" |
| 94 |
"B< char **restrict >I<valuep>B<);>\n" |
| 95 |
msgstr "B<int getsubopt(char **>I<optionp>B<, char * const *>I<tokens>B<, char **>I<valuep>B<);>" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
msgid "" |
| 101 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 102 |
msgstr "" |
| 103 |
"Требования макроса тестирования свойств для glibc (см. " |
| 104 |
"B<feature_test_macros>(7)):" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
msgid "B<getsubopt>():" |
| 110 |
msgstr "B<getsubopt>():" |
| 111 |
|
| 112 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, no-wrap |
| 117 |
msgid "" |
| 118 |
" _XOPEN_SOURCE E<gt>= 500\n" |
| 119 |
" || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 120 |
msgstr "" |
| 121 |
" _XOPEN_SOURCE E<gt>= 500\n" |
| 122 |
" || /* начиная с glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 123 |
|
| 124 |
#. type: SH |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "DESCRIPTION" |
| 129 |
msgstr "ОПИСАНИЕ" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"B<getsubopt>() parses the list of comma-separated suboptions provided in " |
| 136 |
"I<optionp>. (Such a suboption list is typically produced when B<getopt>(3) " |
| 137 |
"is used to parse a command line; see for example the I<-o> option of " |
| 138 |
"B<mount>(8).) Each suboption may include an associated value, which is " |
| 139 |
"separated from the suboption name by an equal sign. The following is an " |
| 140 |
"example of the kind of string that might be passed in I<optionp>:" |
| 141 |
msgstr "" |
| 142 |
"Функция B<getsubopt>() анализирует список подпараметров, указываемых через " |
| 143 |
"запятую, заданный в I<optionp> (такой список подпараметров, обычно, " |
| 144 |
"создаётся при использовании B<getopt>(3) для разбора командной строки; " |
| 145 |
"например, смотрите параметр I<-o> в B<mount>(8)). Каждый подпараметр может " |
| 146 |
"содержать связанное с ним значение, которое отделяется от имени подпараметра " |
| 147 |
"знаком равно. Вот пример строки, которую можно передать в I<optionp>:" |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
#, no-wrap |
| 153 |
msgid "B<ro,name=xyz>\n" |
| 154 |
msgstr "B<ro,name=xyz>\n" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The I<tokens> argument is a pointer to a NULL-terminated array of pointers " |
| 161 |
"to the tokens that B<getsubopt>() will look for in I<optionp>. The tokens " |
| 162 |
"should be distinct, null-terminated strings containing at least one " |
| 163 |
"character, with no embedded equal signs or commas." |
| 164 |
msgstr "" |
| 165 |
"Аргумент I<tokens> — указатель на массив (завершается NULL) указателей на " |
| 166 |
"токены, которые B<getsubopt>() будет просматривать при поиске в I<optionp>. " |
| 167 |
"Токены должны быть различающимися строками (завершающимися null), " |
| 168 |
"содержащими, как минимум, один символ и не содержащих знаков равно или " |
| 169 |
"запятых." |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"Each call to B<getsubopt>() returns information about the next unprocessed " |
| 176 |
"suboption in I<optionp>. The first equal sign in a suboption (if any) is " |
| 177 |
"interpreted as a separator between the name and the value of that " |
| 178 |
"suboption. The value extends to the next comma, or (for the last suboption) " |
| 179 |
"to the end of the string. If the name of the suboption matches a known name " |
| 180 |
"from I<tokens>, and a value string was found, B<getsubopt>() sets " |
| 181 |
"I<*valuep> to the address of that string. The first comma in I<optionp> is " |
| 182 |
"overwritten with a null byte, so I<*valuep> is precisely the \"value " |
| 183 |
"string\" for that suboption." |
| 184 |
msgstr "" |
| 185 |
"При каждом вызове B<getsubopt>() возвращается информация о следующем " |
| 186 |
"необработанном подпараметре в I<optionp>. Первый знак равно в подпараметре " |
| 187 |
"(если есть) считается разделителем имени и значения в этом подпараметре. " |
| 188 |
"Значение длится до последующей запятой или (для последнего подпараметра) до " |
| 189 |
"конца строки. Если имя подпараметра совпадает с известным именем из " |
| 190 |
"I<tokens>, и найдено строка-значение, то B<getsubopt>() записывает в " |
| 191 |
"I<*valuep> адрес этой строки. Первая запятая в I<optionp> перезаписывается " |
| 192 |
"байтом null, поэтому I<*valuep> — точное «строка-значение» этого " |
| 193 |
"подпараметра." |
| 194 |
|
| 195 |
#. type: Plain text |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
msgid "" |
| 199 |
"If the suboption is recognized, but no value string was found, I<*valuep> is " |
| 200 |
"set to NULL." |
| 201 |
msgstr "" |
| 202 |
"Если подпараметр распознан, но значение строки не найдено, то I<*valuep> " |
| 203 |
"присваивается NULL." |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, fuzzy |
| 209 |
#| msgid "" |
| 210 |
#| "When B<getsubopt>() returns, I<optionp> points to the next suboption, or " |
| 211 |
#| "to the null byte (\\(aq\\e0\\(aq) at the end of the string if the last " |
| 212 |
#| "suboption was just processed." |
| 213 |
msgid "" |
| 214 |
"When B<getsubopt>() returns, I<optionp> points to the next suboption, or to " |
| 215 |
"the null byte (\\[aq]\\[rs]0\\[aq]) at the end of the string if the last " |
| 216 |
"suboption was just processed." |
| 217 |
msgstr "" |
| 218 |
"При завершении работы B<getsubopt>() значение I<optionp> указывает на " |
| 219 |
"следующий подпараметр или на байт null (\\(aq\\e0\\(aq) в конце строки (в " |
| 220 |
"случае, если последний подпараметр был только что обработан)." |
| 221 |
|
| 222 |
#. type: SH |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid "RETURN VALUE" |
| 227 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"If the first suboption in I<optionp> is recognized, B<getsubopt>() returns " |
| 234 |
"the index of the matching suboption element in I<tokens>. Otherwise, -1 is " |
| 235 |
"returned and I<*valuep> is the entire I<name>B<[=>I<value>B<]> string." |
| 236 |
msgstr "" |
| 237 |
"Если в I<optionp> распознан первый подпараметр, то B<getsubopt>() возвращает " |
| 238 |
"индекс элемента в I<tokens> найденного подпараметра. В противном случае " |
| 239 |
"возвращается -1 и значение I<*valuep> указывает на целую строку " |
| 240 |
"I<name>B<[=>I<value>B<]>." |
| 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 |
"Since I<*optionp> is changed, the first suboption before the call to " |
| 247 |
"B<getsubopt>() is not (necessarily) the same as the first suboption after " |
| 248 |
"B<getsubopt>()." |
| 249 |
msgstr "" |
| 250 |
"Так как I<*optionp> изменяется, первый подпараметр перед вызовом " |
| 251 |
"B<getsubopt>() не (не всегда) тот же самый, что и первый подпараметр после " |
| 252 |
"B<getsubopt>()." |
| 253 |
|
| 254 |
#. type: SH |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "ATTRIBUTES" |
| 259 |
msgstr "АТРИБУТЫ" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 266 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 267 |
|
| 268 |
#. type: tbl table |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "Interface" |
| 273 |
msgstr "Интерфейс" |
| 274 |
|
| 275 |
#. type: tbl table |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "Attribute" |
| 280 |
msgstr "Атрибут" |
| 281 |
|
| 282 |
#. type: tbl table |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "Value" |
| 287 |
msgstr "Значение" |
| 288 |
|
| 289 |
#. type: tbl table |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid ".na\n" |
| 294 |
msgstr ".na\n" |
| 295 |
|
| 296 |
#. type: tbl table |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid ".nh\n" |
| 301 |
msgstr ".nh\n" |
| 302 |
|
| 303 |
#. type: tbl table |
| 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<getsubopt>()" |
| 308 |
msgstr "B<getsubopt>()" |
| 309 |
|
| 310 |
#. type: tbl table |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "Thread safety" |
| 315 |
msgstr "Безвредность в нитях" |
| 316 |
|
| 317 |
#. type: tbl table |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "MT-Safe" |
| 322 |
msgstr "MT-Safe" |
| 323 |
|
| 324 |
#. type: SH |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "STANDARDS" |
| 329 |
msgstr "СТАНДАРТЫ" |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "POSIX.1-2008." |
| 335 |
msgstr "POSIX.1-2008." |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "HISTORY" |
| 342 |
msgstr "ИСТОРИЯ" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "POSIX.1-2001." |
| 348 |
msgstr "POSIX.1-2001." |
| 349 |
|
| 350 |
#. type: SH |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
#, no-wrap |
| 354 |
msgid "NOTES" |
| 355 |
msgstr "ПРИМЕЧАНИЯ" |
| 356 |
|
| 357 |
#. type: Plain text |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
msgid "" |
| 361 |
"Since B<getsubopt>() overwrites any commas it finds in the string " |
| 362 |
"I<*optionp>, that string must be writable; it cannot be a string constant." |
| 363 |
msgstr "" |
| 364 |
"Так как B<getsubopt>() заменяет запятые, найденные в строке I<*optionp>, то " |
| 365 |
"строка должна быть доступна на запись; она не может быть строковой " |
| 366 |
"константой." |
| 367 |
|
| 368 |
#. type: SH |
| 369 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 370 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 371 |
#, no-wrap |
| 372 |
msgid "EXAMPLES" |
| 373 |
msgstr "ПРИМЕРЫ" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "The following program expects suboptions following a \"-o\" option." |
| 379 |
msgstr "Следующая программа ожидает подпараметры после параметра «-o»." |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 383 |
#: opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "" |
| 386 |
"#define _XOPEN_SOURCE 500\n" |
| 387 |
"#include E<lt>stdio.hE<gt>\n" |
| 388 |
"#include E<lt>stdlib.hE<gt>\n" |
| 389 |
"\\&\n" |
| 390 |
"#include E<lt>assert.hE<gt>\n" |
| 391 |
"\\&\n" |
| 392 |
"int\n" |
| 393 |
"main(int argc, char *argv[])\n" |
| 394 |
"{\n" |
| 395 |
" enum {\n" |
| 396 |
" RO_OPT = 0,\n" |
| 397 |
" RW_OPT,\n" |
| 398 |
" NAME_OPT\n" |
| 399 |
" };\n" |
| 400 |
" char *const token[] = {\n" |
| 401 |
" [RO_OPT] = \"ro\",\n" |
| 402 |
" [RW_OPT] = \"rw\",\n" |
| 403 |
" [NAME_OPT] = \"name\",\n" |
| 404 |
" NULL\n" |
| 405 |
" };\n" |
| 406 |
" char *subopts;\n" |
| 407 |
" char *value;\n" |
| 408 |
" int opt;\n" |
| 409 |
"\\&\n" |
| 410 |
" int readonly = 0;\n" |
| 411 |
" int readwrite = 0;\n" |
| 412 |
" char *name = NULL;\n" |
| 413 |
" int errfnd = 0;\n" |
| 414 |
"\\&\n" |
| 415 |
" while ((opt = getopt(argc, argv, \"o:\")) != -1) {\n" |
| 416 |
" switch (opt) {\n" |
| 417 |
" case \\[aq]o\\[aq]:\n" |
| 418 |
" subopts = optarg;\n" |
| 419 |
" while (*subopts != \\[aq]\\[rs]0\\[aq] && !errfnd) {\n" |
| 420 |
"\\&\n" |
| 421 |
" switch (getsubopt(&subopts, token, &value)) {\n" |
| 422 |
" case RO_OPT:\n" |
| 423 |
" readonly = 1;\n" |
| 424 |
" break;\n" |
| 425 |
"\\&\n" |
| 426 |
" case RW_OPT:\n" |
| 427 |
" readwrite = 1;\n" |
| 428 |
" break;\n" |
| 429 |
"\\&\n" |
| 430 |
" case NAME_OPT:\n" |
| 431 |
" if (value == NULL) {\n" |
| 432 |
" fprintf(stderr,\n" |
| 433 |
" \"Missing value for suboption \\[aq]%s\\[aq]\\[rs]n\",\n" |
| 434 |
" token[NAME_OPT]);\n" |
| 435 |
" errfnd = 1;\n" |
| 436 |
" continue;\n" |
| 437 |
" }\n" |
| 438 |
"\\&\n" |
| 439 |
" name = value;\n" |
| 440 |
" break;\n" |
| 441 |
"\\&\n" |
| 442 |
" default:\n" |
| 443 |
" fprintf(stderr,\n" |
| 444 |
" \"No match found for token: /%s/\\[rs]n\", value);\n" |
| 445 |
" errfnd = 1;\n" |
| 446 |
" break;\n" |
| 447 |
" }\n" |
| 448 |
" }\n" |
| 449 |
" if (readwrite && readonly) {\n" |
| 450 |
" fprintf(stderr,\n" |
| 451 |
" \"Only one of \\[aq]%s\\[aq] and \\[aq]%s\\[aq] can be specified\\[rs]n\",\n" |
| 452 |
" token[RO_OPT], token[RW_OPT]);\n" |
| 453 |
" errfnd = 1;\n" |
| 454 |
" }\n" |
| 455 |
" break;\n" |
| 456 |
"\\&\n" |
| 457 |
" default:\n" |
| 458 |
" errfnd = 1;\n" |
| 459 |
" }\n" |
| 460 |
" }\n" |
| 461 |
"\\&\n" |
| 462 |
" if (errfnd || argc == 1) {\n" |
| 463 |
" fprintf(stderr, \"\\[rs]nUsage: %s -o E<lt>suboptstringE<gt>\\[rs]n\", argv[0]);\n" |
| 464 |
" fprintf(stderr,\n" |
| 465 |
" \"suboptions are \\[aq]ro\\[aq], \\[aq]rw\\[aq], and \\[aq]name=E<lt>valueE<gt>\\[aq]\\[rs]n\");\n" |
| 466 |
" exit(EXIT_FAILURE);\n" |
| 467 |
" }\n" |
| 468 |
"\\&\n" |
| 469 |
" /* Remainder of program... */\n" |
| 470 |
"\\&\n" |
| 471 |
" exit(EXIT_SUCCESS);\n" |
| 472 |
"}\n" |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#. SRC END |
| 476 |
#. type: SH |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "SEE ALSO" |
| 481 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 482 |
|
| 483 |
#. type: Plain text |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
msgid "B<getopt>(3)" |
| 487 |
msgstr "B<getopt>(3)" |
| 488 |
|
| 489 |
#. type: TH |
| 490 |
#: debian-trixie |
| 491 |
#, no-wrap |
| 492 |
msgid "2024-06-15" |
| 493 |
msgstr "15 июня 2024 г." |
| 494 |
|
| 495 |
#. type: TH |
| 496 |
#: debian-trixie |
| 497 |
#, no-wrap |
| 498 |
msgid "Linux man-pages 6.9.1" |
| 499 |
msgstr "Страницы руководства Linux 6.9.1" |
| 500 |
|
| 501 |
#. type: Plain text |
| 502 |
#: debian-trixie |
| 503 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 504 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: debian-trixie fedora-44 fedora-rawhide |
| 508 |
#, no-wrap |
| 509 |
msgid "" |
| 510 |
"#define _XOPEN_SOURCE 500\n" |
| 511 |
"#include E<lt>stdio.hE<gt>\n" |
| 512 |
"#include E<lt>stdlib.hE<gt>\n" |
| 513 |
"\\&\n" |
| 514 |
"#include E<lt>assert.hE<gt>\n" |
| 515 |
"\\&\n" |
| 516 |
"int\n" |
| 517 |
"main(int argc, char *argv[])\n" |
| 518 |
"{\n" |
| 519 |
" enum {\n" |
| 520 |
" RO_OPT = 0,\n" |
| 521 |
" RW_OPT,\n" |
| 522 |
" NAME_OPT\n" |
| 523 |
" };\n" |
| 524 |
" char *const token[] = {\n" |
| 525 |
" [RO_OPT] = \"ro\",\n" |
| 526 |
" [RW_OPT] = \"rw\",\n" |
| 527 |
" [NAME_OPT] = \"name\",\n" |
| 528 |
" NULL\n" |
| 529 |
" };\n" |
| 530 |
" char *subopts;\n" |
| 531 |
" char *value;\n" |
| 532 |
" int opt;\n" |
| 533 |
"\\&\n" |
| 534 |
" int readonly = 0;\n" |
| 535 |
" int readwrite = 0;\n" |
| 536 |
" char *name = NULL;\n" |
| 537 |
" int errfnd = 0;\n" |
| 538 |
"\\&\n" |
| 539 |
" while ((opt = getopt(argc, argv, \"o:\")) != -1) {\n" |
| 540 |
" switch (opt) {\n" |
| 541 |
" case \\[aq]o\\[aq]:\n" |
| 542 |
" subopts = optarg;\n" |
| 543 |
" while (*subopts != \\[aq]\\[rs]0\\[aq] && !errfnd) {\n" |
| 544 |
"\\&\n" |
| 545 |
" switch (getsubopt(&subopts, token, &value)) {\n" |
| 546 |
" case RO_OPT:\n" |
| 547 |
" readonly = 1;\n" |
| 548 |
" break;\n" |
| 549 |
"\\&\n" |
| 550 |
" case RW_OPT:\n" |
| 551 |
" readwrite = 1;\n" |
| 552 |
" break;\n" |
| 553 |
"\\&\n" |
| 554 |
" case NAME_OPT:\n" |
| 555 |
" if (value == NULL) {\n" |
| 556 |
" fprintf(stderr,\n" |
| 557 |
" \"Missing value for suboption \\[aq]%s\\[aq]\\[rs]n\",\n" |
| 558 |
" token[NAME_OPT]);\n" |
| 559 |
" errfnd = 1;\n" |
| 560 |
" continue;\n" |
| 561 |
" }\n" |
| 562 |
"\\&\n" |
| 563 |
" name = value;\n" |
| 564 |
" break;\n" |
| 565 |
"\\&\n" |
| 566 |
" default:\n" |
| 567 |
" fprintf(stderr,\n" |
| 568 |
" \"No match found for token: /%s/\\[rs]n\", value);\n" |
| 569 |
" errfnd = 1;\n" |
| 570 |
" break;\n" |
| 571 |
" }\n" |
| 572 |
" }\n" |
| 573 |
" if (readwrite && readonly) {\n" |
| 574 |
" fprintf(stderr,\n" |
| 575 |
" \"Only one of \\[aq]%s\\[aq] and \\[aq]%s\\[aq] can be specified\\[rs]n\",\n" |
| 576 |
" token[RO_OPT], token[RW_OPT]);\n" |
| 577 |
" errfnd = 1;\n" |
| 578 |
" }\n" |
| 579 |
" break;\n" |
| 580 |
"\\&\n" |
| 581 |
" default:\n" |
| 582 |
" errfnd = 1;\n" |
| 583 |
" }\n" |
| 584 |
" }\n" |
| 585 |
"\\&\n" |
| 586 |
" if (errfnd || argc == 1) {\n" |
| 587 |
" fprintf(stderr, \"\\[rs]nUsage: %s -o E<lt>suboptstringE<gt>\\[rs]n\", argv[0]);\n" |
| 588 |
" fprintf(stderr,\n" |
| 589 |
" \"suboptions are \\[aq]ro\\[aq], \\[aq]rw\\[aq], and \\[aq]name=E<lt>valueE<gt>\\[aq]\\[rs]n\");\n" |
| 590 |
" exit(EXIT_FAILURE);\n" |
| 591 |
" }\n" |
| 592 |
"\\&\n" |
| 593 |
" /* Remainder of program... */\n" |
| 594 |
"\\&\n" |
| 595 |
" exit(EXIT_SUCCESS);\n" |
| 596 |
"}\n" |
| 597 |
msgstr "" |
| 598 |
|
| 599 |
#. type: TH |
| 600 |
#: fedora-44 fedora-rawhide |
| 601 |
#, no-wrap |
| 602 |
msgid "2024-07-23" |
| 603 |
msgstr "23 июля 2024 г." |
| 604 |
|
| 605 |
#. type: TH |
| 606 |
#: fedora-44 fedora-rawhide |
| 607 |
#, no-wrap |
| 608 |
msgid "Linux man-pages 6.13" |
| 609 |
msgstr "Страницы руководства Linux 6.13" |
| 610 |
|
| 611 |
#. type: TH |
| 612 |
#: mageia-cauldron |
| 613 |
#, no-wrap |
| 614 |
msgid "Linux man-pages 6.17" |
| 615 |
msgstr "Страницы руководства Linux 6.17" |
| 616 |
|
| 617 |
#. type: TH |
| 618 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "Linux man-pages (unreleased)" |
| 621 |
msgstr "Страницы руководства Linux (не выпущены)" |