[PATCH] lsof reworked

Sven Oliver Moll busybox at svol.li
Sun Mar 25 16:47:14 UTC 2012


Hello!

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
-- 
|  _______       |
| (  /\          | The night will come and the sun will shine
|__)v\/lli a.k.a.| New love will come when pain's forgotten
|Sven Oliver Moll|   -- The Jinxs, "Pain's Forgotten"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox_lsof.patch
Type: text/x-diff
Size: 4204 bytes
Desc: 
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20120325/5e5d02c5/attachment.bin>


More information about the busybox mailing list