| 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 |
# Yuri Kozlov <[email protected]>, 2012-2019. |
| 5 |
# Иван Павлов <[email protected]>, 2017, 2019. |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: manpages-l10n\n" |
| 9 |
"POT-Creation-Date: 2026-06-05 06:27+0200\n" |
| 10 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 11 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 12 |
"Language-Team: Russian <[email protected]>\n" |
| 13 |
"Language: ru\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 18 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 19 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 20 |
"X-Generator: Lokalize 2.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, fuzzy, no-wrap |
| 26 |
#| msgid "I<search>" |
| 27 |
msgid "hsearch" |
| 28 |
msgstr "I<поиск>" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-08" |
| 35 |
msgstr "8 февраля 2026 г." |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, fuzzy, no-wrap |
| 40 |
#| msgid "Linux man-pages 6.17" |
| 41 |
msgid "Linux man-pages 6.18" |
| 42 |
msgstr "Справочные страницы Linux 6.17" |
| 43 |
|
| 44 |
#. type: SH |
| 45 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 46 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 47 |
#, no-wrap |
| 48 |
msgid "NAME" |
| 49 |
msgstr "НАИМЕНОВАНИЕ" |
| 50 |
|
| 51 |
#. type: Plain text |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
msgid "" |
| 55 |
"hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - hash table " |
| 56 |
"management" |
| 57 |
msgstr "" |
| 58 |
"hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - операции над " |
| 59 |
"ассоциативными массивами" |
| 60 |
|
| 61 |
#. type: SH |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
#, no-wrap |
| 65 |
msgid "LIBRARY" |
| 66 |
msgstr "БИБЛИОТЕКА" |
| 67 |
|
| 68 |
#. type: Plain text |
| 69 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 70 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 72 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 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>search.hE<gt>>\n" |
| 86 |
msgstr "B<#include E<lt>search.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, fuzzy, no-wrap |
| 92 |
#| msgid "B<int hcreate(size_t >I<nel>B<);>\n" |
| 93 |
msgid "" |
| 94 |
"B<int hcreate(size_t >I<nel>B<);>\n" |
| 95 |
"B<void hdestroy(void);>\n" |
| 96 |
msgstr "B<int hcreate(size_t >I<nel>B<);>\n" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n" |
| 103 |
msgstr "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
#, no-wrap |
| 109 |
msgid "" |
| 110 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 111 |
"B<#include E<lt>search.hE<gt>>\n" |
| 112 |
msgstr "" |
| 113 |
"B<#define _GNU_SOURCE> /* смотрите feature_test_macros(7) */\n" |
| 114 |
"B<#include E<lt>search.hE<gt>>\n" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
#, fuzzy, no-wrap |
| 120 |
#| msgid "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n" |
| 121 |
msgid "" |
| 122 |
"B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n" |
| 123 |
"B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n" |
| 124 |
msgstr "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
#, no-wrap |
| 130 |
msgid "" |
| 131 |
"B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n" |
| 132 |
"B< struct hsearch_data *>I<htab>B<);>\n" |
| 133 |
msgstr "" |
| 134 |
"B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n" |
| 135 |
"B< struct hsearch_data *>I<htab>B<);>\n" |
| 136 |
|
| 137 |
#. type: SH |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "DESCRIPTION" |
| 142 |
msgstr "ОПИСАНИЕ" |
| 143 |
|
| 144 |
#. type: Plain text |
| 145 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 146 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 147 |
msgid "" |
| 148 |
"The three functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() allow the " |
| 149 |
"caller to create and manage a hash search table containing entries " |
| 150 |
"consisting of a key (a string) and associated data. Using these functions, " |
| 151 |
"only one hash table can be used at a time." |
| 152 |
msgstr "" |
| 153 |
"Функции B<hcreate>(), B<hsearch>() и B<hdestroy>() позволяют создать и " |
| 154 |
"работать с ассоциативным массивом поиска (хэшем), который содержит элементы, " |
| 155 |
"состоящие из ключа (строки) и связанных с ним данных. Функции позволяют " |
| 156 |
"работать одномоментно только с одним массивом." |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"The three functions B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() are " |
| 163 |
"reentrant versions that allow a program to use more than one hash search " |
| 164 |
"table at the same time. The last argument, I<htab>, points to a structure " |
| 165 |
"that describes the table on which the function is to operate. The " |
| 166 |
"programmer should treat this structure as opaque (i.e., do not attempt to " |
| 167 |
"directly access or modify the fields in this structure)." |
| 168 |
msgstr "" |
| 169 |
"Функции B<hcreate_r>(), B<hsearch_r>() и B<hdestroy_r>() являются " |
| 170 |
"реентерабильными версиями, позволяющими программе создавать более одного " |
| 171 |
"массива поиска одномоментно. Последний параметр, I<htab>, указывает на " |
| 172 |
"структуру, описывающую массив, с которым работает функция. Программист " |
| 173 |
"должен считать, что не знает её формат (т. е., не должен пытаться напрямую " |
| 174 |
"читать и изменять её поля)." |
| 175 |
|
| 176 |
#. e.g., in glibc it is raised to the next higher prime number |
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"First a hash table must be created using B<hcreate>(). The argument I<nel> " |
| 182 |
"specifies the maximum number of entries in the table. (This maximum cannot " |
| 183 |
"be changed later, so choose it wisely.) The implementation may adjust this " |
| 184 |
"value upward to improve the performance of the resulting hash table." |
| 185 |
msgstr "" |
| 186 |
"Сначала, хэш должен быть создан с помощью функции B<hcreate>(). В аргументе " |
| 187 |
"I<nel> указывается предполагаемое максимальное количество элементов в " |
| 188 |
"массиве (данный максимум нельзя изменить позже, указывайте значение с " |
| 189 |
"запасом). Реализация функции может изменить этот параметр для повышения " |
| 190 |
"быстродействия массива." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"The B<hcreate_r>() function performs the same task as B<hcreate>(), but for " |
| 197 |
"the table described by the structure I<*htab>. The structure pointed to by " |
| 198 |
"I<htab> must be zeroed before the first call to B<hcreate_r>()." |
| 199 |
msgstr "" |
| 200 |
"Функция B<hcreate_r>() выполняет тоже, что и B<hcreate>(), но для массива, " |
| 201 |
"описанного в структуре I<*htab>. Перед вызовом B<hcreate_r>() структура, на " |
| 202 |
"которую указывает I<htab>, должна быть обнулена." |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"The function B<hdestroy>() frees the memory occupied by the hash table that " |
| 209 |
"was created by B<hcreate>(). After calling B<hdestroy>(), a new hash table " |
| 210 |
"can be created using B<hcreate>(). The B<hdestroy_r>() function performs " |
| 211 |
"the analogous task for a hash table described by I<*htab>, which was " |
| 212 |
"previously created using B<hcreate_r>()." |
| 213 |
msgstr "" |
| 214 |
"Функция B<hdestroy>() освобождает память, занимаемую массивом, созданным " |
| 215 |
"B<hcreate>(). После вызова B<hdestroy>() функцией B<hcreate>() можно создать " |
| 216 |
"новый массив. Функция B<hdestroy_r>() выполняет аналогичную задачу для " |
| 217 |
"массива, описанного в I<*htab>, который был ранее создан B<hcreate_r>()." |
| 218 |
|
| 219 |
#. type: Plain text |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
msgid "" |
| 223 |
"The B<hsearch>() function searches the hash table for an item with the same " |
| 224 |
"key as I<item> (where \"the same\" is determined using B<strcmp>(3)), and if " |
| 225 |
"successful returns a pointer to it." |
| 226 |
msgstr "" |
| 227 |
"Функция B<hsearch>() ищет в массиве элемент с ключом, равным I<item> " |
| 228 |
"(«равенство» определяется функцией B<strcmp>(3)), и, в случае удачного " |
| 229 |
"завершения операции, возвращает указатель на него." |
| 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 argument I<item> is of type I<ENTRY>, which is defined in " |
| 236 |
"I<E<lt>search.hE<gt>> as follows:" |
| 237 |
msgstr "" |
| 238 |
"Аргумент I<item> имеет тип I<ENTRY>, который определён в " |
| 239 |
"I<E<lt>search.hE<gt>> следующим образом:" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "" |
| 246 |
"typedef struct entry {\n" |
| 247 |
" char *key;\n" |
| 248 |
" void *data;\n" |
| 249 |
"} ENTRY;\n" |
| 250 |
msgstr "" |
| 251 |
"typedef struct entry {\n" |
| 252 |
" char *key;\n" |
| 253 |
" void *data;\n" |
| 254 |
"} ENTRY;\n" |
| 255 |
|
| 256 |
#. type: Plain text |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
msgid "" |
| 260 |
"The field I<key> points to a null-terminated string which is the search " |
| 261 |
"key. The field I<data> points to data that is associated with that key." |
| 262 |
msgstr "" |
| 263 |
"Поле I<key> указывает на оканчивающуюся null строку, используемую в качестве " |
| 264 |
"ключа для поиска. Поле I<data> указывает на данные, связанные с ключом." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"The argument I<action> determines what B<hsearch>() does after an " |
| 271 |
"unsuccessful search. This argument must either have the value B<ENTER>, " |
| 272 |
"meaning insert a copy of I<item> (and return a pointer to the new hash table " |
| 273 |
"entry as the function result), or the value B<FIND>, meaning that NULL " |
| 274 |
"should be returned. (If I<action> is B<FIND>, then I<data> is ignored.)" |
| 275 |
msgstr "" |
| 276 |
"Аргумент I<action> определяет действие, выполняемое B<hsearch>() после " |
| 277 |
"неудачного поиска. Его значением должно быть B<ENTER> (указывает, что нужно " |
| 278 |
"вставить копию I<item> и вернуть указатель на новый элемент массива) или " |
| 279 |
"B<FIND> (нужно вернуть NULL). Если значение I<action> равно B<FIND>, то поле " |
| 280 |
"I<data> игнорируется." |
| 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 |
msgid "" |
| 286 |
"The B<hsearch_r>() function is like B<hsearch>() but operates on the hash " |
| 287 |
"table described by I<*htab>. The B<hsearch_r>() function differs from " |
| 288 |
"B<hsearch>() in that a pointer to the found item is returned in I<*retval>, " |
| 289 |
"rather than as the function result." |
| 290 |
msgstr "" |
| 291 |
"Функция B<hsearch_r>() подобна B<hsearch>(), но работает с массивом, " |
| 292 |
"указанным в I<*htab>. Функция B<hsearch_r>() отлична от B<hsearch>() в том, " |
| 293 |
"что указатель найденного элемента возвращается в I<*retval>, а не как " |
| 294 |
"результат работы функции." |
| 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 "RETURN VALUE" |
| 301 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, fuzzy |
| 307 |
#| msgid "" |
| 308 |
#| "B<hcreate>() and B<hcreate_r>() return nonzero on success. They return " |
| 309 |
#| "0 on error, with I<errno> set to indicate the cause of the error." |
| 310 |
msgid "" |
| 311 |
"B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 " |
| 312 |
"on error, with I<errno> set to indicate the error." |
| 313 |
msgstr "" |
| 314 |
"Функции B<hcreate>() и B<hcreate_r>() возвращают ненулевое значение при " |
| 315 |
"успешном выполнении. При ошибке возвращается 0, а I<errno> устанавливается в " |
| 316 |
"соответствующее значение." |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, fuzzy |
| 322 |
#| msgid "" |
| 323 |
#| "On success, B<hsearch>() returns a pointer to an entry in the hash " |
| 324 |
#| "table. B<hsearch>() returns NULL on error, that is, if I<action> is " |
| 325 |
#| "B<ENTER> and the hash table is full, or I<action> is B<FIND> and I<item> " |
| 326 |
#| "cannot be found in the hash table. B<hsearch_r>() returns nonzero on " |
| 327 |
#| "success, and 0 on error. In the event of an error, these two functions " |
| 328 |
#| "set I<errno> to indicate the cause of the error." |
| 329 |
msgid "" |
| 330 |
"On success, B<hsearch>() returns a pointer to an entry in the hash table. " |
| 331 |
"B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and " |
| 332 |
"the hash table is full, or I<action> is B<FIND> and I<item> cannot be found " |
| 333 |
"in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on " |
| 334 |
"error. In the event of an error, these two functions set I<errno> to " |
| 335 |
"indicate the error." |
| 336 |
msgstr "" |
| 337 |
"Функция B<hsearch>() при успешном выполнении возвращает указатель на элемент " |
| 338 |
"массива. При ошибке возвращается NULL, то есть, если I<action> равно " |
| 339 |
"B<ENTER> массив полон, или, если I<action> равно B<FIND> и I<item> не может " |
| 340 |
"быть найден в массиве. Функция B<hsearch_r>() возвращает 0 в случае ошибки " |
| 341 |
"или ненулевое значение при успешном выполнении. При ошибке данные функции " |
| 342 |
"присваивают I<errno> код ошибки." |
| 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 "ERRORS" |
| 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 "" |
| 355 |
"B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:" |
| 356 |
msgstr "" |
| 357 |
"Функции B<hcreate_r>() и B<hdestroy_r>() могут завершиться с ошибкой по " |
| 358 |
"следующим причинам:" |
| 359 |
|
| 360 |
#. type: TP |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "B<EINVAL>" |
| 365 |
msgstr "B<EINVAL>" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
msgid "I<htab> is NULL." |
| 371 |
msgstr "Значение I<htab> равно NULL." |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:" |
| 377 |
msgstr "" |
| 378 |
"Функции B<hsearch>() и B<hsearch_r>() могут завершиться с ошибкой по " |
| 379 |
"следующим причинам:" |
| 380 |
|
| 381 |
#. type: TP |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "B<ENOMEM>" |
| 386 |
msgstr "B<ENOMEM>" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
msgid "" |
| 392 |
"I<action> was B<ENTER>, I<key> was not found in the table, and there was no " |
| 393 |
"room in the table to add a new entry." |
| 394 |
msgstr "" |
| 395 |
"Значение I<action> равно B<ENTER>, значение I<key> не найдено в массиве и в " |
| 396 |
"массиве нет места под новый элемент." |
| 397 |
|
| 398 |
#. type: TP |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "B<ESRCH>" |
| 403 |
msgstr "B<ESRCH>" |
| 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 |
msgid "I<action> was B<FIND>, and I<key> was not found in the table." |
| 409 |
msgstr "" |
| 410 |
"Значение I<action> равно B<FIND> и значение I<key> не найдено в массиве." |
| 411 |
|
| 412 |
#. PROX.1-2001, POSIX.1-2008 |
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
msgid "POSIX.1 specifies only the B<ENOMEM> error." |
| 417 |
msgstr "В POSIX.1 определена только ошибка B<ENOMEM>." |
| 418 |
|
| 419 |
#. type: SH |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "ATTRIBUTES" |
| 424 |
msgstr "АТРИБУТЫ" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 431 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 432 |
|
| 433 |
#. type: tbl table |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "Interface" |
| 438 |
msgstr "Интерфейс" |
| 439 |
|
| 440 |
#. type: tbl table |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
#, no-wrap |
| 444 |
msgid "Attribute" |
| 445 |
msgstr "Атрибут" |
| 446 |
|
| 447 |
#. type: tbl table |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "Value" |
| 452 |
msgstr "Значение" |
| 453 |
|
| 454 |
#. type: tbl table |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, no-wrap |
| 458 |
msgid ".na\n" |
| 459 |
msgstr ".na\n" |
| 460 |
|
| 461 |
#. type: tbl table |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid ".nh\n" |
| 466 |
msgstr ".nh\n" |
| 467 |
|
| 468 |
#. type: tbl table |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
#, fuzzy, no-wrap |
| 472 |
#| msgid "" |
| 473 |
#| "B<hcreate>(),\n" |
| 474 |
#| "B<hsearch>(),\n" |
| 475 |
msgid "" |
| 476 |
"B<hcreate>(),\n" |
| 477 |
"B<hsearch>(),\n" |
| 478 |
"B<hdestroy>()" |
| 479 |
msgstr "" |
| 480 |
"B<hcreate>(),\n" |
| 481 |
"B<hsearch>(),\n" |
| 482 |
|
| 483 |
#. type: tbl table |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "Thread safety" |
| 488 |
msgstr "Безвредность в нитях" |
| 489 |
|
| 490 |
#. type: tbl table |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
#, no-wrap |
| 494 |
msgid "MT-Unsafe race:hsearch" |
| 495 |
msgstr "MT-Unsafe race:hsearch" |
| 496 |
|
| 497 |
#. type: tbl table |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, fuzzy, no-wrap |
| 501 |
#| msgid "" |
| 502 |
#| "B<hcreate_r>(),\n" |
| 503 |
#| "B<hsearch_r>(),\n" |
| 504 |
msgid "" |
| 505 |
"B<hcreate_r>(),\n" |
| 506 |
"B<hsearch_r>(),\n" |
| 507 |
"B<hdestroy_r>()" |
| 508 |
msgstr "" |
| 509 |
"B<hcreate_r>(),\n" |
| 510 |
"B<hsearch_r>(),\n" |
| 511 |
|
| 512 |
#. type: tbl table |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "MT-Safe race:htab" |
| 517 |
msgstr "MT-Safe race:htab" |
| 518 |
|
| 519 |
#. type: SH |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
#, no-wrap |
| 523 |
msgid "STANDARDS" |
| 524 |
msgstr "СТАНДАРТЫ" |
| 525 |
|
| 526 |
#. type: TP |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, fuzzy, no-wrap |
| 530 |
#| msgid "B<creat>(2)" |
| 531 |
msgid "B<hcreate>()" |
| 532 |
msgstr "B<creat>(2)" |
| 533 |
|
| 534 |
#. type: TQ |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, fuzzy, no-wrap |
| 538 |
#| msgid "I<search>" |
| 539 |
msgid "B<hsearch>()" |
| 540 |
msgstr "I<поиск>" |
| 541 |
|
| 542 |
#. type: TQ |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
#, no-wrap |
| 546 |
msgid "B<hdestroy>()" |
| 547 |
msgstr "B<hdestroy>()" |
| 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 "POSIX.1-2008." |
| 553 |
msgstr "POSIX.1-2008." |
| 554 |
|
| 555 |
#. type: TP |
| 556 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 557 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 558 |
#, fuzzy, no-wrap |
| 559 |
#| msgid "B<creat>(2)" |
| 560 |
msgid "B<hcreate_r>()" |
| 561 |
msgstr "B<creat>(2)" |
| 562 |
|
| 563 |
#. type: TQ |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
#, fuzzy, no-wrap |
| 567 |
#| msgid "I<search>" |
| 568 |
msgid "B<hsearch_r>()" |
| 569 |
msgstr "I<поиск>" |
| 570 |
|
| 571 |
#. type: TQ |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
#, no-wrap |
| 575 |
msgid "B<hdestroy_r>()" |
| 576 |
msgstr "B<hdestroy_r>()" |
| 577 |
|
| 578 |
#. type: Plain text |
| 579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 580 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 581 |
msgid "GNU." |
| 582 |
msgstr "GNU." |
| 583 |
|
| 584 |
#. type: SH |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
#, no-wrap |
| 588 |
msgid "HISTORY" |
| 589 |
msgstr "ИСТОРИЯ" |
| 590 |
|
| 591 |
#. type: Plain text |
| 592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 593 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 594 |
msgid "SVr4, POSIX.1-2001." |
| 595 |
msgstr "SVr4, POSIX.1-2001." |
| 596 |
|
| 597 |
#. type: SH |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "NOTES" |
| 602 |
msgstr "ПРИМЕЧАНИЯ" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "" |
| 608 |
"Hash table implementations are usually more efficient when the table " |
| 609 |
"contains enough free space to minimize collisions. Typically, this means " |
| 610 |
"that I<nel> should be at least 25% larger than the maximum number of " |
| 611 |
"elements that the caller expects to store in the table." |
| 612 |
msgstr "" |
| 613 |
"Реализации ассоциативных массивов более эффективны, если массив содержит " |
| 614 |
"достаточно свободного места, чтобы не искать незанятое пространство. Это " |
| 615 |
"означает, что обычно, значение I<nel> нужно увеличить на, как минимум, 25% " |
| 616 |
"от максимального количества элементов, ожидаемых в массиве." |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers " |
| 623 |
"pointed to by the I<key> and I<data> elements of the hash table entries. " |
| 624 |
"(It can't do this because it doesn't know whether these buffers were " |
| 625 |
"allocated dynamically.) If these buffers need to be freed (perhaps because " |
| 626 |
"the program is repeatedly creating and destroying hash tables, rather than " |
| 627 |
"creating a single table whose lifetime matches that of the program), then " |
| 628 |
"the program must maintain bookkeeping data structures that allow it to free " |
| 629 |
"them." |
| 630 |
msgstr "" |
| 631 |
"Функции B<hdestroy>() и B<hdestroy_r>() не освобождают буферы, на которые " |
| 632 |
"указывают элементы I<key> и I<data> в массиве (это невозможно сделать, так " |
| 633 |
"как неизвестно, были ли выделены эти буферы динамически). Если эти буферы " |
| 634 |
"требуется освобождать (возможно, из-за того, что программа много раз создаёт " |
| 635 |
"и удаляет массивы, а не создаёт один массив на всё время работы), то " |
| 636 |
"программа должна предусмотреть хранилище под используемые структуры, которое " |
| 637 |
"позволило бы их освободить." |
| 638 |
|
| 639 |
#. type: SH |
| 640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 641 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
#, no-wrap |
| 643 |
msgid "BUGS" |
| 644 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 645 |
|
| 646 |
#. type: Plain text |
| 647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 648 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 649 |
#, fuzzy |
| 650 |
#| msgid "" |
| 651 |
#| "SVr4 and POSIX.1-2001 specify that I<action> is significant only for " |
| 652 |
#| "unsuccessful searches, so that an B<ENTER> should not do anything for a " |
| 653 |
#| "successful search. In libc and glibc (before version 2.3), the " |
| 654 |
#| "implementation violates the specification, updating the I<data> for the " |
| 655 |
#| "given I<key> in this case." |
| 656 |
msgid "" |
| 657 |
"SVr4 and POSIX.1-2001 specify that I<action> is significant only for " |
| 658 |
"unsuccessful searches, so that an B<ENTER> should not do anything for a " |
| 659 |
"successful search. In libc and glibc (before glibc 2.3), the implementation " |
| 660 |
"violates the specification, updating the I<data> for the given I<key> in " |
| 661 |
"this case." |
| 662 |
msgstr "" |
| 663 |
"В SVr4 и POSIX 1003.1-2001 указано, что I<action> имеет смысл только при " |
| 664 |
"неудачном поиске, поэтому при B<ENTER> не нужно ничего делать, если что-то " |
| 665 |
"найдено. В библиотеках libc и glibc (до версии 2.3) реализация функций " |
| 666 |
"обновляет I<data> для указанного I<key> в этом случае." |
| 667 |
|
| 668 |
#. type: Plain text |
| 669 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 670 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 671 |
msgid "Individual hash table entries can be added, but not deleted." |
| 672 |
msgstr "Можно добавлять элементы массива, но не удалять." |
| 673 |
|
| 674 |
#. type: SH |
| 675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 676 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
#, no-wrap |
| 678 |
msgid "EXAMPLES" |
| 679 |
msgstr "ПРИМЕРЫ" |
| 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 |
"The following program inserts 24 items into a hash table, then prints some " |
| 686 |
"of them." |
| 687 |
msgstr "" |
| 688 |
"Следующая программа вставляет в массив 24 элемента, а затем выводит на " |
| 689 |
"печать некоторые из них:" |
| 690 |
|
| 691 |
#. type: Plain text |
| 692 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
#, no-wrap |
| 695 |
msgid "" |
| 696 |
"#include E<lt>search.hE<gt>\n" |
| 697 |
"#include E<lt>stdio.hE<gt>\n" |
| 698 |
"#include E<lt>stdlib.hE<gt>\n" |
| 699 |
"\\&\n" |
| 700 |
"static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n" |
| 701 |
" \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n" |
| 702 |
" \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n" |
| 703 |
" \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n" |
| 704 |
" \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n" |
| 705 |
"};\n" |
| 706 |
"\\&\n" |
| 707 |
"int\n" |
| 708 |
"main(void)\n" |
| 709 |
"{\n" |
| 710 |
" ENTRY e;\n" |
| 711 |
" ENTRY *ep;\n" |
| 712 |
"\\&\n" |
| 713 |
" hcreate(30);\n" |
| 714 |
"\\&\n" |
| 715 |
" for (size_t i = 0; i E<lt> 24; i++) {\n" |
| 716 |
" e.key = data[i];\n" |
| 717 |
" /* data is just an integer, instead of a\n" |
| 718 |
" pointer to something */\n" |
| 719 |
" e.data = (void *) i;\n" |
| 720 |
" ep = hsearch(e, ENTER);\n" |
| 721 |
" /* there should be no failures */\n" |
| 722 |
" if (ep == NULL) {\n" |
| 723 |
" fprintf(stderr, \"entry failed\\[rs]n\");\n" |
| 724 |
" exit(EXIT_FAILURE);\n" |
| 725 |
" }\n" |
| 726 |
" }\n" |
| 727 |
"\\&\n" |
| 728 |
" for (size_t i = 22; i E<lt> 26; i++) {\n" |
| 729 |
" /* print two entries from the table, and\n" |
| 730 |
" show that two are not in the table */\n" |
| 731 |
" e.key = data[i];\n" |
| 732 |
" ep = hsearch(e, FIND);\n" |
| 733 |
" printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n" |
| 734 |
" ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n" |
| 735 |
" }\n" |
| 736 |
" hdestroy();\n" |
| 737 |
" exit(EXIT_SUCCESS);\n" |
| 738 |
"}\n" |
| 739 |
msgstr "" |
| 740 |
|
| 741 |
#. SRC END |
| 742 |
#. type: SH |
| 743 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 744 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 745 |
#, no-wrap |
| 746 |
msgid "SEE ALSO" |
| 747 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 751 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 752 |
msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)" |
| 753 |
msgstr "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)" |
| 754 |
|
| 755 |
#. type: TH |
| 756 |
#: debian-trixie |
| 757 |
#, no-wrap |
| 758 |
msgid "2024-06-15" |
| 759 |
msgstr "15 июня 2024 г." |
| 760 |
|
| 761 |
#. type: TH |
| 762 |
#: debian-trixie |
| 763 |
#, no-wrap |
| 764 |
msgid "Linux man-pages 6.9.1" |
| 765 |
msgstr "Страницы руководства Linux 6.9.1" |
| 766 |
|
| 767 |
#. type: Plain text |
| 768 |
#: debian-trixie |
| 769 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 770 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 771 |
|
| 772 |
#. type: Plain text |
| 773 |
#: debian-trixie |
| 774 |
#, no-wrap |
| 775 |
msgid "" |
| 776 |
"#include E<lt>search.hE<gt>\n" |
| 777 |
"#include E<lt>stdio.hE<gt>\n" |
| 778 |
"#include E<lt>stdlib.hE<gt>\n" |
| 779 |
"\\&\n" |
| 780 |
"static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n" |
| 781 |
" \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n" |
| 782 |
" \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n" |
| 783 |
" \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n" |
| 784 |
" \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n" |
| 785 |
"};\n" |
| 786 |
"\\&\n" |
| 787 |
"int\n" |
| 788 |
"main(void)\n" |
| 789 |
"{\n" |
| 790 |
" ENTRY e;\n" |
| 791 |
" ENTRY *ep;\n" |
| 792 |
"\\&\n" |
| 793 |
" hcreate(30);\n" |
| 794 |
"\\&\n" |
| 795 |
" for (size_t i = 0; i E<lt> 24; i++) {\n" |
| 796 |
" e.key = data[i];\n" |
| 797 |
" /* data is just an integer, instead of a\n" |
| 798 |
" pointer to something */\n" |
| 799 |
" e.data = (void *) i;\n" |
| 800 |
" ep = hsearch(e, ENTER);\n" |
| 801 |
" /* there should be no failures */\n" |
| 802 |
" if (ep == NULL) {\n" |
| 803 |
" fprintf(stderr, \"entry failed\\[rs]n\");\n" |
| 804 |
" exit(EXIT_FAILURE);\n" |
| 805 |
" }\n" |
| 806 |
" }\n" |
| 807 |
"\\&\n" |
| 808 |
" for (size_t i = 22; i E<lt> 26; i++) {\n" |
| 809 |
" /* print two entries from the table, and\n" |
| 810 |
" show that two are not in the table */\n" |
| 811 |
" e.key = data[i];\n" |
| 812 |
" ep = hsearch(e, FIND);\n" |
| 813 |
" printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n" |
| 814 |
" ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n" |
| 815 |
" }\n" |
| 816 |
" hdestroy();\n" |
| 817 |
" exit(EXIT_SUCCESS);\n" |
| 818 |
"}\n" |
| 819 |
msgstr "" |
| 820 |
|
| 821 |
#. type: TH |
| 822 |
#: fedora-44 fedora-rawhide |
| 823 |
#, no-wrap |
| 824 |
msgid "2025-01-05" |
| 825 |
msgstr "5 января 2025 г." |
| 826 |
|
| 827 |
#. type: TH |
| 828 |
#: fedora-44 fedora-rawhide |
| 829 |
#, no-wrap |
| 830 |
msgid "Linux man-pages 6.13" |
| 831 |
msgstr "Страницы руководства Linux 6.13" |
| 832 |
|
| 833 |
#. type: TH |
| 834 |
#: mageia-cauldron |
| 835 |
#, no-wrap |
| 836 |
msgid "Linux man-pages 6.17" |
| 837 |
msgstr "Страницы руководства Linux 6.17" |
| 838 |
|
| 839 |
#. type: TH |
| 840 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 841 |
#, no-wrap |
| 842 |
msgid "Linux man-pages (unreleased)" |
| 843 |
msgstr "Страницы руководства Linux (не выпущены)" |