On Mon Jun 12 16:37:53 2023 +0000, Alexandros Frantzis wrote:
We need to create a shared memory fd in some way, and [`shm_open`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/shm_open.html) is the standard POSIX way to do this, so, AFAIK, we are safe from a portability perspective. There are better platform-specific mechanism to get anonymous shared memory compared to plain `shm_open` + `shm_unlink` (e.g., `memfd_create` on linux, `shm_open(SHM_ANON)` on FreeBSD), which we can introduce in the future if we want.
I suspect this might be the reason for the MR not being merged. You should perhaps try to do it `NtCreateSection` / `NtMapViewOfSection` / `wine_server_handle_to_fd`, which would make sure that it is portable.