summaryrefslogtreecommitdiff
path: root/introspect/src/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-19 21:26:05 -0300
committerGabriel Schneider <[email protected]>2026-09-19 21:26:05 -0300
commitb05abcba3ea09ea106ad28364c6e40a3ec31b890 (patch)
tree9170fac5e7e5d8bde108de34a182aaa9d6844117 /introspect/src/root.zig
parentae310a207534b33b7321dd2b9f423a73b1969159 (diff)
downloadcloud9-b05abcba3ea09ea106ad28364c6e40a3ec31b890.tar.gz
cloud9-b05abcba3ea09ea106ad28364c6e40a3ec31b890.zip
Add 9player and introspect as programs beside the library
9player/: FUSE mount CLI that mounts a 9P2000 tree into a fresh user+mount namespace and runs a program in it (no root, no libfuse, no libc). introspect/: the 9P debug/introspection library (freestanding core, value renderers, Linux probe with threads/stacks/memory/breakpoints/panics) and its demo server. Each has its own build fragment; the root build.zig wires them behind -D9player/-Dintrospect with namespaced steps (9player-itest, introspect-check-freestanding, programs-test, ...) and exports the introspect module for dependents. This is the layout for related programs. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'introspect/src/root.zig')
-rw-r--r--introspect/src/root.zig24
1 files changed, 24 insertions, 0 deletions
diff --git a/introspect/src/root.zig b/introspect/src/root.zig
new file mode 100644
index 0000000..1dcc892
--- /dev/null
+++ b/introspect/src/root.zig
@@ -0,0 +1,24 @@
+//! introspect: a 9P2000 debug/introspection server as a library. See
+//! docs/LIBRARY.md. `core` and `vars` are freestanding; `scratch` takes an
+//! allocator; `linux` is the platform layer (only on Linux).
+const std = @import("std");
+const builtin = @import("builtin");
+
+pub const core = @import("core.zig");
+pub const vars = @import("vars.zig");
+pub const scratch = @import("scratch.zig");
+pub const linux = if (builtin.os.tag == .linux) @import("linux/probe.zig") else struct {};
+
+pub const Config = core.Config;
+pub const Server = core.Server;
+pub const Provider = core.Provider;
+pub const NodeStat = core.NodeStat;
+pub const Scratch = scratch.Scratch;
+
+test {
+ std.testing.refAllDecls(@This());
+ _ = core;
+ _ = vars;
+ _ = scratch;
+ if (builtin.os.tag == .linux) _ = linux;
+}