[PATCH] lsof.c: a very simple lsof implementation
Sven Oliver Moll
busybox at svol.li
Tue Mar 20 21:30:20 UTC 2012
Hello again,
I did a complete rework on my lsof implementation, focusing on robustness,
memory consumption and lowering the calls of malloc()/free().
Trying to use recurive_action() didn't work out as expected, the action
handlers added more code than the removal of the simple
opendir()/readdir()-loop would have saved.
Now as a patch for integration into busybox-1.19.4. I hope this is of any
use to you.
Greetings,
SvOlli
--
| _______ |
| ( /\ | No swords. No spells. Pistols, rockets, submachine guns,
|__)v\/lli a.k.a.| laser weapons, and cunning are all the magic you need.
|Sven Oliver Moll| -- Package of Wasteland by Interplay (C64 Version)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox_lsof.patch
Type: text/x-diff
Size: 5781 bytes
Desc:
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20120320/6f2dc92f/attachment.bin>
More information about the busybox
mailing list