Debian Codegraph @

po/ro/man3/insque.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.26.2\n"
8 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
9 "PO-Revision-Date: 2025-11-05 18:43+0100\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.6\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "insque"
25 msgstr "insque"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "insque, remque - insert/remove an item from a queue"
51 msgstr "insque, remque - inserează/elimină un element dintr-o coadă"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "BIBLIOTECA"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
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 "SYNOPSIS"
71 msgstr "SINOPSIS"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>search.hE<gt>>\n"
78 msgstr "B<#include E<lt>search.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
86 "B<void remque(void *>I<elem>B<);>\n"
87 msgstr ""
88 "B<void insque(void *>I<elem>B<, void *>I<prev>B<);>\n"
89 "B<void remque(void *>I<elem>B<);>\n"
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 msgid ""
95 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
96 msgstr ""
97 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
98 "(consultați B<feature_test_macros>(7)):"
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 msgid "B<insque>(), B<remque>():"
104 msgstr "B<insque>(), B<remque>():"
105
106 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid ""
112 " _XOPEN_SOURCE E<gt>= 500\n"
113 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
114 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
115 msgstr ""
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
120 #. type: SH
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid "DESCRIPTION"
125 msgstr "DESCRIERE"
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "The B<insque>() and B<remque>() functions manipulate doubly linked lists. "
132 "Each element in the list is a structure of which the first two elements are "
133 "a forward and a backward pointer. The linked list may be linear (i.e., NULL "
134 "forward pointer at the end of the list and NULL backward pointer at the "
135 "start of the list) or circular."
136 msgstr ""
137 "Funcțiile B<insque>() și B<remque>() manipulează liste dublu legate. Fiecare "
138 "element din listă este o structură ale cărei prime două elemente sunt un "
139 "indicator înainte și un indicator înapoi. Lista legată poate fi liniară "
140 "(adică, indicator înainte NULL la sfârșitul listei și indicator înapoi NULL "
141 "la începutul listei) sau circulară."
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 msgid ""
147 "The B<insque>() function inserts the element pointed to by I<elem> "
148 "immediately after the element pointed to by I<prev>."
149 msgstr ""
150 "Funcția B<insque>() inserează elementul indicat de I<elem> imediat după "
151 "elementul indicat de I<prev>."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "If the list is linear, then the call I<insque(elem, NULL)> can be used to "
158 "insert the initial list element, and the call sets the forward and backward "
159 "pointers of I<elem> to NULL."
160 msgstr ""
161 "Dacă lista este liniară, atunci apelul I<insque(elem, NULL)> poate fi "
162 "utilizat pentru a introduce elementul inițial al listei, iar apelul "
163 "stabilește indicatorii înainte și înapoi ai lui I<elem> la NULL."
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "If the list is circular, the caller should ensure that the forward and "
170 "backward pointers of the first element are initialized to point to that "
171 "element, and the I<prev> argument of the B<insque>() call should also point "
172 "to the element."
173 msgstr ""
174 "Dacă lista este circulară, apelantul trebuie să se asigure că indicatorii "
175 "înainte și înapoi ai primului element sunt inițializați pentru a indica "
176 "elementul respectiv, iar argumentul I<prev> al apelului B<insque>() trebuie "
177 "să indice și el elementul."
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 ""
183 "The B<remque>() function removes the element pointed to by I<elem> from the "
184 "doubly linked list."
185 msgstr ""
186 "Funcția B<remque>() elimină elementul indicat de I<elem> din lista dublu "
187 "legată."
188
189 #. type: SH
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "ATTRIBUTES"
194 msgstr "ATRIBUTE"
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "For an explanation of the terms used in this section, see B<attributes>(7)."
201 msgstr ""
202 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
203 "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 "Interfață"
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 "Atribut"
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 "Valoare"
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 "Siguranța firelor"
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 "VERSIUNI"
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 "În sistemele vechi, argumentele acestor funcții erau de tipul I<struct\\ "
281 "qelem\\ *>, definite astfel:"
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 #, no-wrap
287 msgid ""
288 "struct qelem {\n"
289 " struct qelem *q_forw;\n"
290 " struct qelem *q_back;\n"
291 " char q_data[1];\n"
292 "};\n"
293 msgstr ""
294 "struct qelem {\n"
295 " struct qelem *q_forw;\n"
296 " struct qelem *q_back;\n"
297 " char q_data[1];\n"
298 "};\n"
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 msgid ""
304 "This is still what you will get if B<_GNU_SOURCE> is defined before "
305 "including I<E<lt>search.hE<gt>>."
306 msgstr ""
307 "Aceasta este ceea ce veți obține dacă B<_GNU_SOURCE> este definit înainte de "
308 "a include I<E<lt>search.hE<gt>>."
309
310 #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
311 #. Linux libc4 and libc 5 placed them in
312 #. .IR <stdlib.h> .
313 #. type: Plain text
314 #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
315 #. Linux libc4 and libc 5 placed them
316 #. in \fI<stdlib.h>\fP.
317 #. type: Plain text
318 #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
319 #. Linux libc4 and libc 5 placed them in
320 #. .IR <stdlib.h> .
321 #. type: Plain text
322 #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
323 #. Linux libc4 and libc 5 placed them
324 #. in \fI<stdlib.h>\fP.
325 #. type: Plain text
326 #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
327 #. Linux libc4 and libc 5 placed them
328 #. in \fI<stdlib.h>\fP.
329 #. type: Plain text
330 #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
331 #. Linux libc4 and libc 5 placed them in
332 #. .IR <stdlib.h> .
333 #. type: Plain text
334 #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
335 #. Linux libc4 and libc 5 placed them in
336 #. .IR <stdlib.h> .
337 #. type: Plain text
338 #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
339 #. Linux libc4 and libc 5 placed them in
340 #. .IR <stdlib.h> .
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "The location of the prototypes for these functions differs among several "
346 "versions of UNIX. The above is the POSIX version. Some systems place them "
347 "in I<E<lt>string.hE<gt>>."
348 msgstr ""
349 "Locația prototipurilor pentru aceste funcții diferă între mai multe versiuni "
350 "ale UNIX. Cea de mai sus este versiunea POSIX. Unele sisteme le plasează în "
351 "I<E<lt>string.hE<gt>>."
352
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "STANDARDS"
358 msgstr "STANDARDE"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "POSIX.1-2008."
364 msgstr "POSIX.1-2008."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "HISTORY"
371 msgstr "ISTORIC"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid "POSIX.1-2001."
377 msgstr "POSIX.1-2001."
378
379 #. type: SH
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "BUGS"
384 msgstr "ERORI"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid ""
390 "In glibc 2.4 and earlier, it was not possible to specify I<prev> as NULL. "
391 "Consequently, to build a linear list, the caller had to build a list using "
392 "an initial call that contained the first two elements of the list, with the "
393 "forward and backward pointers in each element suitably initialized."
394 msgstr ""
395 "În glibc 2.4 și anterior, nu era posibil să se specifice I<prev> ca NULL. În "
396 "consecință, pentru a construi o listă liniară, apelantul trebuia să "
397 "construiască o listă utilizând un apel inițial care conținea primele două "
398 "elemente ale listei, cu indicatorii înainte și înapoi din fiecare element "
399 "inițializați corespunzător."
400
401 #. type: SH
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "EXAMPLES"
406 msgstr "EXEMPLE"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "The program below demonstrates the use of B<insque>(). Here is an example "
413 "run of the program:"
414 msgstr ""
415 "Programul de mai jos demonstrează utilizarea lui B<insque>(). Iată un "
416 "exemplu de execuție a programului:"
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid ""
423 "$ B<./a.out -c a b c>\n"
424 "Traversing completed list:\n"
425 " a\n"
426 " b\n"
427 " c\n"
428 "That was a circular list\n"
429 msgstr ""
430 "$ B<./a.out -c a b c>\n"
431 "Parcurgerea listei completate:\n"
432 " a\n"
433 " b\n"
434 " c\n"
435 "Aceasta a fost o listă circulară\n"
436
437 #. type: SS
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "Program source"
442 msgstr "Sursa programului"
443
444 #. type: Plain text
445 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
446 #: opensuse-tumbleweed
447 #, no-wrap
448 msgid ""
449 "#include E<lt>search.hE<gt>\n"
450 "#include E<lt>stdio.hE<gt>\n"
451 "#include E<lt>stdlib.hE<gt>\n"
452 "#include E<lt>unistd.hE<gt>\n"
453 "\\&\n"
454 "struct element {\n"
455 " struct element *forward;\n"
456 " struct element *backward;\n"
457 " char *name;\n"
458 "};\n"
459 "\\&\n"
460 "static struct element *\n"
461 "new_element(void)\n"
462 "{\n"
463 " struct element *e;\n"
464 "\\&\n"
465 " e = malloc(sizeof(*e));\n"
466 " if (e == NULL) {\n"
467 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
468 " exit(EXIT_FAILURE);\n"
469 " }\n"
470 "\\&\n"
471 " return e;\n"
472 "}\n"
473 "\\&\n"
474 "int\n"
475 "main(int argc, char *argv[])\n"
476 "{\n"
477 " struct element *first, *elem, *prev;\n"
478 " int circular, opt, errfnd;\n"
479 "\\&\n"
480 " /* The \"-c\" command-line option can be used to specify that the\n"
481 " list is circular. */\n"
482 "\\&\n"
483 " errfnd = 0;\n"
484 " circular = 0;\n"
485 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
486 " switch (opt) {\n"
487 " case \\[aq]c\\[aq]:\n"
488 " circular = 1;\n"
489 " break;\n"
490 " default:\n"
491 " errfnd = 1;\n"
492 " break;\n"
493 " }\n"
494 " }\n"
495 "\\&\n"
496 " if (errfnd || optind E<gt>= argc) {\n"
497 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
498 " exit(EXIT_FAILURE);\n"
499 " }\n"
500 "\\&\n"
501 " /* Create first element and place it in the linked list. */\n"
502 "\\&\n"
503 " elem = new_element();\n"
504 " first = elem;\n"
505 "\\&\n"
506 " elem-E<gt>name = argv[optind];\n"
507 "\\&\n"
508 " if (circular) {\n"
509 " elem-E<gt>forward = elem;\n"
510 " elem-E<gt>backward = elem;\n"
511 " insque(elem, elem);\n"
512 " } else {\n"
513 " insque(elem, NULL);\n"
514 " }\n"
515 "\\&\n"
516 " /* Add remaining command-line arguments as list elements. */\n"
517 "\\&\n"
518 " while (++optind E<lt> argc) {\n"
519 " prev = elem;\n"
520 "\\&\n"
521 " elem = new_element();\n"
522 " elem-E<gt>name = argv[optind];\n"
523 " insque(elem, prev);\n"
524 " }\n"
525 "\\&\n"
526 " /* Traverse the list from the start, printing element names. */\n"
527 "\\&\n"
528 " printf(\"Traversing completed list:\\[rs]n\");\n"
529 " elem = first;\n"
530 " do {\n"
531 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
532 " elem = elem-E<gt>forward;\n"
533 " } while (elem != NULL && elem != first);\n"
534 "\\&\n"
535 " if (elem == first)\n"
536 " printf(\"That was a circular list\\[rs]n\");\n"
537 "\\&\n"
538 " exit(EXIT_SUCCESS);\n"
539 "}\n"
540 msgstr ""
541 "#include E<lt>search.hE<gt>\n"
542 "#include E<lt>stdio.hE<gt>\n"
543 "#include E<lt>stdlib.hE<gt>\n"
544 "#include E<lt>unistd.hE<gt>\n"
545 "\\&\n"
546 "struct element {\n"
547 " struct element *forward;\n"
548 " struct element *backward;\n"
549 " char *name;\n"
550 "};\n"
551 "\\&\n"
552 "static struct element *\n"
553 "new_element(void)\n"
554 "{\n"
555 " struct element *e;\n"
556 "\\&\n"
557 " e = malloc(sizeof(*e));\n"
558 " if (e == NULL) {\n"
559 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
560 " exit(EXIT_FAILURE);\n"
561 " }\n"
562 "\\&\n"
563 " return e;\n"
564 "}\n"
565 "\\&\n"
566 "int\n"
567 "main(int argc, char *argv[])\n"
568 "{\n"
569 " struct element *first, *elem, *prev;\n"
570 " int circular, opt, errfnd;\n"
571 "\\&\n"
572 " /* Opțiunea de linie de comandă „-c” poate fi utilizată\n"
573 " pentru a specifica faptul că lista este circulară. */\n"
574 "\\&\n"
575 " errfnd = 0;\n"
576 " circular = 0;\n"
577 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
578 " switch (opt) {\n"
579 " case \\[aq]c\\[aq]:\n"
580 " circular = 1;\n"
581 " break;\n"
582 " default:\n"
583 " errfnd = 1;\n"
584 " break;\n"
585 " }\n"
586 " }\n"
587 "\\&\n"
588 " if (errfnd || optind E<gt>= argc) {\n"
589 " fprintf(stderr, \"Utilizare: %s [-c] șir...\\[rs]n\", argv[0]);\n"
590 " exit(EXIT_FAILURE);\n"
591 " }\n"
592 "\\&\n"
593 " /* Creați primul element și plasați-l în lista legată. */\n"
594 "\\&\n"
595 " elem = new_element();\n"
596 " first = elem;\n"
597 "\\&\n"
598 " elem-E<gt>name = argv[optind];\n"
599 "\\&\n"
600 " if (circular) {\n"
601 " elem-E<gt>forward = elem;\n"
602 " elem-E<gt>backward = elem;\n"
603 " insque(elem, elem);\n"
604 " } else {\n"
605 " insque(elem, NULL);\n"
606 " }\n"
607 "\\&\n"
608 " /* Adaugă argumentele de linie de comandă rămase ca elemente de listă. */\n"
609 "\\&\n"
610 " while (++optind E<lt> argc) {\n"
611 " prev = elem;\n"
612 "\\&\n"
613 " elem = new_element();\n"
614 " elem-E<gt>name = argv[optind];\n"
615 " insque(elem, prev);\n"
616 " }\n"
617 "\\&\n"
618 " /* Parcurge lista de la început, imprimând numele elementelor. */\n"
619 "\\&\n"
620 " printf(\"Parcurgerea listei completate::\\[rs]n\");\n"
621 " elem = first;\n"
622 " do {\n"
623 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
624 " elem = elem-E<gt>forward;\n"
625 " } while (elem != NULL && elem != first);\n"
626 "\\&\n"
627 " if (elem == first)\n"
628 " printf(\"Aceasta a fost o listă circulară\\[rs]n\");\n"
629 "\\&\n"
630 " exit(EXIT_SUCCESS);\n"
631 "}\n"
632
633 #. SRC END
634 #. type: SH
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "SEE ALSO"
639 msgstr "CONSULTAȚI ȘI"
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid "B<queue>(7)"
645 msgstr "B<queue>(7)"
646
647 #. type: TH
648 #: debian-trixie
649 #, no-wrap
650 msgid "2024-06-15"
651 msgstr "15 iunie 2024"
652
653 #. type: TH
654 #: debian-trixie
655 #, no-wrap
656 msgid "Linux man-pages 6.9.1"
657 msgstr "Pagini de manual de Linux 6.9.1"
658
659 #. type: Plain text
660 #: debian-trixie
661 msgid "Standard C library (I<libc>, I<-lc>)"
662 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
663
664 #. e.g., SunOS, Linux libc4 and libc5
665 #. type: Plain text
666 #: debian-trixie fedora-44 fedora-rawhide
667 msgid ""
668 "On ancient systems, the arguments of these functions were of type I<struct "
669 "qelem *>, defined as:"
670 msgstr ""
671 "În sistemele vechi, argumentele acestor funcții erau de tipul I<struct qelem "
672 "*>, definite astfel:"
673
674 #. type: Plain text
675 #: debian-trixie fedora-44 fedora-rawhide
676 #, no-wrap
677 msgid ""
678 "#include E<lt>search.hE<gt>\n"
679 "#include E<lt>stdio.hE<gt>\n"
680 "#include E<lt>stdlib.hE<gt>\n"
681 "#include E<lt>unistd.hE<gt>\n"
682 "\\&\n"
683 "struct element {\n"
684 " struct element *forward;\n"
685 " struct element *backward;\n"
686 " char *name;\n"
687 "};\n"
688 "\\&\n"
689 "static struct element *\n"
690 "new_element(void)\n"
691 "{\n"
692 " struct element *e;\n"
693 "\\&\n"
694 " e = malloc(sizeof(*e));\n"
695 " if (e == NULL) {\n"
696 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
697 " exit(EXIT_FAILURE);\n"
698 " }\n"
699 "\\&\n"
700 " return e;\n"
701 "}\n"
702 "\\&\n"
703 "int\n"
704 "main(int argc, char *argv[])\n"
705 "{\n"
706 " struct element *first, *elem, *prev;\n"
707 " int circular, opt, errfnd;\n"
708 "\\&\n"
709 " /* The \"-c\" command-line option can be used to specify that the\n"
710 " list is circular. */\n"
711 "\\&\n"
712 " errfnd = 0;\n"
713 " circular = 0;\n"
714 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
715 " switch (opt) {\n"
716 " case \\[aq]c\\[aq]:\n"
717 " circular = 1;\n"
718 " break;\n"
719 " default:\n"
720 " errfnd = 1;\n"
721 " break;\n"
722 " }\n"
723 " }\n"
724 "\\&\n"
725 " if (errfnd || optind E<gt>= argc) {\n"
726 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
727 " exit(EXIT_FAILURE);\n"
728 " }\n"
729 "\\&\n"
730 " /* Create first element and place it in the linked list. */\n"
731 "\\&\n"
732 " elem = new_element();\n"
733 " first = elem;\n"
734 "\\&\n"
735 " elem-E<gt>name = argv[optind];\n"
736 "\\&\n"
737 " if (circular) {\n"
738 " elem-E<gt>forward = elem;\n"
739 " elem-E<gt>backward = elem;\n"
740 " insque(elem, elem);\n"
741 " } else {\n"
742 " insque(elem, NULL);\n"
743 " }\n"
744 "\\&\n"
745 " /* Add remaining command-line arguments as list elements. */\n"
746 "\\&\n"
747 " while (++optind E<lt> argc) {\n"
748 " prev = elem;\n"
749 "\\&\n"
750 " elem = new_element();\n"
751 " elem-E<gt>name = argv[optind];\n"
752 " insque(elem, prev);\n"
753 " }\n"
754 "\\&\n"
755 " /* Traverse the list from the start, printing element names. */\n"
756 "\\&\n"
757 " printf(\"Traversing completed list:\\[rs]n\");\n"
758 " elem = first;\n"
759 " do {\n"
760 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
761 " elem = elem-E<gt>forward;\n"
762 " } while (elem != NULL && elem != first);\n"
763 "\\&\n"
764 " if (elem == first)\n"
765 " printf(\"That was a circular list\\[rs]n\");\n"
766 "\\&\n"
767 " exit(EXIT_SUCCESS);\n"
768 "}\n"
769 msgstr ""
770 "#include E<lt>search.hE<gt>\n"
771 "#include E<lt>stdio.hE<gt>\n"
772 "#include E<lt>stdlib.hE<gt>\n"
773 "#include E<lt>unistd.hE<gt>\n"
774 "\\&\n"
775 "struct element {\n"
776 " struct element *forward;\n"
777 " struct element *backward;\n"
778 " char *name;\n"
779 "};\n"
780 "\\&\n"
781 "static struct element *\n"
782 "new_element(void)\n"
783 "{\n"
784 " struct element *e;\n"
785 "\\&\n"
786 " e = malloc(sizeof(*e));\n"
787 " if (e == NULL) {\n"
788 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
789 " exit(EXIT_FAILURE);\n"
790 " }\n"
791 "\\&\n"
792 " return e;\n"
793 "}\n"
794 "\\&\n"
795 "int\n"
796 "main(int argc, char *argv[])\n"
797 "{\n"
798 " struct element *first, *elem, *prev;\n"
799 " int circular, opt, errfnd;\n"
800 "\\&\n"
801 " /* Opțiunea de linie de comandă „-c” poate fi utilizată\n"
802 " pentru a specifica faptul că lista este circulară.. */\n"
803 "\\&\n"
804 " errfnd = 0;\n"
805 " circular = 0;\n"
806 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
807 " switch (opt) {\n"
808 " case \\[aq]c\\[aq]:\n"
809 " circular = 1;\n"
810 " break;\n"
811 " default:\n"
812 " errfnd = 1;\n"
813 " break;\n"
814 " }\n"
815 " }\n"
816 "\\&\n"
817 " if (errfnd || optind E<gt>= argc) {\n"
818 " fprintf(stderr, \"Utilizare: %s [-c] șir...\\[rs]n\", argv[0]);\n"
819 " exit(EXIT_FAILURE);\n"
820 " }\n"
821 "\\&\n"
822 " /* Creați primul element și plasați-l în lista legată. */\n"
823 "\\&\n"
824 " elem = new_element();\n"
825 " first = elem;\n"
826 "\\&\n"
827 " elem-E<gt>name = argv[optind];\n"
828 "\\&\n"
829 " if (circular) {\n"
830 " elem-E<gt>forward = elem;\n"
831 " elem-E<gt>backward = elem;\n"
832 " insque(elem, elem);\n"
833 " } else {\n"
834 " insque(elem, NULL);\n"
835 " }\n"
836 "\\&\n"
837 " /* Adaugă argumentele de linie de comandă rămase ca elemente de listă. */\n"
838 "\\&\n"
839 " while (++optind E<lt> argc) {\n"
840 " prev = elem;\n"
841 "\\&\n"
842 " elem = new_element();\n"
843 " elem-E<gt>name = argv[optind];\n"
844 " insque(elem, prev);\n"
845 " }\n"
846 "\\&\n"
847 " /* Parcurge lista de la început, imprimând numele elementelor. */\n"
848 "\\&\n"
849 " printf(\"Parcurgerea listei completate::\\[rs]n\");\n"
850 " elem = first;\n"
851 " do {\n"
852 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
853 " elem = elem-E<gt>forward;\n"
854 " } while (elem != NULL && elem != first);\n"
855 "\\&\n"
856 " if (elem == first)\n"
857 " printf(\"Aceasta a fost o listă circulară\\[rs]n\");\n"
858 "\\&\n"
859 " exit(EXIT_SUCCESS);\n"
860 "}\n"
861
862 #. type: TH
863 #: fedora-44 fedora-rawhide
864 #, no-wrap
865 msgid "2024-07-23"
866 msgstr "23 iulie 2024"
867
868 #. type: TH
869 #: fedora-44 fedora-rawhide
870 #, no-wrap
871 msgid "Linux man-pages 6.13"
872 msgstr "Pagini de manual de Linux 6.13"
873
874 #. type: TH
875 #: mageia-cauldron
876 #, no-wrap
877 msgid "Linux man-pages 6.17"
878 msgstr "Pagini de manual de Linux 6.17"
879
880 #. type: TH
881 #: opensuse-leap-16-1 opensuse-tumbleweed
882 #, no-wrap
883 msgid "Linux man-pages (unreleased)"
884 msgstr "Pagini de manual Linux (nepublicate)"