| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:45+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "sysctl" |
| 33 |
msgstr "sysctl" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2026-02-10" |
| 40 |
msgstr "10 февраля 2026 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "sysctl - read/write system parameters" |
| 60 |
msgstr "sysctl - читает/записывает параметры системы" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "SYNOPSIS" |
| 67 |
msgstr "СИНТАКСИС" |
| 68 |
|
| 69 |
#. type: Plain text |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "" |
| 74 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 75 |
"B<#include E<lt>linux/sysctl.hE<gt>>\n" |
| 76 |
msgstr "" |
| 77 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 78 |
"B<#include E<lt>linux/sysctl.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 |
#, fuzzy, no-wrap |
| 84 |
#| msgid "B<int _sysctl(struct __sysctl_args *>I<args>B<);>\n" |
| 85 |
msgid "B<[[deprecated]] int _sysctl(struct __sysctl_args *>I<args>B<);>\n" |
| 86 |
msgstr "B<int _sysctl(struct __sysctl_args *>I<args>B<);>\n" |
| 87 |
|
| 88 |
#. type: SH |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "DESCRIPTION" |
| 93 |
msgstr "ОПИСАНИЕ" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "B<This system call no longer exists on current kernels!> See NOTES." |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
msgid "" |
| 105 |
"The B<_sysctl>() call reads and/or writes kernel parameters. For example, " |
| 106 |
"the hostname, or the maximum number of open files. The argument has the form" |
| 107 |
msgstr "" |
| 108 |
"Системный вызов B<_sysctl> считывает и/или изменяет параметры ядра. К ним " |
| 109 |
"относятся, например, имя машины или максимальное количество открытых файлов. " |
| 110 |
"Параметр имеет следующую структуру:" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 114 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, fuzzy, no-wrap |
| 116 |
#| msgid "" |
| 117 |
#| "struct __sysctl_args {\n" |
| 118 |
#| " int *name; /* integer vector describing variable */\n" |
| 119 |
#| " int nlen; /* length of this vector */\n" |
| 120 |
#| " void *oldval; /* 0 or address where to store old value */\n" |
| 121 |
#| " size_t *oldlenp; /* available room for old value,\n" |
| 122 |
#| " overwritten by actual size of old value */\n" |
| 123 |
#| " void *newval; /* 0 or address of new value */\n" |
| 124 |
#| " size_t newlen; /* size of new value */\n" |
| 125 |
#| "};\n" |
| 126 |
msgid "" |
| 127 |
"struct __sysctl_args {\n" |
| 128 |
" int *name; /* integer vector describing variable */\n" |
| 129 |
" int nlen; /* number of elements of this vector */\n" |
| 130 |
" void *oldval; /* 0 or address where to store old value */\n" |
| 131 |
" size_t *oldlenp; /* available room for old value,\n" |
| 132 |
" overwritten by actual size of old value */\n" |
| 133 |
" void *newval; /* 0 or address of new value */\n" |
| 134 |
" size_t newlen; /* size of new value */\n" |
| 135 |
"};\n" |
| 136 |
msgstr "" |
| 137 |
"struct __sysctl_args {\n" |
| 138 |
" int *name; /* целочисленный вектор, описывающий\n" |
| 139 |
" переменную */\n" |
| 140 |
" int nlen; /* длина этого вектора */\n" |
| 141 |
" void *oldval; /* 0 или адрес старого значения */\n" |
| 142 |
" size_t *oldlenp; /* размер старого значения, заменяется\n" |
| 143 |
" реальным размером старого значения */\n" |
| 144 |
" void *newval; /* 0 или адрес нового значения */\n" |
| 145 |
" size_t newlen; /* размер нового значения */\n" |
| 146 |
"};\n" |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
msgid "" |
| 152 |
"This call does a search in a tree structure, possibly resembling a directory " |
| 153 |
"tree under I</proc/sys>, and if the requested item is found calls some " |
| 154 |
"appropriate routine to read or modify the value." |
| 155 |
msgstr "" |
| 156 |
"Этот вызов производит поиск в древовидной структуре, возможно, похожей на " |
| 157 |
"структуру каталогов I</proc/sys>, и, если запрашиваемый элемент найден, " |
| 158 |
"вызывает соответствующую процедуру, читающую или изменяющую значение." |
| 159 |
|
| 160 |
#. type: SH |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
#, no-wrap |
| 164 |
msgid "RETURN VALUE" |
| 165 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"Upon successful completion, B<_sysctl>() returns 0. Otherwise, a value of " |
| 172 |
"-1 is returned and I<errno> is set to indicate the error." |
| 173 |
msgstr "" |
| 174 |
"При успешном выполнении B<_sysctl>() возвращает 0. При ошибке возвращается " |
| 175 |
"-1, а переменной I<errno> присваивается номер ошибки." |
| 176 |
|
| 177 |
#. type: SH |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
#, no-wrap |
| 181 |
msgid "ERRORS" |
| 182 |
msgstr "ОШИБКИ" |
| 183 |
|
| 184 |
#. type: TP |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "B<EACCES>" |
| 189 |
msgstr "B<EACCES>" |
| 190 |
|
| 191 |
#. type: TQ |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "B<EPERM>" |
| 196 |
msgstr "B<EPERM>" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"No search permission for one of the encountered \"directories\", or no read " |
| 203 |
"permission where I<oldval> was nonzero, or no write permission where " |
| 204 |
"I<newval> was nonzero." |
| 205 |
msgstr "" |
| 206 |
"Нет прав на поиск в одном из встретившихся «каталогов» или нет прав на " |
| 207 |
"чтение, если I<oldval> не равно нулю; или нет прав на запись, если I<newval> " |
| 208 |
"не равно нулю." |
| 209 |
|
| 210 |
#. type: TP |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
#, no-wrap |
| 214 |
msgid "B<EFAULT>" |
| 215 |
msgstr "B<EFAULT>" |
| 216 |
|
| 217 |
#. type: Plain text |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
msgid "" |
| 221 |
"The invocation asked for the previous value by setting I<oldval> non-NULL, " |
| 222 |
"but allowed zero room in I<oldlenp>." |
| 223 |
msgstr "" |
| 224 |
"Был сделан запрос предыдущего значения путём установки не-NULL значения " |
| 225 |
"I<oldval>, но размер места под него в I<oldlenp> равен нулю." |
| 226 |
|
| 227 |
#. type: TP |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "B<ENOTDIR>" |
| 232 |
msgstr "B<ENOTDIR>" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "I<name> was not found." |
| 238 |
msgstr "I<name> не найден." |
| 239 |
|
| 240 |
#. type: SH |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "STANDARDS" |
| 245 |
msgstr "СТАНДАРТЫ" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "Linux." |
| 251 |
msgstr "Linux." |
| 252 |
|
| 253 |
#. type: SH |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "HISTORY" |
| 258 |
msgstr "ИСТОРИЯ" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 262 |
#: opensuse-tumbleweed |
| 263 |
msgid "4.4BSD, Linux 1.3.57. Removed in Linux 5.5, glibc 2.32." |
| 264 |
msgstr "" |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 268 |
#: opensuse-tumbleweed |
| 269 |
#, fuzzy |
| 270 |
#| msgid "" |
| 271 |
#| "This call is Linux-specific, and should not be used in programs intended " |
| 272 |
#| "to be portable. A B<sysctl>() call has been present in Linux since " |
| 273 |
#| "version 1.3.57. It originated in 4.4BSD. Only Linux has the I</proc/" |
| 274 |
#| "sys> mirror, and the object naming schemes differ between Linux and " |
| 275 |
#| "4.4BSD, but the declaration of the B<sysctl>() function is the same in " |
| 276 |
#| "both." |
| 277 |
msgid "" |
| 278 |
"Only Linux has the I</proc/sys> mirror, and the object naming schemes differ " |
| 279 |
"between Linux and 4.4BSD, but the declaration of the B<sysctl>() function " |
| 280 |
"is the same in both." |
| 281 |
msgstr "" |
| 282 |
"Этот вызов есть только в Linux и не должен использоваться в переносимых " |
| 283 |
"программах. Вызов B<sysctl>() впервые появился в Linux 1.3.57. Впервые он " |
| 284 |
"появился в 4.4BSD. Только в Linux существует зеркало I</proc/sys>, и схемы " |
| 285 |
"именования объектов в Linux и 4.4BSD различаются, но объявление функции " |
| 286 |
"B<sysctl>() одинаково в обеих системах." |
| 287 |
|
| 288 |
#. type: SH |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "NOTES" |
| 293 |
msgstr "ПРИМЕЧАНИЯ" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "" |
| 299 |
"Use of this system call was long discouraged: since Linux 2.6.24, uses of " |
| 300 |
"this system call result in warnings in the kernel log, and in Linux 5.5, the " |
| 301 |
"system call was finally removed. Use the I</proc/sys> interface instead." |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
msgid "" |
| 308 |
"Note that on older kernels where this system call still exists, it is " |
| 309 |
"available only if the kernel was configured with the " |
| 310 |
"B<CONFIG_SYSCTL_SYSCALL> option. Furthermore, glibc does not provide a " |
| 311 |
"wrapper for this system call, necessitating the use of B<syscall>(2)." |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: SH |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "BUGS" |
| 319 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 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 |
"The object names vary between kernel versions, making this system call " |
| 326 |
"worthless for applications." |
| 327 |
msgstr "" |
| 328 |
"Названия объектов различаются в разных версиях ядра, что делает данный вызов " |
| 329 |
"в приложениях бесполезным." |
| 330 |
|
| 331 |
#. type: Plain text |
| 332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 334 |
msgid "Not all available objects are properly documented." |
| 335 |
msgstr "Не все существующие объекты описаны соответствующим образом." |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
msgid "" |
| 341 |
"It is not yet possible to change operating system by writing to I</proc/sys/" |
| 342 |
"kernel/ostype>." |
| 343 |
msgstr "" |
| 344 |
"В настоящее время невозможно изменить тип операционной системы путём записи " |
| 345 |
"в файл I</proc/sys/kernel/ostype>." |
| 346 |
|
| 347 |
#. type: SH |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "EXAMPLES" |
| 352 |
msgstr "ПРИМЕРЫ" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 356 |
#: opensuse-tumbleweed |
| 357 |
#, no-wrap |
| 358 |
msgid "" |
| 359 |
"#define _GNU_SOURCE\n" |
| 360 |
"#include E<lt>stdcountof.hE<gt>\n" |
| 361 |
"#include E<lt>stdio.hE<gt>\n" |
| 362 |
"#include E<lt>stdlib.hE<gt>\n" |
| 363 |
"#include E<lt>string.hE<gt>\n" |
| 364 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 365 |
"#include E<lt>unistd.hE<gt>\n" |
| 366 |
"\\&\n" |
| 367 |
"#include E<lt>linux/sysctl.hE<gt>\n" |
| 368 |
"\\&\n" |
| 369 |
"int _sysctl(struct __sysctl_args *args);\n" |
| 370 |
"\\&\n" |
| 371 |
"#define OSNAMESZ 100\n" |
| 372 |
"\\&\n" |
| 373 |
"int\n" |
| 374 |
"main(void)\n" |
| 375 |
"{\n" |
| 376 |
" int name[] = { CTL_KERN, KERN_OSTYPE };\n" |
| 377 |
" char osname[OSNAMESZ];\n" |
| 378 |
" size_t osnamelth;\n" |
| 379 |
" struct __sysctl_args args;\n" |
| 380 |
"\\&\n" |
| 381 |
" memset(&args, 0, sizeof(args));\n" |
| 382 |
" args.name = name;\n" |
| 383 |
" args.nlen = countof(name);\n" |
| 384 |
" args.oldval = osname;\n" |
| 385 |
" args.oldlenp = &osnamelth;\n" |
| 386 |
"\\&\n" |
| 387 |
" osnamelth = sizeof(osname);\n" |
| 388 |
"\\&\n" |
| 389 |
" if (syscall(SYS__sysctl, &args) == -1) {\n" |
| 390 |
" perror(\"_sysctl\");\n" |
| 391 |
" exit(EXIT_FAILURE);\n" |
| 392 |
" }\n" |
| 393 |
" printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n" |
| 394 |
" exit(EXIT_SUCCESS);\n" |
| 395 |
"}\n" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. SRC END |
| 399 |
#. type: SH |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
#, no-wrap |
| 403 |
msgid "SEE ALSO" |
| 404 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 405 |
|
| 406 |
#. type: Plain text |
| 407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 409 |
msgid "B<proc>(5)" |
| 410 |
msgstr "B<proc>(5)" |
| 411 |
|
| 412 |
#. type: TH |
| 413 |
#: debian-trixie |
| 414 |
#, no-wrap |
| 415 |
msgid "2024-06-15" |
| 416 |
msgstr "15 июня 2024 г." |
| 417 |
|
| 418 |
#. type: TH |
| 419 |
#: debian-trixie |
| 420 |
#, no-wrap |
| 421 |
msgid "Linux man-pages 6.9.1" |
| 422 |
msgstr "Страницы руководства Linux 6.9.1" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: debian-trixie |
| 426 |
#, no-wrap |
| 427 |
msgid "" |
| 428 |
"struct __sysctl_args {\n" |
| 429 |
" int *name; /* integer vector describing variable */\n" |
| 430 |
" int nlen; /* length of this vector */\n" |
| 431 |
" void *oldval; /* 0 or address where to store old value */\n" |
| 432 |
" size_t *oldlenp; /* available room for old value,\n" |
| 433 |
" overwritten by actual size of old value */\n" |
| 434 |
" void *newval; /* 0 or address of new value */\n" |
| 435 |
" size_t newlen; /* size of new value */\n" |
| 436 |
"};\n" |
| 437 |
msgstr "" |
| 438 |
"struct __sysctl_args {\n" |
| 439 |
" int *name; /* целочисленный вектор, описывающий\n" |
| 440 |
" переменную */\n" |
| 441 |
" int nlen; /* длина этого вектора */\n" |
| 442 |
" void *oldval; /* 0 или адрес старого значения */\n" |
| 443 |
" size_t *oldlenp; /* размер старого значения, заменяется\n" |
| 444 |
" реальным размером старого значения */\n" |
| 445 |
" void *newval; /* 0 или адрес нового значения */\n" |
| 446 |
" size_t newlen; /* размер нового значения */\n" |
| 447 |
"};\n" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: debian-trixie fedora-44 fedora-rawhide |
| 451 |
msgid "Linux 1.3.57. Removed in Linux 5.5, glibc 2.32." |
| 452 |
msgstr "" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: debian-trixie fedora-44 fedora-rawhide |
| 456 |
#, fuzzy |
| 457 |
#| msgid "" |
| 458 |
#| "This call is Linux-specific, and should not be used in programs intended " |
| 459 |
#| "to be portable. A B<sysctl>() call has been present in Linux since " |
| 460 |
#| "version 1.3.57. It originated in 4.4BSD. Only Linux has the I</proc/" |
| 461 |
#| "sys> mirror, and the object naming schemes differ between Linux and " |
| 462 |
#| "4.4BSD, but the declaration of the B<sysctl>() function is the same in " |
| 463 |
#| "both." |
| 464 |
msgid "" |
| 465 |
"It originated in 4.4BSD. Only Linux has the I</proc/sys> mirror, and the " |
| 466 |
"object naming schemes differ between Linux and 4.4BSD, but the declaration " |
| 467 |
"of the B<sysctl>() function is the same in both." |
| 468 |
msgstr "" |
| 469 |
"Этот вызов есть только в Linux и не должен использоваться в переносимых " |
| 470 |
"программах. Вызов B<sysctl>() впервые появился в Linux 1.3.57. Впервые он " |
| 471 |
"появился в 4.4BSD. Только в Linux существует зеркало I</proc/sys>, и схемы " |
| 472 |
"именования объектов в Linux и 4.4BSD различаются, но объявление функции " |
| 473 |
"B<sysctl>() одинаково в обеих системах." |
| 474 |
|
| 475 |
#. type: Plain text |
| 476 |
#: debian-trixie fedora-44 fedora-rawhide |
| 477 |
#, no-wrap |
| 478 |
msgid "" |
| 479 |
"#define _GNU_SOURCE\n" |
| 480 |
"#include E<lt>stdio.hE<gt>\n" |
| 481 |
"#include E<lt>stdlib.hE<gt>\n" |
| 482 |
"#include E<lt>string.hE<gt>\n" |
| 483 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 484 |
"#include E<lt>unistd.hE<gt>\n" |
| 485 |
"\\&\n" |
| 486 |
"#include E<lt>linux/sysctl.hE<gt>\n" |
| 487 |
"\\&\n" |
| 488 |
"#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))\n" |
| 489 |
"\\&\n" |
| 490 |
"int _sysctl(struct __sysctl_args *args);\n" |
| 491 |
"\\&\n" |
| 492 |
"#define OSNAMESZ 100\n" |
| 493 |
"\\&\n" |
| 494 |
"int\n" |
| 495 |
"main(void)\n" |
| 496 |
"{\n" |
| 497 |
" int name[] = { CTL_KERN, KERN_OSTYPE };\n" |
| 498 |
" char osname[OSNAMESZ];\n" |
| 499 |
" size_t osnamelth;\n" |
| 500 |
" struct __sysctl_args args;\n" |
| 501 |
"\\&\n" |
| 502 |
" memset(&args, 0, sizeof(args));\n" |
| 503 |
" args.name = name;\n" |
| 504 |
" args.nlen = ARRAY_SIZE(name);\n" |
| 505 |
" args.oldval = osname;\n" |
| 506 |
" args.oldlenp = &osnamelth;\n" |
| 507 |
"\\&\n" |
| 508 |
" osnamelth = sizeof(osname);\n" |
| 509 |
"\\&\n" |
| 510 |
" if (syscall(SYS__sysctl, &args) == -1) {\n" |
| 511 |
" perror(\"_sysctl\");\n" |
| 512 |
" exit(EXIT_FAILURE);\n" |
| 513 |
" }\n" |
| 514 |
" printf(\"This machine is running %*s\\[rs]n\", (int) osnamelth, osname);\n" |
| 515 |
" exit(EXIT_SUCCESS);\n" |
| 516 |
"}\n" |
| 517 |
msgstr "" |
| 518 |
|
| 519 |
#. type: TH |
| 520 |
#: fedora-44 fedora-rawhide |
| 521 |
#, no-wrap |
| 522 |
msgid "2024-11-17" |
| 523 |
msgstr "17 ноября 2024 г." |
| 524 |
|
| 525 |
#. type: TH |
| 526 |
#: fedora-44 fedora-rawhide |
| 527 |
#, no-wrap |
| 528 |
msgid "Linux man-pages 6.13" |
| 529 |
msgstr "Страницы руководства Linux 6.13" |
| 530 |
|
| 531 |
#. type: TH |
| 532 |
#: mageia-cauldron |
| 533 |
#, no-wrap |
| 534 |
msgid "Linux man-pages 6.17" |
| 535 |
msgstr "Страницы руководства Linux 6.17" |
| 536 |
|
| 537 |
#. type: TH |
| 538 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 539 |
#, no-wrap |
| 540 |
msgid "Linux man-pages (unreleased)" |
| 541 |
msgstr "Страницы руководства Linux (не выпущены)" |