Debian Codegraph @

po/ar/man3/insque.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
9 "PO-Revision-Date: 2026-06-02 19:27+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\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=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\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 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 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 "الاسم"
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 - إدراج/إزالة عنصر من طابور"
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 "المكتبة"
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 "مكتبة سي المعيارية (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 "موجز"
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 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid "B<insque>(), B<remque>():"
103 msgstr "B<insque>()، B<remque>():"
104
105 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 " _XOPEN_SOURCE E<gt>= 500\n"
112 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
113 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
114 msgstr ""
115 " _XOPEN_SOURCE E<gt>= 500\n"
116 " || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n"
117 " || /* glibc E<lt>= 2.19: */ _SVID_SOURCE\n"
118
119 #. type: SH
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid "DESCRIPTION"
124 msgstr "الوصف"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "The B<insque>() and B<remque>() functions manipulate doubly linked lists. "
131 "Each element in the list is a structure of which the first two elements are "
132 "a forward and a backward pointer. The linked list may be linear (i.e., NULL "
133 "forward pointer at the end of the list and NULL backward pointer at the "
134 "start of the list) or circular."
135 msgstr ""
136 "تتعامل الدالتان B<insque>() و B<remque>() مع القوائم المرتبطة مزدوجة "
137 "الاتجاه. كل عنصر في القائمة هو بنية يكون أول عنصرين فيها مؤشرًا أماميًا ومؤشرًا "
138 "خلفيًا. قد تكون القائمة المرتبطة خطية (أي مؤشر أمامي NULL في نهاية القائمة "
139 "ومؤشر خلفي NULL في بداية القائمة) أو دائرية."
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The B<insque>() function inserts the element pointed to by I<elem> "
146 "immediately after the element pointed to by I<prev>."
147 msgstr ""
148 "تُدرج الدالة B<insque>() العنصر المشار إليه بواسطة I<elem> مباشرة بعد العنصر "
149 "المشار إليه بواسطة I<prev>."
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "If the list is linear, then the call I<insque(elem, NULL)> can be used to "
156 "insert the initial list element, and the call sets the forward and backward "
157 "pointers of I<elem> to NULL."
158 msgstr ""
159 "إذا كانت القائمة خطية، فيمكن استخدام الاستدعاء I<insque(elem, NULL)> لإدراج "
160 "عنصر القائمة الأولي، ويضبط الاستدعاء المؤشرين الأمامي والخلفي لـ I<elem> إلى "
161 "NULL."
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "If the list is circular, the caller should ensure that the forward and "
168 "backward pointers of the first element are initialized to point to that "
169 "element, and the I<prev> argument of the B<insque>() call should also point "
170 "to the element."
171 msgstr ""
172 "إذا كانت القائمة دائرية، يجب على المستدعي التأكد من تهيئة المؤشرين الأمامي "
173 "والخلفي للعنصر الأول للإشارة إلى ذلك العنصر، ويجب أن تشير وسيطة I<prev> "
174 "لاستدعاء B<insque>() أيضًا إلى العنصر."
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 msgid ""
180 "The B<remque>() function removes the element pointed to by I<elem> from the "
181 "doubly linked list."
182 msgstr ""
183 "تزيل الدالة B<remque>() العنصر المشار إليه بواسطة I<elem> من القائمة "
184 "المرتبطة مزدوجة الاتجاه."
185
186 #. type: SH
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "ATTRIBUTES"
191 msgstr "السمات"
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "For an explanation of the terms used in this section, see B<attributes>(7)."
198 msgstr ""
199 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
200
201 #. type: tbl table
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "Interface"
206 msgstr "الواجهة"
207
208 #. type: tbl table
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "Attribute"
213 msgstr "السمة"
214
215 #. type: tbl table
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "Value"
220 msgstr "القيمة"
221
222 #. type: tbl table
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid ".na\n"
227 msgstr ".na\n"
228
229 #. type: tbl table
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid ".nh\n"
234 msgstr ".nh\n"
235
236 #. type: tbl table
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid ""
241 "B<insque>(),\n"
242 "B<remque>()"
243 msgstr ""
244 "B<insque>(),\n"
245 "B<remque>()"
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 "Thread safety"
252 msgstr "سلامة الخيوط"
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 "MT-Safe"
259 msgstr "MT-Safe"
260
261 #. type: SH
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "VERSIONS"
266 msgstr "الإصدارات"
267
268 #. e.g., SunOS, Linux libc4 and libc5
269 #. type: Plain text
270 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
271 #: opensuse-tumbleweed
272 msgid ""
273 "On ancient systems, the arguments of these functions were of type I<struct\\ "
274 "qelem\\ *>, defined as:"
275 msgstr ""
276 "في الأنظمة القديمة، كانت وسائط هذه الدوال من النوع I<struct\\ qelem\\ *>، "
277 "المُعرَّف كالتالي:"
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid ""
284 "struct qelem {\n"
285 " struct qelem *q_forw;\n"
286 " struct qelem *q_back;\n"
287 " char q_data[1];\n"
288 "};\n"
289 msgstr ""
290 "struct qelem {\n"
291 " struct qelem *q_forw;\n"
292 " struct qelem *q_back;\n"
293 " char q_data[1];\n"
294 "};\n"
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "This is still what you will get if B<_GNU_SOURCE> is defined before "
301 "including I<E<lt>search.hE<gt>>."
302 msgstr ""
303 "هذا ما ستحصل عليه إذا عُرِّف B<_GNU_SOURCE> قبل تضمين I<E<lt>search.hE<gt>>."
304
305 #. #-#-#-#-# archlinux: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
306 #. Linux libc4 and libc 5 placed them in
307 #. .IR <stdlib.h> .
308 #. type: Plain text
309 #. #-#-#-#-# debian-trixie: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
310 #. Linux libc4 and libc 5 placed them
311 #. in \fI<stdlib.h>\fP.
312 #. type: Plain text
313 #. #-#-#-#-# debian-unstable: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
314 #. Linux libc4 and libc 5 placed them in
315 #. .IR <stdlib.h> .
316 #. type: Plain text
317 #. #-#-#-#-# fedora-44: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
318 #. Linux libc4 and libc 5 placed them
319 #. in \fI<stdlib.h>\fP.
320 #. type: Plain text
321 #. #-#-#-#-# fedora-rawhide: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
322 #. Linux libc4 and libc 5 placed them
323 #. in \fI<stdlib.h>\fP.
324 #. type: Plain text
325 #. #-#-#-#-# mageia-cauldron: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
326 #. Linux libc4 and libc 5 placed them in
327 #. .IR <stdlib.h> .
328 #. type: Plain text
329 #. #-#-#-#-# opensuse-leap-16-1: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
330 #. Linux libc4 and libc 5 placed them in
331 #. .IR <stdlib.h> .
332 #. type: Plain text
333 #. #-#-#-#-# opensuse-tumbleweed: insque.3.pot (PACKAGE VERSION) #-#-#-#-#
334 #. Linux libc4 and libc 5 placed them in
335 #. .IR <stdlib.h> .
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "The location of the prototypes for these functions differs among several "
341 "versions of UNIX. The above is the POSIX version. Some systems place them "
342 "in I<E<lt>string.hE<gt>>."
343 msgstr ""
344 "يختلف موقع النماذج الأولية لهذه الدوال بين عدة إصدارات من UNIX. ما سبق هو "
345 "إصدار POSIX. تضعها بعض الأنظمة في I<E<lt>string.hE<gt>>."
346
347 #. type: SH
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "STANDARDS"
352 msgstr "المعايير"
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 msgid "POSIX.1-2008."
358 msgstr "POSIX.1-2008."
359
360 #. type: SH
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "HISTORY"
365 msgstr "التاريخ"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "POSIX.1-2001."
371 msgstr "POSIX.1-2001."
372
373 #. type: SH
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "BUGS"
378 msgstr "العلل"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "In glibc 2.4 and earlier, it was not possible to specify I<prev> as NULL. "
385 "Consequently, to build a linear list, the caller had to build a list using "
386 "an initial call that contained the first two elements of the list, with the "
387 "forward and backward pointers in each element suitably initialized."
388 msgstr ""
389 "في glibc 2.4 والإصدارات الأقدم، لم يكن من الممكن تحديد I<prev> كـ NULL. "
390 "وبالتالي، لبناء قائمة خطية، كان على المستدعي بناء قائمة باستخدام استدعاء "
391 "أولي يحتوي على أول عنصرين من القائمة، مع تهيئة المؤشرين الأمامي والخلفي في "
392 "كل عنصر بشكل مناسب."
393
394 #. type: SH
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "EXAMPLES"
399 msgstr "أمثلة"
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "The program below demonstrates the use of B<insque>(). Here is an example "
406 "run of the program:"
407 msgstr "يوضح البرنامج أدناه استخدام B<insque>(). إليك مثال لتشغيل البرنامج:"
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 #, no-wrap
413 msgid ""
414 "$ B<./a.out -c a b c>\n"
415 "Traversing completed list:\n"
416 " a\n"
417 " b\n"
418 " c\n"
419 "That was a circular list\n"
420 msgstr ""
421 "$ B<./a.out -c a b c>\n"
422 "Traversing completed list:\n"
423 " a\n"
424 " b\n"
425 " c\n"
426 "That was a circular list\n"
427
428 #. type: SS
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "Program source"
433 msgstr "مصدر البرنامج"
434
435 #. type: Plain text
436 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
437 #: opensuse-tumbleweed
438 #, no-wrap
439 msgid ""
440 "#include E<lt>search.hE<gt>\n"
441 "#include E<lt>stdio.hE<gt>\n"
442 "#include E<lt>stdlib.hE<gt>\n"
443 "#include E<lt>unistd.hE<gt>\n"
444 "\\&\n"
445 "struct element {\n"
446 " struct element *forward;\n"
447 " struct element *backward;\n"
448 " char *name;\n"
449 "};\n"
450 "\\&\n"
451 "static struct element *\n"
452 "new_element(void)\n"
453 "{\n"
454 " struct element *e;\n"
455 "\\&\n"
456 " e = malloc(sizeof(*e));\n"
457 " if (e == NULL) {\n"
458 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
459 " exit(EXIT_FAILURE);\n"
460 " }\n"
461 "\\&\n"
462 " return e;\n"
463 "}\n"
464 "\\&\n"
465 "int\n"
466 "main(int argc, char *argv[])\n"
467 "{\n"
468 " struct element *first, *elem, *prev;\n"
469 " int circular, opt, errfnd;\n"
470 "\\&\n"
471 " /* The \"-c\" command-line option can be used to specify that the\n"
472 " list is circular. */\n"
473 "\\&\n"
474 " errfnd = 0;\n"
475 " circular = 0;\n"
476 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
477 " switch (opt) {\n"
478 " case \\[aq]c\\[aq]:\n"
479 " circular = 1;\n"
480 " break;\n"
481 " default:\n"
482 " errfnd = 1;\n"
483 " break;\n"
484 " }\n"
485 " }\n"
486 "\\&\n"
487 " if (errfnd || optind E<gt>= argc) {\n"
488 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
489 " exit(EXIT_FAILURE);\n"
490 " }\n"
491 "\\&\n"
492 " /* Create first element and place it in the linked list. */\n"
493 "\\&\n"
494 " elem = new_element();\n"
495 " first = elem;\n"
496 "\\&\n"
497 " elem-E<gt>name = argv[optind];\n"
498 "\\&\n"
499 " if (circular) {\n"
500 " elem-E<gt>forward = elem;\n"
501 " elem-E<gt>backward = elem;\n"
502 " insque(elem, elem);\n"
503 " } else {\n"
504 " insque(elem, NULL);\n"
505 " }\n"
506 "\\&\n"
507 " /* Add remaining command-line arguments as list elements. */\n"
508 "\\&\n"
509 " while (++optind E<lt> argc) {\n"
510 " prev = elem;\n"
511 "\\&\n"
512 " elem = new_element();\n"
513 " elem-E<gt>name = argv[optind];\n"
514 " insque(elem, prev);\n"
515 " }\n"
516 "\\&\n"
517 " /* Traverse the list from the start, printing element names. */\n"
518 "\\&\n"
519 " printf(\"Traversing completed list:\\[rs]n\");\n"
520 " elem = first;\n"
521 " do {\n"
522 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
523 " elem = elem-E<gt>forward;\n"
524 " } while (elem != NULL && elem != first);\n"
525 "\\&\n"
526 " if (elem == first)\n"
527 " printf(\"That was a circular list\\[rs]n\");\n"
528 "\\&\n"
529 " exit(EXIT_SUCCESS);\n"
530 "}\n"
531 msgstr ""
532 "#include E<lt>search.hE<gt>\n"
533 "#include E<lt>stdio.hE<gt>\n"
534 "#include E<lt>stdlib.hE<gt>\n"
535 "#include E<lt>unistd.hE<gt>\n"
536 "\\&\n"
537 "struct element {\n"
538 " struct element *forward;\n"
539 " struct element *backward;\n"
540 " char *name;\n"
541 "};\n"
542 "\\&\n"
543 "static struct element *\n"
544 "new_element(void)\n"
545 "{\n"
546 " struct element *e;\n"
547 "\\&\n"
548 " e = malloc(sizeof(*e));\n"
549 " if (e == NULL) {\n"
550 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
551 " exit(EXIT_FAILURE);\n"
552 " }\n"
553 "\\&\n"
554 " return e;\n"
555 "}\n"
556 "\\&\n"
557 "int\n"
558 "main(int argc, char *argv[])\n"
559 "{\n"
560 " struct element *first, *elem, *prev;\n"
561 " int circular, opt, errfnd;\n"
562 "\\&\n"
563 " /* The \"-c\" command-line option can be used to specify that the\n"
564 " list is circular. */\n"
565 "\\&\n"
566 " errfnd = 0;\n"
567 " circular = 0;\n"
568 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
569 " switch (opt) {\n"
570 " case \\[aq]c\\[aq]:\n"
571 " circular = 1;\n"
572 " break;\n"
573 " default:\n"
574 " errfnd = 1;\n"
575 " break;\n"
576 " }\n"
577 " }\n"
578 "\\&\n"
579 " if (errfnd || optind E<gt>= argc) {\n"
580 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
581 " exit(EXIT_FAILURE);\n"
582 " }\n"
583 "\\&\n"
584 " /* Create first element and place it in the linked list. */\n"
585 "\\&\n"
586 " elem = new_element();\n"
587 " first = elem;\n"
588 "\\&\n"
589 " elem-E<gt>name = argv[optind];\n"
590 "\\&\n"
591 " if (circular) {\n"
592 " elem-E<gt>forward = elem;\n"
593 " elem-E<gt>backward = elem;\n"
594 " insque(elem, elem);\n"
595 " } else {\n"
596 " insque(elem, NULL);\n"
597 " }\n"
598 "\\&\n"
599 " /* Add remaining command-line arguments as list elements. */\n"
600 "\\&\n"
601 " while (++optind E<lt> argc) {\n"
602 " prev = elem;\n"
603 "\\&\n"
604 " elem = new_element();\n"
605 " elem-E<gt>name = argv[optind];\n"
606 " insque(elem, prev);\n"
607 " }\n"
608 "\\&\n"
609 " /* Traverse the list from the start, printing element names. */\n"
610 "\\&\n"
611 " printf(\"Traversing completed list:\\[rs]n\");\n"
612 " elem = first;\n"
613 " do {\n"
614 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
615 " elem = elem-E<gt>forward;\n"
616 " } while (elem != NULL && elem != first);\n"
617 "\\&\n"
618 " if (elem == first)\n"
619 " printf(\"That was a circular list\\[rs]n\");\n"
620 "\\&\n"
621 " exit(EXIT_SUCCESS);\n"
622 "}\n"
623
624 #. SRC END
625 #. type: SH
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "SEE ALSO"
630 msgstr "انظر أيضًا"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid "B<queue>(7)"
636 msgstr "B<queue>(7)"
637
638 #. type: TH
639 #: debian-trixie
640 #, no-wrap
641 msgid "2024-06-15"
642 msgstr "15 يونيو 2024"
643
644 #. type: TH
645 #: debian-trixie
646 #, no-wrap
647 msgid "Linux man-pages 6.9.1"
648 msgstr "صفحات دليل لينكس 6.9.1"
649
650 #. type: Plain text
651 #: debian-trixie
652 msgid "Standard C library (I<libc>, I<-lc>)"
653 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
654
655 #. e.g., SunOS, Linux libc4 and libc5
656 #. type: Plain text
657 #: debian-trixie fedora-44 fedora-rawhide
658 msgid ""
659 "On ancient systems, the arguments of these functions were of type I<struct "
660 "qelem *>, defined as:"
661 msgstr ""
662 "في الأنظمة القديمة، كانت وسائط هذه الدوال من النوع I<struct qelem *>، المُعرَّف "
663 "كالتالي:"
664
665 #. type: Plain text
666 #: debian-trixie fedora-44 fedora-rawhide
667 #, no-wrap
668 msgid ""
669 "#include E<lt>search.hE<gt>\n"
670 "#include E<lt>stdio.hE<gt>\n"
671 "#include E<lt>stdlib.hE<gt>\n"
672 "#include E<lt>unistd.hE<gt>\n"
673 "\\&\n"
674 "struct element {\n"
675 " struct element *forward;\n"
676 " struct element *backward;\n"
677 " char *name;\n"
678 "};\n"
679 "\\&\n"
680 "static struct element *\n"
681 "new_element(void)\n"
682 "{\n"
683 " struct element *e;\n"
684 "\\&\n"
685 " e = malloc(sizeof(*e));\n"
686 " if (e == NULL) {\n"
687 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
688 " exit(EXIT_FAILURE);\n"
689 " }\n"
690 "\\&\n"
691 " return e;\n"
692 "}\n"
693 "\\&\n"
694 "int\n"
695 "main(int argc, char *argv[])\n"
696 "{\n"
697 " struct element *first, *elem, *prev;\n"
698 " int circular, opt, errfnd;\n"
699 "\\&\n"
700 " /* The \"-c\" command-line option can be used to specify that the\n"
701 " list is circular. */\n"
702 "\\&\n"
703 " errfnd = 0;\n"
704 " circular = 0;\n"
705 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
706 " switch (opt) {\n"
707 " case \\[aq]c\\[aq]:\n"
708 " circular = 1;\n"
709 " break;\n"
710 " default:\n"
711 " errfnd = 1;\n"
712 " break;\n"
713 " }\n"
714 " }\n"
715 "\\&\n"
716 " if (errfnd || optind E<gt>= argc) {\n"
717 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
718 " exit(EXIT_FAILURE);\n"
719 " }\n"
720 "\\&\n"
721 " /* Create first element and place it in the linked list. */\n"
722 "\\&\n"
723 " elem = new_element();\n"
724 " first = elem;\n"
725 "\\&\n"
726 " elem-E<gt>name = argv[optind];\n"
727 "\\&\n"
728 " if (circular) {\n"
729 " elem-E<gt>forward = elem;\n"
730 " elem-E<gt>backward = elem;\n"
731 " insque(elem, elem);\n"
732 " } else {\n"
733 " insque(elem, NULL);\n"
734 " }\n"
735 "\\&\n"
736 " /* Add remaining command-line arguments as list elements. */\n"
737 "\\&\n"
738 " while (++optind E<lt> argc) {\n"
739 " prev = elem;\n"
740 "\\&\n"
741 " elem = new_element();\n"
742 " elem-E<gt>name = argv[optind];\n"
743 " insque(elem, prev);\n"
744 " }\n"
745 "\\&\n"
746 " /* Traverse the list from the start, printing element names. */\n"
747 "\\&\n"
748 " printf(\"Traversing completed list:\\[rs]n\");\n"
749 " elem = first;\n"
750 " do {\n"
751 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
752 " elem = elem-E<gt>forward;\n"
753 " } while (elem != NULL && elem != first);\n"
754 "\\&\n"
755 " if (elem == first)\n"
756 " printf(\"That was a circular list\\[rs]n\");\n"
757 "\\&\n"
758 " exit(EXIT_SUCCESS);\n"
759 "}\n"
760 msgstr ""
761 "#include E<lt>search.hE<gt>\n"
762 "#include E<lt>stdio.hE<gt>\n"
763 "#include E<lt>stdlib.hE<gt>\n"
764 "#include E<lt>unistd.hE<gt>\n"
765 "\\&\n"
766 "struct element {\n"
767 " struct element *forward;\n"
768 " struct element *backward;\n"
769 " char *name;\n"
770 "};\n"
771 "\\&\n"
772 "static struct element *\n"
773 "new_element(void)\n"
774 "{\n"
775 " struct element *e;\n"
776 "\\&\n"
777 " e = malloc(sizeof(*e));\n"
778 " if (e == NULL) {\n"
779 " fprintf(stderr, \"malloc() failed\\[rs]n\");\n"
780 " exit(EXIT_FAILURE);\n"
781 " }\n"
782 "\\&\n"
783 " return e;\n"
784 "}\n"
785 "\\&\n"
786 "int\n"
787 "main(int argc, char *argv[])\n"
788 "{\n"
789 " struct element *first, *elem, *prev;\n"
790 " int circular, opt, errfnd;\n"
791 "\\&\n"
792 " /* The \"-c\" command-line option can be used to specify that the\n"
793 " list is circular. */\n"
794 "\\&\n"
795 " errfnd = 0;\n"
796 " circular = 0;\n"
797 " while ((opt = getopt(argc, argv, \"c\")) != -1) {\n"
798 " switch (opt) {\n"
799 " case \\[aq]c\\[aq]:\n"
800 " circular = 1;\n"
801 " break;\n"
802 " default:\n"
803 " errfnd = 1;\n"
804 " break;\n"
805 " }\n"
806 " }\n"
807 "\\&\n"
808 " if (errfnd || optind E<gt>= argc) {\n"
809 " fprintf(stderr, \"Usage: %s [-c] string...\\[rs]n\", argv[0]);\n"
810 " exit(EXIT_FAILURE);\n"
811 " }\n"
812 "\\&\n"
813 " /* Create first element and place it in the linked list. */\n"
814 "\\&\n"
815 " elem = new_element();\n"
816 " first = elem;\n"
817 "\\&\n"
818 " elem-E<gt>name = argv[optind];\n"
819 "\\&\n"
820 " if (circular) {\n"
821 " elem-E<gt>forward = elem;\n"
822 " elem-E<gt>backward = elem;\n"
823 " insque(elem, elem);\n"
824 " } else {\n"
825 " insque(elem, NULL);\n"
826 " }\n"
827 "\\&\n"
828 " /* Add remaining command-line arguments as list elements. */\n"
829 "\\&\n"
830 " while (++optind E<lt> argc) {\n"
831 " prev = elem;\n"
832 "\\&\n"
833 " elem = new_element();\n"
834 " elem-E<gt>name = argv[optind];\n"
835 " insque(elem, prev);\n"
836 " }\n"
837 "\\&\n"
838 " /* Traverse the list from the start, printing element names. */\n"
839 "\\&\n"
840 " printf(\"Traversing completed list:\\[rs]n\");\n"
841 " elem = first;\n"
842 " do {\n"
843 " printf(\" %s\\[rs]n\", elem-E<gt>name);\n"
844 " elem = elem-E<gt>forward;\n"
845 " } while (elem != NULL && elem != first);\n"
846 "\\&\n"
847 " if (elem == first)\n"
848 " printf(\"That was a circular list\\[rs]n\");\n"
849 "\\&\n"
850 " exit(EXIT_SUCCESS);\n"
851 "}\n"
852
853 #. type: TH
854 #: fedora-44 fedora-rawhide
855 #, no-wrap
856 msgid "2024-07-23"
857 msgstr "23 يوليو 2024"
858
859 #. type: TH
860 #: fedora-44 fedora-rawhide
861 #, no-wrap
862 msgid "Linux man-pages 6.13"
863 msgstr "صفحات دليل لينكس 6.13"
864
865 #. type: TH
866 #: mageia-cauldron
867 #, no-wrap
868 msgid "Linux man-pages 6.17"
869 msgstr "صفحات دليل لينكس 6.17"
870
871 #. type: TH
872 #: opensuse-leap-16-1 opensuse-tumbleweed
873 #, no-wrap
874 msgid "Linux man-pages (unreleased)"
875 msgstr "صفحات دليل لينكس (لم تصدر بعد)"