Debian Codegraph @

po/pl/man2/sysctl.2.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Przemek Borys <[email protected]>, 1999.
5 # Andrzej Krzysztofowicz <[email protected]>, 2003.
6 # Michał Kułach <[email protected]>, 2024, 2025, 2026.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: 2026-03-15 12:35+0100\n"
12 "Last-Translator: Michał Kułach <[email protected]>\n"
13 "Language-Team: Polish <[email protected]>\n"
14 "Language: pl\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=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19 "|| n%100>=20) ? 1 : 2);\n"
20 "X-Generator: Lokalize 25.04.0\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "sysctl"
27 msgstr "sysctl"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-10"
34 msgstr "10 lutego 2026 r."
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NAZWA"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "sysctl - read/write system parameters"
53 msgstr "sysctl - odczytuje/zapisuje parametry systemu"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "SYNOPSIS"
60 msgstr "SKŁADNIA"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid ""
67 "B<#include E<lt>unistd.hE<gt>>\n"
68 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
69 msgstr ""
70 "B<#include E<lt>unistd.hE<gt>>\n"
71 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
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<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
78 msgstr "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "DESCRIPTION"
85 msgstr "OPIS"
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 msgid "B<This system call no longer exists on current kernels!> See NOTES."
91 msgstr ""
92 "B<To wywołanie systemowe już nie istnieje w aktualnych jądrach!> Zob. UWAGI."
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 "B<_sysctl>() odczytuje i/lub ustawia parametry jądra. Na przykład: nazwę "
102 "stacji, maksymalną liczbę otwartych plików. Argument wywołania ma postać"
103
104 #. type: Plain text
105 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
106 #: opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "struct __sysctl_args {\n"
110 " int *name; /* integer vector describing variable */\n"
111 " int nlen; /* number of elements of this vector */\n"
112 " void *oldval; /* 0 or address where to store old value */\n"
113 " size_t *oldlenp; /* available room for old value,\n"
114 " overwritten by actual size of old value */\n"
115 " void *newval; /* 0 or address of new value */\n"
116 " size_t newlen; /* size of new value */\n"
117 "};\n"
118 msgstr ""
119 "struct __sysctl_args {\n"
120 " int *name; /* wektor liczb całkowitych opisujący zmienną */\n"
121 " int nlen; /* liczba elementów tego wektora */\n"
122 " void *oldval; /* 0 lub adres, gdzie zachować starą wartość */\n"
123 " size_t *oldlenp; /* ilość miejsca na starą wartość,\n"
124 " nadpisywana przez rzeczywisty jej rozmiar */\n"
125 " void *newval; /* 0 lub adres nowej wartości */\n"
126 " size_t newlen; /* rozmiar nowej wartości */\n"
127 "};\n"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "This call does a search in a tree structure, possibly resembling a directory "
134 "tree under I</proc/sys>, and if the requested item is found calls some "
135 "appropriate routine to read or modify the value."
136 msgstr ""
137 "Wywołanie to dokonuje przeszukiwania struktury drzewiastej, prawdopodobnie "
138 "przypominającej drzewo katalogowe z I</proc/sys>, i jeśli żądany element "
139 "zostanie znaleziony, wywołuje odpowiednią funkcję do odczytania lub "
140 "zmodyfikowania wartości."
141
142 #. type: SH
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "RETURN VALUE"
147 msgstr "WARTOŚĆ ZWRACANA"
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "Upon successful completion, B<_sysctl>() returns 0. Otherwise, a value of "
154 "-1 is returned and I<errno> is set to indicate the error."
155 msgstr ""
156 "Po pomyślnym zakończeniu, B<_sysctl>() zwraca 0. W przeciwnym wypadku "
157 "zwracane jest -1 i ustawiane I<errno> w sposób określający rodzaj błędu."
158
159 #. type: SH
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "ERRORS"
164 msgstr "BŁĘDY"
165
166 #. type: TP
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "B<EACCES>"
171 msgstr "B<EACCES>"
172
173 #. type: TQ
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "B<EPERM>"
178 msgstr "B<EPERM>"
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "No search permission for one of the encountered \"directories\", or no read "
185 "permission where I<oldval> was nonzero, or no write permission where "
186 "I<newval> was nonzero."
187 msgstr ""
188 "Brak uprawnień do przeszukiwania jednego z napotkanych \\[Bq]katalogów\\"
189 "[rq], lub brak praw odczytu, gdy I<oldval> było niezerowe, lub brak praw "
190 "zapisu, gdy I<newval> było niezerowe."
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<EFAULT>"
197 msgstr "B<EFAULT>"
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
204 "but allowed zero room in I<oldlenp>."
205 msgstr ""
206 "Wywołanie żądało poprzedniej wartości przez ustawienie I<oldval> na nie-"
207 "NULL, lecz zezwalając na zerową wielkość w I<oldlenp>."
208
209 #. type: TP
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<ENOTDIR>"
214 msgstr "B<ENOTDIR>"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "I<name> was not found."
220 msgstr "I<name> nie zostało znalezione."
221
222 #. type: SH
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "STANDARDS"
227 msgstr "STANDARDY"
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 "Linux."
233 msgstr "Linux."
234
235 #. type: SH
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "HISTORY"
240 msgstr "HISTORIA"
241
242 #. type: Plain text
243 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
244 #: opensuse-tumbleweed
245 msgid "4.4BSD, Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
246 msgstr "4.4BSD, Linux 1.3.57. Usunięte w: Linuksie 5.5, glibc 2.32."
247
248 #. type: Plain text
249 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
250 #: opensuse-tumbleweed
251 msgid ""
252 "Only Linux has the I</proc/sys> mirror, and the object naming schemes differ "
253 "between Linux and 4.4BSD, but the declaration of the B<sysctl>() function "
254 "is the same in both."
255 msgstr ""
256 "Jedynie Linux posiada jego odwzorowanie w I</proc/sys> a konwencje nazywania "
257 "obiektów różnią się między Linuksem i 4.4BSD, lecz deklaracja funkcji "
258 "I<sysctl>() jest taka sama w obu przypadkach."
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "NOTES"
265 msgstr "UWAGI"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "Use of this system call was long discouraged: since Linux 2.6.24, uses of "
272 "this system call result in warnings in the kernel log, and in Linux 5.5, the "
273 "system call was finally removed. Use the I</proc/sys> interface instead."
274 msgstr ""
275 "Używanie tego wywołania systemowego było od dawna odradzane: od Linuksa "
276 "2.6.24, korzystanie z wywołania powodowało wypisywanie ostrzeżeń w dzienniku "
277 "jądra, a w Linuksie 5.5 ostatecznie je usunięto. W zamian należy używać "
278 "interfejsu I</proc/sys>."
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "Note that on older kernels where this system call still exists, it is "
285 "available only if the kernel was configured with the "
286 "B<CONFIG_SYSCTL_SYSCALL> option. Furthermore, glibc does not provide a "
287 "wrapper for this system call, necessitating the use of B<syscall>(2)."
288 msgstr ""
289 "Proszę zauważyć, że na starszych jądrach, w których to wywołanie systemowe "
290 "wciąż istnieje, jest dostępne jedynie, jeśli jądro skonfigurowano z opcją "
291 "B<CONFIG_SYSCTL_SYSCALL>. Co więcej, glibc nie zapewnia opakowania tego "
292 "wywołania, co zmusza do korzystania z B<syscall>(2)."
293
294 #. type: SH
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "BUGS"
299 msgstr "USTERKI"
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "The object names vary between kernel versions, making this system call "
306 "worthless for applications."
307 msgstr ""
308 "Nazwy obiektów różnią się między wersjami jądra, czyniąc to wywołanie "
309 "systemowe bezużytecznym dla aplikacji."
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "Not all available objects are properly documented."
315 msgstr "Nie wszystkie dostępne obiekty są odpowiednio udokumentowane."
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "It is not yet possible to change operating system by writing to I</proc/sys/"
322 "kernel/ostype>."
323 msgstr ""
324 "Nie jest jeszcze możliwe zmienianie systemu operacyjnego przez zapis do I</"
325 "proc/sys/kernel/ostype>."
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 "EXAMPLES"
332 msgstr "PRZYKŁADY"
333
334 #. type: Plain text
335 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
336 #: opensuse-tumbleweed
337 #, no-wrap
338 msgid ""
339 "#define _GNU_SOURCE\n"
340 "#include E<lt>stdcountof.hE<gt>\n"
341 "#include E<lt>stdio.hE<gt>\n"
342 "#include E<lt>stdlib.hE<gt>\n"
343 "#include E<lt>string.hE<gt>\n"
344 "#include E<lt>sys/syscall.hE<gt>\n"
345 "#include E<lt>unistd.hE<gt>\n"
346 "\\&\n"
347 "#include E<lt>linux/sysctl.hE<gt>\n"
348 "\\&\n"
349 "int _sysctl(struct __sysctl_args *args);\n"
350 "\\&\n"
351 "#define OSNAMESZ 100\n"
352 "\\&\n"
353 "int\n"
354 "main(void)\n"
355 "{\n"
356 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
357 " char osname[OSNAMESZ];\n"
358 " size_t osnamelth;\n"
359 " struct __sysctl_args args;\n"
360 "\\&\n"
361 " memset(&args, 0, sizeof(args));\n"
362 " args.name = name;\n"
363 " args.nlen = countof(name);\n"
364 " args.oldval = osname;\n"
365 " args.oldlenp = &osnamelth;\n"
366 "\\&\n"
367 " osnamelth = sizeof(osname);\n"
368 "\\&\n"
369 " if (syscall(SYS__sysctl, &args) == -1) {\n"
370 " perror(\"_sysctl\");\n"
371 " exit(EXIT_FAILURE);\n"
372 " }\n"
373 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
374 " exit(EXIT_SUCCESS);\n"
375 "}\n"
376 msgstr ""
377 "#define _GNU_SOURCE\n"
378 "#include E<lt>stdcountof.hE<gt>\n"
379 "#include E<lt>stdio.hE<gt>\n"
380 "#include E<lt>stdlib.hE<gt>\n"
381 "#include E<lt>string.hE<gt>\n"
382 "#include E<lt>sys/syscall.hE<gt>\n"
383 "#include E<lt>unistd.hE<gt>\n"
384 "\\&\n"
385 "#include E<lt>linux/sysctl.hE<gt>\n"
386 "\\&\n"
387 "int _sysctl(struct __sysctl_args *args);\n"
388 "\\&\n"
389 "#define OSNAMESZ 100\n"
390 "\\&\n"
391 "int\n"
392 "main(void)\n"
393 "{\n"
394 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
395 " char osname[OSNAMESZ];\n"
396 " size_t osnamelth;\n"
397 " struct __sysctl_args args;\n"
398 "\\&\n"
399 " memset(&args, 0, sizeof(args));\n"
400 " args.name = name;\n"
401 " args.nlen = countof(name);\n"
402 " args.oldval = osname;\n"
403 " args.oldlenp = &osnamelth;\n"
404 "\\&\n"
405 " osnamelth = sizeof(osname);\n"
406 "\\&\n"
407 " if (syscall(SYS__sysctl, &args) == -1) {\n"
408 " perror(\"_sysctl\");\n"
409 " exit(EXIT_FAILURE);\n"
410 " }\n"
411 " printf(\"Na tym komputerze działa %*s\\[rs]n\", (int) osnamelth, osname);\n"
412 " exit(EXIT_SUCCESS);\n"
413 "}\n"
414
415 #. SRC END
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "SEE ALSO"
421 msgstr "ZOBACZ TAKŻE"
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid "B<proc>(5)"
427 msgstr "B<proc>(5)"
428
429 #. type: TH
430 #: debian-trixie
431 #, no-wrap
432 msgid "2024-06-15"
433 msgstr "15 czerwca 2024 r."
434
435 #. type: TH
436 #: debian-trixie
437 #, no-wrap
438 msgid "Linux man-pages 6.9.1"
439 msgstr "Linux man-pages 6.9.1"
440
441 #. type: Plain text
442 #: debian-trixie
443 #, no-wrap
444 msgid ""
445 "struct __sysctl_args {\n"
446 " int *name; /* integer vector describing variable */\n"
447 " int nlen; /* length of this vector */\n"
448 " void *oldval; /* 0 or address where to store old value */\n"
449 " size_t *oldlenp; /* available room for old value,\n"
450 " overwritten by actual size of old value */\n"
451 " void *newval; /* 0 or address of new value */\n"
452 " size_t newlen; /* size of new value */\n"
453 "};\n"
454 msgstr ""
455 "struct __sysctl_args {\n"
456 " int *name; /* wektor liczb całkowitych opisujący zmienną */\n"
457 " int nlen; /* długość tego wektora */\n"
458 " void *oldval; /* 0 lub adres, gdzie zachować starą wartość */\n"
459 " size_t *oldlenp; /* ilość miejsca na starą wartość,\n"
460 " nadpisywana przez rzeczywisty jej rozmiar */\n"
461 " void *newval; /* 0 lub adres nowej wartości */\n"
462 " size_t newlen; /* rozmiar nowej wartości */\n"
463 "};\n"
464
465 #. type: Plain text
466 #: debian-trixie fedora-44 fedora-rawhide
467 msgid "Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
468 msgstr "Linux 1.3.57. Usunięte w: Linuksie 5.5, glibc 2.32."
469
470 #. type: Plain text
471 #: debian-trixie fedora-44 fedora-rawhide
472 msgid ""
473 "It originated in 4.4BSD. Only Linux has the I</proc/sys> mirror, and the "
474 "object naming schemes differ between Linux and 4.4BSD, but the declaration "
475 "of the B<sysctl>() function is the same in both."
476 msgstr ""
477 "Pochodzi z 4.4BSD. Jedynie Linux posiada jego odwzorowanie w I</proc/sys> a "
478 "konwencje nazywania obiektów różnią się między Linuksem i 4.4BSD, lecz "
479 "deklaracja funkcji I<sysctl>() jest taka sama w obu przypadkach."
480
481 #. type: Plain text
482 #: debian-trixie fedora-44 fedora-rawhide
483 #, no-wrap
484 msgid ""
485 "#define _GNU_SOURCE\n"
486 "#include E<lt>stdio.hE<gt>\n"
487 "#include E<lt>stdlib.hE<gt>\n"
488 "#include E<lt>string.hE<gt>\n"
489 "#include E<lt>sys/syscall.hE<gt>\n"
490 "#include E<lt>unistd.hE<gt>\n"
491 "\\&\n"
492 "#include E<lt>linux/sysctl.hE<gt>\n"
493 "\\&\n"
494 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
495 "\\&\n"
496 "int _sysctl(struct __sysctl_args *args);\n"
497 "\\&\n"
498 "#define OSNAMESZ 100\n"
499 "\\&\n"
500 "int\n"
501 "main(void)\n"
502 "{\n"
503 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
504 " char osname[OSNAMESZ];\n"
505 " size_t osnamelth;\n"
506 " struct __sysctl_args args;\n"
507 "\\&\n"
508 " memset(&args, 0, sizeof(args));\n"
509 " args.name = name;\n"
510 " args.nlen = ARRAY_SIZE(name);\n"
511 " args.oldval = osname;\n"
512 " args.oldlenp = &osnamelth;\n"
513 "\\&\n"
514 " osnamelth = sizeof(osname);\n"
515 "\\&\n"
516 " if (syscall(SYS__sysctl, &args) == -1) {\n"
517 " perror(\"_sysctl\");\n"
518 " exit(EXIT_FAILURE);\n"
519 " }\n"
520 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
521 " exit(EXIT_SUCCESS);\n"
522 "}\n"
523 msgstr ""
524 "#define _GNU_SOURCE\n"
525 "#include E<lt>stdio.hE<gt>\n"
526 "#include E<lt>stdlib.hE<gt>\n"
527 "#include E<lt>string.hE<gt>\n"
528 "#include E<lt>sys/syscall.hE<gt>\n"
529 "#include E<lt>unistd.hE<gt>\n"
530 "\\&\n"
531 "#include E<lt>linux/sysctl.hE<gt>\n"
532 "\\&\n"
533 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
534 "\\&\n"
535 "int _sysctl(struct __sysctl_args *args);\n"
536 "\\&\n"
537 "#define OSNAMESZ 100\n"
538 "\\&\n"
539 "int\n"
540 "main(void)\n"
541 "{\n"
542 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
543 " char osname[OSNAMESZ];\n"
544 " size_t osnamelth;\n"
545 " struct __sysctl_args args;\n"
546 "\\&\n"
547 " memset(&args, 0, sizeof(args));\n"
548 " args.name = name;\n"
549 " args.nlen = ARRAY_SIZE(name);\n"
550 " args.oldval = osname;\n"
551 " args.oldlenp = &osnamelth;\n"
552 "\\&\n"
553 " osnamelth = sizeof(osname);\n"
554 "\\&\n"
555 " if (syscall(SYS__sysctl, &args) == -1) {\n"
556 " perror(\"_sysctl\");\n"
557 " exit(EXIT_FAILURE);\n"
558 " }\n"
559 " printf(\"Na tym komputerze działa %*s\\[rs]n\", (int) osnamelth, osname);\n"
560 " exit(EXIT_SUCCESS);\n"
561 "}\n"
562
563 #. type: TH
564 #: fedora-44 fedora-rawhide
565 #, no-wrap
566 msgid "2024-11-17"
567 msgstr "17 listopada 2024 r."
568
569 #. type: TH
570 #: fedora-44 fedora-rawhide
571 #, no-wrap
572 msgid "Linux man-pages 6.13"
573 msgstr "Linux man-pages 6.13"
574
575 #. type: TH
576 #: mageia-cauldron
577 #, no-wrap
578 msgid "Linux man-pages 6.17"
579 msgstr "Linux man-pages 6.17"
580
581 #. type: TH
582 #: opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "Linux man-pages (unreleased)"
585 msgstr "Linux man-pages (niewydane)"