Debian Codegraph @

po/ar/man3/tailq.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:48+0200\n"
9 "PO-Revision-Date: 2026-06-03 18:37+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 "TAILQ"
25 msgstr "TAILQ"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-05-17"
32 msgstr "17 مايو 2025"
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 #. TAILQ_FOREACH_FROM,
48 #. TAILQ_FOREACH_FROM_SAFE,
49 #. TAILQ_FOREACH_REVERSE_FROM,
50 #. TAILQ_FOREACH_REVERSE_FROM_SAFE,
51 #. TAILQ_FOREACH_REVERSE_SAFE,
52 #. TAILQ_FOREACH_SAFE,
53 #. TAILQ_SWAP
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid ""
58 "TAILQ_CONCAT, TAILQ_EMPTY, TAILQ_ENTRY, TAILQ_FIRST, TAILQ_FOREACH, "
59 "TAILQ_FOREACH_REVERSE, TAILQ_HEAD, TAILQ_HEAD_INITIALIZER, TAILQ_INIT, "
60 "TAILQ_INSERT_AFTER, TAILQ_INSERT_BEFORE, TAILQ_INSERT_HEAD, "
61 "TAILQ_INSERT_TAIL, TAILQ_LAST, TAILQ_NEXT, TAILQ_PREV, TAILQ_REMOVE - "
62 "implementation of a doubly linked tail queue"
63 msgstr ""
64 "TAILQ_CONCAT, TAILQ_EMPTY, TAILQ_ENTRY, TAILQ_FIRST, TAILQ_FOREACH, "
65 "TAILQ_FOREACH_REVERSE, TAILQ_HEAD, TAILQ_HEAD_INITIALIZER, TAILQ_INIT, "
66 "TAILQ_INSERT_AFTER, TAILQ_INSERT_BEFORE, TAILQ_INSERT_HEAD, "
67 "TAILQ_INSERT_TAIL, TAILQ_LAST, TAILQ_NEXT, TAILQ_PREV, TAILQ_REMOVE - تنفيذ "
68 "طابور ذيل مزدوج الوصل"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "LIBRARY"
75 msgstr "المكتبة"
76
77 #. type: Plain text
78 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
79 #: opensuse-leap-16-1 opensuse-tumbleweed
80 msgid "Standard C library (I<libc>,\\ I<-lc>)"
81 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
82
83 #. type: SH
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "SYNOPSIS"
88 msgstr "موجز"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<#include E<lt>sys/queue.hE<gt>>\n"
95 msgstr "B<#include E<lt>sys/queue.hE<gt>>\n"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "B<TAILQ_ENTRY(TYPE);>\n"
102 msgstr "B<TAILQ_ENTRY(TYPE);>\n"
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 #, no-wrap
108 msgid ""
109 "B<TAILQ_HEAD(HEADNAME, TYPE);>\n"
110 "B<TAILQ_HEAD TAILQ_HEAD_INITIALIZER(TAILQ_HEAD >I<head>B<);>\n"
111 "B<void TAILQ_INIT(TAILQ_HEAD *>I<head>B<);>\n"
112 msgstr ""
113 "B<TAILQ_HEAD(HEADNAME, TYPE);>\n"
114 "B<TAILQ_HEAD TAILQ_HEAD_INITIALIZER(TAILQ_HEAD >I<head>B<);>\n"
115 "B<void TAILQ_INIT(TAILQ_HEAD *>I<head>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid "B<int TAILQ_EMPTY(TAILQ_HEAD *>I<head>B<);>\n"
122 msgstr "B<int TAILQ_EMPTY(TAILQ_HEAD *>I<head>B<);>\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<void TAILQ_INSERT_HEAD(TAILQ_HEAD *>I<head>B<,>\n"
130 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
131 "B<void TAILQ_INSERT_TAIL(TAILQ_HEAD *>I<head>B<,>\n"
132 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
133 "B<void TAILQ_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n"
134 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
135 "B<void TAILQ_INSERT_AFTER(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
136 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
137 msgstr ""
138 "B<void TAILQ_INSERT_HEAD(TAILQ_HEAD *>I<head>B<,>\n"
139 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
140 "B<void TAILQ_INSERT_TAIL(TAILQ_HEAD *>I<head>B<,>\n"
141 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
142 "B<void TAILQ_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n"
143 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
144 "B<void TAILQ_INSERT_AFTER(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<listelm>B<,>\n"
145 "B< struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid ""
152 "B<struct TYPE *TAILQ_FIRST(TAILQ_HEAD *>I<head>B<);>\n"
153 "B<struct TYPE *TAILQ_LAST(TAILQ_HEAD *>I<head>B<, HEADNAME);>\n"
154 "B<struct TYPE *TAILQ_PREV(struct TYPE *>I<elm>B<, HEADNAME, TAILQ_ENTRY >I<NAME>B<);>\n"
155 "B<struct TYPE *TAILQ_NEXT(struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
156 msgstr ""
157 "B<struct TYPE *TAILQ_FIRST(TAILQ_HEAD *>I<head>B<);>\n"
158 "B<struct TYPE *TAILQ_LAST(TAILQ_HEAD *>I<head>B<, HEADNAME);>\n"
159 "B<struct TYPE *TAILQ_PREV(struct TYPE *>I<elm>B<, HEADNAME, TAILQ_ENTRY >I<NAME>B<);>\n"
160 "B<struct TYPE *TAILQ_NEXT(struct TYPE *>I<elm>B<, TAILQ_ENTRY >I<NAME>B<);>\n"
161
162 #. .BI "TAILQ_FOREACH_FROM(struct TYPE *" var ", TAILQ_HEAD *" head ,
163 #. .BI " TAILQ_ENTRY " NAME );
164 #. .BI "TAILQ_FOREACH_REVERSE_FROM(struct TYPE *" var ", TAILQ_HEAD *" head ", HEADNAME,"
165 #. .BI " TAILQ_ENTRY " NAME );
166 #. .P
167 #. .BI "TAILQ_FOREACH_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
168 #. .BI " TAILQ_ENTRY " NAME ,
169 #. .BI " struct TYPE *" temp_var );
170 #. .BI "TAILQ_FOREACH_FROM_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
171 #. .BI " TAILQ_ENTRY " NAME ,
172 #. .BI " struct TYPE *" temp_var );
173 #. .BI "TAILQ_FOREACH_REVERSE_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
174 #. .BI " HEADNAME, TAILQ_ENTRY " NAME ,
175 #. .BI " struct TYPE *" temp_var );
176 #. .BI "TAILQ_FOREACH_REVERSE_FROM_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head ,
177 #. .BI " HEADNAME, TAILQ_ENTRY " NAME ,
178 #. .BI " struct TYPE *" temp_var );
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid ""
184 "B<TAILQ_FOREACH(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<,>\n"
185 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
186 "B<TAILQ_FOREACH_REVERSE(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<, HEADNAME,>\n"
187 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
188 msgstr ""
189 "B<TAILQ_FOREACH(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<,>\n"
190 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
191 "B<TAILQ_FOREACH_REVERSE(struct TYPE *>I<var>B<, TAILQ_HEAD *>I<head>B<, HEADNAME,>\n"
192 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid ""
199 "B<void TAILQ_REMOVE(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
200 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
201 msgstr ""
202 "B<void TAILQ_REMOVE(TAILQ_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n"
203 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
204
205 #. .BI "void TAILQ_SWAP(TAILQ_HEAD *" head1 ", TAILQ_HEAD *" head2 ", TYPE,"
206 #. .BI " TAILQ_ENTRY " NAME );
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid ""
212 "B<void TAILQ_CONCAT(TAILQ_HEAD *>I<head1>B<, TAILQ_HEAD *>I<head2>B<,>\n"
213 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
214 msgstr ""
215 "B<void TAILQ_CONCAT(TAILQ_HEAD *>I<head1>B<, TAILQ_HEAD *>I<head2>B<,>\n"
216 "B< TAILQ_ENTRY >I<NAME>B<);>\n"
217
218 #. type: SH
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "DESCRIPTION"
223 msgstr "الوصف"
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid "These macros define and operate on doubly linked tail queues."
229 msgstr "تُعرِّف هذه الكليّات وتُشغّل على طوابير ذيل مزدوجة الوصل."
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "In the macro definitions, I<TYPE> is the name of a user defined structure, "
236 "that must contain a field of type I<TAILQ_ENTRY>, named I<NAME>. The "
237 "argument I<HEADNAME> is the name of a user defined structure that must be "
238 "declared using the macro B<TAILQ_HEAD>()."
239 msgstr ""
240 "في تعريفات الكليّات، I<TYPE> هو اسم بنية مُعرَّفة من المستخدم، يجب أن تحتوي على "
241 "حقل من نوع I<TAILQ_ENTRY>، اسمه I<NAME>. المعامل I<HEADNAME> هو اسم بنية "
242 "مُعرَّفة من المستخدم يجب أن تُصرَّح باستخدام الكلية B<TAILQ_HEAD>()."
243
244 #. type: SS
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "Creation"
249 msgstr "الإنشاء"
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "A tail queue is headed by a structure defined by the B<TAILQ_HEAD>() "
256 "macro. This structure contains a pair of pointers, one to the first element "
257 "in the queue and the other to the last element in the queue. The elements "
258 "are doubly linked so that an arbitrary element can be removed without "
259 "traversing the queue. New elements can be added to the queue after an "
260 "existing element, before an existing element, at the head of the queue, or "
261 "at the end of the queue. A I<TAILQ_HEAD> structure is declared as follows:"
262 msgstr ""
263 "يترأس طابور الذيل بنية مُعرَّفة بالكلية B<TAILQ_HEAD>(). تحتوي هذه البنية على "
264 "زوج من المؤشرات، واحد إلى أول عنصر في الطابور والآخر إلى آخر عنصر في "
265 "الطابور. العناصر مزدوجة الوصل بحيث يمكن إزالة أي عنصر دون اجتياز الطابور. "
266 "يمكن إضافة عناصر جديدة إلى الطابور بعد عنصر موجود، أو قبل عنصر موجود، أو في "
267 "رأس الطابور، أو في نهاية الطابور. تُصرَّح بنية I<TAILQ_HEAD> كالتالي:"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
274 msgstr "TAILQ_HEAD(HEADNAME, TYPE) head;\n"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> "
281 "is the type of the elements to be linked into the queue. A pointer to the "
282 "head of the queue can later be declared as:"
283 msgstr ""
284 "حيث I<struct HEADNAME> هي البنية المراد تعريفها، و I<struct TYPE> هو نوع "
285 "العناصر المراد ربطها في الطابور. يمكن لاحقًا التصريح عن مؤشر لرأس الطابور كـ:"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "struct HEADNAME *headp;\n"
292 msgstr "struct HEADNAME *headp;\n"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid "(The names I<head> and I<headp> are user selectable.)"
298 msgstr "(الاسمان I<head> و I<headp> يمكن للمستخدم اختيارهما.)"
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 "B<TAILQ_ENTRY>() declares a structure that connects the elements in the "
305 "queue."
306 msgstr "تُصرِّح B<TAILQ_ENTRY>() ببنية تربط العناصر في الطابور."
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid ""
312 "B<TAILQ_HEAD_INITIALIZER>() evaluates to an initializer for the queue "
313 "I<head>."
314 msgstr "تُقيِّم B<TAILQ_HEAD_INITIALIZER>() إلى مُهيِّئ للطابور I<head>."
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid "B<TAILQ_INIT>() initializes the queue referenced by"
320 msgstr "تهيئ B<TAILQ_INIT>() الطابور المُشار إليه بـ"
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid ""
326 "B<TAILQ_EMPTY>() evaluates to true if there are no items on the queue. "
327 "I<head>."
328 msgstr ""
329 "تُقيِّم B<TAILQ_EMPTY>() إلى صواب إذا لم تكن هناك عناصر في الطابور. I<head>."
330
331 #. type: SS
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "Insertion"
336 msgstr "إدراج"
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "B<TAILQ_INSERT_HEAD>() inserts the new element I<elm> at the head of the "
343 "queue."
344 msgstr "تُدرج B<TAILQ_INSERT_HEAD>() العنصر الجديد I<elm> في رأس الطابور."
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "B<TAILQ_INSERT_TAIL>() inserts the new element I<elm> at the end of the "
351 "queue."
352 msgstr "تُدرج B<TAILQ_INSERT_TAIL>() العنصر الجديد I<elm> في نهاية الطابور."
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 ""
358 "B<TAILQ_INSERT_BEFORE>() inserts the new element I<elm> before the element "
359 "I<listelm>."
360 msgstr ""
361 "تُدرج B<TAILQ_INSERT_BEFORE>() العنصر الجديد I<elm> قبل العنصر I<listelm>."
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 ""
367 "B<TAILQ_INSERT_AFTER>() inserts the new element I<elm> after the element "
368 "I<listelm>."
369 msgstr ""
370 "تدرج B<TAILQ_INSERT_AFTER>() العنصر الجديد I<elm> بعد العنصر I<listelm>."
371
372 #. type: SS
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "Traversal"
377 msgstr "اجتياز"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "B<TAILQ_FIRST>() returns the first item on the queue, or NULL if the queue "
384 "is empty."
385 msgstr ""
386 "ترجع B<TAILQ_FIRST>() أول عنصر في الطابور، أو NULL إذا كان الطابور فارغًا."
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 msgid ""
392 "B<TAILQ_LAST>() returns the last item on the queue. If the queue is empty "
393 "the return value is NULL."
394 msgstr ""
395 "ترجع B<TAILQ_LAST>() آخر عنصر في الطابور. إذا كان الطابور فارغًا، تكون القيمة "
396 "المرجعة NULL."
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "B<TAILQ_PREV>() returns the previous item on the queue, or NULL if this "
403 "item is the first."
404 msgstr ""
405 "ترجع B<TAILQ_PREV>() العنصر السابق في الطابور، أو NULL إذا كان هذا العنصر هو "
406 "الأول."
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 "B<TAILQ_NEXT>() returns the next item on the queue, or NULL if this item is "
413 "the last."
414 msgstr ""
415 "ترجع B<TAILQ_NEXT>() العنصر التالي في الطابور، أو NULL إذا كان هذا العنصر هو "
416 "الأخير."
417
418 #. .P
419 #. .BR TAILQ_FOREACH_FROM ()
420 #. behaves identically to
421 #. .BR TAILQ_FOREACH ()
422 #. when
423 #. .I var
424 #. is NULL, else it treats
425 #. .I var
426 #. as a previously found TAILQ element and begins the loop at
427 #. .I var
428 #. instead of the first element in the TAILQ referenced by
429 #. .IR head .
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid ""
434 "B<TAILQ_FOREACH>() traverses the queue referenced by I<head> in the forward "
435 "direction, assigning each element in turn to I<var>. I<var> is set to NULL "
436 "if the loop completes normally, or if there were no elements."
437 msgstr ""
438 "تعبر B<TAILQ_FOREACH>() الطابور المشار إليه بـ I<head> في الاتجاه الأمامي، "
439 "مع تخصيص كل عنصر بدوره إلى I<var>. يُضبط I<var> إلى NULL إذا اكتملت الحلقة "
440 "بشكل طبيعي، أو إذا لم تكن هناك عناصر."
441
442 #. .P
443 #. .BR TAILQ_FOREACH_REVERSE_FROM ()
444 #. behaves identically to
445 #. .BR TAILQ_FOREACH_REVERSE ()
446 #. when
447 #. .I var
448 #. is NULL, else it treats
449 #. .I var
450 #. as a previously found TAILQ element and begins the reverse loop at
451 #. .I var
452 #. instead of the last element in the TAILQ referenced by
453 #. .IR head .
454 #. .P
455 #. .BR TAILQ_FOREACH_SAFE ()
456 #. and
457 #. .BR TAILQ_FOREACH_REVERSE_SAFE ()
458 #. traverse the list referenced by
459 #. .I head
460 #. in the forward or reverse direction respectively,
461 #. assigning each element in turn to
462 #. .IR var .
463 #. However, unlike their unsafe counterparts,
464 #. .BR TAILQ_FOREACH ()
465 #. and
466 #. .BR TAILQ_FOREACH_REVERSE ()
467 #. permit to both remove
468 #. .I var
469 #. as well as free it from within the loop safely without interfering with the
470 #. traversal.
471 #. .P
472 #. .BR TAILQ_FOREACH_FROM_SAFE ()
473 #. behaves identically to
474 #. .BR TAILQ_FOREACH_SAFE ()
475 #. when
476 #. .I var
477 #. is NULL, else it treats
478 #. .I var
479 #. as a previously found TAILQ element and begins the loop at
480 #. .I var
481 #. instead of the first element in the TAILQ referenced by
482 #. .IR head .
483 #. .P
484 #. .BR TAILQ_FOREACH_REVERSE_FROM_SAFE ()
485 #. behaves identically to
486 #. .BR TAILQ_FOREACH_REVERSE_SAFE ()
487 #. when
488 #. .I var
489 #. is NULL, else it treats
490 #. .I var
491 #. as a previously found TAILQ element and begins the reverse loop at
492 #. .I var
493 #. instead of the last element in the TAILQ referenced by
494 #. .IR head .
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "B<TAILQ_FOREACH_REVERSE>() traverses the queue referenced by I<head> in the "
500 "reverse direction, assigning each element in turn to I<var>."
501 msgstr ""
502 "تعبر B<TAILQ_FOREACH_REVERSE>() الطابور المشار إليه بـ I<head> في الاتجاه "
503 "العكسي، مع تخصيص كل عنصر بدوره إلى I<var>."
504
505 #. type: SS
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "Removal"
510 msgstr "إزالة"
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "B<TAILQ_REMOVE>() removes the element I<elm> from the queue."
516 msgstr "تزيل B<TAILQ_REMOVE>() العنصر I<elm> من الطابور."
517
518 #. type: SS
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "Other features"
523 msgstr "ميزات أخرى"
524
525 #. .BR TAILQ_SWAP ()
526 #. swaps the contents of
527 #. .I head1
528 #. and
529 #. .IR head2 .
530 #. .P
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "B<TAILQ_CONCAT>() concatenates the queue headed by I<head2> onto the end of "
536 "the one headed by I<head1> removing all entries from the former."
537 msgstr ""
538 "تسلسل B<TAILQ_CONCAT>() الطابور الذي يرأسه I<head2> إلى نهاية الطابور الذي "
539 "يرأسه I<head1> مع إزالة جميع الإدخالات من الأول."
540
541 #. type: SH
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 #, no-wrap
545 msgid "RETURN VALUE"
546 msgstr "قيمة الإرجاع"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "B<TAILQ_EMPTY>() returns nonzero if the queue is empty, and zero if the "
553 "queue contains at least one entry."
554 msgstr ""
555 "ترجع B<TAILQ_EMPTY>() قيمة غير صفرية إذا كان الطابور فارغًا، وصفرًا إذا كان "
556 "الطابور يحتوي على إدخال واحد على الأقل."
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "B<TAILQ_FIRST>(), B<TAILQ_LAST>(), B<TAILQ_PREV>(), and B<TAILQ_NEXT>() "
563 "return a pointer to the first, last, previous, or next I<TYPE> structure, "
564 "respectively."
565 msgstr ""
566 "ترجع B<TAILQ_FIRST>() وB<TAILQ_LAST>() وB<TAILQ_PREV>() وB<TAILQ_NEXT>() "
567 "مؤشرًا إلى بنية I<TYPE> الأولى أو الأخيرة أو السابقة أو التالية، على التوالي."
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "B<TAILQ_HEAD_INITIALIZER>() returns an initializer that can be assigned to "
574 "the queue I<head>."
575 msgstr "ترجع B<TAILQ_HEAD_INITIALIZER>() مُهيئًا يمكن تخصيصه للطابور I<head>."
576
577 #. type: SH
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 #, no-wrap
581 msgid "STANDARDS"
582 msgstr "المعايير"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid "BSD."
588 msgstr "BSD."
589
590 #. type: SH
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "HISTORY"
595 msgstr "التاريخ"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid "4.4BSD."
601 msgstr "4.4BSD."
602
603 #. type: SH
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "CAVEATS"
608 msgstr "تحذيرات"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "B<TAILQ_FOREACH>() and B<TAILQ_FOREACH_REVERSE>() don't allow I<var> to be "
615 "removed or freed within the loop, as it would interfere with the traversal. "
616 "B<TAILQ_FOREACH_SAFE>() and B<TAILQ_FOREACH_REVERSE_SAFE>(), which are "
617 "present on the BSDs but are not present in glibc, fix this limitation by "
618 "allowing I<var> to safely be removed from the list and freed from within the "
619 "loop without interfering with the traversal."
620 msgstr ""
621 "لا تسمح B<TAILQ_FOREACH>() وB<TAILQ_FOREACH_REVERSE>() بإزالة أو تحرير "
622 "I<var> داخل الحلقة، لأن ذلك سيتداخل مع العبور. تعمل B<TAILQ_FOREACH_SAFE>() "
623 "وB<TAILQ_FOREACH_REVERSE_SAFE>()، الموجودتان في أنظمة BSD ولكن غير موجودتين "
624 "في glibc، على إصلاح هذا القيد بالسماح بإزالة I<var> بأمان من القائمة وتحريره "
625 "من داخل الحلقة دون التداخل مع العبور."
626
627 #. type: SH
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "EXAMPLES"
632 msgstr "أمثلة"
633
634 #. type: Plain text
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid ""
639 "#include E<lt>stddef.hE<gt>\n"
640 "#include E<lt>stdio.hE<gt>\n"
641 "#include E<lt>stdlib.hE<gt>\n"
642 "#include E<lt>sys/queue.hE<gt>\n"
643 "\\&\n"
644 "struct entry {\n"
645 " int data;\n"
646 " TAILQ_ENTRY(entry) entries; /* Tail queue */\n"
647 "};\n"
648 "\\&\n"
649 "TAILQ_HEAD(tailhead, entry);\n"
650 "\\&\n"
651 "int\n"
652 "main(void)\n"
653 "{\n"
654 " struct entry *n1, *n2, *n3, *np;\n"
655 " struct tailhead head; /* Tail queue head */\n"
656 " int i;\n"
657 "\\&\n"
658 " TAILQ_INIT(&head); /* Initialize the queue */\n"
659 "\\&\n"
660 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
661 " TAILQ_INSERT_HEAD(&head, n1, entries);\n"
662 "\\&\n"
663 " n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n"
664 " TAILQ_INSERT_TAIL(&head, n1, entries);\n"
665 "\\&\n"
666 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
667 " TAILQ_INSERT_AFTER(&head, n1, n2, entries);\n"
668 "\\&\n"
669 " n3 = malloc(sizeof(struct entry)); /* Insert before */\n"
670 " TAILQ_INSERT_BEFORE(n2, n3, entries);\n"
671 "\\&\n"
672 " TAILQ_REMOVE(&head, n2, entries); /* Deletion */\n"
673 " free(n2);\n"
674 " /* Forward traversal */\n"
675 " i = 0;\n"
676 " TAILQ_FOREACH(np, &head, entries)\n"
677 " np-E<gt>data = i++;\n"
678 " /* Reverse traversal */\n"
679 " TAILQ_FOREACH_REVERSE(np, &head, tailhead, entries)\n"
680 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
681 " /* TailQ deletion */\n"
682 " n1 = TAILQ_FIRST(&head);\n"
683 " while (n1 != NULL) {\n"
684 " n2 = TAILQ_NEXT(n1, entries);\n"
685 " free(n1);\n"
686 " n1 = n2;\n"
687 " }\n"
688 " TAILQ_INIT(&head);\n"
689 "\\&\n"
690 " exit(EXIT_SUCCESS);\n"
691 "}\n"
692 msgstr ""
693 "#include E<lt>stddef.hE<gt>\n"
694 "#include E<lt>stdio.hE<gt>\n"
695 "#include E<lt>stdlib.hE<gt>\n"
696 "#include E<lt>sys/queue.hE<gt>\n"
697 "\\&\n"
698 "struct entry {\n"
699 " int data;\n"
700 " TAILQ_ENTRY(entry) entries; /* Tail queue */\n"
701 "};\n"
702 "\\&\n"
703 "TAILQ_HEAD(tailhead, entry);\n"
704 "\\&\n"
705 "int\n"
706 "main(void)\n"
707 "{\n"
708 " struct entry *n1, *n2, *n3, *np;\n"
709 " struct tailhead head; /* Tail queue head */\n"
710 " int i;\n"
711 "\\&\n"
712 " TAILQ_INIT(&head); /* Initialize the queue */\n"
713 "\\&\n"
714 " n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n"
715 " TAILQ_INSERT_HEAD(&head, n1, entries);\n"
716 "\\&\n"
717 " n1 = malloc(sizeof(struct entry)); /* Insert at the tail */\n"
718 " TAILQ_INSERT_TAIL(&head, n1, entries);\n"
719 "\\&\n"
720 " n2 = malloc(sizeof(struct entry)); /* Insert after */\n"
721 " TAILQ_INSERT_AFTER(&head, n1, n2, entries);\n"
722 "\\&\n"
723 " n3 = malloc(sizeof(struct entry)); /* Insert before */\n"
724 " TAILQ_INSERT_BEFORE(n2, n3, entries);\n"
725 "\\&\n"
726 " TAILQ_REMOVE(&head, n2, entries); /* Deletion */\n"
727 " free(n2);\n"
728 " /* Forward traversal */\n"
729 " i = 0;\n"
730 " TAILQ_FOREACH(np, &head, entries)\n"
731 " np-E<gt>data = i++;\n"
732 " /* Reverse traversal */\n"
733 " TAILQ_FOREACH_REVERSE(np, &head, tailhead, entries)\n"
734 " printf(\"%i\\[rs]n\", np-E<gt>data);\n"
735 " /* TailQ deletion */\n"
736 " n1 = TAILQ_FIRST(&head);\n"
737 " while (n1 != NULL) {\n"
738 " n2 = TAILQ_NEXT(n1, entries);\n"
739 " free(n1);\n"
740 " n1 = n2;\n"
741 " }\n"
742 " TAILQ_INIT(&head);\n"
743 "\\&\n"
744 " exit(EXIT_SUCCESS);\n"
745 "}\n"
746
747 #. SRC END
748 #. type: SH
749 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
750 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
751 #, no-wrap
752 msgid "SEE ALSO"
753 msgstr "انظر أيضًا"
754
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 msgid "B<insque>(3), B<queue>(7)"
759 msgstr "B<insque>(3)، B<queue>(7)"
760
761 #. type: TH
762 #: debian-trixie
763 #, no-wrap
764 msgid "2024-06-15"
765 msgstr "15 يونيو 2024"
766
767 #. type: TH
768 #: debian-trixie
769 #, no-wrap
770 msgid "Linux man-pages 6.9.1"
771 msgstr "صفحات دليل لينكس 6.9.1"
772
773 #. type: Plain text
774 #: debian-trixie
775 msgid "Standard C library (I<libc>, I<-lc>)"
776 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
777
778 #. type: TH
779 #: fedora-44 fedora-rawhide
780 #, no-wrap
781 msgid "2024-07-23"
782 msgstr "23 يوليو 2024"
783
784 #. type: TH
785 #: fedora-44 fedora-rawhide
786 #, no-wrap
787 msgid "Linux man-pages 6.13"
788 msgstr "صفحات دليل لينكس 6.13"
789
790 #. type: TH
791 #: mageia-cauldron
792 #, no-wrap
793 msgid "Linux man-pages 6.17"
794 msgstr "صفحات دليل لينكس 6.17"
795
796 #. type: TH
797 #: opensuse-leap-16-1 opensuse-tumbleweed
798 #, no-wrap
799 msgid "Linux man-pages (unreleased)"
800 msgstr "صفحات دليل لينكس (لم تصدر بعد)"