diff options
| author | Mark Murray <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 | 
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2002-01-22 17:32:53 +0000 | 
| commit | 5567b258ebfb1a00cb9d07371894eae183e09a25 (patch) | |
| tree | 4fa4107bd9dc143cbf75e44ad9d40c4184b8784e /lib/libc | |
| parent | 7228268aaab0a8b611f372812bbde4799fb4b07b (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/getgrent.3 | 2 | ||||
| -rw-r--r-- | lib/libc/gen/getgrouplist.3 | 4 | ||||
| -rw-r--r-- | lib/libc/gen/getgrouplist.c | 13 | ||||
| -rw-r--r-- | lib/libc/gen/initgroups.3 | 2 | ||||
| -rw-r--r-- | lib/libc/gen/initgroups.c | 10 | 
5 files changed, 16 insertions, 15 deletions
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3 index bdfe039af2e2..f32a901556f0 100644 --- a/lib/libc/gen/getgrent.3 +++ b/lib/libc/gen/getgrent.3 @@ -78,7 +78,7 @@ file  struct group {  	char	*gr_name;	/* group name */  	char	*gr_passwd;	/* group password */ -	int	gr_gid;		/* group id */ +	gid_t	gr_gid;		/* group id */  	char	**gr_mem;	/* group members */  };  .Ed diff --git a/lib/libc/gen/getgrouplist.3 b/lib/libc/gen/getgrouplist.3 index ecf53f2f9543..da949c7ebb2f 100644 --- a/lib/libc/gen/getgrouplist.3 +++ b/lib/libc/gen/getgrouplist.3 @@ -43,7 +43,7 @@  .Sh SYNOPSIS  .In unistd.h  .Ft int -.Fn getgrouplist "const char *name" "int basegid" "int *groups" "int *ngroups" +.Fn getgrouplist "const char *name" "gid_t basegid" "gid_t *groups" "int *ngroups"  .Sh DESCRIPTION  The  .Fn getgrouplist @@ -56,7 +56,7 @@ is automatically included in the groups list.  Typically this value is given as  the group number from the password file.  .Pp -The resulting group list is returned in the integer array pointed to by +The resulting group list is returned in the array pointed to by  .Fa groups .  The caller specifies the size of the  .Fa groups diff --git a/lib/libc/gen/getgrouplist.c b/lib/libc/gen/getgrouplist.c index 31f90b4490e2..0de6c55757de 100644 --- a/lib/libc/gen/getgrouplist.c +++ b/lib/libc/gen/getgrouplist.c @@ -31,9 +31,12 @@   * SUCH DAMAGE.   */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); +  #if defined(LIBC_SCCS) && !defined(lint)  static char sccsid[] = "@(#)getgrouplist.c	8.2 (Berkeley) 12/8/94"; -#endif /* LIBC_SCCS and not lint */ +#endif  /*   * get credential @@ -45,12 +48,12 @@ static char sccsid[] = "@(#)getgrouplist.c	8.2 (Berkeley) 12/8/94";  int  getgrouplist(uname, agroup, groups, grpcnt)  	const char *uname; -	int agroup; -	register int *groups; +	gid_t agroup; +	gid_t *groups;  	int *grpcnt;  { -	register struct group *grp; -	register int i, ngroups; +	struct group *grp; +	int i, ngroups;  	int ret, maxgroups;  	ret = 0; diff --git a/lib/libc/gen/initgroups.3 b/lib/libc/gen/initgroups.3 index 115ab0c34305..3df1ffd49e93 100644 --- a/lib/libc/gen/initgroups.3 +++ b/lib/libc/gen/initgroups.3 @@ -43,7 +43,7 @@  .Sh SYNOPSIS  .In unistd.h  .Ft int -.Fn initgroups "const char *name" "int basegid" +.Fn initgroups "const char *name" "gid_t basegid"  .Sh DESCRIPTION  The  .Fn initgroups diff --git a/lib/libc/gen/initgroups.c b/lib/libc/gen/initgroups.c index 3fc9bb2f4042..16ffb49e011c 100644 --- a/lib/libc/gen/initgroups.c +++ b/lib/libc/gen/initgroups.c @@ -31,14 +31,12 @@   * SUCH DAMAGE.   */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); +  #if defined(LIBC_SCCS) && !defined(lint) -#if 0  static char sccsid[] = "@(#)initgroups.c	8.1 (Berkeley) 6/4/93"; -#else -static const char rcsid[] = -  "$FreeBSD$";  #endif -#endif /* LIBC_SCCS and not lint */  #include <sys/param.h> @@ -51,7 +49,7 @@ static const char rcsid[] =  int  initgroups(uname, agroup)  	const char *uname; -	int agroup; +	gid_t agroup;  {  	int groups[NGROUPS], ngroups;  | 
