00001 /* The <grp.h> header is used for the getgrid() and getgrnam() calls. */ 00002 00003 #ifndef _GRP_H 00004 #define _GRP_H 00005 00006 #ifndef _TYPES_H 00007 #include <sys/types.h> 00008 #endif 00009 00010 struct group { 00011 char *gr_name; /* the name of the group */ 00012 char *gr_passwd; /* the group passwd */ 00013 gid_t gr_gid; /* the numerical group ID */ 00014 char **gr_mem; /* a vector of pointers to the members */ 00015 }; 00016 00017 /* Function Prototypes. */ 00018 _PROTOTYPE( struct group *getgrgid, (_mnx_Gid_t _gid) ); 00019 _PROTOTYPE( struct group *getgrnam, (const char *_name) ); 00020 00021 #ifdef _MINIX 00022 _PROTOTYPE( void endgrent, (void) ); 00023 _PROTOTYPE( struct group *getgrent, (void) ); 00024 _PROTOTYPE( int setgrent, (void) ); 00025 _PROTOTYPE( void setgrfile, (const char *_file) ); 00026 #endif 00027 00028 #endif /* _GRP_H */
1.4.6