setgroups() moved?

Stan Bubrouski stan at
Wed Feb 23 16:14:18 UTC 2005

A quick grep shows that Kjartan is right, grp.h is not included by 
sys/types.h or unistd.h or any of their includes so it seems the manual 
page is indeed out of date.


Kjartan Maraas wrote:
> Hi.
> It looks like this function moved? The man page says:
>        #include <sys/types.h>
>        #include <unistd.h>
> but it seems like it's really living in <grp.h>:
> [kmaraas at localhost xpl]$ grep setgroups /usr/include/*.h
> /usr/include/grp.h:extern int setgroups (size_t __n, __const __gid_t
> *__groups) __THROW;
> What's the right way of getting at this function? Preferrably in a way
> that works with other distros/OSes?
> Cheers
> Kjartan

More information about the fedora-devel-list mailing list