Debian Codegraph @

po/ru/man3/CPU_SET.3.po

raw
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 "CPU_SET"
31 msgstr "CPU_SET"
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 "CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, "
59 "CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, "
60 "CPU_ISSET_S, CPU_ZERO_S, CPU_COUNT_S, CPU_AND_S, CPU_OR_S, CPU_XOR_S, "
61 "CPU_EQUAL_S - macros for manipulating CPU sets"
62 msgstr ""
63 "CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, "
64 "CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, "
65 "CPU_ISSET_S, CPU_ZERO_S, CPU_COUNT_S, CPU_AND_S, CPU_OR_S, CPU_XOR_S, "
66 "CPU_EQUAL_S - макросы для работы с наборами ЦП"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "БИБЛИОТЕКА"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Standard C library (I<libc>,\\ I<-lc>)"
79 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
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 #, no-wrap
92 msgid ""
93 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
94 "B<#include E<lt>sched.hE<gt>>\n"
95 msgstr ""
96 "B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n"
97 "B<#include E<lt>sched.hE<gt>>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "B<void CPU_ZERO(cpu_set_t *>I<set>B<);>\n"
104 msgstr "B<void CPU_ZERO(cpu_set_t *>I<set>B<);>\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 "B<void CPU_SET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
112 "B<void CPU_CLR(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
113 "B<int CPU_ISSET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
114 msgstr ""
115 "B<void CPU_SET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
116 "B<void CPU_CLR(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
117 "B<int CPU_ISSET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid "B<int CPU_COUNT(cpu_set_t *>I<set>B<);>\n"
124 msgstr "B<int CPU_COUNT(cpu_set_t *>I<set>B<);>\n"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid ""
131 "B<void CPU_AND(cpu_set_t *>I<destset>B<,>\n"
132 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
133 "B<void CPU_OR(cpu_set_t *>I<destset>B<,>\n"
134 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
135 "B<void CPU_XOR(cpu_set_t *>I<destset>B<,>\n"
136 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
137 msgstr ""
138 "B<void CPU_AND(cpu_set_t *>I<destset>B<,>\n"
139 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
140 "B<void CPU_OR(cpu_set_t *>I<destset>B<,>\n"
141 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
142 "B<void CPU_XOR(cpu_set_t *>I<destset>B<,>\n"
143 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "B<int CPU_EQUAL(cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
150 msgstr "B<int CPU_EQUAL(cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
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 #, no-wrap
156 msgid ""
157 "B<cpu_set_t *CPU_ALLOC(int >I<num_cpus>B<);>\n"
158 "B<void CPU_FREE(cpu_set_t *>I<set>B<);>\n"
159 "B<size_t CPU_ALLOC_SIZE(int >I<num_cpus>B<);>\n"
160 msgstr ""
161 "B<cpu_set_t *CPU_ALLOC(int >I<num_cpus>B<);>\n"
162 "B<void CPU_FREE(cpu_set_t *>I<set>B<);>\n"
163 "B<size_t CPU_ALLOC_SIZE(int >I<num_cpus>B<);>\n"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "B<void CPU_ZERO_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
170 msgstr "B<void CPU_ZERO_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid ""
177 "B<void CPU_SET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
178 "B<void CPU_CLR_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
179 "B<int CPU_ISSET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
180 msgstr ""
181 "B<void CPU_SET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
182 "B<void CPU_CLR_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
183 "B<int CPU_ISSET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "B<int CPU_COUNT_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
190 msgstr "B<int CPU_COUNT_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid ""
197 "B<void CPU_AND_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
198 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
199 "B<void CPU_OR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
200 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
201 "B<void CPU_XOR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
202 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
203 msgstr ""
204 "B<void CPU_AND_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
205 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
206 "B<void CPU_OR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
207 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
208 "B<void CPU_XOR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
209 "B< cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "B<int CPU_EQUAL_S(size_t >I<setsize>B<, cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
216 msgstr "B<int CPU_EQUAL_S(size_t >I<setsize>B<, cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
217
218 #. type: SH
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "DESCRIPTION"
223 msgstr "ОПИСАНИЕ"
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "The I<cpu_set_t> data structure represents a set of CPUs. CPU sets are used "
230 "by B<sched_setaffinity>(2) and similar interfaces."
231 msgstr ""
232 "Набор ЦП описывается структурой данных I<cpu_set_t>. Набор ЦП используется в "
233 "B<sched_setaffinity>(2) и подобных интерфейсах."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "The I<cpu_set_t> data type is implemented as a bit mask. However, the data "
240 "structure should be treated as opaque: all manipulation of CPU sets should "
241 "be done via the macros described in this page."
242 msgstr ""
243 "Тип данных I<cpu_set_t> реализован в виде битовой маски. Однако структуру "
244 "данных следует считать «чёрным ящиком»: все действия с наборами ЦП следует "
245 "выполнять с помощью макросов, описанных на этой странице."
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 "The following macros are provided to operate on the CPU set I<set>:"
251 msgstr "Для работы с набором ЦП I<set> предоставляются следующие макросы:"
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<CPU_ZERO>()"
258 msgstr "B<CPU_ZERO>()"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 msgid "Clears I<set>, so that it contains no CPUs."
264 msgstr "Очищает I<set>, после этого он не содержит ЦП."
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "B<CPU_SET>()"
271 msgstr "B<CPU_SET>()"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "Add CPU I<cpu> to I<set>."
277 msgstr "Добавляет ЦП I<cpu> в I<set>."
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<CPU_CLR>()"
284 msgstr "B<CPU_CLR>()"
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid "Remove CPU I<cpu> from I<set>."
290 msgstr "Удаляет ЦП I<cpu> из I<set>."
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "B<CPU_ISSET>()"
297 msgstr "B<CPU_ISSET>()"
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid "Test to see if CPU I<cpu> is a member of I<set>."
303 msgstr "Проверяет, является ли ЦП I<cpu> членом I<set>."
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<CPU_COUNT>()"
310 msgstr "B<CPU_COUNT>()"
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "Return the number of CPUs in I<set>."
316 msgstr "Возвращает количество ЦП в I<set>."
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "Where a I<cpu> argument is specified, it should not produce side effects, "
323 "since the above macros may evaluate the argument more than once."
324 msgstr ""
325 "Макросы, имеющие аргумент I<cpu>, не вызывают побочных эффектов, все "
326 "перечисленные выше макросы могут использовать аргумент более одного раза."
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid ""
332 "The first CPU on the system corresponds to a I<cpu> value of 0, the next CPU "
333 "corresponds to a I<cpu> value of 1, and so on. No assumptions should be "
334 "made about particular CPUs being available, or the set of CPUs being "
335 "contiguous, since CPUs can be taken offline dynamically or be otherwise "
336 "absent. The constant B<CPU_SETSIZE> (currently 1024) specifies a value one "
337 "greater than the maximum CPU number that can be stored in I<cpu_set_t>."
338 msgstr ""
339 "Значение первого ЦП системы в I<cpu> обозначается как 0, значение следующего "
340 "ЦП в I<cpu> равно 1 и т. д. Нельзя предполагать о доступности каких-либо ЦП, "
341 "или что набор ЦП непрерывен, так как ЦП могут динамически отключаться или "
342 "вообще отсутствовать. Константой B<CPU_SETSIZE> (в настоящее время 1024) "
343 "задаётся значение на 1 большее, чем максимальный номер ЦП, который можно "
344 "хранить в I<cpu_set_t>."
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "The following macros perform logical operations on CPU sets:"
350 msgstr "Следующие макросы выполняют логические операции над наборами ЦП:"
351
352 #. type: TP
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "B<CPU_AND>()"
357 msgstr "B<CPU_AND>()"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 msgid ""
363 "Store the intersection of the sets I<srcset1> and I<srcset2> in I<destset> "
364 "(which may be one of the source sets)."
365 msgstr ""
366 "Сохраняет пересечение наборов I<srcset1> и I<srcset2> в I<destset> (который "
367 "может быть одним из наборов-аргументов)."
368
369 #. type: TP
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<CPU_OR>()"
374 msgstr "B<CPU_OR>()"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "Store the union of the sets I<srcset1> and I<srcset2> in I<destset> (which "
381 "may be one of the source sets)."
382 msgstr ""
383 "Сохраняет объединение наборов I<srcset1> и I<srcset2> в I<destset> (который "
384 "может быть одним из наборов-аргументов)."
385
386 #. type: TP
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "B<CPU_XOR>()"
391 msgstr "B<CPU_XOR>()"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "Store the XOR of the sets I<srcset1> and I<srcset2> in I<destset> (which may "
398 "be one of the source sets). The XOR means the set of CPUs that are in "
399 "either I<srcset1> or I<srcset2>, but not both."
400 msgstr ""
401 "Сохраняет результат XOR наборов I<srcset1> и I<srcset2> в I<destset> "
402 "(который может быть одним из наборов-аргументов). Операция XOR возвращает "
403 "набор из ЦП, которые есть в одном из I<srcset1> или I<srcset2>, но не в "
404 "обоих одновременно."
405
406 #. type: TP
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "B<CPU_EQUAL>()"
411 msgstr "B<CPU_EQUAL>()"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "Test whether two CPU set contain exactly the same CPUs."
417 msgstr "Проверяет, что два набора ЦП содержат одинаковые ЦП."
418
419 #. type: SS
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "Dynamically sized CPU sets"
424 msgstr "Динамически изменяемые наборы ЦП"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "Because some applications may require the ability to dynamically size CPU "
431 "sets (e.g., to allocate sets larger than that defined by the standard "
432 "I<cpu_set_t> data type), glibc nowadays provides a set of macros to support "
433 "this."
434 msgstr ""
435 "Так как некоторым приложениям может потребоваться наборы ЦП динамически "
436 "изменяемых размеров (например, для выделения наборов больше, чем определено "
437 "стандартным типом данных I<cpu_set_t>), glibc предоставляет набор макросов "
438 "для этого."
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid "The following macros are used to allocate and deallocate CPU sets:"
444 msgstr "Следующие макросы используются для выделения и удаления наборов ЦП:"
445
446 #. type: TP
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "B<CPU_ALLOC>()"
451 msgstr "B<CPU_ALLOC>()"
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid ""
457 "Allocate a CPU set large enough to hold CPUs in the range 0 to I<num_cpus-1>."
458 msgstr ""
459 "Выделяет набор ЦП, достаточный для хранения ЦП в диапазоне от 0 до "
460 "I<num_cpus-1>."
461
462 #. type: TP
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "B<CPU_ALLOC_SIZE>()"
467 msgstr "B<CPU_ALLOC_SIZE>()"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid ""
473 "Return the size in bytes of the CPU set that would be needed to hold CPUs in "
474 "the range 0 to I<num_cpus-1>. This macro provides the value that can be "
475 "used for the I<setsize> argument in the B<CPU_*_S>() macros described below."
476 msgstr ""
477 "Возвращает размер набора ЦП в байтах, который необходим для хранения ЦП в "
478 "диапазоне от 0 до I<num_cpus-1>. Данный макрос предоставляет значение, "
479 "которое можно использовать в аргументе I<setsize> в макросах B<CPU_*_S>(), "
480 "описанных далее."
481
482 #. type: TP
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "B<CPU_FREE>()"
487 msgstr "B<CPU_FREE>()"
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 msgid "Free a CPU set previously allocated by B<CPU_ALLOC>()."
493 msgstr "Освобождает набор ЦП, выделенный ранее с помощью B<CPU_ALLOC>()."
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "The macros whose names end with \"_S\" are the analogs of the similarly "
500 "named macros without the suffix. These macros perform the same tasks as "
501 "their analogs, but operate on the dynamically allocated CPU set(s) whose "
502 "size is I<setsize> bytes."
503 msgstr ""
504 "Макросы, чьи имена заканчиваются на «_S», аналогичны макросам с тем же "
505 "именем без суффикса. Эти макросы выполняют те же задачи что и их аналоги, но "
506 "они работают с динамически выделяемыми наборами ЦП, размер которых равен "
507 "I<setsize> байт."
508
509 #. type: SH
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "RETURN VALUE"
514 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "B<CPU_ISSET>() and B<CPU_ISSET_S>() return nonzero if I<cpu> is in I<set>; "
521 "otherwise, it returns 0."
522 msgstr ""
523 "Макросы B<CPU_ISSET>() и B<CPU_ISSET_S>() возвращают ненулевое значение, "
524 "если I<cpu> есть в I<set>; в противном случае возвращается 0."
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid ""
530 "B<CPU_COUNT>() and B<CPU_COUNT_S>() return the number of CPUs in I<set>."
531 msgstr ""
532 "Макросы B<CPU_COUNT>() и B<CPU_COUNT_S>() возвращают количество ЦП в I<set>."
533
534 #. type: Plain text
535 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
536 #: opensuse-tumbleweed
537 #, fuzzy
538 #| msgid ""
539 #| "B<CPU_EQUAL>() and B<CPU_EQUAL_S>() return nonzero if the two CPU sets "
540 #| "are equal; otherwise they return 0."
541 msgid ""
542 "B<CPU_EQUAL>() and B<CPU_EQUAL_S>() return nonzero if the two CPU sets are "
543 "equal; otherwise, they return 0."
544 msgstr ""
545 "Макросы B<CPU_EQUAL>() и B<CPU_EQUAL_S>() возвращают ненулевое значение, "
546 "если два набора ЦП одинаковы; в противном случае возвращается 0."
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "B<CPU_ALLOC>() returns a pointer on success, or NULL on failure. (Errors "
553 "are as for B<malloc>(3).)"
554 msgstr ""
555 "При успешном выполнении макрос B<CPU_ALLOC>() возвращает указатель, при "
556 "ошибке возвращается NULL (ошибки те же, что и у B<malloc>(3))."
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "B<CPU_ALLOC_SIZE>() returns the number of bytes required to store a CPU set "
563 "of the specified cardinality."
564 msgstr ""
565 "Макрос B<CPU_ALLOC_SIZE>() возвращает количество байт, требуемое для "
566 "хранения набора ЦП указанных элементов."
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid "The other functions do not return a value."
572 msgstr "Другие функции не возвращают никаких значений."
573
574 #. type: SH
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 #, no-wrap
578 msgid "STANDARDS"
579 msgstr "СТАНДАРТЫ"
580
581 #. type: Plain text
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 msgid "Linux."
585 msgstr "Linux."
586
587 #. type: SH
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 #, no-wrap
591 msgid "HISTORY"
592 msgstr "ИСТОРИЯ"
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid ""
598 "The B<CPU_ZERO>(), B<CPU_SET>(), B<CPU_CLR>(), and B<CPU_ISSET>() macros "
599 "were added in glibc 2.3.3."
600 msgstr ""
601 "Макросы B<CPU_ZERO>(), B<CPU_SET>(), B<CPU_CLR>() и B<CPU_ISSET>() добавлены "
602 "в glibc версии 2.3.3."
603
604 #. type: Plain text
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 msgid "B<CPU_COUNT>() first appeared in glibc 2.6."
608 msgstr "Макрос B<CPU_COUNT>() впервые появилась в glibc версии 2.6."
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "B<CPU_AND>(), B<CPU_OR>(), B<CPU_XOR>(), B<CPU_EQUAL>(), B<CPU_ALLOC>(), "
615 "B<CPU_ALLOC_SIZE>(), B<CPU_FREE>(), B<CPU_ZERO_S>(), B<CPU_SET_S>(), "
616 "B<CPU_CLR_S>(), B<CPU_ISSET_S>(), B<CPU_AND_S>(), B<CPU_OR_S>(), "
617 "B<CPU_XOR_S>(), and B<CPU_EQUAL_S>() first appeared in glibc 2.7."
618 msgstr ""
619 "Макросы B<CPU_AND>(), B<CPU_OR>(), B<CPU_XOR>(), B<CPU_EQUAL>(), "
620 "B<CPU_ALLOC>(), B<CPU_ALLOC_SIZE>(), B<CPU_FREE>(), B<CPU_ZERO_S>(), "
621 "B<CPU_SET_S>(), B<CPU_CLR_S>(), B<CPU_ISSET_S>(), B<CPU_AND_S>(), "
622 "B<CPU_OR_S>(), B<CPU_XOR_S>() и B<CPU_EQUAL_S>() впервые появились в glibc "
623 "версии 2.7."
624
625 #. type: SH
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "NOTES"
630 msgstr "ПРИМЕЧАНИЯ"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid "To duplicate a CPU set, use B<memcpy>(3)."
636 msgstr "Для создания копии набора ЦП используйте B<memcpy>(3)."
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 msgid ""
642 "Since CPU sets are bit masks allocated in units of long words, the actual "
643 "number of CPUs in a dynamically allocated CPU set will be rounded up to the "
644 "next multiple of I<sizeof(unsigned long)>. An application should consider "
645 "the contents of these extra bits to be undefined."
646 msgstr ""
647 "Так как наборы ЦП это битовые маски, выделяемые в единицах длинных слов, "
648 "реальное количество ЦП в динамически выделенном наборе ЦП будет округлено до "
649 "следующего кратного I<sizeof(unsigned long)>. Приложение должно считать "
650 "содержимое этих дополнительных бит неопределённым."
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid ""
656 "Notwithstanding the similarity in the names, note that the constant "
657 "B<CPU_SETSIZE> indicates the number of CPUs in the I<cpu_set_t> data type "
658 "(thus, it is effectively a count of the bits in the bit mask), while the "
659 "I<setsize> argument of the B<CPU_*_S>() macros is a size in bytes."
660 msgstr ""
661 "Несмотря на похожесть имён, заметим, что константа B<CPU_SETSIZE> определяет "
662 "количество ЦП в типе данных I<cpu_set_t> (то есть, эффективное количество "
663 "битов в битовой маске), в то время как аргумент I<setsize> макросов "
664 "B<CPU_*_S>() — это размер в байтах."
665
666 #. type: Plain text
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 msgid ""
670 "The data types for arguments and return values shown in the SYNOPSIS are "
671 "hints what about is expected in each case. However, since these interfaces "
672 "are implemented as macros, the compiler won't necessarily catch all type "
673 "errors if you violate the suggestions."
674 msgstr ""
675 "Типы данных параметров и возвращаемых значений, показанных в ОБЗОРЕ — "
676 "подсказки, что ожидается в каждом случае. Однако так как эти интерфейсы "
677 "реализованы как макросы, компилятор не обязательно поймает все ошибки "
678 "приведения типов, если вы нарушите предположения."
679
680 #. type: SH
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "BUGS"
685 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
686
687 #. http://sourceware.org/bugzilla/show_bug.cgi?id=7029
688 #. type: Plain text
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 msgid ""
692 "On 32-bit platforms with glibc 2.8 and earlier, B<CPU_ALLOC>() allocates "
693 "twice as much space as is required, and B<CPU_ALLOC_SIZE>() returns a value "
694 "twice as large as it should. This bug should not affect the semantics of a "
695 "program, but does result in wasted memory and less efficient operation of "
696 "the macros that operate on dynamically allocated CPU sets. These bugs are "
697 "fixed in glibc 2.9."
698 msgstr ""
699 "На 32-разрядных платформах в glibc 2.8 и ранее B<CPU_ALLOC> () выделяет "
700 "вдвое больше пространства, как требуется, и B<CPU_ALLOC_SIZE>() возвращает "
701 "значение вдвое большее, чем должно. Эта ошибка не должна влиять на семантику "
702 "программы, но приводит к трате впустую памяти и менее эффективной работе "
703 "макросов для динамически выделяемых наборов ЦП. Эти ошибки исправлены в "
704 "glibc версии 2.9."
705
706 #. type: SH
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, no-wrap
710 msgid "EXAMPLES"
711 msgstr "ПРИМЕРЫ"
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid ""
717 "The following program demonstrates the use of some of the macros used for "
718 "dynamically allocated CPU sets."
719 msgstr ""
720 "Следующая программа показывает использование некоторых макросов, работающих "
721 "с динамически выделяемыми наборами ЦП."
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 #, no-wrap
727 msgid ""
728 "#define _GNU_SOURCE\n"
729 "#include E<lt>sched.hE<gt>\n"
730 "#include E<lt>stdio.hE<gt>\n"
731 "#include E<lt>stdlib.hE<gt>\n"
732 "#include E<lt>unistd.hE<gt>\n"
733 "\\&\n"
734 "#include E<lt>assert.hE<gt>\n"
735 "\\&\n"
736 "int\n"
737 "main(int argc, char *argv[])\n"
738 "{\n"
739 " cpu_set_t *cpusetp;\n"
740 " size_t size, num_cpus;\n"
741 "\\&\n"
742 " if (argc E<lt> 2) {\n"
743 " fprintf(stderr, \"Usage: %s E<lt>num-cpusE<gt>\\[rs]n\", argv[0]);\n"
744 " exit(EXIT_FAILURE);\n"
745 " }\n"
746 "\\&\n"
747 " num_cpus = atoi(argv[1]);\n"
748 "\\&\n"
749 " cpusetp = CPU_ALLOC(num_cpus);\n"
750 " if (cpusetp == NULL) {\n"
751 " perror(\"CPU_ALLOC\");\n"
752 " exit(EXIT_FAILURE);\n"
753 " }\n"
754 "\\&\n"
755 " size = CPU_ALLOC_SIZE(num_cpus);\n"
756 "\\&\n"
757 " CPU_ZERO_S(size, cpusetp);\n"
758 " for (size_t cpu = 0; cpu E<lt> num_cpus; cpu += 2)\n"
759 " CPU_SET_S(cpu, size, cpusetp);\n"
760 "\\&\n"
761 " printf(\"CPU_COUNT() of set: %d\\[rs]n\", CPU_COUNT_S(size, cpusetp));\n"
762 "\\&\n"
763 " CPU_FREE(cpusetp);\n"
764 " exit(EXIT_SUCCESS);\n"
765 "}\n"
766 msgstr ""
767
768 #. SRC END
769 #. type: SH
770 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
771 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
772 #, no-wrap
773 msgid "SEE ALSO"
774 msgstr "СМОТРИТЕ ТАКЖЕ"
775
776 #. type: Plain text
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 msgid ""
780 "B<sched_setaffinity>(2), B<pthread_attr_setaffinity_np>(3), "
781 "B<pthread_setaffinity_np>(3), B<cpuset>(7)"
782 msgstr ""
783 "B<sched_setaffinity>(2), B<pthread_attr_setaffinity_np>(3), "
784 "B<pthread_setaffinity_np>(3), B<cpuset>(7)"
785
786 #. type: TH
787 #: debian-trixie
788 #, no-wrap
789 msgid "2024-06-15"
790 msgstr "15 июня 2024 г."
791
792 #. type: TH
793 #: debian-trixie
794 #, no-wrap
795 msgid "Linux man-pages 6.9.1"
796 msgstr "Страницы руководства Linux 6.9.1"
797
798 #. type: Plain text
799 #: debian-trixie
800 msgid "Standard C library (I<libc>, I<-lc>)"
801 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
802
803 #. type: Plain text
804 #: debian-trixie fedora-44 fedora-rawhide
805 msgid ""
806 "B<CPU_EQUAL>() and B<CPU_EQUAL_S>() return nonzero if the two CPU sets are "
807 "equal; otherwise they return 0."
808 msgstr ""
809 "Макросы B<CPU_EQUAL>() и B<CPU_EQUAL_S>() возвращают ненулевое значение, "
810 "если два набора ЦП одинаковы; в противном случае возвращается 0."
811
812 #. type: TH
813 #: fedora-44 fedora-rawhide
814 #, no-wrap
815 msgid "2024-07-23"
816 msgstr "23 июля 2024 г."
817
818 #. type: TH
819 #: fedora-44 fedora-rawhide
820 #, no-wrap
821 msgid "Linux man-pages 6.13"
822 msgstr "Страницы руководства Linux 6.13"
823
824 #. type: TH
825 #: mageia-cauldron
826 #, no-wrap
827 msgid "Linux man-pages 6.17"
828 msgstr "Страницы руководства Linux 6.17"
829
830 #. type: TH
831 #: opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "Linux man-pages (unreleased)"
834 msgstr "Страницы руководства Linux (не выпущены)"