[libc-commits] [libc] [libc] Added const modifier to SigSetPtrType (PR #96252)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 20 16:46:56 PDT 2024
https://github.com/RoseZhang03 created https://github.com/llvm/llvm-project/pull/96252
Headerfiles for epoll_pwait and epoll_pwait2 have const modifier on
SigSetPtrType in function signature, but the linux.td file does not
reflect that.
.td file located in libc/spec/linux.td
epoll functions located in libc/src/sys/epoll
>From afb6d9f73b8159258a7f95b53947cd8ea6949c07 Mon Sep 17 00:00:00 2001
From: Rose Zhang <rosezhang at google.com>
Date: Thu, 20 Jun 2024 23:42:15 +0000
Subject: [PATCH] [libc] Added const modifier to SigSetPtrType
Headerfiles for epoll_pwait and epoll_pwait2 have const modifier on
SigSetPtrType in function signature, but the linux.td file does not
reflect that.
.td file located in libc/spec/linux.td
epoll functions located in libc/src/sys/epoll
---
libc/spec/linux.td | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/spec/linux.td b/libc/spec/linux.td
index f91f55ddac784..82630ff413c73 100644
--- a/libc/spec/linux.td
+++ b/libc/spec/linux.td
@@ -205,7 +205,7 @@ def Linux : StandardSpec<"Linux"> {
ArgSpec<StructEpollEventPtr>,
ArgSpec<IntType>,
ArgSpec<IntType>,
- ArgSpec<SigSetPtrType>
+ ArgSpec<ConstSigSetPtrType>
]
>,
FunctionSpec<
@@ -216,7 +216,7 @@ def Linux : StandardSpec<"Linux"> {
ArgSpec<StructEpollEventPtr>,
ArgSpec<IntType>,
ArgSpec<ConstStructTimeSpecPtr>,
- ArgSpec<SigSetPtrType>
+ ArgSpec<ConstSigSetPtrType>
]
>,
] // Functions
More information about the libc-commits
mailing list