Debian Codegraph @

po/pt_BR/man2/getgroups.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # André Luiz Fassone <[email protected]>, 2000.
5 # Ricardo C.O.Freitas <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
10 "PO-Revision-Date: 2000-06-02 19:20-0300\n"
11 "Last-Translator: Ricardo C.O.Freitas <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Virtaal 1.0.0-beta1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "getgroups"
26 msgstr "getgroups"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "getgroups, setgroups - get/set list of supplementary group IDs"
53 msgstr ""
54 "getgroups, setgroups - obtém/seleciona a lista suplementar das IDs de grupo"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSE"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, fuzzy, no-wrap
87 #| msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
88 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable >I<size>B<]);>\n"
89 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<#include E<lt>grp.hE<gt>>\n"
96 msgstr "B<#include E<lt>grp.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
100 #: opensuse-tumbleweed
101 #, fuzzy, no-wrap
102 #| msgid "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
103 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[>I<size>B<]);>\n"
104 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "Requisitos de macro de teste de recursos para o glibc (consulte "
113 "B<feature_test_macros>(7)):"
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, fuzzy
119 #| msgid "setgroups(0, NULL);\n"
120 msgid "B<setgroups>():"
121 msgstr "setgroups(0, NULL);\n"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid ""
128 " Since glibc 2.19:\n"
129 " _DEFAULT_SOURCE\n"
130 " glibc 2.19 and earlier:\n"
131 " _BSD_SOURCE\n"
132 msgstr ""
133 " Desde o glibc 2.19:\n"
134 " _DEFAULT_SOURCE\n"
135 " glibc 2.19 e anterior:\n"
136 " _BSD_SOURCE\n"
137
138 #. type: SH
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "DESCRIPTION"
143 msgstr "DESCRIÇÃO"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "B<getgroups>() returns the supplementary group IDs of the calling process "
150 "in I<list>. The argument I<size> should be set to the maximum number of "
151 "items that can be stored in the buffer pointed to by I<list>. If the "
152 "calling process is a member of more than I<size> supplementary groups, then "
153 "an error results."
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "It is unspecified whether the effective group ID of the calling process is "
161 "included in the returned list. (Thus, an application should also call "
162 "B<getegid>(2) and add or remove the resulting value.)"
163 msgstr ""
164 "Ele é inespecífico se a ID efetiva de grupo do processo solicitante é "
165 "incluído na lista devolvida. (Assim, uma aplicação deveria chamar, também, "
166 "B<getgid>(2) e adicionar ou remover o valor resultante."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, fuzzy
172 msgid ""
173 "If I<size> is zero, I<list> is not modified, but the total number of "
174 "supplementary group IDs for the process is returned. This allows the caller "
175 "to determine the size of a dynamically allocated I<list> to be used in a "
176 "further call to B<getgroups>()."
177 msgstr ""
178 " Se I<size> é zero, I<list> não é modificado, mas o número total de grupos "
179 "sumplementares para o processo é devolvido."
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "B<setgroups>() sets the supplementary group IDs for the calling process. "
186 "Appropriate privileges are required (see the description of the B<EPERM> "
187 "error, below). The I<size> argument specifies the number of supplementary "
188 "group IDs in the buffer pointed to by I<list>. A process can drop all of "
189 "its supplementary groups with the call:"
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
194 #: opensuse-tumbleweed
195 #, fuzzy, no-wrap
196 #| msgid "setgroups(0, NULL);\n"
197 msgid "setgroups(0, (gid_t [0]){});\n"
198 msgstr "setgroups(0, NULL);\n"
199
200 #. type: SH
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "RETURN VALUE"
205 msgstr "VALOR DE RETORNO"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, fuzzy
211 #| msgid ""
212 #| "On success, the number of supplementary group IDs is returned. On error, "
213 #| "-1 is returned, and I<errno> is set appropriately."
214 msgid ""
215 "On success, B<getgroups>() returns the number of supplementary group IDs. "
216 "On error, -1 is returned, and I<errno> is set to indicate the error."
217 msgstr ""
218 "Em caso de sucesso, o número de IDs de grupos suplementares é devolvido. "
219 "Caso contrário, -1 é devolvido e I<errno> selecionado adequadamente."
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 #, fuzzy
225 #| msgid ""
226 #| "On success, zero is returned. On error, -1 is returned, and I<errno> is "
227 #| "set appropriately."
228 msgid ""
229 "On success, B<setgroups>() returns 0. On error, -1 is returned, and "
230 "I<errno> is set to indicate the error."
231 msgstr ""
232 "Em caso de sucesso, devolve . Caso contrário, -1 é devolvido e I<errno> "
233 "selecionado adequadamente."
234
235 #. type: SH
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "ERRORS"
240 msgstr "ERROS"
241
242 #. type: TP
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "B<EFAULT>"
247 msgstr "B<EFAULT>"
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid "I<list> has an invalid address."
253 msgstr "I<list> tem um endereço inválido."
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "B<getgroups>() can additionally fail with the following error:"
259 msgstr ""
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<EINVAL>"
266 msgstr "B<EINVAL>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid ""
272 "I<size> is less than the number of supplementary group IDs, but is not zero."
273 msgstr ""
274 "I<size> é menor que o número de IDs de grupos suplementares, mas não é zero."
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "B<setgroups>() can additionally fail with the following errors:"
280 msgstr ""
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, fuzzy
286 msgid ""
287 "I<size> is greater than B<NGROUPS_MAX> (32 before Linux 2.6.4; 65536 since "
288 "Linux 2.6.4)."
289 msgstr ""
290 "Para B<setgroups>, I<size> é maior que B<NGROUPS> (32 para o Linux 2.0.32)."
291
292 #. type: TP
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "B<ENOMEM>"
297 msgstr "B<ENOMEM>"
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 "Out of memory."
303 msgstr "Sem memória."
304
305 #. type: TP
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "B<EPERM>"
310 msgstr "B<EPERM>"
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid ""
316 "The calling process has insufficient privilege (the caller does not have the "
317 "B<CAP_SETGID> capability in the user namespace in which it resides)."
318 msgstr ""
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<EPERM> (since Linux 3.19)"
325 msgstr ""
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 "The use of B<setgroups>() is denied in this user namespace. See the "
332 "description of I</proc/>pidI</setgroups> in B<user_namespaces>(7)."
333 msgstr ""
334
335 #. type: SH
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "VERSIONS"
340 msgstr "VERSÕES"
341
342 #. type: SS
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "C library/kernel differences"
347 msgstr "Diferenças entre kernel/biblioteca C"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "At the kernel level, user IDs and group IDs are a per-thread attribute. "
354 "However, POSIX requires that all threads in a process share the same "
355 "credentials. The NPTL threading implementation handles the POSIX "
356 "requirements by providing wrapper functions for the various system calls "
357 "that change process UIDs and GIDs. These wrapper functions (including the "
358 "one for B<setgroups>()) employ a signal-based technique to ensure that when "
359 "one thread changes credentials, all of the other threads in the process also "
360 "change their credentials. For details, see B<nptl>(7)."
361 msgstr ""
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "STANDARDS"
368 msgstr "PADRÕES"
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, fuzzy, no-wrap
374 #| msgid "setgroups(0, NULL);\n"
375 msgid "B<getgroups>()"
376 msgstr "setgroups(0, NULL);\n"
377
378 #. type: Plain text
379 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
380 #: opensuse-tumbleweed
381 msgid "POSIX.1-2024."
382 msgstr "POSIX.1-2024."
383
384 #. type: TP
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, fuzzy, no-wrap
388 #| msgid "setgroups(0, NULL);\n"
389 msgid "B<setgroups>()"
390 msgstr "setgroups(0, NULL);\n"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid "None."
396 msgstr ""
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 "HISTORY"
403 msgstr "HISTÓRICO"
404
405 #. type: Plain text
406 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
407 #: opensuse-tumbleweed
408 msgid "4.3BSD, SVr4, POSIX.1-1988."
409 msgstr "4.3BSD, SVr4, POSIX.1-1988."
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, fuzzy
415 #| msgid ""
416 #| "B<setgroups>(): SVr4, 4.3BSD. Since B<setgroups>() requires privilege, "
417 #| "it is not covered by POSIX.1."
418 msgid ""
419 "SVr4, 4.3BSD. Since B<setgroups>() requires privilege, it is not covered "
420 "by POSIX.1."
421 msgstr ""
422 "B<setgroups>(): SVr4, 4.3BSD. Por B<setgroups>() requerer privilégios, ele "
423 "não é coberto pela POSIX.1."
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid ""
429 "The original Linux B<getgroups>() system call supported only 16-bit group "
430 "IDs. Subsequently, Linux 2.4 added B<getgroups32>(), supporting 32-bit "
431 "IDs. The glibc B<getgroups>() wrapper function transparently deals with "
432 "the variation across kernel versions."
433 msgstr ""
434
435 #. type: SH
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "NOTES"
440 msgstr "NOTAS"
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, fuzzy
446 #| msgid ""
447 #| "A process can have up to at least NGROUPS_MAX supplementary group IDs in "
448 #| "addition to the effective group ID. The set of supplementary group IDs is "
449 #| "inherited from the parent process and may be changed using B<setgroups>. "
450 #| "The maximum number of supplementary group IDs can be found using "
451 #| "B<sysconf>(3):"
452 msgid ""
453 "A process can have up to B<NGROUPS_MAX> supplementary group IDs in addition "
454 "to the effective group ID. The constant B<NGROUPS_MAX> is defined in "
455 "I<E<lt>limits.hE<gt>>. The set of supplementary group IDs is inherited from "
456 "the parent process, and preserved across an B<execve>(2)."
457 msgstr ""
458 "Um processo pode ter mais de NGROUPS_MAX IDs de grupo suplementares, "
459 "adicionalmente à ID efetiva de grupo. O conjunto de IDs de grupo "
460 "suplementares é herdado de um processo pai e pode ser alterado usando-se "
461 "B<setgroups>. O número máximo de IDs de grupo suplementares pode ser "
462 "descoberto usando B<sysconf>(3):"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid ""
468 "The maximum number of supplementary group IDs can be found at run time using "
469 "B<sysconf>(3):"
470 msgstr ""
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 #, no-wrap
476 msgid ""
477 "long ngroups_max;\n"
478 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
479 msgstr ""
480 "long ngroups_max;\n"
481 "ngroups_max = sysconf(_SC_NGROUPS_MAX);\n"
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "The maximum return value of B<getgroups>() cannot be larger than one more "
488 "than this value. Since Linux 2.6.4, the maximum number of supplementary "
489 "group IDs is also exposed via the Linux-specific read-only file, I</proc/sys/"
490 "kernel/ngroups_max>."
491 msgstr ""
492
493 #. type: SH
494 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
495 #: opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid "EXAMPLES"
498 msgstr "EXEMPLOS"
499
500 #. type: Plain text
501 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
502 #: opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid ""
505 "#include E<lt>err.hE<gt>\n"
506 "#include E<lt>stddef.hE<gt>\n"
507 "#include E<lt>stdint.hE<gt>\n"
508 "#include E<lt>stdio.hE<gt>\n"
509 "#include E<lt>stdlib.hE<gt>\n"
510 "#include E<lt>sys/types.hE<gt>\n"
511 "#include E<lt>unistd.hE<gt>\n"
512 "\\&\n"
513 "#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n"
514 "\\&\n"
515 "static gid_t *agetgroups(size_t *ngids);\n"
516 "\\&\n"
517 "int\n"
518 "main(void)\n"
519 "{\n"
520 " gid_t *gids;\n"
521 " size_t n;\n"
522 "\\&\n"
523 " gids = agetgroups(&n);\n"
524 " if (gids == NULL)\n"
525 " err(EXIT_FAILURE, \"agetgroups\");\n"
526 "\\&\n"
527 " if (n != 0) {\n"
528 " printf(\"%jd\", (intmax_t) gids[0]);\n"
529 " for (size_t i = 1; i E<lt> n; i++)\n"
530 " printf(\" %jd\", (intmax_t) gids[i]);\n"
531 " }\n"
532 " puts(\"\");\n"
533 "\\&\n"
534 " free(gids);\n"
535 " exit(EXIT_SUCCESS);\n"
536 "}\n"
537 "\\&\n"
538 "static gid_t *\n"
539 "agetgroups(size_t *ngids)\n"
540 "{\n"
541 " int n;\n"
542 " gid_t *gids;\n"
543 "\\&\n"
544 " n = getgroups(0, NULL);\n"
545 " if (n == -1)\n"
546 " return NULL;\n"
547 "\\&\n"
548 " gids = MALLOC(n, gid_t);\n"
549 " if (gids == NULL)\n"
550 " return NULL;\n"
551 "\\&\n"
552 " n = getgroups(n, gids);\n"
553 " if (n == -1) {\n"
554 " free(gids);\n"
555 " return NULL;\n"
556 " }\n"
557 "\\&\n"
558 " *ngids = n;\n"
559 " return gids;\n"
560 "}\n"
561 msgstr ""
562
563 #. #-#-#-#-# archlinux: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
564 #. SRC END
565 #. type: SH
566 #. #-#-#-#-# debian-trixie: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
567 #. type: SH
568 #. #-#-#-#-# debian-unstable: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
569 #. SRC END
570 #. type: SH
571 #. #-#-#-#-# fedora-44: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
572 #. SRC END
573 #. type: SH
574 #. #-#-#-#-# fedora-rawhide: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
575 #. SRC END
576 #. type: SH
577 #. #-#-#-#-# mageia-cauldron: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
578 #. SRC END
579 #. type: SH
580 #. #-#-#-#-# opensuse-leap-16-1: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
581 #. SRC END
582 #. type: SH
583 #. #-#-#-#-# opensuse-tumbleweed: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-#
584 #. SRC END
585 #. type: SH
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "SEE ALSO"
590 msgstr "VEJA TAMBÉM"
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid ""
596 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
597 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
598 msgstr ""
599 "B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), "
600 "B<initgroups>(3), B<capabilities>(7), B<credentials>(7)"
601
602 #. type: TH
603 #: debian-trixie
604 #, no-wrap
605 msgid "2024-05-02"
606 msgstr "2 maio 2024"
607
608 #. type: TH
609 #: debian-trixie
610 #, no-wrap
611 msgid "Linux man-pages 6.9.1"
612 msgstr "Linux man-pages 6.9.1"
613
614 #. type: Plain text
615 #: debian-trixie
616 msgid "Standard C library (I<libc>, I<-lc>)"
617 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
618
619 #. type: Plain text
620 #: debian-trixie
621 #, fuzzy, no-wrap
622 #| msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
623 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n"
624 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
625
626 #. type: Plain text
627 #: debian-trixie
628 #, fuzzy, no-wrap
629 #| msgid "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
630 msgid "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n"
631 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
632
633 #. type: Plain text
634 #: debian-trixie fedora-44 fedora-rawhide
635 #, no-wrap
636 msgid "setgroups(0, NULL);\n"
637 msgstr "setgroups(0, NULL);\n"
638
639 #. type: Plain text
640 #: debian-trixie fedora-44 fedora-rawhide
641 msgid "POSIX.1-2008."
642 msgstr "POSIX.1-2008."
643
644 #. type: Plain text
645 #: debian-trixie fedora-44 fedora-rawhide
646 msgid "SVr4, 4.3BSD, POSIX.1-2001."
647 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
648
649 #. type: TH
650 #: fedora-44 fedora-rawhide
651 #, no-wrap
652 msgid "2024-12-14"
653 msgstr "14 dezembro 2024"
654
655 #. type: TH
656 #: fedora-44 fedora-rawhide
657 #, no-wrap
658 msgid "Linux man-pages 6.13"
659 msgstr "Linux man-pages 6.13"
660
661 #. type: Plain text
662 #: fedora-44 fedora-rawhide
663 #, fuzzy, no-wrap
664 #| msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
665 msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
666 msgstr "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>"
667
668 #. type: Plain text
669 #: fedora-44 fedora-rawhide
670 #, fuzzy, no-wrap
671 #| msgid "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
672 msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n"
673 msgstr "B<int setgroups(size_t >I<size>B<, const gid_t *>I<list>B<);>"
674
675 #. type: TH
676 #: mageia-cauldron
677 #, no-wrap
678 msgid "Linux man-pages 6.17"
679 msgstr "Linux man-pages 6.17"
680
681 #. type: TH
682 #: opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "Linux man-pages (unreleased)"
685 msgstr "Linux man-pages (não lançado)"