diff options
author | greg@kroah.com <greg@kroah.com> | 2003-11-23 20:44:41 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:02 -0700 |
commit | 2023350eece60db60d30e387cfb644df09b9e8b6 (patch) | |
tree | c0920b414666a512c594a388392972cde437d096 /klibc_fixups.h | |
parent | 04a81cac0aab2ab6a54ddc661dd57be7d5b1595a (diff) |
[PATCH] add getgrnam and getpwnam to klibc_fixups files.
Hopefully the klibc_fixups code will not be needed eventually.
Diffstat (limited to 'klibc_fixups.h')
-rw-r--r-- | klibc_fixups.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/klibc_fixups.h b/klibc_fixups.h new file mode 100644 index 0000000000..21a23e7762 --- /dev/null +++ b/klibc_fixups.h @@ -0,0 +1,42 @@ +#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 |