GETGROUPS
Section: Linux Programmer's Manual
(2)
Updated: 10 December 1997
Index
Return to Main Contents
À̸§
getgroups, setgroups - ºÎ°¡ ±×·ì IDÀÇ ¸®½ºÆ® ¼ÒÀ¯/¼³Á¤
»ç¿ë¹ý
#include <unistd.h>
int getgroups(int size, gid_t list[]);
#define _BSD_SOURCE
#include <grp.h>
int setgroups(size_t size, const gid_t *list);
¼³¸í
- getgroups
-
Å©±â
¿¡ µû¶ó¼ ºÎ°¡ ±×·ìÀº
¸®½ºÆ®.
·Î ¹ÝȯµÈ´Ù.
¸¸¾à
Å©±â
°¡ 0 À̸é
¸®½ºÆ®
´Â º¯°æµÇÁö ¾Ê´Â´Ù. ÇÏÁö¸¸ ÇÁ·Î¼¼½º¸¦ À§ÇÑ ºÎ°¡ ±×·ìÀÇ ÃÑ ¼ö´Â ¹ÝȯµÈ´Ù.
- setgroups
-
ÇÁ·Î¼¼½º¸¦ À§ÇØ ºÎ°¡ ±×·ìÀ» ¼³Á¤. ½´ÆÛ À¯Àú¸¸ ÀÌ ÇÔ¼ö¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
¹Ýȯ°ª
- getgroups
-
¼º°ø½Ã, ºÎ°¡ ±×·ì ¾ÆÀ̵ðÀÇ ¼ö°¡ ¹ÝȯµÈ´Ù.
¿¡·¯½Ã¿¡´Â -1ÀÌ ¹ÝȯµÈ´Ù.
errno
´Â Àû´çÈ÷ ¼³Á¤µÈ´Ù.
- setgroups
-
¼º°ø½Ã, 0À» ¹ÝȯÇÑ´Ù. ¿¡·¯½Ã, -1 ÀÌ ¹ÝȯµÂ´Ï´Ù. ±×¸®°í
errno
´Â Àû´çÈ÷ ¼³Á¤µÈ´Ù.
¿¡·¯
- EFAULT
-
list
°¡ ½ÇÁ¦ ¾ø´Â ÁÖ¼Ò¸¦ °¡Áö°í ÀÖ´Ù.
- EPERM
-
setgroups,
¿¡°Ô »ç¿ëÀÚ°¡ ½´ÆÛÀ¯Àú°¡ ¾Æ´Ï´Ù.
- EINVAL
-
setgroups,
¿¡°Ô
Å©±â
°¡
NGROUPS
(32 for Linux 2.0.32)º¸´Ù Å©´Ù..
getgroups,
¿¡°Ô
Å©±â
°¡ ºÎ°¡ ±×·ì ¾Æµð ¼öº¸´Ù ÀÛÁö¸¸ 0Àº ¾Æ´Ï´Ù.
ȣȯ
SVr4, SVID (issue 4 only; ÀÌ È£ÃâÀº SVr3¿¡ ¾ø´Ù),
X/OPEN, 4.3BSD. The
getgroups
ÇÔ¼ö´Â POSIX.1¾È¿¡ ÀÖ´Ù.
setgroups
´Â Ư±ÇÀÌ ÇÊ¿äÇϱ⠶§¹®¿¡, POSIX.1·Î Áö¿øµÇÁö ¾Ê´Â´Ù.
¹ö±×
The
_BSD_SOURCE
Ç÷¡±×´Â ¾Æ¸¶µµ
setgroups
¿¡°Ô ÇÊ¿äÇÏÁö ¾ÊÀ» °ÍÀÌ´Ù.
°ü·Ã Ç׸ñ
initgroups(3),
getgid(2),
setgid(2)
¿ªÀÚ
ASPLINUX<man@asp-linux.co.kr>, 2000³â 7¿ù 26ÀÏ
Index
- À̸§
-
- »ç¿ë¹ý
-
- ¼³¸í
-
- ¹Ýȯ°ª
-
- ¿¡·¯
-
- ȣȯ
-
- ¹ö±×
-
- °ü·Ã Ç׸ñ
-
- ¿ªÀÚ
-
This document was created by
man2html,
using the manual pages.
Time: 08:07:00 GMT, March 25, 2004