diff options
author | Denis Vlasenko | 2008-06-27 02:52:20 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-27 02:52:20 +0000 |
commit | defc1ea34074e7882724c460260d307cdf981a70 (patch) | |
tree | fca9b9a5fe243f9c0c76b84824ea2ff92ea8e589 /libbb/bb_pwd.c | |
parent | 26bc57d8b26425f23f4be974cce7bf35c95c9a1a (diff) | |
download | busybox-defc1ea34074e7882724c460260d307cdf981a70.zip busybox-defc1ea34074e7882724c460260d307cdf981a70.tar.gz |
*: introduce and use FAST_FUNC: regparm on i386, otherwise no-on
text data bss dec hex filename
808035 611 6868 815514 c719a busybox_old
804472 611 6868 811951 c63af busybox_unstripped
Diffstat (limited to 'libbb/bb_pwd.c')
-rw-r--r-- | libbb/bb_pwd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c index 2bdb662..b03dc83 100644 --- a/libbb/bb_pwd.c +++ b/libbb/bb_pwd.c @@ -45,7 +45,7 @@ static char* bb_getug(char *buffer, int bufsize, char *idname, long id, char pre * bb_getXXXid(NULL, -1, id) - return user/group name or exit */ /* gets a username given a uid */ -char* bb_getpwuid(char *name, int bufsize, long uid) +char* FAST_FUNC bb_getpwuid(char *name, int bufsize, long uid) { struct passwd *myuser = getpwuid(uid); @@ -54,7 +54,7 @@ char* bb_getpwuid(char *name, int bufsize, long uid) uid, 'u'); } /* gets a groupname given a gid */ -char* bb_getgrgid(char *group, int bufsize, long gid) +char* FAST_FUNC bb_getgrgid(char *group, int bufsize, long gid) { struct group *mygroup = getgrgid(gid); @@ -64,7 +64,7 @@ char* bb_getgrgid(char *group, int bufsize, long gid) } /* returns a gid given a group name */ -long xgroup2gid(const char *name) +long FAST_FUNC xgroup2gid(const char *name) { struct group *mygroup; @@ -76,7 +76,7 @@ long xgroup2gid(const char *name) } /* returns a uid given a username */ -long xuname2uid(const char *name) +long FAST_FUNC xuname2uid(const char *name) { struct passwd *myuser; @@ -87,8 +87,8 @@ long xuname2uid(const char *name) return myuser->pw_uid; } -unsigned long get_ug_id(const char *s, - long (*xname2id)(const char *)) +unsigned long FAST_FUNC get_ug_id(const char *s, + long FAST_FUNC (*xname2id)(const char *)) { unsigned long r; |