Debian Codegraph @

po/ru/man2/semop.2.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 # 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:42+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 "semop"
33 msgstr "semop"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 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 "semop, semtimedop - System V semaphore operations"
60 msgstr "semop, semtimedop - операции с семафорами System V"
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 "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
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 #, no-wrap
86 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
87 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, fuzzy, no-wrap
93 #| msgid ""
94 #| "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
95 #| "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
96 #| "B< const struct timespec *>I<timeout>B<);>\n"
97 msgid ""
98 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
99 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
100 "B< const struct timespec *_Nullable >I<timeout>B<);>\n"
101 msgstr ""
102 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
103 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
104 "B< const struct timespec *>I<timeout>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 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "Требования макроса тестирования свойств для glibc (см. "
113 "B<feature_test_macros>(7)):"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "B<semtimedop>():"
119 msgstr "B<semtimedop>():"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid " _GNU_SOURCE\n"
126 msgstr " _GNU_SOURCE\n"
127
128 #. type: SH
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid "DESCRIPTION"
133 msgstr "ОПИСАНИЕ"
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "Each semaphore in a System\\ V semaphore set has the following associated "
140 "values:"
141 msgstr ""
142 "С каждым семафором в наборе семафоров System\\ V связаны следующие значения:"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, fuzzy, no-wrap
148 #| msgid ""
149 #| "unsigned short semval; /* semaphore value */\n"
150 #| "unsigned short semzcnt; /* # waiting for zero */\n"
151 #| "unsigned short semncnt; /* # waiting for increase */\n"
152 #| "pid_t sempid; /* PID of process that last\n"
153 msgid ""
154 "unsigned short semval; /* semaphore value */\n"
155 "unsigned short semzcnt; /* # waiting for zero */\n"
156 "unsigned short semncnt; /* # waiting for increase */\n"
157 "pid_t sempid; /* PID of process that last\n"
158 " modified the semaphore value */\n"
159 msgstr ""
160 "unsigned short semval; /* значение семафора */\n"
161 "unsigned short semzcnt; /* # ожидает ноль */\n"
162 "unsigned short semncnt; /* # ожидает увеличения */\n"
163 "pid_t sempid; /* PID процесса, выполнявшегося последним \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 msgid ""
169 "B<semop>() performs operations on selected semaphores in the set indicated "
170 "by I<semid>. Each of the I<nsops> elements in the array pointed to by "
171 "I<sops> is a structure that specifies an operation to be performed on a "
172 "single semaphore. The elements of this structure are of type I<struct "
173 "sembuf>, containing the following members:"
174 msgstr ""
175 "Вызов B<semop>() производит операции над выбранными семафорами из набора "
176 "семафоров I<semid>. Каждый из элементов I<nsops> в массиве, указанном в "
177 "I<sops> является структурой, которой задаётся операция, выполняемая над "
178 "отдельным семафором. Элементы этой структуры имеют тип I<struct sembuf>, "
179 "который содержит поля:"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid ""
186 "unsigned short sem_num; /* semaphore number */\n"
187 "short sem_op; /* semaphore operation */\n"
188 "short sem_flg; /* operation flags */\n"
189 msgstr ""
190 "unsigned short sem_num; /* номер семафора */\n"
191 "short sem_op; /* операция над семафором */\n"
192 "short sem_flg; /* флаги операции */\n"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
199 "operation specifies B<SEM_UNDO>, it will be automatically undone when the "
200 "process terminates."
201 msgstr ""
202 "Флаги в I<sem_flg> могут иметь значения B<IPC_NOWAIT> и B<SEM_UNDO>. Если "
203 "указан флаг B<SEM_UNDO>, то при завершении процесса будет выполнена откат "
204 "операции."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "The set of operations contained in I<sops> is performed in I<array order>, "
211 "and I<atomically>, that is, the operations are performed either as a "
212 "complete unit, or not at all. The behavior of the system call if not all "
213 "operations can be performed immediately depends on the presence of the "
214 "B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted below."
215 msgstr ""
216 "Набор операций из I<sops> выполняется в I<порядке появления в массиве> и "
217 "I<является атомарным>, то есть выполняются или все операции, или ни одной. "
218 "Поведение системного вызова при обнаружении невозможности немедленного "
219 "выполнения операций зависит от наличия флага B<IPC_NOWAIT> в полях "
220 "I<sem_flg> отдельных операций, как это описано далее."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "Each operation is performed on the I<sem_num>-th semaphore of the semaphore "
227 "set, where the first semaphore of the set is numbered 0. There are three "
228 "types of operation, distinguished by the value of I<sem_op>."
229 msgstr ""
230 "Каждая операция выполняется над I<sem_num>-тым семафором из набора, где "
231 "первый семафор имеет номер 0. Есть три типа операций, различающихся "
232 "значением I<sem_op>."
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 #, fuzzy
238 #| msgid ""
239 #| "If I<sem_op> is a positive integer, the operation adds this value to the "
240 #| "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified "
241 #| "for this operation, the system subtracts the value I<sem_op> from the "
242 #| "semaphore adjustment (I<semadj>) value for this semaphore. This "
243 #| "operation can always proceed\\(emit never forces a thread to wait. The "
244 #| "calling process must have alter permission on the semaphore set."
245 msgid ""
246 "If I<sem_op> is a positive integer, the operation adds this value to the "
247 "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for "
248 "this operation, the system subtracts the value I<sem_op> from the semaphore "
249 "adjustment (I<semadj>) value for this semaphore. This operation can always "
250 "proceed\\[em]it never forces a thread to wait. The calling process must "
251 "have alter permission on the semaphore set."
252 msgstr ""
253 "Если значение I<sem_op> — положительное целое число, то оно добавляется к "
254 "значению семафора (I<semval>). Если для операции стоит флаг B<SEM_UNDO>, то "
255 "система вычитает значение I<sem_op> из значения регулировки (I<semadj>) "
256 "семафора. Эта операция выполняется всегда и не переводит нить в режим "
257 "ожидания. Вызывающий процесс должен иметь права на изменение набора "
258 "семафоров."
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 ""
264 "If I<sem_op> is zero, the process must have read permission on the semaphore "
265 "set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the "
266 "operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified "
267 "in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of "
268 "the operations in I<sops> is performed). Otherwise, I<semzcnt> (the count "
269 "of threads waiting until this semaphore's value becomes zero) is "
270 "incremented by one and the thread sleeps until one of the following occurs:"
271 msgstr ""
272 "Если значение I<sem_op> равно нулю, то процесс должен иметь права на чтение "
273 "набора семафоров. Эта операция «ожидания нуля»: если I<semval> равно нулю, "
274 "то операция может выполнится сразу. Иначе, если в поле семафора I<sem_flg> "
275 "указан флаг B<IPC_NOWAIT>, то B<semop>() завершается с ошибкой и I<errno> "
276 "присваивается значение B<EAGAIN> (и ни одна операция из I<sops> не "
277 "выполняется). Или же I<semzcnt> (счётчик нитей, ожидающих пока значение "
278 "семафора не сравнялось с нулём) увеличивается на единицу, а нить переходит в "
279 "режим ожидания пока не случится одно из:"
280
281 #. type: IP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "\\[bu]"
286 msgstr "\\[bu]"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "I<semval> becomes 0, at which time the value of I<semzcnt> is decremented."
293 msgstr ""
294 "Значение I<semval> станет равным 0, тогда значение I<semzcnt> уменьшается."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "The semaphore set is removed: B<semop>() fails, with I<errno> set to "
301 "B<EIDRM>."
302 msgstr ""
303 "Набор семафоров удалится: B<semop>() завершается с ошибкой, а I<errno> "
304 "присваивается значение B<EIDRM>."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "The calling thread catches a signal: the value of I<semzcnt> is decremented "
311 "and B<semop>() fails, with I<errno> set to B<EINTR>."
312 msgstr ""
313 "Вызывающая нить получит сигнал: значение I<semncnt> уменьшается и B<semop>() "
314 "завершается с ошибкой, а I<errno> присваивается значение B<EINTR>."
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 "If I<sem_op> is less than zero, the process must have alter permission on "
321 "the semaphore set. If I<semval> is greater than or equal to the absolute "
322 "value of I<sem_op>, the operation can proceed immediately: the absolute "
323 "value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
324 "specified for this operation, the system adds the absolute value of "
325 "I<sem_op> to the semaphore adjustment (I<semadj>) value for this "
326 "semaphore. If the absolute value of I<sem_op> is greater than I<semval>, "
327 "and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, with "
328 "I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is "
329 "performed). Otherwise, I<semncnt> (the counter of threads waiting for this "
330 "semaphore's value to increase) is incremented by one and the thread sleeps "
331 "until one of the following occurs:"
332 msgstr ""
333 "Если значение I<sem_op> меньше нуля, то процесс должен иметь права на "
334 "изменение набора семафоров. Если значение I<semval> больше или равно "
335 "абсолютному значению I<sem_op>, то операция может выполнятся сразу: "
336 "абсолютное значение I<sem_op> вычитается из I<semval>, и, если для этой "
337 "операции установлен флаг B<SEM_UNDO>, система добавляет абсолютное значение "
338 "I<sem_op> к значению регулировки (I<semadj>) семафора. Если абсолютное "
339 "значение I<sem_op> больше I<semval>, и в I<sem_flg> указан B<IPC_NOWAIT>, то "
340 "B<semop>() завершается с ошибкой, а I<errno> присваивается значение "
341 "B<EAGAIN> (и ни одна операция из I<sops> не выполняется). Иначе I<semncnt> "
342 "(счётчик нитей, ожидающих увеличения значения семафора) увеличивается на "
343 "единицу, а нить переходит в режим ожидания пока не случится одно из:"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "I<semval> becomes greater than or equal to the absolute value of I<sem_op>: "
350 "the operation now proceeds, as described above."
351 msgstr ""
352 "I<semval> становится больше или равно абсолютному значению I<sem_op>: "
353 "операция продолжается как описано выше."
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "The semaphore set is removed from the system: B<semop>() fails, with "
360 "I<errno> set to B<EIDRM>."
361 msgstr ""
362 "Набор семафоров удалится из системы: B<semop>() завершается с ошибкой, а "
363 "I<errno> присваивается значение B<EIDRM>."
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "The calling thread catches a signal: the value of I<semncnt> is decremented "
370 "and B<semop>() fails, with I<errno> set to B<EINTR>."
371 msgstr ""
372 "Вызывающая нить получит сигнал: значение I<semncnt> уменьшается и B<semop>() "
373 "завершается с ошибкой, а I<errno> присваивается значение B<EINTR>."
374
375 #. and
376 #. .I sem_ctime
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "On successful completion, the I<sempid> value for each semaphore specified "
382 "in the array pointed to by I<sops> is set to the caller's process ID. In "
383 "addition, the I<sem_otime> is set to the current time."
384 msgstr ""
385 "При успешном выполнении значение I<sempid> для каждого семафора, указанного "
386 "в массиве, на который указывает I<sops>, устанавливается равным "
387 "идентификатору вызывающего процесса. Также I<sem_otime> присваивается "
388 "значение текущего времени."
389
390 #. type: SS
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "semtimedop()"
395 msgstr "semtimedop()"
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "B<semtimedop>() behaves identically to B<semop>() except that in those "
402 "cases where the calling thread would sleep, the duration of that sleep is "
403 "limited by the amount of elapsed time specified by the I<timespec> structure "
404 "whose address is passed in the I<timeout> argument. (This sleep interval "
405 "will be rounded up to the system clock granularity, and kernel scheduling "
406 "delays mean that the interval may overrun by a small amount.) If the "
407 "specified time limit has been reached, B<semtimedop>() fails with I<errno> "
408 "set to B<EAGAIN> (and none of the operations in I<sops> is performed). If "
409 "the I<timeout> argument is NULL, then B<semtimedop>() behaves exactly like "
410 "B<semop>()."
411 msgstr ""
412 "Системный вызов B<semtimedop>() ведёт себя идентично B<semop>(), за "
413 "исключением того, что в случаях, когда вызывающая нить будет спать, "
414 "длительность этого сна ограничена количеством времени, определяемым "
415 "структурой I<timespec>, чей адрес передаётся в аргументе I<timeout>. Данное "
416 "значение интервала будет округлено до точности системных часов, а из-за "
417 "задержки при планировании в ядре блокирующий интервал будет немного больше. "
418 "Если достигнут указанный лимит времени, то B<semtimedop>() завершится с "
419 "ошибкой, а I<errno> устанавливается в B<EAGAIN> (и ни одна из операций в "
420 "I<sops> не выполняется). Если значение аргумента I<timeout> равно NULL, то "
421 "B<semtimedop>() ведёт себя аналогично B<semop>()."
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "Note that if B<semtimedop>() is interrupted by a signal, causing the call "
428 "to fail with the error B<EINTR>, the contents of I<timeout> are left "
429 "unchanged."
430 msgstr ""
431 "Заметим, что если B<semtimedop>() прерывается сигналом, то вызов завершается "
432 "с ошибкой B<EINTR>, а содержимое I<timeout> не изменяется."
433
434 #. type: SH
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "RETURN VALUE"
439 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, fuzzy
445 #| msgid ""
446 #| "If successful, B<semop>() and B<semtimedop>() return 0; otherwise they "
447 #| "return -1 with I<errno> indicating the error."
448 msgid ""
449 "On success, B<semop>() and B<semtimedop>() return 0. On failure, they "
450 "return -1, and set I<errno> to indicate the error."
451 msgstr ""
452 "При успешном выполнении B<semop>() и B<semtimedop>() возвращается 0; иначе "
453 "возвращается -1, а переменной I<errno> присваивается номер ошибки."
454
455 #. type: SH
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "ERRORS"
460 msgstr "ОШИБКИ"
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<E2BIG>"
467 msgstr "B<E2BIG>"
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 "The argument I<nsops> is greater than B<SEMOPM>, the maximum number of "
474 "operations allowed per system call."
475 msgstr ""
476 "Значение аргумента I<nsops> больше B<SEMOPM>, максимального количества "
477 "операций, которое может выполнить один системный вызов."
478
479 #. type: TP
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid "B<EACCES>"
484 msgstr "B<EACCES>"
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid ""
490 "The calling process does not have the permissions required to perform the "
491 "specified semaphore operations, and does not have the B<CAP_IPC_OWNER> "
492 "capability in the user namespace that governs its IPC namespace."
493 msgstr ""
494 "Вызывающий процесс не имеет прав, требуемых для выполнения указанных "
495 "операций над семафорами, и не имеет мандата B<CAP_IPC_OWNER>, который "
496 "управляет его пространством имён IPC."
497
498 #. type: TP
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "B<EAGAIN>"
503 msgstr "B<EAGAIN>"
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "An operation could not proceed immediately and either B<IPC_NOWAIT> was "
510 "specified in I<sem_flg> or the time limit specified in I<timeout> expired."
511 msgstr ""
512 "Операция не может быть выполнена немедленно и, либо B<IPC_NOWAIT> был указан "
513 "в I<sem_flg>, либо истекло время лимита, определённое в I<timeout>."
514
515 #. type: TP
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "B<EFAULT>"
520 msgstr "B<EFAULT>"
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid ""
526 "An address specified in either the I<sops> or the I<timeout> argument isn't "
527 "accessible."
528 msgstr "Адрес, указанный в I<sops> или I<timeout>, не доступен."
529
530 #. type: TP
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "B<EFBIG>"
535 msgstr "B<EFBIG>"
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "For some operation the value of I<sem_num> is less than 0 or greater than or "
542 "equal to the number of semaphores in the set."
543 msgstr ""
544 "Для некоторых операций значение I<sem_num> меньше нуля или больше или равно "
545 "количеству семафоров в наборе."
546
547 #. type: TP
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "B<EIDRM>"
552 msgstr "B<EIDRM>"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid "The semaphore set was removed."
558 msgstr "Набор семафоров был удалён."
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<EINTR>"
565 msgstr "B<EINTR>"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid ""
571 "While blocked in this system call, the thread caught a signal; see "
572 "B<signal>(7)."
573 msgstr ""
574 "Нить, находясь в режиме ожидания, получила сигнал; смотрите B<signal>(7)."
575
576 #. type: TP
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 #, no-wrap
580 msgid "B<EINVAL>"
581 msgstr "B<EINVAL>"
582
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 msgid ""
587 "The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> "
588 "has a nonpositive value."
589 msgstr ""
590 "Набор семафоров не существует, или значение I<semid> меньше нуля, или "
591 "I<nsops> имеет не положительное значение."
592
593 #. type: TP
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "B<ENOMEM>"
598 msgstr "B<ENOMEM>"
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 msgid ""
604 "The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does "
605 "not have enough memory to allocate the undo structure."
606 msgstr ""
607 "Для некоторых операций в поле I<sem_flg> задан флаг B<SEM_UNDO>, и система "
608 "не может выделить достаточно памяти для структуры откатов."
609
610 #. type: TP
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid "B<ERANGE>"
615 msgstr "B<ERANGE>"
616
617 #. type: Plain text
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 msgid ""
621 "For some operation I<sem_op+semval> is greater than B<SEMVMX>, the "
622 "implementation dependent maximum value for I<semval>."
623 msgstr ""
624 "Для некоторых операций I<sem_op+semval> больше чем B<SEMVMX>, максимального "
625 "значения I<semval> (зависит от реализации)."
626
627 #. type: SH
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "STANDARDS"
632 msgstr "СТАНДАРТЫ"
633
634 #. type: Plain text
635 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
636 #: opensuse-tumbleweed
637 msgid "POSIX.1-2024."
638 msgstr "POSIX.1-2024."
639
640 #. type: SH
641 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
642 #: opensuse-tumbleweed
643 #, no-wrap
644 msgid "HISTORY"
645 msgstr "ИСТОРИЯ"
646
647 #. type: TP
648 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
649 #: opensuse-tumbleweed
650 #, fuzzy, no-wrap
651 #| msgid "B<semop>(2)"
652 msgid "B<semop>()"
653 msgstr "B<semop>(2)"
654
655 #. type: Plain text
656 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
657 #: opensuse-tumbleweed
658 msgid "SVr4, POSIX.1-2001."
659 msgstr "SVr4, POSIX.1-2001."
660
661 #. type: TP
662 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
663 #: opensuse-tumbleweed
664 #, fuzzy, no-wrap
665 #| msgid "B<semtimedop>():"
666 msgid "B<semtimedop>()"
667 msgstr "B<semtimedop>():"
668
669 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
670 #. type: Plain text
671 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
672 #: opensuse-tumbleweed
673 msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3."
674 msgstr ""
675
676 #. type: SH
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid "NOTES"
681 msgstr "ПРИМЕЧАНИЯ"
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid ""
687 "The I<sem_undo> structures of a process aren't inherited by the child "
688 "produced by B<fork>(2), but they are inherited across an B<execve>(2) "
689 "system call."
690 msgstr ""
691 "Структуры процесса I<sem_undo> не наследуются потомками, созданными через "
692 "B<fork>(2), но они наследуются при выполнении системного вызова B<execve>(2)."
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 msgid ""
698 "B<semop>() is never automatically restarted after being interrupted by a "
699 "signal handler, regardless of the setting of the B<SA_RESTART> flag when "
700 "establishing a signal handler."
701 msgstr ""
702 "Вызов B<semop>() никогда автоматически не перезапускается после прерывания "
703 "обработчиком сигнала, независимо от установки флага B<SA_RESTART> при "
704 "настройке обработчика сигнала."
705
706 #. type: Plain text
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, fuzzy
710 #| msgid ""
711 #| "A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore "
712 #| "integer that is the negated sum of all operations performed on a "
713 #| "semaphore specifying the B<SEM_UNDO> flag. Each process has a list of "
714 #| "I<semadj> values\\(emone value for each semaphore on which it has "
715 #| "operated using B<SEM_UNDO>. When a process terminates, each of its per-"
716 #| "semaphore I<semadj> values is added to the corresponding semaphore, thus "
717 #| "undoing the effect of that process's operations on the semaphore (but see "
718 #| "BUGS below). When a semaphore's value is directly set using the "
719 #| "B<SETVAL> or B<SETALL> request to B<semctl>(2), the corresponding "
720 #| "I<semadj> values in all processes are cleared. The B<clone>(2) "
721 #| "B<CLONE_SYSVSEM> flag allows more than one process to share a I<semadj> "
722 #| "list; see B<clone>(2) for details."
723 msgid ""
724 "A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore "
725 "integer that is the negated sum of all operations performed on a semaphore "
726 "specifying the B<SEM_UNDO> flag. Each process has a list of I<semadj> "
727 "values\\[em]one value for each semaphore on which it has operated using "
728 "B<SEM_UNDO>. When a process terminates, each of its per-semaphore I<semadj> "
729 "values is added to the corresponding semaphore, thus undoing the effect of "
730 "that process's operations on the semaphore (but see BUGS below). When a "
731 "semaphore's value is directly set using the B<SETVAL> or B<SETALL> request "
732 "to B<semctl>(2), the corresponding I<semadj> values in all processes are "
733 "cleared. The B<clone>(2) B<CLONE_SYSVSEM> flag allows more than one "
734 "process to share a I<semadj> list; see B<clone>(2) for details."
735 msgstr ""
736 "Значение регулировки семафора (I<semadj>) есть в каждом процессе. Это целое "
737 "число — простой (отрицательный) счётчик всех операций над семафорами, для "
738 "которых установлен флаг B<SEM_UNDO>. В каждом процессе есть список значений "
739 "I<semadj> — по одному значению на каждый семафор, у которых установлен флаг "
740 "B<SEM_UNDO>. При завершении процесса. каждое из значений I<semadj> семафора "
741 "добавляется к соответствующему семафору, достигая таким образом эффекта "
742 "выполнения операций процесса над семафорами (но смотрите раздел ДЕФЕКТЫ). "
743 "Когда значение семафора явно устанавливается с помощью запроса B<SETVAL> или "
744 "B<SETALL> вызовом B<semctl>(2), то соответствующие значения I<semadj> во "
745 "всех процессах очищаются. Флаг B<CLONE_SYSVSEM> B<clone>(2) позволяет "
746 "нескольким процессам совместно использовать список I<semadj>; подробности "
747 "смотрите в B<clone>(2)."
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore "
754 "can all be retrieved using appropriate B<semctl>(2) calls."
755 msgstr ""
756 "Значения I<semval>, I<sempid>, I<semzcnt> и I<semnct> семафора можно "
757 "получить с помощью соответствующих вызовов B<semctl>(2)."
758
759 #. type: SS
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid "Semaphore limits"
764 msgstr "Ограничения семафоров"
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid ""
770 "The following limits on semaphore set resources affect the B<semop>() call:"
771 msgstr ""
772 "Ниже приведены лимиты ресурсов наборов семафоров, влияющие на вызов "
773 "B<semop>():"
774
775 #. type: TP
776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
778 #, no-wrap
779 msgid "B<SEMOPM>"
780 msgstr "B<SEMOPM>"
781
782 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
783 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
784 #. See comment in Linux 3.19 source file include/uapi/linux/sem.h
785 #. type: Plain text
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 msgid ""
789 "Maximum number of operations allowed for one B<semop>() call. Before Linux "
790 "3.19, the default value for this limit was 32. Since Linux 3.19, the "
791 "default value is 500. On Linux, this limit can be read and modified via the "
792 "third field of I</proc/sys/kernel/sem>. I<Note>: this limit should not be "
793 "raised above 1000, because of the risk of that B<semop>() fails due to "
794 "kernel memory fragmentation when allocating memory to copy the I<sops> array."
795 msgstr ""
796 "Максимальное количество операций, разрешённых для одного вызова B<semop>(). "
797 "До версии Linux 3.19, значение по умолчанию было 3. Начиная с Linux 3.19, "
798 "значение по умолчанию равно 500. В Linux это ограничение можно прочитать и "
799 "изменить через третье поле I</proc/sys/kernel/sem>. I<Замечание>: это "
800 "ограничение не должно превышать 1000, так как есть риск, что B<semop>(2) "
801 "завершится с ошибкой из-за фрагментации памяти ядра при выделении памяти при "
802 "копировании массива I<sops>."
803
804 #. type: TP
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "B<SEMVMX>"
809 msgstr "B<SEMVMX>"
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid ""
815 "Maximum allowable value for I<semval>: implementation dependent (32767)."
816 msgstr ""
817 "Максимально допустимое значение I<semval>: зависит от реализации (32767)."
818
819 #. type: Plain text
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 msgid ""
823 "The implementation has no intrinsic limits for the adjust on exit maximum "
824 "value (B<SEMAEM>), the system wide maximum number of undo structures "
825 "(B<SEMMNU>) and the per-process maximum number of undo entries system "
826 "parameters."
827 msgstr ""
828 "Реализация не накладывает существенных ограничений на максимальное значение "
829 "(B<SEMAEM>), на которое можно изменить значение семафора при выходе, "
830 "максимальное количество системных структур откатываемых операций (B<SEMMNU>) "
831 "и максимальное количество элементов отката системных параметров на процесс."
832
833 #. type: SH
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "BUGS"
838 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 msgid ""
844 "When a process terminates, its set of associated I<semadj> structures is "
845 "used to undo the effect of all of the semaphore operations it performed with "
846 "the B<SEM_UNDO> flag. This raises a difficulty: if one (or more) of these "
847 "semaphore adjustments would result in an attempt to decrease a semaphore's "
848 "value below zero, what should an implementation do? One possible approach "
849 "would be to block until all the semaphore adjustments could be performed. "
850 "This is however undesirable since it could force process termination to "
851 "block for arbitrarily long periods. Another possibility is that such "
852 "semaphore adjustments could be ignored altogether (somewhat analogously to "
853 "failing when B<IPC_NOWAIT> is specified for a semaphore operation). Linux "
854 "adopts a third approach: decreasing the semaphore value as far as possible "
855 "(i.e., to zero) and allowing process termination to proceed immediately."
856 msgstr ""
857 "При завершении процесса его набор связанных структур I<semadj> используется "
858 "для отката выполненных действий над семафорами, для которых был установлен "
859 "флаг B<SEM_UNDO>. Это повышает сложность: если одно (или более) этих "
860 "изменений семафоров привело бы в результате к попытке уменьшить значение "
861 "семафора ниже нуля, что должно быть сделано в реализации? Одним из возможных "
862 "решений была бы блокировка до тех пор, пока не выполнятся все изменения "
863 "семафоров. Однако это нежелательно, так как это привело бы к блокированию "
864 "процесса на неопределённый срок при его завершении. Другим вариантом "
865 "является игнорирование сразу всех изменений семафоров (в некоторой степени, "
866 "аналогично завершению с ошибкой, когда для операции с семафором указан "
867 "B<IPC_NOWAIT>). В Linux используется третий вариант: уменьшение значения "
868 "семафора до тех пор, пока это возможно ( т.е. до нуля) и разрешение "
869 "немедленного завершения процесса."
870
871 #. The bug report:
872 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2
873 #. the fix:
874 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, fuzzy
879 #| msgid ""
880 #| "In kernels 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
881 #| "prevents a thread that is waiting for a semaphore value to become zero "
882 #| "from being woken up when the value does actually become zero. This bug "
883 #| "is fixed in kernel 2.6.11."
884 msgid ""
885 "In Linux 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
886 "prevents a thread that is waiting for a semaphore value to become zero from "
887 "being woken up when the value does actually become zero. This bug is fixed "
888 "in Linux 2.6.11."
889 msgstr ""
890 "В ядрах 2.6.x, где x E<lt>= 10, есть дефект, из-за которого при определённых "
891 "обстоятельствах нить, ожидающая установления значения семафора равного нулю, "
892 "не будет разбужен когда значение станет равным нулю. Этот дефект исправлен в "
893 "ядре 2.6.11."
894
895 #. type: SH
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 #, no-wrap
899 msgid "EXAMPLES"
900 msgstr "ПРИМЕРЫ"
901
902 #. type: Plain text
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 msgid ""
906 "The following code segment uses B<semop>() to atomically wait for the value "
907 "of semaphore 0 to become zero, and then increment the semaphore value by one."
908 msgstr ""
909 "В следующем фрагменте кода используется B<semop>() для атомарного ожидания "
910 "момента, когда значение семафора 0 станет равным нулю и последующего "
911 "увеличения значения семафора на единицу."
912
913 #. type: Plain text
914 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
915 #: opensuse-tumbleweed
916 #, no-wrap
917 msgid ""
918 "struct sembuf sops[2];\n"
919 "int semid;\n"
920 "\\&\n"
921 "/* Code to set \\f[I]semid\\fR omitted */\n"
922 "\\&\n"
923 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
924 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
925 "sops[0].sem_flg = 0;\n"
926 "\\&\n"
927 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
928 "sops[1].sem_op = 1; /* Increment value by one */\n"
929 "sops[1].sem_flg = 0;\n"
930 "\\&\n"
931 "if (semop(semid, sops, 2) == -1) {\n"
932 " perror(\"semop\");\n"
933 " exit(EXIT_FAILURE);\n"
934 "}\n"
935 msgstr ""
936
937 #. type: Plain text
938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
940 #, fuzzy
941 #| msgid "An example of the use of B<sendto>() is shown in B<getaddrinfo>(3)."
942 msgid ""
943 "A further example of the use of B<semop>() can be found in B<shmop>(2)."
944 msgstr "Пример использования B<sendto>() показан в B<getaddrinfo>(3)."
945
946 #. type: SH
947 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
948 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
949 #, no-wrap
950 msgid "SEE ALSO"
951 msgstr "СМОТРИТЕ ТАКЖЕ"
952
953 #. type: Plain text
954 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
955 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
956 msgid ""
957 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
958 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
959 msgstr ""
960 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
961 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
962
963 #. type: TH
964 #: debian-trixie
965 #, no-wrap
966 msgid "2024-05-02"
967 msgstr "2 мая 2024 г."
968
969 #. type: TH
970 #: debian-trixie
971 #, no-wrap
972 msgid "Linux man-pages 6.9.1"
973 msgstr "Страницы руководства Linux 6.9.1"
974
975 #. type: Plain text
976 #: debian-trixie
977 msgid "Standard C library (I<libc>, I<-lc>)"
978 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
979
980 #. type: Plain text
981 #: debian-trixie fedora-44 fedora-rawhide
982 msgid "POSIX.1-2008."
983 msgstr "POSIX.1-2008."
984
985 #. type: SH
986 #: debian-trixie fedora-44 fedora-rawhide
987 #, no-wrap
988 msgid "VERSIONS"
989 msgstr "ВЕРСИИ"
990
991 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
992 #. type: Plain text
993 #: debian-trixie fedora-44 fedora-rawhide
994 msgid ""
995 "Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
996 "SVr4."
997 msgstr ""
998
999 #. type: Plain text
1000 #: debian-trixie fedora-44 fedora-rawhide
1001 #, no-wrap
1002 msgid ""
1003 "struct sembuf sops[2];\n"
1004 "int semid;\n"
1005 "\\&\n"
1006 "/* Code to set I<semid> omitted */\n"
1007 "\\&\n"
1008 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
1009 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
1010 "sops[0].sem_flg = 0;\n"
1011 "\\&\n"
1012 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
1013 "sops[1].sem_op = 1; /* Increment value by one */\n"
1014 "sops[1].sem_flg = 0;\n"
1015 "\\&\n"
1016 "if (semop(semid, sops, 2) == -1) {\n"
1017 " perror(\"semop\");\n"
1018 " exit(EXIT_FAILURE);\n"
1019 "}\n"
1020 msgstr ""
1021
1022 #. type: TH
1023 #: fedora-44 fedora-rawhide
1024 #, no-wrap
1025 msgid "2024-07-23"
1026 msgstr "23 июля 2024 г."
1027
1028 #. type: TH
1029 #: fedora-44 fedora-rawhide
1030 #, no-wrap
1031 msgid "Linux man-pages 6.13"
1032 msgstr "Страницы руководства Linux 6.13"
1033
1034 #. type: TH
1035 #: mageia-cauldron
1036 #, no-wrap
1037 msgid "Linux man-pages 6.17"
1038 msgstr "Страницы руководства Linux 6.17"
1039
1040 #. type: TH
1041 #: opensuse-leap-16-1 opensuse-tumbleweed
1042 #, no-wrap
1043 msgid "Linux man-pages (unreleased)"
1044 msgstr "Страницы руководства Linux (не выпущены)"