[libc-commits] [libc] [libc] Setup hdrgen for ioctl (PR #153976)
Aiden Grossman via libc-commits
libc-commits at lists.llvm.org
Sun Aug 17 08:22:57 PDT 2025
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/153976
>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 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 <aidengrossman at google.com>
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
More information about the libc-commits
mailing list