svn commit: r189819 - head/include

David Schultz das at FreeBSD.org
Sat Mar 14 12:13:01 PDT 2009


Author: das
Date: Sat Mar 14 19:13:01 2009
New Revision: 189819
URL: http://svn.freebsd.org/changeset/base/189819

Log:
  Namespace: endpwent, getpwent, and setpwent are XSI extensions.

Modified:
  head/include/pwd.h

Modified: head/include/pwd.h
==============================================================================
--- head/include/pwd.h	Sat Mar 14 19:12:11 2009	(r189818)
+++ head/include/pwd.h	Sat Mar 14 19:13:01 2009	(r189819)
@@ -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,


More information about the svn-src-head mailing list