summaryrefslogtreecommitdiff
path: root/include/bits/sigevent.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/bits/sigevent.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/bits/sigevent.h')
-rw-r--r--include/bits/sigevent.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/bits/sigevent.h b/include/bits/sigevent.h
new file mode 100644
index 00000000..b36e676c
--- /dev/null
+++ b/include/bits/sigevent.h
@@ -0,0 +1,20 @@
+#ifndef __BITS_SIGEVENT_H
+#define __BITS_SIGEVENT_H
+
+#ifndef __BITS_SIGEVENT_H_
+#error "Internal header — include the public API header instead."
+#endif
+
+union sigval {
+ int sival_int;
+ void *sival_ptr;
+};
+
+struct sigevent {
+ int sigev_notify;
+ int sigev_signo;
+ union sigval sigev_value;
+ void (*sigev_notify_function)(union sigval);
+};
+
+#endif