Debian Codegraph @

po/ru/man3/insque.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]>, 2013-2014, 2017.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
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:27+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 "insque"
29 msgstr ""
30
31 #. type: TH
32 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
33 #: opensuse-tumbleweed
34 #, no-wrap
35 msgid "2026-02-08"
36 msgstr "8 февраля 2026 г."
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 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid "insque, remque - insert/remove an item from a queue"
56 msgstr "insque, remque - добавляет/удаляет элемент очереди"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "БИБЛИОТЕКА"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
76 msgstr "СИНТАКСИС"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>search.hE<gt>>\n"
83 msgstr "B<#include E<lt>search.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, fuzzy, no-wrap
89 #| msgid "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
90 msgid ""
91 "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
92 "B<void remque(void *>I<elem>B<);>\n"
93 msgstr "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
100 msgstr ""
101 "Требования макроса тестирования свойств для glibc (см. "
102 "B<feature_test_macros>(7)):"
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 msgid "B<insque>(), B<remque>():"
108 msgstr "B<insque>(), B<remque>():"
109
110 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid ""
116 " _XOPEN_SOURCE E<gt>= 500\n"
117 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
118 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
119 msgstr ""
120 " _XOPEN_SOURCE E<gt>= 500\n"
121 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
122 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
123
124 #. type: SH
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "DESCRIPTION"
129 msgstr "ОПИСАНИЕ"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 #, fuzzy
135 #| msgid ""
136 #| "The B<insque>() and B<remque>() functions manipulate doubly-linked "
137 #| "lists. Each element in the list is a structure of which the first two "
138 #| "elements are a forward and a backward pointer. The linked list may be "
139 #| "linear (i.e., NULL forward pointer at the end of the list and NULL "
140 #| "backward pointer at the start of the list) or circular."
141 msgid ""
142 "The B<insque>() and B<remque>() functions manipulate doubly linked lists. "
143 "Each element in the list is a structure of which the first two elements are "
144 "a forward and a backward pointer. The linked list may be linear (i.e., NULL "
145 "forward pointer at the end of the list and NULL backward pointer at the "
146 "start of the list) or circular."
147 msgstr ""
148 "Функции B<insque>() и B<remque>() предназначены для управления "
149 "двунаправленными списками (doubly-linked list). Каждый элемент такого списка "
150 "представляет собой структуру, у которой первые два элемента являются "
151 "указателями на следующий и предыдущий элементы. Двунаправленный список может "
152 "быть линейным (linear), т.е. у последнего элемента списка указатель на "
153 "следующий элемент равен NULL, а у первого элемента списка указатель на "
154 "предыдущий элемент равен NULL, или закольцованным (circular)."
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "The B<insque>() function inserts the element pointed to by I<elem> "
161 "immediately after the element pointed to by I<prev>."
162 msgstr ""
163 "Функция B<insque>() вставляет элемент, на который указывает I<elem>, сразу "
164 "за элементом, на который указывает I<prev>."
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "If the list is linear, then the call I<insque(elem, NULL)> can be used to "
171 "insert the initial list element, and the call sets the forward and backward "
172 "pointers of I<elem> to NULL."
173 msgstr ""
174 "Если список линейный, то вызов I<insque(elem, NULL)> можно использовать для "
175 "вставки первого элемента списка; в этом случае значение указателей I<elem> "
176 "на следующий и предыдущий элементы устанавливается в NULL."
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "If the list is circular, the caller should ensure that the forward and "
183 "backward pointers of the first element are initialized to point to that "
184 "element, and the I<prev> argument of the B<insque>() call should also point "
185 "to the element."
186 msgstr ""
187 "Если список закольцованный, то вызывающий должен убедиться, что указатели на "
188 "следующий и предыдущий элементы первого элемента указывают на сам элемент, и "
189 "аргумент I<prev> вызова B<insque>() также должен указывать на элемент."
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, fuzzy
195 #| msgid ""
196 #| "The B<remque>() function removes the element pointed to by I<elem> from "
197 #| "the doubly-linked list."
198 msgid ""
199 "The B<remque>() function removes the element pointed to by I<elem> from the "
200 "doubly linked list."
201 msgstr ""
202 "Функция B<remque>() удаляет элемент, на который указывает I<elem> из "
203 "двунаправленного списка."
204
205 #. type: SH
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "ATTRIBUTES"
210 msgstr "АТРИБУТЫ"
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "For an explanation of the terms used in this section, see B<attributes>(7)."
217 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
218
219 #. type: tbl table
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "Interface"
224 msgstr "Интерфейс"
225
226 #. type: tbl table
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "Attribute"
231 msgstr "Атрибут"
232
233 #. type: tbl table
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "Value"
238 msgstr "Значение"
239
240 #. type: tbl table
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid ".na\n"
245 msgstr ".na\n"
246
247 #. type: tbl table
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid ".nh\n"
252 msgstr ".nh\n"
253
254 #. type: tbl table
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid ""
259 "B<insque>(),\n"
260 "B<remque>()"
261 msgstr ""
262 "B<insque>(),\n"
263 "B<remque>()"
264
265 #. type: tbl table
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "Thread safety"
270 msgstr "Безвредность в нитях"
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "MT-Safe"
277 msgstr "MT-Safe"
278
279 #. type: SH
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "VERSIONS"
284 msgstr "ВЕРСИИ"
285
286 #. e.g., SunOS, Linux libc4 and libc5
287 #. type: Plain text
288 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
289 #: opensuse-tumbleweed
290 #, fuzzy
291 #| msgid ""
292 #| "On ancient systems, the arguments of these functions were of type "
293 #| "I<struct qelem *>, defined as:"
294 msgid ""
295 "On ancient systems, the arguments of these functions were of type I<struct\\ "
296 "qelem\\ *>, defined as:"
297 msgstr ""
298 "В старинных системах аргументы этих функций имеют тип I<struct qelem *>:"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid ""
305 "struct qelem {\n"
306 " struct qelem *q_forw;\n"
307 " struct qelem *q_back;\n"
308 " char q_data[1];\n"
309 "};\n"
310 msgstr ""
311 "struct qelem {\n"
312 " struct qelem *q_forw;\n"
313 " struct qelem *q_back;\n"
314 " char q_data[1];\n"
315 "};\n"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "This is still what you will get if B<_GNU_SOURCE> is defined before "
322 "including I<E<lt>search.hE<gt>>."
323 msgstr ""
324 "Эта структура всё ещё доступна, если определить B<_GNU_SOURCE> перед "
325 "включением I<E<lt>search.hE<gt>>."
326
327 #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
328 #. Linux libc4 and libc 5 placed them in
329 #. .IR <stdlib.h> .
330 #. type: Plain text
331 #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
332 #. Linux libc4 and libc 5 placed them
333 #. in \fI<stdlib.h>\fP.
334 #. type: Plain text
335 #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
336 #. Linux libc4 and libc 5 placed them in
337 #. .IR <stdlib.h> .
338 #. type: Plain text
339 #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
340 #. Linux libc4 and libc 5 placed them
341 #. in \fI<stdlib.h>\fP.
342 #. type: Plain text
343 #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
344 #. Linux libc4 and libc 5 placed them
345 #. in \fI<stdlib.h>\fP.
346 #. type: Plain text
347 #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
348 #. Linux libc4 and libc 5 placed them in
349 #. .IR <stdlib.h> .
350 #. type: Plain text
351 #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
352 #. Linux libc4 and libc 5 placed them in
353 #. .IR <stdlib.h> .
354 #. type: Plain text
355 #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
356 #. Linux libc4 and libc 5 placed them in
357 #. .IR <stdlib.h> .
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 "The location of the prototypes for these functions differs among several "
363 "versions of UNIX. The above is the POSIX version. Some systems place them "
364 "in I<E<lt>string.hE<gt>>."
365 msgstr ""
366 "Расположение прототипов этих функций отличается в разных версиях UNIX. "
367 "Показанное выше — вариант POSIX. В некоторых системах они расположены в "
368 "I<E<lt>string.hE<gt>>."
369
370 #. type: SH
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "STANDARDS"
375 msgstr "СТАНДАРТЫ"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "POSIX.1-2008."
381 msgstr "POSIX.1-2008."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "HISTORY"
388 msgstr "ИСТОРИЯ"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "POSIX.1-2001."
394 msgstr "POSIX.1-2001."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "BUGS"
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 "In glibc 2.4 and earlier, it was not possible to specify I<prev> as NULL. "
408 "Consequently, to build a linear list, the caller had to build a list using "
409 "an initial call that contained the first two elements of the list, with the "
410 "forward and backward pointers in each element suitably initialized."
411 msgstr ""
412 "В glibc 2.4 и старее нельзя было указать I<prev> равным NULL. В результате, "
413 "чтобы создать линейный список, вызывающий должен был указывать в первом "
414 "вызове первые два элемента списка, в которых указатели на следующий и "
415 "предыдущий элементы были заполнены правильным образом."
416
417 #. type: SH
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "EXAMPLES"
422 msgstr "ПРИМЕРЫ"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "The program below demonstrates the use of B<insque>(). Here is an example "
429 "run of the program:"
430 msgstr ""
431 "Представленная ниже программа показывает использование B<insque>(). Пример "
432 "работы программы:"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid ""
439 "$ B<./a.out -c a b c>\n"
440 "Traversing completed list:\n"
441 " a\n"
442 " b\n"
443 " c\n"
444 "That was a circular list\n"
445 msgstr ""
446 "$ B<./a.out -c a b c>\n"
447 "Обходим весь список:\n"
448 " a\n"
449 " b\n"
450 " c\n"
451 "Это закольцованный список\n"
452
453 #. type: SS
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "Program source"
458 msgstr "Исходный код программы"
459
460 #. type: Plain text
461 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
462 #: opensuse-tumbleweed
463 #, no-wrap
464 msgid ""
465 "#include E<lt>search.hE<gt>\n"
466 "#include E<lt>stdio.hE<gt>\n"
467 "#include E<lt>stdlib.hE<gt>\n"
468 "#include E<lt>unistd.hE<gt>\n"
469 "\\&\n"
470 "struct element {\n"
471 " struct element *forward;\n"
472 " struct element *backward;\n"
473 " char *name;\n"
474 "};\n"
475 "\\&\n"
476 "static struct element *\n"
477 "new_element(void)\n"
478 "{\n"
479 " struct element *e;\n"
480 "\\&\n"
481 " e = malloc(sizeof(*e));\n"
482 " if (e == NULL) {\n"
483 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
484 " exit(EXIT_FAILURE);\n"
485 " }\n"
486 "\\&\n"
487 " return e;\n"
488 "}\n"
489 "\\&\n"
490 "int\n"
491 "main(int argc, char *argv[])\n"
492 "{\n"
493 " struct element *first, *elem, *prev;\n"
494 " int circular, opt, errfnd;\n"
495 "\\&\n"
496 " /* The \"-c\" command-line option can be used to specify that the\n"
497 " list is circular. */\n"
498 "\\&\n"
499 " errfnd = 0;\n"
500 " circular = 0;\n"
501 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
502 " switch (opt) {\n"
503 " case \\[aq]c\\[aq]:\n"
504 " circular = 1;\n"
505 " break;\n"
506 " default:\n"
507 " errfnd = 1;\n"
508 " break;\n"
509 " }\n"
510 " }\n"
511 "\\&\n"
512 " if (errfnd || optind E<gt>= argc) {\n"
513 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
514 " exit(EXIT_FAILURE);\n"
515 " }\n"
516 "\\&\n"
517 " /* Create first element and place it in the linked list. */\n"
518 "\\&\n"
519 " elem = new_element();\n"
520 " first = elem;\n"
521 "\\&\n"
522 " elem-E<gt>name = argv[optind];\n"
523 "\\&\n"
524 " if (circular) {\n"
525 " elem-E<gt>forward = elem;\n"
526 " elem-E<gt>backward = elem;\n"
527 " insque(elem, elem);\n"
528 " } else {\n"
529 " insque(elem, NULL);\n"
530 " }\n"
531 "\\&\n"
532 " /* Add remaining command-line arguments as list elements. */\n"
533 "\\&\n"
534 " while (++optind E<lt> argc) {\n"
535 " prev = elem;\n"
536 "\\&\n"
537 " elem = new_element();\n"
538 " elem-E<gt>name = argv[optind];\n"
539 " insque(elem, prev);\n"
540 " }\n"
541 "\\&\n"
542 " /* Traverse the list from the start, printing element names. */\n"
543 "\\&\n"
544 " printf(\"Traversing completed list:\\[rs]n\");\n"
545 " elem = first;\n"
546 " do {\n"
547 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
548 " elem = elem-E<gt>forward;\n"
549 " } while (elem != NULL && elem != first);\n"
550 "\\&\n"
551 " if (elem == first)\n"
552 " printf(\"That was a circular list\\[rs]n\");\n"
553 "\\&\n"
554 " exit(EXIT_SUCCESS);\n"
555 "}\n"
556 msgstr ""
557
558 #. SRC END
559 #. type: SH
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "SEE ALSO"
564 msgstr "СМОТРИТЕ ТАКЖЕ"
565
566 #. type: Plain text
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, fuzzy
570 #| msgid "B<queue>(3)"
571 msgid "B<queue>(7)"
572 msgstr "B<queue>(3)"
573
574 #. type: TH
575 #: debian-trixie
576 #, no-wrap
577 msgid "2024-06-15"
578 msgstr "15 июня 2024 г."
579
580 #. type: TH
581 #: debian-trixie
582 #, no-wrap
583 msgid "Linux man-pages 6.9.1"
584 msgstr "Страницы руководства Linux 6.9.1"
585
586 #. type: Plain text
587 #: debian-trixie
588 msgid "Standard C library (I<libc>, I<-lc>)"
589 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
590
591 #. e.g., SunOS, Linux libc4 and libc5
592 #. type: Plain text
593 #: debian-trixie fedora-44 fedora-rawhide
594 msgid ""
595 "On ancient systems, the arguments of these functions were of type I<struct "
596 "qelem *>, defined as:"
597 msgstr ""
598 "В старинных системах аргументы этих функций имеют тип I<struct qelem *>:"
599
600 #. type: Plain text
601 #: debian-trixie fedora-44 fedora-rawhide
602 #, no-wrap
603 msgid ""
604 "#include E<lt>search.hE<gt>\n"
605 "#include E<lt>stdio.hE<gt>\n"
606 "#include E<lt>stdlib.hE<gt>\n"
607 "#include E<lt>unistd.hE<gt>\n"
608 "\\&\n"
609 "struct element {\n"
610 " struct element *forward;\n"
611 " struct element *backward;\n"
612 " char *name;\n"
613 "};\n"
614 "\\&\n"
615 "static struct element *\n"
616 "new_element(void)\n"
617 "{\n"
618 " struct element *e;\n"
619 "\\&\n"
620 " e = malloc(sizeof(*e));\n"
621 " if (e == NULL) {\n"
622 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
623 " exit(EXIT_FAILURE);\n"
624 " }\n"
625 "\\&\n"
626 " return e;\n"
627 "}\n"
628 "\\&\n"
629 "int\n"
630 "main(int argc, char *argv[])\n"
631 "{\n"
632 " struct element *first, *elem, *prev;\n"
633 " int circular, opt, errfnd;\n"
634 "\\&\n"
635 " /* The \"-c\" command-line option can be used to specify that the\n"
636 " list is circular. */\n"
637 "\\&\n"
638 " errfnd = 0;\n"
639 " circular = 0;\n"
640 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
641 " switch (opt) {\n"
642 " case \\[aq]c\\[aq]:\n"
643 " circular = 1;\n"
644 " break;\n"
645 " default:\n"
646 " errfnd = 1;\n"
647 " break;\n"
648 " }\n"
649 " }\n"
650 "\\&\n"
651 " if (errfnd || optind E<gt>= argc) {\n"
652 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
653 " exit(EXIT_FAILURE);\n"
654 " }\n"
655 "\\&\n"
656 " /* Create first element and place it in the linked list. */\n"
657 "\\&\n"
658 " elem = new_element();\n"
659 " first = elem;\n"
660 "\\&\n"
661 " elem-E<gt>name = argv[optind];\n"
662 "\\&\n"
663 " if (circular) {\n"
664 " elem-E<gt>forward = elem;\n"
665 " elem-E<gt>backward = elem;\n"
666 " insque(elem, elem);\n"
667 " } else {\n"
668 " insque(elem, NULL);\n"
669 " }\n"
670 "\\&\n"
671 " /* Add remaining command-line arguments as list elements. */\n"
672 "\\&\n"
673 " while (++optind E<lt> argc) {\n"
674 " prev = elem;\n"
675 "\\&\n"
676 " elem = new_element();\n"
677 " elem-E<gt>name = argv[optind];\n"
678 " insque(elem, prev);\n"
679 " }\n"
680 "\\&\n"
681 " /* Traverse the list from the start, printing element names. */\n"
682 "\\&\n"
683 " printf(\"Traversing completed list:\\[rs]n\");\n"
684 " elem = first;\n"
685 " do {\n"
686 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
687 " elem = elem-E<gt>forward;\n"
688 " } while (elem != NULL && elem != first);\n"
689 "\\&\n"
690 " if (elem == first)\n"
691 " printf(\"That was a circular list\\[rs]n\");\n"
692 "\\&\n"
693 " exit(EXIT_SUCCESS);\n"
694 "}\n"
695 msgstr ""
696
697 #. type: TH
698 #: fedora-44 fedora-rawhide
699 #, no-wrap
700 msgid "2024-07-23"
701 msgstr "23 июля 2024 г."
702
703 #. type: TH
704 #: fedora-44 fedora-rawhide
705 #, no-wrap
706 msgid "Linux man-pages 6.13"
707 msgstr "Страницы руководства Linux 6.13"
708
709 #. type: TH
710 #: mageia-cauldron
711 #, no-wrap
712 msgid "Linux man-pages 6.17"
713 msgstr "Страницы руководства Linux 6.17"
714
715 #. type: TH
716 #: opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid "Linux man-pages (unreleased)"
719 msgstr "Страницы руководства Linux (не выпущены)"