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
34 lines
949 B
C
Executable file
34 lines
949 B
C
Executable file
/* The <pwd.h> header defines the items in the password file. */
|
|
|
|
#ifndef _PWD_H
|
|
#define _PWD_H
|
|
|
|
#ifndef _TYPES_H
|
|
#include <minix/types.h>
|
|
#endif
|
|
|
|
struct passwd {
|
|
char *pw_name; /* login name */
|
|
uid_t pw_uid; /* uid corresponding to the name */
|
|
gid_t pw_gid; /* gid corresponding to the name */
|
|
char *pw_dir; /* user's home directory */
|
|
char *pw_shell; /* name of the user's shell */
|
|
|
|
/* The following members are not defined by POSIX. */
|
|
char *pw_passwd; /* password information */
|
|
char *pw_gecos; /* just in case you have a GE 645 around */
|
|
};
|
|
|
|
/* Function Prototypes. */
|
|
_PROTOTYPE( struct passwd *getpwnam, (const char *_name) );
|
|
_PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) );
|
|
|
|
#ifdef _MINIX
|
|
_PROTOTYPE( void endpwent, (void) );
|
|
_PROTOTYPE( struct passwd *getpwent, (void) );
|
|
_PROTOTYPE( int setpwent, (void) );
|
|
_PROTOTYPE( void setpwfile, (const char *_file) );
|
|
#endif
|
|
|
|
#endif /* _PWD_H */
|