2005-04-21 16:53:53 +02:00
|
|
|
/* The <grp.h> header is used for the getgrid() and getgrnam() calls. */
|
|
|
|
|
|
|
|
#ifndef _GRP_H
|
|
|
|
#define _GRP_H
|
|
|
|
|
|
|
|
#ifndef _TYPES_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct group {
|
|
|
|
char *gr_name; /* the name of the group */
|
|
|
|
char *gr_passwd; /* the group passwd */
|
|
|
|
gid_t gr_gid; /* the numerical group ID */
|
|
|
|
char **gr_mem; /* a vector of pointers to the members */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Function Prototypes. */
|
2005-06-23 13:07:31 +02:00
|
|
|
_PROTOTYPE( struct group *getgrgid, (_mnx_Gid_t _gid) );
|
2005-04-21 16:53:53 +02:00
|
|
|
_PROTOTYPE( struct group *getgrnam, (const char *_name) );
|
|
|
|
|
|
|
|
#ifdef _MINIX
|
|
|
|
_PROTOTYPE( void endgrent, (void) );
|
|
|
|
_PROTOTYPE( struct group *getgrent, (void) );
|
|
|
|
_PROTOTYPE( int setgrent, (void) );
|
|
|
|
_PROTOTYPE( void setgrfile, (const char *_file) );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _GRP_H */
|