diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-09-27 05:24:26 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-09-27 05:24:26 +0000 |
commit | 2512c847453c24b928c34beed88902fbb6877b7a (patch) | |
tree | 3d327c54c00684b85c435cffa29c5050888c0a69 /libc/pwd_grp | |
parent | e83a36ce9f97ac0f59117b3a62fd2dd8461b1fd5 (diff) |
Update to accomodate the header file changes
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r-- | libc/pwd_grp/config.h | 9 | ||||
-rw-r--r-- | libc/pwd_grp/fgetgrent.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/fgetpwent.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/getgrgid.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/getgrnam.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/getpwnam.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/getpwuid.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/grent.c | 1 | ||||
-rw-r--r-- | libc/pwd_grp/pwent.c | 1 |
9 files changed, 17 insertions, 0 deletions
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 <pwd.h> +#include <grp.h> + +/* 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 <stdio.h> #include <errno.h> #include <grp.h> +#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 <errno.h> #include <stdio.h> #include <pwd.h> +#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 <unistd.h> #include <fcntl.h> #include <grp.h> +#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 <errno.h> #include <fcntl.h> #include <grp.h> +#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 <errno.h> #include <fcntl.h> #include <pwd.h> +#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 <unistd.h> #include <fcntl.h> #include <pwd.h> +#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 <unistd.h> #include <fcntl.h> #include <grp.h> +#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 <errno.h> #include <pwd.h> #include <fcntl.h> +#include "config.h" /* * setpwent(), endpwent(), and getpwent() are included in the same object |