summaryrefslogtreecommitdiffstats
path: root/include/pwd.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-14 19:13:01 +0000
committerdas <das@FreeBSD.org>2009-03-14 19:13:01 +0000
commit3dd54fea1a8b0928ccea0de736a90b95db1d724c (patch)
tree034803b600952a63f9a0d41e94e0f0ba9797410c /include/pwd.h
parentbd350bd6508faaebf0a0a264871f2112964b90ee (diff)
downloadFreeBSD-src-3dd54fea1a8b0928ccea0de736a90b95db1d724c.zip
FreeBSD-src-3dd54fea1a8b0928ccea0de736a90b95db1d724c.tar.gz
Namespace: endpwent, getpwent, and setpwent are XSI extensions.
Diffstat (limited to 'include/pwd.h')
-rw-r--r--include/pwd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 4503ddb..6906db8 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -152,10 +152,13 @@ __BEGIN_DECLS
struct passwd *getpwnam(const char *);
struct passwd *getpwuid(uid_t);
-#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
+#if __XSI_VISIBLE >= 500
void endpwent(void);
struct passwd *getpwent(void);
void setpwent(void);
+#endif
+
+#if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE >= 500
int getpwnam_r(const char *, struct passwd *, char *, size_t,
struct passwd **);
int getpwuid_r(uid_t, struct passwd *, char *, size_t,
OpenPOWER on IntegriCloud