diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:01:45 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-11-17 18:01:45 +0000 |
commit | 5d96ee84a344a55682848b1338b9bcd0618e341b (patch) | |
tree | 50ded6b8787a8477a36479dfe5f2b5b772b93cf9 /include/grp.h | |
parent | 886d6acb51d50addaff443042b399536654e954e (diff) | |
download | uClibc-alpine-5d96ee84a344a55682848b1338b9bcd0618e341b.tar.bz2 uClibc-alpine-5d96ee84a344a55682848b1338b9bcd0618e341b.tar.xz |
Synch with trunk @ 24075.
Step 8: include folder
Diffstat (limited to 'include/grp.h')
-rw-r--r-- | include/grp.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/grp.h b/include/grp.h index 6ad8be1dd..fa381d2d0 100644 --- a/include/grp.h +++ b/include/grp.h @@ -169,18 +169,15 @@ extern int fgetgrent_r (FILE *__restrict __stream, #endif /* POSIX or reentrant */ -#ifdef __USE_BSD +#if defined __USE_BSD || defined __USE_GNU # define __need_size_t # include <stddef.h> -/* Set the group set for the current user to GROUPS (N of them). */ -extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW; - -#if 0 /* Store at most *NGROUPS members of the group set for USER into *GROUPS. Also include GROUP. The actual number of groups found is returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. + In all cases the actual number of groups is stored in *NGROUPS. This function is not part of POSIX and therefore no official cancellation point. But due to similarity with an POSIX interface @@ -188,8 +185,14 @@ extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW; therefore not marked with __THROW. */ extern int getgrouplist (__const char *__user, __gid_t __group, __gid_t *__groups, int *__ngroups); + #endif +#if defined __USE_BSD + +/* Set the group set for the current user to GROUPS (N of them). */ +extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW; + /* Initialize the group set for the current user by reading the group database and using all groups of which USER is a member. Also include GROUP. |