memcpy(a, b, sizeof(type)) is sort of a more neutral statement that asserts this code expects that type. I want to validate on type change.
-
-
Also helps avoid creating ABI dependency on internal representations of one side.
-
Makes a lot of sense for sockets or IPC. Not so much in the kernel syscall case where you want the same struct ABI on both sides.
-
That's a place where you do until you don't. Think of 32-bit binaries on 64-bit kernel.
-
Abstracting the marshalling to begin with would have greatly reduced the overall coding effort.
-
You make a valid point. Though Sortix doesn't have 32-bit on 64-bit on purpose (partially for this reason), keeps things a lot simpler.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.