From aa2fdd67f50302aa6d6f3422f57ce5d42333c1f8 Mon Sep 17 00:00:00 2001 From: vda Date: Fri, 24 Nov 2006 14:57:31 +0000 Subject: tar: cache [ug]id->username/groupname mappings. Cuts down amount of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!) git-svn-id: svn://busybox.net/trunk/busybox@16654 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- include/libbb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 582e34f52..99a1928df 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -567,6 +567,7 @@ pid_t *find_pid_by_name(const char* procName); pid_t *pidlist_reverse(pid_t *pidList); void clear_username_cache(void); const char* get_cached_username(uid_t uid); +const char* get_cached_groupname(gid_t gid); extern const char bb_uuenc_tbl_base64[]; -- cgit v1.2.3-55-g6feb