| 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 |
# Artyom Kunyov <[email protected]>, 2012. |
| 5 |
# Azamat Hackimov <[email protected]>, 2012, 2017. |
| 6 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Konstantin Shvaykovskiy <[email protected]>, 2012. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Иван Павлов <[email protected]>, 2017, 2019. |
| 11 |
msgid "" |
| 12 |
msgstr "" |
| 13 |
"Project-Id-Version: manpages-l10n\n" |
| 14 |
"POT-Creation-Date: 2026-06-05 06:29+0200\n" |
| 15 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 16 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 17 |
"Language-Team: Russian <[email protected]>\n" |
| 18 |
"Language: ru\n" |
| 19 |
"MIME-Version: 1.0\n" |
| 20 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 21 |
"Content-Transfer-Encoding: 8bit\n" |
| 22 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 23 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 24 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 25 |
"X-Generator: Lokalize 2.0\n" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 29 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, fuzzy, no-wrap |
| 31 |
#| msgid "LISTEN" |
| 32 |
msgid "LIST" |
| 33 |
msgstr "LISTEN" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2025-05-17" |
| 40 |
msgstr "17 мая 2025 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. LIST_FOREACH_FROM, |
| 57 |
#. LIST_FOREACH_SAFE, |
| 58 |
#. LIST_FOREACH_FROM_SAFE, |
| 59 |
#. LIST_PREV, |
| 60 |
#. LIST_SWAP |
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "" |
| 65 |
"LIST_EMPTY, LIST_ENTRY, LIST_FIRST, LIST_FOREACH, LIST_HEAD, " |
| 66 |
"LIST_HEAD_INITIALIZER, LIST_INIT, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, " |
| 67 |
"LIST_INSERT_HEAD, LIST_NEXT, LIST_REMOVE - implementation of a doubly linked " |
| 68 |
"list" |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#. type: SH |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "LIBRARY" |
| 76 |
msgstr "БИБЛИОТЕКА" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 80 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 82 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 83 |
|
| 84 |
#. type: SH |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "SYNOPSIS" |
| 89 |
msgstr "СИНТАКСИС" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 93 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 94 |
#, no-wrap |
| 95 |
msgid "B<#include E<lt>sys/queue.hE<gt>>\n" |
| 96 |
msgstr "B<#include E<lt>sys/queue.hE<gt>>\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<LIST_ENTRY(TYPE);>\n" |
| 103 |
msgstr "" |
| 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<LIST_HEAD(HEADNAME, TYPE);>\n" |
| 111 |
"B<LIST_HEAD LIST_HEAD_INITIALIZER(LIST_HEAD >I<head>B<);>\n" |
| 112 |
"B<void LIST_INIT(LIST_HEAD *>I<head>B<);>\n" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
#, no-wrap |
| 119 |
msgid "B<int LIST_EMPTY(LIST_HEAD *>I<head>B<);>\n" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "" |
| 127 |
"B<void LIST_INSERT_HEAD(LIST_HEAD *>I<head>B<,>\n" |
| 128 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 129 |
"B<void LIST_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n" |
| 130 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 131 |
"B<void LIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 132 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. .BI "struct TYPE *LIST_PREV(struct TYPE *" elm ", LIST_HEAD *" head , |
| 136 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "" |
| 142 |
"B<struct TYPE *LIST_FIRST(LIST_HEAD *>I<head>B<);>\n" |
| 143 |
"B<struct TYPE *LIST_NEXT(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. .BI "LIST_FOREACH_FROM(struct TYPE *" var ", LIST_HEAD *" head ", LIST_ENTRY " NAME ); |
| 147 |
#. .P |
| 148 |
#. .BI "LIST_FOREACH_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 149 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 150 |
#. .BI "LIST_FOREACH_FROM_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 151 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<LIST_FOREACH(struct TYPE *>I<var>B<, LIST_HEAD *>I<head>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. .P |
| 160 |
#. .BI "void LIST_SWAP(LIST_HEAD *" head1 ", LIST_HEAD *" head2 , |
| 161 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 162 |
#. type: Plain text |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "B<void LIST_REMOVE(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 167 |
msgstr "" |
| 168 |
|
| 169 |
#. type: SH |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
#, no-wrap |
| 173 |
msgid "DESCRIPTION" |
| 174 |
msgstr "ОПИСАНИЕ" |
| 175 |
|
| 176 |
#. type: Plain text |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
msgid "These macros define and operate on doubly linked lists." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"In the macro definitions, I<TYPE> is the name of a user-defined structure, " |
| 187 |
"that must contain a field of type I<LIST_ENTRY>, named I<NAME>. The " |
| 188 |
"argument I<HEADNAME> is the name of a user-defined structure that must be " |
| 189 |
"declared using the macro B<LIST_HEAD>()." |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: SS |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
#, fuzzy, no-wrap |
| 196 |
#| msgid "I<abbreviation>" |
| 197 |
msgid "Creation" |
| 198 |
msgstr "I<abbreviation>" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"A list is headed by a structure defined by the B<LIST_HEAD>() macro. This " |
| 205 |
"structure contains a single pointer to the first element on the list. The " |
| 206 |
"elements are doubly linked so that an arbitrary element can be removed " |
| 207 |
"without traversing the list. New elements can be added to the list after an " |
| 208 |
"existing element, before an existing element, or at the head of the list. A " |
| 209 |
"I<LIST_HEAD> structure is declared as follows:" |
| 210 |
msgstr "" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
#, no-wrap |
| 216 |
msgid "LIST_HEAD(HEADNAME, TYPE) head;\n" |
| 217 |
msgstr "" |
| 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 |
"where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> " |
| 224 |
"is the type of the elements to be linked into the list. A pointer to the " |
| 225 |
"head of the list can later be declared as:" |
| 226 |
msgstr "" |
| 227 |
|
| 228 |
#. type: Plain text |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid "struct HEADNAME *headp;\n" |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#. type: Plain text |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
msgid "(The names I<head> and I<headp> are user selectable.)" |
| 239 |
msgstr "" |
| 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 |
msgid "" |
| 245 |
"B<LIST_ENTRY>() declares a structure that connects the elements in the list." |
| 246 |
msgstr "" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "" |
| 252 |
"B<LIST_HEAD_INITIALIZER>() evaluates to an initializer for the list I<head>." |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
msgid "B<LIST_INIT>() initializes the list referenced by I<head>." |
| 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 |
"B<LIST_EMPTY>() evaluates to true if there are no elements in the list." |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: SS |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "Insertion" |
| 273 |
msgstr "Вставка" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, fuzzy |
| 279 |
#| msgid "Insertion of a new entry at the head of the list." |
| 280 |
msgid "" |
| 281 |
"B<LIST_INSERT_HEAD>() inserts the new element I<elm> at the head of the " |
| 282 |
"list." |
| 283 |
msgstr "Вставка нового элемента в начало списка." |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "" |
| 289 |
"B<LIST_INSERT_BEFORE>() inserts the new element I<elm> before the element " |
| 290 |
"I<listelm>." |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
msgid "" |
| 297 |
"B<LIST_INSERT_AFTER>() inserts the new element I<elm> after the element " |
| 298 |
"I<listelm>." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: SS |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "Traversal" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. .P |
| 309 |
#. .BR LIST_PREV () |
| 310 |
#. returns the previous element in the list, or NULL if this is the first. |
| 311 |
#. List |
| 312 |
#. .I head |
| 313 |
#. must contain element |
| 314 |
#. .IR elm . |
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"B<LIST_FIRST>() returns the first element in the list, or NULL if the list " |
| 320 |
"is empty." |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
msgid "" |
| 327 |
"B<LIST_NEXT>() returns the next element in the list, or NULL if this is the " |
| 328 |
"last." |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#. .P |
| 332 |
#. .BR LIST_FOREACH_FROM () |
| 333 |
#. behaves identically to |
| 334 |
#. .BR LIST_FOREACH () |
| 335 |
#. when |
| 336 |
#. .I var |
| 337 |
#. is NULL, else it treats |
| 338 |
#. .I var |
| 339 |
#. as a previously found LIST element and begins the loop at |
| 340 |
#. .I var |
| 341 |
#. instead of the first element in the LIST referenced by |
| 342 |
#. .IR head . |
| 343 |
#. .P |
| 344 |
#. .BR LIST_FOREACH_SAFE () |
| 345 |
#. traverses the list referenced by |
| 346 |
#. .I head |
| 347 |
#. in the forward direction, assigning each element in turn to |
| 348 |
#. .IR var . |
| 349 |
#. However, unlike |
| 350 |
#. .BR LIST_FOREACH () |
| 351 |
#. here it is permitted to both remove |
| 352 |
#. .I var |
| 353 |
#. as well as free it from within the loop safely without interfering with the |
| 354 |
#. traversal. |
| 355 |
#. .P |
| 356 |
#. .BR LIST_FOREACH_FROM_SAFE () |
| 357 |
#. behaves identically to |
| 358 |
#. .BR LIST_FOREACH_SAFE () |
| 359 |
#. when |
| 360 |
#. .I var |
| 361 |
#. is NULL, else it treats |
| 362 |
#. .I var |
| 363 |
#. as a previously found LIST element and begins the loop at |
| 364 |
#. .I var |
| 365 |
#. instead of the first element in the LIST referenced by |
| 366 |
#. .IR head . |
| 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 "" |
| 371 |
"B<LIST_FOREACH>() traverses the list referenced by I<head> in the forward " |
| 372 |
"direction, assigning each element in turn to I<var>." |
| 373 |
msgstr "" |
| 374 |
|
| 375 |
#. type: SS |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
#, no-wrap |
| 379 |
msgid "Removal" |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#. .SS Other features |
| 383 |
#. .BR LIST_SWAP () |
| 384 |
#. swaps the contents of |
| 385 |
#. .I head1 |
| 386 |
#. and |
| 387 |
#. .IR head2 . |
| 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 "B<LIST_REMOVE>() removes the element I<elm> from the list." |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: SH |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "RETURN VALUE" |
| 399 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "" |
| 405 |
"B<LIST_EMPTY>() returns nonzero if the list is empty, and zero if the list " |
| 406 |
"contains at least one entry." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"B<LIST_FIRST>(), and B<LIST_NEXT>() return a pointer to the first or next " |
| 414 |
"I<TYPE> structure, respectively." |
| 415 |
msgstr "" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"B<LIST_HEAD_INITIALIZER>() returns an initializer that can be assigned to " |
| 422 |
"the list I<head>." |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#. type: SH |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
#, no-wrap |
| 429 |
msgid "STANDARDS" |
| 430 |
msgstr "СТАНДАРТЫ" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "BSD." |
| 436 |
msgstr "BSD." |
| 437 |
|
| 438 |
#. type: SH |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "HISTORY" |
| 443 |
msgstr "ИСТОРИЯ" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 448 |
msgid "4.4BSD." |
| 449 |
msgstr "4.4BSD." |
| 450 |
|
| 451 |
#. type: SH |
| 452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 453 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
#, no-wrap |
| 455 |
msgid "BUGS" |
| 456 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
msgid "" |
| 462 |
"B<LIST_FOREACH>() doesn't allow I<var> to be removed or freed within the " |
| 463 |
"loop, as it would interfere with the traversal. B<LIST_FOREACH_SAFE>(), " |
| 464 |
"which is present on the BSDs but is not present in glibc, fixes this " |
| 465 |
"limitation by allowing I<var> to safely be removed from the list and freed " |
| 466 |
"from within the loop without interfering with the traversal." |
| 467 |
msgstr "" |
| 468 |
|
| 469 |
#. type: SH |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
#, no-wrap |
| 473 |
msgid "EXAMPLES" |
| 474 |
msgstr "ПРИМЕРЫ" |
| 475 |
|
| 476 |
#. type: Plain text |
| 477 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 478 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 479 |
#, no-wrap |
| 480 |
msgid "" |
| 481 |
"#include E<lt>stddef.hE<gt>\n" |
| 482 |
"#include E<lt>stdio.hE<gt>\n" |
| 483 |
"#include E<lt>stdlib.hE<gt>\n" |
| 484 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 485 |
"\\&\n" |
| 486 |
"struct entry {\n" |
| 487 |
" int data;\n" |
| 488 |
" LIST_ENTRY(entry) entries; /* List */\n" |
| 489 |
"};\n" |
| 490 |
"\\&\n" |
| 491 |
"LIST_HEAD(listhead, entry);\n" |
| 492 |
"\\&\n" |
| 493 |
"int\n" |
| 494 |
"main(void)\n" |
| 495 |
"{\n" |
| 496 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 497 |
" struct listhead head; /* List head */\n" |
| 498 |
" int i;\n" |
| 499 |
"\\&\n" |
| 500 |
" LIST_INIT(&head); /* Initialize the list */\n" |
| 501 |
"\\&\n" |
| 502 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 503 |
" LIST_INSERT_HEAD(&head, n1, entries);\n" |
| 504 |
"\\&\n" |
| 505 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 506 |
" LIST_INSERT_AFTER(n1, n2, entries);\n" |
| 507 |
"\\&\n" |
| 508 |
" n3 = malloc(sizeof(struct entry)); /* Insert before */\n" |
| 509 |
" LIST_INSERT_BEFORE(n2, n3, entries);\n" |
| 510 |
"\\&\n" |
| 511 |
" i = 0; /* Forward traversal */\n" |
| 512 |
" LIST_FOREACH(np, &head, entries)\n" |
| 513 |
" np-E<gt>data = i++;\n" |
| 514 |
"\\&\n" |
| 515 |
" LIST_REMOVE(n2, entries); /* Deletion */\n" |
| 516 |
" free(n2);\n" |
| 517 |
" /* Forward traversal */\n" |
| 518 |
" LIST_FOREACH(np, &head, entries)\n" |
| 519 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 520 |
" /* List deletion */\n" |
| 521 |
" n1 = LIST_FIRST(&head);\n" |
| 522 |
" while (n1 != NULL) {\n" |
| 523 |
" n2 = LIST_NEXT(n1, entries);\n" |
| 524 |
" free(n1);\n" |
| 525 |
" n1 = n2;\n" |
| 526 |
" }\n" |
| 527 |
" LIST_INIT(&head);\n" |
| 528 |
"\\&\n" |
| 529 |
" exit(EXIT_SUCCESS);\n" |
| 530 |
"}\n" |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#. SRC END |
| 534 |
#. type: SH |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
msgid "SEE ALSO" |
| 539 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "B<insque>(3), B<queue>(7)" |
| 545 |
msgstr "B<insque>(3), B<queue>(7)" |
| 546 |
|
| 547 |
#. type: TH |
| 548 |
#: debian-trixie |
| 549 |
#, no-wrap |
| 550 |
msgid "2024-06-15" |
| 551 |
msgstr "15 июня 2024 г." |
| 552 |
|
| 553 |
#. type: TH |
| 554 |
#: debian-trixie |
| 555 |
#, no-wrap |
| 556 |
msgid "Linux man-pages 6.9.1" |
| 557 |
msgstr "Страницы руководства Linux 6.9.1" |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: debian-trixie |
| 561 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 562 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 563 |
|
| 564 |
#. type: TH |
| 565 |
#: fedora-44 fedora-rawhide |
| 566 |
#, no-wrap |
| 567 |
msgid "2024-07-23" |
| 568 |
msgstr "23 июля 2024 г." |
| 569 |
|
| 570 |
#. type: TH |
| 571 |
#: fedora-44 fedora-rawhide |
| 572 |
#, no-wrap |
| 573 |
msgid "Linux man-pages 6.13" |
| 574 |
msgstr "Страницы руководства Linux 6.13" |
| 575 |
|
| 576 |
#. type: TH |
| 577 |
#: mageia-cauldron |
| 578 |
#, no-wrap |
| 579 |
msgid "Linux man-pages 6.17" |
| 580 |
msgstr "Страницы руководства Linux 6.17" |
| 581 |
|
| 582 |
#. type: TH |
| 583 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
#, no-wrap |
| 585 |
msgid "Linux man-pages (unreleased)" |
| 586 |
msgstr "Страницы руководства Linux (не выпущены)" |