[BusyBox] last_patch17 and contine work with ash
Vladimir N. Oleynik
dzo at simtreas.ru
Mon Jul 2 09:46:59 UTC 2001
Erik,
> > diff -rbu busybox.orig/cmdedit.c busybox/cmdedit.c
> > --- busybox.orig/cmdedit.c Sun Jul 1 19:45:54 2001
> > +++ busybox/cmdedit.c Sun Jul 1 19:48:14 2001
> > @@ -442,6 +442,7 @@
> > if (flg_not_length == ']')
> > sub_len++;
> > }
> > + if(pwd_buf!=(char *)unknown)
> > free(pwd_buf);
> > cmdedit_prompt = prmt_mem_ptr;
> > cmdedit_prmt_len = prmt_len - sub_len;
>
> Good catch. Applied.
Thanks.
> > diff -rbu busybox.orig/syslogd.c busybox/syslogd.c
> > --- busybox.orig/syslogd.c Sun Jul 1 19:47:05 2001
> > +++ busybox/syslogd.c Sun Jul 1 19:48:45 2001
> > @@ -387,7 +387,8 @@
> > }
> > }
> >
> > -static const int BUFSIZE = 1023;
> > +#define BUFSIZE 1023
> > +
> > static int serveConnection (int conn)
> > {
> > RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1);
> > diff -rbu busybox.orig/tr.c busybox/tr.c
> > --- busybox.orig/tr.c Sun Jul 1 19:46:22 2001
> > +++ busybox/tr.c Sun Jul 1 19:49:20 2001
> > @@ -31,7 +31,7 @@
> > #include <sys/types.h>
> > #include "busybox.h"
> >
> > -static const int ASCII = 0377;
> > +#define ASCII 0377
> >
> > /* some "globals" shared across this file */
> > static char com_fl, del_fl, sq_fl;
>
> Why? What is the benefit of making these patches? This does
> not make the code smaller, and makes it harder to debug, since
> #defines do not show up in the debugger...
Subject: [BusyBox] #define -> static const int. Ash module
Date: Sat, 30 Jun 2001 20:33:04 +0400
From: "Vladimir N. Oleynik" <dzo at simtreas.ru>
I enable in Config.h BB_FEATURE_BUFFERS_GO_IN_BSS and
can`t translate modules: syslogd.c and tr.c
---------------------
Also, I added in ash support locale.
--w
vodz
More information about the busybox
mailing list