Debian Codegraph @

po/ru/man3/stailq.3.po

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