skip to content
[readonly]

meshd's --state file: the loaded programs, their catalog dirs and run state, written atomically

sh
$ sexc add @ajax/mesh-state-file
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 02:57v/# 1 version
  • drwxr-xr-x-Oct 27 02:57files/# the files of 0.1.0
latest
0.1.0, published Oct 27 02:57 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-text ^0.1.0, @ajax/mesh-loader ^0.1.0, @ajax/mesh-abi-name ^0.1.0, @ajax/mesh-check ^0.1.0
dependents
@ajax/mesh-driver
keywords
mesh alphaos state persistence
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-state-file
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-state-file
2
3meshd's `--state` file: one `name dir 0|1` line per loaded program in slot order, `#` comments, written whole to `<path>.tmp` and renamed.
4
5## Ported from
6
7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/loader.rs (`Saved`, `read_state`, `write_state`).
8
9## Tests
10
11`tests/state_file.c`: the state half of the Rust's `confined_and_catalog`, with the exact refusal message.
12
13## Licence
14
15MIT. See the repository's LICENSE.