From 71925a90c8b713d8fccbfae496e10c68f80b932b Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sun, 17 Aug 2025 08:52:29 -0700 Subject: [PATCH] [libc] Setup hdrgen for ioctl (#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. --- libc/include/sys/ioctl.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libc/include/sys/ioctl.yaml b/libc/include/sys/ioctl.yaml index 5f7b7f333191..7eb66b657664 100644 --- a/libc/include/sys/ioctl.yaml +++ b/libc/include/sys/ioctl.yaml @@ -5,4 +5,12 @@ macros: [] types: [] enums: [] objects: [] -functions: [] +functions: + - name: ioctl + standards: + - Linux + return_type: int + arguments: + - type: int + - type: unsigned long + - type: '...'