Miscellanous unix code.