truss and procfs

Eirik Nygaard eirikn at kerneled.com
Tue Oct 28 10:51:14 PST 2003


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 at xxxxxxxxxxxx
Attachment:
pgp00005.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20031028/d54c8cc3/attachment-0014.obj>


More information about the Submit mailing list