Skip to content
Myr

shm: foot -> fuzzel

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 9705e64 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:shm.c+3 added-3 removed
411 unmodified lines
412 * *with* it, and if that fails, try again *without* it.413 */414 errno = 0;415 pool_fd = memfd_create(416 "foot-wayland-shm-buffer-pool",416 "fuzzel-wayland-shm-buffer-pool",417 MFD_CLOEXEC | MFD_ALLOW_SEALING | MFD_NOEXEC_SEAL);418419 if (pool_fd < 0 && errno == EINVAL && MFD_NOEXEC_SEAL != 0) {420 pool_fd = memfd_create(421 "foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);421 "fuzzel-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);422 }423424#elif defined(__FreeBSD__)425 // memfd_create on FreeBSD 13 is SHM_ANON without sealing support426 pool_fd = shm_open(SHM_ANON, O_RDWR | O_CLOEXEC, 0600);427#else428 char name[] = "/tmp/foot-wayland-shm-buffer-pool-XXXXXX";428 char name[] = "/tmp/fuzzel-wayland-shm-buffer-pool-XXXXXX";429 pool_fd = mkostemp(name, O_CLOEXEC);430 unlink(name);431#endif432 if (pool_fd == -1) {
617 unmodified lines