summaryrefslogtreecommitdiff
path: root/libc/pwd_grp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r--libc/pwd_grp/config.h9
-rw-r--r--libc/pwd_grp/fgetgrent.c1
-rw-r--r--libc/pwd_grp/fgetpwent.c1
-rw-r--r--libc/pwd_grp/getgrgid.c1
-rw-r--r--libc/pwd_grp/getgrnam.c1
-rw-r--r--libc/pwd_grp/getpwnam.c1
-rw-r--r--libc/pwd_grp/getpwuid.c1
-rw-r--r--libc/pwd_grp/grent.c1
-rw-r--r--libc/pwd_grp/pwent.c1
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