Debian Codegraph @

po/ar/man3/cmsg.3.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:21+0200\n"
9 "PO-Revision-Date: 2026-06-01 21:59+0200\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 "CMSG"
25 msgstr "CMSG"
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 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - access ancillary data"
52 msgstr ""
53 "CMSG_ALIGN و CMSG_SPACE و CMSG_NXTHDR و CMSG_FIRSTHDR - الوصول إلى البيانات "
54 "المساعدة (ancillary data)"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "المكتبة"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "موجز"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
81 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
89 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
90 "B< struct cmsghdr *>cmsgB<);>\n"
91 "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n"
92 "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n"
93 "B<size_t CMSG_LEN(size_t >I<length>B<);>\n"
94 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
95 msgstr ""
96 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
97 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
98 "B< struct cmsghdr *>cmsgB<);>\n"
99 "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n"
100 "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n"
101 "B<size_t CMSG_LEN(size_t >I<length>B<);>\n"
102 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
103
104 #. type: SH
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid "DESCRIPTION"
109 msgstr "الوصف"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "These macros are used to create and access control messages (also called "
116 "ancillary data) that are not a part of the socket payload. This control "
117 "information may include the interface the packet was received on, various "
118 "rarely used header fields, an extended error description, a set of file "
119 "descriptors, or UNIX credentials. For instance, control messages can be "
120 "used to send additional header fields such as IP options. Ancillary data is "
121 "sent by calling B<sendmsg>(2) and received by calling B<recvmsg>(2). See "
122 "their manual pages for more information."
123 msgstr ""
124 "تُستخدم هذه الكليّات لإنشاء والوصول إلى رسائل التحكم (وتسمى أيضًا البيانات "
125 "المساعدة) التي ليست جزءًا من حمولة المقبس. قد تتضمن معلومات التحكم هذه "
126 "الواجهة التي استُلمت عليها الحزمة، وحقول رأس متنوعة نادرة الاستخدام، ووصف خطأ "
127 "موسع، ومجموعة من واصفات الملفات، أو بيانات اعتماد UNIX. على سبيل المثال، "
128 "يمكن استخدام رسائل التحكم لإرسال حقول رأس إضافية مثل خيارات IP. تُرسل "
129 "البيانات المساعدة باستدعاء B<sendmsg>(2) وتُستلم باستدعاء B<recvmsg>(2). راجع "
130 "صفحات الدليل الخاصة بهما لمزيد من المعلومات."
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "Ancillary data is a sequence of I<cmsghdr> structures with appended data. "
137 "See the specific protocol man pages for the available control message "
138 "types. The maximum ancillary buffer size allowed per socket can be set "
139 "using I</proc/sys/net/core/optmem_max>; see B<socket>(7)."
140 msgstr ""
141 "البيانات المساعدة هي سلسلة من بنى I<cmsghdr> مع بيانات ملحقة. راجع صفحات "
142 "دليل البروتوكول المحدد لأنواع رسائل التحكم المتاحة. يمكن ضبط الحجم الأقصى "
143 "للمخزن المؤقت المساعد المسموح به لكل مقبس باستخدام I</proc/sys/net/core/"
144 "optmem_max>؛ انظر B<socket>(7)."
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 "The I<cmsghdr> structure is defined as follows:"
150 msgstr "تُعرّف بنية I<cmsghdr> كالتالي:"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid ""
157 "struct cmsghdr {\n"
158 " size_t cmsg_len; /* Data byte count, including header\n"
159 " (type is socklen_t in POSIX) */\n"
160 " int cmsg_level; /* Originating protocol */\n"
161 " int cmsg_type; /* Protocol-specific type */\n"
162 "/* followed by\n"
163 " unsigned char cmsg_data[]; */\n"
164 "};\n"
165 msgstr ""
166 "struct cmsghdr {\n"
167 " size_t cmsg_len; /* Data byte count, including header\n"
168 " (type is socklen_t in POSIX) */\n"
169 " int cmsg_level; /* Originating protocol */\n"
170 " int cmsg_type; /* Protocol-specific type */\n"
171 "/* followed by\n"
172 " unsigned char cmsg_data[]; */\n"
173 "};\n"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "The sequence of I<cmsghdr> structures should never be accessed directly. "
180 "Instead, use only the following macros:"
181 msgstr ""
182 "لا ينبغي أبدًا الوصول إلى سلسلة بنى I<cmsghdr> مباشرة. بدلاً من ذلك، استخدم "
183 "فقط الكليّات التالية:"
184
185 #. type: TP
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "B<CMSG_FIRSTHDR>()"
190 msgstr "B<CMSG_FIRSTHDR>()"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "returns a pointer to the first I<cmsghdr> in the ancillary data buffer "
197 "associated with the passed I<msghdr>. It returns NULL if there isn't enough "
198 "space for a I<cmsghdr> in the buffer."
199 msgstr ""
200 "تُرجع مؤشرًا إلى أول I<cmsghdr> في المخزن المؤقت للبيانات المساعدة المرتبط بـ "
201 "I<msghdr> المُمرر. تُرجع NULL إذا لم تكن هناك مساحة كافية لـ I<cmsghdr> في "
202 "المخزن."
203
204 #. type: TQ
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "B<CMSG_NXTHDR>()"
209 msgstr "B<CMSG_NXTHDR>()"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "returns the next valid I<cmsghdr> after the passed I<cmsghdr>. It returns "
216 "NULL when there isn't enough space left in the buffer."
217 msgstr ""
218 "تُرجع I<cmsghdr> الصحيح التالي بعد I<cmsghdr> المُمرر. تُرجع NULL عندما لا توجد "
219 "مساحة كافية متبقية في المخزن."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "When initializing a buffer that will contain a series of I<cmsghdr> "
226 "structures (e.g., to be sent with B<sendmsg>(2)), that buffer should first "
227 "be zero-initialized to ensure the correct operation of B<CMSG_NXTHDR>()."
228 msgstr ""
229 "عند تهيئة مخزن سيحتوي على سلسلة من بنى I<cmsghdr> (مثلًا، لإرسالها مع "
230 "B<sendmsg>(2))، يجب أولاً تهيئة ذلك المخزن بالأصفار لضمان التشغيل الصحيح لـ "
231 "B<CMSG_NXTHDR>()."
232
233 #. type: TP
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid "B<CMSG_ALIGN>(),"
238 msgstr "B<CMSG_ALIGN>()،"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 msgid ""
244 "given a length, returns it including the required alignment. This is a "
245 "constant expression."
246 msgstr "بإعطائها طولًا، تُرجعه شاملًا المحاذاة المطلوبة. هذا تعبير ثابت."
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<CMSG_SPACE>()"
253 msgstr "B<CMSG_SPACE>()"
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 "returns the number of bytes an ancillary element with payload of the passed "
260 "data length occupies. This is a constant expression."
261 msgstr ""
262 "تُرجع عدد البايتات التي يشغلها عنصر مساعد بحمولة طول البيانات المُمررة. هذا "
263 "تعبير ثابت."
264
265 #. type: TQ
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "B<CMSG_DATA>()"
270 msgstr "B<CMSG_DATA>()"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "returns a pointer to the data portion of a I<cmsghdr>. The pointer returned "
277 "cannot be assumed to be suitably aligned for accessing arbitrary payload "
278 "data types. Applications should not cast it to a pointer type matching the "
279 "payload, but should instead use B<memcpy>(3) to copy data to or from a "
280 "suitably declared object."
281 msgstr ""
282 "تُرجع مؤشرًا إلى جزء البيانات من I<cmsghdr>. لا يمكن افتراض أن المؤشر المُعاد "
283 "محاذاته بشكل مناسب للوصول إلى أنواع بيانات حمولة عشوائية. لا ينبغي للتطبيقات "
284 "تحويله إلى نوع مؤشر يطابق الحمولة، بل يجب بدلاً من ذلك استخدام B<memcpy>(3) "
285 "لنسخ البيانات إلى أو من كائن مُصرّح به بشكل مناسب."
286
287 #. type: TQ
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<CMSG_LEN>()"
292 msgstr "B<CMSG_LEN>()"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "returns the value to store in the I<cmsg_len> member of the I<cmsghdr> "
299 "structure, taking into account any necessary alignment. It takes the data "
300 "length as an argument. This is a constant expression."
301 msgstr ""
302 "تُرجع القيمة المراد تخزينها في عضو I<cmsg_len> من بنية I<cmsghdr>، مع مراعاة "
303 "أي محاذاة ضرورية. تأخذ طول البيانات كوسيطة. هذا تعبير ثابت."
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "To create ancillary data, first initialize the I<msg_controllen> member of "
310 "the I<msghdr> with the length of the control message buffer. Use "
311 "B<CMSG_FIRSTHDR>() on the I<msghdr> to get the first control message and "
312 "B<CMSG_NXTHDR>() to get all subsequent ones. In each control message, "
313 "initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header "
314 "fields, and the data portion using B<CMSG_DATA>(). Finally, the "
315 "I<msg_controllen> field of the I<msghdr> should be set to the sum of the "
316 "B<CMSG_SPACE>() of the length of all control messages in the buffer. For "
317 "more information on the I<msghdr>, see B<recvmsg>(2)."
318 msgstr ""
319 "لإنشاء بيانات مساعدة، يُهيأ أولاً عضو I<msg_controllen> من I<msghdr> بطول مخزن "
320 "رسالة التحكم. يُستخدم B<CMSG_FIRSTHDR>() على I<msghdr> للحصول على أول رسالة "
321 "تحكم و B<CMSG_NXTHDR>() للحصول على كل الرسائل اللاحقة. في كل رسالة تحكم، "
322 "يُهيأ I<cmsg_len> (باستخدام B<CMSG_LEN>())، وحقول رأس I<cmsghdr> الأخرى، وجزء "
323 "البيانات باستخدام B<CMSG_DATA>(). أخيراً، يُضبط حقل I<msg_controllen> من "
324 "I<msghdr> ليكون مجموع B<CMSG_SPACE>() لطول كل رسائل التحكم في المخزن. لمزيد "
325 "من المعلومات حول I<msghdr>، انظر B<recvmsg>(2)."
326
327 #. type: SH
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "VERSIONS"
332 msgstr "الإصدارات"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid ""
338 "For portability, ancillary data should be accessed using only the macros "
339 "described here."
340 msgstr ""
341 "للتوافقية، يجب الوصول إلى البيانات المساعدة باستخدام وحدات الماكرو الموصوفة "
342 "هنا فقط."
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>() are constant "
349 "expressions (assuming their argument is constant), meaning that these values "
350 "can be used to declare the size of global variables. This may not be "
351 "portable, however."
352 msgstr ""
353 "في لينكس، B<CMSG_LEN>() و B<CMSG_DATA>() و B<CMSG_ALIGN>() هي تعابير ثابتة "
354 "(بافتراض أن وسيطها ثابت)، مما يعني أن هذه القيم يمكن استخدامها لتعريف حجم "
355 "متغيرات عامة. لكن هذا قد لا يكون محمولاً."
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "STANDARDS"
362 msgstr "المعايير"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid "POSIX.1-2008."
368 msgstr "POSIX.1-2008."
369
370 #. type: TQ
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<CMSG_ALIGN>()"
375 msgstr "B<CMSG_ALIGN>()"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "Linux."
381 msgstr "لينكس."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "HISTORY"
388 msgstr "التاريخ"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the "
395 "IPv6 advanced API described in RFC\\ 2292 and SUSv2."
396 msgstr ""
397 "يتوافق نموذج البيانات المساعدة هذا مع مسودة POSIX.1g و 4.4BSD-Lite و API "
398 "المتقدم لـ IPv6 الموصوف في RFC\\ 2292 و SUSv2."
399
400 #. https://www.austingroupbugs.net/view.php?id=978#c3242
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 msgid ""
405 "B<CMSG_SPACE>() and B<CMSG_LEN>() will be included in the next POSIX "
406 "release (Issue 8)."
407 msgstr ""
408 "سيُدرج B<CMSG_SPACE>() و B<CMSG_LEN>() في الإصدار التالي من POSIX (العدد 8)."
409
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "EXAMPLES"
415 msgstr "أمثلة"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "This code looks for the B<IP_TTL> option in a received ancillary buffer:"
422 msgstr "يبحث هذا الكود عن خيار B<IP_TTL> في مخزن مساعد مستلم:"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid ""
429 "struct msghdr msgh;\n"
430 "struct cmsghdr *cmsg;\n"
431 "int received_ttl;\n"
432 "\\&\n"
433 "/* Receive auxiliary data in msgh */\n"
434 "\\&\n"
435 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
436 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
437 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
438 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
439 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
440 " break;\n"
441 " }\n"
442 "}\n"
443 "\\&\n"
444 "if (cmsg == NULL) {\n"
445 " /* Error: IP_TTL not enabled or small buffer or I/O error */\n"
446 "}\n"
447 msgstr ""
448 "struct msghdr msgh;\n"
449 "struct cmsghdr *cmsg;\n"
450 "int received_ttl;\n"
451 "\\&\n"
452 "/* Receive auxiliary data in msgh */\n"
453 "\\&\n"
454 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
455 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
456 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
457 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
458 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
459 " break;\n"
460 " }\n"
461 "}\n"
462 "\\&\n"
463 "if (cmsg == NULL) {\n"
464 " /* Error: IP_TTL not enabled or small buffer or I/O error */\n"
465 "}\n"
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "The code below passes an array of file descriptors over a UNIX domain socket "
472 "using B<SCM_RIGHTS>:"
473 msgstr ""
474 "يمرر الكود أدناه مصفوفة من واصفات الملفات عبر مقبس نطاق UNIX باستخدام "
475 "B<SCM_RIGHTS>:"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid ""
482 "struct msghdr msg = { 0 };\n"
483 "struct cmsghdr *cmsg;\n"
484 "int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n"
485 "char iobuf[1];\n"
486 "struct iovec io = {\n"
487 " .iov_base = iobuf,\n"
488 " .iov_len = sizeof(iobuf)\n"
489 "};\n"
490 "union { /* Ancillary data buffer, wrapped in a union\n"
491 " in order to ensure it is suitably aligned */\n"
492 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
493 " struct cmsghdr align;\n"
494 "} u;\n"
495 "\\&\n"
496 "msg.msg_iov = &io;\n"
497 "msg.msg_iovlen = 1;\n"
498 "msg.msg_control = u.buf;\n"
499 "msg.msg_controllen = sizeof(u.buf);\n"
500 "cmsg = CMSG_FIRSTHDR(&msg);\n"
501 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
502 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
503 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
504 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
505 msgstr ""
506 "struct msghdr msg = { 0 };\n"
507 "struct cmsghdr *cmsg;\n"
508 "int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n"
509 "char iobuf[1];\n"
510 "struct iovec io = {\n"
511 " .iov_base = iobuf,\n"
512 " .iov_len = sizeof(iobuf)\n"
513 "};\n"
514 "union { /* Ancillary data buffer, wrapped in a union\n"
515 " in order to ensure it is suitably aligned */\n"
516 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
517 " struct cmsghdr align;\n"
518 "} u;\n"
519 "\\&\n"
520 "msg.msg_iov = &io;\n"
521 "msg.msg_iovlen = 1;\n"
522 "msg.msg_control = u.buf;\n"
523 "msg.msg_controllen = sizeof(u.buf);\n"
524 "cmsg = CMSG_FIRSTHDR(&msg);\n"
525 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
526 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
527 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
528 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 msgid ""
534 "For a complete code example that shows passing of file descriptors over a "
535 "UNIX domain socket, see B<seccomp_unotify>(2)."
536 msgstr ""
537 "لمثال كود كامل يوضح تمرير واصفات الملفات عبر مقبس نطاق UNIX، انظر "
538 "B<seccomp_unotify>(2)."
539
540 #. type: SH
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "SEE ALSO"
545 msgstr "انظر أيضًا"
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid "B<recvmsg>(2), B<sendmsg>(2)"
551 msgstr "B<recvmsg>(2), B<sendmsg>(2)"
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid "RFC\\ 2292"
557 msgstr "RFC\\ 2292"
558
559 #. type: TH
560 #: debian-trixie
561 #, no-wrap
562 msgid "2024-05-02"
563 msgstr "2 مايو 2024"
564
565 #. type: TH
566 #: debian-trixie
567 #, no-wrap
568 msgid "Linux man-pages 6.9.1"
569 msgstr "صفحات دليل لينكس 6.9.1"
570
571 #. type: Plain text
572 #: debian-trixie
573 msgid "Standard C library (I<libc>, I<-lc>)"
574 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
575
576 #. type: TH
577 #: fedora-44 fedora-rawhide
578 #, no-wrap
579 msgid "2024-07-23"
580 msgstr "23 يوليو 2024"
581
582 #. type: TH
583 #: fedora-44 fedora-rawhide
584 #, no-wrap
585 msgid "Linux man-pages 6.13"
586 msgstr "صفحات دليل لينكس 6.13"
587
588 #. type: TH
589 #: mageia-cauldron
590 #, no-wrap
591 msgid "Linux man-pages 6.17"
592 msgstr "صفحات دليل لينكس 6.17"
593
594 #. type: TH
595 #: opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "Linux man-pages (unreleased)"
598 msgstr "صفحات دليل لينكس (لم تصدر بعد)"