[libc-commits] [libc] [libc] Setup hdrgen for ioctl (PR #153976)
via libc-commits
libc-commits at lists.llvm.org
Sat Aug 16 12:28:57 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
This patch adds some hdrgen yaml for ioctl(). Otherwise the function never actually ends up being available in a full build. This is the last thing that is needed to enable turning on LIBCXX_ENABLE_RANDOM_DEVICE.
---
Full diff: https://github.com/llvm/llvm-project/pull/153976.diff
1 Files Affected:
- (modified) libc/include/sys/ioctl.yaml (+7-1)
``````````diff
diff --git a/libc/include/sys/ioctl.yaml b/libc/include/sys/ioctl.yaml
index 5f7b7f333191e..f323cc9b431b4 100644
--- a/libc/include/sys/ioctl.yaml
+++ b/libc/include/sys/ioctl.yaml
@@ -5,4 +5,10 @@ macros: []
types: []
enums: []
objects: []
-functions: []
+functions:
+ - name: ioctl
+ return_type: int
+ arguments:
+ - type: int
+ - type: unsigned long
+ - type: '...'
``````````
</details>
https://github.com/llvm/llvm-project/pull/153976
More information about the libc-commits
mailing list