# 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:29+0200\n" "PO-Revision-Date: 2026-05-18 17:43+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 "kcmp" msgstr "kcmp" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. 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 "" "kcmp - compare two processes to determine if they share a kernel resource" msgstr "kcmp - مقارنة عمليتين لتحديد ما إذا كانتا تشاركان مورد نواة" #. 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 "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. 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 Elinux/kcmp.hE> /* Definition of B constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Elinux/kcmp.hE> /* Definition of B constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.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<, pid_t >IB<, int >IB<,>\n" "B< unsigned long >IB<, unsigned long >IB<);>\n" msgstr "" "BIB<, pid_t >IB<, int >IB<,>\n" "B< unsigned long >IB<, unsigned long >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I: glibc provides no wrapper for B(), necessitating the use of " "B(2)." msgstr "" "I<ملاحظة>: لا توفر glibc غلافًا لـ B()، مما يستلزم استخدام " "B(2)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call can be used to check whether the two processes " "identified by I and I share a kernel resource such as virtual " "memory, file descriptors, and so on." msgstr "" "يمكن استخدام استدعاء النظام B() للتحقق مما إذا كانت العمليتان " "المحددتان بواسطة I و I تشاركان مورد نواة مثل الذاكرة الافتراضية، " "وواصفات الملفات، وما إلى ذلك." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Permission to employ B() is governed by ptrace access mode " "B checks against both I and I; see " "B(2)." msgstr "" "يخضع الإذن لاستخدام B() لفحوصات وضع الوصول ptrace " "B ضد كل من I و I؛ انظر B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument specifies which resource is to be compared in the two " "processes. It has one of the following values:" msgstr "" "تحدد الوسيطة I أي مورد سيتم مقارنته في العمليتين. تأخذ إحدى القيم " "التالية:" #. 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 "" "Check whether a file descriptor I in the process I refers to the " "same open file description (see B(2)) as file descriptor I in " "the process I. The existence of two file descriptors that refer to " "the same open file description can occur as a result of B(2) (and " "similar) B(2), or passing file descriptors via a domain socket (see " "B(7))." msgstr "" "التحقق مما إذا كان واصف الملف I في العملية I يشير إلى نفس وصف " "الملف المفتوح (انظر B(2)) مثل واصف الملف I في العملية I. " "يمكن أن يحدث وجود واصفي ملف يشيران إلى نفس وصف الملف المفتوح نتيجة لـ " "B(2) (وما شابه) B(2)، أو تمرير واصفات الملفات عبر مقبس نطاق (انظر " "B(7))." #. 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 "" "Check whether the processes share the same set of open file descriptors. " "The arguments I and I are ignored. See the discussion of the " "B flag in B(2)." msgstr "" "التحقق مما إذا كانت العمليتان تشاركان نفس مجموعة واصفات الملفات المفتوحة. " "يتم تجاهل الوسيطتين I و I. انظر مناقشة العلم B في " "B(2)." #. 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 "" "Check whether the processes share the same filesystem information (i.e., " "file mode creation mask, working directory, and filesystem root). The " "arguments I and I are ignored. See the discussion of the " "B flag in B(2)." msgstr "" "التحقق مما إذا كانت العمليتان تشاركان نفس معلومات نظام الملفات (أي قناع " "إنشاء وضع الملف، دليل العمل، وجذر نظام الملفات). يتم تجاهل الوسيطتين I " "و I. انظر مناقشة العلم B في B(2)." #. 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 "" "Check whether the processes share I/O context. The arguments I and " "I are ignored. See the discussion of the B flag in " "B(2)." msgstr "" "التحقق مما إذا كانت العمليتان تشاركان سياق الإدخال/الإخراج. يتم تجاهل " "الوسيطتين I و I. انظر مناقشة العلم B في B(2)." #. 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 "" "Check whether the processes share the same table of signal dispositions. " "The arguments I and I are ignored. See the discussion of the " "B flag in B(2)." msgstr "" "التحقق مما إذا كانت العمليتان تشاركان نفس جدول ترتيبات الإشارات. يتم تجاهل " "الوسيطتين I و I. انظر مناقشة العلم B في " "B(2)." #. 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 "" "Check whether the processes share the same list of System\\ V semaphore undo " "operations. The arguments I and I are ignored. See the " "discussion of the B flag in B(2)." msgstr "" "تحقق مما إذا كانت العمليات تشترك في نفس قائمة عمليات التراجع عن إشارات " "System\\V. يتم تجاهل الوسيطتين I و I. انظر شرح العلامة " "B في B(2)." #. 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 "" "Check whether the processes share the same address space. The arguments " "I and I are ignored. See the discussion of the B flag " "in B(2)." msgstr "" "التحقق مما إذا كانت العمليتان تشاركان نفس مساحة العنوان. يتم تجاهل الوسيطتين " "I و I. انظر مناقشة العلم B في B(2)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.13)" msgstr "B (منذ Linux 4.13)" #. commit 0791e3644e5ef21646fe565b9061788d05ec71d4 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Check whether the file descriptor I of the process I is present " "in the B(7) instance described by I of the process I. " "The argument I is a pointer to a structure where the target file is " "described. This structure has the form:" msgstr "" "التحقق مما إذا كان واصف الملف I للعملية I موجودًا في مثيل " "B(7) الموصوف بواسطة I للعملية I. الوسيطة I هي مؤشر " "لبنية حيث يتم وصف الملف الهدف. هذه البنية لها الشكل:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct kcmp_epoll_slot {\n" " __u32 efd;\n" " __u32 tfd;\n" " __u64 toff;\n" "};\n" msgstr "" "struct kcmp_epoll_slot {\n" " __u32 efd;\n" " __u32 tfd;\n" " __u64 toff;\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Within this structure, I is an epoll file descriptor returned from " "B(2), I is a target file descriptor number, and I " "is a target file offset counted from zero. Several different targets may be " "registered with the same file descriptor number and setting a specific " "offset helps to investigate each of them." msgstr "" "داخل هذه البنية، I هو واصف ملف epoll مُعاد من B(2)، I " "هو رقم واصف ملف هدف، و I هو إزاحة ملف هدف تُحسب من الصفر. يمكن تسجيل " "عدة أهداف مختلفة بنفس رقم واصف الملف، ويساعد تعيين إزاحة محددة في فحص كل " "منها." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note the B() is not protected against false positives which may occur " "if the processes are currently running. One should stop the processes by " "sending B (see B(7)) prior to inspection with this system " "call to obtain meaningful results." msgstr "" "لاحظ أن B() غير محمي ضد النتائج الإيجابية الخاطئة التي قد تحدث إذا " "كانت العمليات قيد التشغيل حاليًا. يجب إيقاف العمليات عن طريق إرسال B " "(انظر B(7)) قبل الفحص باستدعاء النظام هذا للحصول على نتائج ذات معنى." #. 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 "" "The return value of a successful call to B() is simply the result of " "arithmetic comparison of kernel pointers (when the kernel compares " "resources, it uses their memory addresses)." msgstr "" "قيمة الإرجاع لاستدعاء ناجح لـ B() هي ببساطة نتيجة المقارنة الحسابية " "لمؤشرات النواة (عندما تقارن النواة الموارد، تستخدم عناوين ذاكرتها)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The easiest way to explain is to consider an example. Suppose that I " "and I are the addresses of appropriate resources, then the return value " "is one of the following:" msgstr "" "أسهل طريقة للشرح هي النظر في مثال. افترض أن I و I هما عنوانا الموارد " "المناسبة، فإن قيمة الإرجاع تكون إحدى التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0>" msgstr "B<0>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is equal to I; in other words, the two processes share the " "resource." msgstr "I يساوي I؛ بمعنى آخر، تشارك العمليتان المورد." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<1>" msgstr "B<1>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is less than I." msgstr "I أصغر من I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<2>" msgstr "B<2>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is greater than I." msgstr "I أكبر من I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<3>" msgstr "B<3>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not equal to I, but ordering information is unavailable." msgstr "I لا يساوي I، لكن معلومات الترتيب غير متوفرة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "On error, -1 is returned, and I is set to indicate the error." msgstr "عند الخطأ، تُعاد القيمة -1، ويُضبط I للإشارة إلى الخطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() was designed to return values suitable for sorting. This is " "particularly handy if one needs to compare a large number of file " "descriptors." msgstr "" "صُمم B() لإرجاع قيم مناسبة للفرز. هذا مفيد بشكل خاص إذا احتاج المرء " "لمقارنة عدد كبير من واصفات الملفات." #. 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" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is B and I or I is not an open file descriptor." msgstr "I هو B و I أو I ليس واصف ملف مفتوح." #. 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 "" "The epoll slot addressed by I is outside of the user's address space." msgstr "فتحة epoll المُشار إليها بواسطة I خارج نطاق عنوان المستخدم." #. 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 "I is invalid." msgstr "I غير صالح." #. 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 "The target file is not present in B(7) instance." msgstr "الملف الهدف غير موجود في مثيل B(7)." #. 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 "" "Insufficient permission to inspect process resources. The B " "capability is required to inspect processes that you do not own. Other " "ptrace limitations may also apply, such as B, which, " "when I is 2, limits B() to child " "processes; see B(2)." msgstr "" "صلاحية غير كافية لفحص موارد العملية. القدرة B مطلوبة لفحص " "العمليات التي لا تملكها. قد تنطبق قيود ptrace أخرى أيضًا، مثل " "B، والتي عندما تكون I مساوية لـ 2، تحد B() من العمليات الفرعية؛ انظر " "B(2)." #. 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 "Process I or I does not exist." msgstr "العملية I أو I غير موجودة." #. 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 "Linux." msgstr "لينكس." #. 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 "Linux 3.5." msgstr "لينكس 3.5." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before Linux 5.12, this system call is available only if the kernel is " "configured with B, since the original purpose of " "the system call was for the checkpoint/restore in user space (CRIU) " "feature. (The alternative to this system call would have been to expose " "suitable process information via the B(5) filesystem; this was deemed " "to be unsuitable for security reasons.) Since Linux 5.12, this system call " "is also available if the kernel is configured with B." msgstr "" "قبل لينكس 5.12، تكون استدعاء النظام هذا متاحة فقط إذا كان النواة مُهيأة بـ " "B، لأن الغرض الأصلي من استدعاء النظام كان لميزة " "نقطة التفتيش/الاستعادة في مساحة المستخدم (CRIU). (البديل لاستدعاء النظام هذا " "كان سيكون كشف معلومات العملية المناسبة عبر نظام ملفات B(5)؛ اعتُبر هذا " "غير مناسب لأسباب أمنية.) منذ لينكس 5.12، تكون استدعاء النظام هذه متاحة أيضًا " "إذا كانت النواة مُهيأة بـ B." #. 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 "" "See B(2) for some background information on the shared resources " "referred to on this page." msgstr "" "انظر B(2) للحصول على بعض المعلومات الأساسية حول الموارد المشتركة " "المُشار إليها في هذه الصفحة." #. 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 uses B() to test whether pairs of file descriptors " "refer to the same open file description. The program tests different cases " "for the file descriptor pairs, as described in the program output. An " "example run of the program is as follows:" msgstr "" "يستخدم البرنامج أدناه B() لاختبار ما إذا كانت أزواج واصفات الملفات " "تشير إلى نفس وصف الملف المفتوح. يختبر البرنامج حالات مختلفة لأزواج واصفات " "الملفات، كما هو موصوف في مخرجات البرنامج. مثال على تشغيل البرنامج هو كما يلي:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out>;\n" "Parent PID is 1144\n" "Parent opened file on FD 3\n" "\\&\n" "PID of child of fork() is 1145\n" "\tCompare duplicate FDs from different processes:\n" "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E same\n" "Child opened file on FD 4\n" "\tCompare FDs from distinct open()s in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E different\n" "Child duplicated FD 3 to create FD 5\n" "\tCompare duplicated FDs in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E same\n" msgstr "" "$B< ./a.out>;\n" "Parent PID is 1144\n" "Parent opened file on FD 3\n" "\\&\n" "PID of child of fork() is 1145\n" "\tCompare duplicate FDs from different processes:\n" "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E same\n" "Child opened file on FD 4\n" "\tCompare FDs from distinct open()s in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E different\n" "Child duplicated FD 3 to create FD 5\n" "\tCompare duplicated FDs in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E same\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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Elinux/kcmp.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Esys/wait.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "kcmp(pid_t pid1, pid_t pid2, int type,\n" " unsigned long idx1, unsigned long idx2)\n" "{\n" " return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n" "}\n" "\\&\n" "static void\n" "test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n" "{\n" " printf(\"\\[rs]t%s\\[rs]n\", msg);\n" " printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E %s\\[rs]n\",\n" " (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n" " (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n" " \"same\" : \"different\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd1, fd2, fd3;\n" " static const char pathname[] = \"/tmp/kcmp.test\";\n" "\\&\n" " fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n" " if (fd1 == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n" " printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n" "\\&\n" " switch (fork()) {\n" " case -1:\n" " err(EXIT_FAILURE, \"fork\");\n" "\\&\n" " case 0:\n" " printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n" "\\&\n" " test_kcmp(\"Compare duplicate FDs from different processes:\",\n" " getpid(), getppid(), fd1, fd1);\n" "\\&\n" " fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n" " if (fd2 == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n" "\\&\n" " test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n" " getpid(), getpid(), fd1, fd2);\n" "\\&\n" " fd3 = dup(fd1);\n" " if (fd3 == -1)\n" " err(EXIT_FAILURE, \"dup\");\n" " printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n" "\\&\n" " test_kcmp(\"Compare duplicated FDs in same process:\",\n" " getpid(), getpid(), fd1, fd3);\n" " break;\n" "\\&\n" " default:\n" " wait(NULL);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Elinux/kcmp.hE\n" "#include Estdint.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Esys/wait.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "kcmp(pid_t pid1, pid_t pid2, int type,\n" " unsigned long idx1, unsigned long idx2)\n" "{\n" " return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n" "}\n" "\\&\n" "static void\n" "test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n" "{\n" " printf(\"\\[rs]t%s\\[rs]n\", msg);\n" " printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E %s\\[rs]n\",\n" " (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n" " (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n" " \"same\" : \"different\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd1, fd2, fd3;\n" " static const char pathname[] = \"/tmp/kcmp.test\";\n" "\\&\n" " fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n" " if (fd1 == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n" " printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n" "\\&\n" " switch (fork()) {\n" " case -1:\n" " err(EXIT_FAILURE, \"fork\");\n" "\\&\n" " case 0:\n" " printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n" "\\&\n" " test_kcmp(\"Compare duplicate FDs from different processes:\",\n" " getpid(), getppid(), fd1, fd1);\n" "\\&\n" " fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n" " if (fd2 == -1)\n" " err(EXIT_FAILURE, \"open\");\n" " printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n" "\\&\n" " test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n" " getpid(), getpid(), fd1, fd2);\n" "\\&\n" " fd3 = dup(fd1);\n" " if (fd3 == -1)\n" " err(EXIT_FAILURE, \"dup\");\n" " printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n" "\\&\n" " test_kcmp(\"Compare duplicated FDs in same process:\",\n" " getpid(), getpid(), fd1, fd3);\n" " break;\n" "\\&\n" " default:\n" " wait(NULL);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\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)" msgstr "B(2), B(2)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B<./a.out>\n" "Parent PID is 1144\n" "Parent opened file on FD 3\n" "\\&\n" "PID of child of fork() is 1145\n" "\tCompare duplicate FDs from different processes:\n" "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E same\n" "Child opened file on FD 4\n" "\tCompare FDs from distinct open()s in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E different\n" "Child duplicated FD 3 to create FD 5\n" "\tCompare duplicated FDs in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E same\n" msgstr "" "$ B<./a.out>\n" "Parent PID is 1144\n" "Parent opened file on FD 3\n" "\\&\n" "PID of child of fork() is 1145\n" "\tCompare duplicate FDs from different processes:\n" "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E same\n" "Child opened file on FD 4\n" "\tCompare FDs from distinct open()s in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E different\n" "Child duplicated FD 3 to create FD 5\n" "\tCompare duplicated FDs in same process:\n" "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E same\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"