Port of various original plan9 tools
