chiark / gitweb /
[PATCH] fix udev init.d script to handle all class devices in sysfs.
[elogind.git] / klibc_fixups.h
1 #ifdef __KLIBC__
2
3 #ifndef KLIBC_FIXUPS_H
4 #define KLIBC_FIXUPS_H 
5
6
7 extern char *strerror(int errnum);
8
9 extern int strcasecmp(const char *s1, const char *s2);
10
11 struct group {
12         char    *gr_name;       /* group name */
13         char    *gr_passwd;     /* group password */
14         gid_t   gr_gid;         /* group id */
15         char    **gr_mem;       /* group members */
16 };
17
18 static inline struct group *getgrnam(const char *name)
19 {
20         return NULL;
21 }
22
23
24 struct passwd {
25         char    *pw_name;       /* user name */
26         char    *pw_passwd;     /* user password */
27         uid_t   pw_uid;         /* user id */
28         gid_t   pw_gid;         /* group id */
29         char    *pw_gecos;      /* real name */
30         char    *pw_dir;        /* home directory */
31         char    *pw_shell;      /* shell program */
32 };
33
34 static inline struct passwd *getpwnam(const char *name)
35 {
36         return NULL;
37 }
38
39
40 #endif
41
42 #endif