From 4bc721c3bf7589b519c5730d093f704ce56e3f09 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Mon, 29 Jun 2026 21:43:54 +0900 Subject: refactor: MCP層をmcpc APIベースに刷新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 独自JSON-RPC処理をmcpcへ置き換え - 各MCPツールを個別ソースへ分離 - 共通コンテキストと登録処理を整理 - mcpc互換修正と統合テストを更新 --- src/sys/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/sys/README.md (limited to 'src/sys/README.md') diff --git a/src/sys/README.md b/src/sys/README.md new file mode 100644 index 0000000..22802d5 --- /dev/null +++ b/src/sys/README.md @@ -0,0 +1,21 @@ +# System abstraction + +`system.h` is the only OS-facing API used by the application and storage +layers. Paths and process arguments are UTF-8 strings on every platform. + +The API owns these responsibilities: + +- process argument conversion and absolute/path-join operations; +- directory creation, temporary directories, and path removal/replacement; +- opaque file handles, locking, read/write/seek/truncate/flush operations; +- wall-clock and monotonic milliseconds; +- cryptographically secure random bytes. + +Returned strings are heap allocated and must be released with `free()`. Files +must be initialized or opened through this API and closed with +`tiny_sys_file_close()`. + +Platform selection is intentionally confined to the single conditional block +in `system.c`. Windows uses wide Win32 calls internally; non-Windows builds use +the POSIX implementation. No Win32 or POSIX type is exposed by `system.h`. + -- cgit v1.2.3