aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / s003_zero_length.vec
| 1 | case zero_length |
| 2 | kind negative |
| 3 | exec host-logic |
| 4 | domain any |
| 5 | needs streams |
| 6 | # zero-length read and write move nothing and never block; authority and the reader check still apply (ST4.3) |
| 7 | create R W A => OK |
| 8 | write W "" => OK n=0 |
| 9 | read R 0 => OK n=0 |
| 10 | read R 4 => WOULD_BLOCK |
| 11 | write R "" => DENIED |
| 12 | read W 0 => DENIED |
| 13 | close R => OK |
| 14 | write W "" => BROKEN_PIPE |
| 15 | close W => OK |
| 16 | check empty |