Debian Codegraph @

po/fr/man2/semget.2.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2013.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012-2014.
18 # Thomas Vincent <[email protected]>, 2018.
19 # Jean-Pierre Giraud <[email protected]>, 2021-2024.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.21.0\n"
23 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
24 "PO-Revision-Date: 2024-03-14 10:09+0100\n"
25 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "semget"
39 msgstr "semget"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "semget - get a System V semaphore set identifier"
65 msgstr "semget - Obtenir l'identifiant d'un ensemble de sémaphores System V"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
92 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 msgid ""
98 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
99 msgstr ""
100 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
101
102 #. type: SH
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 #, no-wrap
106 msgid "DESCRIPTION"
107 msgstr "DESCRIPTION"
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 "The B<semget>() system call returns the System\\ V semaphore set identifier "
114 "associated with the argument I<key>. It may be used either to obtain the "
115 "identifier of a previously created semaphore set (when I<semflg> is zero and "
116 "I<key> does not have the value B<IPC_PRIVATE>), or to create a new set."
117 msgstr ""
118 "L'appel système B<semget>() renvoie l'identifiant de l'ensemble de "
119 "sémaphores System V associé à la valeur de clé I<key>. Cela peut servir pour "
120 "obtenir l'identifiant d'un ensemble de sémaphores créé précédemment (lorsque "
121 "I<semflg> vaut 0 et que I<key> n'a pas la valeur B<IPC_PRIVATE>) ou pour "
122 "créer un nouvel ensemble."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "A new set of I<nsems> semaphores is created if I<key> has the value "
129 "B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and "
130 "B<IPC_CREAT> is specified in I<semflg>."
131 msgstr ""
132 "Un nouvel ensemble contenant I<nsems> sémaphores est créé si I<key> a la "
133 "valeur B<IPC_PRIVATE> ou si aucun ensemble n'est associé à I<key>, et si "
134 "l'option B<IPC_CREAT> est présente dans I<semflg>."
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 msgid ""
140 "If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
141 "already exists for I<key>, then B<semget>() fails with I<errno> set to "
142 "B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | "
143 "O_EXCL> for B<open>(2).)"
144 msgstr ""
145 "Si I<semflg> contient à la fois B<IPC_CREAT> et B<IPC_EXCL> et qu'un "
146 "ensemble de sémaphores existe déjà pour la clé I<key>, B<semget>() échoue et "
147 "I<errno> vaut B<EEXIST>. (Cela est analogue à l'effet de la combinaison "
148 "B<O_CREAT | O_EXCL> pour B<open>(2).)"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "Upon creation, the least significant 9 bits of the argument I<semflg> define "
155 "the permissions (for owner, group, and others) for the semaphore set. "
156 "These bits have the same format, and the same meaning, as the I<mode> "
157 "argument of B<open>(2) (though the execute permissions are not meaningful "
158 "for semaphores, and write permissions mean permission to alter semaphore "
159 "values)."
160 msgstr ""
161 "Pendant la création, les 9 bits de poids faible de l'argument I<semflg> "
162 "définissent les permissions d'accès (pour le propriétaire, le groupe et les "
163 "autres) au jeu de sémaphores, en utilisant le même format et la même "
164 "signification que les droits d'accès dans B<open>(2). Les permissions "
165 "d'exécution ne sont pas utilisées par le système, et pour un jeu de "
166 "sémaphores, l'autorisation d'écriture signifie autorisation de modification."
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 msgid ""
172 "When creating a new semaphore set, B<semget>() initializes the set's "
173 "associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
174 msgstr ""
175 "Durant la création, la structure de données I<semid_ds> (consultez "
176 "B<semctl>(2)) contrôlant le jeu de sémaphores est initialisée ainsi par "
177 "B<semget>()\\ :"
178
179 #. type: IP
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "\\[bu]"
184 msgstr "-"
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.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
191 "calling process."
192 msgstr ""
193 "I<sem_perm.cuid> et I<sem_perm.uid> contiennent l'UID effectif du processus "
194 "appelant."
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 msgid ""
200 "I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
201 "the calling process."
202 msgstr ""
203 "I<sem_perm.cgid> et I<sem_perm.gid> contiennent le GID effectif du processus "
204 "appelant."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "The least significant 9 bits of I<sem_perm.mode> are set to the least "
211 "significant 9 bits of I<semflg>."
212 msgstr ""
213 "Les 9 bits de poids faible de I<sem_perm.mode> contiennent les 9 bits de "
214 "poids faible de I<semflg>."
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_nsems> is set to the value of I<nsems>."
220 msgstr "I<sem_nsems> reçoit la valeur I<nsems>."
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_otime> is set to 0."
226 msgstr "I<sem_otime> est mis à 0."
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 msgid "I<sem_ctime> is set to the current time."
232 msgstr "I<sem_ctime> est rempli avec l'heure actuelle."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "The argument I<nsems> can be 0 (a don't care) when a semaphore set is not "
239 "being created. Otherwise, I<nsems> must be greater than 0 and less than or "
240 "equal to the maximum number of semaphores per semaphore set (B<SEMMSL>)."
241 msgstr ""
242 "L'argument I<nsems> peut valoir 0 (ignoré) si l'appel système n'est pas une "
243 "création d'ensemble de sémaphores. Autrement I<nsems> doit être supérieur "
244 "à 0 et inférieur ou égal au nombre maximal de sémaphores par ensemble "
245 "(B<SEMMSL>)."
246
247 #. and a check is made to see if it is marked for destruction.
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid "If the semaphore set already exists, the permissions are verified."
252 msgstr ""
253 "Si le jeu de sémaphores existe déjà, les permissions d'accès sont contrôlées."
254
255 #. type: SH
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "RETURN VALUE"
260 msgstr "VALEUR RENVOYÉE"
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "On success, B<semget>() returns the semaphore set identifier (a nonnegative "
267 "integer). On failure, -1 is returned, and I<errno> is set to indicate the "
268 "error."
269 msgstr ""
270 "En cas de réussite, B<semget>() renvoie l'identifiant de l'ensemble de "
271 "sémaphores (un entier positif). En cas d'échec, il renvoie B<-1> et I<errno> "
272 "contient le code d'erreur."
273
274 #. type: SH
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "ERRORS"
279 msgstr "ERREURS"
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<EACCES>"
286 msgstr "B<EACCES>"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "A semaphore set exists for I<key>, but the calling process does not have "
293 "permission to access the set, and does not have the B<CAP_IPC_OWNER> "
294 "capability in the user namespace that governs its IPC namespace."
295 msgstr ""
296 "Le jeu de sémaphores associé à I<key> existe, mais le processus n'a aucun "
297 "droit d'accès sur lui et n'a pas la capacité B<CAP_IPC_OWNER> dans l'espace "
298 "de noms utilisateur qui régit son espace de noms IPC."
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<EEXIST>"
305 msgstr "B<EEXIST>"
306
307 #. .TP
308 #. .B EIDRM
309 #. The semaphore set is marked to be deleted.
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore "
315 "set already exists for I<key>."
316 msgstr ""
317 "B<IPC_CREAT> et B<IPC_EXCL> ont été tous les deux indiqués dans I<semflag>, "
318 "mais un ensemble de sémaphores de clé I<key> existe déjà."
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<EINVAL>"
325 msgstr "B<EINVAL>"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "I<nsems> is less than 0 or greater than the limit on the number of "
332 "semaphores per semaphore set (B<SEMMSL>)."
333 msgstr ""
334 "I<nsems> est inférieur à zéro ou supérieur à la limite du nombre de "
335 "sémaphores par ensemble, (B<SEMMSL>)."
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "A semaphore set corresponding to I<key> already exists, but I<nsems> is "
342 "larger than the number of semaphores in that set."
343 msgstr ""
344 "Un ensemble de sémaphores identifié par I<key> existe déjà, mais I<nsems> "
345 "est plus grand que le nombre de sémaphores par ensemble."
346
347 #. type: TP
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid "B<ENOENT>"
352 msgstr "B<ENOENT>"
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 msgid ""
358 "No semaphore set exists for I<key> and I<semflg> did not specify "
359 "B<IPC_CREAT>."
360 msgstr ""
361 "Aucun jeu de sémaphores associé a I<key> n'existe et l'argument I<semflg> ne "
362 "précise pas B<IPC_CREAT>."
363
364 #. type: TP
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "B<ENOMEM>"
369 msgstr "B<ENOMEM>"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "A semaphore set has to be created but the system does not have enough memory "
376 "for the new data structure."
377 msgstr "Pas assez de mémoire pour créer les structures nécessaires."
378
379 #. type: TP
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<ENOSPC>"
384 msgstr "B<ENOSPC>"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid ""
390 "A semaphore set has to be created but the system limit for the maximum "
391 "number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
392 "semaphores (B<SEMMNS>), would be exceeded."
393 msgstr ""
394 "Le nombre maximal de jeux de sémaphores sur le système (B<SEMMNI>) est "
395 "atteint, ou le nombre maximal de sémaphores sur le système est atteint "
396 "(B<SEMMNS>)."
397
398 #. type: SH
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "STANDARDS"
403 msgstr "NORMES"
404
405 #. type: Plain text
406 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
407 #: opensuse-tumbleweed
408 msgid "POSIX.1-2024."
409 msgstr "POSIX.1-2024."
410
411 #. type: SH
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "HISTORY"
416 msgstr "HISTORIQUE"
417
418 #. SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN,
419 #. ERANGE, EFAULT.
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "SVr4, POSIX.1-2001."
424 msgstr "SVr4, POSIX.1-2001."
425
426 #. type: SH
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "NOTES"
431 msgstr "NOTES"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
438 "value is used for I<key>, the system call ignores all but the least "
439 "significant 9 bits of I<semflg> and creates a new semaphore set (on success)."
440 msgstr ""
441 "B<IPC_PRIVATE> n'est pas une option, mais un objet de type I<key_t>. Si l'on "
442 "utilise cette valeur spéciale dans l'argument I<key>, l'appel système ne se "
443 "préoccupera que des 9 bits de poids faible de I<semflg> et tentera de créer "
444 "un nouveau jeu de sémaphores."
445
446 #. type: SS
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "Semaphore initialization"
451 msgstr "Initialisation des sémaphores"
452
453 #. In truth, every one of the many implementations that I've tested sets
454 #. the values to zero, but I suppose there is/was some obscure
455 #. implementation out there that does not.
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "The values of the semaphores in a newly created set are indeterminate. "
461 "(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although "
462 "POSIX.1-2008 notes that a future version of the standard may require an "
463 "implementation to initialize the semaphores to 0.) Although Linux, like "
464 "many other implementations, initializes the semaphore values to 0, a "
465 "portable application cannot rely on this: it should explicitly initialize "
466 "the semaphores to the desired values."
467 msgstr ""
468 "Les valeurs des sémaphores dans un ensemble qui vient d'être créé sont "
469 "indéterminées (POSIX.1-2001 et POSIX.1-2008 sont explicites sur ce point, "
470 "bien que POSIX.1-2008 note que de futures versions du standard pourraient "
471 "exiger des implémentations qu'elles initialisent les sémaphores à 0). Même "
472 "si Linux, comme de nombreuses autres implémentations, initialise les valeurs "
473 "des sémaphores à 0, une application portable ne peut pas compter sur cette "
474 "initialisation\\ : elle doit initialiser explicitement les sémaphores à la "
475 "valeur souhaitée."
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> "
482 "operation. Where multiple peers do not know who will be the first to "
483 "initialize the set, checking for a nonzero I<sem_otime> in the associated "
484 "data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be "
485 "used to avoid races."
486 msgstr ""
487 "L'initialisation peut être effectuée avec les opérations B<SETVAL> ou "
488 "B<SETALL> de la fonction B<semctl>(2). Lorsque plusieurs concurrents ne "
489 "savent pas qui sera le premier à initialiser le jeu de sémaphores, il est "
490 "possible de vérifier que le membre I<sem_otime> de la structure récupérée "
491 "par une opération B<IPC_STAT> de B<semctl>(2) est non nul pour éviter les "
492 "conditions de concurrence."
493
494 #. type: SS
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "Semaphore limits"
499 msgstr "Limites des sémaphores"
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "The following limits on semaphore set resources affect the B<semget>() call:"
506 msgstr ""
507 "Les limites suivantes de ressources concernent l'appel système B<semget>()"
508 "\\ :"
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<SEMMNI>"
515 msgstr "B<SEMMNI>"
516
517 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
518 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ""
523 "System-wide limit on the number of semaphore sets. Before Linux 3.19, the "
524 "default value for this limit was 128. Since Linux 3.19, the default value "
525 "is 32,000. On Linux, this limit can be read and modified via the fourth "
526 "field of I</proc/sys/kernel/sem>."
527 msgstr ""
528 "Limite système du nombre de jeux de sémaphores. Avant Linux 3.19, la valeur "
529 "par défaut pour cette limite était de 128. Depuis Linux 3.19, elle est de "
530 "32 000. Sous Linux, cette limite peut être lue et modifiée dans le quatrième "
531 "champ de I</proc/sys/kernel/sem>."
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "B<SEMMSL>"
538 msgstr "B<SEMMSL>"
539
540 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "Maximum number of semaphores per semaphore ID. Before Linux 3.19, the "
546 "default value for this limit was 250. Since Linux 3.19, the default value "
547 "is 32,000. On Linux, this limit can be read and modified via the first "
548 "field of I</proc/sys/kernel/sem>."
549 msgstr ""
550 "Nombre maximal de sémaphores par ensemble. Avant Linux 3.19, la valeur par "
551 "défaut pour cette limite était de 250. Depuis Linux 3.19, elle est de "
552 "32 000. Sous Linux, cette limite peut être lue et modifiée dans le premier "
553 "champ de I</proc/sys/kernel/sem>."
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<SEMMNS>"
560 msgstr "B<SEMMNS>"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "System-wide limit on the number of semaphores: policy dependent (on Linux, "
567 "this limit can be read and modified via the second field of I</proc/sys/"
568 "kernel/sem>). Note that the number of semaphores system-wide is also "
569 "limited by the product of B<SEMMSL> and B<SEMMNI>."
570 msgstr ""
571 "Limite système du nombre de sémaphores : dépend de la politique (sous Linux, "
572 "cette limite peut être lue et modifiée dans le second champ de I</proc/sys/"
573 "kernel/sem>). Le nombre de sémaphores est également limité par le produit de "
574 "B<SEMMSL> et B<SEMMNI>."
575
576 #. type: SH
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 #, no-wrap
580 msgid "BUGS"
581 msgstr "BOGUES"
582
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 msgid ""
587 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
588 "more clearly show its function."
589 msgstr ""
590 "Le choix du nom B<IPC_PRIVATE> est malheureux, B<IPC_NEW> aurait mieux "
591 "décrit sa fonction."
592
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "EXAMPLES"
598 msgstr "EXEMPLES"
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "The program shown below uses B<semget>() to create a new semaphore set or "
605 "retrieve the ID of an existing set. It generates the I<key> for "
606 "B<semget>() using B<ftok>(3). The first two command-line arguments are "
607 "used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third "
608 "command-line argument is an integer that specifies the I<nsems> argument for "
609 "B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> "
610 "(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The "
611 "usage of this program is demonstrated below."
612 msgstr ""
613 "Le programme montré ci-dessous utilise B<semget>() pour créer un nouveau jeu "
614 "de sémaphores ou récupère l'identifiant d'un jeu existant. Il génère la "
615 "I<key> pour B<semget>() en utilisant B<ftok>(3). Les deux premiers arguments "
616 "de la ligne de commande sont utilisés comme arguments de chemin I<pathname> "
617 "et I<proj_id> pour B<ftok>(3). Le troisième argument de la ligne de commande "
618 "est un entier qui spécifie l'argument I<nsems> pour B<semget>(). Les options "
619 "en ligne de commande peuvent être utilisées pour spécifier les attributs "
620 "B<IPC_CREAT> (I<-c>) et B<IPC_EXCL> (I<-x>) pour l'appel à B<semget>(). "
621 "L'utilisation de ce programme est expliquée ci-dessous."
622
623 #. type: Plain text
624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
626 msgid ""
627 "We first create two files that will be used to generate keys using "
628 "B<ftok>(3), create two semaphore sets using those files, and then list the "
629 "sets using B<ipcs>(1):"
630 msgstr ""
631 "Sont créés en premier deux fichiers qui seront utilisés pour générer les "
632 "clés avec B<ftok>(3), puis deux jeux de sémaphores utilisant ces fichiers et "
633 "enfin, les jeux sont listés avec B<ipcs>(1):"
634
635 #. type: Plain text
636 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
637 #: opensuse-tumbleweed
638 #, fuzzy, no-wrap
639 #| msgid ""
640 #| "$ B<touch mykey mykey2>\n"
641 #| "$ B<./t_semget -c mykey p 1>\n"
642 #| "ID = 9\n"
643 #| "$ B<./t_semget -c mykey2 p 2>\n"
644 #| "ID = 10\n"
645 #| "$ B<ipcs -s>\n"
646 #| "\\&\n"
647 #| "------ Semaphore Arrays --------\n"
648 #| "key semid owner perms nsems\n"
649 #| "0x7004136d 9 mtk 600 1\n"
650 #| "0x70041368 10 mtk 600 2\n"
651 msgid ""
652 "$B< touch mykey mykey2>;\n"
653 "$B< ./t_semget -c mykey p 1>;\n"
654 "ID = 9\n"
655 "$B< ./t_semget -c mykey2 p 2>;\n"
656 "ID = 10\n"
657 "$B< ipcs -s>;\n"
658 "\\&\n"
659 "------ Semaphore Arrays --------\n"
660 "key semid owner perms nsems\n"
661 "0x7004136d 9 mtk 600 1\n"
662 "0x70041368 10 mtk 600 2\n"
663 msgstr ""
664 "$ B<touch mykey mykey2>\n"
665 "$ B<./t_semget -c mykey p 1>\n"
666 "ID = 9\n"
667 "$ B<./t_semget -c mykey2 p 2>\n"
668 "ID = 10\n"
669 "$ B<ipcs -s>\n"
670 "\\&\n"
671 "------ Semaphore Arrays --------\n"
672 "key semid owner perms nsems\n"
673 "0x7004136d 9 mtk 600 1\n"
674 "0x70041368 10 mtk 600 2\n"
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as "
681 "generated by the same arguments to B<ftok>(3)), it returns the ID of the "
682 "already existing semaphore set:"
683 msgstr ""
684 "Ensuite, il est démontré que quand B<semctl>(2) reçoit la même I<key> "
685 "(puisque générée par les mêmes arguments passés à B<ftok>(3)), il renvoie "
686 "l'identifiant du jeu de sémaphore déjà existant :"
687
688 #. type: Plain text
689 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
690 #: opensuse-tumbleweed
691 #, fuzzy, no-wrap
692 #| msgid ""
693 #| "$ B<./t_semget -c mykey p 1>\n"
694 #| "ID = 9\n"
695 msgid ""
696 "$B< ./t_semget -c mykey p 1>;\n"
697 "ID = 9\n"
698 msgstr ""
699 "$ B<./t_semget -c mykey p 1>\n"
700 "ID = 9\n"
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid ""
706 "Finally, we demonstrate the kind of collision that can occur when "
707 "B<ftok>(3) is given different I<pathname> arguments that have the same "
708 "inode number:"
709 msgstr ""
710 "Finalement, il est montré quel type de collision peut survenir si B<ftok>(3) "
711 "reçoit des arguments de chemin I<pathname> différents qui possèdent le même "
712 "numéro d'inode :"
713
714 #. type: Plain text
715 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
716 #: opensuse-tumbleweed
717 #, fuzzy, no-wrap
718 #| msgid ""
719 #| "$ B<ln mykey link>\n"
720 #| "$ B<ls -i1 link mykey>\n"
721 #| "2233197 link\n"
722 #| "2233197 mykey\n"
723 #| "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
724 #| "ID = 9\n"
725 msgid ""
726 "$B< ln mykey link>;\n"
727 "$B< ls -i1 link mykey>;\n"
728 "2233197 link\n"
729 "2233197 mykey\n"
730 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
731 "ID = 9\n"
732 msgstr ""
733 "$ B<ln mykey link>\n"
734 "$ B<ls -i1 link mykey>\n"
735 "2233197 link\n"
736 "2233197 mykey\n"
737 "$ B<./t_semget link p 1> # Génère la même clé que \\[aq]mykey\\[aq]\n"
738 "ID = 9\n"
739
740 #. type: SS
741 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
742 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
743 #, no-wrap
744 msgid "Program source"
745 msgstr "Source du programme"
746
747 #. type: Plain text
748 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
749 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
750 #, no-wrap
751 msgid ""
752 "/* t_semget.c\n"
753 "\\&\n"
754 " Licensed under GNU General Public License v2 or later.\n"
755 "*/\n"
756 "#include E<lt>stdio.hE<gt>\n"
757 "#include E<lt>stdlib.hE<gt>\n"
758 "#include E<lt>sys/ipc.hE<gt>\n"
759 "#include E<lt>sys/sem.hE<gt>\n"
760 "#include E<lt>unistd.hE<gt>\n"
761 "\\&\n"
762 "static void\n"
763 "usage(const char *pname)\n"
764 "{\n"
765 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
766 " pname);\n"
767 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
768 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
769 " exit(EXIT_FAILURE);\n"
770 "}\n"
771 "\\&\n"
772 "int\n"
773 "main(int argc, char *argv[])\n"
774 "{\n"
775 " int semid, nsems, flags, opt;\n"
776 " key_t key;\n"
777 "\\&\n"
778 " flags = 0;\n"
779 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
780 " switch (opt) {\n"
781 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
782 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
783 " default: usage(argv[0]);\n"
784 " }\n"
785 " }\n"
786 "\\&\n"
787 " if (argc != optind + 3)\n"
788 " usage(argv[0]);\n"
789 "\\&\n"
790 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
791 " if (key == -1) {\n"
792 " perror(\"ftok\");\n"
793 " exit(EXIT_FAILURE);\n"
794 " }\n"
795 "\\&\n"
796 " nsems = atoi(argv[optind + 2]);\n"
797 "\\&\n"
798 " semid = semget(key, nsems, flags | 0600);\n"
799 " if (semid == -1) {\n"
800 " perror(\"semget\");\n"
801 " exit(EXIT_FAILURE);\n"
802 " }\n"
803 "\\&\n"
804 " printf(\"ID = %d\\[rs]n\", semid);\n"
805 "\\&\n"
806 " exit(EXIT_SUCCESS);\n"
807 "}\n"
808 msgstr ""
809 "/* t_semget.c\n"
810 "\\&\n"
811 " Sous licence GNU General Public v2 ou postérieure.\n"
812 "*/\n"
813 "#include E<lt>stdio.hE<gt>\n"
814 "#include E<lt>stdlib.hE<gt>\n"
815 "#include E<lt>sys/ipc.hE<gt>\n"
816 "#include E<lt>sys/sem.hE<gt>\n"
817 "#include E<lt>unistd.hE<gt>\n"
818 "\\&\n"
819 "static void\n"
820 "usage(const char *pname)\n"
821 "{\n"
822 " fprintf(stderr, \"Utilisation : %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
823 " pname);\n"
824 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
825 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
826 " exit(EXIT_FAILURE);\n"
827 "}\n"
828 "\\&\n"
829 "int\n"
830 "main(int argc, char *argv[])\n"
831 "{\n"
832 " int semid, nsems, flags, opt;\n"
833 " key_t key;\n"
834 "\\&\n"
835 " flags = 0;\n"
836 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
837 " switch (opt) {\n"
838 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
839 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
840 " default: usage(argv[0]);\n"
841 " }\n"
842 " }\n"
843 "\\&\n"
844 " if (argc != optind + 3)\n"
845 " usage(argv[0]);\n"
846 "\\&\n"
847 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
848 " if (key == -1) {\n"
849 " perror(\"ftok\");\n"
850 " exit(EXIT_FAILURE);\n"
851 " }\n"
852 "\\&\n"
853 " nsems = atoi(argv[optind + 2]);\n"
854 "\\&\n"
855 " semid = semget(key, nsems, flags | 0600);\n"
856 " if (semid == -1) {\n"
857 " perror(\"semget\");\n"
858 " exit(EXIT_FAILURE);\n"
859 " }\n"
860 "\\&\n"
861 " printf(\"ID = %d\\[rs]n\", semid);\n"
862 "\\&\n"
863 " exit(EXIT_SUCCESS);\n"
864 "}\n"
865
866 #. SRC END
867 #. type: SH
868 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
869 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
870 #, no-wrap
871 msgid "SEE ALSO"
872 msgstr "VOIR AUSSI"
873
874 #. type: Plain text
875 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
876 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
877 msgid ""
878 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
879 "B<sem_overview>(7), B<sysvipc>(7)"
880 msgstr ""
881 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
882 "B<sem_overview>(7), B<sysvipc>(7)"
883
884 #. type: TH
885 #: debian-trixie
886 #, no-wrap
887 msgid "2024-06-15"
888 msgstr "15 juin 2024"
889
890 #. type: TH
891 #: debian-trixie
892 #, no-wrap
893 msgid "Linux man-pages 6.9.1"
894 msgstr "Pages du manuel de Linux 6.9.1"
895
896 #. type: Plain text
897 #: debian-trixie
898 msgid "Standard C library (I<libc>, I<-lc>)"
899 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
900
901 #. type: Plain text
902 #: debian-trixie fedora-44 fedora-rawhide
903 msgid "POSIX.1-2008."
904 msgstr "POSIX.1-2008."
905
906 #. type: Plain text
907 #: debian-trixie fedora-44 fedora-rawhide
908 #, no-wrap
909 msgid ""
910 "$ B<touch mykey mykey2>\n"
911 "$ B<./t_semget -c mykey p 1>\n"
912 "ID = 9\n"
913 "$ B<./t_semget -c mykey2 p 2>\n"
914 "ID = 10\n"
915 "$ B<ipcs -s>\n"
916 "\\&\n"
917 "------ Semaphore Arrays --------\n"
918 "key semid owner perms nsems\n"
919 "0x7004136d 9 mtk 600 1\n"
920 "0x70041368 10 mtk 600 2\n"
921 msgstr ""
922 "$ B<touch mykey mykey2>\n"
923 "$ B<./t_semget -c mykey p 1>\n"
924 "ID = 9\n"
925 "$ B<./t_semget -c mykey2 p 2>\n"
926 "ID = 10\n"
927 "$ B<ipcs -s>\n"
928 "\\&\n"
929 "------ Semaphore Arrays --------\n"
930 "key semid owner perms nsems\n"
931 "0x7004136d 9 mtk 600 1\n"
932 "0x70041368 10 mtk 600 2\n"
933
934 #. type: Plain text
935 #: debian-trixie fedora-44 fedora-rawhide
936 #, no-wrap
937 msgid ""
938 "$ B<./t_semget -c mykey p 1>\n"
939 "ID = 9\n"
940 msgstr ""
941 "$ B<./t_semget -c mykey p 1>\n"
942 "ID = 9\n"
943
944 #. type: Plain text
945 #: debian-trixie fedora-44 fedora-rawhide
946 #, no-wrap
947 msgid ""
948 "$ B<ln mykey link>\n"
949 "$ B<ls -i1 link mykey>\n"
950 "2233197 link\n"
951 "2233197 mykey\n"
952 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
953 "ID = 9\n"
954 msgstr ""
955 "$ B<ln mykey link>\n"
956 "$ B<ls -i1 link mykey>\n"
957 "2233197 link\n"
958 "2233197 mykey\n"
959 "$ B<./t_semget link p 1> # Génère la même clé que \\[aq]mykey\\[aq]\n"
960 "ID = 9\n"
961
962 #. type: TH
963 #: fedora-44 fedora-rawhide
964 #, no-wrap
965 msgid "2024-07-23"
966 msgstr "23 juillet 2024"
967
968 #. type: TH
969 #: fedora-44 fedora-rawhide
970 #, no-wrap
971 msgid "Linux man-pages 6.13"
972 msgstr "Pages du manuel de Linux 6.13"
973
974 #. type: TH
975 #: mageia-cauldron
976 #, no-wrap
977 msgid "Linux man-pages 6.17"
978 msgstr "Pages du manuel de Linux 6.17"
979
980 #. type: TH
981 #: opensuse-leap-16-1 opensuse-tumbleweed
982 #, no-wrap
983 msgid "Linux man-pages (unreleased)"
984 msgstr "Pages du manuel de Linux (non publiées)"