aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-31 22:16:38 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-05-31 22:16:38 +0000
commit3ea433409694393b67dd9dee3b184268ab75ac56 (patch)
treef2d3fe127fb6c3c1d3b919631de6e6ed7cbc1791 /shell/ash.c
parent2c31c731f0026b9f92dc0e07542fb8e38cad7dd2 (diff)
downloadbusybox-w32-3ea433409694393b67dd9dee3b184268ab75ac56.tar.gz
busybox-w32-3ea433409694393b67dd9dee3b184268ab75ac56.tar.bz2
busybox-w32-3ea433409694393b67dd9dee3b184268ab75ac56.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 git-svn-id: svn://busybox.net/trunk/busybox@18716 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c11
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 */
132static int *dash_errno;
133#undef errno
134#define errno (*dash_errno)
135#endif
136
137static char nullstr[1]; /* zero length string */ 130static char nullstr[1]; /* zero length string */
138static const char homestr[] = "HOME"; 131static const char homestr[] = "HOME";
139static const char snlfmt[] = "%s\n"; 132static 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