mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
2023350eec
Hopefully the klibc_fixups code will not be needed eventually.
43 lines
740 B
C
43 lines
740 B
C
#ifdef __KLIBC__
|
|
|
|
#ifndef KLIBC_FIXUPS_H
|
|
#define KLIBC_FIXUPS_H
|
|
|
|
|
|
extern char *strerror(int errnum);
|
|
|
|
extern int strcasecmp(const char *s1, const char *s2);
|
|
|
|
struct group {
|
|
char *gr_name; /* group name */
|
|
char *gr_passwd; /* group password */
|
|
gid_t gr_gid; /* group id */
|
|
char **gr_mem; /* group members */
|
|
};
|
|
|
|
static inline struct group *getgrnam(const char *name)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
struct passwd {
|
|
char *pw_name; /* user name */
|
|
char *pw_passwd; /* user password */
|
|
uid_t pw_uid; /* user id */
|
|
gid_t pw_gid; /* group id */
|
|
char *pw_gecos; /* real name */
|
|
char *pw_dir; /* home directory */
|
|
char *pw_shell; /* shell program */
|
|
};
|
|
|
|
static inline struct passwd *getpwnam(const char *name)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|