Replaces commit 44e3708cdb204782d728ddd6a40dec230bb9299c
authorCesare Tirabassi <norsetto@ubuntu.com>
Sun, 31 Jan 2010 19:57:02 +0000 (20:57 +0100)
committerCesare Tirabassi <norsetto@ubuntu.com>
Sun, 31 Jan 2010 20:00:37 +0000 (21:00 +0100)
commitd2ce1d29096b454528bcdcc3a265f40410d64f57
tree95e7dcd49e95e2c8eaba56200a5aa91937811f05
parentda510d34a65b13f159c4a3c66004e27206024390
Replaces commit 44e3708cdb204782d728ddd6a40dec230bb9299c

Thanks to ichelm610x for the patch.
I just added memoization to reduce the impact of the many system calls.
(cherry picked from commit 1eedf2633bfe822d80f6215d53730de473207f25)
src/linux.c