diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-18 18:50:52 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-18 18:50:52 +0000 |
commit | 160212fe2d074af5bdc25b219e2276576f52b6e3 (patch) | |
tree | a18295e8f38e392f16191e4e8480a8caf25a66dc /libc/pwd_grp/grent.c | |
parent | ed43cbaf96c89d13675d2afeb8c73109982c64d9 (diff) |
Yet more rework to make __getgrent and the functions that use it
reentrant...
-Erik
Diffstat (limited to 'libc/pwd_grp/grent.c')
-rw-r--r-- | libc/pwd_grp/grent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/pwd_grp/grent.c b/libc/pwd_grp/grent.c index 5ebcf265c..587fe0d93 100644 --- a/libc/pwd_grp/grent.c +++ b/libc/pwd_grp/grent.c @@ -41,6 +41,8 @@ static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER; #endif static int grp_fd = -1; +static char *line_buff = NULL; +static char **members = NULL; void setgrent(void) { @@ -69,7 +71,7 @@ struct group *getgrent(void) UNLOCK; return NULL; } - r = __getgrent(grp_fd); + r = __getgrent(grp_fd, line_buff, members); UNLOCK; return r; } |