#ifndef _GRP_H_
#define	_GRP_H_

/*
    Copyright © 2003-2011, The AROS Development Team. All rights reserved.
    $Id$
*/

#include <aros/system.h>

/*
    Implementation Note:
    You do not need to define size_t in this file. (POSIX)
*/

#include <aros/types/size_t.h>
#include <aros/types/gid_t.h>

struct group
{
    char   *gr_name;      /* Group name */
    char   *gr_passwd;    /* Group password */
    gid_t   gr_gid;       /* Group ID */
    char  **gr_mem;       /* Group members */
};

__BEGIN_DECLS

struct group *getgrgid(gid_t gid);
struct group *getgrnam(const char *name);

/* NOTIMPL int getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize,
        struct group **result); */
/* NOTIMPL int getgrname_r(const char *name, struct group *grp, char *buffer,
        size_t bufsize, struct group **resule); */

struct group *getgrent(void);
void endgrent(void);
void setgrent(void);

__END_DECLS

#endif /* _GRP_H_ */
