From fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 31 May 2007 22:16:38 +0000 Subject: 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 --- shell/ash.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'shell') 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]; /* ============ Misc data */ -#ifdef __GLIBC__ -/* glibc sucks */ -static int *dash_errno; -#undef errno -#define errno (*dash_errno) -#endif - static char nullstr[1]; /* zero length string */ static const char homestr[] = "HOME"; static const char snlfmt[] = "%s\n"; @@ -12734,10 +12727,6 @@ int ash_main(int argc, char **argv) struct jmploc jmploc; struct stackmark smark; -#ifdef __GLIBC__ - dash_errno = __errno_location(); -#endif - #if PROFILE monitor(4, etext, profile_buf, sizeof(profile_buf), 50); #endif -- cgit v1.2.3