̾??
initgroups —
???롼?ץ????????ꥹ?Ȥν?????
Standard C Library (libc, -lc)
initgroups() ?ؿ??ϡ?
name ?ǻ??ꤵ?????桼???Τ?????
getgrouplist(3)
?ؿ????Ȥäƥ??롼?ץ????????ꥹ?Ȥ??????ޤ??????θ塢???롼?ץꥹ?Ȥ?
setgroups(2)
???Ȥ????ԥץ??????Ѥ????ꤵ???ޤ???
basegid ?ϼ?ưŪ??
???롼?ץꥹ?Ȥ˴ޤޤ??ޤ????????ͤϥѥ???ɥե????뤫??
???롼???ֹ??Ȥ???Ϳ?????????Τ?????Ū?Ǥ???
The initgroups() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno is set to indicate the
error.
initgroups()
?ؿ??ϡ????Ԥ??뤳?Ȥ????ꡢ
setgroups(2)
?饤?֥????ؿ????Ф??ƻ??ꤵ???Ƥ??륨?顼??
errno
?????ꤹ?뤳?Ȥ??????ޤ???
initgroups() ?ؿ???
4.2BSD ?Ǽ????????????ޤ?????
initgroups()
?????ƤӽФ?????
getgrouplist()
?ؿ???
getgrent(3)
?˴??Ť?
?롼?????????Ѥ??ޤ??????Υ롼???????椫?鵯ư?ץ??????ब?ɤΥ롼??????
???Ѥ??Ƥ⡢???롼??¤??
initgroups()
?θƤӽФ????˾??????ޤ???