diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-31 22:16:38 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-05-31 22:16:38 +0000 |
commit | fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (patch) | |
tree | f2d3fe127fb6c3c1d3b919631de6e6ed7cbc1791 /shell | |
parent | c2f011aa031b8598422953d5e9a93ca008ad0867 (diff) | |
download | busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.tar.gz busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.tar.bz2 busybox-w32-fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd.zip |
use "glibc errno" trick not only for ash, but for entire busybox
(add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/shell/ash.c b/shell/ash.c index b1d22e5d2..ea10a65cf 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -127,13 +127,6 @@ static char optlist[NOPTS]; | |||
127 | 127 | ||
128 | /* ============ Misc data */ | 128 | /* ============ Misc data */ |
129 | 129 | ||
130 | #ifdef __GLIBC__ | ||
131 | /* glibc sucks */ | ||
132 | static int *dash_errno; | ||
133 | #undef errno | ||
134 | #define errno (*dash_errno) | ||
135 | #endif | ||
136 | |||
137 | static char nullstr[1]; /* zero length string */ | 130 | static char nullstr[1]; /* zero length string */ |
138 | static const char homestr[] = "HOME"; | 131 | static const char homestr[] = "HOME"; |
139 | static const char snlfmt[] = "%s\n"; | 132 | static const char snlfmt[] = "%s\n"; |
@@ -12734,10 +12727,6 @@ int ash_main(int argc, char **argv) | |||
12734 | struct jmploc jmploc; | 12727 | struct jmploc jmploc; |
12735 | struct stackmark smark; | 12728 | struct stackmark smark; |
12736 | 12729 | ||
12737 | #ifdef __GLIBC__ | ||
12738 | dash_errno = __errno_location(); | ||
12739 | #endif | ||
12740 | |||
12741 | #if PROFILE | 12730 | #if PROFILE |
12742 | monitor(4, etext, profile_buf, sizeof(profile_buf), 50); | 12731 | monitor(4, etext, profile_buf, sizeof(profile_buf), 50); |
12743 | #endif | 12732 | #endif |