os: Implement open().