llvm-project
c3b28491 - [libc] Allow openat and creat to return fd 0. (#166466)

Commit
2 days ago
[libc] Allow openat and creat to return fd 0. (#166466) Previously, if the `open` or `openat` syscalls returned 0 as a (valid) file descriptor, the `creat` and `openat` wrappers would erroneously return -1.
Author
Parents
Loading