Debian Codegraph @

po/es/man2/semop.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Miguel Pérez Ibars <[email protected]>, 2004.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
9 "PO-Revision-Date: 2023-05-05 00:13+0200\n"
10 "Last-Translator: Miguel Pérez Ibars <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "semop"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr "8 Febrero 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, fuzzy, no-wrap
36 #| msgid "Linux man-pages 6.17"
37 msgid "Linux man-pages 6.18"
38 msgstr "Páginas de Manual de Linux 6.17"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NOMBRE"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, fuzzy
51 #| msgid "semop - semaphore operations"
52 msgid "semop, semtimedop - System V semaphore operations"
53 msgstr "semop - operaciones con semáforos"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
73 msgstr "SINOPSIS"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
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 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
88 #| "B< const struct timespec *>I<timeout>B<);>\n"
89 msgid ""
90 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
91 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
92 "B< const struct timespec *_Nullable >I<timeout>B<);>\n"
93 msgstr ""
94 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
95 "B< const struct timespec *>I<timeout>B<);>\n"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
102 msgstr ""
103 "Requisitos de Macros de Prueba de Características para glibc (véase "
104 "B<feature_test_macros>(7)):"
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 #, fuzzy
110 #| msgid "semtimedop()"
111 msgid "B<semtimedop>():"
112 msgstr "semtimedop()"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid " _GNU_SOURCE\n"
119 msgstr " _GNU_SOURCE\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 "DESCRIPCIÓN"
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 "Each semaphore in a System\\ V semaphore set has the following associated "
133 "values:"
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, fuzzy, no-wrap
140 #| msgid ""
141 #| "unsigned short semval; /* semaphore value */\n"
142 #| "unsigned short semzcnt; /* # waiting for zero */\n"
143 #| "unsigned short semncnt; /* # waiting for increase */\n"
144 #| "pid_t sempid; /* process that did last op */\n"
145 msgid ""
146 "unsigned short semval; /* semaphore value */\n"
147 "unsigned short semzcnt; /* # waiting for zero */\n"
148 "unsigned short semncnt; /* # waiting for increase */\n"
149 "pid_t sempid; /* PID of process that last\n"
150 " modified the semaphore value */\n"
151 msgstr ""
152 "unsigned short semval; /* valor del semáforo */\n"
153 "unsigned short semzcnt; /* # esperando por cero */\n"
154 "unsigned short semncnt; /* # esperando por incremento */\n"
155 "pid_t sempid; /* proceso que hizo la última operación */\n"
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, fuzzy
161 #| msgid ""
162 #| "The function B<semop> performs operations on selected members of the "
163 #| "semaphore set indicated by I<semid>. Each of the I<nsops> elements in "
164 #| "the array pointed to by I<sops> specifies an operation to be performed on "
165 #| "a semaphore by a B<struct sembuf> including the following members:"
166 msgid ""
167 "B<semop>() performs operations on selected semaphores in the set indicated "
168 "by I<semid>. Each of the I<nsops> elements in the array pointed to by "
169 "I<sops> is a structure that specifies an operation to be performed on a "
170 "single semaphore. The elements of this structure are of type I<struct "
171 "sembuf>, containing the following members:"
172 msgstr ""
173 "La función B<semop> realiza operaciones sobre los miembros seleccionados del "
174 "conjunto de semáforos indicado por I<semid>. Cada uno de los I<nsops> "
175 "elementos en el array apuntado por I<sops> especifica una operación a ser "
176 "realizada en un semáforo mediante una estructura B<sembuf> que incluye los "
177 "siguientes miembros:"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid ""
184 "unsigned short sem_num; /* semaphore number */\n"
185 "short sem_op; /* semaphore operation */\n"
186 "short sem_flg; /* operation flags */\n"
187 msgstr ""
188 "unsigned short sem_num; /* número de semáforo */\n"
189 "short sem_op; /* operación sobre el semáforo */\n"
190 "short sem_flg; /* banderas o indicadores para la operación */\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 #, fuzzy
196 #| msgid ""
197 #| "Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
198 #| "operation asserts B<SEM_UNDO>, it will be undone when the process exits."
199 msgid ""
200 "Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
201 "operation specifies B<SEM_UNDO>, it will be automatically undone when the "
202 "process terminates."
203 msgstr ""
204 "Banderas reconocidas en I<sem_flg> son B<IPC_NOWAIT> y B<SEM_UNDO>. Si una "
205 "operación ejecuta B<SEM_UNDO>, será deshecha cuando el proceso finalice."
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, fuzzy
211 #| msgid ""
212 #| "The set of operations contained in I<sops> is performed I<atomically>, "
213 #| "that is, the operations are performed at the same time, and only if they "
214 #| "can all be simultaneously performed. The behaviour of the system call if "
215 #| "not all operations can be performed immediately depends on the presence "
216 #| "of the B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted "
217 #| "below."
218 msgid ""
219 "The set of operations contained in I<sops> is performed in I<array order>, "
220 "and I<atomically>, that is, the operations are performed either as a "
221 "complete unit, or not at all. The behavior of the system call if not all "
222 "operations can be performed immediately depends on the presence of the "
223 "B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted below."
224 msgstr ""
225 "El conjunto de operaciones contenido en I<sops> se realiza de forma "
226 "I<atómica,> es decir, las operaciones son llevadas a cabo al mismo tiempo, y "
227 "sólo si pueden ser realizadas simultáneamente. El comportamiento de la "
228 "llamada al sistema en caso de que no todas las operaciones puedan realizarse "
229 "inmediatamente depende de la presencia de la bandera B<IPC_NOWAIT> en los "
230 "campos I<sem_flg> individuales, como se ve más abajo."
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, fuzzy
236 #| msgid ""
237 #| "Each operation is performed on the I<sem_num>-th semaphore of the "
238 #| "semaphore set, where the first semaphore of the set is semaphore B<0>. "
239 #| "There are three types of operation, distinguished by the value of "
240 #| "I<sem_op>."
241 msgid ""
242 "Each operation is performed on the I<sem_num>-th semaphore of the semaphore "
243 "set, where the first semaphore of the set is numbered 0. There are three "
244 "types of operation, distinguished by the value of I<sem_op>."
245 msgstr ""
246 "Cada operación es ejecutada en el semáforo numero I<sem_num> donde el primer "
247 "semáforo del conjunto es el semáforo B<0>. Hay tres tipos de operación, que "
248 "se distinguen por el valor de I<sem_op>."
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, fuzzy
254 #| msgid ""
255 #| "If I<sem_op> is a positive integer, the operation adds this value to the "
256 #| "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is asserted for "
257 #| "this operation, the system updates the process undo count (I<semadj>) "
258 #| "for this semaphore. This operation can always proceed - it never forces "
259 #| "a process to wait. The calling process must have alter permission on the "
260 #| "semaphore set."
261 msgid ""
262 "If I<sem_op> is a positive integer, the operation adds this value to the "
263 "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for "
264 "this operation, the system subtracts the value I<sem_op> from the semaphore "
265 "adjustment (I<semadj>) value for this semaphore. This operation can always "
266 "proceed\\[em]it never forces a thread to wait. The calling process must "
267 "have alter permission on the semaphore set."
268 msgstr ""
269 "Si I<sem_op> es un entero positivo, la operación añade este valor al valor "
270 "del semáforo (I<semval>)I<.> Además, si B<SEM_UNDO> es invocado para esta "
271 "operación, el sistema actualiza el contador del proceso para operaciones "
272 "\"undo\" (I<semadj>) para este semáforo. La operación siempre puede "
273 "ejecutarse - nunca fuerza a un proceso a esperar. El proceso invocador debe "
274 "tener permisos de modificación sobre el conjunto de semáforos."
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, fuzzy
280 #| msgid ""
281 #| "If I<sem_op> is zero, the process must have read access permission on the "
282 #| "semaphore set. This is a \"wait-for-zero\" operation: if I<semval> is "
283 #| "zero, the operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> "
284 #| "is asserted in I<sem_flg>, the system call fails with I<errno> set to "
285 #| "B<EAGAIN> (and none of the operations in I<sops> is performed). "
286 #| "Otherwise I<semzcnt> (the count of processes waiting until this "
287 #| "semaphore's value becomes zero) is incremented by one and the process "
288 #| "sleeps until one of the following occurs:"
289 msgid ""
290 "If I<sem_op> is zero, the process must have read permission on the semaphore "
291 "set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the "
292 "operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified "
293 "in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of "
294 "the operations in I<sops> is performed). Otherwise, I<semzcnt> (the count "
295 "of threads waiting until this semaphore's value becomes zero) is "
296 "incremented by one and the thread sleeps until one of the following occurs:"
297 msgstr ""
298 "Si I<sem_op> es cero, el proceso debe tener permiso de lectura en el "
299 "semáforo. Esta es una operación \"espera-por-cero\": si I<semval> es cero, "
300 "la operación puede ejecutarse inmediatamente. Por otra parte, si "
301 "B<IPC_NOWAIT> es invocado en I<sem_flg>, la llamada al sistema falla con la "
302 "variable B<errno> fijada a B<EAGAIN .> (y ninguna de las operaciones I<sops> "
303 "se realiza.) En otro caso I<semzcnt> (el número de procesos esperando hasta "
304 "que el valor del semáforo sea cero) es incremetada en uno y el proceso "
305 "duerme hasta que algo de lo siguiente ocurra:"
306
307 #. type: IP
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "\\[bu]"
312 msgstr "\\[bu]"
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "I<semval> becomes 0, at which time the value of I<semzcnt> is decremented."
319 msgstr ""
320 "I<semval> es 0, instante en el que el valor de I<semzcnt> es decrementeado."
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, fuzzy
326 #| msgid ""
327 #| "The semaphore set is removed: the system call fails, with I<errno> set to "
328 #| "B<EIDRM>."
329 msgid ""
330 "The semaphore set is removed: B<semop>() fails, with I<errno> set to "
331 "B<EIDRM>."
332 msgstr ""
333 "El semáforo es eliminado: la llamada al sistema falla con I<errno> fijada a "
334 "B<EIDRM>."
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, fuzzy
340 #| msgid ""
341 #| "The calling process catches a signal: the value of I<semzcnt> is "
342 #| "decremented and the system call fails, with I<errno> set to B<EINTR>."
343 msgid ""
344 "The calling thread catches a signal: the value of I<semzcnt> is decremented "
345 "and B<semop>() fails, with I<errno> set to B<EINTR>."
346 msgstr ""
347 "El proceso que lo invoca captura una señal: el valor de I<semzcnt> es "
348 "decrementado y la llamada al sistema falla con I<errno> fijada a B<EINTR>."
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, fuzzy
354 #| msgid ""
355 #| "If I<sem_op> is less than zero, the process must have alter permission on "
356 #| "the semaphore set. If I<semval> is greater than or equal to the absolute "
357 #| "value of I<sem_op>, the operation can proceed immediately: the absolute "
358 #| "value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
359 #| "asserted for this operation, the system updates the process undo count "
360 #| "(I<semadj>) for this semaphore. If the absolute value of I<sem_op> is "
361 #| "greater than I<semval>, and B<IPC_NOWAIT> is asserted in I<sem_flg>, the "
362 #| "system call fails, with I<errno> set to B<EAGAIN> (and none of the "
363 #| "operations in I<sops> is performed). Otherwise I<semncnt> (the counter "
364 #| "of processes waiting for this semaphore's value to increase) is "
365 #| "incremented by one and the process sleeps until one of the following "
366 #| "occurs:"
367 msgid ""
368 "If I<sem_op> is less than zero, the process must have alter permission on "
369 "the semaphore set. If I<semval> is greater than or equal to the absolute "
370 "value of I<sem_op>, the operation can proceed immediately: the absolute "
371 "value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
372 "specified for this operation, the system adds the absolute value of "
373 "I<sem_op> to the semaphore adjustment (I<semadj>) value for this "
374 "semaphore. If the absolute value of I<sem_op> is greater than I<semval>, "
375 "and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, with "
376 "I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is "
377 "performed). Otherwise, I<semncnt> (the counter of threads waiting for this "
378 "semaphore's value to increase) is incremented by one and the thread sleeps "
379 "until one of the following occurs:"
380 msgstr ""
381 "Si I<sem_op> es menor que cero, el proceso debe tener los permisos de "
382 "modificación sobre el semáforo. Si I<semval> es mayor que o igual que el "
383 "valor absoluto de I<sem_op>, la operación puede ejecutarse inmediatamente: "
384 "el valor absoluto de I<sem_op> es restado a I<semval>. y, si B<SEM_UNDO> es "
385 "invocado para esta operación, el sistema actualiza el contador \"undo\" del "
386 "proceso (I<semadj>) para este semáforo. Si el valor absoluto de I<sem_op> "
387 "es mayor que I<semval>, y B<IPC_NOWAIT> está presente en I<sem_flg>, la "
388 "llamada al sistema falla con I<errno> fijado a B<EAGAIN>. (y ninguna de las "
389 "operaciones I<sops> se realiza.) En otro caso I<semncnt> (el número de "
390 "procesos esperando a que se incremente el valor de este semáforo) es "
391 "incrementado en uno y el proceso duerme hasta que ocurra:"
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 "I<semval> becomes greater than or equal to the absolute value of I<sem_op>: "
398 "the operation now proceeds, as described above."
399 msgstr ""
400
401 #. type: Plain text
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, fuzzy
405 #| msgid ""
406 #| "The semaphore set is removed from the system: the system call fails with "
407 #| "I<errno> set to B<EIDRM>."
408 msgid ""
409 "The semaphore set is removed from the system: B<semop>() fails, with "
410 "I<errno> set to B<EIDRM>."
411 msgstr ""
412 "El semáforo es es eliminado del sistema: la llamada al sistema falla con "
413 "I<errno> fijado a B<EIDRM>."
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, fuzzy
419 #| msgid ""
420 #| "The calling process catches a signal: the value of I<semncnt> is "
421 #| "decremented and the system call fails with I<errno> set to B<EINTR>."
422 msgid ""
423 "The calling thread catches a signal: the value of I<semncnt> is decremented "
424 "and B<semop>() fails, with I<errno> set to B<EINTR>."
425 msgstr ""
426 "El proceso invocador captura una señal: el valor de I<semncnt> es "
427 "decrementado y la llamada al sistema falla con I<errno> fijado a B<EINTR>."
428
429 #. and
430 #. .I sem_ctime
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, fuzzy
435 #| msgid ""
436 #| "On successful completion, the I<sempid> value for each semaphore "
437 #| "specified in the array pointed to by I<sops> is set to the process ID of "
438 #| "the calling process. In addition, the I<sem_otime> is set to the current "
439 #| "time."
440 msgid ""
441 "On successful completion, the I<sempid> value for each semaphore specified "
442 "in the array pointed to by I<sops> is set to the caller's process ID. In "
443 "addition, the I<sem_otime> is set to the current time."
444 msgstr ""
445 "En caso de que haya funcionado, el valor I<sempid> para cada semáforo "
446 "especificado en el array apuntado por I<sops> es fijado al identificador del "
447 "proceso del proceso invocador. Además I<sem_otime> es puesto a la hora "
448 "actual."
449
450 #. type: SS
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "semtimedop()"
455 msgstr "semtimedop()"
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 msgid ""
461 "B<semtimedop>() behaves identically to B<semop>() except that in those "
462 "cases where the calling thread would sleep, the duration of that sleep is "
463 "limited by the amount of elapsed time specified by the I<timespec> structure "
464 "whose address is passed in the I<timeout> argument. (This sleep interval "
465 "will be rounded up to the system clock granularity, and kernel scheduling "
466 "delays mean that the interval may overrun by a small amount.) If the "
467 "specified time limit has been reached, B<semtimedop>() fails with I<errno> "
468 "set to B<EAGAIN> (and none of the operations in I<sops> is performed). If "
469 "the I<timeout> argument is NULL, then B<semtimedop>() behaves exactly like "
470 "B<semop>()."
471 msgstr ""
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "Note that if B<semtimedop>() is interrupted by a signal, causing the call "
478 "to fail with the error B<EINTR>, the contents of I<timeout> are left "
479 "unchanged."
480 msgstr ""
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "RETURN VALUE"
487 msgstr "VALOR DEVUELTO"
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
493 #| msgid ""
494 #| "If successful the system call returns B<0>, otherwise it returns B<-1> "
495 #| "with I<errno> indicating the error."
496 msgid ""
497 "On success, B<semop>() and B<semtimedop>() return 0. On failure, they "
498 "return -1, and set I<errno> to indicate the error."
499 msgstr ""
500 "Si todo ha sido correcto la llamada al sistema devuelve B<0>, en otro caso "
501 "devuelve B<-1> con I<errno> indicando el error."
502
503 #. type: SH
504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
506 #, no-wrap
507 msgid "ERRORS"
508 msgstr "ERRORES"
509
510 #. type: TP
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "B<E2BIG>"
515 msgstr "B<E2BIG>"
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "The argument I<nsops> is greater than B<SEMOPM>, the maximum number of "
522 "operations allowed per system call."
523 msgstr ""
524 "El argumento I<nsops> es mayor que B<SEMOPM>, el numero máximo de "
525 "operaciones permitidas por llamada del sistema."
526
527 #. type: TP
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "B<EACCES>"
532 msgstr "B<EACCES>"
533
534 #. type: Plain text
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 msgid ""
538 "The calling process does not have the permissions required to perform the "
539 "specified semaphore operations, and does not have the B<CAP_IPC_OWNER> "
540 "capability in the user namespace that governs its IPC namespace."
541 msgstr ""
542
543 #. type: TP
544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
546 #, no-wrap
547 msgid "B<EAGAIN>"
548 msgstr "B<EAGAIN>"
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, fuzzy
554 #| msgid ""
555 #| "An operation could not proceed immediately and B<IPC_NOWAIT> was asserted "
556 #| "in its I<sem_flg>."
557 msgid ""
558 "An operation could not proceed immediately and either B<IPC_NOWAIT> was "
559 "specified in I<sem_flg> or the time limit specified in I<timeout> expired."
560 msgstr ""
561 "Una operación no puede ser ejecutada inmediatamente y B<IPC_NOWAIT> ha sido "
562 "invocada en su I<sem_flg>."
563
564 #. type: TP
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "B<EFAULT>"
569 msgstr "B<EFAULT>"
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, fuzzy
575 #| msgid "The address pointed to by I<sops> isn't accessible."
576 msgid ""
577 "An address specified in either the I<sops> or the I<timeout> argument isn't "
578 "accessible."
579 msgstr "La direccion apuntada por I<sops> no es accesible."
580
581 #. type: TP
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 #, no-wrap
585 msgid "B<EFBIG>"
586 msgstr "B<EFBIG>"
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid ""
592 "For some operation the value of I<sem_num> is less than 0 or greater than or "
593 "equal to the number of semaphores in the set."
594 msgstr ""
595 "Para algunas operaciones el valor de I<sem_num> es menor que 0 o mayor o "
596 "igual que el numero de semáforos en el conjunto."
597
598 #. type: TP
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 #, no-wrap
602 msgid "B<EIDRM>"
603 msgstr "B<EIDRM>"
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid "The semaphore set was removed."
609 msgstr "El conjunto de semáforos ha sido eliminado."
610
611 #. type: TP
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, no-wrap
615 msgid "B<EINTR>"
616 msgstr "B<EINTR>"
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, fuzzy
622 #| msgid "While blocked in this system call, the process caught a signal."
623 msgid ""
624 "While blocked in this system call, the thread caught a signal; see "
625 "B<signal>(7)."
626 msgstr ""
627 "Mientras estaba bloqueado en esta llamada al sistema, el proceso capturó una "
628 "señal."
629
630 #. type: TP
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 #, no-wrap
634 msgid "B<EINVAL>"
635 msgstr "B<EINVAL>"
636
637 #. type: Plain text
638 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
639 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
640 msgid ""
641 "The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> "
642 "has a nonpositive value."
643 msgstr ""
644 "Este conjunto de semáforos no existe, o I<semid> es menor que cero, o "
645 "I<nsops> tiene un valor no-positivo."
646
647 #. type: TP
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "B<ENOMEM>"
652 msgstr "B<ENOMEM>"
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, fuzzy
658 #| msgid ""
659 #| "The I<sem_flg> of some operation asserted B<SEM_UNDO> and the system does "
660 #| "not have enough memory to allocate the undo structure."
661 msgid ""
662 "The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does "
663 "not have enough memory to allocate the undo structure."
664 msgstr ""
665 "El I<sem_flg> de alguna operación invoco B<SEM_UNDO> y el sistema no tiene "
666 "suficiente memoria para alojar la estructura \"undo\"."
667
668 #. type: TP
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "B<ERANGE>"
673 msgstr "B<ERANGE>"
674
675 #. type: Plain text
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 msgid ""
679 "For some operation I<sem_op+semval> is greater than B<SEMVMX>, the "
680 "implementation dependent maximum value for I<semval>."
681 msgstr ""
682 "Para alguna operacion I<sem_op+semval> es mayor que B<SEMVMX>, el valor "
683 "máximo dependiente de la implementación para I<semval>."
684
685 #. type: SH
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid "STANDARDS"
690 msgstr "ESTÁNDARES"
691
692 #. type: Plain text
693 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
694 #: opensuse-tumbleweed
695 msgid "POSIX.1-2024."
696 msgstr "POSIX.1-2024."
697
698 #. type: SH
699 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
700 #: opensuse-tumbleweed
701 #, no-wrap
702 msgid "HISTORY"
703 msgstr "HISTORIAL"
704
705 #. type: TP
706 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
707 #: opensuse-tumbleweed
708 #, fuzzy, no-wrap
709 #| msgid "semtimedop()"
710 msgid "B<semop>()"
711 msgstr "semtimedop()"
712
713 #. type: Plain text
714 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
715 #: opensuse-tumbleweed
716 #, fuzzy
717 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
718 msgid "SVr4, POSIX.1-2001."
719 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
720
721 #. type: TP
722 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
723 #: opensuse-tumbleweed
724 #, fuzzy, no-wrap
725 #| msgid "semtimedop()"
726 msgid "B<semtimedop>()"
727 msgstr "semtimedop()"
728
729 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
730 #. type: Plain text
731 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
732 #: opensuse-tumbleweed
733 msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3."
734 msgstr ""
735
736 #. type: SH
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 #, no-wrap
740 msgid "NOTES"
741 msgstr "NOTAS"
742
743 #. type: Plain text
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, fuzzy
747 #| msgid ""
748 #| "The I<sem_undo> structures of a process aren't inherited across a "
749 #| "B<fork>(2) system call, but they are inherited across a B<execve>(2) "
750 #| "system call."
751 msgid ""
752 "The I<sem_undo> structures of a process aren't inherited by the child "
753 "produced by B<fork>(2), but they are inherited across an B<execve>(2) "
754 "system call."
755 msgstr ""
756 "Las estructuras I<sem_undo> de un proceso no son heredadas tras la ejecución "
757 "de B<fork>(2) , pero sí tras la ejecución de B<execve>(2)."
758
759 #. type: Plain text
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, fuzzy
763 #| msgid ""
764 #| "B<semop> is never automatically restarted after being interrupted by a "
765 #| "signal handler, regardless of the setting of the B<SA_RESTART> flags when "
766 #| "establishing a signal handler."
767 msgid ""
768 "B<semop>() is never automatically restarted after being interrupted by a "
769 "signal handler, regardless of the setting of the B<SA_RESTART> flag when "
770 "establishing a signal handler."
771 msgstr ""
772 "B<semop> no es reiniciada nunca automáticamente después de haber sido "
773 "interrumpida por un manejador de señales, sin importar que las banderas "
774 "B<SA_RESTART> estén presentes cuando se establezca el manejador señales."
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 "A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore "
781 "integer that is the negated sum of all operations performed on a semaphore "
782 "specifying the B<SEM_UNDO> flag. Each process has a list of I<semadj> "
783 "values\\[em]one value for each semaphore on which it has operated using "
784 "B<SEM_UNDO>. When a process terminates, each of its per-semaphore I<semadj> "
785 "values is added to the corresponding semaphore, thus undoing the effect of "
786 "that process's operations on the semaphore (but see BUGS below). When a "
787 "semaphore's value is directly set using the B<SETVAL> or B<SETALL> request "
788 "to B<semctl>(2), the corresponding I<semadj> values in all processes are "
789 "cleared. The B<clone>(2) B<CLONE_SYSVSEM> flag allows more than one "
790 "process to share a I<semadj> list; see B<clone>(2) for details."
791 msgstr ""
792
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid ""
797 "The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore "
798 "can all be retrieved using appropriate B<semctl>(2) calls."
799 msgstr ""
800 "Los valores I<semval>, I<sempid>, I<semzcnt>, y I<semnct> para un semáforo "
801 "pueden ser obtenidos usando llamadas B<semctl>(2) apropiadas."
802
803 #. type: SS
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 #, no-wrap
807 msgid "Semaphore limits"
808 msgstr ""
809
810 #. type: Plain text
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 #, fuzzy
814 #| msgid ""
815 #| "The followings are limits on semaphore set resources affecting a B<semop> "
816 #| "call:"
817 msgid ""
818 "The following limits on semaphore set resources affect the B<semop>() call:"
819 msgstr ""
820 "Los siguientes valores son limites en el conjunto de recursos de los "
821 "semáforos q ue afecta a B<semop>:"
822
823 #. type: TP
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 #, no-wrap
827 msgid "B<SEMOPM>"
828 msgstr "B<SEMOPM>"
829
830 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
831 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
832 #. See comment in Linux 3.19 source file include/uapi/linux/sem.h
833 #. type: Plain text
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 msgid ""
837 "Maximum number of operations allowed for one B<semop>() call. Before Linux "
838 "3.19, the default value for this limit was 32. Since Linux 3.19, the "
839 "default value is 500. On Linux, this limit can be read and modified via the "
840 "third field of I</proc/sys/kernel/sem>. I<Note>: this limit should not be "
841 "raised above 1000, because of the risk of that B<semop>() fails due to "
842 "kernel memory fragmentation when allocating memory to copy the I<sops> array."
843 msgstr ""
844
845 #. type: TP
846 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
847 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
848 #, no-wrap
849 msgid "B<SEMVMX>"
850 msgstr "B<SEMVMX>"
851
852 #. type: Plain text
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 msgid ""
856 "Maximum allowable value for I<semval>: implementation dependent (32767)."
857 msgstr ""
858 "Valor máximo permitido para I<semval>: dependiente de la implementación "
859 "(32767)."
860
861 #. type: Plain text
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 msgid ""
865 "The implementation has no intrinsic limits for the adjust on exit maximum "
866 "value (B<SEMAEM>), the system wide maximum number of undo structures "
867 "(B<SEMMNU>) and the per-process maximum number of undo entries system "
868 "parameters."
869 msgstr ""
870 "La implementación no contiene límites intrínsecos para ajustar el valor "
871 "máximo de la salida (B<SEMAEM>), el numero máximo de estructuras \"undo\" "
872 "que el sistema permite (B<SEMMNU>) y máximo numero de entradas \"undo\" por "
873 "proceso para los parametros del sistema."
874
875 #. type: SH
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "BUGS"
880 msgstr "ERRORES"
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "When a process terminates, its set of associated I<semadj> structures is "
887 "used to undo the effect of all of the semaphore operations it performed with "
888 "the B<SEM_UNDO> flag. This raises a difficulty: if one (or more) of these "
889 "semaphore adjustments would result in an attempt to decrease a semaphore's "
890 "value below zero, what should an implementation do? One possible approach "
891 "would be to block until all the semaphore adjustments could be performed. "
892 "This is however undesirable since it could force process termination to "
893 "block for arbitrarily long periods. Another possibility is that such "
894 "semaphore adjustments could be ignored altogether (somewhat analogously to "
895 "failing when B<IPC_NOWAIT> is specified for a semaphore operation). Linux "
896 "adopts a third approach: decreasing the semaphore value as far as possible "
897 "(i.e., to zero) and allowing process termination to proceed immediately."
898 msgstr ""
899 "Cuando un proceso termina, su conjunto de estructuras I<semadj> asociado se "
900 "utiliza para deshacer el efecto de todas las operaciones sobre semáforos que "
901 "realizó con la bandera B<SEM_UNDO.> Esto conlleva una dificultad: si una (o "
902 "más) de estas modificaciones sobre semáforos resultara en un intento de "
903 "decrementar el valor de un semáforo por debajo de cero, ¿qué debería hacer "
904 "una implementación? Una posible aproximación sería bloquearse hasta que "
905 "todas las modificaciones sobre semáforos puedan ser realizadas. Esto no es "
906 "deseable sin embargo puesto que podría bloquear la terminación del proceso "
907 "durante largos períodos arbitrarios. Otra posibilidad sería ignorar tales "
908 "modificaciones sobre semáforos por completo (algo análogo a un fallo cuando "
909 "se especifica B<IPC_NOWAIT> para una operación sobre semáforos). Linux "
910 "adopta un tercer enfoque: decrementar el valor del semáforo tanto como sea "
911 "posible (p.e., hasta cero) y permitir la terminación del proceso "
912 "inmediatamente."
913
914 #. The bug report:
915 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2
916 #. the fix:
917 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
918 #. type: Plain text
919 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
920 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
921 msgid ""
922 "In Linux 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
923 "prevents a thread that is waiting for a semaphore value to become zero from "
924 "being woken up when the value does actually become zero. This bug is fixed "
925 "in Linux 2.6.11."
926 msgstr ""
927
928 #. type: SH
929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
931 #, no-wrap
932 msgid "EXAMPLES"
933 msgstr "EJEMPLOS"
934
935 #. type: Plain text
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 msgid ""
939 "The following code segment uses B<semop>() to atomically wait for the value "
940 "of semaphore 0 to become zero, and then increment the semaphore value by one."
941 msgstr ""
942
943 #. type: Plain text
944 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
945 #: opensuse-tumbleweed
946 #, no-wrap
947 msgid ""
948 "struct sembuf sops[2];\n"
949 "int semid;\n"
950 "\\&\n"
951 "/* Code to set \\f[I]semid\\fR omitted */\n"
952 "\\&\n"
953 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
954 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
955 "sops[0].sem_flg = 0;\n"
956 "\\&\n"
957 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
958 "sops[1].sem_op = 1; /* Increment value by one */\n"
959 "sops[1].sem_flg = 0;\n"
960 "\\&\n"
961 "if (semop(semid, sops, 2) == -1) {\n"
962 " perror(\"semop\");\n"
963 " exit(EXIT_FAILURE);\n"
964 "}\n"
965 msgstr ""
966
967 #. type: Plain text
968 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
969 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
970 msgid ""
971 "A further example of the use of B<semop>() can be found in B<shmop>(2)."
972 msgstr ""
973
974 #. type: SH
975 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
976 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
977 #, no-wrap
978 msgid "SEE ALSO"
979 msgstr "VÉASE TAMBIÉN"
980
981 #. type: Plain text
982 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
983 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
984 msgid ""
985 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
986 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
987 msgstr ""
988 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
989 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
990
991 #. type: TH
992 #: debian-trixie
993 #, no-wrap
994 msgid "2024-05-02"
995 msgstr "2 Mayo 2024"
996
997 #. type: TH
998 #: debian-trixie
999 #, no-wrap
1000 msgid "Linux man-pages 6.9.1"
1001 msgstr "Páginas de Manual de Linux 6.9.1"
1002
1003 #. type: Plain text
1004 #: debian-trixie
1005 msgid "Standard C library (I<libc>, I<-lc>)"
1006 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
1007
1008 #. type: Plain text
1009 #: debian-trixie fedora-44 fedora-rawhide
1010 msgid "POSIX.1-2008."
1011 msgstr "POSIX.1-2008."
1012
1013 #. type: SH
1014 #: debian-trixie fedora-44 fedora-rawhide
1015 #, no-wrap
1016 msgid "VERSIONS"
1017 msgstr "VERSIONES"
1018
1019 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
1020 #. type: Plain text
1021 #: debian-trixie fedora-44 fedora-rawhide
1022 msgid ""
1023 "Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
1024 "SVr4."
1025 msgstr ""
1026
1027 #. type: Plain text
1028 #: debian-trixie fedora-44 fedora-rawhide
1029 #, no-wrap
1030 msgid ""
1031 "struct sembuf sops[2];\n"
1032 "int semid;\n"
1033 "\\&\n"
1034 "/* Code to set I<semid> omitted */\n"
1035 "\\&\n"
1036 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
1037 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
1038 "sops[0].sem_flg = 0;\n"
1039 "\\&\n"
1040 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
1041 "sops[1].sem_op = 1; /* Increment value by one */\n"
1042 "sops[1].sem_flg = 0;\n"
1043 "\\&\n"
1044 "if (semop(semid, sops, 2) == -1) {\n"
1045 " perror(\"semop\");\n"
1046 " exit(EXIT_FAILURE);\n"
1047 "}\n"
1048 msgstr ""
1049
1050 #. type: TH
1051 #: fedora-44 fedora-rawhide
1052 #, no-wrap
1053 msgid "2024-07-23"
1054 msgstr "23 ​​Julio 2024"
1055
1056 #. type: TH
1057 #: fedora-44 fedora-rawhide
1058 #, no-wrap
1059 msgid "Linux man-pages 6.13"
1060 msgstr "Páginas de Manual de Linux 6.13"
1061
1062 #. type: TH
1063 #: mageia-cauldron
1064 #, no-wrap
1065 msgid "Linux man-pages 6.17"
1066 msgstr "Páginas de Manual de Linux 6.17"
1067
1068 #. type: TH
1069 #: opensuse-leap-16-1 opensuse-tumbleweed
1070 #, no-wrap
1071 msgid "Linux man-pages (unreleased)"
1072 msgstr "Páginas de Manual de Linux (no publicadas)"