e113e13723
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
diff -ruN a/src/header/mod.rs b/src/header/mod.rs
|
|
--- a/src/header/mod.rs 2026-04-15 09:40:30.417847129 +0100
|
|
+++ b/src/header/mod.rs 2026-04-15 09:48:02.257729647 +0100
|
|
@@ -103,6 +103,7 @@
|
|
pub mod sys_stat;
|
|
pub mod sys_statvfs;
|
|
pub mod sys_time;
|
|
+pub mod sys_signalfd;
|
|
#[deprecated]
|
|
pub mod sys_timeb;
|
|
//pub mod sys_times;
|
|
diff -ruN a/src/header/sys_signalfd/cbindgen.toml b/src/header/sys_signalfd/cbindgen.toml
|
|
--- a/src/header/sys_signalfd/cbindgen.toml 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_signalfd/cbindgen.toml 2026-04-15 09:48:02.257754724 +0100
|
|
@@ -0,0 +1,12 @@
|
|
+sys_includes = ["signal.h", "stdint.h"]
|
|
+include_guard = "_SYS_SIGNALFD_H"
|
|
+language = "C"
|
|
+style = "Tag"
|
|
+no_includes = true
|
|
+cpp_compat = true
|
|
+
|
|
+[enum]
|
|
+prefix_with_name = true
|
|
+
|
|
+[export.rename]
|
|
+"signalfd_siginfo" = "struct signalfd_siginfo"
|
|
diff -ruN a/src/header/sys_signalfd/mod.rs b/src/header/sys_signalfd/mod.rs
|
|
--- a/src/header/sys_signalfd/mod.rs 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_signalfd/mod.rs 2026-04-15 09:48:02.257778048 +0100
|
|
@@ -0,0 +1,6 @@
|
|
+//! `sys/signalfd.h` implementation.
|
|
+
|
|
+pub use crate::header::signal::{SFD_CLOEXEC, SFD_NONBLOCK, signalfd, signalfd4, signalfd_siginfo};
|
|
+
|
|
+#[unsafe(no_mangle)]
|
|
+pub extern "C" fn _cbindgen_export_sys_signalfd_siginfo(siginfo: signalfd_siginfo) {}
|