DragonFly BSD
DragonFly submit List (threaded) for 2003-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: truss and procfs


From: Eirik Nygaard <eirikn@xxxxxxxxxxxx>
Date: Tue, 28 Oct 2003 19:50:12 +0100

On Sun, Oct 19, 2003 at 08:35:46PM +0200, Eirik Nygaard wrote:
> On Sun, Oct 19, 2003 at 10:23:42AM -0700, Matthew Dillon wrote:
> > 
> > :truss(1) always looks for procfs in /proc, it also bails out with some not
> > :very informative error messages if procfs is not mounted.
> > :http://eirikn.kerneled.com/dragonfly/truss-procfs.diff checks where procfs
> > :is mounted and if it is not present truss now tells the user what is
> > :wrong.
> > :
> >     Yow.  Use asprintf/free instead of sprintf/malloc/snprintf/free :-)
> > 
> > 						-Matt
> 
> I have uploaded an updated diff at the same location.
> 

Looks like I missed on sprintf/malloc/snprintf/free -> asprintf/free
(reported by Matt Dillon), it is all good now. The only question left
is: does anyone feel like commiting it, or are there more improvments I
should make?

http://eirikn.kerneled.com/dragonfly/truss-procfs.diff

-- 
Eirik Nygaard
eirikn@xxxxxxxxxxxx

Attachment: pgp00005.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]