Implement open(2).