diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-09-20 21:06:17 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2005-09-20 21:06:17 +0000 |
commit | d5bd137a247145afabfbc3a3c376ad8787381d8f (patch) | |
tree | e55887632741516332495c4fe7cf4169e71984c3 /include/libbb.h | |
parent | f912ebb7405bcb6cbcdf952bdf2fc2310d93cb3a (diff) |
- rename libbb's password helpers as suggested in libbb.h
my_getpwnam -> bb_xgetpwnam /* dies on error */
my_getgrnam -> bb_xgetgrnam /* dies on error */
my_getgrgid -> bb_getgrgid
my_getpwuid -> bb_getpwuid
my_getug -> bb_getug
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3fb62e96b..b9794779d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -221,16 +221,14 @@ extern unsigned long bb_xparse_number(const char *numstr, const struct suffix_mult *suffixes); -//#warning change names? - /* These parse entries in /etc/passwd and /etc/group. This is desirable * for BusyBox since we want to avoid using the glibc NSS stuff, which - * increases target size and is often not needed embedded systems. */ -extern long my_getpwnam(const char *name); -extern long my_getgrnam(const char *name); -extern char * my_getug(char *buffer, char *idname, long id, int bufsize, char prefix); -extern char * my_getpwuid(char *name, long uid, int bufsize); -extern char * my_getgrgid(char *group, long gid, int bufsize); + * increases target size and is often not needed on embedded systems. */ +extern long bb_xgetpwnam(const char *name); +extern long bb_xgetgrnam(const char *name); +extern char * bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix); +extern char * bb_getpwuid(char *name, long uid, int bufsize); +extern char * bb_getgrgid(char *group, long gid, int bufsize); extern char *bb_askpass(int timeout, const char * prompt); extern int device_open(const char *device, int mode); @@ -471,7 +469,7 @@ extern void print_login_prompt(void); extern void vfork_daemon_rexec(int nochdir, int noclose, int argc, char **argv, char *foreground_opt); extern int get_terminal_width_height(int fd, int *width, int *height); -extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *)); +extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *)); #define HASH_SHA1 1 #define HASH_MD5 2 |