| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:29+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "LIST" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2025-05-17" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. LIST_FOREACH_FROM, |
| 47 |
#. LIST_FOREACH_SAFE, |
| 48 |
#. LIST_FOREACH_FROM_SAFE, |
| 49 |
#. LIST_PREV, |
| 50 |
#. LIST_SWAP |
| 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 |
"LIST_EMPTY, LIST_ENTRY, LIST_FIRST, LIST_FOREACH, LIST_HEAD, " |
| 56 |
"LIST_HEAD_INITIALIZER, LIST_INIT, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, " |
| 57 |
"LIST_INSERT_HEAD, LIST_NEXT, LIST_REMOVE - implementation of a doubly linked " |
| 58 |
"list" |
| 59 |
msgstr "" |
| 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 "" |
| 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>sys/queue.hE<gt>>\n" |
| 86 |
msgstr "" |
| 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 |
#, no-wrap |
| 92 |
msgid "B<LIST_ENTRY(TYPE);>\n" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "" |
| 100 |
"B<LIST_HEAD(HEADNAME, TYPE);>\n" |
| 101 |
"B<LIST_HEAD LIST_HEAD_INITIALIZER(LIST_HEAD >I<head>B<);>\n" |
| 102 |
"B<void LIST_INIT(LIST_HEAD *>I<head>B<);>\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 "B<int LIST_EMPTY(LIST_HEAD *>I<head>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 |
#, no-wrap |
| 116 |
msgid "" |
| 117 |
"B<void LIST_INSERT_HEAD(LIST_HEAD *>I<head>B<,>\n" |
| 118 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 119 |
"B<void LIST_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n" |
| 120 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 121 |
"B<void LIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 122 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 123 |
msgstr "" |
| 124 |
|
| 125 |
#. .BI "struct TYPE *LIST_PREV(struct TYPE *" elm ", LIST_HEAD *" head , |
| 126 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
#, no-wrap |
| 131 |
msgid "" |
| 132 |
"B<struct TYPE *LIST_FIRST(LIST_HEAD *>I<head>B<);>\n" |
| 133 |
"B<struct TYPE *LIST_NEXT(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. .BI "LIST_FOREACH_FROM(struct TYPE *" var ", LIST_HEAD *" head ", LIST_ENTRY " NAME ); |
| 137 |
#. .P |
| 138 |
#. .BI "LIST_FOREACH_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 139 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 140 |
#. .BI "LIST_FOREACH_FROM_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 141 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
#, no-wrap |
| 146 |
msgid "B<LIST_FOREACH(struct TYPE *>I<var>B<, LIST_HEAD *>I<head>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#. .P |
| 150 |
#. .BI "void LIST_SWAP(LIST_HEAD *" head1 ", LIST_HEAD *" head2 , |
| 151 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 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<void LIST_REMOVE(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: SH |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, no-wrap |
| 163 |
msgid "DESCRIPTION" |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "These macros define and operate on doubly linked lists." |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
msgid "" |
| 176 |
"In the macro definitions, I<TYPE> is the name of a user-defined structure, " |
| 177 |
"that must contain a field of type I<LIST_ENTRY>, named I<NAME>. The " |
| 178 |
"argument I<HEADNAME> is the name of a user-defined structure that must be " |
| 179 |
"declared using the macro B<LIST_HEAD>()." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: SS |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
#, no-wrap |
| 186 |
msgid "Creation" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"A list is headed by a structure defined by the B<LIST_HEAD>() macro. This " |
| 194 |
"structure contains a single pointer to the first element on the list. The " |
| 195 |
"elements are doubly linked so that an arbitrary element can be removed " |
| 196 |
"without traversing the list. New elements can be added to the list after an " |
| 197 |
"existing element, before an existing element, or at the head of the list. A " |
| 198 |
"I<LIST_HEAD> structure is declared as follows:" |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#. type: Plain text |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid "LIST_HEAD(HEADNAME, TYPE) head;\n" |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
msgid "" |
| 212 |
"where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> " |
| 213 |
"is the type of the elements to be linked into the list. A pointer to the " |
| 214 |
"head of the list can later be declared as:" |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: Plain text |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "struct HEADNAME *headp;\n" |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "(The names I<head> and I<headp> are user selectable.)" |
| 228 |
msgstr "" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"B<LIST_ENTRY>() declares a structure that connects the elements in the list." |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"B<LIST_HEAD_INITIALIZER>() evaluates to an initializer for the list I<head>." |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "B<LIST_INIT>() initializes the list referenced by I<head>." |
| 248 |
msgstr "" |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
msgid "" |
| 254 |
"B<LIST_EMPTY>() evaluates to true if there are no elements in the list." |
| 255 |
msgstr "" |
| 256 |
|
| 257 |
#. type: SS |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
#, no-wrap |
| 261 |
msgid "Insertion" |
| 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 |
"B<LIST_INSERT_HEAD>() inserts the new element I<elm> at the head of the " |
| 269 |
"list." |
| 270 |
msgstr "" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"B<LIST_INSERT_BEFORE>() inserts the new element I<elm> before the element " |
| 277 |
"I<listelm>." |
| 278 |
msgstr "" |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
msgid "" |
| 284 |
"B<LIST_INSERT_AFTER>() inserts the new element I<elm> after the element " |
| 285 |
"I<listelm>." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: SS |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "Traversal" |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#. .P |
| 296 |
#. .BR LIST_PREV () |
| 297 |
#. returns the previous element in the list, or NULL if this is the first. |
| 298 |
#. List |
| 299 |
#. .I head |
| 300 |
#. must contain element |
| 301 |
#. .IR elm . |
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"B<LIST_FIRST>() returns the first element in the list, or NULL if the list " |
| 307 |
"is empty." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "" |
| 314 |
"B<LIST_NEXT>() returns the next element in the list, or NULL if this is the " |
| 315 |
"last." |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. .P |
| 319 |
#. .BR LIST_FOREACH_FROM () |
| 320 |
#. behaves identically to |
| 321 |
#. .BR LIST_FOREACH () |
| 322 |
#. when |
| 323 |
#. .I var |
| 324 |
#. is NULL, else it treats |
| 325 |
#. .I var |
| 326 |
#. as a previously found LIST element and begins the loop at |
| 327 |
#. .I var |
| 328 |
#. instead of the first element in the LIST referenced by |
| 329 |
#. .IR head . |
| 330 |
#. .P |
| 331 |
#. .BR LIST_FOREACH_SAFE () |
| 332 |
#. traverses the list referenced by |
| 333 |
#. .I head |
| 334 |
#. in the forward direction, assigning each element in turn to |
| 335 |
#. .IR var . |
| 336 |
#. However, unlike |
| 337 |
#. .BR LIST_FOREACH () |
| 338 |
#. here it is permitted to both remove |
| 339 |
#. .I var |
| 340 |
#. as well as free it from within the loop safely without interfering with the |
| 341 |
#. traversal. |
| 342 |
#. .P |
| 343 |
#. .BR LIST_FOREACH_FROM_SAFE () |
| 344 |
#. behaves identically to |
| 345 |
#. .BR LIST_FOREACH_SAFE () |
| 346 |
#. when |
| 347 |
#. .I var |
| 348 |
#. is NULL, else it treats |
| 349 |
#. .I var |
| 350 |
#. as a previously found LIST element and begins the loop at |
| 351 |
#. .I var |
| 352 |
#. instead of the first element in the LIST referenced by |
| 353 |
#. .IR head . |
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
msgid "" |
| 358 |
"B<LIST_FOREACH>() traverses the list referenced by I<head> in the forward " |
| 359 |
"direction, assigning each element in turn to I<var>." |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. type: SS |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "Removal" |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#. .SS Other features |
| 370 |
#. .BR LIST_SWAP () |
| 371 |
#. swaps the contents of |
| 372 |
#. .I head1 |
| 373 |
#. and |
| 374 |
#. .IR head2 . |
| 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 "B<LIST_REMOVE>() removes the element I<elm> from the list." |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: SH |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
#, no-wrap |
| 385 |
msgid "RETURN VALUE" |
| 386 |
msgstr "" |
| 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 |
"B<LIST_EMPTY>() returns nonzero if the list is empty, and zero if the list " |
| 393 |
"contains at least one entry." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "" |
| 400 |
"B<LIST_FIRST>(), and B<LIST_NEXT>() return a pointer to the first or next " |
| 401 |
"I<TYPE> structure, respectively." |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: Plain text |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
msgid "" |
| 408 |
"B<LIST_HEAD_INITIALIZER>() returns an initializer that can be assigned to " |
| 409 |
"the list I<head>." |
| 410 |
msgstr "" |
| 411 |
|
| 412 |
#. type: SH |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
#, no-wrap |
| 416 |
msgid "STANDARDS" |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
msgid "BSD." |
| 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 "HISTORY" |
| 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 "4.4BSD." |
| 436 |
msgstr "" |
| 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 "BUGS" |
| 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 "" |
| 449 |
"B<LIST_FOREACH>() doesn't allow I<var> to be removed or freed within the " |
| 450 |
"loop, as it would interfere with the traversal. B<LIST_FOREACH_SAFE>(), " |
| 451 |
"which is present on the BSDs but is not present in glibc, fixes this " |
| 452 |
"limitation by allowing I<var> to safely be removed from the list and freed " |
| 453 |
"from within the loop without interfering with the traversal." |
| 454 |
msgstr "" |
| 455 |
|
| 456 |
#. type: SH |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
#, no-wrap |
| 460 |
msgid "EXAMPLES" |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#. type: Plain text |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "" |
| 468 |
"#include E<lt>stddef.hE<gt>\n" |
| 469 |
"#include E<lt>stdio.hE<gt>\n" |
| 470 |
"#include E<lt>stdlib.hE<gt>\n" |
| 471 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 472 |
"\\&\n" |
| 473 |
"struct entry {\n" |
| 474 |
" int data;\n" |
| 475 |
" LIST_ENTRY(entry) entries; /* List */\n" |
| 476 |
"};\n" |
| 477 |
"\\&\n" |
| 478 |
"LIST_HEAD(listhead, entry);\n" |
| 479 |
"\\&\n" |
| 480 |
"int\n" |
| 481 |
"main(void)\n" |
| 482 |
"{\n" |
| 483 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 484 |
" struct listhead head; /* List head */\n" |
| 485 |
" int i;\n" |
| 486 |
"\\&\n" |
| 487 |
" LIST_INIT(&head); /* Initialize the list */\n" |
| 488 |
"\\&\n" |
| 489 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 490 |
" LIST_INSERT_HEAD(&head, n1, entries);\n" |
| 491 |
"\\&\n" |
| 492 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 493 |
" LIST_INSERT_AFTER(n1, n2, entries);\n" |
| 494 |
"\\&\n" |
| 495 |
" n3 = malloc(sizeof(struct entry)); /* Insert before */\n" |
| 496 |
" LIST_INSERT_BEFORE(n2, n3, entries);\n" |
| 497 |
"\\&\n" |
| 498 |
" i = 0; /* Forward traversal */\n" |
| 499 |
" LIST_FOREACH(np, &head, entries)\n" |
| 500 |
" np-E<gt>data = i++;\n" |
| 501 |
"\\&\n" |
| 502 |
" LIST_REMOVE(n2, entries); /* Deletion */\n" |
| 503 |
" free(n2);\n" |
| 504 |
" /* Forward traversal */\n" |
| 505 |
" LIST_FOREACH(np, &head, entries)\n" |
| 506 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 507 |
" /* List deletion */\n" |
| 508 |
" n1 = LIST_FIRST(&head);\n" |
| 509 |
" while (n1 != NULL) {\n" |
| 510 |
" n2 = LIST_NEXT(n1, entries);\n" |
| 511 |
" free(n1);\n" |
| 512 |
" n1 = n2;\n" |
| 513 |
" }\n" |
| 514 |
" LIST_INIT(&head);\n" |
| 515 |
"\\&\n" |
| 516 |
" exit(EXIT_SUCCESS);\n" |
| 517 |
"}\n" |
| 518 |
msgstr "" |
| 519 |
|
| 520 |
#. SRC END |
| 521 |
#. type: SH |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
#, no-wrap |
| 525 |
msgid "SEE ALSO" |
| 526 |
msgstr "" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 531 |
msgid "B<insque>(3), B<queue>(7)" |
| 532 |
msgstr "" |
| 533 |
|
| 534 |
#. type: TH |
| 535 |
#: debian-trixie |
| 536 |
#, no-wrap |
| 537 |
msgid "2024-06-15" |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: TH |
| 541 |
#: debian-trixie |
| 542 |
#, no-wrap |
| 543 |
msgid "Linux man-pages 6.9.1" |
| 544 |
msgstr "" |
| 545 |
|
| 546 |
#. type: Plain text |
| 547 |
#: debian-trixie |
| 548 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 549 |
msgstr "" |
| 550 |
|
| 551 |
#. type: TH |
| 552 |
#: fedora-44 fedora-rawhide |
| 553 |
#, no-wrap |
| 554 |
msgid "2024-07-23" |
| 555 |
msgstr "" |
| 556 |
|
| 557 |
#. type: TH |
| 558 |
#: fedora-44 fedora-rawhide |
| 559 |
#, no-wrap |
| 560 |
msgid "Linux man-pages 6.13" |
| 561 |
msgstr "" |
| 562 |
|
| 563 |
#. type: TH |
| 564 |
#: mageia-cauldron |
| 565 |
#, no-wrap |
| 566 |
msgid "Linux man-pages 6.17" |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: TH |
| 570 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
#, no-wrap |
| 572 |
msgid "Linux man-pages (unreleased)" |
| 573 |
msgstr "" |