aboutsummaryrefslogtreecommitdiffstats
path: root/include/grp.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-09-18 02:07:08 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-09-18 02:07:08 +0000
commiteb87df47cf323cf85dfafce02bb1d136822586ad (patch)
tree492eb9bd1479450d142c0168449c5c1856b31a67 /include/grp.h
parentca7850c3135f586be58fabb25bf18f0c1ee72b47 (diff)
downloadsrc-eb87df47cf323cf85dfafce02bb1d136822586ad.tar.gz
src-eb87df47cf323cf85dfafce02bb1d136822586ad.zip
Use relatively new visibility primitives for conditionals. Document
unimplemented functions.
Notes
Notes: svn path=/head/; revision=103515
Diffstat (limited to 'include/grp.h')
-rw-r--r--include/grp.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/include/grp.h b/include/grp.h
index 3ffa6583f69d..db34ff2fd1df 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -45,9 +45,7 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
-#ifndef _POSIX_SOURCE
#define _PATH_GROUP "/etc/group"
-#endif
#ifndef _GID_T_DECLARED
typedef __gid_t gid_t;
@@ -62,16 +60,25 @@ struct group {
};
__BEGIN_DECLS
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
+void endgrent(void);
+struct group *getgrent(void);
+#endif
struct group *getgrgid(gid_t);
struct group *getgrnam(const char *);
-#ifndef _POSIX_SOURCE
-struct group *getgrent(void);
+#if __BSD_VISIBLE
+const char *group_from_gid(gid_t, int);
+#endif
+#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
int setgrent(void);
-void endgrent(void);
+#endif
+#if __BSD_VISIBLE
void setgrfile(const char *);
int setgroupent(int);
-const char *group_from_gid(gid_t, int);
#endif
+/*
+ * XXX missing getgrgid_r(), getgrnam_r().
+ */
__END_DECLS
#endif /* !_GRP_H_ */