Debian Codegraph @

po/ar/man3/mq_getattr.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:31+0200\n"
9 "PO-Revision-Date: 2026-06-02 19:50+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 "mq_getattr"
25 msgstr "mq_getattr"
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 "mq_getattr, mq_setattr - get/set message queue attributes"
51 msgstr "mq_getattr, mq_setattr - جلب/تعيين خصائص طابور الرسائل"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Real-time library (I<librt>,\\ I<-lrt>)"
64 msgstr "مكتبة الوقت الحقيقي (I<librt>،\\ I<-lrt>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>mqueue.hE<gt>>\n"
78 msgstr "B<#include E<lt>mqueue.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
86 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
87 "B< struct mq_attr *restrict >I<oldattr>B<);>\n"
88 msgstr ""
89 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
90 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
91 "B< struct mq_attr *restrict >I<oldattr>B<);>\n"
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr "الوصف"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "B<mq_getattr>() and B<mq_setattr>() respectively retrieve and modify "
105 "attributes of the message queue referred to by the message queue descriptor "
106 "I<mqdes>."
107 msgstr ""
108 "B<mq_getattr>() و B<mq_setattr>() تجلب وتعدل على التوالي خصائص طابور "
109 "الرسائل المشار إليه بواسطة واصف طابور الرسائل I<mqdes>."
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 "B<mq_getattr>() returns an I<mq_attr> structure in the buffer pointed by "
116 "I<attr>. This structure is defined as:"
117 msgstr ""
118 "B<mq_getattr>() تُرجع بنية I<mq_attr> في المخزن المؤقت المشار إليه بواسطة "
119 "I<attr>. هذه البنية تُعرف كالتالي:"
120
121 #. type: Plain text
122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
123 #: opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 "struct mq_attr {\n"
127 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
128 " long mq_maxmsg; /* Max.\\& # of messages on queue */\n"
129 " long mq_msgsize; /* Max.\\& message size (bytes) */\n"
130 " long mq_curmsgs; /* # of messages currently in queue */\n"
131 "};\n"
132 msgstr ""
133 "struct mq_attr {\n"
134 " long mq_flags; /* الرايات: 0 أو O_NONBLOCK */\n"
135 " long mq_maxmsg; /* الحد الأقصى لعدد الرسائل في الطابور */\n"
136 " long mq_msgsize; /* الحد الأقصى لحجم الرسالة (بالبايت) */\n"
137 " long mq_curmsgs; /* عدد الرسائل الموجودة في الطابور حالياً */\n"
138 "};\n"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The I<mq_flags> field contains flags associated with the open message queue "
145 "description. This field is initialized when the queue is created by "
146 "B<mq_open>(3). The only flag that can appear in this field is B<O_NONBLOCK>."
147 msgstr ""
148 "حقل I<mq_flags> يحتوي على أعلام مرتبطة بوصف طابور الرسائل المفتوح. هذا "
149 "الحقل يُهيأ عندما يُنشأ الطابور بواسطة B<mq_open>(3). العلم الوحيد الذي يمكن "
150 "أن يظهر في هذا الحقل هو B<O_NONBLOCK>."
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 msgid ""
156 "The I<mq_maxmsg> and I<mq_msgsize> fields are set when the message queue is "
157 "created by B<mq_open>(3). The I<mq_maxmsg> field is an upper limit on the "
158 "number of messages that may be placed on the queue using B<mq_send>(3). The "
159 "I<mq_msgsize> field is an upper limit on the size of messages that may be "
160 "placed on the queue. Both of these fields must have a value greater than "
161 "zero. Two I</proc> files that place ceilings on the values for these fields "
162 "are described in B<mq_overview>(7)."
163 msgstr ""
164 "حقل I<mq_maxmsg> و I<mq_msgsize> يُضبطان عندما يُنشأ طابور الرسائل بواسطة "
165 "B<mq_open>(3). حقل I<mq_maxmsg> هو حد أعلى لعدد الرسائل التي يمكن وضعها في "
166 "الطابور باستخدام B<mq_send>(3). حقل I<mq_msgsize> هو حد أعلى لحجم الرسائل "
167 "التي يمكن وضعها في الطابور. كلا هذين الحقلين يجب أن يكون لهما قيمة أكبر من "
168 "الصفر. ملفا I</proc> يضعان سقوفًا لقيم هذه الحقول موصوفان في "
169 "B<mq_overview>(7)."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The I<mq_curmsgs> field returns the number of messages currently held in the "
176 "queue."
177 msgstr "حقل I<mq_curmsgs> يُرجع عدد الرسائل المحتجزة حاليًا في الطابور."
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 "B<mq_setattr>() sets message queue attributes using information supplied in "
184 "the I<mq_attr> structure pointed to by I<newattr>. The only attribute that "
185 "can be modified is the setting of the B<O_NONBLOCK> flag in I<mq_flags>. "
186 "The other fields in I<newattr> are ignored. If the I<oldattr> field is not "
187 "NULL, then the buffer that it points to is used to return an I<mq_attr> "
188 "structure that contains the same information that is returned by "
189 "B<mq_getattr>()."
190 msgstr ""
191 "B<mq_setattr>() يضبط خصائص طابور الرسائل باستخدام المعلومات المقدمة في بنية "
192 "I<mq_attr> المشار إليها بواسطة I<newattr>. الخاصية الوحيدة التي يمكن "
193 "تعديلها هي ضبط العلم B<O_NONBLOCK> في I<mq_flags>. الحقول الأخرى في "
194 "I<newattr> تُتجاهل. إذا كان حقل I<oldattr> ليس NULL، فإن المخزن المؤقت الذي "
195 "يشير إليه يُستخدم لإرجاع بنية I<mq_attr> تحتوي على نفس المعلومات التي تُرجعها "
196 "B<mq_getattr>()."
197
198 #. type: SH
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "RETURN VALUE"
203 msgstr "قيمة الإرجاع"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "On success B<mq_getattr>() and B<mq_setattr>() return 0; on error, -1 is "
210 "returned, with I<errno> set to indicate the error."
211 msgstr ""
212 "عند النجاح B<mq_getattr>() و B<mq_setattr>() يُرجعان 0؛ عند الخطأ، يُرجع -1، "
213 "مع ضبط I<errno> للإشارة إلى الخطأ."
214
215 #. type: SH
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "ERRORS"
220 msgstr "الأخطاء"
221
222 #. type: TP
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "B<EBADF>"
227 msgstr "B<EBADF>"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "The message queue descriptor specified in I<mqdes> is invalid."
233 msgstr "واصف قائمة رسائل المحدد في I<mqdes> غير صالح."
234
235 #. type: TP
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<EINVAL>"
240 msgstr "B<EINVAL>"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid "I<newattr-E<gt>mq_flags> contained set bits other than B<O_NONBLOCK>."
246 msgstr "I<newattr-E<gt>mq_flags> احتوى على بتات مضبوطة غير B<O_NONBLOCK>."
247
248 #. type: SH
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "ATTRIBUTES"
253 msgstr "السمات"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
260 msgstr ""
261 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
262
263 #. type: tbl table
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "Interface"
268 msgstr "الواجهة"
269
270 #. type: tbl table
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "Attribute"
275 msgstr "السمة"
276
277 #. type: tbl table
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "Value"
282 msgstr "القيمة"
283
284 #. type: tbl table
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid ".na\n"
289 msgstr ".na\n"
290
291 #. type: tbl table
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid ".nh\n"
296 msgstr ".nh\n"
297
298 #. type: tbl table
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid ""
303 "B<mq_getattr>(),\n"
304 "B<mq_setattr>()"
305 msgstr ""
306 "B<mq_getattr>(),\n"
307 "B<mq_setattr>()"
308
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "Thread safety"
314 msgstr "سلامة الخيوط"
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "MT-Safe"
321 msgstr "MT-Safe"
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "VERSIONS"
328 msgstr "الإصدارات"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "On Linux, B<mq_getattr>() and B<mq_setattr>() are library functions "
335 "layered on top of the B<mq_getsetattr>(2) system call."
336 msgstr ""
337 "على لينكس، B<mq_getattr>() و B<mq_setattr>() هما دالتا مكتبة مبنيتان فوق "
338 "استدعاء النظام B<mq_getsetattr>(2)."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "STANDARDS"
345 msgstr "المعايير"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "POSIX.1-2008."
351 msgstr "POSIX.1-2008."
352
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "HISTORY"
358 msgstr "التاريخ"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "POSIX.1-2001."
364 msgstr "POSIX.1-2001."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "EXAMPLES"
371 msgstr "أمثلة"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "The program below can be used to show the default I<mq_maxmsg> and "
378 "I<mq_msgsize> values that are assigned to a message queue that is created "
379 "with a call to B<mq_open>(3) in which the I<attr> argument is NULL. Here "
380 "is an example run of the program:"
381 msgstr ""
382 "البرنامج أدناه يمكن استخدامه لعرض القيم المبدئية I<mq_maxmsg> و "
383 "I<mq_msgsize> التي تُسند إلى طابور رسائل يُنشأ باستدعاء B<mq_open>(3) حيث "
384 "معامل I<attr> هو NULL. إليك مثال لتشغيل البرنامج:"
385
386 #. type: Plain text
387 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
388 #: opensuse-tumbleweed
389 #, no-wrap
390 msgid ""
391 "$B< ./a.out /testq>;\n"
392 "Maximum # of messages on queue: 10\n"
393 "Maximum message size: 8192\n"
394 msgstr ""
395 "$B< ./a.out /testq>;\n"
396 "Maximum # of messages on queue: 10\n"
397 "Maximum message size: 8192\n"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "Since Linux 3.5, the following I</proc> files (described in "
404 "B<mq_overview>(7)) can be used to control the defaults:"
405 msgstr ""
406 "منذ لينكس 3.5، ملفات I</proc> التالية (الموصوفة في B<mq_overview>(7)) يمكن "
407 "استخدامها للتحكم في المبدئيات:"
408
409 #. type: Plain text
410 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
411 #: opensuse-tumbleweed
412 #, no-wrap
413 msgid ""
414 "$B< uname -sr>;\n"
415 "Linux 3.8.0\n"
416 "$B< cat /proc/sys/fs/mqueue/msg_default>;\n"
417 "10\n"
418 "$B< cat /proc/sys/fs/mqueue/msgsize_default>;\n"
419 "8192\n"
420 msgstr ""
421 "$B< uname -sr>;\n"
422 "Linux 3.8.0\n"
423 "$B< cat /proc/sys/fs/mqueue/msg_default>;\n"
424 "10\n"
425 "$B< cat /proc/sys/fs/mqueue/msgsize_default>;\n"
426 "8192\n"
427
428 #. type: SS
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "Program source"
433 msgstr "مصدر البرنامج"
434
435 #. type: Plain text
436 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
437 #: opensuse-tumbleweed
438 #, no-wrap
439 msgid ""
440 "#include E<lt>err.hE<gt>\n"
441 "#include E<lt>fcntl.hE<gt>\n"
442 "#include E<lt>mqueue.hE<gt>\n"
443 "#include E<lt>stdio.hE<gt>\n"
444 "#include E<lt>stdlib.hE<gt>\n"
445 "#include E<lt>sys/stat.hE<gt>\n"
446 "#include E<lt>unistd.hE<gt>\n"
447 "\\&\n"
448 "int\n"
449 "main(int argc, char *argv[])\n"
450 "{\n"
451 " mqd_t mqd;\n"
452 " struct mq_attr attr;\n"
453 "\\&\n"
454 " if (argc != 2) {\n"
455 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
456 " exit(EXIT_FAILURE);\n"
457 " }\n"
458 "\\&\n"
459 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
460 " if (mqd == (mqd_t) -1)\n"
461 " err(EXIT_FAILURE, \"mq_open\");\n"
462 "\\&\n"
463 " if (mq_getattr(mqd, &attr) == -1)\n"
464 " err(EXIT_FAILURE, \"mq_getattr\");\n"
465 "\\&\n"
466 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
467 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
468 "\\&\n"
469 " if (mq_unlink(argv[1]) == -1)\n"
470 " err(EXIT_FAILURE, \"mq_unlink\");\n"
471 "\\&\n"
472 " exit(EXIT_SUCCESS);\n"
473 "}\n"
474 msgstr ""
475 "#include E<lt>err.hE<gt>\n"
476 "#include E<lt>fcntl.hE<gt>\n"
477 "#include E<lt>mqueue.hE<gt>\n"
478 "#include E<lt>stdio.hE<gt>\n"
479 "#include E<lt>stdlib.hE<gt>\n"
480 "#include E<lt>sys/stat.hE<gt>\n"
481 "#include E<lt>unistd.hE<gt>\n"
482 "\\&\n"
483 "int\n"
484 "main(int argc, char *argv[])\n"
485 "{\n"
486 " mqd_t mqd;\n"
487 " struct mq_attr attr;\n"
488 "\\&\n"
489 " if (argc != 2) {\n"
490 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
491 " exit(EXIT_FAILURE);\n"
492 " }\n"
493 "\\&\n"
494 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
495 " if (mqd == (mqd_t) -1)\n"
496 " err(EXIT_FAILURE, \"mq_open\");\n"
497 "\\&\n"
498 " if (mq_getattr(mqd, &attr) == -1)\n"
499 " err(EXIT_FAILURE, \"mq_getattr\");\n"
500 "\\&\n"
501 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
502 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
503 "\\&\n"
504 " if (mq_unlink(argv[1]) == -1)\n"
505 " err(EXIT_FAILURE, \"mq_unlink\");\n"
506 "\\&\n"
507 " exit(EXIT_SUCCESS);\n"
508 "}\n"
509
510 #. SRC END
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "SEE ALSO"
516 msgstr "انظر أيضًا"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
523 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
524 msgstr ""
525 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
526 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
527
528 #. type: TH
529 #: debian-trixie
530 #, no-wrap
531 msgid "2024-06-15"
532 msgstr "15 يونيو 2024"
533
534 #. type: TH
535 #: debian-trixie
536 #, no-wrap
537 msgid "Linux man-pages 6.9.1"
538 msgstr "صفحات دليل لينكس 6.9.1"
539
540 #. type: Plain text
541 #: debian-trixie
542 msgid "Real-time library (I<librt>, I<-lrt>)"
543 msgstr "مكتبة الوقت الحقيقي (I<librt>، I<-lrt>)"
544
545 #. type: Plain text
546 #: debian-trixie fedora-44 fedora-rawhide
547 #, no-wrap
548 msgid ""
549 "struct mq_attr {\n"
550 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
551 " long mq_maxmsg; /* Max. # of messages on queue */\n"
552 " long mq_msgsize; /* Max. message size (bytes) */\n"
553 " long mq_curmsgs; /* # of messages currently in queue */\n"
554 "};\n"
555 msgstr ""
556 "struct mq_attr {\n"
557 " long mq_flags; /* الرايات: 0 أو O_NONBLOCK */\n"
558 " long mq_maxmsg; /* الحد الأقصى لعدد الرسائل في الطابور */\n"
559 " long mq_msgsize; /* الحد الأقصى لحجم الرسالة (بالبايت) */\n"
560 " long mq_curmsgs; /* عدد الرسائل الموجودة في الطابور حالياً */\n"
561 "};\n"
562
563 #. type: Plain text
564 #: debian-trixie fedora-44 fedora-rawhide
565 #, no-wrap
566 msgid ""
567 "$ B<./a.out /testq>\n"
568 "Maximum # of messages on queue: 10\n"
569 "Maximum message size: 8192\n"
570 msgstr ""
571 "$ B<./a.out /testq>\n"
572 "Maximum # of messages on queue: 10\n"
573 "Maximum message size: 8192\n"
574
575 #. type: Plain text
576 #: debian-trixie fedora-44 fedora-rawhide
577 #, no-wrap
578 msgid ""
579 "$ B<uname -sr>\n"
580 "Linux 3.8.0\n"
581 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
582 "10\n"
583 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
584 "8192\n"
585 msgstr ""
586 "$ B<uname -sr>\n"
587 "Linux 3.8.0\n"
588 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
589 "10\n"
590 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
591 "8192\n"
592
593 #. type: Plain text
594 #: debian-trixie fedora-44 fedora-rawhide
595 #, no-wrap
596 msgid ""
597 "#include E<lt>fcntl.hE<gt>\n"
598 "#include E<lt>mqueue.hE<gt>\n"
599 "#include E<lt>stdio.hE<gt>\n"
600 "#include E<lt>stdlib.hE<gt>\n"
601 "#include E<lt>sys/stat.hE<gt>\n"
602 "#include E<lt>unistd.hE<gt>\n"
603 "\\&\n"
604 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
605 " } while (0)\n"
606 "\\&\n"
607 "int\n"
608 "main(int argc, char *argv[])\n"
609 "{\n"
610 " mqd_t mqd;\n"
611 " struct mq_attr attr;\n"
612 "\\&\n"
613 " if (argc != 2) {\n"
614 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
615 " exit(EXIT_FAILURE);\n"
616 " }\n"
617 "\\&\n"
618 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
619 " if (mqd == (mqd_t) -1)\n"
620 " errExit(\"mq_open\");\n"
621 "\\&\n"
622 " if (mq_getattr(mqd, &attr) == -1)\n"
623 " errExit(\"mq_getattr\");\n"
624 "\\&\n"
625 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
626 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
627 "\\&\n"
628 " if (mq_unlink(argv[1]) == -1)\n"
629 " errExit(\"mq_unlink\");\n"
630 "\\&\n"
631 " exit(EXIT_SUCCESS);\n"
632 "}\n"
633 msgstr ""
634 "#include E<lt>fcntl.hE<gt>\n"
635 "#include E<lt>mqueue.hE<gt>\n"
636 "#include E<lt>stdio.hE<gt>\n"
637 "#include E<lt>stdlib.hE<gt>\n"
638 "#include E<lt>sys/stat.hE<gt>\n"
639 "#include E<lt>unistd.hE<gt>\n"
640 "\\&\n"
641 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
642 " } while (0)\n"
643 "\\&\n"
644 "int\n"
645 "main(int argc, char *argv[])\n"
646 "{\n"
647 " mqd_t mqd;\n"
648 " struct mq_attr attr;\n"
649 "\\&\n"
650 " if (argc != 2) {\n"
651 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
652 " exit(EXIT_FAILURE);\n"
653 " }\n"
654 "\\&\n"
655 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
656 " if (mqd == (mqd_t) -1)\n"
657 " errExit(\"mq_open\");\n"
658 "\\&\n"
659 " if (mq_getattr(mqd, &attr) == -1)\n"
660 " errExit(\"mq_getattr\");\n"
661 "\\&\n"
662 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
663 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
664 "\\&\n"
665 " if (mq_unlink(argv[1]) == -1)\n"
666 " errExit(\"mq_unlink\");\n"
667 "\\&\n"
668 " exit(EXIT_SUCCESS);\n"
669 "}\n"
670
671 #. type: TH
672 #: fedora-44 fedora-rawhide
673 #, no-wrap
674 msgid "2024-07-23"
675 msgstr "23 يوليو 2024"
676
677 #. type: TH
678 #: fedora-44 fedora-rawhide
679 #, no-wrap
680 msgid "Linux man-pages 6.13"
681 msgstr "صفحات دليل لينكس 6.13"
682
683 #. type: TH
684 #: mageia-cauldron
685 #, no-wrap
686 msgid "Linux man-pages 6.17"
687 msgstr "صفحات دليل لينكس 6.17"
688
689 #. type: TH
690 #: opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid "Linux man-pages (unreleased)"
693 msgstr "صفحات دليل لينكس (لم تصدر بعد)"