diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:54:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-24 14:54:27 +0000 |
commit | 0b35470d9b5e75a7a1df2e6860b48831e7920353 (patch) | |
tree | 1bf3d6658a938f85d25b1febe8185eab75274ddd /include | |
parent | cf30cc82a343802b601f01ae153916887f11eb7b (diff) | |
download | busybox-w32-0b35470d9b5e75a7a1df2e6860b48831e7920353.tar.gz busybox-w32-0b35470d9b5e75a7a1df2e6860b48831e7920353.tar.bz2 busybox-w32-0b35470d9b5e75a7a1df2e6860b48831e7920353.zip |
glibc makedev() is a large inline. Save 700+ bytes by wrapping it
into a function.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index ad64bad84..582e34f52 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -509,6 +509,12 @@ extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char * | |||
509 | int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); | 509 | int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); |
510 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); | 510 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); |
511 | void reset_ino_dev_hashtable(void); | 511 | void reset_ino_dev_hashtable(void); |
512 | #ifdef __GLIBC__ | ||
513 | /* At least glibc has horrendously large inline for this, so wrap it */ | ||
514 | extern unsigned long long bb_makedev(unsigned int major, unsigned int minor); | ||
515 | #undef makedev | ||
516 | #define makedev(a,b) bb_makedev(a,b) | ||
517 | #endif | ||
512 | 518 | ||
513 | 519 | ||
514 | #ifndef COMM_LEN | 520 | #ifndef COMM_LEN |