summaryrefslogtreecommitdiff
path: root/klibc_fixups.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-23 19:29:32 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:30 -0700
commit82962619c626edfc68d39f0b179a909dd3dd0a6b (patch)
tree2d6ec012fa334f8c14da381576d37aec02141bc9 /klibc_fixups.h
parentc80da5085f915bf6305e7ed6b786b63f6e9b14ea (diff)
[PATCH] udev - simple klibc textual uid/gid handling
Here we get a very dumb getpwnam() and getgrnam() for klibc to stop the confusion of not handling textual id's if klibc is used. If used with initrd we just need to copy the /etc/passwd and /etc/group file and all should work well.
Diffstat (limited to 'klibc_fixups.h')
-rw-r--r--klibc_fixups.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/klibc_fixups.h b/klibc_fixups.h
index 1ac112b087..19bfd51caa 100644
--- a/klibc_fixups.h
+++ b/klibc_fixups.h
@@ -3,19 +3,6 @@
#ifndef KLIBC_FIXUPS_H
#define KLIBC_FIXUPS_H
-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 */
@@ -26,11 +13,15 @@ struct passwd {
char *pw_shell; /* shell program */
};
-static inline struct passwd *getpwnam(const char *name)
-{
- return NULL;
-}
+struct group {
+ char *gr_name; /* group name */
+ char *gr_passwd; /* group password */
+ gid_t gr_gid; /* group id */
+ char **gr_mem; /* group members */
+};
+struct passwd *getpwnam(const char *name);
+struct group *getgrnam(const char *name);
#endif