Debian Codegraph @

po/ru/man3/slist.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:43+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 "SLIST"
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-05-17"
40 msgstr "17 мая 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 #. SLIST_FOREACH_FROM,
57 #. SLIST_FOREACH_FROM_SAFE,
58 #. SLIST_FOREACH_SAFE,
59 #. SLIST_REMOVE_AFTER,
60 #. SLIST_SWAP
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid ""
65 "SLIST_EMPTY, SLIST_ENTRY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD, "
66 "SLIST_HEAD_INITIALIZER, SLIST_INIT, SLIST_INSERT_AFTER, SLIST_INSERT_HEAD, "
67 "SLIST_NEXT, SLIST_REMOVE, SLIST_REMOVE_HEAD - implementation of a singly "
68 "linked list"
69 msgstr ""
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "LIBRARY"
76 msgstr "БИБЛИОТЕКА"
77
78 #. type: Plain text
79 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
80 #: opensuse-leap-16-1 opensuse-tumbleweed
81 msgid "Standard C library (I<libc>,\\ I<-lc>)"
82 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
83
84 #. type: SH
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "SYNOPSIS"
89 msgstr "СИНТАКСИС"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<#include E<lt>sys/queue.hE<gt>>\n"
96 msgstr "B<#include E<lt>sys/queue.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "B<SLIST_ENTRY(TYPE);>\n"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "B<SLIST_HEAD(HEADNAME, TYPE);>\n"
111 "B<SLIST_HEAD SLIST_HEAD_INITIALIZER(SLIST_HEAD >I<head>B<);>\n"
112 "B<void SLIST_INIT(SLIST_HEAD *>I<head>B<);>\n"
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "B<int SLIST_EMPTY(SLIST_HEAD *>I<head>B<);>\n"
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 "B<void SLIST_INSERT_HEAD(SLIST_HEAD *>I<head>B<,>\n"
128 "B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n"
129 "B<void SLIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n"
130 "B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n"
131 msgstr ""
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid ""
138 "B<struct TYPE *SLIST_FIRST(SLIST_HEAD *>I<head>B<);>\n"
139 "B<struct TYPE *SLIST_NEXT(struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n"
140 msgstr ""
141
142 #. .BI "SLIST_FOREACH_FROM(struct TYPE *" var ", SLIST_HEAD *" head ,
143 #. .BI " SLIST_ENTRY " NAME );
144 #. .P
145 #. .BI "SLIST_FOREACH_SAFE(struct TYPE *" var ", SLIST_HEAD *" head ,
146 #. .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var );
147 #. .BI "SLIST_FOREACH_FROM_SAFE(struct TYPE *" var ", SLIST_HEAD *" head ,
148 #. .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var );
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 "B<SLIST_FOREACH(struct TYPE *>I<var>B<, SLIST_HEAD *>I<head>B<, SLIST_ENTRY >I<NAME>B<);>\n"
154 msgstr ""
155
156 #. .BI "void SLIST_REMOVE_AFTER(struct TYPE *" elm ,
157 #. .BI " SLIST_ENTRY " NAME );
158 #. .P
159 #. .BI "void SLIST_SWAP(SLIST_HEAD *" head1 ", SLIST_HEAD *" head2 ,
160 #. .BI " SLIST_ENTRY " NAME );
161 #. type: Plain text
162 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
163 #: opensuse-tumbleweed
164 #, no-wrap
165 msgid ""
166 "B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<, TYPE,>\n"
167 "B< SLIST_ENTRY >I<NAME>B<);>\n"
168 "B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n"
169 "B< SLIST_ENTRY >I<NAME>B<);>\n"
170 msgstr ""
171
172 #. type: SH
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "DESCRIPTION"
177 msgstr "ОПИСАНИЕ"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid "These macros define and operate on singly linked lists."
183 msgstr ""
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "In the macro definitions, I<TYPE> is the name of a user-defined structure, "
190 "that must contain a field of type I<SLIST_ENTRY>, named I<NAME>. The "
191 "argument I<HEADNAME> is the name of a user-defined structure that must be "
192 "declared using the macro B<SLIST_HEAD>()."
193 msgstr ""
194
195 #. type: SS
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, fuzzy, no-wrap
199 #| msgid "action"
200 msgid "Creation"
201 msgstr "действие"
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "A singly linked list is headed by a structure defined by the "
208 "B<SLIST_HEAD>() macro. This structure contains a single pointer to the "
209 "first element on the list. The elements are singly linked for minimum space "
210 "and pointer manipulation overhead at the expense of O(n) removal for "
211 "arbitrary elements. New elements can be added to the list after an existing "
212 "element or at the head of the list. An I<SLIST_HEAD> structure is declared "
213 "as follows:"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "SLIST_HEAD(HEADNAME, TYPE) head;\n"
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> "
228 "is the type of the elements to be linked into the list. A pointer to the "
229 "head of the list can later be declared as:"
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "struct HEADNAME *headp;\n"
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 "(The names I<head> and I<headp> are user selectable.)"
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 "B<SLIST_ENTRY>() declares a structure that connects the elements in the "
250 "list."
251 msgstr ""
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "B<SLIST_HEAD_INITIALIZER>() evaluates to an initializer for the list "
258 "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 "B<SLIST_INIT>() initializes the list referenced by I<head>."
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<SLIST_EMPTY>() evaluates to true if there are no elements in the list."
272 msgstr ""
273
274 #. type: SS
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "Insertion"
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 #, fuzzy
285 #| msgid "Insertion of a new entry at the head of the list."
286 msgid ""
287 "B<SLIST_INSERT_HEAD>() inserts the new element I<elm> at the head of the "
288 "list."
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<SLIST_INSERT_AFTER>() inserts the new element I<elm> after the element "
296 "I<listelm>."
297 msgstr ""
298
299 #. type: SS
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "Traversal"
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "B<SLIST_FIRST>() returns the first element in the list, or NULL if the list "
311 "is empty."
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<SLIST_NEXT>() returns the next element in the list."
318 msgstr ""
319
320 #. .P
321 #. .BR SLIST_FOREACH_FROM ()
322 #. behaves identically to
323 #. .BR SLIST_FOREACH ()
324 #. when
325 #. .I var
326 #. is NULL, else it treats
327 #. .I var
328 #. as a previously found SLIST element and begins the loop at
329 #. .I var
330 #. instead of the first element in the SLIST referenced by
331 #. .IR head .
332 #. .Pp
333 #. .BR SLIST_FOREACH_SAFE ()
334 #. traverses the list referenced by
335 #. .I head
336 #. in the forward direction, assigning each element in
337 #. turn to
338 #. .IR var .
339 #. However, unlike
340 #. .BR SLIST_FOREACH ()
341 #. here it is permitted to both remove
342 #. .I var
343 #. as well as free it from within the loop safely without interfering with the
344 #. traversal.
345 #. .P
346 #. .BR SLIST_FOREACH_FROM_SAFE ()
347 #. behaves identically to
348 #. .BR SLIST_FOREACH_SAFE ()
349 #. when
350 #. .I var
351 #. is NULL, else it treats
352 #. .I var
353 #. as a previously found SLIST element and begins the loop at
354 #. .I var
355 #. instead of the first element in the SLIST referenced by
356 #. .IR head .
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "B<SLIST_FOREACH>() traverses the list referenced by I<head> in the forward "
362 "direction, assigning each element in turn to I<var>."
363 msgstr ""
364
365 #. type: SS
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "Removal"
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid "B<SLIST_REMOVE>() removes the element I<elm> from the list."
376 msgstr ""
377
378 #. .P
379 #. .BR SLIST_REMOVE_AFTER ()
380 #. removes the element after
381 #. .I elm
382 #. from the list.
383 #. Unlike
384 #. .IR SLIST_REMOVE ,
385 #. this macro does not traverse the entire list.
386 #. .SS Other features
387 #. .BR SLIST_SWAP ()
388 #. swaps the contents of
389 #. .I head1
390 #. and
391 #. .IR head2 .
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "B<SLIST_REMOVE_HEAD>() removes the element I<elm> from the head of the "
397 "list. For optimum efficiency, elements being removed from the head of the "
398 "list should explicitly use this macro instead of the generic "
399 "B<SLIST_REMOVE>()."
400 msgstr ""
401
402 #. type: SH
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "RETURN VALUE"
407 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid ""
413 "B<SLIST_EMPTY>() returns nonzero if the list is empty, and zero if the list "
414 "contains at least one entry."
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "B<SLIST_FIRST>(), and B<SLIST_NEXT>() return a pointer to the first or next "
422 "I<TYPE> structure, respectively."
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "B<SLIST_HEAD_INITIALIZER>() returns an initializer that can be assigned to "
430 "the list I<head>."
431 msgstr ""
432
433 #. type: SH
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "STANDARDS"
438 msgstr "СТАНДАРТЫ"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid "BSD."
444 msgstr "BSD."
445
446 #. type: SH
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "HISTORY"
451 msgstr "ИСТОРИЯ"
452
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 "4.4BSD."
457 msgstr "4.4BSD."
458
459 #. type: SH
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "BUGS"
464 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid ""
470 "B<SLIST_FOREACH>() doesn't allow I<var> to be removed or freed within the "
471 "loop, as it would interfere with the traversal. B<SLIST_FOREACH_SAFE>(), "
472 "which is present on the BSDs but is not present in glibc, fixes this "
473 "limitation by allowing I<var> to safely be removed from the list and freed "
474 "from within the loop without interfering with the traversal."
475 msgstr ""
476
477 #. type: SH
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "EXAMPLES"
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 #, no-wrap
488 msgid ""
489 "#include E<lt>stddef.hE<gt>\n"
490 "#include E<lt>stdio.hE<gt>\n"
491 "#include E<lt>stdlib.hE<gt>\n"
492 "#include E<lt>sys/queue.hE<gt>\n"
493 "\\&\n"
494 "struct entry {\n"
495 " int data;\n"
496 " SLIST_ENTRY(entry) entries; /* Singly linked list */\n"
497 "};\n"
498 "\\&\n"
499 "SLIST_HEAD(slisthead, entry);\n"
500 "\\&\n"
501 "int\n"
502 "main(void)\n"
503 "{\n"
504 " struct entry *n1, *n2, *n3, *np;\n"
505 " struct slisthead head; /* Singly linked list\n"
506 " head */\n"
507 "\\&\n"
508 " SLIST_INIT(&head); /* Initialize the queue */\n"
509 "\\&\n"
510 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
511 " SLIST_INSERT_HEAD(&head, n1, entries);\n"
512 "\\&\n"
513 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
514 " SLIST_INSERT_AFTER(n1, n2, entries);\n"
515 "\\&\n"
516 " SLIST_REMOVE(&head, n2, entry, entries);/* Deletion */\n"
517 " free(n2);\n"
518 "\\&\n"
519 " n3 = SLIST_FIRST(&head);\n"
520 " SLIST_REMOVE_HEAD(&head, entries); /* Deletion from the head */\n"
521 " free(n3);\n"
522 "\\&\n"
523 " for (unsigned int i = 0; i E<lt> 5; i++) {\n"
524 " n1 = malloc(sizeof(struct entry));\n"
525 " SLIST_INSERT_HEAD(&head, n1, entries);\n"
526 " n1-E<gt>data = i;\n"
527 " }\n"
528 "\\&\n"
529 " /* Forward traversal */\n"
530 " SLIST_FOREACH(np, &head, entries)\n"
531 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
532 "\\&\n"
533 " while (!SLIST_EMPTY(&head)) { /* List deletion */\n"
534 " n1 = SLIST_FIRST(&head);\n"
535 " SLIST_REMOVE_HEAD(&head, entries);\n"
536 " free(n1);\n"
537 " }\n"
538 " SLIST_INIT(&head);\n"
539 "\\&\n"
540 " exit(EXIT_SUCCESS);\n"
541 "}\n"
542 msgstr ""
543
544 #. SRC END
545 #. type: SH
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 #, no-wrap
549 msgid "SEE ALSO"
550 msgstr "СМОТРИТЕ ТАКЖЕ"
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid "B<insque>(3), B<queue>(7)"
556 msgstr "B<insque>(3), B<queue>(7)"
557
558 #. type: TH
559 #: debian-trixie
560 #, no-wrap
561 msgid "2024-06-15"
562 msgstr "15 июня 2024 г."
563
564 #. type: TH
565 #: debian-trixie
566 #, no-wrap
567 msgid "Linux man-pages 6.9.1"
568 msgstr "Страницы руководства Linux 6.9.1"
569
570 #. type: Plain text
571 #: debian-trixie
572 msgid "Standard C library (I<libc>, I<-lc>)"
573 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
574
575 #. .BI "void SLIST_REMOVE_AFTER(struct TYPE *" elm ,
576 #. .BI " SLIST_ENTRY " NAME );
577 #. .P
578 #. .BI "void SLIST_SWAP(SLIST_HEAD *" head1 ", SLIST_HEAD *" head2 ,
579 #. .BI " SLIST_ENTRY " NAME );
580 #. type: Plain text
581 #: debian-trixie fedora-44 fedora-rawhide
582 #, no-wrap
583 msgid ""
584 "B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
585 "B< SLIST_ENTRY >I<NAME>B<);>\n"
586 "B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n"
587 "B< SLIST_ENTRY >I<NAME>B<);>\n"
588 msgstr ""
589
590 #. type: TH
591 #: fedora-44 fedora-rawhide
592 #, no-wrap
593 msgid "2024-07-23"
594 msgstr "23 июля 2024 г."
595
596 #. type: TH
597 #: fedora-44 fedora-rawhide
598 #, no-wrap
599 msgid "Linux man-pages 6.13"
600 msgstr "Страницы руководства Linux 6.13"
601
602 #. type: TH
603 #: mageia-cauldron
604 #, no-wrap
605 msgid "Linux man-pages 6.17"
606 msgstr "Страницы руководства Linux 6.17"
607
608 #. type: TH
609 #: opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "Linux man-pages (unreleased)"
612 msgstr "Страницы руководства Linux (не выпущены)"