setgroups

å称
     setgroups — ã°ã«ã¼ãã¢ã¯ã»ã¹ãªã¹ããè¨å®ãã

ã©ã¤ãã©ãª
     Standard C Library (libc, -lc)

æ¸å¼
     <sys/param.h> <unistd.h> int setgroups(int ngroups, const gid_t *gidset)

解説
     setgroups() ã·ã¹ãã ã³ã¼ã«ã¯ãéå gidset ã«å¾ã£ã¦ãç¾å¨ã®ã¦ã¼ã¶ãã‐
     ã»ã¹ã®ã°ã«ã¼ãã¢ã¯ã»ã¹ãªã¹ããè¨å®ãã¾ãã ngroups
     å¼æ°ã¯ãéååã®ã¨ã³ããªã®æ°ã示ãã <sys/param.h> åã«å®ç¾©ããã¦ããå¤ NGROUPS
     ãè¶ãã¦ã¯ããã¾ããã

     ã¹ã¼ãã¦ã¼ã¶ã ããæ°ããã°ã«ã¼ããè¨å®ã§ãã¾ãã

æ»ãå¤
     The setgroups() function returns the value 0 if successful; otherwise the
     value -1 is returned and the global variable errno is set to indicate the
     error.

ã¨ã©ã¼
     setgroups() ã·ã¹ãã ã³ã¼ã«ã¯æ¬¡ã®å ´åã«å¦çã«å¤±æãã¾ã:

     [EPERM]            ã¹ã¼ãã¦ã¼ã¶ä»¥å¤ã®ã¦ã¼ã¶ã«ãã£ã¦å¼ã³åºããã¾ããã

     [EINVAL]           ngroups å¼æ°ã§æå®ãããæ°å¤ã NGROUPS ã®å¶éãè¶ãã¦ãã¾ãã

     [EFAULT]           gidset ã«æå®ãããã¢ãã¬ã¹ã¯ã ãã‐
                        ã»ã¹ã«å²ãå½ã¦ãããã¢ãã¬ã¹ç©ºéã®ç¯å²å¤ãæãã¦ãã¾ãã

é¢é£é ç®
     getgroups(2), initgroups(3)

æ´å²
     setgroups() ã·ã¹ãã ã³ã¼ã«ã¯ 4.2BSD ã§ç»å ´ãã¾ããã