[all-commits] [llvm/llvm-project] c3b284: [libc] Allow openat and creat to return fd 0. (#16...
Jackson Stogel via All-commits
all-commits at lists.llvm.org
Wed Nov 5 13:21:39 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c3b284919139bc0758cd547a56ffd5dbf6e67bb1
https://github.com/llvm/llvm-project/commit/c3b284919139bc0758cd547a56ffd5dbf6e67bb1
Author: Jackson Stogel <jtstogel at gmail.com>
Date: 2025-11-05 (Wed, 05 Nov 2025)
Changed paths:
M libc/src/fcntl/linux/creat.cpp
M libc/src/fcntl/linux/openat.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list