[libc-commits] [libc] [libc] Add struct sigevent definition and proxy header. (PR #217699)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Thu Aug 20 10:28:59 PDT 2026
================
@@ -0,0 +1,31 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Definition of struct sigevent type.
+/// https://man7.org/linux/man-pages/man3/sigevent.3type.html
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_STRUCT_SIGEVENT_H
+#define LLVM_LIBC_TYPES_STRUCT_SIGEVENT_H
+
+#include "pid_t.h"
+#include "pthread_attr_t.h"
+#include "union_sigval.h"
+
+struct sigevent {
+ int sigev_notify;
+ int sigev_signo;
+ union sigval sigev_value;
+ void (*sigev_notify_function)(union sigval);
+ pthread_attr_t *sigev_notify_attributes;
+ pid_t sigev_notify_thread_id;
----------------
vonosmas wrote:
This is only present on Linux. We do use `#ifdef __linux__` in some other struct definitions here, should we use it here as well?
https://github.com/llvm/llvm-project/pull/217699
More information about the libc-commits
mailing list