/usr/include/diet/grp.h is in dietlibc-dev 0.33~cvs20120325-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #ifndef _GRP_H
#define _GRP_H
#include <sys/cdefs.h>
#include <sys/types.h>
__BEGIN_DECLS
struct group
{
char *gr_name; /* Group name. */
char *gr_passwd; /* Password. */
gid_t gr_gid; /* Group ID. */
char **gr_mem; /* Member list. */
};
struct group *getgrgid (gid_t uid) __THROW;
struct group *getgrnam (const char *name) __THROW;
struct group *getgrent(void) __THROW;
void setgrent(void) __THROW;
void endgrent(void) __THROW;
int getgrent_r(struct group *res, char *buf, size_t buflen,
struct group **res_sig) __THROW;
int getgrnam_r(const char* name,
struct group *res, char *buf, size_t buflen,
struct group **res_sig) __THROW;
int getgrgid_r(uid_t uid,
struct group *res, char *buf, size_t buflen,
struct group **res_sig) __THROW;
int setgroups(size_t n, const gid_t *groups) __THROW;
int setgroups32(size_t n, const gid32_t *groups) __THROW;
int initgroups(const char *user, gid_t group) __THROW;
int getgrouplist(const char*user,gid_t group,gid_t*groups,int*ngroups) __THROW;
__END_DECLS
#endif
|