| 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 |
# Azamat Hackimov <[email protected]>, 2014. |
| 5 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 6 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 9 |
# Иван Павлов <[email protected]>, 2017. |
| 10 |
msgid "" |
| 11 |
msgstr "" |
| 12 |
"Project-Id-Version: manpages-l10n\n" |
| 13 |
"POT-Creation-Date: 2026-06-05 06:21+0200\n" |
| 14 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 15 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 16 |
"Language-Team: Russian <[email protected]>\n" |
| 17 |
"Language: ru\n" |
| 18 |
"MIME-Version: 1.0\n" |
| 19 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 20 |
"Content-Transfer-Encoding: 8bit\n" |
| 21 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 22 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 23 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 24 |
"X-Generator: Lokalize 2.0\n" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 28 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "CMSG" |
| 31 |
msgstr "CMSG" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 35 |
#: opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "2026-02-08" |
| 38 |
msgstr "8 февраля 2026 г." |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable |
| 42 |
#, fuzzy, no-wrap |
| 43 |
#| msgid "Linux man-pages 6.17" |
| 44 |
msgid "Linux man-pages 6.18" |
| 45 |
msgstr "Справочные страницы Linux 6.17" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
#, no-wrap |
| 51 |
msgid "NAME" |
| 52 |
msgstr "НАИМЕНОВАНИЕ" |
| 53 |
|
| 54 |
#. type: Plain text |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
msgid "" |
| 58 |
"CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - access ancillary data" |
| 59 |
msgstr "" |
| 60 |
"CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - доступ к " |
| 61 |
"вспомогательным данным" |
| 62 |
|
| 63 |
#. type: SH |
| 64 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 65 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
#, no-wrap |
| 67 |
msgid "LIBRARY" |
| 68 |
msgstr "БИБЛИОТЕКА" |
| 69 |
|
| 70 |
#. type: Plain text |
| 71 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 72 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 73 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 74 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 75 |
|
| 76 |
#. type: SH |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "SYNOPSIS" |
| 81 |
msgstr "СИНТАКСИС" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "B<#include E<lt>sys/socket.hE<gt>>\n" |
| 88 |
msgstr "B<#include E<lt>sys/socket.hE<gt>>\n" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 92 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 93 |
#, fuzzy, no-wrap |
| 94 |
#| msgid "" |
| 95 |
#| "B<#include E<lt>sys/socket.hE<gt>>\n" |
| 96 |
#| "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n" |
| 97 |
#| "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B< ,>\n" |
| 98 |
#| "B< struct cmsghdr *>cmsgB<);>\n" |
| 99 |
#| "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n" |
| 100 |
#| "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n" |
| 101 |
#| "B<size_t CMSG_LEN(size_t >I<length>B<);>\n" |
| 102 |
#| "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n" |
| 103 |
msgid "" |
| 104 |
"B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n" |
| 105 |
"B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n" |
| 106 |
"B< struct cmsghdr *>cmsgB<);>\n" |
| 107 |
"B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n" |
| 108 |
"B<size_t CMSG_SPACE(size_t >I<length>B<);>\n" |
| 109 |
"B<size_t CMSG_LEN(size_t >I<length>B<);>\n" |
| 110 |
"B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n" |
| 111 |
msgstr "" |
| 112 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 113 |
"B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n" |
| 114 |
"B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B< ,>\n" |
| 115 |
"B< struct cmsghdr *>cmsgB<);>\n" |
| 116 |
"B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n" |
| 117 |
"B<size_t CMSG_SPACE(size_t >I<length>B<);>\n" |
| 118 |
"B<size_t CMSG_LEN(size_t >I<length>B<);>\n" |
| 119 |
"B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n" |
| 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 "DESCRIPTION" |
| 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 |
"These macros are used to create and access control messages (also called " |
| 133 |
"ancillary data) that are not a part of the socket payload. This control " |
| 134 |
"information may include the interface the packet was received on, various " |
| 135 |
"rarely used header fields, an extended error description, a set of file " |
| 136 |
"descriptors, or UNIX credentials. For instance, control messages can be " |
| 137 |
"used to send additional header fields such as IP options. Ancillary data is " |
| 138 |
"sent by calling B<sendmsg>(2) and received by calling B<recvmsg>(2). See " |
| 139 |
"their manual pages for more information." |
| 140 |
msgstr "" |
| 141 |
"Эти макросы используются для создания сообщений контроля доступа (также " |
| 142 |
"называемых вспомогательными данными), которые не являются частью полезной " |
| 143 |
"нагрузки сокета. Эта управляющая информация может содержать интерфейс, с " |
| 144 |
"которого получен пакет, различные редко используемые поля заголовков и " |
| 145 |
"расширенное описание ошибок, наборы файловых дескрипторов или параметров " |
| 146 |
"доступа (credentials) UNIX. Например, управляющие сообщения могут быть " |
| 147 |
"использованы для отправки дополнительных полей заголовков, таких, как " |
| 148 |
"параметры IP. Вспомогательные данные посылаются с помощью вызова " |
| 149 |
"B<sendmsg>(2) и принимаются посредством вызова B<recvmsg>(2). Более полная " |
| 150 |
"информация приведена в их справочных страницах." |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"Ancillary data is a sequence of I<cmsghdr> structures with appended data. " |
| 157 |
"See the specific protocol man pages for the available control message " |
| 158 |
"types. The maximum ancillary buffer size allowed per socket can be set " |
| 159 |
"using I</proc/sys/net/core/optmem_max>; see B<socket>(7)." |
| 160 |
msgstr "" |
| 161 |
"Вспомогательные данные представляют собой последовательность структур " |
| 162 |
"I<cmsghdr> с присоединёнными к ней данными. Возможные типы управляющих " |
| 163 |
"сообщений смотрите в соответствующих страницах протоколов. Максимально " |
| 164 |
"возможный размер буфера вспомогательных данных одного сокета можно " |
| 165 |
"установить через I</proc/sys/net/core/optmem_max>; смотрите B<socket>(7)." |
| 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 "The I<cmsghdr> structure is defined as follows:" |
| 171 |
msgstr "Структура I<cmsghdr> определена следующим образом:" |
| 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 |
#, no-wrap |
| 177 |
msgid "" |
| 178 |
"struct cmsghdr {\n" |
| 179 |
" size_t cmsg_len; /* Data byte count, including header\n" |
| 180 |
" (type is socklen_t in POSIX) */\n" |
| 181 |
" int cmsg_level; /* Originating protocol */\n" |
| 182 |
" int cmsg_type; /* Protocol-specific type */\n" |
| 183 |
"/* followed by\n" |
| 184 |
" unsigned char cmsg_data[]; */\n" |
| 185 |
"};\n" |
| 186 |
msgstr "" |
| 187 |
"struct cmsghdr {\n" |
| 188 |
" size_t cmsg_len; /* счетчик байтов данных с заголовком\n" |
| 189 |
" (тип — socklen_t в POSIX) */\n" |
| 190 |
" int cmsg_level; /* начальный протокол */\n" |
| 191 |
" int cmsg_type; /* тип, зависящий от протокола */\n" |
| 192 |
"/* после\n" |
| 193 |
" unsigned char cmsg_data[]; */\n" |
| 194 |
"};\n" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"The sequence of I<cmsghdr> structures should never be accessed directly. " |
| 201 |
"Instead, use only the following macros:" |
| 202 |
msgstr "" |
| 203 |
"К последовательности структур I<cmsghdr> нельзя обращаться напрямую. Для " |
| 204 |
"этого используйте следующие макросы:" |
| 205 |
|
| 206 |
#. type: TP |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "B<CMSG_FIRSTHDR>()" |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, fuzzy |
| 217 |
#| msgid "" |
| 218 |
#| "B<CMSG_FIRSTHDR>() returns a pointer to the first I<cmsghdr> in the " |
| 219 |
#| "ancillary data buffer associated with the passed I<msghdr>. It returns " |
| 220 |
#| "NULL if there isn't enough space for a I<cmsghdr> in the buffer." |
| 221 |
msgid "" |
| 222 |
"returns a pointer to the first I<cmsghdr> in the ancillary data buffer " |
| 223 |
"associated with the passed I<msghdr>. It returns NULL if there isn't enough " |
| 224 |
"space for a I<cmsghdr> in the buffer." |
| 225 |
msgstr "" |
| 226 |
"Макрос B<CMSG_FIRSTHDR>() возвращает указатель на первый I<cmsghdr> в буфере " |
| 227 |
"вспомогательных данных, связанных с переданным I<cmsghdr>. Он возвращает " |
| 228 |
"NULL, если в буфере недостаточно места для I<cmsghdr>." |
| 229 |
|
| 230 |
#. type: TQ |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "B<CMSG_NXTHDR>()" |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, fuzzy |
| 241 |
#| msgid "" |
| 242 |
#| "B<CMSG_NXTHDR>() returns the next valid I<cmsghdr> after the passed " |
| 243 |
#| "I<cmsghdr>. It returns NULL when there isn't enough space left in the " |
| 244 |
#| "buffer." |
| 245 |
msgid "" |
| 246 |
"returns the next valid I<cmsghdr> after the passed I<cmsghdr>. It returns " |
| 247 |
"NULL when there isn't enough space left in the buffer." |
| 248 |
msgstr "" |
| 249 |
"Макрос B<CMSG_NXTHDR>() возвращает следующее значение I<cmsghdr> после " |
| 250 |
"переданного I<cmsghdr>. Он возвращает NULL, если в буфере недостаточно места." |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "" |
| 256 |
"When initializing a buffer that will contain a series of I<cmsghdr> " |
| 257 |
"structures (e.g., to be sent with B<sendmsg>(2)), that buffer should first " |
| 258 |
"be zero-initialized to ensure the correct operation of B<CMSG_NXTHDR>()." |
| 259 |
msgstr "" |
| 260 |
"Для правильной работы B<CMSG_NXTHDR>() при инициализации буфера, который " |
| 261 |
"будет содержать набор структур I<cmsghdr> (например, для отправки с помощью " |
| 262 |
"B<sendmsg>(2)), его необходимо заполнять нулями." |
| 263 |
|
| 264 |
#. type: TP |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "B<CMSG_ALIGN>()," |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, fuzzy |
| 275 |
#| msgid "" |
| 276 |
#| "B<CMSG_ALIGN>(), given a length, returns it including the required " |
| 277 |
#| "alignment. This is a constant expression." |
| 278 |
msgid "" |
| 279 |
"given a length, returns it including the required alignment. This is a " |
| 280 |
"constant expression." |
| 281 |
msgstr "" |
| 282 |
"Макрос B<CMSG_ALIGN>() возвращает длину, учитывая необходимое выравнивание. " |
| 283 |
"Это постоянное выражение." |
| 284 |
|
| 285 |
#. type: TP |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, fuzzy, no-wrap |
| 289 |
#| msgid "B<CAP_SYS_PTRACE>" |
| 290 |
msgid "B<CMSG_SPACE>()" |
| 291 |
msgstr "B<CAP_SYS_PTRACE>" |
| 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 |
#, fuzzy |
| 297 |
#| msgid "" |
| 298 |
#| "B<CMSG_SPACE>() returns the number of bytes an ancillary element with " |
| 299 |
#| "payload of the passed data length occupies. This is a constant " |
| 300 |
#| "expression." |
| 301 |
msgid "" |
| 302 |
"returns the number of bytes an ancillary element with payload of the passed " |
| 303 |
"data length occupies. This is a constant expression." |
| 304 |
msgstr "" |
| 305 |
"Макрос B<CMSG_SPACE>() возвращает количество байт, которое занимает " |
| 306 |
"вспомогательный элемент с полезной нагрузкой переданных данных. Это " |
| 307 |
"постоянное выражение." |
| 308 |
|
| 309 |
#. type: TQ |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "B<CMSG_DATA>()" |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"returns a pointer to the data portion of a I<cmsghdr>. The pointer returned " |
| 321 |
"cannot be assumed to be suitably aligned for accessing arbitrary payload " |
| 322 |
"data types. Applications should not cast it to a pointer type matching the " |
| 323 |
"payload, but should instead use B<memcpy>(3) to copy data to or from a " |
| 324 |
"suitably declared object." |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#. type: TQ |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, fuzzy, no-wrap |
| 331 |
#| msgid "B<MSG_OOB>" |
| 332 |
msgid "B<CMSG_LEN>()" |
| 333 |
msgstr "B<MSG_OOB>" |
| 334 |
|
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, fuzzy |
| 339 |
#| msgid "" |
| 340 |
#| "B<CMSG_LEN>() returns the value to store in the I<cmsg_len> member of " |
| 341 |
#| "the I<cmsghdr> structure, taking into account any necessary alignment. " |
| 342 |
#| "It takes the data length as an argument. This is a constant expression." |
| 343 |
msgid "" |
| 344 |
"returns the value to store in the I<cmsg_len> member of the I<cmsghdr> " |
| 345 |
"structure, taking into account any necessary alignment. It takes the data " |
| 346 |
"length as an argument. This is a constant expression." |
| 347 |
msgstr "" |
| 348 |
"Макрос B<CMSG_LEN> возвращает значение, хранящееся в поле I<cmsg_len> " |
| 349 |
"структуры I<cmsghdr> с учётом необходимого выравнивания. Он принимает " |
| 350 |
"значение объёма данных в качестве аргумента. Это постоянное выражение." |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"To create ancillary data, first initialize the I<msg_controllen> member of " |
| 357 |
"the I<msghdr> with the length of the control message buffer. Use " |
| 358 |
"B<CMSG_FIRSTHDR>() on the I<msghdr> to get the first control message and " |
| 359 |
"B<CMSG_NXTHDR>() to get all subsequent ones. In each control message, " |
| 360 |
"initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header " |
| 361 |
"fields, and the data portion using B<CMSG_DATA>(). Finally, the " |
| 362 |
"I<msg_controllen> field of the I<msghdr> should be set to the sum of the " |
| 363 |
"B<CMSG_SPACE>() of the length of all control messages in the buffer. For " |
| 364 |
"more information on the I<msghdr>, see B<recvmsg>(2)." |
| 365 |
msgstr "" |
| 366 |
"Чтобы создать вспомогательные данные, сначала инициализируйте элемент " |
| 367 |
"I<msg_controllen> структуры I<msghdr>, указав длину буфера управляющего " |
| 368 |
"сообщения. Запустите B<CMSG_FIRSTHDR>() со структурой I<msghdr> для " |
| 369 |
"получения первого управляющего сообщения и B<CMSG_NEXTHDR>() для получения " |
| 370 |
"последующих. Для каждого управляющего сообщения инициализируйте I<cmsg_len> " |
| 371 |
"(с помощью B<CMSG_LEN>()) и другие поля заголовка I<cmsghdr>, а также часть " |
| 372 |
"для данных (с помощью B<CMSG_DATA>()). В результате значение поля " |
| 373 |
"I<msg_controllen> структуры I<msghdr> будет равно сумме B<CMSG_SPACE>() для " |
| 374 |
"длин всех управляющих сообщений в буфере. Дополнительная информация о " |
| 375 |
"I<msghdr> находится в B<recvmsg>(2)." |
| 376 |
|
| 377 |
#. type: SH |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "VERSIONS" |
| 382 |
msgstr "ВЕРСИИ" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
#, fuzzy |
| 388 |
#| msgid "" |
| 389 |
#| "For portability, ancillary data should be accessed using only the macros " |
| 390 |
#| "described here. B<CMSG_ALIGN>() is a Linux extension and should not be " |
| 391 |
#| "used in portable programs." |
| 392 |
msgid "" |
| 393 |
"For portability, ancillary data should be accessed using only the macros " |
| 394 |
"described here." |
| 395 |
msgstr "" |
| 396 |
"В целях переносимости вспомогательные данные могут быть доступны только с " |
| 397 |
"помощью макросов, описанных здесь. B<CMSG_ALIGN>() — это расширение Linux, " |
| 398 |
"поэтому оно не должно быть использовано в переносимых программах." |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 402 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 403 |
msgid "" |
| 404 |
"In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>() are constant " |
| 405 |
"expressions (assuming their argument is constant), meaning that these values " |
| 406 |
"can be used to declare the size of global variables. This may not be " |
| 407 |
"portable, however." |
| 408 |
msgstr "" |
| 409 |
"В Linux B<CMSG_LEN>(), B<CMSG_DATA>() и B<CMSG_ALIGN>() — это постоянные " |
| 410 |
"выражения (вне зависимости от переданных аргументов), то есть эти значения " |
| 411 |
"можно использовать для объявления размера глобальных переменных. Но это " |
| 412 |
"также сделает программу непереносимой на другие платформы." |
| 413 |
|
| 414 |
#. type: SH |
| 415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 416 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
#, no-wrap |
| 418 |
msgid "STANDARDS" |
| 419 |
msgstr "СТАНДАРТЫ" |
| 420 |
|
| 421 |
#. type: Plain text |
| 422 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 423 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 424 |
msgid "POSIX.1-2008." |
| 425 |
msgstr "POSIX.1-2008." |
| 426 |
|
| 427 |
#. type: TQ |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
#, fuzzy, no-wrap |
| 431 |
#| msgid "B<MSG_OOB>" |
| 432 |
msgid "B<CMSG_ALIGN>()" |
| 433 |
msgstr "B<MSG_OOB>" |
| 434 |
|
| 435 |
#. type: Plain text |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
msgid "Linux." |
| 439 |
msgstr "Linux." |
| 440 |
|
| 441 |
#. type: SH |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
#, no-wrap |
| 445 |
msgid "HISTORY" |
| 446 |
msgstr "ИСТОРИЯ" |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
#, fuzzy |
| 452 |
#| msgid "" |
| 453 |
#| "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, " |
| 454 |
#| "the IPv6 advanced API described in RFC\\ 2292 and SUSv2. " |
| 455 |
#| "B<CMSG_ALIGN>() is a Linux extension." |
| 456 |
msgid "" |
| 457 |
"This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the " |
| 458 |
"IPv6 advanced API described in RFC\\ 2292 and SUSv2." |
| 459 |
msgstr "" |
| 460 |
"Эта модель вспомогательных данных соответствует черновому варианту POSIX.1g, " |
| 461 |
"4.4BSD-Lite, расширению IPv6 API, описанному в RFC\\ 2292, и SUSv2. " |
| 462 |
"B<CMSG_ALIGN>() — это расширение Linux." |
| 463 |
|
| 464 |
#. https://www.austingroupbugs.net/view.php?id=978#c3242 |
| 465 |
#. type: Plain text |
| 466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 468 |
msgid "" |
| 469 |
"B<CMSG_SPACE>() and B<CMSG_LEN>() will be included in the next POSIX " |
| 470 |
"release (Issue 8)." |
| 471 |
msgstr "" |
| 472 |
|
| 473 |
#. type: SH |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "EXAMPLES" |
| 478 |
msgstr "ПРИМЕРЫ" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"This code looks for the B<IP_TTL> option in a received ancillary buffer:" |
| 485 |
msgstr "" |
| 486 |
"Данный код ищет параметр B<IP_TTL> в буфере с полученными вспомогательными " |
| 487 |
"данными:" |
| 488 |
|
| 489 |
#. type: Plain text |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
#, fuzzy, no-wrap |
| 493 |
#| msgid "" |
| 494 |
#| "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n" |
| 495 |
#| " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n" |
| 496 |
#| " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n" |
| 497 |
#| " && cmsg-E<gt>cmsg_type == IP_TTL) {\n" |
| 498 |
#| " ttlptr = (int *) CMSG_DATA(cmsg);\n" |
| 499 |
#| " received_ttl = *ttlptr;\n" |
| 500 |
#| " break;\n" |
| 501 |
#| " }\n" |
| 502 |
#| "}\n" |
| 503 |
msgid "" |
| 504 |
"struct msghdr msgh;\n" |
| 505 |
"struct cmsghdr *cmsg;\n" |
| 506 |
"int received_ttl;\n" |
| 507 |
"\\&\n" |
| 508 |
"/* Receive auxiliary data in msgh */\n" |
| 509 |
"\\&\n" |
| 510 |
"for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n" |
| 511 |
" cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n" |
| 512 |
" if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n" |
| 513 |
" && cmsg-E<gt>cmsg_type == IP_TTL) {\n" |
| 514 |
" memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n" |
| 515 |
" break;\n" |
| 516 |
" }\n" |
| 517 |
"}\n" |
| 518 |
"\\&\n" |
| 519 |
"if (cmsg == NULL) {\n" |
| 520 |
" /* Error: IP_TTL not enabled or small buffer or I/O error */\n" |
| 521 |
"}\n" |
| 522 |
msgstr "" |
| 523 |
"for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n" |
| 524 |
" cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n" |
| 525 |
" if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n" |
| 526 |
" && cmsg-E<gt>cmsg_type == IP_TTL) {\n" |
| 527 |
" ttlptr = (int *) CMSG_DATA(cmsg);\n" |
| 528 |
" received_ttl = *ttlptr;\n" |
| 529 |
" break;\n" |
| 530 |
" }\n" |
| 531 |
"}\n" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"The code below passes an array of file descriptors over a UNIX domain socket " |
| 538 |
"using B<SCM_RIGHTS>:" |
| 539 |
msgstr "" |
| 540 |
"Данный код передаёт массив файловых дескрипторов через доменный сокет UNIX, " |
| 541 |
"используя B<SCM_RIGHTS>:" |
| 542 |
|
| 543 |
#. type: Plain text |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
#, fuzzy, no-wrap |
| 547 |
#| msgid "" |
| 548 |
#| "struct msghdr msg = { 0 };\n" |
| 549 |
#| "struct cmsghdr *cmsg;\n" |
| 550 |
#| "int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n" |
| 551 |
#| "char iobuf[1];\n" |
| 552 |
#| "struct iovec io = {\n" |
| 553 |
#| " .iov_base = iobuf,\n" |
| 554 |
#| " .iov_len = sizeof(iobuf)\n" |
| 555 |
#| "};\n" |
| 556 |
#| "union { /* Ancillary data buffer, wrapped in a union\n" |
| 557 |
#| " in order to ensure it is suitably aligned */\n" |
| 558 |
#| " char buf[CMSG_SPACE(sizeof(myfds))];\n" |
| 559 |
#| " struct cmsghdr align;\n" |
| 560 |
#| "} u;\n" |
| 561 |
msgid "" |
| 562 |
"struct msghdr msg = { 0 };\n" |
| 563 |
"struct cmsghdr *cmsg;\n" |
| 564 |
"int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n" |
| 565 |
"char iobuf[1];\n" |
| 566 |
"struct iovec io = {\n" |
| 567 |
" .iov_base = iobuf,\n" |
| 568 |
" .iov_len = sizeof(iobuf)\n" |
| 569 |
"};\n" |
| 570 |
"union { /* Ancillary data buffer, wrapped in a union\n" |
| 571 |
" in order to ensure it is suitably aligned */\n" |
| 572 |
" char buf[CMSG_SPACE(sizeof(myfds))];\n" |
| 573 |
" struct cmsghdr align;\n" |
| 574 |
"} u;\n" |
| 575 |
"\\&\n" |
| 576 |
"msg.msg_iov = &io;\n" |
| 577 |
"msg.msg_iovlen = 1;\n" |
| 578 |
"msg.msg_control = u.buf;\n" |
| 579 |
"msg.msg_controllen = sizeof(u.buf);\n" |
| 580 |
"cmsg = CMSG_FIRSTHDR(&msg);\n" |
| 581 |
"cmsg-E<gt>cmsg_level = SOL_SOCKET;\n" |
| 582 |
"cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n" |
| 583 |
"cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n" |
| 584 |
"memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n" |
| 585 |
msgstr "" |
| 586 |
"struct msghdr msg = { 0 };\n" |
| 587 |
"struct cmsghdr *cmsg;\n" |
| 588 |
"int myfds[NUM_FD]; /* содержит дескрипторы файлов для передачи */\n" |
| 589 |
"char iobuf[1];\n" |
| 590 |
"struct iovec io = {\n" |
| 591 |
" .iov_base = iobuf,\n" |
| 592 |
" .iov_len = sizeof(iobuf)\n" |
| 593 |
"};\n" |
| 594 |
"union { /* буфер вспомогательных данных, обёрнутый в union,\n" |
| 595 |
" чтобы точно получить нужное выравнивание */\n" |
| 596 |
" char buf[CMSG_SPACE(sizeof(myfds))];\n" |
| 597 |
" struct cmsghdr align;\n" |
| 598 |
"} u;\n" |
| 599 |
|
| 600 |
#. type: Plain text |
| 601 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 602 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 603 |
#, fuzzy |
| 604 |
#| msgid "" |
| 605 |
#| "The code below passes an array of file descriptors over a UNIX domain " |
| 606 |
#| "socket using B<SCM_RIGHTS>:" |
| 607 |
msgid "" |
| 608 |
"For a complete code example that shows passing of file descriptors over a " |
| 609 |
"UNIX domain socket, see B<seccomp_unotify>(2)." |
| 610 |
msgstr "" |
| 611 |
"Данный код передаёт массив файловых дескрипторов через доменный сокет UNIX, " |
| 612 |
"используя B<SCM_RIGHTS>:" |
| 613 |
|
| 614 |
#. type: SH |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
#, no-wrap |
| 618 |
msgid "SEE ALSO" |
| 619 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 620 |
|
| 621 |
#. type: Plain text |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
msgid "B<recvmsg>(2), B<sendmsg>(2)" |
| 625 |
msgstr "B<recvmsg>(2), B<sendmsg>(2)" |
| 626 |
|
| 627 |
#. type: Plain text |
| 628 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 629 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 630 |
msgid "RFC\\ 2292" |
| 631 |
msgstr "RFC\\ 2292" |
| 632 |
|
| 633 |
#. type: TH |
| 634 |
#: debian-trixie |
| 635 |
#, no-wrap |
| 636 |
msgid "2024-05-02" |
| 637 |
msgstr "2 мая 2024 г." |
| 638 |
|
| 639 |
#. type: TH |
| 640 |
#: debian-trixie |
| 641 |
#, no-wrap |
| 642 |
msgid "Linux man-pages 6.9.1" |
| 643 |
msgstr "Страницы руководства Linux 6.9.1" |
| 644 |
|
| 645 |
#. type: Plain text |
| 646 |
#: debian-trixie |
| 647 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 648 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 649 |
|
| 650 |
#. type: TH |
| 651 |
#: fedora-44 fedora-rawhide |
| 652 |
#, no-wrap |
| 653 |
msgid "2024-07-23" |
| 654 |
msgstr "23 июля 2024 г." |
| 655 |
|
| 656 |
#. type: TH |
| 657 |
#: fedora-44 fedora-rawhide |
| 658 |
#, no-wrap |
| 659 |
msgid "Linux man-pages 6.13" |
| 660 |
msgstr "Страницы руководства Linux 6.13" |
| 661 |
|
| 662 |
#. type: TH |
| 663 |
#: mageia-cauldron |
| 664 |
#, no-wrap |
| 665 |
msgid "Linux man-pages 6.17" |
| 666 |
msgstr "Страницы руководства Linux 6.17" |
| 667 |
|
| 668 |
#. type: TH |
| 669 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 670 |
#, no-wrap |
| 671 |
msgid "Linux man-pages (unreleased)" |
| 672 |
msgstr "Страницы руководства Linux (не выпущены)" |