The header scan (Captain Bob, 2026-11-10): 788 source files -- 351 with the
SL-1.0 header, 12 with the old name (docs/working/experiments, kept by
ruling), 31 under someone else's licence (tools/kconfig, Linux's, GPL-2.0:
kept), and 394 with none. Ruled: the SPDX form; capsules (.4th, .f18) and
proofs (.thy) left for a ruling of their own (mkcapsule's 64x16 block format,
content-addressed capsules).
253 files now begin
SPDX-License-Identifier: LicenseRef-Starship-1.0
Copyright (c) 2023-2026 Robert A. James
as a /* */ block (C, headers, assembly, linker scripts) or # lines (scripts,
Makefiles, Kconfig; below a shebang or a coding line); tools/mkcapsule.c,
which had the copyright line, gets the SPDX line only.
Not touched: docs/working/ (archive and old campaign material, as the
ruling kept the experiments); v4/system/post_cases.c (generated by
v4/tools/mkpost.py, "do not edit" -- the generator has the header).
Comments only: the kernel builds on amd64, aarch64, riscv64; make -C v4
test-32: 39 programs, 0 failures; every changed script parses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
/* SPDX-License-Identifier: LicenseRef-Starship-1.0
|
|
* Copyright (c) 2023-2026 Robert A. James
|
|
*/
|
|
/* sk_v4_grow.h -- Artemis grows to fill the stick at its first boot
|
|
* (docs/v4.0.0/STICK.md 5a; plan 2026-10-29-stick-5, Task 2).
|
|
*
|
|
* Built only with STARFORTH_V4=1 (Kconfig.kernel).
|
|
*/
|
|
#ifndef STARKERNEL_V4_SK_V4_GROW_H
|
|
#define STARKERNEL_V4_SK_V4_GROW_H
|
|
|
|
#include <stdint.h>
|
|
#include "blkio.h"
|
|
|
|
/* How far the Artemis partition `art` may grow, in 512-byte sectors: no
|
|
* further than `cap_sectors`, nor than its volume's BAM can track. 0 when
|
|
* `art` holds no STFR v2 volume. Reads only. */
|
|
uint64_t sk_v4_grow_cap_sectors(blkio_dev_t *art, uint64_t cap_sectors);
|
|
|
|
/* Grow the volume on `art` to fill its partition: its fence (the Artemis
|
|
* signature, Zuse's genesis marker) moved to the new top, then its header.
|
|
* Metadata only. 1 when grown, 0 when it already fills the partition, -1 on
|
|
* an error -- the old header then still names the old volume, whole. */
|
|
int sk_v4_grow_artemis(blkio_dev_t *art);
|
|
|
|
#endif /* STARKERNEL_V4_SK_V4_GROW_H */
|