[PATCH] lsof reworked

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 1 14:27:30 UTC 2012


On Monday 26 March 2012 22:37, Tito wrote:
> On Monday 26 March 2012 20:47:57 souf wrote:
> > Le 25/03/2012 18:47, Sven Oliver Moll a écrit :
> > > Again another offer for an lsof applet. To make it as small as possible,
> > > now all memory is allocated on the stack. If the complete path to an
> > > opened file
> > > is larger that PATH_MAX, it will get truncated. On my x86_64 box,
> > > size(1) of
> > > lsof.o reports 573 bytes.
> > >
> > > Greetings,
> > > SvOlli
> > >
> > >
> > > _______________________________________________
> > > busybox mailing list
> > > busybox at busybox.net
> > > http://lists.busybox.net/mailman/listinfo/busybox
> > Hi,
> > You can try this :
> > 
..
> 
> Hi,
> Looks good, but the output is not same as before because it is listing also the files
> that lsof itself opens. I don't know if this behaviour is acceptable.
> With this little fix it is as before and bloatometer is still good:

Thanks guys! Committed to git.
-- 
vda


More information about the busybox mailing list