52 points by ibobev 4 days ago | 9 comments | View on ycombinator
mrpippy 3 days ago |
jprjr_ 4 days ago |
The technique is also used in Discord RPC Bridge for Wine - allows Wine apps to communicate with Linux Discord - https://github.com/EnderIce2/rpc-bridge
ronsor 4 days ago |
rft 3 days ago |
[1] https://www.winehq.org/pipermail/wine-devel/2008-September/0...
Upstream Wine also supports direct syscalls on x86_64 macOS. macOS syscall numbers have a high bit set, so Windows syscall numbers (0 to ~300) are invalid macOS syscalls, that triggers SIGSYS, and then Wine jumps to the Nt* syscall.