aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / s002_capacity_partial.vec
| 1 | case capacity_partial |
| 2 | kind negative |
| 3 | exec host-logic |
| 4 | domain any |
| 5 | needs streams |
| 6 | # partial reads and writes (ST4.1, ST4.2); bounded capacity, no PIPE_BUF atomicity (ST4.2, ST11.6) |
| 7 | create R W A => OK |
| 8 | write W "hello" => OK n=5 |
| 9 | read R 2 => OK n=2 data="he" |
| 10 | read R 10 => OK n=3 data="llo" |
| 11 | fill W 65530 61 => OK n=65530 |
| 12 | write W "abcdefghij" => OK n=6 |
| 13 | write W "x" => WOULD_BLOCK |
| 14 | write W "" => OK n=0 |
| 15 | skim R 65530 => OK n=65530 |
| 16 | read R 10 => OK n=6 data="abcdef" |
| 17 | read R 1 => WOULD_BLOCK |
| 18 | close R => OK |
| 19 | close W => OK |
| 20 | check empty |