From defc1ea34074e7882724c460260d307cdf981a70 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Jun 2008 02:52:20 +0000 Subject: *: 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 --- libbb/bb_pwd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libbb/bb_pwd.c') diff --git a/libbb/bb_pwd.c b/libbb/bb_pwd.c index 2bdb66230..b03dc8399 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; -- cgit v1.2.3