From 2512c847453c24b928c34beed88902fbb6877b7a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 27 Sep 2001 05:24:26 +0000 Subject: Update to accomodate the header file changes --- libc/pwd_grp/config.h | 9 +++++++++ libc/pwd_grp/fgetgrent.c | 1 + libc/pwd_grp/fgetpwent.c | 1 + libc/pwd_grp/getgrgid.c | 1 + libc/pwd_grp/getgrnam.c | 1 + libc/pwd_grp/getpwnam.c | 1 + libc/pwd_grp/getpwuid.c | 1 + libc/pwd_grp/grent.c | 1 + libc/pwd_grp/pwent.c | 1 + 9 files changed, 17 insertions(+) (limited to 'libc/pwd_grp') diff --git a/libc/pwd_grp/config.h b/libc/pwd_grp/config.h index eb029a31a..5a5272999 100644 --- a/libc/pwd_grp/config.h +++ b/libc/pwd_grp/config.h @@ -22,6 +22,15 @@ #ifndef _CONFIG_GRP_H #define _CONFIG_GRP_H +#include +#include + +/* These are used internally to uClibc */ +extern struct group * __getgrent __P ((int grp_fd)); + +extern int __getpwent_r(struct passwd * passwd, char * line_buff, + size_t buflen, int pwd_fd); + /* * Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer * so that lines of any length can be used. On very very small systems, diff --git a/libc/pwd_grp/fgetgrent.c b/libc/pwd_grp/fgetgrent.c index 50aa01722..7c08ea68e 100644 --- a/libc/pwd_grp/fgetgrent.c +++ b/libc/pwd_grp/fgetgrent.c @@ -21,6 +21,7 @@ #include #include #include +#include "config.h" struct group *fgetgrent(FILE * file) { diff --git a/libc/pwd_grp/fgetpwent.c b/libc/pwd_grp/fgetpwent.c index aab1ec744..ae43cdad8 100644 --- a/libc/pwd_grp/fgetpwent.c +++ b/libc/pwd_grp/fgetpwent.c @@ -21,6 +21,7 @@ #include #include #include +#include "config.h" #define PWD_BUFFER_SIZE 256 diff --git a/libc/pwd_grp/getgrgid.c b/libc/pwd_grp/getgrgid.c index fa74a9644..70e7152ce 100644 --- a/libc/pwd_grp/getgrgid.c +++ b/libc/pwd_grp/getgrgid.c @@ -22,6 +22,7 @@ #include #include #include +#include "config.h" struct group *getgrgid(const gid_t gid) { diff --git a/libc/pwd_grp/getgrnam.c b/libc/pwd_grp/getgrnam.c index 6f2634cee..705342489 100644 --- a/libc/pwd_grp/getgrnam.c +++ b/libc/pwd_grp/getgrnam.c @@ -23,6 +23,7 @@ #include #include #include +#include "config.h" struct group *getgrnam(const char *name) { diff --git a/libc/pwd_grp/getpwnam.c b/libc/pwd_grp/getpwnam.c index 5cb4f64f8..f5ad9ca1d 100644 --- a/libc/pwd_grp/getpwnam.c +++ b/libc/pwd_grp/getpwnam.c @@ -23,6 +23,7 @@ #include #include #include +#include "config.h" #define PWD_BUFFER_SIZE 256 diff --git a/libc/pwd_grp/getpwuid.c b/libc/pwd_grp/getpwuid.c index 307f840e1..101d668ae 100644 --- a/libc/pwd_grp/getpwuid.c +++ b/libc/pwd_grp/getpwuid.c @@ -22,6 +22,7 @@ #include #include #include +#include "config.h" #define PWD_BUFFER_SIZE 256 diff --git a/libc/pwd_grp/grent.c b/libc/pwd_grp/grent.c index aab878a89..8e4af5143 100644 --- a/libc/pwd_grp/grent.c +++ b/libc/pwd_grp/grent.c @@ -27,6 +27,7 @@ #include #include #include +#include "config.h" static int grp_fd = -1; diff --git a/libc/pwd_grp/pwent.c b/libc/pwd_grp/pwent.c index 6f81f1ea6..e4a17e2b3 100644 --- a/libc/pwd_grp/pwent.c +++ b/libc/pwd_grp/pwent.c @@ -23,6 +23,7 @@ #include #include #include +#include "config.h" /* * setpwent(), endpwent(), and getpwent() are included in the same object -- cgit v1.2.3