5851974b20
Release fork infrastructure: - REDBEAR_RELEASE=0.1.1 with offline enforcement (fetch/distclean/unfetch blocked) - 195 BLAKE3-verified source archives in standard format - Atomic provisioning via provision-release.sh (staging + .complete sentry) - 5-phase improvement plan: restore format auto-detection, source tree validation (validate-source-trees.py), archive-map.json, REPO_BINARY fallback Archive normalization: - Removed 87 duplicate/unversioned archives from shared pool - Regenerated all archives in consistent format with source/ + recipe.toml - BLAKE3SUMS and manifest.json generated from stable tarball set Patch management: - verify-patches.sh: pre-sync dry-run report (OK/REVERSED/CONFLICT) - 121 upstream-absorbed patches moved to absorbed/ directories - 43 active patches verified clean against rebased sources - Stress test: base updated to upstream HEAD, relibc reset and patched Compilation fixes: - relibc: Vec imports in redox-rt (proc.rs, lib.rs, sys.rs) - relibc: unsafe from_raw_parts in mod.rs (2024 edition) - fetch.rs: rev comparison handles short/full hash prefixes - kibi recipe: corrected rev mismatch New scripts: restore-sources.sh, provision-release.sh, verify-sources-archived.sh, check-upstream-releases.sh, validate-source-trees.py, verify-patches.sh, repair-archive-format.sh, generate-manifest.py Documentation: AGENTS.md, README.md, local/AGENTS.md updated for release fork model
99 lines
2.8 KiB
Diff
99 lines
2.8 KiB
Diff
diff -ruN a/src/header/mod.rs b/src/header/mod.rs
|
|
--- a/src/header/mod.rs 2026-04-15 09:55:11.441949342 +0100
|
|
+++ b/src/header/mod.rs 2026-04-15 09:57:28.904091552 +0100
|
|
@@ -92,15 +92,15 @@
|
|
pub mod sys_eventfd;
|
|
pub mod sys_file;
|
|
pub mod sys_ioctl;
|
|
-// TODO: sys/ipc.h
|
|
+pub mod sys_ipc;
|
|
pub mod sys_mman;
|
|
// TODO: sys/msg.h
|
|
pub mod sys_ptrace;
|
|
pub mod sys_resource;
|
|
pub mod sys_select;
|
|
-// TODO: sys/sem.h
|
|
-// TODO: sys/shm.h
|
|
+pub mod sys_sem;
|
|
+pub mod sys_shm;
|
|
pub mod sys_socket;
|
|
pub mod sys_stat;
|
|
pub mod sys_statvfs;
|
|
diff -ruN a/src/header/sys_ipc/cbindgen.toml b/src/header/sys_ipc/cbindgen.toml
|
|
--- a/src/header/sys_ipc/cbindgen.toml 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_ipc/cbindgen.toml 2026-04-15 09:57:28.904120977 +0100
|
|
@@ -0,1 +1,13 @@
|
|
+sys_includes = ["sys/types.h"]
|
|
+include_guard = "_SYS_IPC_H"
|
|
+trailer = """
|
|
+typedef struct ipc_perm ipc_perm;
|
|
+"""
|
|
+language = "C"
|
|
+style = "Tag"
|
|
+no_includes = true
|
|
+cpp_compat = true
|
|
+
|
|
+[enum]
|
|
+prefix_with_name = true
|
|
diff -ruN a/src/header/sys_ipc/mod.rs b/src/header/sys_ipc/mod.rs
|
|
--- a/src/header/sys_ipc/mod.rs 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_ipc/mod.rs 2026-04-15 09:57:28.904159138 +0100
|
|
@@ -0,1 +1,32 @@
|
|
+//! `sys/ipc.h` implementation.
|
|
+
|
|
+use crate::platform::types::{c_int, c_ushort};
|
|
+
|
|
+pub type key_t = c_int;
|
|
+
|
|
+pub const IPC_PRIVATE: key_t = 0;
|
|
+pub const IPC_CREAT: c_int = 0o1000;
|
|
+pub const IPC_EXCL: c_int = 0o2000;
|
|
+pub const IPC_NOWAIT: c_int = 0o4000;
|
|
+
|
|
+pub const IPC_RMID: c_int = 0;
|
|
+pub const IPC_SET: c_int = 1;
|
|
+pub const IPC_STAT: c_int = 2;
|
|
+
|
|
+#[repr(C)]
|
|
+#[derive(Clone, Copy, Default)]
|
|
+pub struct ipc_perm {
|
|
+ pub __key: key_t,
|
|
+ pub uid: c_ushort,
|
|
+ pub gid: c_ushort,
|
|
+ pub cuid: c_ushort,
|
|
+ pub cgid: c_ushort,
|
|
+ pub mode: c_ushort,
|
|
+ pub __seq: c_ushort,
|
|
+}
|
|
+
|
|
+#[unsafe(no_mangle)]
|
|
+pub extern "C" fn _cbindgen_export_ipc_perm(value: ipc_perm) {
|
|
+ let _ = value;
|
|
+}
|
|
diff -ruN a/src/header/sys_sem/cbindgen.toml b/src/header/sys_sem/cbindgen.toml
|
|
--- a/src/header/sys_sem/cbindgen.toml 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_sem/cbindgen.toml 2026-04-15 09:57:28.904183804 +0100
|
|
@@ -0,1 +1,10 @@
|
|
+sys_includes = ["sys/types.h", "sys/ipc.h", "stdint.h"]
|
|
+include_guard = "_SYS_SEM_H"
|
|
+language = "C"
|
|
+style = "Tag"
|
|
+no_includes = true
|
|
+cpp_compat = true
|
|
+
|
|
+[enum]
|
|
+prefix_with_name = true
|
|
diff -ruN a/src/header/sys_shm/cbindgen.toml b/src/header/sys_shm/cbindgen.toml
|
|
--- a/src/header/sys_shm/cbindgen.toml 1970-01-01 00:00:00.000000000 +0000
|
|
+++ b/src/header/sys_shm/cbindgen.toml 2026-04-15 09:57:28.904207067 +0100
|
|
@@ -0,0 +1,9 @@
|
|
+sys_includes = ["sys/types.h", "sys/ipc.h", "sys/mman.h", "stdint.h"]
|
|
+include_guard = "_SYS_SHM_H"
|
|
+language = "C"
|
|
+style = "Tag"
|
|
+no_includes = true
|
|
+cpp_compat = true
|
|
+
|
|
+[enum]
|
|
+prefix_with_name = true
|