RE: Hush cant replace lash for my situation

2008-01-06 Thread Martinb_ARM_NOMMU_KISSDVD
I did build the toolchain but i used a script, i will try to learn to build my own uclibc but if i look at the buildscript and all the patches the developers have used then i think i will never be able to do this (but i will try, and will bug you on a new thread if im stuck) I did remove the -DBB

Re: do ... while(0) optimization problem

2008-01-06 Thread Loïc Grenié
2008/1/6, Mike Frysinger <[EMAIL PROTECTED]>: > On Sunday 06 January 2008, Loïc Grenié wrote: > > 2008/1/6, Mike Frysinger <[EMAIL PROTECTED]>: > > > On Sunday 06 January 2008, Detlef Vollmann wrote: > > > > in util-linux/fdisk.c, the macro > > > > > > > > #define INIT_G() do { \ > > > > PTR_TO

Re: do ... while(0) optimization problem

2008-01-06 Thread Mike Frysinger
On Sunday 06 January 2008, Loïc Grenié wrote: > 2008/1/6, Mike Frysinger <[EMAIL PROTECTED]>: > > On Sunday 06 January 2008, Detlef Vollmann wrote: > > > in util-linux/fdisk.c, the macro > > > > > > #define INIT_G() do { \ > > > PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ > > > sector_size = DEF

Re: do ... while(0) optimization problem

2008-01-06 Thread Loïc Grenié
2008/1/6, Mike Frysinger <[EMAIL PROTECTED]>: > On Sunday 06 January 2008, Detlef Vollmann wrote: > > in util-linux/fdisk.c, the macro > > > > #define INIT_G() do { \ > > PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ > > sector_size = DEFAULT_SECTOR_SIZE; \ > > sector_offset = 1; \ > > g_p

Re: do ... while(0) optimization problem

2008-01-06 Thread Mike Frysinger
On Sunday 06 January 2008, Detlef Vollmann wrote: > in util-linux/fdisk.c, the macro > > #define INIT_G() do { \ > PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ > sector_size = DEFAULT_SECTOR_SIZE; \ > sector_offset = 1; \ > g_partitions = 4; \ > display_in_cyl_units = 1; \ > units

do ... while(0) optimization problem

2008-01-06 Thread Detlef Vollmann
Hello, in util-linux/fdisk.c, the macro #define INIT_G() do { \ PTR_TO_GLOBALS = xzalloc(sizeof(G)); \ sector_size = DEFAULT_SECTOR_SIZE; \ sector_offset = 1; \ g_partitions = 4; \ display_in_cyl_units = 1; \ units_per_sector = 1; \ } while (0) seems to get partly optimiz

Re: ps and username size

2008-01-06 Thread Cristian Ionescu-Idbohrn
On Sun, 6 Jan 2008, Detlef Vollmann wrote: > + smart_ulltoa4( (u, buf5, " mgtpezy"); > ^^ > This line contains a type, leading to: > procps/ps.c: In function `put_lu': > procps/ps.c:193: warning: left-hand operand of comma expression has no effect > procps/ps.c:193: war

Re: ps and username size

2008-01-06 Thread Cristian Ionescu-Idbohrn
On Sun, 6 Jan 2008, Denys Vlasenko wrote: > Thanks for the report. Using %-8.8s instead of %-8s fixes this. > > I am also fixing VSZ overflow with large VSZs. > > Will commit changes to svn in a minute. Thanks. The attached patch properly adjusts the columns to the header and immitates debian ps

Re: syslogd

2008-01-06 Thread Alex Landau
- Original Message > From: Tito <[EMAIL PROTECTED]> > To: busybox@busybox.net > Cc: Alex Landau <[EMAIL PROTECTED]> > Sent: Sunday, January 6, 2008 3:19:42 PM > Subject: Re: syslogd > > > [snip] > > > Alex, you attached a man page rather than the patch. :-) > > Ciao, > Tito > Right :

Re: ps and username size

2008-01-06 Thread Detlef Vollmann
Denys Vlasenko wrote: > Thanks for the report. Using %-8.8s instead of %-8s fixes this. > > I am also fixing VSZ overflow with large VSZs. > > Will commit changes to svn in a minute. @@ -188,7 +188,10 @@ static void put_lu(char *buf, int size, unsigned long u) { char buf5[5]; -

Re: svn commit: trunk/busybox: coreutils docs include

2008-01-06 Thread Bernhard Fischer
On Sat, Jan 05, 2008 at 10:27:18PM -0800, [EMAIL PROTECTED] wrote: >Author: vda >Date: 2008-01-05 22:27:17 -0800 (Sat, 05 Jan 2008) >New Revision: 20806 > >Log: >tac: new applet. ~240 bytes. > >Copyright (C) 2003 Yang Xiaopeng >Copyright (C) 2007 Natanael Copa <[EMAIL PROTECTED]> >Copyright (C

Re: syslogd

2008-01-06 Thread Tito
On Sunday 06 January 2008 13:42:12 Alex Landau wrote: > Hi, > > As a side effect of my problems with syslogd described below, I found a bug > (return value from shmat() > checked for error incorrectly), which is fixed by the attached patch. > > I'm running on NOMMU and using busybox 1.7 (and che

Re: [PATCH] time options for ps

2008-01-06 Thread Detlef Vollmann
Denys Vlasenko wrote: > > On Friday 04 January 2008 14:58, Detlef Vollmann wrote: > > Hello, > > > > the attached patch adds 'time' and 'etime' for ps. > > It adds more than 2k (but only for CONFIG_DESKTOP) because of > > the expensive computation of HZ. > > If we omit support for pre-2.4 Linux, t

Re: [PATCH] time options for ps

2008-01-06 Thread Detlef Vollmann
Denys Vlasenko wrote: > sizeof is wrong here: > > +static inline void file_to_buf(char const *filename, char *buf) > +{ > + if (open_read_close(filename, buf, sizeof(buf)) < 0) { > + bb_error_msg_and_die(BAD_OPEN_MESSAGE); > + } > +} Oops, mea culpa :-( This happened when

syslogd

2008-01-06 Thread Alex Landau
Hi, As a side effect of my problems with syslogd described below, I found a bug (return value from shmat() checked for error incorrectly), which is fixed by the attached patch. I'm running on NOMMU and using busybox 1.7 (and checked the relevant changes in syslogd.c till trunk head - none seems

Re: [PATCH] coreutils tac (was: coreutils tac)

2008-01-06 Thread Tito
On Sunday 06 January 2008 07:28:47 Denys Vlasenko wrote: > On Wednesday 02 January 2008 15:23, Natanael Copa wrote: > > Denys, whats the status on the tac patch? > > Version which does inversion in memory is appled to svn. > It handles non terminated last line the same as coreutils, > but mishandl

I can't log in

2008-01-06 Thread zhuzhu
dear sir: I built my own filesystems with busybox ,use nfs to boot,and copy "group passwd shadow"to /myrootfs/etc.but I can't login with my user name,when I type my login name,:zhu.I get" Process '/sbin/getty 115200 ttyS0' (pid 12) exited. Scheduling it for restart.",it enve didn't ask me