aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 14:57:31 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 14:57:31 +0000
commitaa2fdd67f50302aa6d6f3422f57ce5d42333c1f8 (patch)
tree45516e35a895fa4eccfb36ff0d8c1e29714a2c41 /include
parent708d74b5fe4e29c55f76b79bc71aa6ae532d38fe (diff)
downloadbusybox-w32-aa2fdd67f50302aa6d6f3422f57ce5d42333c1f8.tar.gz
busybox-w32-aa2fdd67f50302aa6d6f3422f57ce5d42333c1f8.tar.bz2
busybox-w32-aa2fdd67f50302aa6d6f3422f57ce5d42333c1f8.zip
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
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
1 files changed, 1 insertions, 0 deletions
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);
567pid_t *pidlist_reverse(pid_t *pidList); 567pid_t *pidlist_reverse(pid_t *pidList);
568void clear_username_cache(void); 568void clear_username_cache(void);
569const char* get_cached_username(uid_t uid); 569const char* get_cached_username(uid_t uid);
570const char* get_cached_groupname(gid_t gid);
570 571
571 572
572extern const char bb_uuenc_tbl_base64[]; 573extern const char bb_uuenc_tbl_base64[];