Re:Cooperative Linux – running Linux as a Windows driver (2011)
by john_moscow on Friday July 10, 2020 @04:34PM
(#23796126)
OK, I've found the page [0] outlining the blockers.
It's not a hard task, it's just extremely boring and repetitive, so open-source developers who are driven by fun, rather than tickets and deadlines, won't bother doing it.
[0] https://colinux.fandom.com/wiki/Dashboard_for_developing_a_6...
Re:Cooperative Linux – running Linux as a Windows driver (2011)
by temac on Friday July 10, 2020 @04:51PM
(#23796316)
Oh I see the architecture, it make sense in their case to consider it an important issue depending on the surface area to audit and the amount of work it would take. The architecture of both WSL1 and 2 are different, and neither have this problem I think (maybe punctually in some very limited indirect fashion and easy to handle, but both were developed for 64-bits from the beginning so they obviously did not attempt to share the same struct between both world with bare 'long' in it)
And I suspect it was not even too hard anyway: identify from which universe comes a type, then identify where you need compat, and use an explicit size to setup the typedef, and it's ok. Windows typically uses uppercase defined types like LONG, and Linux does not do that, so it's hard to mix up unintentionally.