Debian Codegraph @

po/ar/man2/kcmp.2.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
9 "PO-Revision-Date: 2026-05-18 17:43+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 "kcmp"
25 msgstr "kcmp"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 2026"
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 "kcmp - compare two processes to determine if they share a kernel resource"
52 msgstr "kcmp - مقارنة عمليتين لتحديد ما إذا كانتا تشاركان مورد نواة"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>linux/kcmp.hE<gt>> /* Definition of B<KCMP_*> constants */\n"
80 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
81 "B<#include E<lt>unistd.hE<gt>>\n"
82 msgstr ""
83 "B<#include E<lt>linux/kcmp.hE<gt>> /* Definition of B<KCMP_*> constants */\n"
84 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
85 "B<#include E<lt>unistd.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid ""
92 "B<int syscall(SYS_kcmp, pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n"
93 "B< unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n"
94 msgstr ""
95 "B<int syscall(SYS_kcmp, pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n"
96 "B< unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "I<Note>: glibc provides no wrapper for B<kcmp>(), necessitating the use of "
103 "B<syscall>(2)."
104 msgstr ""
105 "I<ملاحظة>: لا توفر glibc غلافًا لـ B<kcmp>()، مما يستلزم استخدام "
106 "B<syscall>(2)."
107
108 #. type: SH
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid "DESCRIPTION"
113 msgstr "الوصف"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "The B<kcmp>() system call can be used to check whether the two processes "
120 "identified by I<pid1> and I<pid2> share a kernel resource such as virtual "
121 "memory, file descriptors, and so on."
122 msgstr ""
123 "يمكن استخدام استدعاء النظام B<kcmp>() للتحقق مما إذا كانت العمليتان "
124 "المحددتان بواسطة I<pid1> و I<pid2> تشاركان مورد نواة مثل الذاكرة الافتراضية، "
125 "وواصفات الملفات، وما إلى ذلك."
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "Permission to employ B<kcmp>() is governed by ptrace access mode "
132 "B<PTRACE_MODE_READ_REALCREDS> checks against both I<pid1> and I<pid2>; see "
133 "B<ptrace>(2)."
134 msgstr ""
135 "يخضع الإذن لاستخدام B<kcmp>() لفحوصات وضع الوصول ptrace "
136 "B<PTRACE_MODE_READ_REALCREDS> ضد كل من I<pid1> و I<pid2>؛ انظر B<ptrace>(2)."
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The I<type> argument specifies which resource is to be compared in the two "
143 "processes. It has one of the following values:"
144 msgstr ""
145 "تحدد الوسيطة I<type> أي مورد سيتم مقارنته في العمليتين. تأخذ إحدى القيم "
146 "التالية:"
147
148 #. type: TP
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "B<KCMP_FILE>"
153 msgstr "B<KCMP_FILE>"
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 msgid ""
159 "Check whether a file descriptor I<idx1> in the process I<pid1> refers to the "
160 "same open file description (see B<open>(2)) as file descriptor I<idx2> in "
161 "the process I<pid2>. The existence of two file descriptors that refer to "
162 "the same open file description can occur as a result of B<dup>(2) (and "
163 "similar) B<fork>(2), or passing file descriptors via a domain socket (see "
164 "B<unix>(7))."
165 msgstr ""
166 "التحقق مما إذا كان واصف الملف I<idx1> في العملية I<pid1> يشير إلى نفس وصف "
167 "الملف المفتوح (انظر B<open>(2)) مثل واصف الملف I<idx2> في العملية I<pid2>. "
168 "يمكن أن يحدث وجود واصفي ملف يشيران إلى نفس وصف الملف المفتوح نتيجة لـ "
169 "B<dup>(2) (وما شابه) B<fork>(2)، أو تمرير واصفات الملفات عبر مقبس نطاق (انظر "
170 "B<unix>(7))."
171
172 #. type: TP
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "B<KCMP_FILES>"
177 msgstr "B<KCMP_FILES>"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "Check whether the processes share the same set of open file descriptors. "
184 "The arguments I<idx1> and I<idx2> are ignored. See the discussion of the "
185 "B<CLONE_FILES> flag in B<clone>(2)."
186 msgstr ""
187 "التحقق مما إذا كانت العمليتان تشاركان نفس مجموعة واصفات الملفات المفتوحة. "
188 "يتم تجاهل الوسيطتين I<idx1> و I<idx2>. انظر مناقشة العلم B<CLONE_FILES> في "
189 "B<clone>(2)."
190
191 #. type: TP
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid "B<KCMP_FS>"
196 msgstr "B<KCMP_FS>"
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "Check whether the processes share the same filesystem information (i.e., "
203 "file mode creation mask, working directory, and filesystem root). The "
204 "arguments I<idx1> and I<idx2> are ignored. See the discussion of the "
205 "B<CLONE_FS> flag in B<clone>(2)."
206 msgstr ""
207 "التحقق مما إذا كانت العمليتان تشاركان نفس معلومات نظام الملفات (أي قناع "
208 "إنشاء وضع الملف، دليل العمل، وجذر نظام الملفات). يتم تجاهل الوسيطتين I<idx1> "
209 "و I<idx2>. انظر مناقشة العلم B<CLONE_FS> في B<clone>(2)."
210
211 #. type: TP
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "B<KCMP_IO>"
216 msgstr "B<KCMP_IO>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "Check whether the processes share I/O context. The arguments I<idx1> and "
223 "I<idx2> are ignored. See the discussion of the B<CLONE_IO> flag in "
224 "B<clone>(2)."
225 msgstr ""
226 "التحقق مما إذا كانت العمليتان تشاركان سياق الإدخال/الإخراج. يتم تجاهل "
227 "الوسيطتين I<idx1> و I<idx2>. انظر مناقشة العلم B<CLONE_IO> في B<clone>(2)."
228
229 #. type: TP
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "B<KCMP_SIGHAND>"
234 msgstr "B<KCMP_SIGHAND>"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "Check whether the processes share the same table of signal dispositions. "
241 "The arguments I<idx1> and I<idx2> are ignored. See the discussion of the "
242 "B<CLONE_SIGHAND> flag in B<clone>(2)."
243 msgstr ""
244 "التحقق مما إذا كانت العمليتان تشاركان نفس جدول ترتيبات الإشارات. يتم تجاهل "
245 "الوسيطتين I<idx1> و I<idx2>. انظر مناقشة العلم B<CLONE_SIGHAND> في "
246 "B<clone>(2)."
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<KCMP_SYSVSEM>"
253 msgstr "B<KCMP_SYSVSEM>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "Check whether the processes share the same list of System\\ V semaphore undo "
260 "operations. The arguments I<idx1> and I<idx2> are ignored. See the "
261 "discussion of the B<CLONE_SYSVSEM> flag in B<clone>(2)."
262 msgstr ""
263 "تحقق مما إذا كانت العمليات تشترك في نفس قائمة عمليات التراجع عن إشارات "
264 "System\\V. يتم تجاهل الوسيطتين I<idx1> و I<idx2>. انظر شرح العلامة "
265 "B<CLONE_SYSVSEM> في B<clone>(2)."
266
267 #. type: TP
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "B<KCMP_VM>"
272 msgstr "B<KCMP_VM>"
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "Check whether the processes share the same address space. The arguments "
279 "I<idx1> and I<idx2> are ignored. See the discussion of the B<CLONE_VM> flag "
280 "in B<clone>(2)."
281 msgstr ""
282 "التحقق مما إذا كانت العمليتان تشاركان نفس مساحة العنوان. يتم تجاهل الوسيطتين "
283 "I<idx1> و I<idx2>. انظر مناقشة العلم B<CLONE_VM> في B<clone>(2)."
284
285 #. type: TP
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "B<KCMP_EPOLL_TFD> (since Linux 4.13)"
290 msgstr "B<KCMP_EPOLL_TFD> (منذ Linux 4.13)"
291
292 #. commit 0791e3644e5ef21646fe565b9061788d05ec71d4
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "Check whether the file descriptor I<idx1> of the process I<pid1> is present "
298 "in the B<epoll>(7) instance described by I<idx2> of the process I<pid2>. "
299 "The argument I<idx2> is a pointer to a structure where the target file is "
300 "described. This structure has the form:"
301 msgstr ""
302 "التحقق مما إذا كان واصف الملف I<idx1> للعملية I<pid1> موجودًا في مثيل "
303 "B<epoll>(7) الموصوف بواسطة I<idx2> للعملية I<pid2>. الوسيطة I<idx2> هي مؤشر "
304 "لبنية حيث يتم وصف الملف الهدف. هذه البنية لها الشكل:"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid ""
311 "struct kcmp_epoll_slot {\n"
312 " __u32 efd;\n"
313 " __u32 tfd;\n"
314 " __u64 toff;\n"
315 "};\n"
316 msgstr ""
317 "struct kcmp_epoll_slot {\n"
318 " __u32 efd;\n"
319 " __u32 tfd;\n"
320 " __u64 toff;\n"
321 "};\n"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "Within this structure, I<efd> is an epoll file descriptor returned from "
328 "B<epoll_create>(2), I<tfd> is a target file descriptor number, and I<toff> "
329 "is a target file offset counted from zero. Several different targets may be "
330 "registered with the same file descriptor number and setting a specific "
331 "offset helps to investigate each of them."
332 msgstr ""
333 "داخل هذه البنية، I<efd> هو واصف ملف epoll مُعاد من B<epoll_create>(2)، I<tfd> "
334 "هو رقم واصف ملف هدف، و I<toff> هو إزاحة ملف هدف تُحسب من الصفر. يمكن تسجيل "
335 "عدة أهداف مختلفة بنفس رقم واصف الملف، ويساعد تعيين إزاحة محددة في فحص كل "
336 "منها."
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "Note the B<kcmp>() is not protected against false positives which may occur "
343 "if the processes are currently running. One should stop the processes by "
344 "sending B<SIGSTOP> (see B<signal>(7)) prior to inspection with this system "
345 "call to obtain meaningful results."
346 msgstr ""
347 "لاحظ أن B<kcmp>() غير محمي ضد النتائج الإيجابية الخاطئة التي قد تحدث إذا "
348 "كانت العمليات قيد التشغيل حاليًا. يجب إيقاف العمليات عن طريق إرسال B<SIGSTOP> "
349 "(انظر B<signal>(7)) قبل الفحص باستدعاء النظام هذا للحصول على نتائج ذات معنى."
350
351 #. type: SH
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "RETURN VALUE"
356 msgstr "قيمة الإرجاع"
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid ""
362 "The return value of a successful call to B<kcmp>() is simply the result of "
363 "arithmetic comparison of kernel pointers (when the kernel compares "
364 "resources, it uses their memory addresses)."
365 msgstr ""
366 "قيمة الإرجاع لاستدعاء ناجح لـ B<kcmp>() هي ببساطة نتيجة المقارنة الحسابية "
367 "لمؤشرات النواة (عندما تقارن النواة الموارد، تستخدم عناوين ذاكرتها)."
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "The easiest way to explain is to consider an example. Suppose that I<v1> "
374 "and I<v2> are the addresses of appropriate resources, then the return value "
375 "is one of the following:"
376 msgstr ""
377 "أسهل طريقة للشرح هي النظر في مثال. افترض أن I<v1> و I<v2> هما عنوانا الموارد "
378 "المناسبة، فإن قيمة الإرجاع تكون إحدى التالية:"
379
380 #. type: TP
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "B<0>"
385 msgstr "B<0>"
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "I<v1> is equal to I<v2>; in other words, the two processes share the "
392 "resource."
393 msgstr "I<v1> يساوي I<v2>؛ بمعنى آخر، تشارك العمليتان المورد."
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<1>"
400 msgstr "B<1>"
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid "I<v1> is less than I<v2>."
406 msgstr "I<v1> أصغر من I<v2>."
407
408 #. type: TP
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "B<2>"
413 msgstr "B<2>"
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "I<v1> is greater than I<v2>."
419 msgstr "I<v1> أكبر من I<v2>."
420
421 #. type: TP
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "B<3>"
426 msgstr "B<3>"
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid "I<v1> is not equal to I<v2>, but ordering information is unavailable."
432 msgstr "I<v1> لا يساوي I<v2>، لكن معلومات الترتيب غير متوفرة."
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid "On error, -1 is returned, and I<errno> is set to indicate the error."
438 msgstr "عند الخطأ، تُعاد القيمة -1، ويُضبط I<errno> للإشارة إلى الخطأ."
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<kcmp>() was designed to return values suitable for sorting. This is "
445 "particularly handy if one needs to compare a large number of file "
446 "descriptors."
447 msgstr ""
448 "صُمم B<kcmp>() لإرجاع قيم مناسبة للفرز. هذا مفيد بشكل خاص إذا احتاج المرء "
449 "لمقارنة عدد كبير من واصفات الملفات."
450
451 #. type: SH
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "ERRORS"
456 msgstr "الأخطاء"
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<EBADF>"
463 msgstr "B<EBADF>"
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 ""
469 "I<type> is B<KCMP_FILE> and I<fd1> or I<fd2> is not an open file descriptor."
470 msgstr "I<type> هو B<KCMP_FILE> و I<fd1> أو I<fd2> ليس واصف ملف مفتوح."
471
472 #. type: TP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "B<EFAULT>"
477 msgstr "B<EFAULT>"
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid ""
483 "The epoll slot addressed by I<idx2> is outside of the user's address space."
484 msgstr "فتحة epoll المُشار إليها بواسطة I<idx2> خارج نطاق عنوان المستخدم."
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "B<EINVAL>"
491 msgstr "B<EINVAL>"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "I<type> is invalid."
497 msgstr "I<type> غير صالح."
498
499 #. type: TP
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "B<ENOENT>"
504 msgstr "B<ENOENT>"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid "The target file is not present in B<epoll>(7) instance."
510 msgstr "الملف الهدف غير موجود في مثيل B<epoll>(7)."
511
512 #. type: TP
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "B<EPERM>"
517 msgstr "B<EPERM>"
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ""
523 "Insufficient permission to inspect process resources. The B<CAP_SYS_PTRACE> "
524 "capability is required to inspect processes that you do not own. Other "
525 "ptrace limitations may also apply, such as B<CONFIG_SECURITY_YAMA>, which, "
526 "when I</proc/sys/kernel/yama/ptrace_scope> is 2, limits B<kcmp>() to child "
527 "processes; see B<ptrace>(2)."
528 msgstr ""
529 "صلاحية غير كافية لفحص موارد العملية. القدرة B<CAP_SYS_PTRACE> مطلوبة لفحص "
530 "العمليات التي لا تملكها. قد تنطبق قيود ptrace أخرى أيضًا، مثل "
531 "B<CONFIG_SECURITY_YAMA>، والتي عندما تكون I</proc/sys/kernel/yama/"
532 "ptrace_scope> مساوية لـ 2، تحد B<kcmp>() من العمليات الفرعية؛ انظر "
533 "B<ptrace>(2)."
534
535 #. type: TP
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "B<ESRCH>"
540 msgstr "B<ESRCH>"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid "Process I<pid1> or I<pid2> does not exist."
546 msgstr "العملية I<pid1> أو I<pid2> غير موجودة."
547
548 #. type: SH
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "STANDARDS"
553 msgstr "المعايير"
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid "Linux."
559 msgstr "لينكس."
560
561 #. type: SH
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 #, no-wrap
565 msgid "HISTORY"
566 msgstr "التاريخ"
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid "Linux 3.5."
572 msgstr "لينكس 3.5."
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "Before Linux 5.12, this system call is available only if the kernel is "
579 "configured with B<CONFIG_CHECKPOINT_RESTORE>, since the original purpose of "
580 "the system call was for the checkpoint/restore in user space (CRIU) "
581 "feature. (The alternative to this system call would have been to expose "
582 "suitable process information via the B<proc>(5) filesystem; this was deemed "
583 "to be unsuitable for security reasons.) Since Linux 5.12, this system call "
584 "is also available if the kernel is configured with B<CONFIG_KCMP>."
585 msgstr ""
586 "قبل لينكس 5.12، تكون استدعاء النظام هذا متاحة فقط إذا كان النواة مُهيأة بـ "
587 "B<CONFIG_CHECKPOINT_RESTORE>، لأن الغرض الأصلي من استدعاء النظام كان لميزة "
588 "نقطة التفتيش/الاستعادة في مساحة المستخدم (CRIU). (البديل لاستدعاء النظام هذا "
589 "كان سيكون كشف معلومات العملية المناسبة عبر نظام ملفات B<proc>(5)؛ اعتُبر هذا "
590 "غير مناسب لأسباب أمنية.) منذ لينكس 5.12، تكون استدعاء النظام هذه متاحة أيضًا "
591 "إذا كانت النواة مُهيأة بـ B<CONFIG_KCMP>."
592
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "NOTES"
598 msgstr "ملاحظات"
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "See B<clone>(2) for some background information on the shared resources "
605 "referred to on this page."
606 msgstr ""
607 "انظر B<clone>(2) للحصول على بعض المعلومات الأساسية حول الموارد المشتركة "
608 "المُشار إليها في هذه الصفحة."
609
610 #. type: SH
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "EXAMPLES"
615 msgstr "أمثلة"
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 msgid ""
621 "The program below uses B<kcmp>() to test whether pairs of file descriptors "
622 "refer to the same open file description. The program tests different cases "
623 "for the file descriptor pairs, as described in the program output. An "
624 "example run of the program is as follows:"
625 msgstr ""
626 "يستخدم البرنامج أدناه B<kcmp>() لاختبار ما إذا كانت أزواج واصفات الملفات "
627 "تشير إلى نفس وصف الملف المفتوح. يختبر البرنامج حالات مختلفة لأزواج واصفات "
628 "الملفات، كما هو موصوف في مخرجات البرنامج. مثال على تشغيل البرنامج هو كما يلي:"
629
630 #. type: Plain text
631 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
632 #: opensuse-tumbleweed
633 #, no-wrap
634 msgid ""
635 "$B< ./a.out>;\n"
636 "Parent PID is 1144\n"
637 "Parent opened file on FD 3\n"
638 "\\&\n"
639 "PID of child of fork() is 1145\n"
640 "\tCompare duplicate FDs from different processes:\n"
641 "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n"
642 "Child opened file on FD 4\n"
643 "\tCompare FDs from distinct open()s in same process:\n"
644 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n"
645 "Child duplicated FD 3 to create FD 5\n"
646 "\tCompare duplicated FDs in same process:\n"
647 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n"
648 msgstr ""
649 "$B< ./a.out>;\n"
650 "Parent PID is 1144\n"
651 "Parent opened file on FD 3\n"
652 "\\&\n"
653 "PID of child of fork() is 1145\n"
654 "\tCompare duplicate FDs from different processes:\n"
655 "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n"
656 "Child opened file on FD 4\n"
657 "\tCompare FDs from distinct open()s in same process:\n"
658 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n"
659 "Child duplicated FD 3 to create FD 5\n"
660 "\tCompare duplicated FDs in same process:\n"
661 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n"
662
663 #. type: SS
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 #, no-wrap
667 msgid "Program source"
668 msgstr "مصدر البرنامج"
669
670 #. type: Plain text
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 #, no-wrap
674 msgid ""
675 "#define _GNU_SOURCE\n"
676 "#include E<lt>err.hE<gt>\n"
677 "#include E<lt>fcntl.hE<gt>\n"
678 "#include E<lt>linux/kcmp.hE<gt>\n"
679 "#include E<lt>stdint.hE<gt>\n"
680 "#include E<lt>stdio.hE<gt>\n"
681 "#include E<lt>stdlib.hE<gt>\n"
682 "#include E<lt>sys/syscall.hE<gt>\n"
683 "#include E<lt>sys/types.hE<gt>\n"
684 "#include E<lt>sys/wait.hE<gt>\n"
685 "#include E<lt>unistd.hE<gt>\n"
686 "\\&\n"
687 "static int\n"
688 "kcmp(pid_t pid1, pid_t pid2, int type,\n"
689 " unsigned long idx1, unsigned long idx2)\n"
690 "{\n"
691 " return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n"
692 "}\n"
693 "\\&\n"
694 "static void\n"
695 "test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n"
696 "{\n"
697 " printf(\"\\[rs]t%s\\[rs]n\", msg);\n"
698 " printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\[rs]n\",\n"
699 " (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n"
700 " (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n"
701 " \"same\" : \"different\");\n"
702 "}\n"
703 "\\&\n"
704 "int\n"
705 "main(void)\n"
706 "{\n"
707 " int fd1, fd2, fd3;\n"
708 " static const char pathname[] = \"/tmp/kcmp.test\";\n"
709 "\\&\n"
710 " fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
711 " if (fd1 == -1)\n"
712 " err(EXIT_FAILURE, \"open\");\n"
713 "\\&\n"
714 " printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
715 " printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n"
716 "\\&\n"
717 " switch (fork()) {\n"
718 " case -1:\n"
719 " err(EXIT_FAILURE, \"fork\");\n"
720 "\\&\n"
721 " case 0:\n"
722 " printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n"
723 "\\&\n"
724 " test_kcmp(\"Compare duplicate FDs from different processes:\",\n"
725 " getpid(), getppid(), fd1, fd1);\n"
726 "\\&\n"
727 " fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
728 " if (fd2 == -1)\n"
729 " err(EXIT_FAILURE, \"open\");\n"
730 " printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n"
731 "\\&\n"
732 " test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n"
733 " getpid(), getpid(), fd1, fd2);\n"
734 "\\&\n"
735 " fd3 = dup(fd1);\n"
736 " if (fd3 == -1)\n"
737 " err(EXIT_FAILURE, \"dup\");\n"
738 " printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n"
739 "\\&\n"
740 " test_kcmp(\"Compare duplicated FDs in same process:\",\n"
741 " getpid(), getpid(), fd1, fd3);\n"
742 " break;\n"
743 "\\&\n"
744 " default:\n"
745 " wait(NULL);\n"
746 " }\n"
747 "\\&\n"
748 " exit(EXIT_SUCCESS);\n"
749 "}\n"
750 msgstr ""
751 "#define _GNU_SOURCE\n"
752 "#include E<lt>err.hE<gt>\n"
753 "#include E<lt>fcntl.hE<gt>\n"
754 "#include E<lt>linux/kcmp.hE<gt>\n"
755 "#include E<lt>stdint.hE<gt>\n"
756 "#include E<lt>stdio.hE<gt>\n"
757 "#include E<lt>stdlib.hE<gt>\n"
758 "#include E<lt>sys/syscall.hE<gt>\n"
759 "#include E<lt>sys/types.hE<gt>\n"
760 "#include E<lt>sys/wait.hE<gt>\n"
761 "#include E<lt>unistd.hE<gt>\n"
762 "\\&\n"
763 "static int\n"
764 "kcmp(pid_t pid1, pid_t pid2, int type,\n"
765 " unsigned long idx1, unsigned long idx2)\n"
766 "{\n"
767 " return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n"
768 "}\n"
769 "\\&\n"
770 "static void\n"
771 "test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n"
772 "{\n"
773 " printf(\"\\[rs]t%s\\[rs]n\", msg);\n"
774 " printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\[rs]n\",\n"
775 " (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n"
776 " (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n"
777 " \"same\" : \"different\");\n"
778 "}\n"
779 "\\&\n"
780 "int\n"
781 "main(void)\n"
782 "{\n"
783 " int fd1, fd2, fd3;\n"
784 " static const char pathname[] = \"/tmp/kcmp.test\";\n"
785 "\\&\n"
786 " fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
787 " if (fd1 == -1)\n"
788 " err(EXIT_FAILURE, \"open\");\n"
789 "\\&\n"
790 " printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
791 " printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n"
792 "\\&\n"
793 " switch (fork()) {\n"
794 " case -1:\n"
795 " err(EXIT_FAILURE, \"fork\");\n"
796 "\\&\n"
797 " case 0:\n"
798 " printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n"
799 "\\&\n"
800 " test_kcmp(\"Compare duplicate FDs from different processes:\",\n"
801 " getpid(), getppid(), fd1, fd1);\n"
802 "\\&\n"
803 " fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n"
804 " if (fd2 == -1)\n"
805 " err(EXIT_FAILURE, \"open\");\n"
806 " printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n"
807 "\\&\n"
808 " test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n"
809 " getpid(), getpid(), fd1, fd2);\n"
810 "\\&\n"
811 " fd3 = dup(fd1);\n"
812 " if (fd3 == -1)\n"
813 " err(EXIT_FAILURE, \"dup\");\n"
814 " printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n"
815 "\\&\n"
816 " test_kcmp(\"Compare duplicated FDs in same process:\",\n"
817 " getpid(), getpid(), fd1, fd3);\n"
818 " break;\n"
819 "\\&\n"
820 " default:\n"
821 " wait(NULL);\n"
822 " }\n"
823 "\\&\n"
824 " exit(EXIT_SUCCESS);\n"
825 "}\n"
826
827 #. SRC END
828 #. type: SH
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "SEE ALSO"
833 msgstr "انظر أيضًا"
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 msgid "B<clone>(2), B<unshare>(2)"
839 msgstr "B<clone>(2), B<unshare>(2)"
840
841 #. type: TH
842 #: debian-trixie
843 #, no-wrap
844 msgid "2024-06-15"
845 msgstr "15 يونيو 2024"
846
847 #. type: TH
848 #: debian-trixie
849 #, no-wrap
850 msgid "Linux man-pages 6.9.1"
851 msgstr "صفحات دليل لينكس 6.9.1"
852
853 #. type: Plain text
854 #: debian-trixie
855 msgid "Standard C library (I<libc>, I<-lc>)"
856 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
857
858 #. type: Plain text
859 #: debian-trixie fedora-44 fedora-rawhide
860 #, no-wrap
861 msgid ""
862 "$ B<./a.out>\n"
863 "Parent PID is 1144\n"
864 "Parent opened file on FD 3\n"
865 "\\&\n"
866 "PID of child of fork() is 1145\n"
867 "\tCompare duplicate FDs from different processes:\n"
868 "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n"
869 "Child opened file on FD 4\n"
870 "\tCompare FDs from distinct open()s in same process:\n"
871 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n"
872 "Child duplicated FD 3 to create FD 5\n"
873 "\tCompare duplicated FDs in same process:\n"
874 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n"
875 msgstr ""
876 "$ B<./a.out>\n"
877 "Parent PID is 1144\n"
878 "Parent opened file on FD 3\n"
879 "\\&\n"
880 "PID of child of fork() is 1145\n"
881 "\tCompare duplicate FDs from different processes:\n"
882 "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n"
883 "Child opened file on FD 4\n"
884 "\tCompare FDs from distinct open()s in same process:\n"
885 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n"
886 "Child duplicated FD 3 to create FD 5\n"
887 "\tCompare duplicated FDs in same process:\n"
888 "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n"
889
890 #. type: TH
891 #: fedora-44 fedora-rawhide
892 #, no-wrap
893 msgid "2024-07-23"
894 msgstr "23 يوليو 2024"
895
896 #. type: TH
897 #: fedora-44 fedora-rawhide
898 #, no-wrap
899 msgid "Linux man-pages 6.13"
900 msgstr "صفحات دليل لينكس 6.13"
901
902 #. type: TH
903 #: mageia-cauldron
904 #, no-wrap
905 msgid "Linux man-pages 6.17"
906 msgstr "صفحات دليل لينكس 6.17"
907
908 #. type: TH
909 #: opensuse-leap-16-1 opensuse-tumbleweed
910 #, no-wrap
911 msgid "Linux man-pages (unreleased)"
912 msgstr "صفحات دليل لينكس (لم تصدر بعد)"