interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / specs / osh-platform / vectors / s002_capacity_partial.vec

20 lines · 515 bytes Raw Blame History
1case capacity_partial
2kind negative
3exec host-logic
4domain any
5needs streams
6# partial reads and writes (ST4.1, ST4.2); bounded capacity, no PIPE_BUF atomicity (ST4.2, ST11.6)
7create R W A => OK
8write W "hello" => OK n=5
9read R 2 => OK n=2 data="he"
10read R 10 => OK n=3 data="llo"
11fill W 65530 61 => OK n=65530
12write W "abcdefghij" => OK n=6
13write W "x" => WOULD_BLOCK
14write W "" => OK n=0
15skim R 65530 => OK n=65530
16read R 10 => OK n=6 data="abcdef"
17read R 1 => WOULD_BLOCK
18close R => OK
19close W => OK
20check empty