1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" German translation by René Tschirley (gremlin@cs.tu-berlin.de)
26 .\" Modified Mon Jun 10 12:21:10 1996 by Martin Schulze (joey@linux.de)
28 .TH GETGROUPS 2 "23. July 1993" "Linux 0.99.11" "Systemaufrufe"
30 getgroups, setgroups \- hole/setze Group Access List
32 .B #include <unistd.h>
34 .BI "int getgroups(int " size ", gid_t " list []);
40 .BI "int setgroups(size_t " size ", const gid_t *" list );
46 zusätzliche Gruppen werden in
52 nicht geändert, doch wird die gesamte Anzahl der zusätzlichen Gruppen
53 des Prozesses zurückgeliefert.
56 Setzt die zusätzlichen Gruppen für den Prozess. Nur der Superuser darf
57 diese Funktion benutzen.
61 Bei Erfolg wird die Anzahl der Gruppen in
65 Null ist, wird die Anzahl der zusätzlichen Group IDs des Prozesses
66 geliefert. Bei aufgetretenem Fehler wird -1 geliefert und
68 wird entsprechend gesetzt.
71 Bei Erfolg wir Null geliefert, bei aufgetretenem Fehler wird -1
74 wird entsprechend gesetzt.
79 ist eine ungültige Adresse.
84 war der aufrufende Benutzer nicht der Superuser.
93 (32 unter Linux 0.99.11).
96 ist konform zu POSIX.1 und wird in BSD 4.3 benutzt. Da
98 Privilegien verlangt, ist es nicht durch POSIX.1 abgedeckt.