@jacek Would you please reconsider approving this? Fwiw the use of const here is exactly the same as what has been done so far with shared memory objects. See their declaration in https://gitlab.winehq.org/wine/wine/-/blob/master/server/queue.c?ref_type=he..., https://gitlab.winehq.org/wine/wine/-/blob/master/server/queue.c?ref_type=he..., etc... and the cast to get a writable pointer only where allowed in https://gitlab.winehq.org/wine/wine/-/blob/master/server/file.h?ref_type=hea...
If you don't agree with that, please could you detail exactly why?