From 1961a32f3e9e9cbfe96b0f0e9d90c1a33450ab43 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 25 Mar 2016 19:36:34 +0000 Subject: [PATCH] initgroups: add to library and headers --- Library/include/grp.h | 2 ++ Library/libs/Makefile | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/include/grp.h b/Library/include/grp.h index 4b9ca274..9e0b9805 100644 --- a/Library/include/grp.h +++ b/Library/include/grp.h @@ -29,6 +29,8 @@ extern int initgroups __P((const char * user, gid_t gid)); extern struct group * __getgrent __P((int grp_fd)); +extern int initgroups(const char *__user, gid_t __group); + extern char *_path_group; #endif /* _GRP_H */ diff --git a/Library/libs/Makefile b/Library/libs/Makefile index 3121a42f..7e43f6ab 100644 --- a/Library/libs/Makefile +++ b/Library/libs/Makefile @@ -35,7 +35,7 @@ SRC_C += getopt.c SRC_C += getpw.c __getpwent.c getpwnam.c getpwuid.c gets.c gettimeofday.c SRC_C += getw.c gmtime.c gmtime_r.c grent.c SRC_C += inet_addr.c inet_aton.c inet_network.c inet_ntoa.c inet_ntop.c inet_pton.c -SRC_C += index.c isatty.c killpg.c +SRC_C += index.c initgroups.c isatty.c killpg.c SRC_C += libintl.c SRC_C += localtim.c localtim_r.c lseek.c lsearch.c lstat.c ltoa.c ltostr.c SRC_C += malloc.c mkfifo.c mkstemps.c nanosleep.c opendir.c opendir_r.c @@ -62,8 +62,6 @@ SRC_C += cfmakeraw.c cfspeed.c revoke.c SRC_C += fscanf.c scanf.c sscanf.c vfscanf.c vscanf.c vsscanf.c # Seems to give the compiler a hard time SRC_HARD += regexp.c -# Not supported yet -#SRC_C += initgroups.c # Pieces we inherit in this case from the compiler library instead #SRC_C += strcpy.c strlen.c abs.c atof.c atoi.c atol.c labs.c #SRC_C += strcat.c strchr.c strcmp.c strcspn.c strncat.c strncmp.c -- 2.34.1