Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. int getgroups(int gidsetsize, gid_t grouplist[]);
  4.  
  5. /* Returns: number of supplementary group IDs if OK, −1 on error */
  6.  
  7. #include <grp.h> /* on Linux */
  8. #include <unistd.h> /* on FreeBSD, Mac OS X, and Solaris */
  9.  
  10. int setgroups(int ngroups, const gid_t grouplist[]);
  11.  
  12. #include <grp.h> /* on Linux and Solaris */
  13. #include <unistd.h> /* on FreeBSD and Mac OS X */
  14.  
  15. int initgroups(const char *username, gid_t basegid);
  16.  
  17. /* Both return: 0 if OK, −1 on error */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement