| 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:29+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-02 19:31+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 "LIST" |
| 25 |
msgstr "القائمة" |
| 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 |
#. LIST_FOREACH_FROM, |
| 48 |
#. LIST_FOREACH_SAFE, |
| 49 |
#. LIST_FOREACH_FROM_SAFE, |
| 50 |
#. LIST_PREV, |
| 51 |
#. LIST_SWAP |
| 52 |
#. type: Plain text |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
msgid "" |
| 56 |
"LIST_EMPTY, LIST_ENTRY, LIST_FIRST, LIST_FOREACH, LIST_HEAD, " |
| 57 |
"LIST_HEAD_INITIALIZER, LIST_INIT, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, " |
| 58 |
"LIST_INSERT_HEAD, LIST_NEXT, LIST_REMOVE - implementation of a doubly linked " |
| 59 |
"list" |
| 60 |
msgstr "" |
| 61 |
"LIST_EMPTY, LIST_ENTRY, LIST_FIRST, LIST_FOREACH, LIST_HEAD, " |
| 62 |
"LIST_HEAD_INITIALIZER, LIST_INIT, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, " |
| 63 |
"LIST_INSERT_HEAD, LIST_NEXT, LIST_REMOVE - تنفيذ قائمة مرتبطة مزدوجة" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "LIBRARY" |
| 70 |
msgstr "المكتبة" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 74 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 76 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 77 |
|
| 78 |
#. type: SH |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "SYNOPSIS" |
| 83 |
msgstr "موجز" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "B<#include E<lt>sys/queue.hE<gt>>\n" |
| 90 |
msgstr "B<#include E<lt>sys/queue.hE<gt>>\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 |
#, no-wrap |
| 96 |
msgid "B<LIST_ENTRY(TYPE);>\n" |
| 97 |
msgstr "B<LIST_ENTRY(TYPE);>\n" |
| 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 |
#, no-wrap |
| 103 |
msgid "" |
| 104 |
"B<LIST_HEAD(HEADNAME, TYPE);>\n" |
| 105 |
"B<LIST_HEAD LIST_HEAD_INITIALIZER(LIST_HEAD >I<head>B<);>\n" |
| 106 |
"B<void LIST_INIT(LIST_HEAD *>I<head>B<);>\n" |
| 107 |
msgstr "" |
| 108 |
"B<LIST_HEAD(HEADNAME, TYPE);>\n" |
| 109 |
"B<LIST_HEAD LIST_HEAD_INITIALIZER(LIST_HEAD >I<head>B<);>\n" |
| 110 |
"B<void LIST_INIT(LIST_HEAD *>I<head>B<);>\n" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "B<int LIST_EMPTY(LIST_HEAD *>I<head>B<);>\n" |
| 117 |
msgstr "B<int LIST_EMPTY(LIST_HEAD *>I<head>B<);>\n" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
#, no-wrap |
| 123 |
msgid "" |
| 124 |
"B<void LIST_INSERT_HEAD(LIST_HEAD *>I<head>B<,>\n" |
| 125 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 126 |
"B<void LIST_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n" |
| 127 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 128 |
"B<void LIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 129 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 130 |
msgstr "" |
| 131 |
"B<void LIST_INSERT_HEAD(LIST_HEAD *>I<head>B<,>\n" |
| 132 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 133 |
"B<void LIST_INSERT_BEFORE(struct TYPE *>I<listelm>B<,>\n" |
| 134 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 135 |
"B<void LIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 136 |
"B< struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 137 |
|
| 138 |
#. .BI "struct TYPE *LIST_PREV(struct TYPE *" elm ", LIST_HEAD *" head , |
| 139 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, no-wrap |
| 144 |
msgid "" |
| 145 |
"B<struct TYPE *LIST_FIRST(LIST_HEAD *>I<head>B<);>\n" |
| 146 |
"B<struct TYPE *LIST_NEXT(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 147 |
msgstr "" |
| 148 |
"B<struct TYPE *LIST_FIRST(LIST_HEAD *>I<head>B<);>\n" |
| 149 |
"B<struct TYPE *LIST_NEXT(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 150 |
|
| 151 |
#. .BI "LIST_FOREACH_FROM(struct TYPE *" var ", LIST_HEAD *" head ", LIST_ENTRY " NAME ); |
| 152 |
#. .P |
| 153 |
#. .BI "LIST_FOREACH_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 154 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 155 |
#. .BI "LIST_FOREACH_FROM_SAFE(struct TYPE *" var ", LIST_HEAD *" head , |
| 156 |
#. .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
#, no-wrap |
| 161 |
msgid "B<LIST_FOREACH(struct TYPE *>I<var>B<, LIST_HEAD *>I<head>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 162 |
msgstr "B<LIST_FOREACH(struct TYPE *>I<var>B<, LIST_HEAD *>I<head>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 163 |
|
| 164 |
#. .P |
| 165 |
#. .BI "void LIST_SWAP(LIST_HEAD *" head1 ", LIST_HEAD *" head2 , |
| 166 |
#. .BI " struct TYPE, LIST_ENTRY " NAME ); |
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
#, no-wrap |
| 171 |
msgid "B<void LIST_REMOVE(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 172 |
msgstr "B<void LIST_REMOVE(struct TYPE *>I<elm>B<, LIST_ENTRY >I<NAME>B<);>\n" |
| 173 |
|
| 174 |
#. type: SH |
| 175 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 176 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 177 |
#, no-wrap |
| 178 |
msgid "DESCRIPTION" |
| 179 |
msgstr "الوصف" |
| 180 |
|
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
msgid "These macros define and operate on doubly linked lists." |
| 185 |
msgstr "تُعرِّف هذه الكليّات وتُشغّل القوائم المرتبطة المزدوجة." |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"In the macro definitions, I<TYPE> is the name of a user-defined structure, " |
| 192 |
"that must contain a field of type I<LIST_ENTRY>, named I<NAME>. The " |
| 193 |
"argument I<HEADNAME> is the name of a user-defined structure that must be " |
| 194 |
"declared using the macro B<LIST_HEAD>()." |
| 195 |
msgstr "" |
| 196 |
"في تعريفات الكليّات، I<TYPE> هو اسم هيكل مُعرَّف من المستخدم، يجب أن يحتوي على " |
| 197 |
"حقل من نوع I<LIST_ENTRY>، يُسمى I<NAME>. المعامل I<HEADNAME> هو اسم هيكل مُعرَّف " |
| 198 |
"من المستخدم يجب التصريح به باستخدام الكليّة B<LIST_HEAD>()." |
| 199 |
|
| 200 |
#. type: SS |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
#, no-wrap |
| 204 |
msgid "Creation" |
| 205 |
msgstr "الإنشاء" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "" |
| 211 |
"A list is headed by a structure defined by the B<LIST_HEAD>() macro. This " |
| 212 |
"structure contains a single pointer to the first element on the list. The " |
| 213 |
"elements are doubly linked so that an arbitrary element can be removed " |
| 214 |
"without traversing the list. New elements can be added to the list after an " |
| 215 |
"existing element, before an existing element, or at the head of the list. A " |
| 216 |
"I<LIST_HEAD> structure is declared as follows:" |
| 217 |
msgstr "" |
| 218 |
"ترأس القائمة هيكل مُعرَّف بواسطة الكليّة B<LIST_HEAD>(). يحتوي هذا الهيكل على " |
| 219 |
"مؤشر واحد للعنصر الأول في القائمة. العناصر مرتبطة مزدوجًا بحيث يمكن إزالة أي " |
| 220 |
"عنصر عشوائي دون اجتياز القائمة. يمكن إضافة عناصر جديدة إلى القائمة بعد عنصر " |
| 221 |
"موجود، أو قبل عنصر موجود، أو في رأس القائمة. يُصرَّح عن هيكل I<LIST_HEAD> " |
| 222 |
"كالتالي:" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "LIST_HEAD(HEADNAME, TYPE) head;\n" |
| 229 |
msgstr "LIST_HEAD(HEADNAME, TYPE) head;\n" |
| 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 |
"where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> " |
| 236 |
"is the type of the elements to be linked into the list. A pointer to the " |
| 237 |
"head of the list can later be declared as:" |
| 238 |
msgstr "" |
| 239 |
"حيث I<struct HEADNAME> هي البنية المراد تعريفها، و I<struct TYPE> هو نوع " |
| 240 |
"العناصر المراد ربطها في القائمة. يمكن لاحقًا التصريح عن مؤشر لرأس القائمة كـ:" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "struct HEADNAME *headp;\n" |
| 247 |
msgstr "struct HEADNAME *headp;\n" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "(The names I<head> and I<headp> are user selectable.)" |
| 253 |
msgstr "(الاسمان I<head> و I<headp> يمكن للمستخدم اختيارهما.)" |
| 254 |
|
| 255 |
#. type: Plain text |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
msgid "" |
| 259 |
"B<LIST_ENTRY>() declares a structure that connects the elements in the list." |
| 260 |
msgstr "تُصرِّح B<LIST_ENTRY>() عن هيكل يربط العناصر في القائمة." |
| 261 |
|
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
msgid "" |
| 266 |
"B<LIST_HEAD_INITIALIZER>() evaluates to an initializer for the list I<head>." |
| 267 |
msgstr "تُقيِّم B<LIST_HEAD_INITIALIZER>() إلى مُهيِّئ للقائمة I<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 |
msgid "B<LIST_INIT>() initializes the list referenced by I<head>." |
| 273 |
msgstr "تهيِّئ B<LIST_INIT>() القائمة المشار إليها بواسطة I<head>." |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "" |
| 279 |
"B<LIST_EMPTY>() evaluates to true if there are no elements in the list." |
| 280 |
msgstr "تُقيِّم B<LIST_EMPTY>() إلى صحيح إذا لم تكن هناك عناصر في القائمة." |
| 281 |
|
| 282 |
#. type: SS |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "Insertion" |
| 287 |
msgstr "إدراج" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
msgid "" |
| 293 |
"B<LIST_INSERT_HEAD>() inserts the new element I<elm> at the head of the " |
| 294 |
"list." |
| 295 |
msgstr "تُدرج B<LIST_INSERT_HEAD>() العنصر الجديد I<elm> في رأس القائمة." |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "" |
| 301 |
"B<LIST_INSERT_BEFORE>() inserts the new element I<elm> before the element " |
| 302 |
"I<listelm>." |
| 303 |
msgstr "" |
| 304 |
"تُدرج B<LIST_INSERT_BEFORE>() العنصر الجديد I<elm> قبل العنصر I<listelm>." |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
msgid "" |
| 310 |
"B<LIST_INSERT_AFTER>() inserts the new element I<elm> after the element " |
| 311 |
"I<listelm>." |
| 312 |
msgstr "" |
| 313 |
"تُدرج B<LIST_INSERT_AFTER>() العنصر الجديد I<elm> بعد العنصر I<listelm>." |
| 314 |
|
| 315 |
#. type: SS |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "Traversal" |
| 320 |
msgstr "اجتياز" |
| 321 |
|
| 322 |
#. .P |
| 323 |
#. .BR LIST_PREV () |
| 324 |
#. returns the previous element in the list, or NULL if this is the first. |
| 325 |
#. List |
| 326 |
#. .I head |
| 327 |
#. must contain element |
| 328 |
#. .IR elm . |
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
msgid "" |
| 333 |
"B<LIST_FIRST>() returns the first element in the list, or NULL if the list " |
| 334 |
"is empty." |
| 335 |
msgstr "" |
| 336 |
"تُرجع B<LIST_FIRST>() العنصر الأول في القائمة، أو NULL إذا كانت القائمة فارغة." |
| 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<LIST_NEXT>() returns the next element in the list, or NULL if this is the " |
| 343 |
"last." |
| 344 |
msgstr "" |
| 345 |
"تُعيد B<LIST_NEXT>() العنصر التالي في القائمة، أو NULL إذا كان هذا هو الأخير." |
| 346 |
|
| 347 |
#. .P |
| 348 |
#. .BR LIST_FOREACH_FROM () |
| 349 |
#. behaves identically to |
| 350 |
#. .BR LIST_FOREACH () |
| 351 |
#. when |
| 352 |
#. .I var |
| 353 |
#. is NULL, else it treats |
| 354 |
#. .I var |
| 355 |
#. as a previously found LIST element and begins the loop at |
| 356 |
#. .I var |
| 357 |
#. instead of the first element in the LIST referenced by |
| 358 |
#. .IR head . |
| 359 |
#. .P |
| 360 |
#. .BR LIST_FOREACH_SAFE () |
| 361 |
#. traverses the list referenced by |
| 362 |
#. .I head |
| 363 |
#. in the forward direction, assigning each element in turn to |
| 364 |
#. .IR var . |
| 365 |
#. However, unlike |
| 366 |
#. .BR LIST_FOREACH () |
| 367 |
#. here it is permitted to both remove |
| 368 |
#. .I var |
| 369 |
#. as well as free it from within the loop safely without interfering with the |
| 370 |
#. traversal. |
| 371 |
#. .P |
| 372 |
#. .BR LIST_FOREACH_FROM_SAFE () |
| 373 |
#. behaves identically to |
| 374 |
#. .BR LIST_FOREACH_SAFE () |
| 375 |
#. when |
| 376 |
#. .I var |
| 377 |
#. is NULL, else it treats |
| 378 |
#. .I var |
| 379 |
#. as a previously found LIST element and begins the loop at |
| 380 |
#. .I var |
| 381 |
#. instead of the first element in the LIST referenced by |
| 382 |
#. .IR head . |
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"B<LIST_FOREACH>() traverses the list referenced by I<head> in the forward " |
| 388 |
"direction, assigning each element in turn to I<var>." |
| 389 |
msgstr "" |
| 390 |
"تتجول B<LIST_FOREACH>() عبر القائمة المُشار إليها بواسطة I<head> في الاتجاه " |
| 391 |
"الأمامي، مُسندة كل عنصر بدوره إلى I<var>." |
| 392 |
|
| 393 |
#. type: SS |
| 394 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 395 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 396 |
#, no-wrap |
| 397 |
msgid "Removal" |
| 398 |
msgstr "إزالة" |
| 399 |
|
| 400 |
#. .SS Other features |
| 401 |
#. .BR LIST_SWAP () |
| 402 |
#. swaps the contents of |
| 403 |
#. .I head1 |
| 404 |
#. and |
| 405 |
#. .IR head2 . |
| 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 "B<LIST_REMOVE>() removes the element I<elm> from the list." |
| 410 |
msgstr "تُزيل B<LIST_REMOVE>() العنصر I<elm> من القائمة." |
| 411 |
|
| 412 |
#. type: SH |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
#, no-wrap |
| 416 |
msgid "RETURN VALUE" |
| 417 |
msgstr "قيمة الإرجاع" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
msgid "" |
| 423 |
"B<LIST_EMPTY>() returns nonzero if the list is empty, and zero if the list " |
| 424 |
"contains at least one entry." |
| 425 |
msgstr "" |
| 426 |
"تُعيد B<LIST_EMPTY>() قيمة غير صفرية إذا كانت القائمة فارغة، وصفرًا إذا كانت " |
| 427 |
"القائمة تحتوي على إدخال واحد على الأقل." |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
msgid "" |
| 433 |
"B<LIST_FIRST>(), and B<LIST_NEXT>() return a pointer to the first or next " |
| 434 |
"I<TYPE> structure, respectively." |
| 435 |
msgstr "" |
| 436 |
"تُعيد B<LIST_FIRST>() و B<LIST_NEXT>() مؤشرًا إلى أول بنية I<TYPE> أو التالية، " |
| 437 |
"على التوالي." |
| 438 |
|
| 439 |
#. type: Plain text |
| 440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 442 |
msgid "" |
| 443 |
"B<LIST_HEAD_INITIALIZER>() returns an initializer that can be assigned to " |
| 444 |
"the list I<head>." |
| 445 |
msgstr "تُعيد B<LIST_HEAD_INITIALIZER>() مُهيئًا يمكن إسناده إلى القائمة I<head>." |
| 446 |
|
| 447 |
#. type: SH |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "STANDARDS" |
| 452 |
msgstr "المعايير" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "BSD." |
| 458 |
msgstr "BSD." |
| 459 |
|
| 460 |
#. type: SH |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
#, no-wrap |
| 464 |
msgid "HISTORY" |
| 465 |
msgstr "التاريخ" |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "4.4BSD." |
| 471 |
msgstr "4.4BSD." |
| 472 |
|
| 473 |
#. type: SH |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "BUGS" |
| 478 |
msgstr "العلل" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"B<LIST_FOREACH>() doesn't allow I<var> to be removed or freed within the " |
| 485 |
"loop, as it would interfere with the traversal. B<LIST_FOREACH_SAFE>(), " |
| 486 |
"which is present on the BSDs but is not present in glibc, fixes this " |
| 487 |
"limitation by allowing I<var> to safely be removed from the list and freed " |
| 488 |
"from within the loop without interfering with the traversal." |
| 489 |
msgstr "" |
| 490 |
"لا تسمح B<LIST_FOREACH>() بإزالة أو تحرير I<var> داخل الحلقة، لأن ذلك " |
| 491 |
"سيتداخل مع التجوال. تُصلح B<LIST_FOREACH_SAFE>()، الموجودة في أنظمة BSD " |
| 492 |
"ولكنها غير موجودة في glibc، هذا القيد بالسماح بإزالة I<var> بأمان من القائمة " |
| 493 |
"وتحريره من داخل الحلقة دون التداخل مع التجوال." |
| 494 |
|
| 495 |
#. type: SH |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "EXAMPLES" |
| 500 |
msgstr "أمثلة" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
#, no-wrap |
| 506 |
msgid "" |
| 507 |
"#include E<lt>stddef.hE<gt>\n" |
| 508 |
"#include E<lt>stdio.hE<gt>\n" |
| 509 |
"#include E<lt>stdlib.hE<gt>\n" |
| 510 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 511 |
"\\&\n" |
| 512 |
"struct entry {\n" |
| 513 |
" int data;\n" |
| 514 |
" LIST_ENTRY(entry) entries; /* List */\n" |
| 515 |
"};\n" |
| 516 |
"\\&\n" |
| 517 |
"LIST_HEAD(listhead, entry);\n" |
| 518 |
"\\&\n" |
| 519 |
"int\n" |
| 520 |
"main(void)\n" |
| 521 |
"{\n" |
| 522 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 523 |
" struct listhead head; /* List head */\n" |
| 524 |
" int i;\n" |
| 525 |
"\\&\n" |
| 526 |
" LIST_INIT(&head); /* Initialize the list */\n" |
| 527 |
"\\&\n" |
| 528 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 529 |
" LIST_INSERT_HEAD(&head, n1, entries);\n" |
| 530 |
"\\&\n" |
| 531 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 532 |
" LIST_INSERT_AFTER(n1, n2, entries);\n" |
| 533 |
"\\&\n" |
| 534 |
" n3 = malloc(sizeof(struct entry)); /* Insert before */\n" |
| 535 |
" LIST_INSERT_BEFORE(n2, n3, entries);\n" |
| 536 |
"\\&\n" |
| 537 |
" i = 0; /* Forward traversal */\n" |
| 538 |
" LIST_FOREACH(np, &head, entries)\n" |
| 539 |
" np-E<gt>data = i++;\n" |
| 540 |
"\\&\n" |
| 541 |
" LIST_REMOVE(n2, entries); /* Deletion */\n" |
| 542 |
" free(n2);\n" |
| 543 |
" /* Forward traversal */\n" |
| 544 |
" LIST_FOREACH(np, &head, entries)\n" |
| 545 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 546 |
" /* List deletion */\n" |
| 547 |
" n1 = LIST_FIRST(&head);\n" |
| 548 |
" while (n1 != NULL) {\n" |
| 549 |
" n2 = LIST_NEXT(n1, entries);\n" |
| 550 |
" free(n1);\n" |
| 551 |
" n1 = n2;\n" |
| 552 |
" }\n" |
| 553 |
" LIST_INIT(&head);\n" |
| 554 |
"\\&\n" |
| 555 |
" exit(EXIT_SUCCESS);\n" |
| 556 |
"}\n" |
| 557 |
msgstr "" |
| 558 |
"#include E<lt>stddef.hE<gt>\n" |
| 559 |
"#include E<lt>stdio.hE<gt>\n" |
| 560 |
"#include E<lt>stdlib.hE<gt>\n" |
| 561 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 562 |
"\\&\n" |
| 563 |
"struct entry {\n" |
| 564 |
" int data;\n" |
| 565 |
" LIST_ENTRY(entry) entries; /* List */\n" |
| 566 |
"};\n" |
| 567 |
"\\&\n" |
| 568 |
"LIST_HEAD(listhead, entry);\n" |
| 569 |
"\\&\n" |
| 570 |
"int\n" |
| 571 |
"main(void)\n" |
| 572 |
"{\n" |
| 573 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 574 |
" struct listhead head; /* List head */\n" |
| 575 |
" int i;\n" |
| 576 |
"\\&\n" |
| 577 |
" LIST_INIT(&head); /* Initialize the list */\n" |
| 578 |
"\\&\n" |
| 579 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 580 |
" LIST_INSERT_HEAD(&head, n1, entries);\n" |
| 581 |
"\\&\n" |
| 582 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 583 |
" LIST_INSERT_AFTER(n1, n2, entries);\n" |
| 584 |
"\\&\n" |
| 585 |
" n3 = malloc(sizeof(struct entry)); /* Insert before */\n" |
| 586 |
" LIST_INSERT_BEFORE(n2, n3, entries);\n" |
| 587 |
"\\&\n" |
| 588 |
" i = 0; /* Forward traversal */\n" |
| 589 |
" LIST_FOREACH(np, &head, entries)\n" |
| 590 |
" np-E<gt>data = i++;\n" |
| 591 |
"\\&\n" |
| 592 |
" LIST_REMOVE(n2, entries); /* Deletion */\n" |
| 593 |
" free(n2);\n" |
| 594 |
" /* Forward traversal */\n" |
| 595 |
" LIST_FOREACH(np, &head, entries)\n" |
| 596 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 597 |
" /* List deletion */\n" |
| 598 |
" n1 = LIST_FIRST(&head);\n" |
| 599 |
" while (n1 != NULL) {\n" |
| 600 |
" n2 = LIST_NEXT(n1, entries);\n" |
| 601 |
" free(n1);\n" |
| 602 |
" n1 = n2;\n" |
| 603 |
" }\n" |
| 604 |
" LIST_INIT(&head);\n" |
| 605 |
"\\&\n" |
| 606 |
" exit(EXIT_SUCCESS);\n" |
| 607 |
"}\n" |
| 608 |
|
| 609 |
#. SRC END |
| 610 |
#. type: SH |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
#, no-wrap |
| 614 |
msgid "SEE ALSO" |
| 615 |
msgstr "انظر أيضًا" |
| 616 |
|
| 617 |
#. type: Plain text |
| 618 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 619 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 620 |
msgid "B<insque>(3), B<queue>(7)" |
| 621 |
msgstr "B<insque>(3)، B<queue>(7)" |
| 622 |
|
| 623 |
#. type: TH |
| 624 |
#: debian-trixie |
| 625 |
#, no-wrap |
| 626 |
msgid "2024-06-15" |
| 627 |
msgstr "15 يونيو 2024" |
| 628 |
|
| 629 |
#. type: TH |
| 630 |
#: debian-trixie |
| 631 |
#, no-wrap |
| 632 |
msgid "Linux man-pages 6.9.1" |
| 633 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 634 |
|
| 635 |
#. type: Plain text |
| 636 |
#: debian-trixie |
| 637 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 638 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 639 |
|
| 640 |
#. type: TH |
| 641 |
#: fedora-44 fedora-rawhide |
| 642 |
#, no-wrap |
| 643 |
msgid "2024-07-23" |
| 644 |
msgstr "23 يوليو 2024" |
| 645 |
|
| 646 |
#. type: TH |
| 647 |
#: fedora-44 fedora-rawhide |
| 648 |
#, no-wrap |
| 649 |
msgid "Linux man-pages 6.13" |
| 650 |
msgstr "صفحات دليل لينكس 6.13" |
| 651 |
|
| 652 |
#. type: TH |
| 653 |
#: mageia-cauldron |
| 654 |
#, no-wrap |
| 655 |
msgid "Linux man-pages 6.17" |
| 656 |
msgstr "صفحات دليل لينكس 6.17" |
| 657 |
|
| 658 |
#. type: TH |
| 659 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
#, no-wrap |
| 661 |
msgid "Linux man-pages (unreleased)" |
| 662 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |