[libc-commits] [libc] [libc] add getrandom vDSO symbol (PR #151630)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 6 07:39:15 PDT 2025


================
@@ -110,8 +110,8 @@ TEST(LlvmLibcOSUtilVDSOTest, RtSigReturn) {
   using namespace testing::ErrnoSetterMatcher;
   // must use struct since there is a function of the same name in the same
   // scope.
-  struct sigaction sa {};
-  struct sigaction old_sa {};
+  struct sigaction sa{};
+  struct sigaction old_sa{};
----------------
lntue wrote:

I see, it is because there is `sigaction` function in `signal.h`.  On the other hand, putting `struct` here made me confused for a few seconds thinking these are new empty struct type definitions.  Maybe internally we should alias it with `sigaction_t` to reduce confusion.

https://github.com/llvm/llvm-project/pull/151630


More information about the libc-commits mailing list