Remove declarations for things that don't exist.

The <grp.h> ones prevent gdb from building out of the box.

Change-Id: I0efbffad2215cfcd75b4d442dfc972444b51d97c
This commit is contained in:
Elliott Hughes
2014-07-29 16:43:55 -07:00
parent 2b591b3742
commit f4c1a36a45
5 changed files with 1 additions and 36 deletions

View File

@@ -43,10 +43,6 @@
#include <sys/cdefs.h>
#include <sys/types.h>
#if __BSD_VISIBLE
#define _PATH_GROUP "/etc/group"
#endif
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */
@@ -57,7 +53,7 @@ struct group {
__BEGIN_DECLS
struct group *getgrgid(gid_t);
struct group *getgrnam(const char *);
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE
#if __POSIX_VISIBLE >= 200112 || __XPG_VISIBLE
struct group *getgrent(void);
void setgrent(void);
void endgrent(void);
@@ -66,11 +62,6 @@ int getgrgid_r(gid_t, struct group *, char *,
int getgrnam_r(const char *, struct group *, char *,
size_t, struct group **);
#endif
#if __BSD_VISIBLE
void setgrfile(const char *);
int setgroupent(int);
char *group_from_gid(gid_t, int);
#endif
int getgrouplist (const char *user, gid_t group,
gid_t *groups, int *ngroups);