diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:57:31 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:57:31 +0000 |
commit | c50f370f98e5f5d24d18ca3df444770dacce1824 (patch) | |
tree | 45516e35a895fa4eccfb36ff0d8c1e29714a2c41 /include | |
parent | 4fbb584a0e6ee086d6b30936c7124c687b3e977f (diff) | |
download | busybox-w32-c50f370f98e5f5d24d18ca3df444770dacce1824.tar.gz busybox-w32-c50f370f98e5f5d24d18ca3df444770dacce1824.tar.bz2 busybox-w32-c50f370f98e5f5d24d18ca3df444770dacce1824.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!!!)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
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); | |||
567 | pid_t *pidlist_reverse(pid_t *pidList); | 567 | pid_t *pidlist_reverse(pid_t *pidList); |
568 | void clear_username_cache(void); | 568 | void clear_username_cache(void); |
569 | const char* get_cached_username(uid_t uid); | 569 | const char* get_cached_username(uid_t uid); |
570 | const char* get_cached_groupname(gid_t gid); | ||
570 | 571 | ||
571 | 572 | ||
572 | extern const char bb_uuenc_tbl_base64[]; | 573 | extern const char bb_uuenc_tbl_base64[]; |