Debian Codegraph @

templates/man2/sysctl.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:45+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "sysctl"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-10"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "sysctl - read/write system parameters"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "SYNOPSIS"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid ""
64 "B<#include E<lt>unistd.hE<gt>>\n"
65 "B<#include E<lt>linux/sysctl.hE<gt>>\n"
66 msgstr ""
67
68 #. type: Plain text
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
73 msgstr ""
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "DESCRIPTION"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 msgid "B<This system call no longer exists on current kernels!> See NOTES."
86 msgstr ""
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 msgid ""
92 "The B<_sysctl>() call reads and/or writes kernel parameters. For example, "
93 "the hostname, or the maximum number of open files. The argument has the form"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
98 #: opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid ""
101 "struct __sysctl_args {\n"
102 " int *name; /* integer vector describing variable */\n"
103 " int nlen; /* number of elements of this vector */\n"
104 " void *oldval; /* 0 or address where to store old value */\n"
105 " size_t *oldlenp; /* available room for old value,\n"
106 " overwritten by actual size of old value */\n"
107 " void *newval; /* 0 or address of new value */\n"
108 " size_t newlen; /* size of new value */\n"
109 "};\n"
110 msgstr ""
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 msgid ""
116 "This call does a search in a tree structure, possibly resembling a directory "
117 "tree under I</proc/sys>, and if the requested item is found calls some "
118 "appropriate routine to read or modify the value."
119 msgstr ""
120
121 #. type: SH
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "RETURN VALUE"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "Upon successful completion, B<_sysctl>() returns 0. Otherwise, a value of "
133 "-1 is returned and I<errno> is set to indicate the error."
134 msgstr ""
135
136 #. type: SH
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid "ERRORS"
141 msgstr ""
142
143 #. type: TP
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "B<EACCES>"
148 msgstr ""
149
150 #. type: TQ
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "B<EPERM>"
155 msgstr ""
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "No search permission for one of the encountered \"directories\", or no read "
162 "permission where I<oldval> was nonzero, or no write permission where "
163 "I<newval> was nonzero."
164 msgstr ""
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<EFAULT>"
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
178 "but allowed zero room in I<oldlenp>."
179 msgstr ""
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<ENOTDIR>"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid "I<name> was not found."
192 msgstr ""
193
194 #. type: SH
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "STANDARDS"
199 msgstr ""
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 "Linux."
205 msgstr ""
206
207 #. type: SH
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "HISTORY"
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
216 #: opensuse-tumbleweed
217 msgid "4.4BSD, Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
222 #: opensuse-tumbleweed
223 msgid ""
224 "Only Linux has the I</proc/sys> mirror, and the object naming schemes differ "
225 "between Linux and 4.4BSD, but the declaration of the B<sysctl>() function "
226 "is the same in both."
227 msgstr ""
228
229 #. type: SH
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "NOTES"
234 msgstr ""
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "Use of this system call was long discouraged: since Linux 2.6.24, uses of "
241 "this system call result in warnings in the kernel log, and in Linux 5.5, the "
242 "system call was finally removed. Use the I</proc/sys> interface instead."
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid ""
249 "Note that on older kernels where this system call still exists, it is "
250 "available only if the kernel was configured with the "
251 "B<CONFIG_SYSCTL_SYSCALL> option. Furthermore, glibc does not provide a "
252 "wrapper for this system call, necessitating the use of B<syscall>(2)."
253 msgstr ""
254
255 #. type: SH
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "BUGS"
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "The object names vary between kernel versions, making this system call "
267 "worthless for applications."
268 msgstr ""
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 "Not all available objects are properly documented."
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "It is not yet possible to change operating system by writing to I</proc/sys/"
281 "kernel/ostype>."
282 msgstr ""
283
284 #. type: SH
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "EXAMPLES"
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
293 #: opensuse-tumbleweed
294 #, no-wrap
295 msgid ""
296 "#define _GNU_SOURCE\n"
297 "#include E<lt>stdcountof.hE<gt>\n"
298 "#include E<lt>stdio.hE<gt>\n"
299 "#include E<lt>stdlib.hE<gt>\n"
300 "#include E<lt>string.hE<gt>\n"
301 "#include E<lt>sys/syscall.hE<gt>\n"
302 "#include E<lt>unistd.hE<gt>\n"
303 "\\&\n"
304 "#include E<lt>linux/sysctl.hE<gt>\n"
305 "\\&\n"
306 "int _sysctl(struct __sysctl_args *args);\n"
307 "\\&\n"
308 "#define OSNAMESZ 100\n"
309 "\\&\n"
310 "int\n"
311 "main(void)\n"
312 "{\n"
313 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
314 " char osname[OSNAMESZ];\n"
315 " size_t osnamelth;\n"
316 " struct __sysctl_args args;\n"
317 "\\&\n"
318 " memset(&args, 0, sizeof(args));\n"
319 " args.name = name;\n"
320 " args.nlen = countof(name);\n"
321 " args.oldval = osname;\n"
322 " args.oldlenp = &osnamelth;\n"
323 "\\&\n"
324 " osnamelth = sizeof(osname);\n"
325 "\\&\n"
326 " if (syscall(SYS__sysctl, &args) == -1) {\n"
327 " perror(\"_sysctl\");\n"
328 " exit(EXIT_FAILURE);\n"
329 " }\n"
330 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
331 " exit(EXIT_SUCCESS);\n"
332 "}\n"
333 msgstr ""
334
335 #. SRC END
336 #. type: SH
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "SEE ALSO"
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "B<proc>(5)"
347 msgstr ""
348
349 #. type: TH
350 #: debian-trixie
351 #, no-wrap
352 msgid "2024-06-15"
353 msgstr ""
354
355 #. type: TH
356 #: debian-trixie
357 #, no-wrap
358 msgid "Linux man-pages 6.9.1"
359 msgstr ""
360
361 #. type: Plain text
362 #: debian-trixie
363 #, no-wrap
364 msgid ""
365 "struct __sysctl_args {\n"
366 " int *name; /* integer vector describing variable */\n"
367 " int nlen; /* length of this vector */\n"
368 " void *oldval; /* 0 or address where to store old value */\n"
369 " size_t *oldlenp; /* available room for old value,\n"
370 " overwritten by actual size of old value */\n"
371 " void *newval; /* 0 or address of new value */\n"
372 " size_t newlen; /* size of new value */\n"
373 "};\n"
374 msgstr ""
375
376 #. type: Plain text
377 #: debian-trixie fedora-44 fedora-rawhide
378 msgid "Linux 1.3.57. Removed in Linux 5.5, glibc 2.32."
379 msgstr ""
380
381 #. type: Plain text
382 #: debian-trixie fedora-44 fedora-rawhide
383 msgid ""
384 "It originated in 4.4BSD. Only Linux has the I</proc/sys> mirror, and the "
385 "object naming schemes differ between Linux and 4.4BSD, but the declaration "
386 "of the B<sysctl>() function is the same in both."
387 msgstr ""
388
389 #. type: Plain text
390 #: debian-trixie fedora-44 fedora-rawhide
391 #, no-wrap
392 msgid ""
393 "#define _GNU_SOURCE\n"
394 "#include E<lt>stdio.hE<gt>\n"
395 "#include E<lt>stdlib.hE<gt>\n"
396 "#include E<lt>string.hE<gt>\n"
397 "#include E<lt>sys/syscall.hE<gt>\n"
398 "#include E<lt>unistd.hE<gt>\n"
399 "\\&\n"
400 "#include E<lt>linux/sysctl.hE<gt>\n"
401 "\\&\n"
402 "#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n"
403 "\\&\n"
404 "int _sysctl(struct __sysctl_args *args);\n"
405 "\\&\n"
406 "#define OSNAMESZ 100\n"
407 "\\&\n"
408 "int\n"
409 "main(void)\n"
410 "{\n"
411 " int name[] = { CTL_KERN, KERN_OSTYPE };\n"
412 " char osname[OSNAMESZ];\n"
413 " size_t osnamelth;\n"
414 " struct __sysctl_args args;\n"
415 "\\&\n"
416 " memset(&args, 0, sizeof(args));\n"
417 " args.name = name;\n"
418 " args.nlen = ARRAY_SIZE(name);\n"
419 " args.oldval = osname;\n"
420 " args.oldlenp = &osnamelth;\n"
421 "\\&\n"
422 " osnamelth = sizeof(osname);\n"
423 "\\&\n"
424 " if (syscall(SYS__sysctl, &args) == -1) {\n"
425 " perror(\"_sysctl\");\n"
426 " exit(EXIT_FAILURE);\n"
427 " }\n"
428 " printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n"
429 " exit(EXIT_SUCCESS);\n"
430 "}\n"
431 msgstr ""
432
433 #. type: TH
434 #: fedora-44 fedora-rawhide
435 #, no-wrap
436 msgid "2024-11-17"
437 msgstr ""
438
439 #. type: TH
440 #: fedora-44 fedora-rawhide
441 #, no-wrap
442 msgid "Linux man-pages 6.13"
443 msgstr ""
444
445 #. type: TH
446 #: mageia-cauldron
447 #, no-wrap
448 msgid "Linux man-pages 6.17"
449 msgstr ""
450
451 #. type: TH
452 #: opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "Linux man-pages (unreleased)"
455 msgstr ""