Debian Codegraph @

po/de/man2/sysctl.2.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Chris Leick <[email protected]>, 2010-2013.
5 # Helge Kreutzmann <[email protected]>, 2020.
6 # Mario Blättermann <[email protected]>, 2020, 2022, 2023.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 4.29.1\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: 2026-03-03 17:31+0100\n"
12 "Last-Translator: Mario Blättermann <[email protected]>\n"
13 "Language-Team: German <[email protected]>\n"
14 "Language: de\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 "X-Generator: Lokalize 23.04.3\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "sysctl"
26 msgstr "sysctl"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-10"
33 msgstr "10. Februar 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "BEZEICHNUNG"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "sysctl - read/write system parameters"
52 msgstr "sysctl - Systemparameter lesen/schreiben"
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 "SYNOPSIS"
59 msgstr "ÜBERSICHT"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid ""
66 "B<#include E<lt>unistd.hE<gt>>\n"
67 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
68 msgstr ""
69 "B<#include E<lt>unistd.hE<gt>>\n"
70 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
77 msgstr "B<[[veraltet]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "DESCRIPTION"
84 msgstr "BESCHREIBUNG"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid "B<This system call no longer exists on current kernels!> See NOTES."
90 msgstr ""
91 "B<Dieser Systemaufruf existiert auf aktuellen Kerneln nicht mehr!> Siehe "
92 "ANMERKUNGEN."
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "The B<_sysctl>() call reads and/or writes kernel parameters. For example, "
99 "the hostname, or the maximum number of open files. The argument has the form"
100 msgstr ""
101 "Der Aufruf B<_sysctl>() liest und/oder schreibt Kernel-Parameter, zum "
102 "Beispiel den Rechnernamen oder die maximale Anzahl geöffneter Dateien. Das "
103 "Argument hat die Form"
104
105 #. type: Plain text
106 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
107 #: opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "struct __sysctl_args {\n"
111 " int *name; /* integer vector describing variable */\n"
112 " int nlen; /* number of elements of this vector */\n"
113 " void *oldval; /* 0 or address where to store old value */\n"
114 " size_t *oldlenp; /* available room for old value,\n"
115 " overwritten by actual size of old value */\n"
116 " void *newval; /* 0 or address of new value */\n"
117 " size_t newlen; /* size of new value */\n"
118 "};\n"
119 msgstr ""
120 "struct __sysctl_args {\n"
121 " int *name; /* Variable beschreibender Vektor aus Ganzzahlen */\n"
122 " int nlen; /* Anzahl der Elemente dieses Vektors */\n"
123 " void *oldval; /* 0 oder Adresse, an der der alte Wert gespeichert\n"
124 " werden soll */\n"
125 " size_t *oldlenp; /* verfügbarer Platz für den alten Wert, überschrieben\n"
126 " durch die tatsächliche Größe des alten Wertes */\n"
127 " void *newval; /* 0 oder Adresse des neuen Wertes */\n"
128 " size_t newlen; /* Größe des neuen Wertes */\n"
129 "};\n"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "This call does a search in a tree structure, possibly resembling a directory "
136 "tree under I</proc/sys>, and if the requested item is found calls some "
137 "appropriate routine to read or modify the value."
138 msgstr ""
139 "Dieser Aufruf sucht in einer Baumstruktur, die möglicherweise einer "
140 "Verzeichnisstruktur unter I</proc/sys> ähnelt, und ruft, wenn das gewünschte "
141 "Element gefunden wird, eine entsprechende Routine auf, um den Wert zu lesen "
142 "oder zu verändern."
143
144 #. type: SH
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, no-wrap
148 msgid "RETURN VALUE"
149 msgstr "RÜCKGABEWERT"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "Upon successful completion, B<_sysctl>() returns 0. Otherwise, a value of "
156 "-1 is returned and I<errno> is set to indicate the error."
157 msgstr ""
158 "Bei erfolgreichem Abschluss gibt B<_sysctl>() 0 zurück. Andernfalls wird ein "
159 "Wert von -1 zurückgegeben und I<errno> entsprechend gesetzt."
160
161 #. type: SH
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 #, no-wrap
165 msgid "ERRORS"
166 msgstr "FEHLER"
167
168 #. type: TP
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "B<EACCES>"
173 msgstr "B<EACCES>"
174
175 #. type: TQ
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "B<EPERM>"
180 msgstr "B<EPERM>"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "No search permission for one of the encountered \"directories\", or no read "
187 "permission where I<oldval> was nonzero, or no write permission where "
188 "I<newval> was nonzero."
189 msgstr ""
190 "keine Suchrechte für eines der vorgefundenen »Verzeichnisse«, keine "
191 "Leserechte, wenn I<oldval> nicht null war oder keine Schreibrechte, wenn "
192 "I<newval> nicht null war."
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "B<EFAULT>"
199 msgstr "B<EFAULT>"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
206 "but allowed zero room in I<oldlenp>."
207 msgstr ""
208 "Der Aufruf fragte nach dem vorherigen Wert durch Setzen von I<oldval> auf "
209 "einen Wert ungleich NULL, stellte dafür aber keinen Platz in I<oldlenp> zur "
210 "Verfügung."
211
212 #. type: TP
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "B<ENOTDIR>"
217 msgstr "B<ENOTDIR>"
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid "I<name> was not found."
223 msgstr "I<name> wurde nicht gefunden."
224
225 #. type: SH
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "STANDARDS"
230 msgstr "STANDARDS"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid "Linux."
236 msgstr "Linux."
237
238 #. type: SH
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "HISTORY"
243 msgstr "GESCHICHTE"
244
245 #. type: Plain text
246 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
247 #: opensuse-tumbleweed
248 msgid "4.4BSD, Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
249 msgstr "4.4BSD, Linux 1.3.57. Wurde in Linux 5.5, Glibc 2.32 entfernt."
250
251 #. type: Plain text
252 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
253 #: opensuse-tumbleweed
254 msgid ""
255 "Only Linux has the I</proc/sys> mirror, and the object naming schemes differ "
256 "between Linux and 4.4BSD, but the declaration of the B<sysctl>() function "
257 "is the same in both."
258 msgstr ""
259 "Ausschließlich Linux hat das Abbild I</proc/sys> und die Schemata der "
260 "Objektbenennung unterscheiden sich in Linux und 4.4BSD, aber die Deklaration "
261 "der Funktion B<sysctl>() ist in beiden gleich."
262
263 #. type: SH
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "NOTES"
268 msgstr "ANMERKUNGEN"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid ""
274 "Use of this system call was long discouraged: since Linux 2.6.24, uses of "
275 "this system call result in warnings in the kernel log, and in Linux 5.5, the "
276 "system call was finally removed. Use the I</proc/sys> interface instead."
277 msgstr ""
278 "Die Verwendung dieses Systemaufrufs war seit langem missbilligt: seit Linux "
279 "2.6.24 führte die Verwendung dieses Systemaufrufs zu Warnungen im "
280 "Kernelprotokoll und in Linux 5.5 wurde der Systemaufruf schließlich "
281 "entfernt. Verwenden Sie stattdessen die Schnittstelle I</proc/sys>."
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "Note that on older kernels where this system call still exists, it is "
288 "available only if the kernel was configured with the "
289 "B<CONFIG_SYSCTL_SYSCALL> option. Furthermore, glibc does not provide a "
290 "wrapper for this system call, necessitating the use of B<syscall>(2)."
291 msgstr ""
292 "Beachten Sie, dass auf älteren Kerneln, auf denen dieser Systemaufruf noch "
293 "existiert, er nur verfügbar ist, wenn der Kernel mit der Option "
294 "B<CONFIG_SYSCTL_SYSCALL> konfiguriert wurde. Desweiteren stellt Glibc keinen "
295 "Wrapper-Aufruf für diesen Systemaufruf bereit, daher muss B<syscall>(2) "
296 "verwandt werden."
297
298 #. type: SH
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "BUGS"
303 msgstr "FEHLER"
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 "The object names vary between kernel versions, making this system call "
310 "worthless for applications."
311 msgstr ""
312 "Die Objektnamen verändern sich zwischen Kernel-Versionen, was diesen "
313 "Systemaufruf für Anwendungen wertlos macht."
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid "Not all available objects are properly documented."
319 msgstr "Nicht alle verfügbaren Objekte sind richtig dokumentiert."
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid ""
325 "It is not yet possible to change operating system by writing to I</proc/sys/"
326 "kernel/ostype>."
327 msgstr ""
328 "Es ist noch nicht möglich, das Betriebssystem durch Schreiben nach I</proc/"
329 "sys/kernel/ostype> zu ändern."
330
331 #. type: SH
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "EXAMPLES"
336 msgstr "BEISPIELE"
337
338 #. type: Plain text
339 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
340 #: opensuse-tumbleweed
341 #, no-wrap
342 msgid ""
343 "#define _GNU_SOURCE\n"
344 "#include E<lt>stdcountof.hE<gt>\n"
345 "#include E<lt>stdio.hE<gt>\n"
346 "#include E<lt>stdlib.hE<gt>\n"
347 "#include E<lt>string.hE<gt>\n"
348 "#include E<lt>sys/syscall.hE<gt>\n"
349 "#include E<lt>unistd.hE<gt>\n"
350 "\\&\n"
351 "#include E<lt>linux/sysctl.hE<gt>\n"
352 "\\&\n"
353 "int _sysctl(struct __sysctl_args *args);\n"
354 "\\&\n"
355 "#define OSNAMESZ 100\n"
356 "\\&\n"
357 "int\n"
358 "main(void)\n"
359 "{\n"
360 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
361 " char osname[OSNAMESZ];\n"
362 " size_t osnamelth;\n"
363 " struct __sysctl_args args;\n"
364 "\\&\n"
365 " memset(&args, 0, sizeof(args));\n"
366 " args.name = name;\n"
367 " args.nlen = countof(name);\n"
368 " args.oldval = osname;\n"
369 " args.oldlenp = &osnamelth;\n"
370 "\\&\n"
371 " osnamelth = sizeof(osname);\n"
372 "\\&\n"
373 " if (syscall(SYS__sysctl, &args) == -1) {\n"
374 " perror(\"_sysctl\");\n"
375 " exit(EXIT_FAILURE);\n"
376 " }\n"
377 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
378 " exit(EXIT_SUCCESS);\n"
379 "}\n"
380 msgstr ""
381 "#define _GNU_SOURCE\n"
382 "#include E<lt>stdcountof.hE<gt>\n"
383 "#include E<lt>stdio.hE<gt>\n"
384 "#include E<lt>stdlib.hE<gt>\n"
385 "#include E<lt>string.hE<gt>\n"
386 "#include E<lt>sys/syscall.hE<gt>\n"
387 "#include E<lt>unistd.hE<gt>\n"
388 "\\&\n"
389 "#include E<lt>linux/sysctl.hE<gt>\n"
390 "\\&\n"
391 "int _sysctl(struct __sysctl_args *args);\n"
392 "\\&\n"
393 "#define OSNAMESZ 100\n"
394 "\\&\n"
395 "int\n"
396 "main(void)\n"
397 "{\n"
398 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
399 " char osname[OSNAMESZ];\n"
400 " size_t osnamelth;\n"
401 " struct __sysctl_args args;\n"
402 "\\&\n"
403 " memset(&args, 0, sizeof(args));\n"
404 " args.name = name;\n"
405 " args.nlen = countof(name);\n"
406 " args.oldval = osname;\n"
407 " args.oldlenp = &osnamelth;\n"
408 "\\&\n"
409 " osnamelth = sizeof(osname);\n"
410 "\\&\n"
411 " if (syscall(SYS__sysctl, &args) == -1) {\n"
412 " perror(\"_sysctl\");\n"
413 " exit(EXIT_FAILURE);\n"
414 " }\n"
415 " printf(\"Auf dieser Maschine läuft %*s\\[rs]n\", (int) osnamelth, osname);\n"
416 " exit(EXIT_SUCCESS);\n"
417 "}\n"
418
419 #. SRC END
420 #. type: SH
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "SEE ALSO"
425 msgstr "SIEHE AUCH"
426
427 #. type: Plain text
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 msgid "B<proc>(5)"
431 msgstr "B<proc>(5)"
432
433 #. type: TH
434 #: debian-trixie
435 #, no-wrap
436 msgid "2024-06-15"
437 msgstr "15. Juni 2024"
438
439 #. type: TH
440 #: debian-trixie
441 #, no-wrap
442 msgid "Linux man-pages 6.9.1"
443 msgstr "Linux man-pages 6.9.1"
444
445 #. type: Plain text
446 #: debian-trixie
447 #, no-wrap
448 msgid ""
449 "struct __sysctl_args {\n"
450 " int *name; /* integer vector describing variable */\n"
451 " int nlen; /* length of this vector */\n"
452 " void *oldval; /* 0 or address where to store old value */\n"
453 " size_t *oldlenp; /* available room for old value,\n"
454 " overwritten by actual size of old value */\n"
455 " void *newval; /* 0 or address of new value */\n"
456 " size_t newlen; /* size of new value */\n"
457 "};\n"
458 msgstr ""
459 "struct __sysctl_args {\n"
460 " int *name; /* Variable beschreibender Vektor aus Ganzzahlen */\n"
461 " int nlen; /* Länge dieses Vektors */\n"
462 " void *oldval; /* 0 oder Adresse, an der der alte Wert gespeichert\n"
463 " werden soll */\n"
464 " size_t *oldlenp; /* verfügbarer Platz für den alten Wert, überschrieben\n"
465 " durch die tatsächliche Größe des alten Wertes */\n"
466 " void *newval; /* 0 oder Adresse des neuen Wertes */\n"
467 " size_t newlen; /* Größe des neuen Wertes */\n"
468 "};\n"
469
470 #. type: Plain text
471 #: debian-trixie fedora-44 fedora-rawhide
472 msgid "Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
473 msgstr "Linux 1.3.57. Wurde in Linux 5.5, Glibc 2.32 entfernt."
474
475 #. type: Plain text
476 #: debian-trixie fedora-44 fedora-rawhide
477 msgid ""
478 "It originated in 4.4BSD. Only Linux has the I</proc/sys> mirror, and the "
479 "object naming schemes differ between Linux and 4.4BSD, but the declaration "
480 "of the B<sysctl>() function is the same in both."
481 msgstr ""
482 "Dieser Aufruf entstammt BSD-4.4. Ausschließlich Linux hat das Abbild I</proc/"
483 "sys> und die Schemata der Objektbenennung unterscheiden sich in Linux und "
484 "4.4BSD, aber die Deklaration der Funktion B<sysctl>() ist in beiden gleich."
485
486 #. type: Plain text
487 #: debian-trixie fedora-44 fedora-rawhide
488 #, no-wrap
489 msgid ""
490 "#define _GNU_SOURCE\n"
491 "#include E<lt>stdio.hE<gt>\n"
492 "#include E<lt>stdlib.hE<gt>\n"
493 "#include E<lt>string.hE<gt>\n"
494 "#include E<lt>sys/syscall.hE<gt>\n"
495 "#include E<lt>unistd.hE<gt>\n"
496 "\\&\n"
497 "#include E<lt>linux/sysctl.hE<gt>\n"
498 "\\&\n"
499 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
500 "\\&\n"
501 "int _sysctl(struct __sysctl_args *args);\n"
502 "\\&\n"
503 "#define OSNAMESZ 100\n"
504 "\\&\n"
505 "int\n"
506 "main(void)\n"
507 "{\n"
508 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
509 " char osname[OSNAMESZ];\n"
510 " size_t osnamelth;\n"
511 " struct __sysctl_args args;\n"
512 "\\&\n"
513 " memset(&args, 0, sizeof(args));\n"
514 " args.name = name;\n"
515 " args.nlen = ARRAY_SIZE(name);\n"
516 " args.oldval = osname;\n"
517 " args.oldlenp = &osnamelth;\n"
518 "\\&\n"
519 " osnamelth = sizeof(osname);\n"
520 "\\&\n"
521 " if (syscall(SYS__sysctl, &args) == -1) {\n"
522 " perror(\"_sysctl\");\n"
523 " exit(EXIT_FAILURE);\n"
524 " }\n"
525 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
526 " exit(EXIT_SUCCESS);\n"
527 "}\n"
528 msgstr ""
529 "#define _GNU_SOURCE\n"
530 "#include E<lt>stdio.hE<gt>\n"
531 "#include E<lt>stdlib.hE<gt>\n"
532 "#include E<lt>string.hE<gt>\n"
533 "#include E<lt>sys/syscall.hE<gt>\n"
534 "#include E<lt>unistd.hE<gt>\n"
535 "\\&\n"
536 "#include E<lt>linux/sysctl.hE<gt>\n"
537 "\\&\n"
538 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
539 "\\&\n"
540 "int _sysctl(struct __sysctl_args *args);\n"
541 "\\&\n"
542 "#define OSNAMESZ 100\n"
543 "\\&\n"
544 "int\n"
545 "main(void)\n"
546 "{\n"
547 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
548 " char osname[OSNAMESZ];\n"
549 " size_t osnamelth;\n"
550 " struct __sysctl_args args;\n"
551 "\\&\n"
552 " memset(&args, 0, sizeof(args));\n"
553 " args.name = name;\n"
554 " args.nlen = ARRAY_SIZE(name);\n"
555 " args.oldval = osname;\n"
556 " args.oldlenp = &osnamelth;\n"
557 "\\&\n"
558 " osnamelth = sizeof(osname);\n"
559 "\\&\n"
560 " if (syscall(SYS__sysctl, &args) == -1) {\n"
561 " perror(\"_sysctl\");\n"
562 " exit(EXIT_FAILURE);\n"
563 " }\n"
564 " printf(\"Auf dieser Maschine läuft %*s\\[rs]n\", (int) osnamelth, osname);\n"
565 " exit(EXIT_SUCCESS);\n"
566 "}\n"
567
568 #. type: TH
569 #: fedora-44 fedora-rawhide
570 #, no-wrap
571 msgid "2024-11-17"
572 msgstr "17. November 2024"
573
574 #. type: TH
575 #: fedora-44 fedora-rawhide
576 #, no-wrap
577 msgid "Linux man-pages 6.13"
578 msgstr "Linux man-pages 6.13"
579
580 #. type: TH
581 #: mageia-cauldron
582 #, no-wrap
583 msgid "Linux man-pages 6.17"
584 msgstr "Linux man-pages 6.17"
585
586 #. type: TH
587 #: opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "Linux man-pages (unreleased)"
590 msgstr "Linux man-pages (unveröffentlicht)"