Debian Codegraph @

po/pt_BR/man3/insque.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "insque"
26 msgstr ""
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "insque, remque - insert/remove an item from a queue"
53 msgstr "insque, remque - insere/remove um item de uma fila"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>search.hE<gt>>\n"
80 msgstr "B<#include E<lt>search.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
87 msgid ""
88 "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
89 "B<void remque(void *>I<elem>B<);>\n"
90 msgstr "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
97 msgstr ""
98 "Requisitos de macro de teste de recursos para o glibc (consulte "
99 "B<feature_test_macros>(7)):"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid "B<insque>(), B<remque>():"
105 msgstr "B<insque>(), B<remque>():"
106
107 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, fuzzy, no-wrap
112 #| msgid ""
113 #| "_XOPEN_SOURCE\\ E<gt>=\\ 500\n"
114 #| " || /* Glibc since 2.19: */ _DEFAULT_SOURCE\n"
115 #| " || /* Glibc versions E<lt>= 2.19: */ _SVID_SOURCE\n"
116 msgid ""
117 " _XOPEN_SOURCE E<gt>= 500\n"
118 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
119 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
120 msgstr ""
121 "_XOPEN_SOURCE\\ E<gt>=\\ 500\n"
122 " || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE\n"
123 " || /* Glibc versões E<lt>= 2.19: */ _SVID_SOURCE\n"
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "DESCRIPTION"
130 msgstr "DESCRIÇÃO"
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 msgid ""
136 "The B<insque>() and B<remque>() functions manipulate doubly linked lists. "
137 "Each element in the list is a structure of which the first two elements are "
138 "a forward and a backward pointer. The linked list may be linear (i.e., NULL "
139 "forward pointer at the end of the list and NULL backward pointer at the "
140 "start of the list) or circular."
141 msgstr ""
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, fuzzy
147 #| msgid ""
148 #| "B<insque()> inserts the element pointed to by I<elem> immediately after "
149 #| "the element pointed to by I<prev>, which must B< NOT> be NULL."
150 msgid ""
151 "The B<insque>() function inserts the element pointed to by I<elem> "
152 "immediately after the element pointed to by I<prev>."
153 msgstr ""
154 "B<insque()> insere o elemento apontado por I<elem> imediatamente depois do "
155 "elemento apontado por I<ant>, o qual B<NÃO> deve ser NULO."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "If the list is linear, then the call I<insque(elem, NULL)> can be used to "
162 "insert the initial list element, and the call sets the forward and backward "
163 "pointers of I<elem> to NULL."
164 msgstr ""
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 circular, the caller should ensure that the forward and "
171 "backward pointers of the first element are initialized to point to that "
172 "element, and the I<prev> argument of the B<insque>() call should also point "
173 "to the element."
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, fuzzy
180 #| msgid ""
181 #| "B<remque()> removes the element pointed to by I<elem> from the doubly-"
182 #| "linked list."
183 msgid ""
184 "The B<remque>() function removes the element pointed to by I<elem> from the "
185 "doubly linked list."
186 msgstr ""
187 "B<remque()> remove o elemento apontado por I<elem> da lista duplamente "
188 "encadeada."
189
190 #. type: SH
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "ATTRIBUTES"
195 msgstr "ATRIBUTOS"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
202 msgstr ""
203 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
204
205 #. type: tbl table
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "Interface"
210 msgstr "Interface"
211
212 #. type: tbl table
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "Attribute"
217 msgstr "Atributo"
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 "Value"
224 msgstr "Valor"
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 ".na\n"
231 msgstr ".na\n"
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 ".nh\n"
238 msgstr ".nh\n"
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 ""
245 "B<insque>(),\n"
246 "B<remque>()"
247 msgstr ""
248 "B<insque>(),\n"
249 "B<remque>()"
250
251 #. type: tbl table
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "Thread safety"
256 msgstr "Thread safety"
257
258 #. type: tbl table
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "MT-Safe"
263 msgstr "MT-Safe"
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "VERSIONS"
270 msgstr "VERSÕES"
271
272 #. e.g., SunOS, Linux libc4 and libc5
273 #. type: Plain text
274 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
275 #: opensuse-tumbleweed
276 msgid ""
277 "On ancient systems, the arguments of these functions were of type I<struct\\ "
278 "qelem\\ *>, defined as:"
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 #, no-wrap
285 msgid ""
286 "struct qelem {\n"
287 " struct qelem *q_forw;\n"
288 " struct qelem *q_back;\n"
289 " char q_data[1];\n"
290 "};\n"
291 msgstr ""
292 "struct qelem {\n"
293 " struct qelem *q_forw;\n"
294 " struct qelem *q_back;\n"
295 " char q_data[1];\n"
296 "};\n"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "This is still what you will get if B<_GNU_SOURCE> is defined before "
303 "including I<E<lt>search.hE<gt>>."
304 msgstr ""
305
306 #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
307 #. Linux libc4 and libc 5 placed them in
308 #. .IR <stdlib.h> .
309 #. type: Plain text
310 #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
311 #. Linux libc4 and libc 5 placed them
312 #. in \fI<stdlib.h>\fP.
313 #. type: Plain text
314 #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
315 #. Linux libc4 and libc 5 placed them in
316 #. .IR <stdlib.h> .
317 #. type: Plain text
318 #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
319 #. Linux libc4 and libc 5 placed them
320 #. in \fI<stdlib.h>\fP.
321 #. type: Plain text
322 #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
323 #. Linux libc4 and libc 5 placed them
324 #. in \fI<stdlib.h>\fP.
325 #. type: Plain text
326 #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
327 #. Linux libc4 and libc 5 placed them in
328 #. .IR <stdlib.h> .
329 #. type: Plain text
330 #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
331 #. Linux libc4 and libc 5 placed them in
332 #. .IR <stdlib.h> .
333 #. type: Plain text
334 #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
335 #. Linux libc4 and libc 5 placed them in
336 #. .IR <stdlib.h> .
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, fuzzy
341 #| msgid ""
342 #| "The location of the prototypes for these functions differ among several "
343 #| "versions of UNIX. Some systems place them in E<lt>search.hE<gt>, others "
344 #| "in E<lt>string.hE<gt>. Linux places them in E<lt>stdlib.hE<gt> since "
345 #| "that seems to make the most sense."
346 msgid ""
347 "The location of the prototypes for these functions differs among several "
348 "versions of UNIX. The above is the POSIX version. Some systems place them "
349 "in I<E<lt>string.hE<gt>>."
350 msgstr ""
351 "A localização dos protótipos para estas funções difere entre várias versões "
352 "de UNIX. Alguns sistemas colocam-nos em E<lt>search.hE<gt>; outros, em "
353 "E<lt>string.hE<gt>. O Linux os coloca em E<lt>stdlib.hE<gt> já que isso "
354 "parece fazer mais sentido."
355
356 #. type: SH
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "STANDARDS"
361 msgstr "PADRÕES"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "POSIX.1-2008."
367 msgstr "POSIX.1-2008."
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "HISTORY"
374 msgstr "HISTÓRICO"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "POSIX.1-2001."
380 msgstr "POSIX.1-2001."
381
382 #. type: SH
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "BUGS"
387 msgstr "BUGS"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "In glibc 2.4 and earlier, it was not possible to specify I<prev> as NULL. "
394 "Consequently, to build a linear list, the caller had to build a list using "
395 "an initial call that contained the first two elements of the list, with the "
396 "forward and backward pointers in each element suitably initialized."
397 msgstr ""
398
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "EXAMPLES"
404 msgstr "EXEMPLOS"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "The program below demonstrates the use of B<insque>(). Here is an example "
411 "run of the program:"
412 msgstr ""
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid ""
419 "$ B<./a.out -c a b c>\n"
420 "Traversing completed list:\n"
421 " a\n"
422 " b\n"
423 " c\n"
424 "That was a circular list\n"
425 msgstr ""
426
427 #. type: SS
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "Program source"
432 msgstr "Fonte do programa"
433
434 #. type: Plain text
435 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
436 #: opensuse-tumbleweed
437 #, no-wrap
438 msgid ""
439 "#include E<lt>search.hE<gt>\n"
440 "#include E<lt>stdio.hE<gt>\n"
441 "#include E<lt>stdlib.hE<gt>\n"
442 "#include E<lt>unistd.hE<gt>\n"
443 "\\&\n"
444 "struct element {\n"
445 " struct element *forward;\n"
446 " struct element *backward;\n"
447 " char *name;\n"
448 "};\n"
449 "\\&\n"
450 "static struct element *\n"
451 "new_element(void)\n"
452 "{\n"
453 " struct element *e;\n"
454 "\\&\n"
455 " e = malloc(sizeof(*e));\n"
456 " if (e == NULL) {\n"
457 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
458 " exit(EXIT_FAILURE);\n"
459 " }\n"
460 "\\&\n"
461 " return e;\n"
462 "}\n"
463 "\\&\n"
464 "int\n"
465 "main(int argc, char *argv[])\n"
466 "{\n"
467 " struct element *first, *elem, *prev;\n"
468 " int circular, opt, errfnd;\n"
469 "\\&\n"
470 " /* The \"-c\" command-line option can be used to specify that the\n"
471 " list is circular. */\n"
472 "\\&\n"
473 " errfnd = 0;\n"
474 " circular = 0;\n"
475 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
476 " switch (opt) {\n"
477 " case \\[aq]c\\[aq]:\n"
478 " circular = 1;\n"
479 " break;\n"
480 " default:\n"
481 " errfnd = 1;\n"
482 " break;\n"
483 " }\n"
484 " }\n"
485 "\\&\n"
486 " if (errfnd || optind E<gt>= argc) {\n"
487 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
488 " exit(EXIT_FAILURE);\n"
489 " }\n"
490 "\\&\n"
491 " /* Create first element and place it in the linked list. */\n"
492 "\\&\n"
493 " elem = new_element();\n"
494 " first = elem;\n"
495 "\\&\n"
496 " elem-E<gt>name = argv[optind];\n"
497 "\\&\n"
498 " if (circular) {\n"
499 " elem-E<gt>forward = elem;\n"
500 " elem-E<gt>backward = elem;\n"
501 " insque(elem, elem);\n"
502 " } else {\n"
503 " insque(elem, NULL);\n"
504 " }\n"
505 "\\&\n"
506 " /* Add remaining command-line arguments as list elements. */\n"
507 "\\&\n"
508 " while (++optind E<lt> argc) {\n"
509 " prev = elem;\n"
510 "\\&\n"
511 " elem = new_element();\n"
512 " elem-E<gt>name = argv[optind];\n"
513 " insque(elem, prev);\n"
514 " }\n"
515 "\\&\n"
516 " /* Traverse the list from the start, printing element names. */\n"
517 "\\&\n"
518 " printf(\"Traversing completed list:\\[rs]n\");\n"
519 " elem = first;\n"
520 " do {\n"
521 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
522 " elem = elem-E<gt>forward;\n"
523 " } while (elem != NULL && elem != first);\n"
524 "\\&\n"
525 " if (elem == first)\n"
526 " printf(\"That was a circular list\\[rs]n\");\n"
527 "\\&\n"
528 " exit(EXIT_SUCCESS);\n"
529 "}\n"
530 msgstr ""
531
532 #. SRC END
533 #. type: SH
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "SEE ALSO"
538 msgstr "VEJA TAMBÉM"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, fuzzy
544 #| msgid "B<queue>(3)"
545 msgid "B<queue>(7)"
546 msgstr "B<queue>(3)"
547
548 #. type: TH
549 #: debian-trixie
550 #, no-wrap
551 msgid "2024-06-15"
552 msgstr "15 junho 2024"
553
554 #. type: TH
555 #: debian-trixie
556 #, no-wrap
557 msgid "Linux man-pages 6.9.1"
558 msgstr "Linux man-pages 6.9.1"
559
560 #. type: Plain text
561 #: debian-trixie
562 msgid "Standard C library (I<libc>, I<-lc>)"
563 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
564
565 #. e.g., SunOS, Linux libc4 and libc5
566 #. type: Plain text
567 #: debian-trixie fedora-44 fedora-rawhide
568 msgid ""
569 "On ancient systems, the arguments of these functions were of type I<struct "
570 "qelem *>, defined as:"
571 msgstr ""
572
573 #. type: Plain text
574 #: debian-trixie fedora-44 fedora-rawhide
575 #, no-wrap
576 msgid ""
577 "#include E<lt>search.hE<gt>\n"
578 "#include E<lt>stdio.hE<gt>\n"
579 "#include E<lt>stdlib.hE<gt>\n"
580 "#include E<lt>unistd.hE<gt>\n"
581 "\\&\n"
582 "struct element {\n"
583 " struct element *forward;\n"
584 " struct element *backward;\n"
585 " char *name;\n"
586 "};\n"
587 "\\&\n"
588 "static struct element *\n"
589 "new_element(void)\n"
590 "{\n"
591 " struct element *e;\n"
592 "\\&\n"
593 " e = malloc(sizeof(*e));\n"
594 " if (e == NULL) {\n"
595 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
596 " exit(EXIT_FAILURE);\n"
597 " }\n"
598 "\\&\n"
599 " return e;\n"
600 "}\n"
601 "\\&\n"
602 "int\n"
603 "main(int argc, char *argv[])\n"
604 "{\n"
605 " struct element *first, *elem, *prev;\n"
606 " int circular, opt, errfnd;\n"
607 "\\&\n"
608 " /* The \"-c\" command-line option can be used to specify that the\n"
609 " list is circular. */\n"
610 "\\&\n"
611 " errfnd = 0;\n"
612 " circular = 0;\n"
613 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
614 " switch (opt) {\n"
615 " case \\[aq]c\\[aq]:\n"
616 " circular = 1;\n"
617 " break;\n"
618 " default:\n"
619 " errfnd = 1;\n"
620 " break;\n"
621 " }\n"
622 " }\n"
623 "\\&\n"
624 " if (errfnd || optind E<gt>= argc) {\n"
625 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
626 " exit(EXIT_FAILURE);\n"
627 " }\n"
628 "\\&\n"
629 " /* Create first element and place it in the linked list. */\n"
630 "\\&\n"
631 " elem = new_element();\n"
632 " first = elem;\n"
633 "\\&\n"
634 " elem-E<gt>name = argv[optind];\n"
635 "\\&\n"
636 " if (circular) {\n"
637 " elem-E<gt>forward = elem;\n"
638 " elem-E<gt>backward = elem;\n"
639 " insque(elem, elem);\n"
640 " } else {\n"
641 " insque(elem, NULL);\n"
642 " }\n"
643 "\\&\n"
644 " /* Add remaining command-line arguments as list elements. */\n"
645 "\\&\n"
646 " while (++optind E<lt> argc) {\n"
647 " prev = elem;\n"
648 "\\&\n"
649 " elem = new_element();\n"
650 " elem-E<gt>name = argv[optind];\n"
651 " insque(elem, prev);\n"
652 " }\n"
653 "\\&\n"
654 " /* Traverse the list from the start, printing element names. */\n"
655 "\\&\n"
656 " printf(\"Traversing completed list:\\[rs]n\");\n"
657 " elem = first;\n"
658 " do {\n"
659 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
660 " elem = elem-E<gt>forward;\n"
661 " } while (elem != NULL && elem != first);\n"
662 "\\&\n"
663 " if (elem == first)\n"
664 " printf(\"That was a circular list\\[rs]n\");\n"
665 "\\&\n"
666 " exit(EXIT_SUCCESS);\n"
667 "}\n"
668 msgstr ""
669
670 #. type: TH
671 #: fedora-44 fedora-rawhide
672 #, no-wrap
673 msgid "2024-07-23"
674 msgstr "23 julho 2024"
675
676 #. type: TH
677 #: fedora-44 fedora-rawhide
678 #, no-wrap
679 msgid "Linux man-pages 6.13"
680 msgstr "Linux man-pages 6.13"
681
682 #. type: TH
683 #: mageia-cauldron
684 #, no-wrap
685 msgid "Linux man-pages 6.17"
686 msgstr "Linux man-pages 6.17"
687
688 #. type: TH
689 #: opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "Linux man-pages (unreleased)"
692 msgstr "Linux man-pages (não lançado)"