| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "getgroups" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "getgroups, setgroups - get/set list of supplementary group IDs" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable >I<size>B<]);>\n" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "B<#include E<lt>grp.hE<gt>>\n" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 95 |
#: opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[>I<size>B<]);>\n" |
| 98 |
msgstr "" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
msgid "" |
| 104 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 105 |
msgstr "" |
| 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 "B<setgroups>():" |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, no-wrap |
| 117 |
msgid "" |
| 118 |
" Since glibc 2.19:\n" |
| 119 |
" _DEFAULT_SOURCE\n" |
| 120 |
" glibc 2.19 and earlier:\n" |
| 121 |
" _BSD_SOURCE\n" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: SH |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "DESCRIPTION" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"B<getgroups>() returns the supplementary group IDs of the calling process " |
| 136 |
"in I<list>. The argument I<size> should be set to the maximum number of " |
| 137 |
"items that can be stored in the buffer pointed to by I<list>. If the " |
| 138 |
"calling process is a member of more than I<size> supplementary groups, then " |
| 139 |
"an error results." |
| 140 |
msgstr "" |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"It is unspecified whether the effective group ID of the calling process is " |
| 147 |
"included in the returned list. (Thus, an application should also call " |
| 148 |
"B<getegid>(2) and add or remove the resulting value.)" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "" |
| 155 |
"If I<size> is zero, I<list> is not modified, but the total number of " |
| 156 |
"supplementary group IDs for the process is returned. This allows the caller " |
| 157 |
"to determine the size of a dynamically allocated I<list> to be used in a " |
| 158 |
"further call to B<getgroups>()." |
| 159 |
msgstr "" |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
msgid "" |
| 165 |
"B<setgroups>() sets the supplementary group IDs for the calling process. " |
| 166 |
"Appropriate privileges are required (see the description of the B<EPERM> " |
| 167 |
"error, below). The I<size> argument specifies the number of supplementary " |
| 168 |
"group IDs in the buffer pointed to by I<list>. A process can drop all of " |
| 169 |
"its supplementary groups with the call:" |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: Plain text |
| 173 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 174 |
#: opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "setgroups(0, (gid_t [0]){});\n" |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: SH |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "RETURN VALUE" |
| 184 |
msgstr "" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "" |
| 190 |
"On success, B<getgroups>() returns the number of supplementary group IDs. " |
| 191 |
"On error, -1 is returned, and I<errno> is set to indicate the error." |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"On success, B<setgroups>() returns 0. On error, -1 is returned, and " |
| 199 |
"I<errno> is set to indicate the error." |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: SH |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
#, no-wrap |
| 206 |
msgid "ERRORS" |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: TP |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
#, no-wrap |
| 213 |
msgid "B<EFAULT>" |
| 214 |
msgstr "" |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "I<list> has an invalid address." |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
msgid "B<getgroups>() can additionally fail with the following error:" |
| 226 |
msgstr "" |
| 227 |
|
| 228 |
#. type: TP |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid "B<EINVAL>" |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#. type: Plain text |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
msgid "" |
| 239 |
"I<size> is less than the number of supplementary group IDs, but is not zero." |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "B<setgroups>() can additionally fail with the following errors:" |
| 246 |
msgstr "" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "" |
| 252 |
"I<size> is greater than B<NGROUPS_MAX> (32 before Linux 2.6.4; 65536 since " |
| 253 |
"Linux 2.6.4)." |
| 254 |
msgstr "" |
| 255 |
|
| 256 |
#. type: TP |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "B<ENOMEM>" |
| 261 |
msgstr "" |
| 262 |
|
| 263 |
#. type: Plain text |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
msgid "Out of memory." |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: TP |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "B<EPERM>" |
| 274 |
msgstr "" |
| 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 "" |
| 280 |
"The calling process has insufficient privilege (the caller does not have the " |
| 281 |
"B<CAP_SETGID> capability in the user namespace in which it resides)." |
| 282 |
msgstr "" |
| 283 |
|
| 284 |
#. type: TP |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
#, no-wrap |
| 288 |
msgid "B<EPERM> (since Linux 3.19)" |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#. type: Plain text |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
msgid "" |
| 295 |
"The use of B<setgroups>() is denied in this user namespace. See the " |
| 296 |
"description of I</proc/>pidI</setgroups> in B<user_namespaces>(7)." |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#. type: SH |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "VERSIONS" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: SS |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "C library/kernel differences" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "" |
| 317 |
"At the kernel level, user IDs and group IDs are a per-thread attribute. " |
| 318 |
"However, POSIX requires that all threads in a process share the same " |
| 319 |
"credentials. The NPTL threading implementation handles the POSIX " |
| 320 |
"requirements by providing wrapper functions for the various system calls " |
| 321 |
"that change process UIDs and GIDs. These wrapper functions (including the " |
| 322 |
"one for B<setgroups>()) employ a signal-based technique to ensure that when " |
| 323 |
"one thread changes credentials, all of the other threads in the process also " |
| 324 |
"change their credentials. For details, see B<nptl>(7)." |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#. type: SH |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "STANDARDS" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. type: TP |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
#, no-wrap |
| 338 |
msgid "B<getgroups>()" |
| 339 |
msgstr "" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 343 |
#: opensuse-tumbleweed |
| 344 |
msgid "POSIX.1-2024." |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#. type: TP |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "B<setgroups>()" |
| 352 |
msgstr "" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
msgid "None." |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: SH |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
#, no-wrap |
| 364 |
msgid "HISTORY" |
| 365 |
msgstr "" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 369 |
#: opensuse-tumbleweed |
| 370 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "" |
| 377 |
"SVr4, 4.3BSD. Since B<setgroups>() requires privilege, it is not covered " |
| 378 |
"by POSIX.1." |
| 379 |
msgstr "" |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"The original Linux B<getgroups>() system call supported only 16-bit group " |
| 386 |
"IDs. Subsequently, Linux 2.4 added B<getgroups32>(), supporting 32-bit " |
| 387 |
"IDs. The glibc B<getgroups>() wrapper function transparently deals with " |
| 388 |
"the variation across kernel versions." |
| 389 |
msgstr "" |
| 390 |
|
| 391 |
#. type: SH |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "NOTES" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
msgid "" |
| 402 |
"A process can have up to B<NGROUPS_MAX> supplementary group IDs in addition " |
| 403 |
"to the effective group ID. The constant B<NGROUPS_MAX> is defined in " |
| 404 |
"I<E<lt>limits.hE<gt>>. The set of supplementary group IDs is inherited from " |
| 405 |
"the parent process, and preserved across an B<execve>(2)." |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: Plain text |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
msgid "" |
| 412 |
"The maximum number of supplementary group IDs can be found at run time using " |
| 413 |
"B<sysconf>(3):" |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
#, no-wrap |
| 420 |
msgid "" |
| 421 |
"long ngroups_max;\n" |
| 422 |
"ngroups_max = sysconf(_SC_NGROUPS_MAX);\n" |
| 423 |
msgstr "" |
| 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 maximum return value of B<getgroups>() cannot be larger than one more " |
| 430 |
"than this value. Since Linux 2.6.4, the maximum number of supplementary " |
| 431 |
"group IDs is also exposed via the Linux-specific read-only file, I</proc/sys/" |
| 432 |
"kernel/ngroups_max>." |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#. type: SH |
| 436 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 437 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "EXAMPLES" |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 444 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid "" |
| 447 |
"#include E<lt>err.hE<gt>\n" |
| 448 |
"#include E<lt>stddef.hE<gt>\n" |
| 449 |
"#include E<lt>stdint.hE<gt>\n" |
| 450 |
"#include E<lt>stdio.hE<gt>\n" |
| 451 |
"#include E<lt>stdlib.hE<gt>\n" |
| 452 |
"#include E<lt>sys/types.hE<gt>\n" |
| 453 |
"#include E<lt>unistd.hE<gt>\n" |
| 454 |
"\\&\n" |
| 455 |
"#define MALLOC(n, T) ((T *) reallocarray(NULL, n, sizeof(T)))\n" |
| 456 |
"\\&\n" |
| 457 |
"static gid_t *agetgroups(size_t *ngids);\n" |
| 458 |
"\\&\n" |
| 459 |
"int\n" |
| 460 |
"main(void)\n" |
| 461 |
"{\n" |
| 462 |
" gid_t *gids;\n" |
| 463 |
" size_t n;\n" |
| 464 |
"\\&\n" |
| 465 |
" gids = agetgroups(&n);\n" |
| 466 |
" if (gids == NULL)\n" |
| 467 |
" err(EXIT_FAILURE, \"agetgroups\");\n" |
| 468 |
"\\&\n" |
| 469 |
" if (n != 0) {\n" |
| 470 |
" printf(\"%jd\", (intmax_t) gids[0]);\n" |
| 471 |
" for (size_t i = 1; i E<lt> n; i++)\n" |
| 472 |
" printf(\" %jd\", (intmax_t) gids[i]);\n" |
| 473 |
" }\n" |
| 474 |
" puts(\"\");\n" |
| 475 |
"\\&\n" |
| 476 |
" free(gids);\n" |
| 477 |
" exit(EXIT_SUCCESS);\n" |
| 478 |
"}\n" |
| 479 |
"\\&\n" |
| 480 |
"static gid_t *\n" |
| 481 |
"agetgroups(size_t *ngids)\n" |
| 482 |
"{\n" |
| 483 |
" int n;\n" |
| 484 |
" gid_t *gids;\n" |
| 485 |
"\\&\n" |
| 486 |
" n = getgroups(0, NULL);\n" |
| 487 |
" if (n == -1)\n" |
| 488 |
" return NULL;\n" |
| 489 |
"\\&\n" |
| 490 |
" gids = MALLOC(n, gid_t);\n" |
| 491 |
" if (gids == NULL)\n" |
| 492 |
" return NULL;\n" |
| 493 |
"\\&\n" |
| 494 |
" n = getgroups(n, gids);\n" |
| 495 |
" if (n == -1) {\n" |
| 496 |
" free(gids);\n" |
| 497 |
" return NULL;\n" |
| 498 |
" }\n" |
| 499 |
"\\&\n" |
| 500 |
" *ngids = n;\n" |
| 501 |
" return gids;\n" |
| 502 |
"}\n" |
| 503 |
msgstr "" |
| 504 |
|
| 505 |
#. #-#-#-#-# archlinux: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 506 |
#. SRC END |
| 507 |
#. type: SH |
| 508 |
#. #-#-#-#-# debian-trixie: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 509 |
#. type: SH |
| 510 |
#. #-#-#-#-# debian-unstable: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 511 |
#. SRC END |
| 512 |
#. type: SH |
| 513 |
#. #-#-#-#-# fedora-44: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 514 |
#. SRC END |
| 515 |
#. type: SH |
| 516 |
#. #-#-#-#-# fedora-rawhide: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 517 |
#. SRC END |
| 518 |
#. type: SH |
| 519 |
#. #-#-#-#-# mageia-cauldron: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 520 |
#. SRC END |
| 521 |
#. type: SH |
| 522 |
#. #-#-#-#-# opensuse-leap-16-1: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 523 |
#. SRC END |
| 524 |
#. type: SH |
| 525 |
#. #-#-#-#-# opensuse-tumbleweed: getgroups.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 526 |
#. SRC END |
| 527 |
#. type: SH |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "SEE ALSO" |
| 532 |
msgstr "" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
msgid "" |
| 538 |
"B<getgid>(2), B<setgid>(2), B<getgrouplist>(3), B<group_member>(3), " |
| 539 |
"B<initgroups>(3), B<capabilities>(7), B<credentials>(7)" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#. type: TH |
| 543 |
#: debian-trixie |
| 544 |
#, no-wrap |
| 545 |
msgid "2024-05-02" |
| 546 |
msgstr "" |
| 547 |
|
| 548 |
#. type: TH |
| 549 |
#: debian-trixie |
| 550 |
#, no-wrap |
| 551 |
msgid "Linux man-pages 6.9.1" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: debian-trixie |
| 556 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 557 |
msgstr "" |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: debian-trixie |
| 561 |
#, no-wrap |
| 562 |
msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[]);>\n" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: debian-trixie |
| 567 |
#, no-wrap |
| 568 |
msgid "B<int setgroups(size_t >I<size>B<, const gid_t *_Nullable >I<list>B<);>\n" |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: debian-trixie fedora-44 fedora-rawhide |
| 573 |
#, no-wrap |
| 574 |
msgid "setgroups(0, NULL);\n" |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: debian-trixie fedora-44 fedora-rawhide |
| 579 |
msgid "POSIX.1-2008." |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: debian-trixie fedora-44 fedora-rawhide |
| 584 |
msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#. type: TH |
| 588 |
#: fedora-44 fedora-rawhide |
| 589 |
#, no-wrap |
| 590 |
msgid "2024-12-14" |
| 591 |
msgstr "" |
| 592 |
|
| 593 |
#. type: TH |
| 594 |
#: fedora-44 fedora-rawhide |
| 595 |
#, no-wrap |
| 596 |
msgid "Linux man-pages 6.13" |
| 597 |
msgstr "" |
| 598 |
|
| 599 |
#. type: Plain text |
| 600 |
#: fedora-44 fedora-rawhide |
| 601 |
#, no-wrap |
| 602 |
msgid "B<int getgroups(int >I<size>B<, gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n" |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. type: Plain text |
| 606 |
#: fedora-44 fedora-rawhide |
| 607 |
#, no-wrap |
| 608 |
msgid "B<int setgroups(size_t >I<size>B<, const gid_t >I<list>B<[_Nullable .>I<size>B<]);>\n" |
| 609 |
msgstr "" |
| 610 |
|
| 611 |
#. type: TH |
| 612 |
#: mageia-cauldron |
| 613 |
#, no-wrap |
| 614 |
msgid "Linux man-pages 6.17" |
| 615 |
msgstr "" |
| 616 |
|
| 617 |
#. type: TH |
| 618 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "Linux man-pages (unreleased)" |
| 621 |
msgstr "" |