diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-17 14:15:26 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-04-17 14:15:26 +0000 |
commit | 05f98035ee9621a9dc87e02ab9536390aa9025cb (patch) | |
tree | 194a658195371c8a28e5f3ecbd1d1b1e2dfe5588 /include/grp.h | |
parent | 46d93063837e3149b3834e488ddef3befd03b601 (diff) | |
download | src-05f98035ee9621a9dc87e02ab9536390aa9025cb.tar.gz src-05f98035ee9621a9dc87e02ab9536390aa9025cb.zip |
Notes
Diffstat (limited to 'include/grp.h')
-rw-r--r-- | include/grp.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/grp.h b/include/grp.h index db34ff2fd1df..70b4a8a24513 100644 --- a/include/grp.h +++ b/include/grp.h @@ -52,6 +52,11 @@ typedef __gid_t gid_t; #define _GID_T_DECLARED #endif +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ @@ -70,15 +75,17 @@ struct group *getgrnam(const char *); const char *group_from_gid(gid_t, int); #endif #if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE +/* XXX IEEE Std 1003.1, 2003 specifies `void setgrent(void)' */ int setgrent(void); +int getgrgid_r(gid_t, struct group *, char *, size_t, + struct group **); +int getgrnam_r(const char *, struct group *, char *, size_t, + struct group **); #endif #if __BSD_VISIBLE -void setgrfile(const char *); +int getgrent_r(struct group *, char *, size_t, struct group **); int setgroupent(int); #endif -/* - * XXX missing getgrgid_r(), getgrnam_r(). - */ __END_DECLS #endif /* !_GRP_H_ */ |