# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:38+0200\n" "PO-Revision-Date: 2026-06-02 19:37+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "pthread_getcpuclockid" msgstr "pthread_getcpuclockid" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2025-08-20" msgstr "20 أغسطس 2025" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "pthread_getcpuclockid - retrieve ID of a thread's CPU time clock" msgstr "" "pthread_getcpuclockid - استرداد مُعرّف ساعة وقت وحدة المعالجة المركزية لخيط" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX threads library (I,\\ I<-lpthread>)" msgstr "مكتبة مسالك POSIX (I،\\ I<-lpthread>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#include Epthread.hE>\n" "B<#include Etime.hE>\n" msgstr "" "B<#include Epthread.hE>\n" "B<#include Etime.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, clockid_t *>IB<);>\n" msgstr "BIB<, clockid_t *>IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. The clockid is constructed as follows: #. *clockid = CLOCK_THREAD_CPUTIME_ID | (pd->tid << CLOCK_IDFIELD_SIZE) #. where CLOCK_IDFIELD_SIZE is 3. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function obtains the ID of the CPU-time " "clock of the thread whose ID is given in I, and returns it in the " "location pointed to by I." msgstr "" "تحصل الدالة B() على مُعرّف ساعة وقت وحدة المعالجة " "المركزية للخيط الذي يُعطى مُعرّفه في I، وتُعيده في الموقع المُشار إليه " "بواسطة I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, this function returns 0; on error, it returns a nonzero error " "number." msgstr "عند النجاح، تعيد هذه الدالة 0؛ وعند حدوث خطأ، تعيد رقم خطأ غير صفري." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. CLOCK_THREAD_CPUTIME_ID not defined #. Looking at nptl/pthread_getcpuclockid.c an ERANGE error would #. be possible if kernel thread IDs took more than 29 bits (which #. they currently cannot). #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Per-thread CPU time clocks are not supported by the system." msgstr "ساعات وقت وحدة المعالجة المركزية لكل خيط غير مدعومة من النظام." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "No thread with the ID I could be found." msgstr "تعذر العثور على أي خيط بالمعرف I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "السمات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "الواجهة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "السمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "القيمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "سلامة الخيوط" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.2. POSIX.1-2001." msgstr "glibc 2.2. POSIX.1-2001." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When I refers to the calling thread, this function returns an " "identifier that refers to the same clock manipulated by B(2) " "and B(2) when given the clock ID B." msgstr "" "عندما يُشير I إلى الخيط المُستدعي، تُعيد هذه الدالة مُعرّفاً يُشير إلى نفس " "الساعة التي يُعالجها B(2) و B(2) عند إعطاء مُعرّف " "الساعة B." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below creates a thread and then uses B(2) to " "retrieve the total process CPU time, and the per-thread CPU time consumed by " "the two threads. The following shell session shows an example run:" msgstr "" "يُنشئ البرنامج أدناه خيطاً ثم يستخدم B(2) لاسترداد إجمالي وقت " "وحدة المعالجة المركزية للعملية، ووقت وحدة المعالجة المركزية لكل خيط المُستهلك " "من قبل الخيطين. تُظهر جلسة الصدفة التالية تشغيلاً مثالياً:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out>;\n" "Main thread sleeping\n" "Subthread starting infinite loop\n" "Main thread consuming some CPU time...\n" "Process total CPU time: 1.368\n" "Main thread CPU time: 0.376\n" "Subthread CPU time: 0.992\n" msgstr "" "$B< ./a.out>;\n" "Main thread sleeping\n" "Subthread starting infinite loop\n" "Main thread consuming some CPU time...\n" "Process total CPU time: 1.368\n" "Main thread CPU time: 0.376\n" "Subthread CPU time: 0.992\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "/* Link with \"-lrt\" */\n" "\\&\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/time.hE\n" "#include Etime.hE\n" "#include Eunistd.hE\n" "\\&\n" "static void *\n" "thread_start(void *arg)\n" "{\n" " printf(\"Subthread starting infinite loop\\[rs]n\");\n" " for (;;)\n" " continue;\n" "}\n" "\\&\n" "static void\n" "pclock(char *msg, clockid_t cid)\n" "{\n" " struct timespec ts;\n" "\\&\n" " printf(\"%s\", msg);\n" " if (clock_gettime(cid, &ts) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" " printf(\"%4jd.%03ld\\[rs]n\", (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " pthread_t thread;\n" " clockid_t cid;\n" " int s;\n" "\\&\n" " s = pthread_create(&thread, NULL, thread_start, NULL);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_create\");\n" "\\&\n" " printf(\"Main thread sleeping\\[rs]n\");\n" " sleep(1);\n" "\\&\n" " printf(\"Main thread consuming some CPU time...\\[rs]n\");\n" " for (unsigned int j = 0; j E 2000000; j++)\n" " getppid();\n" "\\&\n" " pclock(\"Process total CPU time: \", CLOCK_PROCESS_CPUTIME_ID);\n" "\\&\n" " s = pthread_getcpuclockid(pthread_self(), &cid);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getcpuclockid\");\n" " pclock(\"Main thread CPU time: \", cid);\n" "\\&\n" " /* The preceding 4 lines of code could have been replaced by:\n" " pclock(\"Main thread CPU time: \", CLOCK_THREAD_CPUTIME_ID); */\n" "\\&\n" " s = pthread_getcpuclockid(thread, &cid);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getcpuclockid\");\n" " pclock(\"Subthread CPU time: 1 \", cid);\n" "\\&\n" " exit(EXIT_SUCCESS); /* Terminates both threads */\n" "}\n" msgstr "" "/* Link with \"-lrt\" */\n" "\\&\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/time.hE\n" "#include Etime.hE\n" "#include Eunistd.hE\n" "\\&\n" "static void *\n" "thread_start(void *arg)\n" "{\n" " printf(\"Subthread starting infinite loop\\[rs]n\");\n" " for (;;)\n" " continue;\n" "}\n" "\\&\n" "static void\n" "pclock(char *msg, clockid_t cid)\n" "{\n" " struct timespec ts;\n" "\\&\n" " printf(\"%s\", msg);\n" " if (clock_gettime(cid, &ts) == -1)\n" " err(EXIT_FAILURE, \"clock_gettime\");\n" " printf(\"%4jd.%03ld\\[rs]n\", (intmax_t) ts.tv_sec, ts.tv_nsec / 1000000);\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " pthread_t thread;\n" " clockid_t cid;\n" " int s;\n" "\\&\n" " s = pthread_create(&thread, NULL, thread_start, NULL);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_create\");\n" "\\&\n" " printf(\"Main thread sleeping\\[rs]n\");\n" " sleep(1);\n" "\\&\n" " printf(\"Main thread consuming some CPU time...\\[rs]n\");\n" " for (unsigned int j = 0; j E 2000000; j++)\n" " getppid();\n" "\\&\n" " pclock(\"Process total CPU time: \", CLOCK_PROCESS_CPUTIME_ID);\n" "\\&\n" " s = pthread_getcpuclockid(pthread_self(), &cid);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getcpuclockid\");\n" " pclock(\"Main thread CPU time: \", cid);\n" "\\&\n" " /* The preceding 4 lines of code could have been replaced by:\n" " pclock(\"Main thread CPU time: \", CLOCK_THREAD_CPUTIME_ID); */\n" "\\&\n" " s = pthread_getcpuclockid(thread, &cid);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getcpuclockid\");\n" " pclock(\"Subthread CPU time: 1 \", cid);\n" "\\&\n" " exit(EXIT_SUCCESS); /* Terminates both threads */\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(2), B(2), B(2), " "B(3), B(3), B(7), B