The file is created but the fd is -1. Surely the semantics of a O_CREAT failure are a file that's not created.
The file is created but the fd is -1. Surely the semantics of a O_CREAT failure are a file that's not created.