| 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:43+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-03 18:19+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 "SLIST" |
| 25 |
msgstr "SLIST" |
| 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 |
#. SLIST_FOREACH_FROM, |
| 48 |
#. SLIST_FOREACH_FROM_SAFE, |
| 49 |
#. SLIST_FOREACH_SAFE, |
| 50 |
#. SLIST_REMOVE_AFTER, |
| 51 |
#. SLIST_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 |
"SLIST_EMPTY, SLIST_ENTRY, SLIST_FIRST, SLIST_FOREACH, SLIST_HEAD, " |
| 57 |
"SLIST_HEAD_INITIALIZER, SLIST_INIT, SLIST_INSERT_AFTER, SLIST_INSERT_HEAD, " |
| 58 |
"SLIST_NEXT, SLIST_REMOVE, SLIST_REMOVE_HEAD - implementation of a singly " |
| 59 |
"linked list" |
| 60 |
msgstr "" |
| 61 |
"SLIST_EMPTY، SLIST_ENTRY، SLIST_FIRST، SLIST_FOREACH، SLIST_HEAD، " |
| 62 |
"SLIST_HEAD_INITIALIZER، SLIST_INIT، SLIST_INSERT_AFTER، SLIST_INSERT_HEAD، " |
| 63 |
"SLIST_NEXT، SLIST_REMOVE، SLIST_REMOVE_HEAD - تنفيذ قائمة مرتبطة منفردة" |
| 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<SLIST_ENTRY(TYPE);>\n" |
| 97 |
msgstr "B<SLIST_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<SLIST_HEAD(HEADNAME, TYPE);>\n" |
| 105 |
"B<SLIST_HEAD SLIST_HEAD_INITIALIZER(SLIST_HEAD >I<head>B<);>\n" |
| 106 |
"B<void SLIST_INIT(SLIST_HEAD *>I<head>B<);>\n" |
| 107 |
msgstr "" |
| 108 |
"B<SLIST_HEAD(HEADNAME, TYPE);>\n" |
| 109 |
"B<SLIST_HEAD SLIST_HEAD_INITIALIZER(SLIST_HEAD >I<head>B<);>\n" |
| 110 |
"B<void SLIST_INIT(SLIST_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 SLIST_EMPTY(SLIST_HEAD *>I<head>B<);>\n" |
| 117 |
msgstr "B<int SLIST_EMPTY(SLIST_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 SLIST_INSERT_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 125 |
"B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 126 |
"B<void SLIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 127 |
"B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 128 |
msgstr "" |
| 129 |
"B<void SLIST_INSERT_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 130 |
"B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 131 |
"B<void SLIST_INSERT_AFTER(struct TYPE *>I<listelm>B<,>\n" |
| 132 |
"B< struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 133 |
|
| 134 |
#. type: Plain text |
| 135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 137 |
#, no-wrap |
| 138 |
msgid "" |
| 139 |
"B<struct TYPE *SLIST_FIRST(SLIST_HEAD *>I<head>B<);>\n" |
| 140 |
"B<struct TYPE *SLIST_NEXT(struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 141 |
msgstr "" |
| 142 |
"B<struct TYPE *SLIST_FIRST(SLIST_HEAD *>I<head>B<);>\n" |
| 143 |
"B<struct TYPE *SLIST_NEXT(struct TYPE *>I<elm>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 144 |
|
| 145 |
#. .BI "SLIST_FOREACH_FROM(struct TYPE *" var ", SLIST_HEAD *" head , |
| 146 |
#. .BI " SLIST_ENTRY " NAME ); |
| 147 |
#. .P |
| 148 |
#. .BI "SLIST_FOREACH_SAFE(struct TYPE *" var ", SLIST_HEAD *" head , |
| 149 |
#. .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 150 |
#. .BI "SLIST_FOREACH_FROM_SAFE(struct TYPE *" var ", SLIST_HEAD *" head , |
| 151 |
#. .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var ); |
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<SLIST_FOREACH(struct TYPE *>I<var>B<, SLIST_HEAD *>I<head>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 157 |
msgstr "B<SLIST_FOREACH(struct TYPE *>I<var>B<, SLIST_HEAD *>I<head>B<, SLIST_ENTRY >I<NAME>B<);>\n" |
| 158 |
|
| 159 |
#. .BI "void SLIST_REMOVE_AFTER(struct TYPE *" elm , |
| 160 |
#. .BI " SLIST_ENTRY " NAME ); |
| 161 |
#. .P |
| 162 |
#. .BI "void SLIST_SWAP(SLIST_HEAD *" head1 ", SLIST_HEAD *" head2 , |
| 163 |
#. .BI " SLIST_ENTRY " NAME ); |
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 166 |
#: opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "" |
| 169 |
"B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<, TYPE,>\n" |
| 170 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 171 |
"B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 172 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 173 |
msgstr "" |
| 174 |
"B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<, TYPE,>\n" |
| 175 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 176 |
"B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 177 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 178 |
|
| 179 |
#. type: SH |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "DESCRIPTION" |
| 184 |
msgstr "الوصف" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "These macros define and operate on singly linked lists." |
| 190 |
msgstr "تُعرِّف هذه الكليّات وتُشغِّل القوائم المرتبطة منفردة." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"In the macro definitions, I<TYPE> is the name of a user-defined structure, " |
| 197 |
"that must contain a field of type I<SLIST_ENTRY>, named I<NAME>. The " |
| 198 |
"argument I<HEADNAME> is the name of a user-defined structure that must be " |
| 199 |
"declared using the macro B<SLIST_HEAD>()." |
| 200 |
msgstr "" |
| 201 |
"في تعريفات الكليّات، I<TYPE> هو اسم بنية مُعرَّفة من قبل المستخدم، يجب أن تحتوي " |
| 202 |
"على حقل من النوع I<SLIST_ENTRY>، مُسمّى I<NAME>. المُعامل I<HEADNAME> هو اسم " |
| 203 |
"بنية مُعرَّفة من قبل المستخدم يجب أن تُصرَّح باستخدام الكليّة B<SLIST_HEAD>()." |
| 204 |
|
| 205 |
#. type: SS |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "Creation" |
| 210 |
msgstr "الإنشاء" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "" |
| 216 |
"A singly linked list is headed by a structure defined by the " |
| 217 |
"B<SLIST_HEAD>() macro. This structure contains a single pointer to the " |
| 218 |
"first element on the list. The elements are singly linked for minimum space " |
| 219 |
"and pointer manipulation overhead at the expense of O(n) removal for " |
| 220 |
"arbitrary elements. New elements can be added to the list after an existing " |
| 221 |
"element or at the head of the list. An I<SLIST_HEAD> structure is declared " |
| 222 |
"as follows:" |
| 223 |
msgstr "" |
| 224 |
"القائمة المرتبطة منفردة يرأسها بنية مُعرَّفة بواسطة الكليّة B<SLIST_HEAD>(). " |
| 225 |
"تحتوي هذه البنية على مؤشر وحيد إلى أول عنصر في القائمة. العناصر مرتبطة " |
| 226 |
"منفردة لتقليل المساحة وكلفة معالجة المؤشرات على حساب إزالة O(n) للعناصر " |
| 227 |
"العشوائية. يمكن إضافة عناصر جديدة إلى القائمة بعد عنصر موجود أو في رأس " |
| 228 |
"القائمة. تُصرَّح بنية I<SLIST_HEAD> كالتالي:" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "SLIST_HEAD(HEADNAME, TYPE) head;\n" |
| 235 |
msgstr "SLIST_HEAD(HEADNAME, TYPE) head;\n" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"where I<struct HEADNAME> is the structure to be defined, and I<struct TYPE> " |
| 242 |
"is the type of the elements to be linked into the list. A pointer to the " |
| 243 |
"head of the list can later be declared as:" |
| 244 |
msgstr "" |
| 245 |
"حيث I<struct HEADNAME> هي البنية المراد تعريفها، و I<struct TYPE> هو نوع " |
| 246 |
"العناصر المراد ربطها في القائمة. يمكن لاحقًا التصريح عن مؤشر لرأس القائمة كـ:" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "struct HEADNAME *headp;\n" |
| 253 |
msgstr "struct HEADNAME *headp;\n" |
| 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 "(The names I<head> and I<headp> are user selectable.)" |
| 259 |
msgstr "(الاسمان I<head> و I<headp> يمكن للمستخدم اختيارهما.)" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "" |
| 265 |
"B<SLIST_ENTRY>() declares a structure that connects the elements in the " |
| 266 |
"list." |
| 267 |
msgstr "B<SLIST_ENTRY>() تُصرِّح ببنية تربط العناصر في القائمة." |
| 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 "" |
| 273 |
"B<SLIST_HEAD_INITIALIZER>() evaluates to an initializer for the list " |
| 274 |
"I<head>." |
| 275 |
msgstr "B<SLIST_HEAD_INITIALIZER>() تُقيَّم إلى مُهيِّئ للقائمة I<head>." |
| 276 |
|
| 277 |
#. type: Plain text |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
msgid "B<SLIST_INIT>() initializes the list referenced by I<head>." |
| 281 |
msgstr "B<SLIST_INIT>() تُهيِّئ القائمة المُشار إليها بواسطة I<head>." |
| 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 |
msgid "" |
| 287 |
"B<SLIST_EMPTY>() evaluates to true if there are no elements in the list." |
| 288 |
msgstr "B<SLIST_EMPTY>() تُقيَّم إلى صحيح إذا لم تكن هناك عناصر في القائمة." |
| 289 |
|
| 290 |
#. type: SS |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "Insertion" |
| 295 |
msgstr "إدراج" |
| 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<SLIST_INSERT_HEAD>() inserts the new element I<elm> at the head of the " |
| 302 |
"list." |
| 303 |
msgstr "B<SLIST_INSERT_HEAD>() تُدرج العنصر الجديد I<elm> في رأس القائمة." |
| 304 |
|
| 305 |
#. type: Plain text |
| 306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 308 |
msgid "" |
| 309 |
"B<SLIST_INSERT_AFTER>() inserts the new element I<elm> after the element " |
| 310 |
"I<listelm>." |
| 311 |
msgstr "" |
| 312 |
"B<SLIST_INSERT_AFTER>() تُدرج العنصر الجديد I<elm> بعد العنصر I<listelm>." |
| 313 |
|
| 314 |
#. type: SS |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "Traversal" |
| 319 |
msgstr "اجتياز" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "" |
| 325 |
"B<SLIST_FIRST>() returns the first element in the list, or NULL if the list " |
| 326 |
"is empty." |
| 327 |
msgstr "" |
| 328 |
"B<SLIST_FIRST>() تُعيد أول عنصر في القائمة، أو NULL إذا كانت القائمة فارغة." |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "B<SLIST_NEXT>() returns the next element in the list." |
| 334 |
msgstr "B<SLIST_NEXT>() تُعيد العنصر التالي في القائمة." |
| 335 |
|
| 336 |
#. .P |
| 337 |
#. .BR SLIST_FOREACH_FROM () |
| 338 |
#. behaves identically to |
| 339 |
#. .BR SLIST_FOREACH () |
| 340 |
#. when |
| 341 |
#. .I var |
| 342 |
#. is NULL, else it treats |
| 343 |
#. .I var |
| 344 |
#. as a previously found SLIST element and begins the loop at |
| 345 |
#. .I var |
| 346 |
#. instead of the first element in the SLIST referenced by |
| 347 |
#. .IR head . |
| 348 |
#. .Pp |
| 349 |
#. .BR SLIST_FOREACH_SAFE () |
| 350 |
#. traverses the list referenced by |
| 351 |
#. .I head |
| 352 |
#. in the forward direction, assigning each element in |
| 353 |
#. turn to |
| 354 |
#. .IR var . |
| 355 |
#. However, unlike |
| 356 |
#. .BR SLIST_FOREACH () |
| 357 |
#. here it is permitted to both remove |
| 358 |
#. .I var |
| 359 |
#. as well as free it from within the loop safely without interfering with the |
| 360 |
#. traversal. |
| 361 |
#. .P |
| 362 |
#. .BR SLIST_FOREACH_FROM_SAFE () |
| 363 |
#. behaves identically to |
| 364 |
#. .BR SLIST_FOREACH_SAFE () |
| 365 |
#. when |
| 366 |
#. .I var |
| 367 |
#. is NULL, else it treats |
| 368 |
#. .I var |
| 369 |
#. as a previously found SLIST element and begins the loop at |
| 370 |
#. .I var |
| 371 |
#. instead of the first element in the SLIST referenced by |
| 372 |
#. .IR head . |
| 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 "" |
| 377 |
"B<SLIST_FOREACH>() traverses the list referenced by I<head> in the forward " |
| 378 |
"direction, assigning each element in turn to I<var>." |
| 379 |
msgstr "" |
| 380 |
"B<SLIST_FOREACH>() تجتاز القائمة المشار إليها بواسطة I<head> في الاتجاه " |
| 381 |
"الأمامي، مع تعيين كل عنصر بدوره إلى I<var>." |
| 382 |
|
| 383 |
#. type: SS |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "Removal" |
| 388 |
msgstr "إزالة" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "B<SLIST_REMOVE>() removes the element I<elm> from the list." |
| 394 |
msgstr "B<SLIST_REMOVE>() يزيل العنصر I<elm> من القائمة." |
| 395 |
|
| 396 |
#. .P |
| 397 |
#. .BR SLIST_REMOVE_AFTER () |
| 398 |
#. removes the element after |
| 399 |
#. .I elm |
| 400 |
#. from the list. |
| 401 |
#. Unlike |
| 402 |
#. .IR SLIST_REMOVE , |
| 403 |
#. this macro does not traverse the entire list. |
| 404 |
#. .SS Other features |
| 405 |
#. .BR SLIST_SWAP () |
| 406 |
#. swaps the contents of |
| 407 |
#. .I head1 |
| 408 |
#. and |
| 409 |
#. .IR head2 . |
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"B<SLIST_REMOVE_HEAD>() removes the element I<elm> from the head of the " |
| 415 |
"list. For optimum efficiency, elements being removed from the head of the " |
| 416 |
"list should explicitly use this macro instead of the generic " |
| 417 |
"B<SLIST_REMOVE>()." |
| 418 |
msgstr "" |
| 419 |
"B<SLIST_REMOVE_HEAD>() يزيل العنصر I<elm> من رأس القائمة. لتحقيق الكفاءة " |
| 420 |
"المثلى، يجب على العناصر التي تُزال من رأس القائمة استخدام هذا الماكرو صراحةً " |
| 421 |
"بدلاً من B<SLIST_REMOVE>() العام." |
| 422 |
|
| 423 |
#. type: SH |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "RETURN VALUE" |
| 428 |
msgstr "قيمة الإرجاع" |
| 429 |
|
| 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<SLIST_EMPTY>() returns nonzero if the list is empty, and zero if the list " |
| 435 |
"contains at least one entry." |
| 436 |
msgstr "" |
| 437 |
"B<SLIST_EMPTY>() تُرجع قيمة غير صفرية إذا كانت القائمة فارغة، وصفرًا إذا كانت " |
| 438 |
"القائمة تحتوي على إدخال واحد على الأقل." |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"B<SLIST_FIRST>(), and B<SLIST_NEXT>() return a pointer to the first or next " |
| 445 |
"I<TYPE> structure, respectively." |
| 446 |
msgstr "" |
| 447 |
"B<SLIST_FIRST>()، و B<SLIST_NEXT>() تُرجعان مؤشرًا إلى أول أو تالي بنية " |
| 448 |
"I<TYPE>، على التوالي." |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"B<SLIST_HEAD_INITIALIZER>() returns an initializer that can be assigned to " |
| 455 |
"the list I<head>." |
| 456 |
msgstr "B<SLIST_HEAD_INITIALIZER>() تُرجع مُهيئًا يمكن تعيينه للقائمة I<head>." |
| 457 |
|
| 458 |
#. type: SH |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
#, no-wrap |
| 462 |
msgid "STANDARDS" |
| 463 |
msgstr "المعايير" |
| 464 |
|
| 465 |
#. type: Plain text |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
msgid "BSD." |
| 469 |
msgstr "BSD." |
| 470 |
|
| 471 |
#. type: SH |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
#, no-wrap |
| 475 |
msgid "HISTORY" |
| 476 |
msgstr "التاريخ" |
| 477 |
|
| 478 |
#. type: Plain text |
| 479 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 480 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 481 |
msgid "4.4BSD." |
| 482 |
msgstr "4.4BSD." |
| 483 |
|
| 484 |
#. type: SH |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
#, no-wrap |
| 488 |
msgid "BUGS" |
| 489 |
msgstr "العلل" |
| 490 |
|
| 491 |
#. type: Plain text |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
msgid "" |
| 495 |
"B<SLIST_FOREACH>() doesn't allow I<var> to be removed or freed within the " |
| 496 |
"loop, as it would interfere with the traversal. B<SLIST_FOREACH_SAFE>(), " |
| 497 |
"which is present on the BSDs but is not present in glibc, fixes this " |
| 498 |
"limitation by allowing I<var> to safely be removed from the list and freed " |
| 499 |
"from within the loop without interfering with the traversal." |
| 500 |
msgstr "" |
| 501 |
"B<SLIST_FOREACH>() لا يسمح بإزالة أو تحرير I<var> داخل الحلقة، لأن ذلك " |
| 502 |
"سيتعارض مع الاجتياز. B<SLIST_FOREACH_SAFE>()، الموجود في أنظمة BSD ولكنه غير " |
| 503 |
"موجود في glibc، يُصلح هذا القيد بالسماح بإزالة I<var> بأمان من القائمة " |
| 504 |
"وتحريره من داخل الحلقة دون التدخل في الاجتياز." |
| 505 |
|
| 506 |
#. type: SH |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
#, no-wrap |
| 510 |
msgid "EXAMPLES" |
| 511 |
msgstr "أمثلة" |
| 512 |
|
| 513 |
#. type: Plain text |
| 514 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 515 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 516 |
#, no-wrap |
| 517 |
msgid "" |
| 518 |
"#include E<lt>stddef.hE<gt>\n" |
| 519 |
"#include E<lt>stdio.hE<gt>\n" |
| 520 |
"#include E<lt>stdlib.hE<gt>\n" |
| 521 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 522 |
"\\&\n" |
| 523 |
"struct entry {\n" |
| 524 |
" int data;\n" |
| 525 |
" SLIST_ENTRY(entry) entries; /* Singly linked list */\n" |
| 526 |
"};\n" |
| 527 |
"\\&\n" |
| 528 |
"SLIST_HEAD(slisthead, entry);\n" |
| 529 |
"\\&\n" |
| 530 |
"int\n" |
| 531 |
"main(void)\n" |
| 532 |
"{\n" |
| 533 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 534 |
" struct slisthead head; /* Singly linked list\n" |
| 535 |
" head */\n" |
| 536 |
"\\&\n" |
| 537 |
" SLIST_INIT(&head); /* Initialize the queue */\n" |
| 538 |
"\\&\n" |
| 539 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 540 |
" SLIST_INSERT_HEAD(&head, n1, entries);\n" |
| 541 |
"\\&\n" |
| 542 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 543 |
" SLIST_INSERT_AFTER(n1, n2, entries);\n" |
| 544 |
"\\&\n" |
| 545 |
" SLIST_REMOVE(&head, n2, entry, entries);/* Deletion */\n" |
| 546 |
" free(n2);\n" |
| 547 |
"\\&\n" |
| 548 |
" n3 = SLIST_FIRST(&head);\n" |
| 549 |
" SLIST_REMOVE_HEAD(&head, entries); /* Deletion from the head */\n" |
| 550 |
" free(n3);\n" |
| 551 |
"\\&\n" |
| 552 |
" for (unsigned int i = 0; i E<lt> 5; i++) {\n" |
| 553 |
" n1 = malloc(sizeof(struct entry));\n" |
| 554 |
" SLIST_INSERT_HEAD(&head, n1, entries);\n" |
| 555 |
" n1-E<gt>data = i;\n" |
| 556 |
" }\n" |
| 557 |
"\\&\n" |
| 558 |
" /* Forward traversal */\n" |
| 559 |
" SLIST_FOREACH(np, &head, entries)\n" |
| 560 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 561 |
"\\&\n" |
| 562 |
" while (!SLIST_EMPTY(&head)) { /* List deletion */\n" |
| 563 |
" n1 = SLIST_FIRST(&head);\n" |
| 564 |
" SLIST_REMOVE_HEAD(&head, entries);\n" |
| 565 |
" free(n1);\n" |
| 566 |
" }\n" |
| 567 |
" SLIST_INIT(&head);\n" |
| 568 |
"\\&\n" |
| 569 |
" exit(EXIT_SUCCESS);\n" |
| 570 |
"}\n" |
| 571 |
msgstr "" |
| 572 |
"#include E<lt>stddef.hE<gt>\n" |
| 573 |
"#include E<lt>stdio.hE<gt>\n" |
| 574 |
"#include E<lt>stdlib.hE<gt>\n" |
| 575 |
"#include E<lt>sys/queue.hE<gt>\n" |
| 576 |
"\\&\n" |
| 577 |
"struct entry {\n" |
| 578 |
" int data;\n" |
| 579 |
" SLIST_ENTRY(entry) entries; /* Singly linked list */\n" |
| 580 |
"};\n" |
| 581 |
"\\&\n" |
| 582 |
"SLIST_HEAD(slisthead, entry);\n" |
| 583 |
"\\&\n" |
| 584 |
"int\n" |
| 585 |
"main(void)\n" |
| 586 |
"{\n" |
| 587 |
" struct entry *n1, *n2, *n3, *np;\n" |
| 588 |
" struct slisthead head; /* Singly linked list\n" |
| 589 |
" head */\n" |
| 590 |
"\\&\n" |
| 591 |
" SLIST_INIT(&head); /* Initialize the queue */\n" |
| 592 |
"\\&\n" |
| 593 |
" n1 = malloc(sizeof(struct entry)); /* Insert at the head */\n" |
| 594 |
" SLIST_INSERT_HEAD(&head, n1, entries);\n" |
| 595 |
"\\&\n" |
| 596 |
" n2 = malloc(sizeof(struct entry)); /* Insert after */\n" |
| 597 |
" SLIST_INSERT_AFTER(n1, n2, entries);\n" |
| 598 |
"\\&\n" |
| 599 |
" SLIST_REMOVE(&head, n2, entry, entries);/* Deletion */\n" |
| 600 |
" free(n2);\n" |
| 601 |
"\\&\n" |
| 602 |
" n3 = SLIST_FIRST(&head);\n" |
| 603 |
" SLIST_REMOVE_HEAD(&head, entries); /* Deletion from the head */\n" |
| 604 |
" free(n3);\n" |
| 605 |
"\\&\n" |
| 606 |
" for (unsigned int i = 0; i E<lt> 5; i++) {\n" |
| 607 |
" n1 = malloc(sizeof(struct entry));\n" |
| 608 |
" SLIST_INSERT_HEAD(&head, n1, entries);\n" |
| 609 |
" n1-E<gt>data = i;\n" |
| 610 |
" }\n" |
| 611 |
"\\&\n" |
| 612 |
" /* Forward traversal */\n" |
| 613 |
" SLIST_FOREACH(np, &head, entries)\n" |
| 614 |
" printf(\"%i\\[rs]n\", np-E<gt>data);\n" |
| 615 |
"\\&\n" |
| 616 |
" while (!SLIST_EMPTY(&head)) { /* List deletion */\n" |
| 617 |
" n1 = SLIST_FIRST(&head);\n" |
| 618 |
" SLIST_REMOVE_HEAD(&head, entries);\n" |
| 619 |
" free(n1);\n" |
| 620 |
" }\n" |
| 621 |
" SLIST_INIT(&head);\n" |
| 622 |
"\\&\n" |
| 623 |
" exit(EXIT_SUCCESS);\n" |
| 624 |
"}\n" |
| 625 |
|
| 626 |
#. SRC END |
| 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 "SEE ALSO" |
| 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 |
msgid "B<insque>(3), B<queue>(7)" |
| 638 |
msgstr "B<insque>(3)، B<queue>(7)" |
| 639 |
|
| 640 |
#. type: TH |
| 641 |
#: debian-trixie |
| 642 |
#, no-wrap |
| 643 |
msgid "2024-06-15" |
| 644 |
msgstr "15 يونيو 2024" |
| 645 |
|
| 646 |
#. type: TH |
| 647 |
#: debian-trixie |
| 648 |
#, no-wrap |
| 649 |
msgid "Linux man-pages 6.9.1" |
| 650 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 651 |
|
| 652 |
#. type: Plain text |
| 653 |
#: debian-trixie |
| 654 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 655 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 656 |
|
| 657 |
#. .BI "void SLIST_REMOVE_AFTER(struct TYPE *" elm , |
| 658 |
#. .BI " SLIST_ENTRY " NAME ); |
| 659 |
#. .P |
| 660 |
#. .BI "void SLIST_SWAP(SLIST_HEAD *" head1 ", SLIST_HEAD *" head2 , |
| 661 |
#. .BI " SLIST_ENTRY " NAME ); |
| 662 |
#. type: Plain text |
| 663 |
#: debian-trixie fedora-44 fedora-rawhide |
| 664 |
#, no-wrap |
| 665 |
msgid "" |
| 666 |
"B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n" |
| 667 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 668 |
"B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 669 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 670 |
msgstr "" |
| 671 |
"B<void SLIST_REMOVE(SLIST_HEAD *>I<head>B<, struct TYPE *>I<elm>B<,>\n" |
| 672 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 673 |
"B<void SLIST_REMOVE_HEAD(SLIST_HEAD *>I<head>B<,>\n" |
| 674 |
"B< SLIST_ENTRY >I<NAME>B<);>\n" |
| 675 |
|
| 676 |
#. type: TH |
| 677 |
#: fedora-44 fedora-rawhide |
| 678 |
#, no-wrap |
| 679 |
msgid "2024-07-23" |
| 680 |
msgstr "23 يوليو 2024" |
| 681 |
|
| 682 |
#. type: TH |
| 683 |
#: fedora-44 fedora-rawhide |
| 684 |
#, no-wrap |
| 685 |
msgid "Linux man-pages 6.13" |
| 686 |
msgstr "صفحات دليل لينكس 6.13" |
| 687 |
|
| 688 |
#. type: TH |
| 689 |
#: mageia-cauldron |
| 690 |
#, no-wrap |
| 691 |
msgid "Linux man-pages 6.17" |
| 692 |
msgstr "صفحات دليل لينكس 6.17" |
| 693 |
|
| 694 |
#. type: TH |
| 695 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
#, no-wrap |
| 697 |
msgid "Linux man-pages (unreleased)" |
| 698 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |