From 4a39538d4e66467504cb81cb38dcaf92965e9f99 Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 18 Sep 2002 02:07:08 +0000 Subject: Use relatively new visibility primitives for conditionals. Document unimplemented functions. --- include/grp.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'include/grp.h') diff --git a/include/grp.h b/include/grp.h index 3ffa658..db34ff2 100644 --- a/include/grp.h +++ b/include/grp.h @@ -45,9 +45,7 @@ #include #include -#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_ */ -- cgit v1.1