Interface, mocks and codegen for the os package.