Various bits of work from playing about with operating systems source.