From 2fafbd323f90ebf16d8c160eb0e1705006e4c2dd Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sat, 16 Aug 2025 19:26:45 +0000 Subject: [PATCH 1/2] [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: '...' From f95492c378cb3ce8e8312cf0fc4831d7c503d2cb Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sun, 17 Aug 2025 15:22:45 +0000 Subject: [PATCH 2/2] feedbacl --- libc/include/sys/ioctl.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/include/sys/ioctl.yaml b/libc/include/sys/ioctl.yaml index f323cc9b431b4..7eb66b657664a 100644 --- a/libc/include/sys/ioctl.yaml +++ b/libc/include/sys/ioctl.yaml @@ -7,6 +7,8 @@ enums: [] objects: [] functions: - name: ioctl + standards: + - Linux return_type: int arguments: - type: int