[libc-commits] [libc] [libc] Setup hdrgen for ioctl (PR #153976)
Aiden Grossman via libc-commits
libc-commits at lists.llvm.org
Sat Aug 16 12:28:25 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/153976
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.
>From 2fafbd323f90ebf16d8c160eb0e1705006e4c2dd Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 16 Aug 2025 19:26:45 +0000
Subject: [PATCH] [libc] Setup hdrgen for ioctl
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.
---
libc/include/sys/ioctl.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
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: '...'
More information about the libc-commits
mailing list