Debian Codegraph @

po/es/man2/semget.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 # Vicente Pastor Gómez <[email protected]>, 1998.
5 # Juan Piernas <[email protected]>, 1999.
6 # Miguel Pérez Ibars <[email protected]>, 2004.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
11 "PO-Revision-Date: 2004-09-29 19:53+0200\n"
12 "Last-Translator: Miguel Pérez Ibars <[email protected]>\n"
13 "Language-Team: Spanish <[email protected]>\n"
14 "Language: es\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, fuzzy, no-wrap
25 #| msgid "/* t_semget.c\n"
26 msgid "semget"
27 msgstr "/* t_semget.c\n"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 Febrero 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, fuzzy, no-wrap
39 #| msgid "Linux man-pages 6.17"
40 msgid "Linux man-pages 6.18"
41 msgstr "Páginas de Manual de Linux 6.17"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NOMBRE"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 #, fuzzy
54 #| msgid "semget - get a semaphore set identifier"
55 msgid "semget - get a System V semaphore set identifier"
56 msgstr "semget - obtiene el identificador de un conjunto de semáforos"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "BIBLIOTECA"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr "SINOPSIS"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
83 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 msgid ""
89 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
90 msgstr ""
91 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr "DESCRIPCIÓN"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "The B<semget>() system call returns the System\\ V semaphore set identifier "
105 "associated with the argument I<key>. It may be used either to obtain the "
106 "identifier of a previously created semaphore set (when I<semflg> is zero and "
107 "I<key> does not have the value B<IPC_PRIVATE>), or to create a new set."
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, fuzzy
114 #| msgid ""
115 #| "This function returns the semaphore set identifier associated with the "
116 #| "argument I<key>. A new set of I<nsems> semaphores is created if I<key> "
117 #| "has the value B<IPC_PRIVATE> or if no existing semaphore set is "
118 #| "associated to I<key> and B<IPC_CREAT> is asserted in I<semflg> (i.e. "
119 #| "I<semflg> & B<IPC_CREAT> isn't zero)."
120 msgid ""
121 "A new set of I<nsems> semaphores is created if I<key> has the value "
122 "B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and "
123 "B<IPC_CREAT> is specified in I<semflg>."
124 msgstr ""
125 "Esta función devuelve el identificador del conjunto de semáforos asociado "
126 "con el argumento I<key>. Un nuevo conjunto de I<nsems> semáforos se crea si "
127 "I<key> tiene el valor B<IPC_PRIVATE>, o si no hay un conjunto de semáforos "
128 "asociado a I<key> y el bit B<IPC_CREAT> vale 1 en I<semflg> (p.ej. "
129 "I<semflg> & B<IPC_CREAT> es distinto de cero)."
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid ""
135 "If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
136 "already exists for I<key>, then B<semget>() fails with I<errno> set to "
137 "B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | "
138 "O_EXCL> for B<open>(2).)"
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, fuzzy
145 #| msgid ""
146 #| "Upon creation, the low-order 9 bits of the argument I<semflg> define the "
147 #| "access permissions (for owner, group and others) for the semaphore set. "
148 #| "These bits have the same format, and the same meaning, as the mode "
149 #| "argument in the B<open>(2) or B<creat>(2) system calls (though the "
150 #| "execute permissions are not meaningful for semaphores, and write "
151 #| "permissions mean permission to alter semaphore values)."
152 msgid ""
153 "Upon creation, the least significant 9 bits of the argument I<semflg> define "
154 "the permissions (for owner, group, and others) for the semaphore set. "
155 "These bits have the same format, and the same meaning, as the I<mode> "
156 "argument of B<open>(2) (though the execute permissions are not meaningful "
157 "for semaphores, and write permissions mean permission to alter semaphore "
158 "values)."
159 msgstr ""
160 "Acerca de la creación, los 9 bits bajos del argumento I<semflg> definen los "
161 "permisos de acceso (para el propietario, grupo y otros) para el conjunto de "
162 "semáforos. Estos bits tienen el mismo formato, y el mismo significado que "
163 "el argumento de modo en las llamadas al sistema B<open>(2) o B<creat>(2) "
164 "(aunque los permisos de ejecución no son significativos para los semáforos, "
165 "y los permisos de escritura significan permisos para alterar los valores del "
166 "semáforo)."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, fuzzy
172 #| msgid ""
173 #| "When creating a new semaphore set, B<semget> initializes the semaphore "
174 #| "set's associated data structure B<semid_ds> as follows:"
175 msgid ""
176 "When creating a new semaphore set, B<semget>() initializes the set's "
177 "associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
178 msgstr ""
179 "Cuando se crea un nuevo conjunto de semáforos, B<semget> inicializa la "
180 "estructura de datos B<semid_ds> asociada al conjunto de semáforos como sigue:"
181
182 #. type: IP
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "\\[bu]"
187 msgstr "\\[bu]"
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
194 "calling process."
195 msgstr ""
196 "Se pone el ID de usuario efectivo del proceso que realiza la llamada en "
197 "I<sem_perm.cuid> y I<sem_perm.uid>."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
204 "the calling process."
205 msgstr ""
206 "Se pone el ID de grupo efectivo del proceso que realiza la llamada en "
207 "I<sem_perm.cgid> y I<sem_perm.gid>."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, fuzzy
213 #| msgid ""
214 #| "The low-order 9 bits of B<sem_perm.mode> are set to the low-order 9 bits "
215 #| "of I<semflg>."
216 msgid ""
217 "The least significant 9 bits of I<sem_perm.mode> are set to the least "
218 "significant 9 bits of I<semflg>."
219 msgstr ""
220 "Los 9 bits más bajos de B<sem_perm.mode> se ponen como los 9 bits más bajos "
221 "de I<semflg>."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "I<sem_nsems> is set to the value of I<nsems>."
227 msgstr "Se pone el valor de I<nsems> en I<sem_nsems>."
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid "I<sem_otime> is set to 0."
233 msgstr "I<sem_otime> se pone a 0."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid "I<sem_ctime> is set to the current time."
239 msgstr "Se pone la hora actual en I<sem_ctime>."
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "The argument I<nsems> can be 0 (a don't care) when a semaphore set is not "
246 "being created. Otherwise, I<nsems> must be greater than 0 and less than or "
247 "equal to the maximum number of semaphores per semaphore set (B<SEMMSL>)."
248 msgstr ""
249 "El argumento I<nsems> puede ser 0 (un comodín o valor sin importancia) "
250 "cuando no se está creando un conjunto de semáforos. En otro caso I<nsems> "
251 "debe ser mayor que 0 y menor o igual que el número máximo de semáforos por "
252 "conjunto de semáforos, (B<SEMMSL>)."
253
254 #. and a check is made to see if it is marked for destruction.
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, fuzzy
259 #| msgid ""
260 #| "If the semaphore set already exists, the access permissions are verified."
261 msgid "If the semaphore set already exists, the permissions are verified."
262 msgstr ""
263 "Si el conjunto de semáforos ya existe, los permisos de acceso son "
264 "verificados."
265
266 #. type: SH
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "RETURN VALUE"
271 msgstr "VALOR DEVUELTO"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, fuzzy
277 #| msgid ""
278 #| "If successful, the return value will be the semaphore set identifier (a "
279 #| "nonnegative integer), otherwise, -1 is returned, with I<errno> indicating "
280 #| "the error."
281 msgid ""
282 "On success, B<semget>() returns the semaphore set identifier (a nonnegative "
283 "integer). On failure, -1 is returned, and I<errno> is set to indicate the "
284 "error."
285 msgstr ""
286 "Si hubo éxito, el valor devuelto será el identificador del conjunto de "
287 "semáforos (un entero no negativo), de otro modo, se devuelve -1 con B<errno> "
288 "indicando el error."
289
290 #. type: SH
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "ERRORS"
295 msgstr "ERRORES"
296
297 #. type: TP
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "B<EACCES>"
302 msgstr "B<EACCES>"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, fuzzy
308 #| msgid ""
309 #| "A semaphore set exists for I<key>, but the calling process does not have "
310 #| "permission to access the set."
311 msgid ""
312 "A semaphore set exists for I<key>, but the calling process does not have "
313 "permission to access the set, and does not have the B<CAP_IPC_OWNER> "
314 "capability in the user namespace that governs its IPC namespace."
315 msgstr ""
316 "Existe un conjunto de semáforos para I<key>, pero el proceso que realiza la "
317 "llamada no tiene permisos para acceder al conjunto."
318
319 #. type: TP
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "B<EEXIST>"
324 msgstr "B<EEXIST>"
325
326 #. .TP
327 #. .B EIDRM
328 #. The semaphore set is marked to be deleted.
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore "
334 "set already exists for I<key>."
335 msgstr ""
336
337 #. type: TP
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "B<EINVAL>"
342 msgstr "B<EINVAL>"
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "I<nsems> is less than 0 or greater than the limit on the number of "
349 "semaphores per semaphore set (B<SEMMSL>)."
350 msgstr ""
351 "I<nsems> es menor que 0 o mayor que el límite en el número de semáforos por "
352 "conjunto de semáforos (B<SEMMSL>)."
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, fuzzy
358 #| msgid ""
359 #| "I<nsems> is less than 0 or greater than the limit on the number of "
360 #| "semaphores per semaphore set (B<SEMMSL>), or a semaphore set "
361 #| "corresponding to I<key> already exists, and I<nsems> is larger than the "
362 #| "number of semaphores in that set."
363 msgid ""
364 "A semaphore set corresponding to I<key> already exists, but I<nsems> is "
365 "larger than the number of semaphores in that set."
366 msgstr ""
367 "I<nsems> es menor que 0 o mayor que el límite en el número de semáforos por "
368 "conjunto de semáforos (B<SEMMSL>), o ya existe un conjunto de semáforos que "
369 "se corresponde con I<key> , y I<nsems> es mayor que el número de semáforos "
370 "en ese conjunto."
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<ENOENT>"
377 msgstr "B<ENOENT>"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, fuzzy
383 #| msgid ""
384 #| "No semaphore set exists for I<key> and I<semflg> wasn't asserting "
385 #| "B<IPC_CREAT>."
386 msgid ""
387 "No semaphore set exists for I<key> and I<semflg> did not specify "
388 "B<IPC_CREAT>."
389 msgstr ""
390 "No existe ningún conjunto de semáforos para I<key> y I<semflg> no tiene a 1 "
391 "B<IPC_CREAT>."
392
393 #. type: TP
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 #, no-wrap
397 msgid "B<ENOMEM>"
398 msgstr "B<ENOMEM>"
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "A semaphore set has to be created but the system does not have enough memory "
405 "for the new data structure."
406 msgstr ""
407 "Se ha de crear un conjunto de semáforos, pero el sistema no tiene suficiente "
408 "memoria para la nueva estructura de datos."
409
410 #. type: TP
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "B<ENOSPC>"
415 msgstr "B<ENOSPC>"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "A semaphore set has to be created but the system limit for the maximum "
422 "number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
423 "semaphores (B<SEMMNS>), would be exceeded."
424 msgstr ""
425 "Se ha de crear un conjunto de semáforos, pero el límite del sistema para el "
426 "número máximo de conjuntos de semáforos (B<SEMMNI>), o el número de "
427 "semáforos máximo del sistema (B<SEMMNS>), sería excedido."
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "STANDARDS"
434 msgstr "ESTÁNDARES"
435
436 #. type: Plain text
437 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
438 #: opensuse-tumbleweed
439 msgid "POSIX.1-2024."
440 msgstr "POSIX.1-2024."
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "HISTORY"
447 msgstr "HISTORIAL"
448
449 #. SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
450 #. ERANGE, EFAULT.
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid "SVr4, POSIX.1-2001."
455 msgstr "SVr4, POSIX.1-2001."
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "NOTES"
462 msgstr "NOTAS"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, fuzzy
468 #| msgid ""
469 #| "B<IPC_PRIVATE> isn't a flag field but a B<key_t> type. If this special "
470 #| "value is used for I<key>, the system call ignores everything but the low-"
471 #| "order 9 bits of I<semflg> and creates a new semaphore set (on success)."
472 msgid ""
473 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
474 "value is used for I<key>, the system call ignores all but the least "
475 "significant 9 bits of I<semflg> and creates a new semaphore set (on success)."
476 msgstr ""
477 "B<IPC_PRIVATE> no es un campo bandera (flag), sino que es de tipo B<key_t>. "
478 "Si este valor especial es usado para I<key>, la llamada del sistema ignora "
479 "todo excepto los 9 bits más bajos de I<semflg> y crea un nuevo conjunto de "
480 "semáforos (si hay éxito)."
481
482 #. type: SS
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "Semaphore initialization"
487 msgstr ""
488
489 #. In truth, every one of the many implementations that I've tested sets
490 #. the values to zero, but I suppose there is/was some obscure
491 #. implementation out there that does not.
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "The values of the semaphores in a newly created set are indeterminate. "
497 "(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although "
498 "POSIX.1-2008 notes that a future version of the standard may require an "
499 "implementation to initialize the semaphores to 0.) Although Linux, like "
500 "many other implementations, initializes the semaphore values to 0, a "
501 "portable application cannot rely on this: it should explicitly initialize "
502 "the semaphores to the desired values."
503 msgstr ""
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 "Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> "
510 "operation. Where multiple peers do not know who will be the first to "
511 "initialize the set, checking for a nonzero I<sem_otime> in the associated "
512 "data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be "
513 "used to avoid races."
514 msgstr ""
515
516 #. type: SS
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "Semaphore limits"
521 msgstr ""
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 #, fuzzy
527 #| msgid ""
528 #| "The followings are limits on semaphore set resources affecting a "
529 #| "B<semget> call:"
530 msgid ""
531 "The following limits on semaphore set resources affect the B<semget>() call:"
532 msgstr ""
533 "Los siguientes son límites de los recursos de los conjuntos de semáforos que "
534 "afectan a la llamada B<semget> :"
535
536 #. type: TP
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 #, no-wrap
540 msgid "B<SEMMNI>"
541 msgstr "B<SEMMNI>"
542
543 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
544 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
545 #. type: Plain text
546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
548 msgid ""
549 "System-wide limit on the number of semaphore sets. Before Linux 3.19, the "
550 "default value for this limit was 128. Since Linux 3.19, the default value "
551 "is 32,000. On Linux, this limit can be read and modified via the fourth "
552 "field of I</proc/sys/kernel/sem>."
553 msgstr ""
554
555 #. type: TP
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "B<SEMMSL>"
560 msgstr "B<SEMMSL>"
561
562 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 msgid ""
567 "Maximum number of semaphores per semaphore ID. Before Linux 3.19, the "
568 "default value for this limit was 250. Since Linux 3.19, the default value "
569 "is 32,000. On Linux, this limit can be read and modified via the first "
570 "field of I</proc/sys/kernel/sem>."
571 msgstr ""
572
573 #. type: TP
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 #, no-wrap
577 msgid "B<SEMMNS>"
578 msgstr "B<SEMMNS>"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "System-wide limit on the number of semaphores: policy dependent (on Linux, "
585 "this limit can be read and modified via the second field of I</proc/sys/"
586 "kernel/sem>). Note that the number of semaphores system-wide is also "
587 "limited by the product of B<SEMMSL> and B<SEMMNI>."
588 msgstr ""
589
590 #. type: SH
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "BUGS"
595 msgstr "ERRORES"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
602 "more clearly show its function."
603 msgstr ""
604 "La elección del nombre B<IPC_PRIVATE> fue quizás desafortunada, B<IPC_NEW> "
605 "mostraría más claramente su función."
606
607 #. type: SH
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "EXAMPLES"
612 msgstr "EJEMPLOS"
613
614 #. type: Plain text
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 msgid ""
618 "The program shown below uses B<semget>() to create a new semaphore set or "
619 "retrieve the ID of an existing set. It generates the I<key> for "
620 "B<semget>() using B<ftok>(3). The first two command-line arguments are "
621 "used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third "
622 "command-line argument is an integer that specifies the I<nsems> argument for "
623 "B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> "
624 "(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The "
625 "usage of this program is demonstrated below."
626 msgstr ""
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid ""
632 "We first create two files that will be used to generate keys using "
633 "B<ftok>(3), create two semaphore sets using those files, and then list the "
634 "sets using B<ipcs>(1):"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
639 #: opensuse-tumbleweed
640 #, no-wrap
641 msgid ""
642 "$B< touch mykey mykey2>;\n"
643 "$B< ./t_semget -c mykey p 1>;\n"
644 "ID = 9\n"
645 "$B< ./t_semget -c mykey2 p 2>;\n"
646 "ID = 10\n"
647 "$B< ipcs -s>;\n"
648 "\\&\n"
649 "------ Semaphore Arrays --------\n"
650 "key semid owner perms nsems\n"
651 "0x7004136d 9 mtk 600 1\n"
652 "0x70041368 10 mtk 600 2\n"
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as "
660 "generated by the same arguments to B<ftok>(3)), it returns the ID of the "
661 "already existing semaphore set:"
662 msgstr ""
663
664 #. type: Plain text
665 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
666 #: opensuse-tumbleweed
667 #, fuzzy, no-wrap
668 #| msgid ""
669 #| "$ B<./t_semget -c mykey p 1>\n"
670 #| "ID = 9\n"
671 msgid ""
672 "$B< ./t_semget -c mykey p 1>;\n"
673 "ID = 9\n"
674 msgstr ""
675 "$ B<./t_semget -c mykey p 1>\n"
676 "ID = 9\n"
677
678 #. type: Plain text
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 msgid ""
682 "Finally, we demonstrate the kind of collision that can occur when "
683 "B<ftok>(3) is given different I<pathname> arguments that have the same "
684 "inode number:"
685 msgstr ""
686
687 #. type: Plain text
688 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
689 #: opensuse-tumbleweed
690 #, no-wrap
691 msgid ""
692 "$B< ln mykey link>;\n"
693 "$B< ls -i1 link mykey>;\n"
694 "2233197 link\n"
695 "2233197 mykey\n"
696 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
697 "ID = 9\n"
698 msgstr ""
699
700 #. type: SS
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "Program source"
705 msgstr "Código fuente"
706
707 #. type: Plain text
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid ""
712 "/* t_semget.c\n"
713 "\\&\n"
714 " Licensed under GNU General Public License v2 or later.\n"
715 "*/\n"
716 "#include E<lt>stdio.hE<gt>\n"
717 "#include E<lt>stdlib.hE<gt>\n"
718 "#include E<lt>sys/ipc.hE<gt>\n"
719 "#include E<lt>sys/sem.hE<gt>\n"
720 "#include E<lt>unistd.hE<gt>\n"
721 "\\&\n"
722 "static void\n"
723 "usage(const char *pname)\n"
724 "{\n"
725 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
726 " pname);\n"
727 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
728 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
729 " exit(EXIT_FAILURE);\n"
730 "}\n"
731 "\\&\n"
732 "int\n"
733 "main(int argc, char *argv[])\n"
734 "{\n"
735 " int semid, nsems, flags, opt;\n"
736 " key_t key;\n"
737 "\\&\n"
738 " flags = 0;\n"
739 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
740 " switch (opt) {\n"
741 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
742 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
743 " default: usage(argv[0]);\n"
744 " }\n"
745 " }\n"
746 "\\&\n"
747 " if (argc != optind + 3)\n"
748 " usage(argv[0]);\n"
749 "\\&\n"
750 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
751 " if (key == -1) {\n"
752 " perror(\"ftok\");\n"
753 " exit(EXIT_FAILURE);\n"
754 " }\n"
755 "\\&\n"
756 " nsems = atoi(argv[optind + 2]);\n"
757 "\\&\n"
758 " semid = semget(key, nsems, flags | 0600);\n"
759 " if (semid == -1) {\n"
760 " perror(\"semget\");\n"
761 " exit(EXIT_FAILURE);\n"
762 " }\n"
763 "\\&\n"
764 " printf(\"ID = %d\\[rs]n\", semid);\n"
765 "\\&\n"
766 " exit(EXIT_SUCCESS);\n"
767 "}\n"
768 msgstr ""
769
770 #. SRC END
771 #. type: SH
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 #, no-wrap
775 msgid "SEE ALSO"
776 msgstr "VÉASE TAMBIÉN"
777
778 #. type: Plain text
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 msgid ""
782 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
783 "B<sem_overview>(7), B<sysvipc>(7)"
784 msgstr ""
785 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
786 "B<sem_overview>(7), B<sysvipc>(7)"
787
788 #. type: TH
789 #: debian-trixie
790 #, no-wrap
791 msgid "2024-06-15"
792 msgstr "15 Junio 2024"
793
794 #. type: TH
795 #: debian-trixie
796 #, no-wrap
797 msgid "Linux man-pages 6.9.1"
798 msgstr "Páginas de Manual de Linux 6.9.1"
799
800 #. type: Plain text
801 #: debian-trixie
802 msgid "Standard C library (I<libc>, I<-lc>)"
803 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
804
805 #. type: Plain text
806 #: debian-trixie fedora-44 fedora-rawhide
807 msgid "POSIX.1-2008."
808 msgstr "POSIX.1-2008."
809
810 #. type: Plain text
811 #: debian-trixie fedora-44 fedora-rawhide
812 #, no-wrap
813 msgid ""
814 "$ B<touch mykey mykey2>\n"
815 "$ B<./t_semget -c mykey p 1>\n"
816 "ID = 9\n"
817 "$ B<./t_semget -c mykey2 p 2>\n"
818 "ID = 10\n"
819 "$ B<ipcs -s>\n"
820 "\\&\n"
821 "------ Semaphore Arrays --------\n"
822 "key semid owner perms nsems\n"
823 "0x7004136d 9 mtk 600 1\n"
824 "0x70041368 10 mtk 600 2\n"
825 msgstr ""
826
827 #. type: Plain text
828 #: debian-trixie fedora-44 fedora-rawhide
829 #, no-wrap
830 msgid ""
831 "$ B<./t_semget -c mykey p 1>\n"
832 "ID = 9\n"
833 msgstr ""
834 "$ B<./t_semget -c mykey p 1>\n"
835 "ID = 9\n"
836
837 #. type: Plain text
838 #: debian-trixie fedora-44 fedora-rawhide
839 #, no-wrap
840 msgid ""
841 "$ B<ln mykey link>\n"
842 "$ B<ls -i1 link mykey>\n"
843 "2233197 link\n"
844 "2233197 mykey\n"
845 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
846 "ID = 9\n"
847 msgstr ""
848
849 #. type: TH
850 #: fedora-44 fedora-rawhide
851 #, no-wrap
852 msgid "2024-07-23"
853 msgstr "23 ​​Julio 2024"
854
855 #. type: TH
856 #: fedora-44 fedora-rawhide
857 #, no-wrap
858 msgid "Linux man-pages 6.13"
859 msgstr "Páginas de Manual de Linux 6.13"
860
861 #. type: TH
862 #: mageia-cauldron
863 #, no-wrap
864 msgid "Linux man-pages 6.17"
865 msgstr "Páginas de Manual de Linux 6.17"
866
867 #. type: TH
868 #: opensuse-leap-16-1 opensuse-tumbleweed
869 #, no-wrap
870 msgid "Linux man-pages (unreleased)"
871 msgstr "Páginas de Manual de Linux (no publicadas)"