Modified version of web10g userland tools from: http://web10g.org/index.php?option=com_remository&Itemid=65&func=fileinfo&id=54