Debian Codegraph @

po/fr/man2/getgroups.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, 2013.
18 # Cédric Boutillier <[email protected]>, 2011, 2012.
19 # Frédéric Hantrais <[email protected]>, 2013, 2014.
20 # Jean-Philippe MENGUAL <[email protected]>, 2020-2024.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n\n"
24 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
25 "PO-Revision-Date: 2024-01-29 11:32+0100\n"
26 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
27 "Language-Team: French <[email protected]>\n"
28 "Language: fr\n"
29 "MIME-Version: 1.0\n"
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
32 "Plural-Forms: nplurals=2; plural=n > 1;\n"
33 "X-Generator: Lokalize 22.12.3\n"
34
35 #. type: TH
36 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
37 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "getgroups"
40 msgstr "getgroups"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "getgroups, setgroups - get/set list of supplementary group IDs"
66 msgstr ""
67 "getgroups, setgroups - Lire et écrire la liste des groupes additionnels d'un "
68 "processus"
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 "LIBRARY"
75 msgstr "BIBLIOTHÈQUE"
76
77 #. type: Plain text
78 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
79 #: opensuse-leap-16-1 opensuse-tumbleweed
80 msgid "Standard C library (I<libc>,\\ I<-lc>)"
81 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
82
83 #. type: SH
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "SYNOPSIS"
88 msgstr "SYNOPSIS"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<#include E<lt>unistd.hE<gt>>\n"
95 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
96
97 #. type: Plain text
98 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
99 #: opensuse-tumbleweed
100 #, fuzzy, no-wrap
101 #| msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
102 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable >I<size>B<]);>\n"
103 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 #, no-wrap
109 msgid "B<#include E<lt>grp.hE<gt>>\n"
110 msgstr "B<#include E<lt>grp.hE<gt>>\n"
111
112 #. type: Plain text
113 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
114 #: opensuse-tumbleweed
115 #, fuzzy, no-wrap
116 #| msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
117 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[>I<size>B<]);>\n"
118 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid ""
124 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
125 msgstr ""
126 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
127 "B<feature_test_macros>(7)) :"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid "B<setgroups>():"
133 msgstr "B<setgroups>() :"
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid ""
140 " Since glibc 2.19:\n"
141 " _DEFAULT_SOURCE\n"
142 " glibc 2.19 and earlier:\n"
143 " _BSD_SOURCE\n"
144 msgstr ""
145 " Depuis la glibc 2.19 :\n"
146 " _DEFAULT_SOURCE\n"
147 " glibc 2.19 et antérieures :\n"
148 " _BSD_SOURCE\n"
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr "DESCRIPTION"
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "B<getgroups>() returns the supplementary group IDs of the calling process "
162 "in I<list>. The argument I<size> should be set to the maximum number of "
163 "items that can be stored in the buffer pointed to by I<list>. If the "
164 "calling process is a member of more than I<size> supplementary groups, then "
165 "an error results."
166 msgstr ""
167 "B<getgroups>() renvoie dans la liste I<list> les identifiants des groupes "
168 "additionnels du processus appelant. Le paramètre I<size> doit indiquer le "
169 "nombre maximal d'éléments qui peuvent être stockés dans le tampon pointé par "
170 "I<list>. Si le processus appelant est membre de plus de I<size> groupes "
171 "additionnels, cela génère une erreur."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "It is unspecified whether the effective group ID of the calling process is "
178 "included in the returned list. (Thus, an application should also call "
179 "B<getegid>(2) and add or remove the resulting value.)"
180 msgstr ""
181 "Il n'est pas précisé si l'ID du groupe effectif du processus appelant est "
182 "inclus dans la liste renvoyée (ainsi, une application doit aussi appeler "
183 "B<getegid>(2) et ajouter ou supprimer la valeur qui en résulte)."
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "If I<size> is zero, I<list> is not modified, but the total number of "
190 "supplementary group IDs for the process is returned. This allows the caller "
191 "to determine the size of a dynamically allocated I<list> to be used in a "
192 "further call to B<getgroups>()."
193 msgstr ""
194 "Si I<size> vaut zéro, I<list> n'est pas modifiée, mais le nombre total de "
195 "groupes additionnels pour le processus est renvoyé. Cela permet à l'appelant "
196 "de déterminer la taille d'une liste I<list> allouée dynamiquement à utiliser "
197 "dans un appel à B<getgroups>() ultérieur."
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "B<setgroups>() sets the supplementary group IDs for the calling process. "
204 "Appropriate privileges are required (see the description of the B<EPERM> "
205 "error, below). The I<size> argument specifies the number of supplementary "
206 "group IDs in the buffer pointed to by I<list>. A process can drop all of "
207 "its supplementary groups with the call:"
208 msgstr ""
209 "B<setgroups>() définit des identifiants de groupe additionnel pour le "
210 "processus appelant. Les privilèges appropriés sont nécessaires (voir la "
211 "description de B<EPERM> ci-dessous). Le paramètre I<size> indique le nombre "
212 "d'identifiants de groupe additionnel du tampon pointé par I<list>. Un "
213 "processus peut supprimer tous ses groupes additionnels :"
214
215 #. type: Plain text
216 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
217 #: opensuse-tumbleweed
218 #, fuzzy, no-wrap
219 #| msgid "setgroups(0, NULL);\n"
220 msgid "setgroups(0, (gid_t [0]){});\n"
221 msgstr "setgroups(0, NULL);\n"
222
223 #. type: SH
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "RETURN VALUE"
228 msgstr "VALEUR RENVOYÉE"
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "On success, B<getgroups>() returns the number of supplementary group IDs. "
235 "On error, -1 is returned, and I<errno> is set to indicate the error."
236 msgstr ""
237 "En cas de succès, B<getgroups>() renvoie le nombre d'identifiants de groupe "
238 "additionnel. En cas d'erreur, B<-1> est renvoyé et I<errno> est positionné "
239 "pour indiquer l'erreur."
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "On success, B<setgroups>() returns 0. On error, -1 is returned, and "
246 "I<errno> is set to indicate the error."
247 msgstr ""
248 "En cas de succès, B<setgroups>() renvoie B<0>. En cas d'erreur, B<-1> est "
249 "renvoyé et I<errno> est positionné pour indiquer l'erreur."
250
251 #. type: SH
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "ERRORS"
256 msgstr "ERREURS"
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "B<EFAULT>"
263 msgstr "B<EFAULT>"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid "I<list> has an invalid address."
269 msgstr "I<list> contient une adresse non autorisée."
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid "B<getgroups>() can additionally fail with the following error:"
275 msgstr "B<getgroups>() peut également échouer avec les erreurs suivantes :"
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<EINVAL>"
282 msgstr "B<EINVAL>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "I<size> is less than the number of supplementary group IDs, but is not zero."
289 msgstr ""
290 "I<size> est inférieur au nombre d'identifiants de groupe additionnel, et "
291 "n'est pas nul."
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "B<setgroups>() can additionally fail with the following errors:"
297 msgstr "B<setgroups>() peut également échouer avec les erreurs suivantes :"
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "I<size> is greater than B<NGROUPS_MAX> (32 before Linux 2.6.4; 65536 since "
304 "Linux 2.6.4)."
305 msgstr ""
306 "I<size> est plus grand que B<NGROUPS_MAX> (32 avant Linux 2.6.4 ; 65536 "
307 "depuis Linux 2.6.4)."
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<ENOMEM>"
314 msgstr "B<ENOMEM>"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid "Out of memory."
320 msgstr "Plus assez de mémoire."
321
322 #. type: TP
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "B<EPERM>"
327 msgstr "B<EPERM>"
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "The calling process has insufficient privilege (the caller does not have the "
334 "B<CAP_SETGID> capability in the user namespace in which it resides)."
335 msgstr ""
336 "Le processus appelant n'a pas de privilèges suffisants (l'appelant n'a pas "
337 "la capacité B<CAP_SETGID> dans l'espace de noms utilisateur où il réside)."
338
339 #. type: TP
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "B<EPERM> (since Linux 3.19)"
344 msgstr "B<EPERM> (depuis Linux 3.19)"
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "The use of B<setgroups>() is denied in this user namespace. See the "
351 "description of I</proc/>pidI</setgroups> in B<user_namespaces>(7)."
352 msgstr ""
353 "L'utilisation de B<setgroups>() est interdite dans cet espace de noms "
354 "utilisateur. Voir la description de I</proc/>pidI</setgroups> dans "
355 "B<user_namespaces>(7)."
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "VERSIONS"
362 msgstr "VERSIONS"
363
364 #. type: SS
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "C library/kernel differences"
369 msgstr "Différences entre bibliothèque C et noyau"
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 "At the kernel level, user IDs and group IDs are a per-thread attribute. "
376 "However, POSIX requires that all threads in a process share the same "
377 "credentials. The NPTL threading implementation handles the POSIX "
378 "requirements by providing wrapper functions for the various system calls "
379 "that change process UIDs and GIDs. These wrapper functions (including the "
380 "one for B<setgroups>()) employ a signal-based technique to ensure that when "
381 "one thread changes credentials, all of the other threads in the process also "
382 "change their credentials. For details, see B<nptl>(7)."
383 msgstr ""
384 "Au niveau du noyau, les ID d'utilisateur et de groupe représentent un "
385 "attribut par thread. Cependant, POSIX exige que tous les threads d'un "
386 "processus partagent les mêmes droits. L'implémentation des threads NPTL gère "
387 "les exigences de POSIX en fournissant des fonctions enveloppes pour les "
388 "appels système qui modifient les UID et les GID du processus. Ces fonctions "
389 "enveloppes (dont celle de B<setgroups>()) utilisent une technique basée sur "
390 "le signal pour s'assurer que quand un thread modifie les droits, tous les "
391 "autres threads du processus modifient également leurs droits. Pour des "
392 "détails, voir B<nptl>(7)."
393
394 #. type: SH
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid "STANDARDS"
399 msgstr "NORMES"
400
401 #. type: TP
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "B<getgroups>()"
406 msgstr "B<getgroups>()"
407
408 #. type: Plain text
409 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
410 #: opensuse-tumbleweed
411 msgid "POSIX.1-2024."
412 msgstr "POSIX.1-2024."
413
414 #. type: TP
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<setgroups>()"
419 msgstr "B<setgroups>()"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "None."
425 msgstr "Aucun."
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 "HISTORY"
432 msgstr "HISTORIQUE"
433
434 #. type: Plain text
435 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
436 #: opensuse-tumbleweed
437 msgid "4.3BSD, SVr4, POSIX.1-1988."
438 msgstr "4.3BSD, SVr4, POSIX.1-1988."
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "SVr4, 4.3BSD. Since B<setgroups>() requires privilege, it is not covered "
445 "by POSIX.1."
446 msgstr ""
447 "SVr4, 4.3BSD. Depuis que B<setgroups>() exige des privilèges, il n'est pas "
448 "traité dans POSIX.1."
449
450 #. type: Plain text
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 msgid ""
454 "The original Linux B<getgroups>() system call supported only 16-bit group "
455 "IDs. Subsequently, Linux 2.4 added B<getgroups32>(), supporting 32-bit "
456 "IDs. The glibc B<getgroups>() wrapper function transparently deals with "
457 "the variation across kernel versions."
458 msgstr ""
459 "L'appel système B<getgroups>() originel de Linux ne gérait que des "
460 "identifiants de groupe sur 16 bits. En conséquence, Linux 2.4 a ajouté "
461 "B<getgroups32>() qui prend en charge des identifiants 32 bits. La fonction "
462 "B<getgroups>() de la glibc qui l'encapsule gère de manière transparente ces "
463 "différences entre noyaux."
464
465 #. type: SH
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "NOTES"
470 msgstr "NOTES"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "A process can have up to B<NGROUPS_MAX> supplementary group IDs in addition "
477 "to the effective group ID. The constant B<NGROUPS_MAX> is defined in "
478 "I<E<lt>limits.hE<gt>>. The set of supplementary group IDs is inherited from "
479 "the parent process, and preserved across an B<execve>(2)."
480 msgstr ""
481 "Un processus peut avoir jusqu'à B<NGROUPS_MAX> identifiants de groupe "
482 "additionnel en plus de son identifiant de groupe effectif. La constante "
483 "B<NGROUPS_MAX> est définie dans I<E<lt>limits.hE<gt>>. Le jeu d'identifiants "
484 "de groupe additionnel est hérité du processus parent, et est préservé au "
485 "travers des appels à B<execve>(2)."
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid ""
491 "The maximum number of supplementary group IDs can be found at run time using "
492 "B<sysconf>(3):"
493 msgstr ""
494 "Le nombre maximal d'identifiants de groupe additionnel peut être obtenu "
495 "pendant l'exécution au moyen de B<sysconf>(3) :"
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid ""
502 "long ngroups_max;\n"
503 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
504 msgstr ""
505 "long ngroups_max;\n"
506 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "The maximum return value of B<getgroups>() cannot be larger than one more "
513 "than this value. Since Linux 2.6.4, the maximum number of supplementary "
514 "group IDs is also exposed via the Linux-specific read-only file, I</proc/sys/"
515 "kernel/ngroups_max>."
516 msgstr ""
517 "La valeur de retour maximale de B<getgroups>() ne peut pas être plus grande "
518 "que B<1> plus cette valeur. Depuis Linux 2.6.4, le nombre maximal "
519 "d’identifiants de groupe additionnel est aussi exposé à l’aide du fichier I</"
520 "proc/sys/kernel/ngroups_max> en lecture seule et spécifique à Linux."
521
522 #. type: SH
523 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
524 #: opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "EXAMPLES"
527 msgstr "EXEMPLES"
528
529 #. type: Plain text
530 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
531 #: opensuse-leap-16-1 opensuse-tumbleweed
532 #, no-wrap
533 msgid ""
534 "#include E<lt>err.hE<gt>\n"
535 "#include E<lt>stddef.hE<gt>\n"
536 "#include E<lt>stdint.hE<gt>\n"
537 "#include E<lt>stdio.hE<gt>\n"
538 "#include E<lt>stdlib.hE<gt>\n"
539 "#include E<lt>sys/types.hE<gt>\n"
540 "#include E<lt>unistd.hE<gt>\n"
541 "\\&\n"
542 "#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n"
543 "\\&\n"
544 "static gid_t *agetgroups(size_t *ngids);\n"
545 "\\&\n"
546 "int\n"
547 "main(void)\n"
548 "{\n"
549 " gid_t *gids;\n"
550 " size_t n;\n"
551 "\\&\n"
552 " gids = agetgroups(&n);\n"
553 " if (gids == NULL)\n"
554 " err(EXIT_FAILURE, \"agetgroups\");\n"
555 "\\&\n"
556 " if (n != 0) {\n"
557 " printf(\"%jd\", (intmax_t) gids[0]);\n"
558 " for (size_t i = 1; i E<lt> n; i++)\n"
559 " printf(\" %jd\", (intmax_t) gids[i]);\n"
560 " }\n"
561 " puts(\"\");\n"
562 "\\&\n"
563 " free(gids);\n"
564 " exit(EXIT_SUCCESS);\n"
565 "}\n"
566 "\\&\n"
567 "static gid_t *\n"
568 "agetgroups(size_t *ngids)\n"
569 "{\n"
570 " int n;\n"
571 " gid_t *gids;\n"
572 "\\&\n"
573 " n = getgroups(0, NULL);\n"
574 " if (n == -1)\n"
575 " return NULL;\n"
576 "\\&\n"
577 " gids = MALLOC(n, gid_t);\n"
578 " if (gids == NULL)\n"
579 " return NULL;\n"
580 "\\&\n"
581 " n = getgroups(n, gids);\n"
582 " if (n == -1) {\n"
583 " free(gids);\n"
584 " return NULL;\n"
585 " }\n"
586 "\\&\n"
587 " *ngids = n;\n"
588 " return gids;\n"
589 "}\n"
590 msgstr ""
591 "#include E<lt>err.hE<gt>\n"
592 "#include E<lt>stddef.hE<gt>\n"
593 "#include E<lt>stdint.hE<gt>\n"
594 "#include E<lt>stdio.hE<gt>\n"
595 "#include E<lt>stdlib.hE<gt>\n"
596 "#include E<lt>sys/types.hE<gt>\n"
597 "#include E<lt>unistd.hE<gt>\n"
598 "\\&\n"
599 "#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n"
600 "\\&\n"
601 "static gid_t *agetgroups(size_t *ngids);\n"
602 "\\&\n"
603 "int\n"
604 "main(void)\n"
605 "{\n"
606 " gid_t *gids;\n"
607 " size_t n;\n"
608 "\\&\n"
609 " gids = agetgroups(&n);\n"
610 " if (gids == NULL)\n"
611 " err(EXIT_FAILURE, \"agetgroups\");\n"
612 "\\&\n"
613 " if (n != 0) {\n"
614 " printf(\"%jd\", (intmax_t) gids[0]);\n"
615 " for (size_t i = 1; i E<lt> n; i++)\n"
616 " printf(\" %jd\", (intmax_t) gids[i]);\n"
617 " }\n"
618 " puts(\"\");\n"
619 "\\&\n"
620 " free(gids);\n"
621 " exit(EXIT_SUCCESS);\n"
622 "}\n"
623 "\\&\n"
624 "static gid_t *\n"
625 "agetgroups(size_t *ngids)\n"
626 "{\n"
627 " int n;\n"
628 " gid_t *gids;\n"
629 "\\&\n"
630 " n = getgroups(0, NULL);\n"
631 " if (n == -1)\n"
632 " return NULL;\n"
633 "\\&\n"
634 " gids = MALLOC(n, gid_t);\n"
635 " if (gids == NULL)\n"
636 " return NULL;\n"
637 "\\&\n"
638 " n = getgroups(n, gids);\n"
639 " if (n == -1) {\n"
640 " free(gids);\n"
641 " return NULL;\n"
642 " }\n"
643 "\\&\n"
644 " *ngids = n;\n"
645 " return gids;\n"
646 "}\n"
647
648 #. #-#-#-#-# archlinux: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
649 #. SRC END
650 #. type: SH
651 #. #-#-#-#-# debian-trixie: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
652 #. type: SH
653 #. #-#-#-#-# debian-unstable: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
654 #. SRC END
655 #. type: SH
656 #. #-#-#-#-# fedora-44: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
657 #. SRC END
658 #. type: SH
659 #. #-#-#-#-# fedora-rawhide: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
660 #. SRC END
661 #. type: SH
662 #. #-#-#-#-# mageia-cauldron: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
663 #. SRC END
664 #. type: SH
665 #. #-#-#-#-# opensuse-leap-16-1: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
666 #. SRC END
667 #. type: SH
668 #. #-#-#-#-# opensuse-tumbleweed: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
669 #. SRC END
670 #. type: SH
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 #, no-wrap
674 msgid "SEE ALSO"
675 msgstr "VOIR AUSSI"
676
677 #. type: Plain text
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 msgid ""
681 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
682 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
683 msgstr ""
684 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
685 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
686
687 #. type: TH
688 #: debian-trixie
689 #, no-wrap
690 msgid "2024-05-02"
691 msgstr "2 mai 2024"
692
693 #. type: TH
694 #: debian-trixie
695 #, no-wrap
696 msgid "Linux man-pages 6.9.1"
697 msgstr "Pages du manuel de Linux 6.9.1"
698
699 #. type: Plain text
700 #: debian-trixie
701 msgid "Standard C library (I<libc>, I<-lc>)"
702 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
703
704 #. type: Plain text
705 #: debian-trixie
706 #, no-wrap
707 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n"
708 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n"
709
710 #. type: Plain text
711 #: debian-trixie
712 #, no-wrap
713 msgid "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n"
714 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n"
715
716 #. type: Plain text
717 #: debian-trixie fedora-44 fedora-rawhide
718 #, no-wrap
719 msgid "setgroups(0, NULL);\n"
720 msgstr "setgroups(0, NULL);\n"
721
722 #. type: Plain text
723 #: debian-trixie fedora-44 fedora-rawhide
724 msgid "POSIX.1-2008."
725 msgstr "POSIX.1-2008."
726
727 #. type: Plain text
728 #: debian-trixie fedora-44 fedora-rawhide
729 msgid "SVr4, 4.3BSD, POSIX.1-2001."
730 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
731
732 #. type: TH
733 #: fedora-44 fedora-rawhide
734 #, no-wrap
735 msgid "2024-12-14"
736 msgstr "14 décembre 2024"
737
738 #. type: TH
739 #: fedora-44 fedora-rawhide
740 #, no-wrap
741 msgid "Linux man-pages 6.13"
742 msgstr "Pages du manuel de Linux 6.13"
743
744 #. type: Plain text
745 #: fedora-44 fedora-rawhide
746 #, no-wrap
747 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
748 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
749
750 #. type: Plain text
751 #: fedora-44 fedora-rawhide
752 #, no-wrap
753 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
754 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
755
756 #. type: TH
757 #: mageia-cauldron
758 #, no-wrap
759 msgid "Linux man-pages 6.17"
760 msgstr "Pages du manuel de Linux 6.17"
761
762 #. type: TH
763 #: opensuse-leap-16-1 opensuse-tumbleweed
764 #, no-wrap
765 msgid "Linux man-pages (unreleased)"
766 msgstr "Pages du manuel de Linux (non publiées)"