Debian Codegraph @

po/ru/man3/circleq.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.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Yuri Kozlov <[email protected]>, 2011-2019.
9 # Иван Павлов <[email protected]>, 2017.
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: manpages-l10n\n"
13 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
15 "Last-Translator: Yuri Kozlov <[email protected]>\n"
16 "Language-Team: Russian <[email protected]>\n"
17 "Language: ru\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
22 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
23 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
24 "X-Generator: Lokalize 2.0\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "CIRCLEQ"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2025-05-17"
38 msgstr "17 мая 2025 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid ""
58 "CIRCLEQ_EMPTY, CIRCLEQ_ENTRY, CIRCLEQ_FIRST, CIRCLEQ_FOREACH, "
59 "CIRCLEQ_FOREACH_REVERSE, CIRCLEQ_HEAD, CIRCLEQ_HEAD_INITIALIZER, "
60 "CIRCLEQ_INIT, CIRCLEQ_INSERT_AFTER, CIRCLEQ_INSERT_BEFORE, "
61 "CIRCLEQ_INSERT_HEAD, CIRCLEQ_INSERT_TAIL, CIRCLEQ_LAST, CIRCLEQ_LOOP_NEXT, "
62 "CIRCLEQ_LOOP_PREV, CIRCLEQ_NEXT, CIRCLEQ_PREV, CIRCLEQ_REMOVE - "
63 "implementation of a doubly linked circular queue"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "БИБЛИОТЕКА"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Standard C library (I<libc>,\\ I<-lc>)"
77 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "СИНТАКСИС"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "B<#include E<lt>sys/queue.hE<gt>>\n"
91 msgstr "B<#include E<lt>sys/queue.hE<gt>>\n"
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<CIRCLEQ_ENTRY(TYPE);>\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 ""
105 "B<CIRCLEQ_HEAD(HEADNAME, TYPE);>\n"
106 "B<CIRCLEQ_HEAD CIRCLEQ_HEAD_INITIALIZER(CIRCLEQ_HEAD >I<head>B<);>\n"
107 "B<void CIRCLEQ_INIT(CIRCLEQ_HEAD *>I<head>B<);>\n"
108 msgstr ""
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<int CIRCLEQ_EMPTY(CIRCLEQ_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 ""
122 "B<void CIRCLEQ_INSERT_HEAD(CIRCLEQ_HEAD *>I<head>B<,>\n"
123 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
124 "B<void CIRCLEQ_INSERT_TAIL(CIRCLEQ_HEAD *>I<head>B<,>\n"
125 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
126 "B<void CIRCLEQ_INSERT_BEFORE(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
127 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
128 "B<void CIRCLEQ_INSERT_AFTER(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
129 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid ""
137 "B<struct TYPE *CIRCLEQ_FIRST(CIRCLEQ_HEAD *>I<head>B<);>\n"
138 "B<struct TYPE *CIRCLEQ_LAST(CIRCLEQ_HEAD *>I<head>B<);>\n"
139 "B<struct TYPE *CIRCLEQ_PREV(struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
140 "B<struct TYPE *CIRCLEQ_NEXT(struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
141 "B<struct TYPE *CIRCLEQ_LOOP_PREV(CIRCLEQ_HEAD *>I<head>B<,>\n"
142 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
143 "B<struct TYPE *CIRCLEQ_LOOP_NEXT(CIRCLEQ_HEAD *>I<head>B<,>\n"
144 "B< struct TYPE *>I<elm>B<, CIRCLEQ_ENTRY >I<NAME>B<);>\n"
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid ""
152 "B<CIRCLEQ_FOREACH(struct TYPE *>I<var>B<, CIRCLEQ_HEAD *>I<head>B<,>\n"
153 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
154 "B<CIRCLEQ_FOREACH_REVERSE(struct TYPE *>I<var>B<, CIRCLEQ_HEAD *>I<head>B<,>\n"
155 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid ""
163 "B<void CIRCLEQ_REMOVE(CIRCLEQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
164 "B< CIRCLEQ_ENTRY >I<NAME>B<);>\n"
165 msgstr ""
166
167 #. type: SH
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid "DESCRIPTION"
172 msgstr "ОПИСАНИЕ"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid "These macros define and operate on doubly linked circular queues."
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "In the macro definitions, I<TYPE> is the name of a user-defined structure, "
185 "that must contain a field of type I<CIRCLEQ_ENTRY>, named I<NAME>. The "
186 "argument I<HEADNAME> is the name of a user-defined structure that must be "
187 "declared using the macro B<CIRCLEQ_HEAD>()."
188 msgstr ""
189
190 #. type: SS
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "Creation"
195 msgstr ""
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "A circular queue is headed by a structure defined by the B<CIRCLEQ_HEAD>() "
202 "macro. This structure contains a pair of pointers, one to the first element "
203 "in the queue and the other to the last element in the queue. The elements "
204 "are doubly linked so that an arbitrary element can be removed without "
205 "traversing the queue. New elements can be added to the queue after an "
206 "existing element, before an existing element, at the head of the queue, or "
207 "at the end of the queue. A I<CIRCLEQ_HEAD> structure is declared as follows:"
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "CIRCLEQ_HEAD(HEADNAME, TYPE) head;\n"
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 msgid ""
221 "where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> "
222 "is the type of the elements to be linked into the queue. A pointer to the "
223 "head of the queue can later be declared as:"
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "struct HEADNAME *headp;\n"
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 "(The names I<head> and I<headp> are user selectable.)"
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "B<CIRCLEQ_ENTRY>() declares a structure that connects the elements in the "
244 "queue."
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 msgid ""
251 "B<CIRCLEQ_HEAD_INITIALIZER>() evaluates to an initializer for the queue "
252 "I<head>."
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "B<CIRCLEQ_INIT>() initializes the queue referenced by I<head>."
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "B<CIRCLEQ_EMPTY>() evaluates to true if there are no items on the queue."
266 msgstr ""
267
268 #. type: SS
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "Insertion"
273 msgstr "Вставка"
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "B<CIRCLEQ_INSERT_HEAD>() inserts the new element I<elm> at the head of the "
280 "queue."
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 ""
287 "B<CIRCLEQ_INSERT_TAIL>() inserts the new element I<elm> at the end of the "
288 "queue."
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "B<CIRCLEQ_INSERT_BEFORE>() inserts the new element I<elm> before the "
296 "element I<listelm>."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "B<CIRCLEQ_INSERT_AFTER>() inserts the new element I<elm> after the element "
304 "I<listelm>."
305 msgstr ""
306
307 #. type: SS
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "Traversal"
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "B<CIRCLEQ_FIRST>() returns the first item on the 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 "B<CIRCLEQ_LAST>() returns the last item on the queue."
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "B<CIRCLEQ_PREV>() returns the previous item on the queue, or I<&head> if "
331 "this item is the first one."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "B<CIRCLEQ_NEXT>() returns the next item on the queue, or I<&head> if this "
339 "item is the last one."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "B<CIRCLEQ_LOOP_PREV>() returns the previous item on the queue. If I<elm> "
347 "is the first element on the queue, the last element is returned."
348 msgstr ""
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "B<CIRCLEQ_LOOP_NEXT>() returns the next item on the queue. If I<elm> is "
355 "the last element on the queue, the first element is returned."
356 msgstr ""
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid ""
362 "B<CIRCLEQ_FOREACH>() traverses the queue referenced by I<head> in the "
363 "forward direction, assigning each element in turn to I<var>. I<var> is set "
364 "to I<&head> if the loop completes normally, or if there were no elements."
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<CIRCLEQ_FOREACH_REVERSE>() traverses the queue referenced by I<head> in "
372 "the reverse direction, assigning each element in turn to I<var>."
373 msgstr ""
374
375 #. type: SS
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "Removal"
380 msgstr ""
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid "B<CIRCLEQ_REMOVE>() removes the element I<elm> from the queue."
386 msgstr ""
387
388 #. type: SH
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "RETURN VALUE"
393 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "B<CIRCLEQ_EMPTY>() returns nonzero if the queue is empty, and zero if the "
400 "queue contains at least one entry."
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "B<CIRCLEQ_FIRST>(), B<CIRCLEQ_LAST>(), B<CIRCLEQ_LOOP_PREV>(), and "
408 "B<CIRCLEQ_LOOP_NEXT>() return a pointer to the first, last, previous, or "
409 "next I<TYPE> structure, respectively."
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid ""
416 "B<CIRCLEQ_PREV>(), and B<CIRCLEQ_NEXT>() are similar to their "
417 "B<CIRCLEQ_LOOP_*>() counterparts, except that if the argument is the first "
418 "or last element, respectively, they return I<&head>."
419 msgstr ""
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "B<CIRCLEQ_HEAD_INITIALIZER>() returns an initializer that can be assigned "
426 "to the queue I<head>."
427 msgstr ""
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "STANDARDS"
434 msgstr "СТАНДАРТЫ"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "BSD."
440 msgstr "BSD."
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "BUGS"
447 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
448
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<CIRCLEQ_FOREACH>() and B<CIRCLEQ_FOREACH_REVERSE>() don't allow I<var> "
454 "to be removed or freed within the loop, as it would interfere with the "
455 "traversal. B<CIRCLEQ_FOREACH_SAFE>() and "
456 "B<CIRCLEQ_FOREACH_REVERSE_SAFE>(), which are present on the BSDs but are not "
457 "present in glibc, fix this limitation by allowing I<var> to safely be "
458 "removed from the list and freed from within the loop without interfering "
459 "with the traversal."
460 msgstr ""
461
462 #. type: SH
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "EXAMPLES"
467 msgstr "ПРИМЕРЫ"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid ""
474 "#include E<lt>stddef.hE<gt>\n"
475 "#include E<lt>stdio.hE<gt>\n"
476 "#include E<lt>stdlib.hE<gt>\n"
477 "#include E<lt>sys/queue.hE<gt>\n"
478 "\\&\n"
479 "struct entry {\n"
480 " int data;\n"
481 " CIRCLEQ_ENTRY(entry) entries; /* Queue */\n"
482 "};\n"
483 "\\&\n"
484 "CIRCLEQ_HEAD(circlehead, entry);\n"
485 "\\&\n"
486 "int\n"
487 "main(void)\n"
488 "{\n"
489 " struct entry *n1, *n2, *n3, *np;\n"
490 " struct circlehead head; /* Queue head */\n"
491 " int i;\n"
492 "\\&\n"
493 " CIRCLEQ_INIT(&head); /* Initialize the queue */\n"
494 "\\&\n"
495 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
496 " CIRCLEQ_INSERT_HEAD(&head, n1, entries);\n"
497 "\\&\n"
498 " n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n"
499 " CIRCLEQ_INSERT_TAIL(&head, n1, entries);\n"
500 "\\&\n"
501 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
502 " CIRCLEQ_INSERT_AFTER(&head, n1, n2, entries);\n"
503 "\\&\n"
504 " n3 = malloc(sizeof(struct entry)); /* Insert before */\n"
505 " CIRCLEQ_INSERT_BEFORE(&head, n2, n3, entries);\n"
506 "\\&\n"
507 " CIRCLEQ_REMOVE(&head, n2, entries); /* Deletion */\n"
508 " free(n2);\n"
509 " /* Forward traversal */\n"
510 " i = 0;\n"
511 " CIRCLEQ_FOREACH(np, &head, entries)\n"
512 " np-E<gt>data = i++;\n"
513 " /* Reverse traversal */\n"
514 " CIRCLEQ_FOREACH_REVERSE(np, &head, entries)\n"
515 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
516 " /* Queue deletion */\n"
517 " n1 = CIRCLEQ_FIRST(&head);\n"
518 " while (n1 != (void *)&head) {\n"
519 " n2 = CIRCLEQ_NEXT(n1, entries);\n"
520 " free(n1);\n"
521 " n1 = n2;\n"
522 " }\n"
523 " CIRCLEQ_INIT(&head);\n"
524 "\\&\n"
525 " exit(EXIT_SUCCESS);\n"
526 "}\n"
527 msgstr ""
528
529 #. SRC END
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 "SEE ALSO"
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 "B<insque>(3), B<queue>(7)"
541 msgstr "B<insque>(3), B<queue>(7)"
542
543 #. type: TH
544 #: debian-trixie
545 #, no-wrap
546 msgid "2024-06-15"
547 msgstr "15 июня 2024 г."
548
549 #. type: TH
550 #: debian-trixie
551 #, no-wrap
552 msgid "Linux man-pages 6.9.1"
553 msgstr "Страницы руководства Linux 6.9.1"
554
555 #. type: Plain text
556 #: debian-trixie
557 msgid "Standard C library (I<libc>, I<-lc>)"
558 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
559
560 #. type: TH
561 #: fedora-44 fedora-rawhide
562 #, no-wrap
563 msgid "2024-07-23"
564 msgstr "23 июля 2024 г."
565
566 #. type: TH
567 #: fedora-44 fedora-rawhide
568 #, no-wrap
569 msgid "Linux man-pages 6.13"
570 msgstr "Страницы руководства Linux 6.13"
571
572 #. type: TH
573 #: mageia-cauldron
574 #, no-wrap
575 msgid "Linux man-pages 6.17"
576 msgstr "Страницы руководства Linux 6.17"
577
578 #. type: TH
579 #: opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid "Linux man-pages (unreleased)"
582 msgstr "Страницы руководства Linux (не выпущены)"