0b8e20c89e
- The primary reason is that mkfs and installboot need to run natively during the cross compilation (host and target versions are compiled). There is a collision of include files though. E.g. a.out.h is very minix-specific. Therefore some files we moved and replaced by stubs that include the original file if compiling on or for Minix : include/a.out.h -> include/minix/a.out.h include/sys/dir.h -> include/minix/dir.h include/dirent.h -> include/minix/dirent.h include/sys/types.h -> include/minix/types.h - This does not break any native compilation on Minix. Other headers that were including the original files are changed according to include directly the new, minix specific location not to pick up the host system includes while cross-compiling. - role of this patch is to make rebasing of the build branch simpler until the new build system is merged
28 lines
747 B
C
Executable file
28 lines
747 B
C
Executable file
/* The <grp.h> header is used for the getgrid() and getgrnam() calls. */
|
|
|
|
#ifndef _GRP_H
|
|
#define _GRP_H
|
|
|
|
#ifndef _TYPES_H
|
|
#include <minix/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. */
|
|
_PROTOTYPE( struct group *getgrgid, (_mnx_Gid_t _gid) );
|
|
_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 */
|