| 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:38+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-03 06:42+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 "pthread_setaffinity_np" |
| 25 |
msgstr "pthread_setaffinity_np" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 29 |
#: opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2025-09-21" |
| 32 |
msgstr "21 سبتمبر 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 |
#. type: Plain text |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
msgid "" |
| 51 |
"pthread_setaffinity_np, pthread_getaffinity_np - set/get CPU affinity of a " |
| 52 |
"thread" |
| 53 |
msgstr "" |
| 54 |
"pthread_setaffinity_np, pthread_getaffinity_np - ضبط/الحصول على تقارب وحدة " |
| 55 |
"المعالجة المركزية لخيط" |
| 56 |
|
| 57 |
#. type: SH |
| 58 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 59 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 60 |
#, no-wrap |
| 61 |
msgid "LIBRARY" |
| 62 |
msgstr "المكتبة" |
| 63 |
|
| 64 |
#. type: Plain text |
| 65 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 66 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)" |
| 68 |
msgstr "مكتبة مسالك POSIX (I<libpthread>،\\ I<-lpthread>)" |
| 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 "SYNOPSIS" |
| 75 |
msgstr "موجز" |
| 76 |
|
| 77 |
#. type: Plain text |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "" |
| 82 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 83 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 84 |
msgstr "" |
| 85 |
"B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n" |
| 86 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "" |
| 93 |
"B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 94 |
"B< const cpu_set_t *>I<cpuset>B<);>\n" |
| 95 |
"B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 96 |
"B< cpu_set_t *>I<cpuset>B<);>\n" |
| 97 |
msgstr "" |
| 98 |
"B<int pthread_setaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 99 |
"B< const cpu_set_t *>I<cpuset>B<);>\n" |
| 100 |
"B<int pthread_getaffinity_np(pthread_t >I<thread>B<, size_t >I<cpusetsize>B<,>\n" |
| 101 |
"B< cpu_set_t *>I<cpuset>B<);>\n" |
| 102 |
|
| 103 |
#. type: SH |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
#, no-wrap |
| 107 |
msgid "DESCRIPTION" |
| 108 |
msgstr "الوصف" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
msgid "" |
| 114 |
"The B<pthread_setaffinity_np>() function sets the CPU affinity mask of the " |
| 115 |
"thread I<thread> to the CPU set pointed to by I<cpuset>. If the call is " |
| 116 |
"successful, and the thread is not currently running on one of the CPUs in " |
| 117 |
"I<cpuset>, then it is migrated to one of those CPUs." |
| 118 |
msgstr "" |
| 119 |
"تضبط الدالة B<pthread_setaffinity_np>() قناع تقارب وحدة المعالجة المركزية " |
| 120 |
"للخيط I<thread> إلى مجموعة وحدة المعالجة المركزية المشار إليها بواسطة " |
| 121 |
"I<cpuset>. إذا نجحت الاستدعاء، ولم يكن الخيط يعمل حاليًا على إحدى وحدات " |
| 122 |
"المعالجة المركزية في I<cpuset>، فسيُهاجر إلى إحدى تلك الوحدات." |
| 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 |
msgid "" |
| 128 |
"The B<pthread_getaffinity_np>() function returns the CPU affinity mask of " |
| 129 |
"the thread I<thread> in the buffer pointed to by I<cpuset>." |
| 130 |
msgstr "" |
| 131 |
"تُرجع الدالة B<pthread_getaffinity_np>() قناع تقارب وحدة المعالجة المركزية " |
| 132 |
"للخيط I<thread> في المخزن المؤقت المشار إليه بواسطة I<cpuset>." |
| 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 |
msgid "" |
| 138 |
"For more details on CPU affinity masks, see B<sched_setaffinity>(2). For a " |
| 139 |
"description of a set of macros that can be used to manipulate and inspect " |
| 140 |
"CPU sets, see B<CPU_SET>(3)." |
| 141 |
msgstr "" |
| 142 |
"لمزيد من التفاصيل حول أقنعة تقارب المعالج (CPU affinity masks)، راجع " |
| 143 |
"B<sched_setaffinity>(2). لوصف لمجموعة من الماكرو التي يمكن استخدامها لمعالجة " |
| 144 |
"وفحص مجموعات المعالجات، راجع B<CPU_SET>(3)." |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "" |
| 150 |
"The argument I<cpusetsize> is the length (in bytes) of the buffer pointed to " |
| 151 |
"by I<cpuset>. Typically, this argument would be specified as " |
| 152 |
"I<sizeof(cpu_set_t)>. (It may be some other value, if using the macros " |
| 153 |
"described in B<CPU_SET>(3) for dynamically allocating a CPU set.)" |
| 154 |
msgstr "" |
| 155 |
"الوسيطة I<cpusetsize> هي طول (بالبايت) المخزن المؤقت المشار إليه بواسطة " |
| 156 |
"I<cpuset>. عادةً، تُحدد هذه الوسيطة كـ I<sizeof(cpu_set_t)>. (قد تكون قيمة " |
| 157 |
"أخرى، إذا استُخدمت وحدات الماكرو الموصوفة في B<CPU_SET>(3) للتخصيص الديناميكي " |
| 158 |
"لمجموعة وحدة المعالجة المركزية.)" |
| 159 |
|
| 160 |
#. type: SH |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "RETURN VALUE" |
| 165 |
msgstr "قيمة الإرجاع" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"On success, these functions return 0; on error, they return a nonzero error " |
| 172 |
"number." |
| 173 |
msgstr "" |
| 174 |
"عند النجاح، تُعيد هذه الدوال القيمة 0؛ وعند الخطأ، تُعيد رقم خطأ غير صفري." |
| 175 |
|
| 176 |
#. type: SH |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
#, no-wrap |
| 180 |
msgid "ERRORS" |
| 181 |
msgstr "الأخطاء" |
| 182 |
|
| 183 |
#. type: TP |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
#, no-wrap |
| 187 |
msgid "B<EFAULT>" |
| 188 |
msgstr "B<EFAULT>" |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "A supplied memory address was invalid." |
| 194 |
msgstr "عنوان الذاكرة المقدم غير صالح." |
| 195 |
|
| 196 |
#. type: TP |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
#, no-wrap |
| 200 |
msgid "B<EINVAL>" |
| 201 |
msgstr "B<EINVAL>" |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 205 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
msgid "" |
| 207 |
"(B<pthread_setaffinity_np>()) The affinity bit mask I<mask> contains no " |
| 208 |
"processors that are currently physically on the system and permitted to the " |
| 209 |
"thread according to any restrictions that may be imposed by the \"cpuset\" " |
| 210 |
"mechanism described in B<cpuset>(7)." |
| 211 |
msgstr "" |
| 212 |
"(B<pthread_setaffinity_np>()) لا يحتوي قناع البتات للتقارب I<mask> على أي " |
| 213 |
"معالجات موجودة فعليًا حاليًا على النظام ومسموح بها للخيط وفقًا لأي قيود قد تُفرض " |
| 214 |
"بواسطة آلية \"cpuset\" الموصوفة في B<cpuset>(7)." |
| 215 |
|
| 216 |
#. cpumask_t |
| 217 |
#. The raw sched_getaffinity() system call returns the size (in bytes) |
| 218 |
#. of the cpumask_t type. |
| 219 |
#. type: Plain text |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
msgid "" |
| 223 |
"(B<pthread_setaffinity_np>()) I<cpuset> specified a CPU that was outside " |
| 224 |
"the set supported by the kernel. (The kernel configuration option " |
| 225 |
"B<CONFIG_NR_CPUS> defines the range of the set supported by the kernel data " |
| 226 |
"type used to represent CPU sets.)" |
| 227 |
msgstr "" |
| 228 |
"(B<pthread_setaffinity_np>()) حدد I<cpuset> وحدة معالجة مركزية خارج المجموعة " |
| 229 |
"المدعومة من النواة. (يُعرف خيار تهيئة النواة B<CONFIG_NR_CPUS> نطاق المجموعة " |
| 230 |
"المدعومة من نوع بيانات النواة المستخدم لتمثيل مجموعات وحدة المعالجة " |
| 231 |
"المركزية.)" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "" |
| 237 |
"(B<pthread_getaffinity_np>()) I<cpusetsize> is smaller than the size of the " |
| 238 |
"affinity mask used by the kernel." |
| 239 |
msgstr "" |
| 240 |
"(B<pthread_getaffinity_np>()) I<cpusetsize> أصغر من حجم قناع التقارب " |
| 241 |
"المستخدم من النواة." |
| 242 |
|
| 243 |
#. type: TP |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
#, no-wrap |
| 247 |
msgid "B<ESRCH>" |
| 248 |
msgstr "B<ESRCH>" |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
msgid "No thread with the ID I<thread> could be found." |
| 254 |
msgstr "تعذر العثور على أي خيط بالمعرف I<thread>." |
| 255 |
|
| 256 |
#. type: SH |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "ATTRIBUTES" |
| 261 |
msgstr "السمات" |
| 262 |
|
| 263 |
#. type: Plain text |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
msgid "" |
| 267 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 268 |
msgstr "" |
| 269 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 270 |
|
| 271 |
#. type: tbl table |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "Interface" |
| 276 |
msgstr "الواجهة" |
| 277 |
|
| 278 |
#. type: tbl table |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "Attribute" |
| 283 |
msgstr "السمة" |
| 284 |
|
| 285 |
#. type: tbl table |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid "Value" |
| 290 |
msgstr "القيمة" |
| 291 |
|
| 292 |
#. type: tbl table |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
#, no-wrap |
| 296 |
msgid ".na\n" |
| 297 |
msgstr ".na\n" |
| 298 |
|
| 299 |
#. type: tbl table |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid ".nh\n" |
| 304 |
msgstr ".nh\n" |
| 305 |
|
| 306 |
#. type: tbl table |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "" |
| 311 |
"B<pthread_setaffinity_np>(),\n" |
| 312 |
"B<pthread_getaffinity_np>()" |
| 313 |
msgstr "" |
| 314 |
"B<pthread_setaffinity_np>(),\n" |
| 315 |
"B<pthread_getaffinity_np>()" |
| 316 |
|
| 317 |
#. type: tbl table |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "Thread safety" |
| 322 |
msgstr "سلامة الخيوط" |
| 323 |
|
| 324 |
#. type: tbl table |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "MT-Safe" |
| 329 |
msgstr "MT-Safe" |
| 330 |
|
| 331 |
#. type: SH |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
#, no-wrap |
| 335 |
msgid "STANDARDS" |
| 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 "GNU; hence the suffix \"_np\" (nonportable) in the names." |
| 342 |
msgstr "جنو؛ ومن هنا جاءت اللاحقة \"_np\" (غير منقول) في الأسماء." |
| 343 |
|
| 344 |
#. type: SH |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "HISTORY" |
| 349 |
msgstr "التاريخ" |
| 350 |
|
| 351 |
#. type: Plain text |
| 352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 354 |
msgid "glibc 2.3.4." |
| 355 |
msgstr "glibc 2.3.4." |
| 356 |
|
| 357 |
#. type: Plain text |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
msgid "" |
| 361 |
"In glibc 2.3.3 only, versions of these functions were provided that did not " |
| 362 |
"have a I<cpusetsize> argument. Instead the CPU set size given to the " |
| 363 |
"underlying system calls was always I<sizeof(cpu_set_t)>." |
| 364 |
msgstr "" |
| 365 |
"في إصدار glibc 2.3.3 فقط، توفرت نسخ من هذه الدوال لم تكن تحتوي على معطى " |
| 366 |
"I<cpusetsize>. بدلاً من ذلك، كان حجم مجموعة وحدة المعالجة المركزية المعطى " |
| 367 |
"لنداءات النظام الأساسية هو دائماً I<sizeof(cpu_set_t)>." |
| 368 |
|
| 369 |
#. type: SH |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "NOTES" |
| 374 |
msgstr "ملاحظات" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 379 |
msgid "" |
| 380 |
"After a call to B<pthread_setaffinity_np>(), the set of CPUs on which the " |
| 381 |
"thread will actually run is the intersection of the set specified in the " |
| 382 |
"I<cpuset> argument and the set of CPUs actually present on the system. The " |
| 383 |
"system may further restrict the set of CPUs on which the thread runs if the " |
| 384 |
"\"cpuset\" mechanism described in B<cpuset>(7) is being used. These " |
| 385 |
"restrictions on the actual set of CPUs on which the thread will run are " |
| 386 |
"silently imposed by the kernel." |
| 387 |
msgstr "" |
| 388 |
"بعد استدعاء B<pthread_setaffinity_np>()، تكون مجموعة وحدات المعالجة المركزية " |
| 389 |
"التي سيعمل عليها الخيط فعليًا هي تقاطع المجموعة المحددة في الوسيطة I<cpuset> " |
| 390 |
"ومجموعة وحدات المعالجة المركزية الموجودة فعليًا على النظام. قد يُقيد النظام " |
| 391 |
"أيضًا مجموعة وحدات المعالجة المركزية التي يعمل عليها الخيط إذا استُخدمت آلية " |
| 392 |
"\"cpuset\" الموصوفة في B<cpuset>(7). تُفرض هذه القيود على المجموعة الفعلية " |
| 393 |
"لوحدات المعالجة المركزية التي سيعمل عليها الخيط بصمت من النواة." |
| 394 |
|
| 395 |
#. type: Plain text |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
msgid "" |
| 399 |
"These functions are implemented on top of the B<sched_setaffinity>(2) and " |
| 400 |
"B<sched_getaffinity>(2) system calls." |
| 401 |
msgstr "" |
| 402 |
"تُنفذ هذه الدوال فوق استدعاءات النظام B<sched_setaffinity>(2) و " |
| 403 |
"B<sched_getaffinity>(2)." |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
msgid "" |
| 409 |
"A new thread created by B<pthread_create>(3) inherits a copy of its " |
| 410 |
"creator's CPU affinity mask." |
| 411 |
msgstr "" |
| 412 |
"يرث خيط جديد مُنشأ بواسطة B<pthread_create>(3) نسخة من قناع تقارب وحدة " |
| 413 |
"المعالجة المركزية لمنشئه." |
| 414 |
|
| 415 |
#. type: SH |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "EXAMPLES" |
| 420 |
msgstr "أمثلة" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"In the following program, the main thread uses B<pthread_setaffinity_np>() " |
| 427 |
"to set its CPU affinity mask to include CPUs 0 to 7 (which may not all be " |
| 428 |
"available on the system), and then calls B<pthread_getaffinity_np>() to " |
| 429 |
"check the resulting CPU affinity mask of the thread." |
| 430 |
msgstr "" |
| 431 |
"في البرنامج التالي، يستخدم الخيط الرئيسي B<pthread_setaffinity_np>() لضبط " |
| 432 |
"قناع تقارب وحدة المعالجة المركزية ليشمل وحدات المعالجة المركزية 0 إلى 7 (قد " |
| 433 |
"لا تكون جميعها متاحة على النظام)، ثم يستدعي B<pthread_getaffinity_np>() " |
| 434 |
"للتحقق من قناع تقارب وحدة المعالجة المركزية الناتج للخيط." |
| 435 |
|
| 436 |
#. type: Plain text |
| 437 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 438 |
#: opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "" |
| 441 |
"#define _GNU_SOURCE\n" |
| 442 |
"#include E<lt>err.hE<gt>\n" |
| 443 |
"#include E<lt>pthread.hE<gt>\n" |
| 444 |
"#include E<lt>sched.hE<gt>\n" |
| 445 |
"#include E<lt>stdio.hE<gt>\n" |
| 446 |
"#include E<lt>stdlib.hE<gt>\n" |
| 447 |
"\\&\n" |
| 448 |
"int\n" |
| 449 |
"main(void)\n" |
| 450 |
"{\n" |
| 451 |
" int s;\n" |
| 452 |
" cpu_set_t cpuset;\n" |
| 453 |
" pthread_t thread;\n" |
| 454 |
"\\&\n" |
| 455 |
" thread = pthread_self();\n" |
| 456 |
"\\&\n" |
| 457 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 458 |
"\\&\n" |
| 459 |
" CPU_ZERO(&cpuset);\n" |
| 460 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 461 |
" CPU_SET(j, &cpuset);\n" |
| 462 |
"\\&\n" |
| 463 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 464 |
" if (s != 0)\n" |
| 465 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 466 |
"\\&\n" |
| 467 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 468 |
"\\&\n" |
| 469 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 470 |
" if (s != 0)\n" |
| 471 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 472 |
"\\&\n" |
| 473 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 474 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 475 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 476 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 477 |
"\\&\n" |
| 478 |
" exit(EXIT_SUCCESS);\n" |
| 479 |
"}\n" |
| 480 |
msgstr "" |
| 481 |
"#define _GNU_SOURCE\n" |
| 482 |
"#include E<lt>err.hE<gt>\n" |
| 483 |
"#include E<lt>pthread.hE<gt>\n" |
| 484 |
"#include E<lt>sched.hE<gt>\n" |
| 485 |
"#include E<lt>stdio.hE<gt>\n" |
| 486 |
"#include E<lt>stdlib.hE<gt>\n" |
| 487 |
"\\&\n" |
| 488 |
"int\n" |
| 489 |
"main(void)\n" |
| 490 |
"{\n" |
| 491 |
" int s;\n" |
| 492 |
" cpu_set_t cpuset;\n" |
| 493 |
" pthread_t thread;\n" |
| 494 |
"\\&\n" |
| 495 |
" thread = pthread_self();\n" |
| 496 |
"\\&\n" |
| 497 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 498 |
"\\&\n" |
| 499 |
" CPU_ZERO(&cpuset);\n" |
| 500 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 501 |
" CPU_SET(j, &cpuset);\n" |
| 502 |
"\\&\n" |
| 503 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 504 |
" if (s != 0)\n" |
| 505 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 506 |
"\\&\n" |
| 507 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 508 |
"\\&\n" |
| 509 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 510 |
" if (s != 0)\n" |
| 511 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 512 |
"\\&\n" |
| 513 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 514 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 515 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 516 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 517 |
"\\&\n" |
| 518 |
" exit(EXIT_SUCCESS);\n" |
| 519 |
"}\n" |
| 520 |
|
| 521 |
#. SRC END |
| 522 |
#. type: SH |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
#, no-wrap |
| 526 |
msgid "SEE ALSO" |
| 527 |
msgstr "انظر أيضًا" |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "" |
| 533 |
"B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), " |
| 534 |
"B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), " |
| 535 |
"B<sched>(7)" |
| 536 |
msgstr "" |
| 537 |
"B<sched_setaffinity>(2), B<CPU_SET>(3), B<pthread_attr_setaffinity_np>(3), " |
| 538 |
"B<pthread_self>(3), B<sched_getcpu>(3), B<cpuset>(7), B<pthreads>(7), " |
| 539 |
"B<sched>(7)" |
| 540 |
|
| 541 |
#. type: TH |
| 542 |
#: debian-trixie |
| 543 |
#, no-wrap |
| 544 |
msgid "2024-06-15" |
| 545 |
msgstr "15 يونيو 2024" |
| 546 |
|
| 547 |
#. type: TH |
| 548 |
#: debian-trixie |
| 549 |
#, no-wrap |
| 550 |
msgid "Linux man-pages 6.9.1" |
| 551 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: debian-trixie |
| 555 |
msgid "POSIX threads library (I<libpthread>, I<-lpthread>)" |
| 556 |
msgstr "مكتبة مسالك POSIX (I<libpthread>، I<-lpthread>)" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: debian-trixie |
| 560 |
#, no-wrap |
| 561 |
msgid "" |
| 562 |
"#define _GNU_SOURCE\n" |
| 563 |
"#include E<lt>err.hE<gt>\n" |
| 564 |
"#include E<lt>errno.hE<gt>\n" |
| 565 |
"#include E<lt>pthread.hE<gt>\n" |
| 566 |
"#include E<lt>stdio.hE<gt>\n" |
| 567 |
"#include E<lt>stdlib.hE<gt>\n" |
| 568 |
"\\&\n" |
| 569 |
"int\n" |
| 570 |
"main(void)\n" |
| 571 |
"{\n" |
| 572 |
" int s;\n" |
| 573 |
" cpu_set_t cpuset;\n" |
| 574 |
" pthread_t thread;\n" |
| 575 |
"\\&\n" |
| 576 |
" thread = pthread_self();\n" |
| 577 |
"\\&\n" |
| 578 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 579 |
"\\&\n" |
| 580 |
" CPU_ZERO(&cpuset);\n" |
| 581 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 582 |
" CPU_SET(j, &cpuset);\n" |
| 583 |
"\\&\n" |
| 584 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 585 |
" if (s != 0)\n" |
| 586 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 587 |
"\\&\n" |
| 588 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 589 |
"\\&\n" |
| 590 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 591 |
" if (s != 0)\n" |
| 592 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 593 |
"\\&\n" |
| 594 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 595 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 596 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 597 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 598 |
"\\&\n" |
| 599 |
" exit(EXIT_SUCCESS);\n" |
| 600 |
"}\n" |
| 601 |
msgstr "" |
| 602 |
"#define _GNU_SOURCE\n" |
| 603 |
"#include E<lt>err.hE<gt>\n" |
| 604 |
"#include E<lt>errno.hE<gt>\n" |
| 605 |
"#include E<lt>pthread.hE<gt>\n" |
| 606 |
"#include E<lt>stdio.hE<gt>\n" |
| 607 |
"#include E<lt>stdlib.hE<gt>\n" |
| 608 |
"\\&\n" |
| 609 |
"int\n" |
| 610 |
"main(void)\n" |
| 611 |
"{\n" |
| 612 |
" int s;\n" |
| 613 |
" cpu_set_t cpuset;\n" |
| 614 |
" pthread_t thread;\n" |
| 615 |
"\\&\n" |
| 616 |
" thread = pthread_self();\n" |
| 617 |
"\\&\n" |
| 618 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 619 |
"\\&\n" |
| 620 |
" CPU_ZERO(&cpuset);\n" |
| 621 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 622 |
" CPU_SET(j, &cpuset);\n" |
| 623 |
"\\&\n" |
| 624 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 625 |
" if (s != 0)\n" |
| 626 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 627 |
"\\&\n" |
| 628 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 629 |
"\\&\n" |
| 630 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 631 |
" if (s != 0)\n" |
| 632 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 633 |
"\\&\n" |
| 634 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 635 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 636 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 637 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 638 |
"\\&\n" |
| 639 |
" exit(EXIT_SUCCESS);\n" |
| 640 |
"}\n" |
| 641 |
|
| 642 |
#. type: TH |
| 643 |
#: fedora-44 fedora-rawhide |
| 644 |
#, no-wrap |
| 645 |
msgid "2024-11-03" |
| 646 |
msgstr "3 نوفمبر 2024" |
| 647 |
|
| 648 |
#. type: TH |
| 649 |
#: fedora-44 fedora-rawhide |
| 650 |
#, no-wrap |
| 651 |
msgid "Linux man-pages 6.13" |
| 652 |
msgstr "صفحات دليل لينكس 6.13" |
| 653 |
|
| 654 |
#. type: Plain text |
| 655 |
#: fedora-44 fedora-rawhide |
| 656 |
#, no-wrap |
| 657 |
msgid "" |
| 658 |
"#define _GNU_SOURCE\n" |
| 659 |
"#include E<lt>err.hE<gt>\n" |
| 660 |
"#include E<lt>pthread.hE<gt>\n" |
| 661 |
"#include E<lt>sched.hE<gt>\n" |
| 662 |
"#include E<lt>stdio.hE<gt>\n" |
| 663 |
"#include E<lt>stdlib.hE<gt>\n" |
| 664 |
"\\&\n" |
| 665 |
"int\n" |
| 666 |
"main(void)\n" |
| 667 |
"{\n" |
| 668 |
" int s;\n" |
| 669 |
" cpu_set_t cpuset;\n" |
| 670 |
" pthread_t thread;\n" |
| 671 |
"\\&\n" |
| 672 |
" thread = pthread_self();\n" |
| 673 |
"\\&\n" |
| 674 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 675 |
"\\&\n" |
| 676 |
" CPU_ZERO(&cpuset);\n" |
| 677 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 678 |
" CPU_SET(j, &cpuset);\n" |
| 679 |
"\\&\n" |
| 680 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 681 |
" if (s != 0)\n" |
| 682 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 683 |
"\\&\n" |
| 684 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 685 |
"\\&\n" |
| 686 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 687 |
" if (s != 0)\n" |
| 688 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 689 |
"\\&\n" |
| 690 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 691 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 692 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 693 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 694 |
"\\&\n" |
| 695 |
" exit(EXIT_SUCCESS);\n" |
| 696 |
"}\n" |
| 697 |
msgstr "" |
| 698 |
"#define _GNU_SOURCE\n" |
| 699 |
"#include E<lt>err.hE<gt>\n" |
| 700 |
"#include E<lt>pthread.hE<gt>\n" |
| 701 |
"#include E<lt>sched.hE<gt>\n" |
| 702 |
"#include E<lt>stdio.hE<gt>\n" |
| 703 |
"#include E<lt>stdlib.hE<gt>\n" |
| 704 |
"\\&\n" |
| 705 |
"int\n" |
| 706 |
"main(void)\n" |
| 707 |
"{\n" |
| 708 |
" int s;\n" |
| 709 |
" cpu_set_t cpuset;\n" |
| 710 |
" pthread_t thread;\n" |
| 711 |
"\\&\n" |
| 712 |
" thread = pthread_self();\n" |
| 713 |
"\\&\n" |
| 714 |
" /* Set affinity mask to include CPUs 0 to 7. */\n" |
| 715 |
"\\&\n" |
| 716 |
" CPU_ZERO(&cpuset);\n" |
| 717 |
" for (size_t j = 0; j E<lt> 8; j++)\n" |
| 718 |
" CPU_SET(j, &cpuset);\n" |
| 719 |
"\\&\n" |
| 720 |
" s = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 721 |
" if (s != 0)\n" |
| 722 |
" errc(EXIT_FAILURE, s, \"pthread_setaffinity_np\");\n" |
| 723 |
"\\&\n" |
| 724 |
" /* Check the actual affinity mask assigned to the thread. */\n" |
| 725 |
"\\&\n" |
| 726 |
" s = pthread_getaffinity_np(thread, sizeof(cpuset), &cpuset);\n" |
| 727 |
" if (s != 0)\n" |
| 728 |
" errc(EXIT_FAILURE, s, \"pthread_getaffinity_np\");\n" |
| 729 |
"\\&\n" |
| 730 |
" printf(\"Set returned by pthread_getaffinity_np() contained:\\[rs]n\");\n" |
| 731 |
" for (size_t j = 0; j E<lt> CPU_SETSIZE; j++)\n" |
| 732 |
" if (CPU_ISSET(j, &cpuset))\n" |
| 733 |
" printf(\" CPU %zu\\[rs]n\", j);\n" |
| 734 |
"\\&\n" |
| 735 |
" exit(EXIT_SUCCESS);\n" |
| 736 |
"}\n" |
| 737 |
|
| 738 |
#. type: TH |
| 739 |
#: mageia-cauldron |
| 740 |
#, no-wrap |
| 741 |
msgid "Linux man-pages 6.17" |
| 742 |
msgstr "صفحات دليل لينكس 6.17" |
| 743 |
|
| 744 |
#. type: TH |
| 745 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
#, no-wrap |
| 747 |
msgid "Linux man-pages (unreleased)" |
| 748 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |