Debian Codegraph @

po/fr/man2/semop.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, 2023-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 09:02+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 "semop"
39 msgstr "semop"
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 "semop, semtimedop - System V semaphore operations"
65 msgstr "semop, semtimedop - Opérations sur les 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 #, no-wrap
98 msgid ""
99 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
100 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
101 "B< const struct timespec *_Nullable >I<timeout>B<);>\n"
102 msgstr ""
103 "B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n"
104 "B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n"
105 "B< const struct timespec *_Nullable >I<timeout>B<);>\n"
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
112 msgstr ""
113 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
114 "B<feature_test_macros>(7)) :"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid "B<semtimedop>():"
120 msgstr "B<semtimedop>():"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid " _GNU_SOURCE\n"
127 msgstr " _GNU_SOURCE\n"
128
129 #. type: SH
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "DESCRIPTION"
134 msgstr "DESCRIPTION"
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 "Each semaphore in a System\\ V semaphore set has the following associated "
141 "values:"
142 msgstr ""
143 "Chaque sémaphore dans un ensemble de sémaphores System V se voit associer "
144 "les valeurs suivantes\\ :"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid ""
151 "unsigned short semval; /* semaphore value */\n"
152 "unsigned short semzcnt; /* # waiting for zero */\n"
153 "unsigned short semncnt; /* # waiting for increase */\n"
154 "pid_t sempid; /* PID of process that last\n"
155 " modified the semaphore value */\n"
156 msgstr ""
157 "unsigned short semval; /* Valeur du sémaphore */\n"
158 "unsigned short semzcnt; /* # Attente pour zéro */\n"
159 "unsigned short semncnt; /* # Attente d'incrément */\n"
160 "pid_t sempid; /* PID du dernier processus modifiant\n"
161 " la valeur du sémaphore */\n"
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "B<semop>() performs operations on selected semaphores in the set indicated "
168 "by I<semid>. Each of the I<nsops> elements in the array pointed to by "
169 "I<sops> is a structure that specifies an operation to be performed on a "
170 "single semaphore. The elements of this structure are of type I<struct "
171 "sembuf>, containing the following members:"
172 msgstr ""
173 "La fonction B<semop>() effectue des opérations sur les membres de l'ensemble "
174 "de sémaphores identifié par I<semid>. Chacun des I<nsops> éléments dans le "
175 "tableau pointé par I<sops> indique une opération à effectuer sur un "
176 "sémaphore en utilisant une structure I<struct sembuf> contenant les membres "
177 "suivants\\ :"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid ""
184 "unsigned short sem_num; /* semaphore number */\n"
185 "short sem_op; /* semaphore operation */\n"
186 "short sem_flg; /* operation flags */\n"
187 msgstr ""
188 "unsigned short sem_num; /* Numéro du sémaphore */\n"
189 "short sem_op; /* Opération sur le sémaphore */\n"
190 "short sem_flg; /* Options pour l'opération */\n"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
197 "operation specifies B<SEM_UNDO>, it will be automatically undone when the "
198 "process terminates."
199 msgstr ""
200 "Les options possibles pour I<sem_flg> sont B<IPC_NOWAIT> et B<SEM_UNDO>. Si "
201 "une opération indique l'option B<SEM_UNDO>, elle sera annulée lorsque le "
202 "processus se terminera."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "The set of operations contained in I<sops> is performed in I<array order>, "
209 "and I<atomically>, that is, the operations are performed either as a "
210 "complete unit, or not at all. The behavior of the system call if not all "
211 "operations can be performed immediately depends on the presence of the "
212 "B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted below."
213 msgstr ""
214 "L'ensemble des opérations contenues dans I<sops> est effectué I<dans "
215 "l'ordre> et I<atomiquement>. Les opérations sont toutes réalisées en même "
216 "temps, et seulement si elles peuvent toutes être effectuées. Le comportement "
217 "de l'appel système, si toutes les opérations ne sont pas réalisables, dépend "
218 "de la présence de l'attribut B<IPC_NOWAIT> dans les champs I<sem_flg> "
219 "décrits plus bas."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid ""
225 "Each operation is performed on the I<sem_num>-th semaphore of the semaphore "
226 "set, where the first semaphore of the set is numbered 0. There are three "
227 "types of operation, distinguished by the value of I<sem_op>."
228 msgstr ""
229 "Chaque opération est effectuée sur le I<sem_num>-ième sémaphore de "
230 "l'ensemble. Le premier sémaphore est le numéro 0. Pour chaque sémaphore, "
231 "l'opération est l'une des trois décrites ci-dessous."
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "If I<sem_op> is a positive integer, the operation adds this value to the "
238 "semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for "
239 "this operation, the system subtracts the value I<sem_op> from the semaphore "
240 "adjustment (I<semadj>) value for this semaphore. This operation can always "
241 "proceed\\[em]it never forces a thread to wait. The calling process must "
242 "have alter permission on the semaphore set."
243 msgstr ""
244 "Si l'argument I<sem_op> est un entier positif, la fonction ajoute cette "
245 "valeur à I<semval>. De plus si B<SEM_UNDO> est demandé, le système soustrait "
246 "la valeur I<sem_op> à la valeur de mise à jour du sémaphore (I<semadj>). "
247 "Cette opération n'est jamais bloquante. Le processus appelant doit avoir "
248 "l'autorisation de modification sur le jeu de sémaphores."
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "If I<sem_op> is zero, the process must have read permission on the semaphore "
255 "set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the "
256 "operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified "
257 "in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of "
258 "the operations in I<sops> is performed). Otherwise, I<semzcnt> (the count "
259 "of threads waiting until this semaphore's value becomes zero) is "
260 "incremented by one and the thread sleeps until one of the following occurs:"
261 msgstr ""
262 "Si I<sem_op> vaut zéro le processus doit avoir l'autorisation de lecture sur "
263 "l'ensemble de sémaphores. Le processus attend que I<semval> soit nul\\ : si "
264 "I<semval> vaut zéro, l'appel système continue immédiatement. Sinon, si l'on "
265 "a réclamé B<IPC_NOWAIT> dans I<sem_flg>, l'appel système B<semop>() échoue "
266 "et I<errno> contient le code d'erreur B<EAGAIN> (et aucune des opérations de "
267 "I<sops> n'est réalisée). Sinon, I<semzcnt> (le décompte de threads en "
268 "attente jusqu'à ce que cette valeur de sémaphore devienne zéro) est "
269 "incrémenté d'un et le thread s'endort jusqu'à ce que l'un des événements "
270 "suivants se produise\\ :"
271
272 #. type: IP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "\\[bu]"
277 msgstr "-"
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "I<semval> becomes 0, at which time the value of I<semzcnt> is decremented."
284 msgstr "I<semval> devient égal à 0, alors I<semzcnt> est décrémenté."
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "The semaphore set is removed: B<semop>() fails, with I<errno> set to "
291 "B<EIDRM>."
292 msgstr ""
293 "Le jeu de sémaphores est supprimé. L'appel système échoue et I<errno> "
294 "contient le code d'erreur B<EIDRM>."
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "The calling thread catches a signal: the value of I<semzcnt> is decremented "
301 "and B<semop>() fails, with I<errno> set to B<EINTR>."
302 msgstr ""
303 "Le thread reçoit un signal à intercepter, la valeur de I<semzcnt> est "
304 "décrémentée et l'appel système échoue avec I<errno> contenant le code "
305 "d'erreur B<EINTR>."
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "If I<sem_op> is less than zero, the process must have alter permission on "
312 "the semaphore set. If I<semval> is greater than or equal to the absolute "
313 "value of I<sem_op>, the operation can proceed immediately: the absolute "
314 "value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
315 "specified for this operation, the system adds the absolute value of "
316 "I<sem_op> to the semaphore adjustment (I<semadj>) value for this "
317 "semaphore. If the absolute value of I<sem_op> is greater than I<semval>, "
318 "and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, with "
319 "I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is "
320 "performed). Otherwise, I<semncnt> (the counter of threads waiting for this "
321 "semaphore's value to increase) is incremented by one and the thread sleeps "
322 "until one of the following occurs:"
323 msgstr ""
324 "Si I<sem_op> est inférieur à zéro, le processus appelant doit avoir "
325 "l'autorisation de modification sur le jeu de sémaphores. Si I<semval> est "
326 "supérieur ou égal à la valeur absolue de I<sem_op>, la valeur absolue de "
327 "I<sem_op> est soustraite de I<semval>, et si B<SEM_UNDO> est indiqué, le "
328 "système ajoute la valeur absolue de I<sem_op> à la valeur de mise à jour de "
329 "sémaphore (I<semadj>) pour ce sémaphore. Si la valeur absolue de I<sem_op> "
330 "est plus grande que I<semval> et si l'on a réclamé B<IPC_NOWAIT> dans "
331 "I<sem_flg>, l'appel système échoue et I<errno> contient le code d'erreur "
332 "B<EAGAIN> (et aucune des opérations de I<sops> n'est réalisée). Sinon, "
333 "I<semncnt> (le décompte de threads en attente jusqu'à ce que cette valeur de "
334 "sémaphore soit incrémenté) est incrémenté de un et le thread s'endort "
335 "jusqu'à ce que l'un des événements suivants se produise\\ :"
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 "I<semval> becomes greater than or equal to the absolute value of I<sem_op>: "
342 "the operation now proceeds, as described above."
343 msgstr ""
344 "I<semval> devient supérieur ou égal à la valeur absolue de I<sem_op> : "
345 "l'opération est effectuée comme décrit ci-dessus."
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "The semaphore set is removed from the system: B<semop>() fails, with "
352 "I<errno> set to B<EIDRM>."
353 msgstr ""
354 "Le jeu de sémaphores est supprimé. L'appel système échoue et I<errno> "
355 "contient le code d'erreur B<EIDRM>."
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "The calling thread catches a signal: the value of I<semncnt> is decremented "
362 "and B<semop>() fails, with I<errno> set to B<EINTR>."
363 msgstr ""
364 "Le thread reçoit un signal à intercepter, la valeur de I<semncnt> est "
365 "décrémentée et l'appel système échoue avec I<errno> contenant le code "
366 "d'erreur B<EINTR>."
367
368 #. and
369 #. .I sem_ctime
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid ""
374 "On successful completion, the I<sempid> value for each semaphore specified "
375 "in the array pointed to by I<sops> is set to the caller's process ID. In "
376 "addition, the I<sem_otime> is set to the current time."
377 msgstr ""
378 "En cas de succès, le membre I<sempid> de chacun des sémaphores indiqués dans "
379 "le tableau pointé par I<sops> est rempli avec le PID de l'appelant. Enfin "
380 "I<sem_otime> est défini à l'heure actuelle."
381
382 #. type: SS
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "semtimedop()"
387 msgstr "semtimedop()"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "B<semtimedop>() behaves identically to B<semop>() except that in those "
394 "cases where the calling thread would sleep, the duration of that sleep is "
395 "limited by the amount of elapsed time specified by the I<timespec> structure "
396 "whose address is passed in the I<timeout> argument. (This sleep interval "
397 "will be rounded up to the system clock granularity, and kernel scheduling "
398 "delays mean that the interval may overrun by a small amount.) If the "
399 "specified time limit has been reached, B<semtimedop>() fails with I<errno> "
400 "set to B<EAGAIN> (and none of the operations in I<sops> is performed). If "
401 "the I<timeout> argument is NULL, then B<semtimedop>() behaves exactly like "
402 "B<semop>()."
403 msgstr ""
404 "La fonction B<semtimedop>() se comporte comme B<semop>() sauf que dans le "
405 "cas où le thread doit dormir, la durée maximale du sommeil est limitée par "
406 "la valeur spécifiée dans la structure I<timespec> dont l'adresse est "
407 "transmise dans le paramètre I<timeout> (cet intervalle de sommeil sera "
408 "arrondi à la granularité de l'horloge système, et les délais "
409 "d'ordonnancement du noyau font que cette valeur peut être légèrement "
410 "dépassée). Si la limite indiquée a été atteinte, l'appel système échoue avec "
411 "I<errno> contenant B<EAGAIN> (et aucune opération de I<sops> n'est "
412 "réalisée). Si le paramètre I<timeout> est NULL, alors B<semtimedop>() se "
413 "comporte exactement comme B<semop>()."
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "Note that if B<semtimedop>() is interrupted by a signal, causing the call "
420 "to fail with the error B<EINTR>, the contents of I<timeout> are left "
421 "unchanged."
422 msgstr ""
423 "Si B<semtimedop>() est interrompu par un signal, causant l'échec de l'appel "
424 "avec l'erreur B<EINTR>, les valeurs contenues dans I<timeout> restent "
425 "inchangées."
426
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "RETURN VALUE"
432 msgstr "VALEUR RENVOYÉE"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "On success, B<semop>() and B<semtimedop>() return 0. On failure, they "
439 "return -1, and set I<errno> to indicate the error."
440 msgstr ""
441 "En cas de réussite, B<semop>() et B<semtimedop>() renvoient B<0>. En cas "
442 "d'échec, ils renvoient B<-1> et I<errno> contient le code d'erreur."
443
444 #. type: SH
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "ERRORS"
449 msgstr "ERREURS"
450
451 #. type: TP
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "B<E2BIG>"
456 msgstr "B<E2BIG>"
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid ""
462 "The argument I<nsops> is greater than B<SEMOPM>, the maximum number of "
463 "operations allowed per system call."
464 msgstr ""
465 "l'argument I<nsops> est supérieur à B<SEMOPM>, le nombre maximal "
466 "d'opérations autorisées par appel système."
467
468 #. type: TP
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "B<EACCES>"
473 msgstr "B<EACCES>"
474
475 #. type: Plain text
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 msgid ""
479 "The calling process does not have the permissions required to perform the "
480 "specified semaphore operations, and does not have the B<CAP_IPC_OWNER> "
481 "capability in the user namespace that governs its IPC namespace."
482 msgstr ""
483 "Le processus appelant n'a pas les permissions nécessaires pour effectuer les "
484 "opérations sur les sémaphores spécifiés et n'a pas la capacité "
485 "B<CAP_IPC_OWNER> dans l'espace de noms utilisateur qui régit son espace de "
486 "noms IPC."
487
488 #. type: TP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<EAGAIN>"
493 msgstr "B<EAGAIN>"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "An operation could not proceed immediately and either B<IPC_NOWAIT> was "
500 "specified in I<sem_flg> or the time limit specified in I<timeout> expired."
501 msgstr ""
502 "Une opération ne pouvait pas être effectuée immédiatement et B<IPC_NOWAIT> a "
503 "été indiqué dans l'argument I<sem_flg>, ou la durée limite indiquée dans "
504 "I<timeout> a expiré."
505
506 #. type: TP
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "B<EFAULT>"
511 msgstr "B<EFAULT>"
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "An address specified in either the I<sops> or the I<timeout> argument isn't "
518 "accessible."
519 msgstr ""
520 "I<sops> ou I<timeout> pointent en dehors de l'espace d'adressage accessible."
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<EFBIG>"
527 msgstr "B<EFBIG>"
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "For some operation the value of I<sem_num> is less than 0 or greater than or "
534 "equal to the number of semaphores in the set."
535 msgstr ""
536 "La valeur de I<sem_num> est inférieure à 0 ou supérieure ou égale au nombre "
537 "de sémaphores dans l'ensemble."
538
539 #. type: TP
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "B<EIDRM>"
544 msgstr "B<EIDRM>"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid "The semaphore set was removed."
550 msgstr "Le jeu de sémaphores a été supprimé."
551
552 #. type: TP
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "B<EINTR>"
557 msgstr "B<EINTR>"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "While blocked in this system call, the thread caught a signal; see "
564 "B<signal>(7)."
565 msgstr "Un signal a été reçu pendant l'attente ; consultez B<signal>(7)."
566
567 #. type: TP
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "B<EINVAL>"
572 msgstr "B<EINVAL>"
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> "
579 "has a nonpositive value."
580 msgstr ""
581 "L'ensemble de sémaphores n'existe pas ou I<semid> est inférieur à zéro, ou "
582 "I<nsops> n'est pas strictement positive."
583
584 #. type: TP
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "B<ENOMEM>"
589 msgstr "B<ENOMEM>"
590
591 #. type: Plain text
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 msgid ""
595 "The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does "
596 "not have enough memory to allocate the undo structure."
597 msgstr ""
598 "L'argument I<sem_flg> de certaines opérations demande B<SEM_UNDO> et le "
599 "système n'a pas assez de mémoire pour allouer les structures nécessaires."
600
601 #. type: TP
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "B<ERANGE>"
606 msgstr "B<ERANGE>"
607
608 #. type: Plain text
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 msgid ""
612 "For some operation I<sem_op+semval> is greater than B<SEMVMX>, the "
613 "implementation dependent maximum value for I<semval>."
614 msgstr ""
615 "I<sem_op+semval> est supérieur à B<SEMVMX> (la valeur maximale de I<semval> "
616 "autorisée par l'implémentation) pour l'une des opérations."
617
618 #. type: SH
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid "STANDARDS"
623 msgstr "NORMES"
624
625 #. type: Plain text
626 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
627 #: opensuse-tumbleweed
628 msgid "POSIX.1-2024."
629 msgstr "POSIX.1-2024."
630
631 #. type: SH
632 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
633 #: opensuse-tumbleweed
634 #, no-wrap
635 msgid "HISTORY"
636 msgstr "HISTORIQUE"
637
638 #. type: TP
639 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
640 #: opensuse-tumbleweed
641 #, fuzzy, no-wrap
642 #| msgid "B<semop>(2)"
643 msgid "B<semop>()"
644 msgstr "B<semop>(2)"
645
646 #. type: Plain text
647 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
648 #: opensuse-tumbleweed
649 msgid "SVr4, POSIX.1-2001."
650 msgstr "SVr4, POSIX.1-2001."
651
652 #. type: TP
653 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
654 #: opensuse-tumbleweed
655 #, fuzzy, no-wrap
656 #| msgid "B<semtimedop>():"
657 msgid "B<semtimedop>()"
658 msgstr "B<semtimedop>():"
659
660 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
661 #. type: Plain text
662 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
663 #: opensuse-tumbleweed
664 #, fuzzy
665 #| msgid ""
666 #| "Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
667 #| "SVr4."
668 msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3."
669 msgstr ""
670 "Linux 2.5.52 (rétroportage dans Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
671 "SVr4."
672
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "NOTES"
678 msgstr "NOTES"
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 msgid ""
684 "The I<sem_undo> structures of a process aren't inherited by the child "
685 "produced by B<fork>(2), but they are inherited across an B<execve>(2) "
686 "system call."
687 msgstr ""
688 "Les structures I<sem_undo> d'un processus ne sont pas héritées par ses "
689 "enfants lors d'un B<fork>(2), mais elles le sont lors d'un appel système "
690 "B<execve>(2)."
691
692 #. type: Plain text
693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
695 msgid ""
696 "B<semop>() is never automatically restarted after being interrupted by a "
697 "signal handler, regardless of the setting of the B<SA_RESTART> flag when "
698 "establishing a signal handler."
699 msgstr ""
700 "B<semop>() n'est jamais relancé automatiquement après avoir été interrompu "
701 "par un gestionnaire de signal quelque soit l'attribut B<SA_RESTART> durant "
702 "l'installation du gestionnaire."
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid ""
708 "A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore "
709 "integer that is the negated sum of all operations performed on a semaphore "
710 "specifying the B<SEM_UNDO> flag. Each process has a list of I<semadj> "
711 "values\\[em]one value for each semaphore on which it has operated using "
712 "B<SEM_UNDO>. When a process terminates, each of its per-semaphore I<semadj> "
713 "values is added to the corresponding semaphore, thus undoing the effect of "
714 "that process's operations on the semaphore (but see BUGS below). When a "
715 "semaphore's value is directly set using the B<SETVAL> or B<SETALL> request "
716 "to B<semctl>(2), the corresponding I<semadj> values in all processes are "
717 "cleared. The B<clone>(2) B<CLONE_SYSVSEM> flag allows more than one "
718 "process to share a I<semadj> list; see B<clone>(2) for details."
719 msgstr ""
720 "Une valeur de mise à jour de sémaphore (I<semadj>) est un entier propre à un "
721 "processus et sémaphore, qui représente le compte négatif des opérations "
722 "utilisant l'attribut B<SEM_UNDO>. Chaque processus dispose d'une liste de "
723 "valeurs I<semadj> \\[em] une valeur pour chaque sémaphore où B<SEM_UNDO> a "
724 "été utilisé. Quand un processus se termine, chacune des valeurs I<semadj> "
725 "de ses sémaphores est ajoutée au sémaphore correspondant, annulant ainsi "
726 "l'effet des opérations du processus sur le sémaphore (voir la section BOGUES "
727 "ci-dessous). Quand la valeur d'un sémaphore est définie directement par une "
728 "requête B<SETVAL> ou B<SETALL> de B<semctl>(2), la valeur I<semadj> "
729 "correspondante est effacée dans tous les processus. L'option "
730 "B<CLONE_SYSVSEM> de B<clone>(2) permet à plusieurs processus de partager une "
731 "liste de I<semadj>. Consultez B<clone>(2) pour plus d'informations."
732
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 msgid ""
737 "The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore "
738 "can all be retrieved using appropriate B<semctl>(2) calls."
739 msgstr ""
740 "Les valeurs I<semval>, I<sempid>, I<semzcnt> et I<semnct> pour un sémaphore "
741 "peuvent être retrouvées avec des appels B<semctl>(2) spécifiques."
742
743 #. type: SS
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "Semaphore limits"
748 msgstr "Limites des sémaphores"
749
750 #. type: Plain text
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 msgid ""
754 "The following limits on semaphore set resources affect the B<semop>() call:"
755 msgstr ""
756 "Les limites suivantes de ressources concernent l'appel système B<semop>()\\ :"
757
758 #. type: TP
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 #, no-wrap
762 msgid "B<SEMOPM>"
763 msgstr "B<SEMOPM>"
764
765 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
766 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
767 #. See comment in Linux 3.19 source file include/uapi/linux/sem.h
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 msgid ""
772 "Maximum number of operations allowed for one B<semop>() call. Before Linux "
773 "3.19, the default value for this limit was 32. Since Linux 3.19, the "
774 "default value is 500. On Linux, this limit can be read and modified via the "
775 "third field of I</proc/sys/kernel/sem>. I<Note>: this limit should not be "
776 "raised above 1000, because of the risk of that B<semop>() fails due to "
777 "kernel memory fragmentation when allocating memory to copy the I<sops> array."
778 msgstr ""
779 "Nombre maximal d'opérations pour un appel à B<semop>. Avant Linux 3.19, la "
780 "valeur par défaut pour cette limite était de 32. Depuis Linux 3.19, cette "
781 "valeur est de 500. Sous Linux, cette limite peut être lue et modifiée via le "
782 "troisième champ du fichier I</proc/sys/kernel/sem>. I<Note> : cette limite "
783 "ne devrait pas être augmentée au-delà de 1000 à cause du risque que "
784 "B<semop>() échoue en raison de la fragmentation de la mémoire du noyau "
785 "pendant l'allocation de mémoire pour copier le tableau I<sops>."
786
787 #. type: TP
788 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
789 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
790 #, no-wrap
791 msgid "B<SEMVMX>"
792 msgstr "B<SEMVMX>"
793
794 #. type: Plain text
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 msgid ""
798 "Maximum allowable value for I<semval>: implementation dependent (32767)."
799 msgstr ""
800 "Valeur maximale pour I<semval>\\ : dépendante de l'implémentation (32767)."
801
802 #. type: Plain text
803 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
804 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
805 msgid ""
806 "The implementation has no intrinsic limits for the adjust on exit maximum "
807 "value (B<SEMAEM>), the system wide maximum number of undo structures "
808 "(B<SEMMNU>) and the per-process maximum number of undo entries system "
809 "parameters."
810 msgstr ""
811 "L'implémentation n'a pas de limites intrinsèques pour la valeur maximale "
812 "d'effacement en sortie (B<SEMAEM>), le nombre de structures d'annulation sur "
813 "le système (B<SEMMNU>) et le nombre maximal de structures d'annulation pour "
814 "un processus."
815
816 #. type: SH
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid "BUGS"
821 msgstr "BOGUES"
822
823 #. type: Plain text
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 msgid ""
827 "When a process terminates, its set of associated I<semadj> structures is "
828 "used to undo the effect of all of the semaphore operations it performed with "
829 "the B<SEM_UNDO> flag. This raises a difficulty: if one (or more) of these "
830 "semaphore adjustments would result in an attempt to decrease a semaphore's "
831 "value below zero, what should an implementation do? One possible approach "
832 "would be to block until all the semaphore adjustments could be performed. "
833 "This is however undesirable since it could force process termination to "
834 "block for arbitrarily long periods. Another possibility is that such "
835 "semaphore adjustments could be ignored altogether (somewhat analogously to "
836 "failing when B<IPC_NOWAIT> is specified for a semaphore operation). Linux "
837 "adopts a third approach: decreasing the semaphore value as far as possible "
838 "(i.e., to zero) and allowing process termination to proceed immediately."
839 msgstr ""
840 "Quand un processus se termine, l'ensemble des structures I<semadj> qui lui "
841 "sont associées servent à annuler les effets de toutes les opérations sur les "
842 "sémaphores réalisées avec l'attribut B<SEM_UNDO>. Cela pose un problème\\ : "
843 "si l'une (ou plusieurs) des modifications sur les sémaphores demande une "
844 "descente du compteur d'un sémaphore au-dessous de zéro, que doit faire "
845 "l'implémentation\\ ? Une approche possible consiste à bloquer jusqu'à ce que "
846 "la modification du sémaphore soit possible. C'est néanmoins peu désirable, "
847 "car la terminaison du processus peut alors bloquer pendant une période "
848 "arbitrairement longue. Une autre possibilité est d'ignorer la modification "
849 "du sémaphore (comme un échec lorsque B<IPC_NOWAIT> est spécifié durant une "
850 "opération). Linux adopte une troisième approche\\ : décroître la valeur du "
851 "sémaphore autant que possible (jusqu'à zéro) et permettre au processus de se "
852 "terminer immédiatement."
853
854 #. The bug report:
855 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2
856 #. the fix:
857 #. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
858 #. type: Plain text
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 msgid ""
862 "In Linux 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
863 "prevents a thread that is waiting for a semaphore value to become zero from "
864 "being woken up when the value does actually become zero. This bug is fixed "
865 "in Linux 2.6.11."
866 msgstr ""
867 "Dans Linux 2.6.x (x E<lt>= 10) un bogue peut, dans certaines circonstances, "
868 "empêcher un thread, attendant que la valeur d'un sémaphore s'annule, d'être "
869 "réveillé quand cette valeur atteint 0. Ce bogue est corrigé dans le "
870 "Linux 2.6.11."
871
872 #. type: SH
873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
875 #, no-wrap
876 msgid "EXAMPLES"
877 msgstr "EXEMPLES"
878
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid ""
883 "The following code segment uses B<semop>() to atomically wait for the value "
884 "of semaphore 0 to become zero, and then increment the semaphore value by one."
885 msgstr ""
886 "Le bout de code suivant utilise B<semop>() pour attendre de façon atomique "
887 "que la valeur du sémaphore 0 vaille zéro, puis incrémente la valeur du "
888 "sémaphore de un."
889
890 #. type: Plain text
891 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
892 #: opensuse-tumbleweed
893 #, fuzzy, no-wrap
894 #| msgid ""
895 #| "struct sembuf sops[2];\n"
896 #| "int semid;\n"
897 #| "\\&\n"
898 #| "/* Code to set I<semid> omitted */\n"
899 #| "\\&\n"
900 #| "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
901 #| "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
902 #| "sops[0].sem_flg = 0;\n"
903 #| "\\&\n"
904 #| "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
905 #| "sops[1].sem_op = 1; /* Increment value by one */\n"
906 #| "sops[1].sem_flg = 0;\n"
907 #| "\\&\n"
908 #| "if (semop(semid, sops, 2) == -1) {\n"
909 #| " perror(\"semop\");\n"
910 #| " exit(EXIT_FAILURE);\n"
911 #| "}\n"
912 msgid ""
913 "struct sembuf sops[2];\n"
914 "int semid;\n"
915 "\\&\n"
916 "/* Code to set \\f[I]semid\\fR omitted */\n"
917 "\\&\n"
918 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
919 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
920 "sops[0].sem_flg = 0;\n"
921 "\\&\n"
922 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
923 "sops[1].sem_op = 1; /* Increment value by one */\n"
924 "sops[1].sem_flg = 0;\n"
925 "\\&\n"
926 "if (semop(semid, sops, 2) == -1) {\n"
927 " perror(\"semop\");\n"
928 " exit(EXIT_FAILURE);\n"
929 "}\n"
930 msgstr ""
931 "struct sembuf sops[2];\n"
932 "int semid;\n"
933 "\\&\n"
934 "/* Le code pour configurer I<semid> est omis */\n"
935 "\\&\n"
936 "sops[0].sem_num = 0; /* Agir sur le sémaphore 0 */\n"
937 "sops[0].sem_op = 0; /* Attendre que la valeur soit égale à 0 */\n"
938 "sops[0].sem_flg = 0;\n"
939 "\\&\n"
940 "sops[1].sem_num = 0; /* Agir sur le sémaphore 0 */\n"
941 "sops[1].sem_op = 1; /* Incrémenter la valeur de un */\n"
942 "sops[1].sem_flg = 0;\n"
943 "\\&\n"
944 "if (semop(semid, sops, 2) == -1) {\n"
945 " perror(\"semop\");\n"
946 " exit(EXIT_FAILURE);\n"
947 "}\n"
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid ""
953 "A further example of the use of B<semop>() can be found in B<shmop>(2)."
954 msgstr ""
955 "Un autre exemple de l'usage de B<semop>() peut être trouvé dans B<shmop>(2)."
956
957 #. type: SH
958 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
959 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
960 #, no-wrap
961 msgid "SEE ALSO"
962 msgstr "VOIR AUSSI"
963
964 #. type: Plain text
965 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
966 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
967 msgid ""
968 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
969 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
970 msgstr ""
971 "B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
972 "B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)"
973
974 #. type: TH
975 #: debian-trixie
976 #, no-wrap
977 msgid "2024-05-02"
978 msgstr "2 mai 2024"
979
980 #. type: TH
981 #: debian-trixie
982 #, no-wrap
983 msgid "Linux man-pages 6.9.1"
984 msgstr "Pages du manuel de Linux 6.9.1"
985
986 #. type: Plain text
987 #: debian-trixie
988 msgid "Standard C library (I<libc>, I<-lc>)"
989 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
990
991 #. type: Plain text
992 #: debian-trixie fedora-44 fedora-rawhide
993 msgid "POSIX.1-2008."
994 msgstr "POSIX.1-2008."
995
996 #. type: SH
997 #: debian-trixie fedora-44 fedora-rawhide
998 #, no-wrap
999 msgid "VERSIONS"
1000 msgstr "VERSIONS"
1001
1002 #. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
1003 #. type: Plain text
1004 #: debian-trixie fedora-44 fedora-rawhide
1005 msgid ""
1006 "Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
1007 "SVr4."
1008 msgstr ""
1009 "Linux 2.5.52 (rétroportage dans Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, "
1010 "SVr4."
1011
1012 #. type: Plain text
1013 #: debian-trixie fedora-44 fedora-rawhide
1014 #, no-wrap
1015 msgid ""
1016 "struct sembuf sops[2];\n"
1017 "int semid;\n"
1018 "\\&\n"
1019 "/* Code to set I<semid> omitted */\n"
1020 "\\&\n"
1021 "sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
1022 "sops[0].sem_op = 0; /* Wait for value to equal 0 */\n"
1023 "sops[0].sem_flg = 0;\n"
1024 "\\&\n"
1025 "sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
1026 "sops[1].sem_op = 1; /* Increment value by one */\n"
1027 "sops[1].sem_flg = 0;\n"
1028 "\\&\n"
1029 "if (semop(semid, sops, 2) == -1) {\n"
1030 " perror(\"semop\");\n"
1031 " exit(EXIT_FAILURE);\n"
1032 "}\n"
1033 msgstr ""
1034 "struct sembuf sops[2];\n"
1035 "int semid;\n"
1036 "\\&\n"
1037 "/* Le code pour configurer I<semid> est omis */\n"
1038 "\\&\n"
1039 "sops[0].sem_num = 0; /* Agir sur le sémaphore 0 */\n"
1040 "sops[0].sem_op = 0; /* Attendre que la valeur soit égale à 0 */\n"
1041 "sops[0].sem_flg = 0;\n"
1042 "\\&\n"
1043 "sops[1].sem_num = 0; /* Agir sur le sémaphore 0 */\n"
1044 "sops[1].sem_op = 1; /* Incrémenter la valeur de un */\n"
1045 "sops[1].sem_flg = 0;\n"
1046 "\\&\n"
1047 "if (semop(semid, sops, 2) == -1) {\n"
1048 " perror(\"semop\");\n"
1049 " exit(EXIT_FAILURE);\n"
1050 "}\n"
1051
1052 #. type: TH
1053 #: fedora-44 fedora-rawhide
1054 #, no-wrap
1055 msgid "2024-07-23"
1056 msgstr "23 juillet 2024"
1057
1058 #. type: TH
1059 #: fedora-44 fedora-rawhide
1060 #, no-wrap
1061 msgid "Linux man-pages 6.13"
1062 msgstr "Pages du manuel de Linux 6.13"
1063
1064 #. type: TH
1065 #: mageia-cauldron
1066 #, no-wrap
1067 msgid "Linux man-pages 6.17"
1068 msgstr "Pages du manuel de Linux 6.17"
1069
1070 #. type: TH
1071 #: opensuse-leap-16-1 opensuse-tumbleweed
1072 #, no-wrap
1073 msgid "Linux man-pages (unreleased)"
1074 msgstr "Pages du manuel de Linux (non publiées)"