Upstream plan9 with local modifications.