Debian Codegraph @

po/ar/man2/sysctl.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:45+0200\n"
9 "PO-Revision-Date: 2026-05-18 18:02+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 "sysctl"
25 msgstr "sysctl"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-10"
32 msgstr "10 فبراير 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 "sysctl - read/write system parameters"
51 msgstr "sysctl - قراءة/كتابة معلمات النظام"
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 "SYNOPSIS"
58 msgstr "موجز"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid ""
65 "B<#include E<lt>unistd.hE<gt>>\n"
66 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
67 msgstr ""
68 "B<#include E<lt>unistd.hE<gt>>\n"
69 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
76 msgstr "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "DESCRIPTION"
83 msgstr "الوصف"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 msgid "B<This system call no longer exists on current kernels!> See NOTES."
89 msgstr "B<استدعاء النظام هذا لم يعد موجودًا على النوى الحالية!> انظر الملاحظات."
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid ""
95 "The B<_sysctl>() call reads and/or writes kernel parameters. For example, "
96 "the hostname, or the maximum number of open files. The argument has the form"
97 msgstr ""
98 "استدعاء B<_sysctl>() يقرأ و/أو يكتب معلمات النواة. على سبيل المثال، اسم "
99 "المضيف، أو الحد الأقصى لعدد الملفات المفتوحة. الوسيط له الشكل"
100
101 #. type: Plain text
102 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
103 #: opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid ""
106 "struct __sysctl_args {\n"
107 " int *name; /* integer vector describing variable */\n"
108 " int nlen; /* number of elements of this vector */\n"
109 " void *oldval; /* 0 or address where to store old value */\n"
110 " size_t *oldlenp; /* available room for old value,\n"
111 " overwritten by actual size of old value */\n"
112 " void *newval; /* 0 or address of new value */\n"
113 " size_t newlen; /* size of new value */\n"
114 "};\n"
115 msgstr ""
116 "struct __sysctl_args {\n"
117 " int *name; /* متجه عدد صحيح يصف المتغير */\n"
118 " int nlen; /* عدد عناصر هذا المتجه */\n"
119 " void *oldval; /* 0 أو عنوان تخزين القيمة القديمة */\n"
120 " size_t *oldlenp; /* المساحة المتاحة للقيمة القديمة,\n"
121 " يحل محلها الحجم الفعلي للقيمة القديمة */\n"
122 " void *newval; /* 0 أو عنوان القيمة الجديدة */\n"
123 " size_t newlen; /* حجم القيمة الجديدة */\n"
124 "};\n"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "This call does a search in a tree structure, possibly resembling a directory "
131 "tree under I</proc/sys>, and if the requested item is found calls some "
132 "appropriate routine to read or modify the value."
133 msgstr ""
134 "يقوم هذا الاستدعاء ببحث في بنية شجرية، تشبه على الأرجح شجرة دليل تحت I</proc/"
135 "sys>، وإذا تم العثور على العنصر المطلوب، يستدعي روتينًا مناسبًا لقراءة القيمة "
136 "أو تعديلها."
137
138 #. type: SH
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "RETURN VALUE"
143 msgstr "قيمة الإرجاع"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "Upon successful completion, B<_sysctl>() returns 0. Otherwise, a value of "
150 "-1 is returned and I<errno> is set to indicate the error."
151 msgstr ""
152 "عند الإكمال بنجاح، يُرجع B<_sysctl>() 0. وإلا، تُرجع قيمة -1 ويُضبط I<errno> "
153 "للإشارة إلى الخطأ."
154
155 #. type: SH
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "ERRORS"
160 msgstr "الأخطاء"
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "B<EACCES>"
167 msgstr "B<EACCES>"
168
169 #. type: TQ
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<EPERM>"
174 msgstr "B<EPERM>"
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "No search permission for one of the encountered \"directories\", or no read "
181 "permission where I<oldval> was nonzero, or no write permission where "
182 "I<newval> was nonzero."
183 msgstr ""
184 "لا يوجد إذن بحث لأحد \"الأدلة\" التي تمت مواجهتها، أو لا يوجد إذن قراءة حيث "
185 "كان I<oldval> غير صفري، أو لا يوجد إذن كتابة حيث كان I<newval> غير صفري."
186
187 #. type: TP
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "B<EFAULT>"
192 msgstr "B<EFAULT>"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
199 "but allowed zero room in I<oldlenp>."
200 msgstr ""
201 "طلب الاستدعاء القيمة السابقة بتعيين I<oldval> غير NULL، لكنه سمح بمساحة "
202 "صفرية في I<oldlenp>."
203
204 #. type: TP
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<ENOTDIR>"
209 msgstr "B<ENOTDIR>"
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 "I<name> was not found."
215 msgstr "لم يتم العثور على I<name>."
216
217 #. type: SH
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "STANDARDS"
222 msgstr "المعايير"
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid "Linux."
228 msgstr "لينكس."
229
230 #. type: SH
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 #, no-wrap
234 msgid "HISTORY"
235 msgstr "التاريخ"
236
237 #. type: Plain text
238 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
239 #: opensuse-tumbleweed
240 msgid "4.4BSD, Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
241 msgstr "4.4BSD، لينكس 1.3.57. أُزيل في لينكس 5.5، glibc 2.32."
242
243 #. type: Plain text
244 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
245 #: opensuse-tumbleweed
246 msgid ""
247 "Only Linux has the I</proc/sys> mirror, and the object naming schemes differ "
248 "between Linux and 4.4BSD, but the declaration of the B<sysctl>() function "
249 "is the same in both."
250 msgstr ""
251 "فقط لينكس لديه المرآة I</proc/sys>، وتختلف مخططات تسمية الكائنات بين لينكس "
252 "و4.4BSD، لكن تعريف دالة B<sysctl>() هو نفسه في كليهما."
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "NOTES"
259 msgstr "ملاحظات"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "Use of this system call was long discouraged: since Linux 2.6.24, uses of "
266 "this system call result in warnings in the kernel log, and in Linux 5.5, the "
267 "system call was finally removed. Use the I</proc/sys> interface instead."
268 msgstr ""
269 "كان استخدام استدعاء النظام هذا مثبطًا لفترة طويلة: منذ لينكس 2.6.24، تؤدي "
270 "استخدامات استدعاء النظام هذا إلى تحذيرات في سجل النواة، وفي لينكس 5.5، أُزيل "
271 "استدعاء النظام نهائيًا. استخدم واجهة I</proc/sys> بدلاً من ذلك."
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "Note that on older kernels where this system call still exists, it is "
278 "available only if the kernel was configured with the "
279 "B<CONFIG_SYSCTL_SYSCALL> option. Furthermore, glibc does not provide a "
280 "wrapper for this system call, necessitating the use of B<syscall>(2)."
281 msgstr ""
282 "لاحظ أنه على النوى الأقدم حيث لا يزال استدعاء النظام هذا موجودًا، فهو متاح "
283 "فقط إذا تم تكوين النواة مع خيار B<CONFIG_SYSCTL_SYSCALL>. علاوة على ذلك، لا "
284 "يوفر glibc غلافًا لاستدعاء النظام هذا، مما يستلزم استخدام B<syscall>(2)."
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "BUGS"
291 msgstr "العلل"
292
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 "The object names vary between kernel versions, making this system call "
298 "worthless for applications."
299 msgstr ""
300 "تختلف أسماء الكائنات بين إصدارات النواة، مما يجعل استدعاء النظام هذا عديم "
301 "القيمة للتطبيقات."
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "Not all available objects are properly documented."
307 msgstr "ليست كل الكائنات المتاحة موثقة بشكل صحيح."
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "It is not yet possible to change operating system by writing to I</proc/sys/"
314 "kernel/ostype>."
315 msgstr ""
316 "ليس من الممكن بعد تغيير نظام التشغيل بالكتابة إلى I</proc/sys/kernel/ostype>."
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "EXAMPLES"
323 msgstr "أمثلة"
324
325 #. type: Plain text
326 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
327 #: opensuse-tumbleweed
328 #, no-wrap
329 msgid ""
330 "#define _GNU_SOURCE\n"
331 "#include E<lt>stdcountof.hE<gt>\n"
332 "#include E<lt>stdio.hE<gt>\n"
333 "#include E<lt>stdlib.hE<gt>\n"
334 "#include E<lt>string.hE<gt>\n"
335 "#include E<lt>sys/syscall.hE<gt>\n"
336 "#include E<lt>unistd.hE<gt>\n"
337 "\\&\n"
338 "#include E<lt>linux/sysctl.hE<gt>\n"
339 "\\&\n"
340 "int _sysctl(struct __sysctl_args *args);\n"
341 "\\&\n"
342 "#define OSNAMESZ 100\n"
343 "\\&\n"
344 "int\n"
345 "main(void)\n"
346 "{\n"
347 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
348 " char osname[OSNAMESZ];\n"
349 " size_t osnamelth;\n"
350 " struct __sysctl_args args;\n"
351 "\\&\n"
352 " memset(&args, 0, sizeof(args));\n"
353 " args.name = name;\n"
354 " args.nlen = countof(name);\n"
355 " args.oldval = osname;\n"
356 " args.oldlenp = &osnamelth;\n"
357 "\\&\n"
358 " osnamelth = sizeof(osname);\n"
359 "\\&\n"
360 " if (syscall(SYS__sysctl, &args) == -1) {\n"
361 " perror(\"_sysctl\");\n"
362 " exit(EXIT_FAILURE);\n"
363 " }\n"
364 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
365 " exit(EXIT_SUCCESS);\n"
366 "}\n"
367 msgstr ""
368 "#define _GNU_SOURCE\n"
369 "#include E<lt>stdcountof.hE<gt>\n"
370 "#include E<lt>stdio.hE<gt>\n"
371 "#include E<lt>stdlib.hE<gt>\n"
372 "#include E<lt>string.hE<gt>\n"
373 "#include E<lt>sys/syscall.hE<gt>\n"
374 "#include E<lt>unistd.hE<gt>\n"
375 "\\&\n"
376 "#include E<lt>linux/sysctl.hE<gt>\n"
377 "\\&\n"
378 "int _sysctl(struct __sysctl_args *args);\n"
379 "\\&\n"
380 "#define OSNAMESZ 100\n"
381 "\\&\n"
382 "int\n"
383 "main(void)\n"
384 "{\n"
385 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
386 " char osname[OSNAMESZ];\n"
387 " size_t osnamelth;\n"
388 " struct __sysctl_args args;\n"
389 "\\&\n"
390 " memset(&args, 0, sizeof(args));\n"
391 " args.name = name;\n"
392 " args.nlen = countof(name);\n"
393 " args.oldval = osname;\n"
394 " args.oldlenp = &osnamelth;\n"
395 "\\&\n"
396 " osnamelth = sizeof(osname);\n"
397 "\\&\n"
398 " if (syscall(SYS__sysctl, &args) == -1) {\n"
399 " perror(\"_sysctl\");\n"
400 " exit(EXIT_FAILURE);\n"
401 " }\n"
402 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
403 " exit(EXIT_SUCCESS);\n"
404 "}\n"
405
406 #. SRC END
407 #. type: SH
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "SEE ALSO"
412 msgstr "انظر أيضًا"
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid "B<proc>(5)"
418 msgstr "B<proc>(5)"
419
420 #. type: TH
421 #: debian-trixie
422 #, no-wrap
423 msgid "2024-06-15"
424 msgstr "15 يونيو 2024"
425
426 #. type: TH
427 #: debian-trixie
428 #, no-wrap
429 msgid "Linux man-pages 6.9.1"
430 msgstr "صفحات دليل لينكس 6.9.1"
431
432 #. type: Plain text
433 #: debian-trixie
434 #, no-wrap
435 msgid ""
436 "struct __sysctl_args {\n"
437 " int *name; /* integer vector describing variable */\n"
438 " int nlen; /* length of this vector */\n"
439 " void *oldval; /* 0 or address where to store old value */\n"
440 " size_t *oldlenp; /* available room for old value,\n"
441 " overwritten by actual size of old value */\n"
442 " void *newval; /* 0 or address of new value */\n"
443 " size_t newlen; /* size of new value */\n"
444 "};\n"
445 msgstr ""
446 "struct __sysctl_args {\n"
447 " int *name; /* متجه عدد صحيح يصف المتغير */\n"
448 " int nlen; /* طول المتجه */\n"
449 " void *oldval; /* 0 أو عنوان تخزين القيمة القديمة */\n"
450 " size_t *oldlenp; /* المساحة المتاحة للقيمة القديمة,\n"
451 " يحل محلها الحجم الفعلي للقيمة القديمة */\n"
452 " void *newval; /* 0 أو عنوان القيمة الجديدة */\n"
453 " size_t newlen; /* حجم القيمة الجديدة */\n"
454 "};\n"
455
456 #. type: Plain text
457 #: debian-trixie fedora-44 fedora-rawhide
458 msgid "Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
459 msgstr "لينكس 1.3.57. أُزيل في لينكس 5.5، glibc 2.32."
460
461 #. type: Plain text
462 #: debian-trixie fedora-44 fedora-rawhide
463 msgid ""
464 "It originated in 4.4BSD. Only Linux has the I</proc/sys> mirror, and the "
465 "object naming schemes differ between Linux and 4.4BSD, but the declaration "
466 "of the B<sysctl>() function is the same in both."
467 msgstr ""
468 "نشأ في 4.4BSD. فقط لينكس لديه المرآة I</proc/sys>، وتختلف مخططات تسمية "
469 "الكائنات بين لينكس و4.4BSD، لكن تعريف دالة B<sysctl>() هو نفسه في كليهما."
470
471 #. type: Plain text
472 #: debian-trixie fedora-44 fedora-rawhide
473 #, no-wrap
474 msgid ""
475 "#define _GNU_SOURCE\n"
476 "#include E<lt>stdio.hE<gt>\n"
477 "#include E<lt>stdlib.hE<gt>\n"
478 "#include E<lt>string.hE<gt>\n"
479 "#include E<lt>sys/syscall.hE<gt>\n"
480 "#include E<lt>unistd.hE<gt>\n"
481 "\\&\n"
482 "#include E<lt>linux/sysctl.hE<gt>\n"
483 "\\&\n"
484 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
485 "\\&\n"
486 "int _sysctl(struct __sysctl_args *args);\n"
487 "\\&\n"
488 "#define OSNAMESZ 100\n"
489 "\\&\n"
490 "int\n"
491 "main(void)\n"
492 "{\n"
493 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
494 " char osname[OSNAMESZ];\n"
495 " size_t osnamelth;\n"
496 " struct __sysctl_args args;\n"
497 "\\&\n"
498 " memset(&args, 0, sizeof(args));\n"
499 " args.name = name;\n"
500 " args.nlen = ARRAY_SIZE(name);\n"
501 " args.oldval = osname;\n"
502 " args.oldlenp = &osnamelth;\n"
503 "\\&\n"
504 " osnamelth = sizeof(osname);\n"
505 "\\&\n"
506 " if (syscall(SYS__sysctl, &args) == -1) {\n"
507 " perror(\"_sysctl\");\n"
508 " exit(EXIT_FAILURE);\n"
509 " }\n"
510 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
511 " exit(EXIT_SUCCESS);\n"
512 "}\n"
513 msgstr ""
514 "#define _GNU_SOURCE\n"
515 "#include E<lt>stdio.hE<gt>\n"
516 "#include E<lt>stdlib.hE<gt>\n"
517 "#include E<lt>string.hE<gt>\n"
518 "#include E<lt>sys/syscall.hE<gt>\n"
519 "#include E<lt>unistd.hE<gt>\n"
520 "\\&\n"
521 "#include E<lt>linux/sysctl.hE<gt>\n"
522 "\\&\n"
523 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
524 "\\&\n"
525 "int _sysctl(struct __sysctl_args *args);\n"
526 "\\&\n"
527 "#define OSNAMESZ 100\n"
528 "\\&\n"
529 "int\n"
530 "main(void)\n"
531 "{\n"
532 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
533 " char osname[OSNAMESZ];\n"
534 " size_t osnamelth;\n"
535 " struct __sysctl_args args;\n"
536 "\\&\n"
537 " memset(&args, 0, sizeof(args));\n"
538 " args.name = name;\n"
539 " args.nlen = ARRAY_SIZE(name);\n"
540 " args.oldval = osname;\n"
541 " args.oldlenp = &osnamelth;\n"
542 "\\&\n"
543 " osnamelth = sizeof(osname);\n"
544 "\\&\n"
545 " if (syscall(SYS__sysctl, &args) == -1) {\n"
546 " perror(\"_sysctl\");\n"
547 " exit(EXIT_FAILURE);\n"
548 " }\n"
549 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
550 " exit(EXIT_SUCCESS);\n"
551 "}\n"
552
553 #. type: TH
554 #: fedora-44 fedora-rawhide
555 #, no-wrap
556 msgid "2024-11-17"
557 msgstr "17 نوفمبر 2024"
558
559 #. type: TH
560 #: fedora-44 fedora-rawhide
561 #, no-wrap
562 msgid "Linux man-pages 6.13"
563 msgstr "صفحات دليل لينكس 6.13"
564
565 #. type: TH
566 #: mageia-cauldron
567 #, no-wrap
568 msgid "Linux man-pages 6.17"
569 msgstr "صفحات دليل لينكس 6.17"
570
571 #. type: TH
572 #: opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "Linux man-pages (unreleased)"
575 msgstr "صفحات دليل لينكس (لم تصدر بعد)"