Debian Codegraph @

po/pt_BR/man2/semget.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
10 "PO-Revision-Date: 2001-06-02 19:20-0300\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\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: Virtaal 1.0.0-beta1\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 #, no-wrap
25 msgid "semget"
26 msgstr "semget"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, fuzzy
53 #| msgid "semget - get a semaphore set identifier"
54 msgid "semget - get a System V semaphore set identifier"
55 msgstr "semget - obtém um identificador de conjunto de semáforos"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "BIBLIOTECA"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "SINOPSE"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
82 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 msgid ""
88 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
89 msgstr ""
90 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
91
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr "DESCRIÇÃO"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "The B<semget>() system call returns the System\\ V semaphore set identifier "
104 "associated with the argument I<key>. It may be used either to obtain the "
105 "identifier of a previously created semaphore set (when I<semflg> is zero and "
106 "I<key> does not have the value B<IPC_PRIVATE>), or to create a new set."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "A new set of I<nsems> semaphores is created if I<key> has the value "
114 "B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and "
115 "B<IPC_CREAT> is specified in I<semflg>."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
123 "already exists for I<key>, then B<semget>() fails with I<errno> set to "
124 "B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | "
125 "O_EXCL> for B<open>(2).)"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, fuzzy
132 #| msgid ""
133 #| "Upon creation, the lower 9 bits of the argument I<semflg> define the "
134 #| "access permissions (for owner, group and others) to the semaphore set in "
135 #| "the same format, and with the same meaning, as for the access permissions "
136 #| "parameter in the B<open>(2) or B<creat>(2) system calls (though the "
137 #| "execute permissions are not used by the system, and write permissions, "
138 #| "for a semaphore set, effectively means alter permissions)."
139 msgid ""
140 "Upon creation, the least significant 9 bits of the argument I<semflg> define "
141 "the permissions (for owner, group, and others) for the semaphore set. "
142 "These bits have the same format, and the same meaning, as the I<mode> "
143 "argument of B<open>(2) (though the execute permissions are not meaningful "
144 "for semaphores, and write permissions mean permission to alter semaphore "
145 "values)."
146 msgstr ""
147 "No momento da criação, os 9 bits menos significativos do argumento I<semflg> "
148 "definem as permissões de acesso (para proprietário, grupo e outros) para o "
149 "conjunto de semáforos no mesmo formato, e com o mesmo significado, do "
150 "parâmetro de permissões de acesso nas chamadas de sistema B<open>(2) ou "
151 "B<creat>(2) (embora as permissões de execução não sejam utilizadas pelo "
152 "sistema e permissões de escrita, para um conjunto de semáforos, efetivamente "
153 "significam permissões de alteração)."
154
155 #. type: Plain text
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, fuzzy
159 #| msgid ""
160 #| "Furthermore, while creating, the system call initializes the system "
161 #| "semaphore set data structure B<semid_ds> as follows:"
162 msgid ""
163 "When creating a new semaphore set, B<semget>() initializes the set's "
164 "associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
165 msgstr ""
166 "Além disso, quando da criação, a chamada de sistema inicializa a estrutura "
167 "de dados para conjunto de semáforos do sistema B<semid_ds> como segue:"
168
169 #. type: IP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "\\[bu]"
174 msgstr "\\[bu]"
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
181 "calling process."
182 msgstr ""
183 "I<sem_perm.cuid> e I<sem_perm.uid> são definidos para o user-ID efetivo do "
184 "processo chamador."
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
191 "the calling process."
192 msgstr ""
193 "I<sem_perm.cgid> e I<sem_perm.gid> são definidos para o group-ID efetivo do "
194 "processo chamador."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, fuzzy
200 #| msgid ""
201 #| "The lowest order 9 bits of B<sem_perm.mode> are set to the lowest order 9 "
202 #| "bit of I<semflg>."
203 msgid ""
204 "The least significant 9 bits of I<sem_perm.mode> are set to the least "
205 "significant 9 bits of I<semflg>."
206 msgstr ""
207 "O 9 bits menos significativos de B<sem_perm.mode> são definidos para os 9 "
208 "bits de mais baixa ordem de I<semflg>."
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid "I<sem_nsems> is set to the value of I<nsems>."
214 msgstr "I<sem_nsems> é definido para o valor de I<nsems>."
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "I<sem_otime> is set to 0."
220 msgstr "I<sem_otime> é definido para 0."
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 "I<sem_ctime> is set to the current time."
226 msgstr "I<sem_ctime> é definido para a hora atual."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, fuzzy
232 #| msgid ""
233 #| "The argument I<nsems> can be B<0> (a don't care) when the system call "
234 #| "isn't a create one. Otherwise I<nsems> must be greater than B<0> and "
235 #| "less or equal to the maximum number of semaphores per semid, (B<SEMMSL>)."
236 msgid ""
237 "The argument I<nsems> can be 0 (a don't care) when a semaphore set is not "
238 "being created. Otherwise, I<nsems> must be greater than 0 and less than or "
239 "equal to the maximum number of semaphores per semaphore set (B<SEMMSL>)."
240 msgstr ""
241 "O argumento I<nsems> pode ser B<0> (um \"não importa\") quando a chamada de "
242 "sistema não é uma de criação. Caso contrário, I<nsems> deve ser maior que "
243 "B<0> e menor ou igual ao número máximo de semáforos por semid, (B<SEMMSL>)."
244
245 #. and a check is made to see if it is marked for destruction.
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, fuzzy
250 #| msgid ""
251 #| "If the semaphore set already exists, the access permissions are verified, "
252 #| "and a check is made to see if it is marked for destruction."
253 msgid "If the semaphore set already exists, the permissions are verified."
254 msgstr ""
255 "Se o conjunto de semáforos já existir, as permissões de acesso são "
256 "verificadas, e uma checagem é feita para ver se ele está marcado para "
257 "destruição."
258
259 #. type: SH
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "RETURN VALUE"
264 msgstr "VALOR DE RETORNO"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, fuzzy
270 #| msgid ""
271 #| "If successful, the return value will be the semaphore set identifier (a "
272 #| "positive integer), otherwise B<-1> with B<errno> indicating the error."
273 msgid ""
274 "On success, B<semget>() returns the semaphore set identifier (a nonnegative "
275 "integer). On failure, -1 is returned, and I<errno> is set to indicate the "
276 "error."
277 msgstr ""
278 "Se bem sucedida, o valor de retorno será o identificador de conjunto de "
279 "semáforos (um inteiro positivo), caso contrário, B<-1> com B<errno> "
280 "indicando o erro."
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "ERRORS"
287 msgstr "ERROS"
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<EACCES>"
294 msgstr "B<EACCES>"
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 "A semaphore set exists for I<key>, but the calling process does not have "
301 "permission to access the set, and does not have the B<CAP_IPC_OWNER> "
302 "capability in the user namespace that governs its IPC namespace."
303 msgstr ""
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<EEXIST>"
310 msgstr "B<EEXIST>"
311
312 #. .TP
313 #. .B EIDRM
314 #. The semaphore set is marked to be deleted.
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore "
320 "set already exists for I<key>."
321 msgstr ""
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "B<EINVAL>"
328 msgstr "B<EINVAL>"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "I<nsems> is less than 0 or greater than the limit on the number of "
335 "semaphores per semaphore set (B<SEMMSL>)."
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "A semaphore set corresponding to I<key> already exists, but I<nsems> is "
343 "larger than the number of semaphores in that set."
344 msgstr ""
345
346 #. type: TP
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "B<ENOENT>"
351 msgstr "B<ENOENT>"
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, fuzzy
357 #| msgid ""
358 #| "No semaphore set exists for I<key> and I<semflg> wasn't asserting "
359 #| "B<IPC_CREAT>."
360 msgid ""
361 "No semaphore set exists for I<key> and I<semflg> did not specify "
362 "B<IPC_CREAT>."
363 msgstr ""
364 "Não existe conjunto de semáforos para I<key> e I<semflg> não estava contendo "
365 "B<IPC_CREAT>."
366
367 #. type: TP
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "B<ENOMEM>"
372 msgstr "B<ENOMEM>"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "A semaphore set has to be created but the system does not have enough memory "
379 "for the new data structure."
380 msgstr ""
381 "Um conjunto de semáforos tem de ser criado mas o sistema não possui memória "
382 "suficiente para a nova estrutura de dados."
383
384 #. type: TP
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "B<ENOSPC>"
389 msgstr "B<ENOSPC>"
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "A semaphore set has to be created but the system limit for the maximum "
396 "number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
397 "semaphores (B<SEMMNS>), would be exceeded."
398 msgstr ""
399 "Um conjunto de semáforos tem de ser criado mas o limite do sistema para o "
400 "número máximo de conjuntos de semáforos (B<SEMMNI>), ou o número máximo de "
401 "semáforos no âmbito do sistema (B<SEMMNS>), seria excedido."
402
403 #. type: SH
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "STANDARDS"
408 msgstr "PADRÕES"
409
410 #. type: Plain text
411 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
412 #: opensuse-tumbleweed
413 msgid "POSIX.1-2024."
414 msgstr "POSIX.1-2024."
415
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "HISTORY"
421 msgstr "HISTÓRICO"
422
423 #. SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
424 #. ERANGE, EFAULT.
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid "SVr4, POSIX.1-2001."
429 msgstr "SVr4, POSIX.1-2001."
430
431 #. type: SH
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, no-wrap
435 msgid "NOTES"
436 msgstr "NOTAS"
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, fuzzy
442 #| msgid ""
443 #| "B<IPC_PRIVATE> isn't a flag field but a B<key_t> type. If this special "
444 #| "value is used for I<key>, the system call ignores everything but the "
445 #| "lowest order 9 bits of I<semflg> and creates a new semaphore set (on "
446 #| "success)."
447 msgid ""
448 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
449 "value is used for I<key>, the system call ignores all but the least "
450 "significant 9 bits of I<semflg> and creates a new semaphore set (on success)."
451 msgstr ""
452 "B<IPC_PRIVATE> não é um campo sinalizador, mas um tipo B<key_t>. Se esse "
453 "valor especial for utilizado para I<key>, a chamada de sistema ignora tudo "
454 "exceto os 9 bits de mais baixa ordem de I<semflg> e cria um novo conjunto de "
455 "semáforos (em caso de sucesso)."
456
457 #. type: SS
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "Semaphore initialization"
462 msgstr ""
463
464 #. In truth, every one of the many implementations that I've tested sets
465 #. the values to zero, but I suppose there is/was some obscure
466 #. implementation out there that does not.
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "The values of the semaphores in a newly created set are indeterminate. "
472 "(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although "
473 "POSIX.1-2008 notes that a future version of the standard may require an "
474 "implementation to initialize the semaphores to 0.) Although Linux, like "
475 "many other implementations, initializes the semaphore values to 0, a "
476 "portable application cannot rely on this: it should explicitly initialize "
477 "the semaphores to the desired values."
478 msgstr ""
479
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid ""
484 "Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> "
485 "operation. Where multiple peers do not know who will be the first to "
486 "initialize the set, checking for a nonzero I<sem_otime> in the associated "
487 "data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be "
488 "used to avoid races."
489 msgstr ""
490
491 #. type: SS
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "Semaphore limits"
496 msgstr ""
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, fuzzy
502 #| msgid ""
503 #| "The followings are limits on semaphore set resources affecting a "
504 #| "B<semget> call:"
505 msgid ""
506 "The following limits on semaphore set resources affect the B<semget>() call:"
507 msgstr ""
508 "Os seguintes são limites nos recursos para conjuntos de semáforos que afetam "
509 "uma chamada B<semget>:"
510
511 #. type: TP
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "B<SEMMNI>"
516 msgstr "B<SEMMNI>"
517
518 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
519 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "System-wide limit on the number of semaphore sets. Before Linux 3.19, the "
525 "default value for this limit was 128. Since Linux 3.19, the default value "
526 "is 32,000. On Linux, this limit can be read and modified via the fourth "
527 "field of I</proc/sys/kernel/sem>."
528 msgstr ""
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<SEMMSL>"
535 msgstr "B<SEMMSL>"
536
537 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "Maximum number of semaphores per semaphore ID. Before Linux 3.19, the "
543 "default value for this limit was 250. Since Linux 3.19, the default value "
544 "is 32,000. On Linux, this limit can be read and modified via the first "
545 "field of I</proc/sys/kernel/sem>."
546 msgstr ""
547
548 #. type: TP
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "B<SEMMNS>"
553 msgstr "B<SEMMNS>"
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "System-wide limit on the number of semaphores: policy dependent (on Linux, "
560 "this limit can be read and modified via the second field of I</proc/sys/"
561 "kernel/sem>). Note that the number of semaphores system-wide is also "
562 "limited by the product of B<SEMMSL> and B<SEMMNI>."
563 msgstr ""
564
565 #. type: SH
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "BUGS"
570 msgstr "BUGS"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
577 "more clearly show its function."
578 msgstr ""
579
580 #. type: SH
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid "EXAMPLES"
585 msgstr "EXEMPLOS"
586
587 #. type: Plain text
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 msgid ""
591 "The program shown below uses B<semget>() to create a new semaphore set or "
592 "retrieve the ID of an existing set. It generates the I<key> for "
593 "B<semget>() using B<ftok>(3). The first two command-line arguments are "
594 "used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third "
595 "command-line argument is an integer that specifies the I<nsems> argument for "
596 "B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> "
597 "(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The "
598 "usage of this program is demonstrated below."
599 msgstr ""
600
601 #. type: Plain text
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 msgid ""
605 "We first create two files that will be used to generate keys using "
606 "B<ftok>(3), create two semaphore sets using those files, and then list the "
607 "sets using B<ipcs>(1):"
608 msgstr ""
609
610 #. type: Plain text
611 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
612 #: opensuse-tumbleweed
613 #, no-wrap
614 msgid ""
615 "$B< touch mykey mykey2>;\n"
616 "$B< ./t_semget -c mykey p 1>;\n"
617 "ID = 9\n"
618 "$B< ./t_semget -c mykey2 p 2>;\n"
619 "ID = 10\n"
620 "$B< ipcs -s>;\n"
621 "\\&\n"
622 "------ Semaphore Arrays --------\n"
623 "key semid owner perms nsems\n"
624 "0x7004136d 9 mtk 600 1\n"
625 "0x70041368 10 mtk 600 2\n"
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 "Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as "
633 "generated by the same arguments to B<ftok>(3)), it returns the ID of the "
634 "already existing semaphore set:"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
639 #: opensuse-tumbleweed
640 #, fuzzy, no-wrap
641 #| msgid ""
642 #| "$ B<./t_semget -c mykey p 1>\n"
643 #| "ID = 9\n"
644 msgid ""
645 "$B< ./t_semget -c mykey p 1>;\n"
646 "ID = 9\n"
647 msgstr ""
648 "$ B<./t_semget -c mykey p 1>\n"
649 "ID = 9\n"
650
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "Finally, we demonstrate the kind of collision that can occur when "
656 "B<ftok>(3) is given different I<pathname> arguments that have the same "
657 "inode number:"
658 msgstr ""
659
660 #. type: Plain text
661 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
662 #: opensuse-tumbleweed
663 #, no-wrap
664 msgid ""
665 "$B< ln mykey link>;\n"
666 "$B< ls -i1 link mykey>;\n"
667 "2233197 link\n"
668 "2233197 mykey\n"
669 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
670 "ID = 9\n"
671 msgstr ""
672
673 #. type: SS
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "Program source"
678 msgstr "Fonte do programa"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid ""
685 "/* t_semget.c\n"
686 "\\&\n"
687 " Licensed under GNU General Public License v2 or later.\n"
688 "*/\n"
689 "#include E<lt>stdio.hE<gt>\n"
690 "#include E<lt>stdlib.hE<gt>\n"
691 "#include E<lt>sys/ipc.hE<gt>\n"
692 "#include E<lt>sys/sem.hE<gt>\n"
693 "#include E<lt>unistd.hE<gt>\n"
694 "\\&\n"
695 "static void\n"
696 "usage(const char *pname)\n"
697 "{\n"
698 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
699 " pname);\n"
700 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
701 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
702 " exit(EXIT_FAILURE);\n"
703 "}\n"
704 "\\&\n"
705 "int\n"
706 "main(int argc, char *argv[])\n"
707 "{\n"
708 " int semid, nsems, flags, opt;\n"
709 " key_t key;\n"
710 "\\&\n"
711 " flags = 0;\n"
712 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
713 " switch (opt) {\n"
714 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
715 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
716 " default: usage(argv[0]);\n"
717 " }\n"
718 " }\n"
719 "\\&\n"
720 " if (argc != optind + 3)\n"
721 " usage(argv[0]);\n"
722 "\\&\n"
723 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
724 " if (key == -1) {\n"
725 " perror(\"ftok\");\n"
726 " exit(EXIT_FAILURE);\n"
727 " }\n"
728 "\\&\n"
729 " nsems = atoi(argv[optind + 2]);\n"
730 "\\&\n"
731 " semid = semget(key, nsems, flags | 0600);\n"
732 " if (semid == -1) {\n"
733 " perror(\"semget\");\n"
734 " exit(EXIT_FAILURE);\n"
735 " }\n"
736 "\\&\n"
737 " printf(\"ID = %d\\[rs]n\", semid);\n"
738 "\\&\n"
739 " exit(EXIT_SUCCESS);\n"
740 "}\n"
741 msgstr ""
742
743 #. SRC END
744 #. type: SH
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid "SEE ALSO"
749 msgstr "VEJA TAMBÉM"
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 msgid ""
755 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
756 "B<sem_overview>(7), B<sysvipc>(7)"
757 msgstr ""
758 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
759 "B<sem_overview>(7), B<sysvipc>(7)"
760
761 #. type: TH
762 #: debian-trixie
763 #, no-wrap
764 msgid "2024-06-15"
765 msgstr "15 junho 2024"
766
767 #. type: TH
768 #: debian-trixie
769 #, no-wrap
770 msgid "Linux man-pages 6.9.1"
771 msgstr "Linux man-pages 6.9.1"
772
773 #. type: Plain text
774 #: debian-trixie
775 msgid "Standard C library (I<libc>, I<-lc>)"
776 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
777
778 #. type: Plain text
779 #: debian-trixie fedora-44 fedora-rawhide
780 msgid "POSIX.1-2008."
781 msgstr "POSIX.1-2008."
782
783 #. type: Plain text
784 #: debian-trixie fedora-44 fedora-rawhide
785 #, no-wrap
786 msgid ""
787 "$ B<touch mykey mykey2>\n"
788 "$ B<./t_semget -c mykey p 1>\n"
789 "ID = 9\n"
790 "$ B<./t_semget -c mykey2 p 2>\n"
791 "ID = 10\n"
792 "$ B<ipcs -s>\n"
793 "\\&\n"
794 "------ Semaphore Arrays --------\n"
795 "key semid owner perms nsems\n"
796 "0x7004136d 9 mtk 600 1\n"
797 "0x70041368 10 mtk 600 2\n"
798 msgstr ""
799
800 #. type: Plain text
801 #: debian-trixie fedora-44 fedora-rawhide
802 #, no-wrap
803 msgid ""
804 "$ B<./t_semget -c mykey p 1>\n"
805 "ID = 9\n"
806 msgstr ""
807 "$ B<./t_semget -c mykey p 1>\n"
808 "ID = 9\n"
809
810 #. type: Plain text
811 #: debian-trixie fedora-44 fedora-rawhide
812 #, no-wrap
813 msgid ""
814 "$ B<ln mykey link>\n"
815 "$ B<ls -i1 link mykey>\n"
816 "2233197 link\n"
817 "2233197 mykey\n"
818 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
819 "ID = 9\n"
820 msgstr ""
821
822 #. type: TH
823 #: fedora-44 fedora-rawhide
824 #, no-wrap
825 msgid "2024-07-23"
826 msgstr "23 julho 2024"
827
828 #. type: TH
829 #: fedora-44 fedora-rawhide
830 #, no-wrap
831 msgid "Linux man-pages 6.13"
832 msgstr "Linux man-pages 6.13"
833
834 #. type: TH
835 #: mageia-cauldron
836 #, no-wrap
837 msgid "Linux man-pages 6.17"
838 msgstr "Linux man-pages 6.17"
839
840 #. type: TH
841 #: opensuse-leap-16-1 opensuse-tumbleweed
842 #, no-wrap
843 msgid "Linux man-pages (unreleased)"
844 msgstr "Linux man-pages (não lançado)"