3 ms·
FreeBSD can run linux binaries: https://www.freebsd.org/doc/handbook/linuxemu.html https://www.freebsd.org/doc/handbook/linuxemu.html I wonder though... would
by jacobush 7y ago
FreeBSD can run linux binaries:
https://www.freebsd.org/doc/handbook/linuxemu.html https://www.freebsd.org/doc/handbook/linuxemu.html
I wonder though... wouldn't a safe first way of implementing these new syscalls be to make them actually synchronous?
That way you'd be able to run these Linux binaries but without any of the performance benefits.
- cesarb 7y ago> I wonder though... wouldn't a safe first way of implementing these new syscalls be to make them actually synchronous? No, because it visibly changes the semantics. Consider for instance IORING_OP_ACCEPT; if you make it synchronous, and nothing connects to your program, it would wait forever, instead of returning immediately and allowing the program to continue. The file-related opcodes are safer (when used with actual files, instead of network sockets), but still would behave differently for instance with a hanging NFS mount.
- trasz 7y agoBetter way would be to provide those as native syscalls and then provide Linuxulator wrappers over those.