Debian Codegraph @

po/ru/man3/tailq.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 # Azamat Hackimov <[email protected]>, 2014, 2016-2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Yuri Kozlov <[email protected]>, 2011-2019.
7 # Иван Павлов <[email protected]>, 2017, 2019.
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: manpages-l10n\n"
11 "POT-Creation-Date: 2026-06-05 06:48+0200\n"
12 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
13 "Last-Translator: Yuri Kozlov <[email protected]>\n"
14 "Language-Team: Russian <[email protected]>\n"
15 "Language: ru\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
20 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
21 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
22 "X-Generator: Lokalize 2.0\n"
23
24 #. type: TH
25 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
26 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
27 #, no-wrap
28 msgid "TAILQ"
29 msgstr ""
30
31 #. type: TH
32 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
33 #: opensuse-tumbleweed
34 #, no-wrap
35 msgid "2025-05-17"
36 msgstr "17 мая 2025 г."
37
38 #. type: TH
39 #: archlinux debian-unstable
40 #, fuzzy, no-wrap
41 #| msgid "Linux man-pages 6.17"
42 msgid "Linux man-pages 6.18"
43 msgstr "Справочные страницы Linux 6.17"
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr "НАИМЕНОВАНИЕ"
51
52 #. TAILQ_FOREACH_FROM,
53 #. TAILQ_FOREACH_FROM_SAFE,
54 #. TAILQ_FOREACH_REVERSE_FROM,
55 #. TAILQ_FOREACH_REVERSE_FROM_SAFE,
56 #. TAILQ_FOREACH_REVERSE_SAFE,
57 #. TAILQ_FOREACH_SAFE,
58 #. TAILQ_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 "TAILQ_CONCAT, TAILQ_EMPTY, TAILQ_ENTRY, TAILQ_FIRST, TAILQ_FOREACH, "
64 "TAILQ_FOREACH_REVERSE, TAILQ_HEAD, TAILQ_HEAD_INITIALIZER, TAILQ_INIT, "
65 "TAILQ_INSERT_AFTER, TAILQ_INSERT_BEFORE, TAILQ_INSERT_HEAD, "
66 "TAILQ_INSERT_TAIL, TAILQ_LAST, TAILQ_NEXT, TAILQ_PREV, TAILQ_REMOVE - "
67 "implementation of a doubly linked tail queue"
68 msgstr ""
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "LIBRARY"
75 msgstr "БИБЛИОТЕКА"
76
77 #. type: Plain text
78 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
79 #: opensuse-leap-16-1 opensuse-tumbleweed
80 msgid "Standard C library (I<libc>,\\ I<-lc>)"
81 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
88 msgstr "СИНТАКСИС"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<#include E<lt>sys/queue.hE<gt>>\n"
95 msgstr "B<#include E<lt>sys/queue.hE<gt>>\n"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "B<TAILQ_ENTRY(TYPE);>\n"
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<TAILQ_HEAD(HEADNAME, TYPE);>\n"
110 "B<TAILQ_HEAD TAILQ_HEAD_INITIALIZER(TAILQ_HEAD >I<head>B<);>\n"
111 "B<void TAILQ_INIT(TAILQ_HEAD *>I<head>B<);>\n"
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "B<int TAILQ_EMPTY(TAILQ_HEAD *>I<head>B<);>\n"
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 "B<void TAILQ_INSERT_HEAD(TAILQ_HEAD *>I<head>B<,>\n"
127 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
128 "B<void TAILQ_INSERT_TAIL(TAILQ_HEAD *>I<head>B<,>\n"
129 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
130 "B<void TAILQ_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n"
131 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
132 "B<void TAILQ_INSERT_AFTER(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
133 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid ""
141 "B<struct TYPE *TAILQ_FIRST(TAILQ_HEAD *>I<head>B<);>\n"
142 "B<struct TYPE *TAILQ_LAST(TAILQ_HEAD *>I<head>B<, HEADNAME);>\n"
143 "B<struct TYPE *TAILQ_PREV(struct TYPE *>I<elm>B<, HEADNAME, TAILQ_ENTRY >I<NAME>B<);>\n"
144 "B<struct TYPE *TAILQ_NEXT(struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
145 msgstr ""
146
147 #. .BI "TAILQ_FOREACH_FROM(struct TYPE *" var ", TAILQ_HEAD *" head ,
148 #. .BI " TAILQ_ENTRY " NAME );
149 #. .BI "TAILQ_FOREACH_REVERSE_FROM(struct TYPE *" var ", TAILQ_HEAD *" head ", HEADNAME,"
150 #. .BI " TAILQ_ENTRY " NAME );
151 #. .P
152 #. .BI "TAILQ_FOREACH_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
153 #. .BI " TAILQ_ENTRY " NAME ,
154 #. .BI " struct TYPE *" temp_var );
155 #. .BI "TAILQ_FOREACH_FROM_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
156 #. .BI " TAILQ_ENTRY " NAME ,
157 #. .BI " struct TYPE *" temp_var );
158 #. .BI "TAILQ_FOREACH_REVERSE_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
159 #. .BI " HEADNAME, TAILQ_ENTRY " NAME ,
160 #. .BI " struct TYPE *" temp_var );
161 #. .BI "TAILQ_FOREACH_REVERSE_FROM_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
162 #. .BI " HEADNAME, TAILQ_ENTRY " NAME ,
163 #. .BI " struct TYPE *" temp_var );
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<TAILQ_FOREACH(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<,>\n"
170 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
171 "B<TAILQ_FOREACH_REVERSE(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<, HEADNAME,>\n"
172 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid ""
180 "B<void TAILQ_REMOVE(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
181 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
182 msgstr ""
183
184 #. .BI "void TAILQ_SWAP(TAILQ_HEAD *" head1 ", TAILQ_HEAD *" head2 ", TYPE,"
185 #. .BI " TAILQ_ENTRY " NAME );
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid ""
191 "B<void TAILQ_CONCAT(TAILQ_HEAD *>I<head1>B<, TAILQ_HEAD *>I<head2>B<,>\n"
192 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
193 msgstr ""
194
195 #. type: SH
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "DESCRIPTION"
200 msgstr "ОПИСАНИЕ"
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid "These macros define and operate on doubly linked tail queues."
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 "In the macro definitions, I<TYPE> is the name of a user defined structure, "
213 "that must contain a field of type I<TAILQ_ENTRY>, named I<NAME>. The "
214 "argument I<HEADNAME> is the name of a user defined structure that must be "
215 "declared using the macro B<TAILQ_HEAD>()."
216 msgstr ""
217
218 #. type: SS
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "Creation"
223 msgstr ""
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "A tail queue is headed by a structure defined by the B<TAILQ_HEAD>() "
230 "macro. This structure contains a pair of pointers, one to the first element "
231 "in the queue and the other to the last element in the queue. The elements "
232 "are doubly linked so that an arbitrary element can be removed without "
233 "traversing the queue. New elements can be added to the queue after an "
234 "existing element, before an existing element, at the head of the queue, or "
235 "at the end of the queue. A I<TAILQ_HEAD> structure is declared as follows:"
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid ""
249 "where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> "
250 "is the type of the elements to be linked into the queue. A pointer to the "
251 "head of the queue can later be declared as:"
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 #, no-wrap
258 msgid "struct HEADNAME *headp;\n"
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 "(The names I<head> and I<headp> are user selectable.)"
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "B<TAILQ_ENTRY>() declares a structure that connects the elements in the "
272 "queue."
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 msgid ""
279 "B<TAILQ_HEAD_INITIALIZER>() evaluates to an initializer for the queue "
280 "I<head>."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "B<TAILQ_INIT>() initializes the queue referenced by"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ""
293 "B<TAILQ_EMPTY>() evaluates to true if there are no items on the queue. "
294 "I<head>."
295 msgstr ""
296
297 #. type: SS
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "Insertion"
302 msgstr "Вставка"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid ""
308 "B<TAILQ_INSERT_HEAD>() inserts the new element I<elm> at the head of the "
309 "queue."
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<TAILQ_INSERT_TAIL>() inserts the new element I<elm> at the end of the "
317 "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<TAILQ_INSERT_BEFORE>() inserts the new element I<elm> before the element "
325 "I<listelm>."
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<TAILQ_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 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "B<TAILQ_FIRST>() returns the first item on the queue, or NULL if the queue "
348 "is empty."
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "B<TAILQ_LAST>() returns the last item on the queue. If the queue is empty "
356 "the return value is NULL."
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "B<TAILQ_PREV>() returns the previous item on the queue, or NULL if this "
364 "item is the first."
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "B<TAILQ_NEXT>() returns the next item on the queue, or NULL if this item is "
372 "the last."
373 msgstr ""
374
375 #. .P
376 #. .BR TAILQ_FOREACH_FROM ()
377 #. behaves identically to
378 #. .BR TAILQ_FOREACH ()
379 #. when
380 #. .I var
381 #. is NULL, else it treats
382 #. .I var
383 #. as a previously found TAILQ element and begins the loop at
384 #. .I var
385 #. instead of the first element in the TAILQ referenced by
386 #. .IR head .
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "B<TAILQ_FOREACH>() traverses the queue referenced by I<head> in the forward "
392 "direction, assigning each element in turn to I<var>. I<var> is set to NULL "
393 "if the loop completes normally, or if there were no elements."
394 msgstr ""
395
396 #. .P
397 #. .BR TAILQ_FOREACH_REVERSE_FROM ()
398 #. behaves identically to
399 #. .BR TAILQ_FOREACH_REVERSE ()
400 #. when
401 #. .I var
402 #. is NULL, else it treats
403 #. .I var
404 #. as a previously found TAILQ element and begins the reverse loop at
405 #. .I var
406 #. instead of the last element in the TAILQ referenced by
407 #. .IR head .
408 #. .P
409 #. .BR TAILQ_FOREACH_SAFE ()
410 #. and
411 #. .BR TAILQ_FOREACH_REVERSE_SAFE ()
412 #. traverse the list referenced by
413 #. .I head
414 #. in the forward or reverse direction respectively,
415 #. assigning each element in turn to
416 #. .IR var .
417 #. However, unlike their unsafe counterparts,
418 #. .BR TAILQ_FOREACH ()
419 #. and
420 #. .BR TAILQ_FOREACH_REVERSE ()
421 #. permit to both remove
422 #. .I var
423 #. as well as free it from within the loop safely without interfering with the
424 #. traversal.
425 #. .P
426 #. .BR TAILQ_FOREACH_FROM_SAFE ()
427 #. behaves identically to
428 #. .BR TAILQ_FOREACH_SAFE ()
429 #. when
430 #. .I var
431 #. is NULL, else it treats
432 #. .I var
433 #. as a previously found TAILQ element and begins the loop at
434 #. .I var
435 #. instead of the first element in the TAILQ referenced by
436 #. .IR head .
437 #. .P
438 #. .BR TAILQ_FOREACH_REVERSE_FROM_SAFE ()
439 #. behaves identically to
440 #. .BR TAILQ_FOREACH_REVERSE_SAFE ()
441 #. when
442 #. .I var
443 #. is NULL, else it treats
444 #. .I var
445 #. as a previously found TAILQ element and begins the reverse loop at
446 #. .I var
447 #. instead of the last element in the TAILQ referenced by
448 #. .IR head .
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "B<TAILQ_FOREACH_REVERSE>() traverses the queue referenced by I<head> in the "
454 "reverse direction, assigning each element in turn to I<var>."
455 msgstr ""
456
457 #. type: SS
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "Removal"
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 "B<TAILQ_REMOVE>() removes the element I<elm> from the queue."
468 msgstr ""
469
470 #. type: SS
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "Other features"
475 msgstr ""
476
477 #. .BR TAILQ_SWAP ()
478 #. swaps the contents of
479 #. .I head1
480 #. and
481 #. .IR head2 .
482 #. .P
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "B<TAILQ_CONCAT>() concatenates the queue headed by I<head2> onto the end of "
488 "the one headed by I<head1> removing all entries from the former."
489 msgstr ""
490
491 #. type: SH
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "RETURN VALUE"
496 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "B<TAILQ_EMPTY>() returns nonzero if the queue is empty, and zero if the "
503 "queue contains at least one entry."
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<TAILQ_FIRST>(), B<TAILQ_LAST>(), B<TAILQ_PREV>(), and B<TAILQ_NEXT>() "
511 "return a pointer to the first, last, previous, or next I<TYPE> structure, "
512 "respectively."
513 msgstr ""
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "B<TAILQ_HEAD_INITIALIZER>() returns an initializer that can be assigned to "
520 "the queue I<head>."
521 msgstr ""
522
523 #. type: SH
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 #, no-wrap
527 msgid "STANDARDS"
528 msgstr "СТАНДАРТЫ"
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 msgid "BSD."
534 msgstr "BSD."
535
536 #. type: SH
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 #, no-wrap
540 msgid "HISTORY"
541 msgstr "ИСТОРИЯ"
542
543 #. type: Plain text
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 msgid "4.4BSD."
547 msgstr "4.4BSD."
548
549 #. type: SH
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid "CAVEATS"
554 msgstr ""
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid ""
560 "B<TAILQ_FOREACH>() and B<TAILQ_FOREACH_REVERSE>() don't allow I<var> to be "
561 "removed or freed within the loop, as it would interfere with the traversal. "
562 "B<TAILQ_FOREACH_SAFE>() and B<TAILQ_FOREACH_REVERSE_SAFE>(), which are "
563 "present on the BSDs but are not present in glibc, fix this limitation by "
564 "allowing I<var> to safely be removed from the list and freed from within the "
565 "loop without interfering with the traversal."
566 msgstr ""
567
568 #. type: SH
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 #, no-wrap
572 msgid "EXAMPLES"
573 msgstr "ПРИМЕРЫ"
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid ""
580 "#include E<lt>stddef.hE<gt>\n"
581 "#include E<lt>stdio.hE<gt>\n"
582 "#include E<lt>stdlib.hE<gt>\n"
583 "#include E<lt>sys/queue.hE<gt>\n"
584 "\\&\n"
585 "struct entry {\n"
586 " int data;\n"
587 " TAILQ_ENTRY(entry) entries; /* Tail queue */\n"
588 "};\n"
589 "\\&\n"
590 "TAILQ_HEAD(tailhead, entry);\n"
591 "\\&\n"
592 "int\n"
593 "main(void)\n"
594 "{\n"
595 " struct entry *n1, *n2, *n3, *np;\n"
596 " struct tailhead head; /* Tail queue head */\n"
597 " int i;\n"
598 "\\&\n"
599 " TAILQ_INIT(&head); /* Initialize the queue */\n"
600 "\\&\n"
601 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
602 " TAILQ_INSERT_HEAD(&head, n1, entries);\n"
603 "\\&\n"
604 " n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n"
605 " TAILQ_INSERT_TAIL(&head, n1, entries);\n"
606 "\\&\n"
607 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
608 " TAILQ_INSERT_AFTER(&head, n1, n2, entries);\n"
609 "\\&\n"
610 " n3 = malloc(sizeof(struct entry)); /* Insert before */\n"
611 " TAILQ_INSERT_BEFORE(n2, n3, entries);\n"
612 "\\&\n"
613 " TAILQ_REMOVE(&head, n2, entries); /* Deletion */\n"
614 " free(n2);\n"
615 " /* Forward traversal */\n"
616 " i = 0;\n"
617 " TAILQ_FOREACH(np, &head, entries)\n"
618 " np-E<gt>data = i++;\n"
619 " /* Reverse traversal */\n"
620 " TAILQ_FOREACH_REVERSE(np, &head, tailhead, entries)\n"
621 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
622 " /* TailQ deletion */\n"
623 " n1 = TAILQ_FIRST(&head);\n"
624 " while (n1 != NULL) {\n"
625 " n2 = TAILQ_NEXT(n1, entries);\n"
626 " free(n1);\n"
627 " n1 = n2;\n"
628 " }\n"
629 " TAILQ_INIT(&head);\n"
630 "\\&\n"
631 " exit(EXIT_SUCCESS);\n"
632 "}\n"
633 msgstr ""
634
635 #. SRC END
636 #. type: SH
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 #, no-wrap
640 msgid "SEE ALSO"
641 msgstr "СМОТРИТЕ ТАКЖЕ"
642
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid "B<insque>(3), B<queue>(7)"
647 msgstr "B<insque>(3), B<queue>(7)"
648
649 #. type: TH
650 #: debian-trixie
651 #, no-wrap
652 msgid "2024-06-15"
653 msgstr "15 июня 2024 г."
654
655 #. type: TH
656 #: debian-trixie
657 #, no-wrap
658 msgid "Linux man-pages 6.9.1"
659 msgstr "Страницы руководства Linux 6.9.1"
660
661 #. type: Plain text
662 #: debian-trixie
663 msgid "Standard C library (I<libc>, I<-lc>)"
664 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
665
666 #. type: TH
667 #: fedora-44 fedora-rawhide
668 #, no-wrap
669 msgid "2024-07-23"
670 msgstr "23 июля 2024 г."
671
672 #. type: TH
673 #: fedora-44 fedora-rawhide
674 #, no-wrap
675 msgid "Linux man-pages 6.13"
676 msgstr "Страницы руководства Linux 6.13"
677
678 #. type: TH
679 #: mageia-cauldron
680 #, no-wrap
681 msgid "Linux man-pages 6.17"
682 msgstr "Страницы руководства Linux 6.17"
683
684 #. type: TH
685 #: opensuse-leap-16-1 opensuse-tumbleweed
686 #, no-wrap
687 msgid "Linux man-pages (unreleased)"
688 msgstr "Страницы руководства Linux (не выпущены)"