Open Xe opened 5 years ago
"control descriptor" sounds good to me. I'm not sure about the argument in .control("something")
. I feel like the platform should multiplex key-value requests written to the control descriptor by itself somehow, and the caller shouldn't really be interested in multiple flavors of control descriptors, unless the surface of the control API is huge, and key collisions are possible.
Pseudocode:
log = open("file:///log.txt")
log_ctl = open_ctl(log)
mode = "mode=0600"
write(log_ctl, mode.ptr, mode.len)
A thought:
abi.File
should be expanded to contain the idea of a "sub-descriptor", "control descriptor" or another such term. This "sub-descriptor" would fulfill the place ofioctl
,accept
,stat
and other more complicated syscalls. Programs could read/write any structured data in plain human-readable text or msgpack.This would enable things like the following: