| 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:44+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 "STAILQ" |
| 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-09-21" |
| 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 |
#. SIMPLEQ_CONCAT, |
| 47 |
#. SIMPLEQ_FOREACH_FROM, |
| 48 |
#. SIMPLEQ_FOREACH_FROM_SAFE, |
| 49 |
#. SIMPLEQ_FOREACH_SAFE, |
| 50 |
#. SIMPLEQ_LAST, |
| 51 |
#. SIMPLEQ_REMOVE_AFTER, |
| 52 |
#. SIMPLEQ_SWAP, |
| 53 |
#. STAILQ_FOREACH_FROM, |
| 54 |
#. STAILQ_FOREACH_FROM_SAFE, |
| 55 |
#. STAILQ_FOREACH_SAFE, |
| 56 |
#. STAILQ_LAST, |
| 57 |
#. STAILQ_REMOVE_AFTER, |
| 58 |
#. STAILQ_SWAP |
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "" |
| 63 |
"SIMPLEQ_EMPTY, SIMPLEQ_ENTRY, SIMPLEQ_FIRST, SIMPLEQ_FOREACH, SIMPLEQ_HEAD, " |
| 64 |
"SIMPLEQ_HEAD_INITIALIZER, SIMPLEQ_INIT, SIMPLEQ_INSERT_AFTER, " |
| 65 |
"SIMPLEQ_INSERT_HEAD, SIMPLEQ_INSERT_TAIL, SIMPLEQ_NEXT, SIMPLEQ_REMOVE, " |
| 66 |
"SIMPLEQ_REMOVE_HEAD, STAILQ_CONCAT, STAILQ_EMPTY, STAILQ_ENTRY, " |
| 67 |
"STAILQ_FIRST, STAILQ_FOREACH, STAILQ_HEAD, STAILQ_HEAD_INITIALIZER, " |
| 68 |
"STAILQ_INIT, STAILQ_INSERT_AFTER, STAILQ_INSERT_HEAD, STAILQ_INSERT_TAIL, " |
| 69 |
"STAILQ_NEXT, STAILQ_REMOVE, STAILQ_REMOVE_HEAD, - implementation of a singly " |
| 70 |
"linked tail queue" |
| 71 |
msgstr "" |
| 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 "LIBRARY" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 82 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "SYNOPSIS" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "B<#include E<lt>sys/queue.hE<gt>>\n" |
| 98 |
msgstr "" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "B<STAILQ_ENTRY(TYPE);>\n" |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "" |
| 112 |
"B<STAILQ_HEAD(HEADNAME, TYPE);>\n" |
| 113 |
"B<STAILQ_HEAD STAILQ_HEAD_INITIALIZER(STAILQ_HEAD >I<head>B<);>\n" |
| 114 |
"B<void STAILQ_INIT(STAILQ_HEAD *>I<head>B<);>\n" |
| 115 |
msgstr "" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, no-wrap |
| 121 |
msgid "B<int STAILQ_EMPTY(STAILQ_HEAD *>I<head>B<);>\n" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "" |
| 129 |
"B<void STAILQ_INSERT_HEAD(STAILQ_HEAD *>I<head>B<,>\n" |
| 130 |
"B< struct TYPE *>I<elm>B<, STAILQ_ENTRY >I<NAME>B<);>\n" |
| 131 |
"B<void STAILQ_INSERT_TAIL(STAILQ_HEAD *>I<head>B<,>\n" |
| 132 |
"B< struct TYPE *>I<elm>B<, STAILQ_ENTRY >I<NAME>B<);>\n" |
| 133 |
"B<void STAILQ_INSERT_AFTER(STAILQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n" |
| 134 |
"B< struct TYPE *>I<elm>B<, STAILQ_ENTRY >I<NAME>B<);>\n" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#. .BI "struct TYPE *STAILQ_LAST(STAILQ_HEAD *" head ", struct TYPE *" elm , |
| 138 |
#. .BI " STAILQ_ENTRY " NAME ); |
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "" |
| 144 |
"B<struct TYPE *STAILQ_FIRST(STAILQ_HEAD *>I<head>B<);>\n" |
| 145 |
"B<struct TYPE *STAILQ_NEXT(struct TYPE *>I<elm>B<, STAILQ_ENTRY >I<NAME>B<);>\n" |
| 146 |
msgstr "" |
| 147 |
|
| 148 |
#. .BI "STAILQ_FOREACH_FROM(struct TYPE *" var ", STAILQ_HEAD *" head , |
| 149 |
#. .BI " STAILQ_ENTRY " NAME ); |
| 150 |
#. .P |
| 151 |
#. .BI "STAILQ_FOREACH_SAFE(struct TYPE *" var ", STAILQ_HEAD *" head , |
| 152 |
#. .BI " STAILQ_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 153 |
#. .BI "STAILQ_FOREACH_FROM_SAFE(struct TYPE *" var ", STAILQ_HEAD *" head , |
| 154 |
#. .BI " STAILQ_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
#, no-wrap |
| 159 |
msgid "B<STAILQ_FOREACH(struct TYPE *>I<var>B<, STAILQ_HEAD *>I<head>B<, STAILQ_ENTRY >I<NAME>B<);>\n" |
| 160 |
msgstr "" |
| 161 |
|
| 162 |
#. .BI "void STAILQ_REMOVE_AFTER(STAILQ_HEAD *" head ", struct TYPE *" elm , |
| 163 |
#. .BI " STAILQ_ENTRY " NAME ); |
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "" |
| 169 |
"B<void STAILQ_REMOVE(STAILQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<, TYPE,>\n" |
| 170 |
"B< STAILQ_ENTRY >I<NAME>B<);>\n" |
| 171 |
"B<void STAILQ_REMOVE_HEAD(STAILQ_HEAD *>I<head>B<,>\n" |
| 172 |
"B< STAILQ_ENTRY >I<NAME>B<);>\n" |
| 173 |
msgstr "" |
| 174 |
|
| 175 |
#. .BI "void STAILQ_SWAP(STAILQ_HEAD *" head1 ", STAILQ_HEAD *" head2 , |
| 176 |
#. .BI " STAILQ_ENTRY " NAME ); |
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
#, no-wrap |
| 181 |
msgid "B<void STAILQ_CONCAT(STAILQ_HEAD *>I<head1>B<, STAILQ_HEAD *>I<head2>B<);>\n" |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "" |
| 188 |
"I<Note>: Identical macros prefixed with SIMPLEQ instead of STAILQ exist; see " |
| 189 |
"VERSIONS." |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: SH |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
#, no-wrap |
| 196 |
msgid "DESCRIPTION" |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "These macros define and operate on singly linked tail queues." |
| 203 |
msgstr "" |
| 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 |
msgid "" |
| 209 |
"In the macro definitions, I<TYPE> is the name of a user-defined structure, " |
| 210 |
"that must contain a field of type I<STAILQ_ENTRY>, named I<NAME>. The " |
| 211 |
"argument I<HEADNAME> is the name of a user-defined structure that must be " |
| 212 |
"declared using the macro B<STAILQ_HEAD>()." |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: SS |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "Creation" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
msgid "" |
| 226 |
"A singly linked tail queue is headed by a structure defined by the " |
| 227 |
"B<STAILQ_HEAD>() macro. This structure contains a pair of pointers, one to " |
| 228 |
"the first element in the tail queue and the other to the last element in the " |
| 229 |
"tail queue. The elements are singly linked for minimum space and pointer " |
| 230 |
"manipulation overhead at the expense of O(n) removal for arbitrary " |
| 231 |
"elements. New elements can be added to the tail queue after an existing " |
| 232 |
"element, at the head of the tail queue, or at the end of the tail queue. A " |
| 233 |
"I<STAILQ_HEAD> structure is declared as follows:" |
| 234 |
msgstr "" |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
#, no-wrap |
| 240 |
msgid "STAILQ_HEAD(HEADNAME, TYPE) head;\n" |
| 241 |
msgstr "" |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> " |
| 248 |
"is the type of the elements to be linked into the tail queue. A pointer to " |
| 249 |
"the head of the tail queue can later be declared as:" |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
#, no-wrap |
| 256 |
msgid "struct HEADNAME *headp;\n" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
msgid "(The names I<head> and I<headp> are user selectable.)" |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
msgid "" |
| 269 |
"B<STAILQ_ENTRY>() declares a structure that connects the elements in the " |
| 270 |
"tail queue." |
| 271 |
msgstr "" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"B<STAILQ_HEAD_INITIALIZER>() evaluates to an initializer for the tail queue " |
| 278 |
"I<head>." |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "B<STAILQ_INIT>() initializes the tail queue referenced by I<head>." |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "" |
| 291 |
"B<STAILQ_EMPTY>() evaluates to true if there are no items on the tail queue." |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: SS |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "Insertion" |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"B<STAILQ_INSERT_HEAD>() inserts the new element I<elm> at the head of the " |
| 306 |
"tail queue." |
| 307 |
msgstr "" |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "" |
| 313 |
"B<STAILQ_INSERT_TAIL>() inserts the new element I<elm> at the end of the " |
| 314 |
"tail queue." |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"B<STAILQ_INSERT_AFTER>() inserts the new element I<elm> after the element " |
| 322 |
"I<listelm>." |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: SS |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "Traversal" |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. .P |
| 333 |
#. .BR STAILQ_LAST () |
| 334 |
#. returns the last item on the tail queue. |
| 335 |
#. If the tail queue is empty the return value is NULL . |
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"B<STAILQ_FIRST>() returns the first item on the tail queue or NULL if the " |
| 341 |
"tail queue is empty." |
| 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 "" |
| 348 |
"B<STAILQ_NEXT>() returns the next item on the tail queue, or NULL this item " |
| 349 |
"is the last." |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. .P |
| 353 |
#. .BR STAILQ_FOREACH_FROM () |
| 354 |
#. behaves identically to |
| 355 |
#. .BR STAILQ_FOREACH () |
| 356 |
#. when |
| 357 |
#. .I var |
| 358 |
#. is NULL, else it treats |
| 359 |
#. .I var |
| 360 |
#. as a previously found STAILQ element and begins the loop at |
| 361 |
#. .I var |
| 362 |
#. instead of the first element in the STAILQ referenced by |
| 363 |
#. .IR head . |
| 364 |
#. .P |
| 365 |
#. .BR STAILQ_FOREACH_SAFE () |
| 366 |
#. traverses the tail queue referenced by |
| 367 |
#. .I head |
| 368 |
#. in the forward direction, assigning each element |
| 369 |
#. in turn to |
| 370 |
#. .IR var . |
| 371 |
#. However, unlike |
| 372 |
#. .BR STAILQ_FOREACH () |
| 373 |
#. here it is permitted to both remove |
| 374 |
#. .I var |
| 375 |
#. as well as free it from within the loop safely without interfering with the |
| 376 |
#. traversal. |
| 377 |
#. .P |
| 378 |
#. .BR STAILQ_FOREACH_FROM_SAFE () |
| 379 |
#. behaves identically to |
| 380 |
#. .BR STAILQ_FOREACH_SAFE () |
| 381 |
#. when |
| 382 |
#. .I var |
| 383 |
#. is NULL, else it treats |
| 384 |
#. .I var |
| 385 |
#. as a previously found STAILQ element and begins the loop at |
| 386 |
#. .I var |
| 387 |
#. instead of the first element in the STAILQ referenced by |
| 388 |
#. .IR head . |
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "" |
| 393 |
"B<STAILQ_FOREACH>() traverses the tail queue referenced by I<head> in the " |
| 394 |
"forward direction, assigning each element in turn to I<var>." |
| 395 |
msgstr "" |
| 396 |
|
| 397 |
#. type: SS |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
#, no-wrap |
| 401 |
msgid "Removal" |
| 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 "B<STAILQ_REMOVE>() removes the element I<elm> from the tail queue." |
| 408 |
msgstr "" |
| 409 |
|
| 410 |
#. .P |
| 411 |
#. .BR STAILQ_REMOVE_AFTER () |
| 412 |
#. removes the element after |
| 413 |
#. .I elm |
| 414 |
#. from the tail queue. |
| 415 |
#. Unlike |
| 416 |
#. .BR STAILQ_REMOVE (), |
| 417 |
#. this macro does not traverse the entire tail queue. |
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "" |
| 422 |
"B<STAILQ_REMOVE_HEAD>() removes the element at the head of the tail queue. " |
| 423 |
"For optimum efficiency, elements being removed from the head of the tail " |
| 424 |
"queue should use this macro explicitly rather than the generic " |
| 425 |
"B<STAILQ_REMOVE>() macro." |
| 426 |
msgstr "" |
| 427 |
|
| 428 |
#. type: SS |
| 429 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 430 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 431 |
#, no-wrap |
| 432 |
msgid "Other features" |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#. .P |
| 436 |
#. .BR STAILQ_SWAP () |
| 437 |
#. swaps the contents of |
| 438 |
#. .I head1 |
| 439 |
#. and |
| 440 |
#. .IR head2 . |
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
msgid "" |
| 445 |
"B<STAILQ_CONCAT>() concatenates the tail queue headed by I<head2> onto the " |
| 446 |
"end of the one headed by I<head1> removing all entries from the former." |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: SH |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
#, no-wrap |
| 453 |
msgid "RETURN VALUE" |
| 454 |
msgstr "" |
| 455 |
|
| 456 |
#. type: Plain text |
| 457 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 458 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 459 |
msgid "" |
| 460 |
"B<STAILQ_EMPTY>() returns nonzero if the queue is empty, and zero if the " |
| 461 |
"queue contains at least one entry." |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
msgid "" |
| 468 |
"B<STAILQ_FIRST>(), and B<STAILQ_NEXT>() return a pointer to the first or " |
| 469 |
"next I<TYPE> structure, respectively." |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
msgid "" |
| 476 |
"B<STAILQ_HEAD_INITIALIZER>() returns an initializer that can be assigned to " |
| 477 |
"the queue I<head>." |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: SH |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
#, no-wrap |
| 484 |
msgid "VERSIONS" |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#. type: Plain text |
| 488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 489 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 490 |
msgid "" |
| 491 |
"Some BSDs provide SIMPLEQ instead of STAILQ. They are identical, but for " |
| 492 |
"historical reasons they were named differently on different BSDs. STAILQ " |
| 493 |
"originated on FreeBSD, and SIMPLEQ originated on NetBSD. For compatibility " |
| 494 |
"reasons, some systems provide both sets of macros. glibc provides both " |
| 495 |
"STAILQ and SIMPLEQ, which are identical except for a missing SIMPLEQ " |
| 496 |
"equivalent to B<STAILQ_CONCAT>()." |
| 497 |
msgstr "" |
| 498 |
|
| 499 |
#. type: SH |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "BUGS" |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "" |
| 510 |
"B<STAILQ_FOREACH>() doesn't allow I<var> to be removed or freed within the " |
| 511 |
"loop, as it would interfere with the traversal. B<STAILQ_FOREACH_SAFE>(), " |
| 512 |
"which is present on the BSDs but is not present in glibc, fixes this " |
| 513 |
"limitation by allowing I<var> to safely be removed from the list and freed " |
| 514 |
"from within the loop without interfering with the traversal." |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: SH |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
#, no-wrap |
| 521 |
msgid "STANDARDS" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "BSD." |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: SH |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "HISTORY" |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
msgid "4.4BSD." |
| 541 |
msgstr "" |
| 542 |
|
| 543 |
#. type: SH |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
#, no-wrap |
| 547 |
msgid "EXAMPLES" |
| 548 |
msgstr "" |
| 549 |
|
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
#, no-wrap |
| 554 |
msgid "" |
| 555 |
"#include E<lt>stddef.hE<gt>\n" |
| 556 |
"#include E<lt>stdio.hE<gt>\n" |
| 557 |
"#include E<lt>stdlib.hE<gt>\n" |
| 558 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 559 |
"\\&\n" |
| 560 |
"struct entry {\n" |
| 561 |
" int data;\n" |
| 562 |
" STAILQ_ENTRY(entry) entries; /* Singly linked tail queue */\n" |
| 563 |
"};\n" |
| 564 |
"\\&\n" |
| 565 |
"STAILQ_HEAD(stailhead, entry);\n" |
| 566 |
"\\&\n" |
| 567 |
"int\n" |
| 568 |
"main(void)\n" |
| 569 |
"{\n" |
| 570 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 571 |
" struct stailhead head; /* Singly linked tail queue\n" |
| 572 |
" head */\n" |
| 573 |
"\\&\n" |
| 574 |
" STAILQ_INIT(&head); /* Initialize the queue */\n" |
| 575 |
"\\&\n" |
| 576 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 577 |
" STAILQ_INSERT_HEAD(&head, n1, entries);\n" |
| 578 |
"\\&\n" |
| 579 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n" |
| 580 |
" STAILQ_INSERT_TAIL(&head, n1, entries);\n" |
| 581 |
"\\&\n" |
| 582 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 583 |
" STAILQ_INSERT_AFTER(&head, n1, n2, entries);\n" |
| 584 |
"\\&\n" |
| 585 |
" STAILQ_REMOVE(&head, n2, entry, entries); /* Deletion */\n" |
| 586 |
" free(n2);\n" |
| 587 |
"\\&\n" |
| 588 |
" n3 = STAILQ_FIRST(&head);\n" |
| 589 |
" STAILQ_REMOVE_HEAD(&head, entries); /* Deletion from the head */\n" |
| 590 |
" free(n3);\n" |
| 591 |
"\\&\n" |
| 592 |
" n1 = STAILQ_FIRST(&head);\n" |
| 593 |
" n1-E<gt>data = 0;\n" |
| 594 |
" for (unsigned int i = 1; i E<lt> 5; i++) {\n" |
| 595 |
" n1 = malloc(sizeof(struct entry));\n" |
| 596 |
" STAILQ_INSERT_HEAD(&head, n1, entries);\n" |
| 597 |
" n1-E<gt>data = i;\n" |
| 598 |
" }\n" |
| 599 |
" /* Forward traversal */\n" |
| 600 |
" STAILQ_FOREACH(np, &head, entries)\n" |
| 601 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 602 |
" /* TailQ deletion */\n" |
| 603 |
" n1 = STAILQ_FIRST(&head);\n" |
| 604 |
" while (n1 != NULL) {\n" |
| 605 |
" n2 = STAILQ_NEXT(n1, entries);\n" |
| 606 |
" free(n1);\n" |
| 607 |
" n1 = n2;\n" |
| 608 |
" }\n" |
| 609 |
" STAILQ_INIT(&head);\n" |
| 610 |
"\\&\n" |
| 611 |
" exit(EXIT_SUCCESS);\n" |
| 612 |
"}\n" |
| 613 |
msgstr "" |
| 614 |
|
| 615 |
#. SRC END |
| 616 |
#. type: SH |
| 617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 618 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "SEE ALSO" |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "B<insque>(3), B<queue>(7)" |
| 627 |
msgstr "" |
| 628 |
|
| 629 |
#. type: TH |
| 630 |
#: debian-trixie |
| 631 |
#, no-wrap |
| 632 |
msgid "2024-06-16" |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#. type: TH |
| 636 |
#: debian-trixie |
| 637 |
#, no-wrap |
| 638 |
msgid "Linux man-pages 6.9.1" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#. type: Plain text |
| 642 |
#: debian-trixie |
| 643 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 644 |
msgstr "" |
| 645 |
|
| 646 |
#. type: TH |
| 647 |
#: fedora-44 fedora-rawhide |
| 648 |
#, no-wrap |
| 649 |
msgid "2024-07-23" |
| 650 |
msgstr "" |
| 651 |
|
| 652 |
#. type: TH |
| 653 |
#: fedora-44 fedora-rawhide |
| 654 |
#, no-wrap |
| 655 |
msgid "Linux man-pages 6.13" |
| 656 |
msgstr "" |
| 657 |
|
| 658 |
#. type: TH |
| 659 |
#: mageia-cauldron |
| 660 |
#, no-wrap |
| 661 |
msgid "Linux man-pages 6.17" |
| 662 |
msgstr "" |
| 663 |
|
| 664 |
#. type: TH |
| 665 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 666 |
#, no-wrap |
| 667 |
msgid "Linux man-pages (unreleased)" |
| 668 |
msgstr "" |