Skip to content

Add preceding slash to shm_open#324

Merged
madsmtm merged 1 commit into
masterfrom
madsmtm/preceding-slash
Jan 27, 2026
Merged

Add preceding slash to shm_open#324
madsmtm merged 1 commit into
masterfrom
madsmtm/preceding-slash

Conversation

@madsmtm
Copy link
Copy Markdown
Member

@madsmtm madsmtm commented Jan 27, 2026

This should improve portability of using this API, as stated in the man page.

Found this while perusing the code, not actually a bug I've hit myself.

This should improve portability of this API, as stated in the man page:
https://www.man7.org/linux/man-pages/man3/shm_open.3.html
@madsmtm madsmtm added DS - Wayland DS - X11 Xlib / Xcb backend labels Jan 27, 2026
@madsmtm madsmtm merged commit 25ca307 into master Jan 27, 2026
40 checks passed
@madsmtm madsmtm deleted the madsmtm/preceding-slash branch January 27, 2026 18:44
@ids1024
Copy link
Copy Markdown
Member

ids1024 commented Jan 28, 2026

If we wanted to use the Wayland or X11 backends on macOS, it's implementation of shm_open is more restrictive; I think it was also fairly limited in the maximum length of the name. Linux and BSDs seem fairly permissive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DS - Wayland DS - X11 Xlib / Xcb backend

Development

Successfully merging this pull request may close these issues.

3 participants