summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/config.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-12 23:27:00 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-12 23:27:00 +0000
commitc617db9065afa51100199d9ac4561feee4279291 (patch)
treee4a90725f73b9fb7ec9970ca495172181acfa873 /libc/pwd_grp/config.h
parentfd6b9378be20243eaea7da1c2ddb3d68f123d28e (diff)
Silence warnings, clean things up.
-Erik
Diffstat (limited to 'libc/pwd_grp/config.h')
-rw-r--r--libc/pwd_grp/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/pwd_grp/config.h b/libc/pwd_grp/config.h
index 5a5272999..2c3c6c3f0 100644
--- a/libc/pwd_grp/config.h
+++ b/libc/pwd_grp/config.h
@@ -24,12 +24,21 @@
#include <pwd.h>
#include <grp.h>
+#include <shadow.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);
+extern int __getspent_r(struct spwd * spwd, char * line_buff,
+ size_t buflen, int spwd_fd);
+extern int __sgetspent_r(const char * string, struct spwd * spwd,
+ char * line_buff, size_t buflen);
+
+
+#define PWD_BUFFER_SIZE 256
+
/*
* Define GR_SCALE_DYNAMIC if you want grp to dynamically scale its read buffer