A lightweight POSIX shared memory (shm_open, shm_unlink) emulation library for Android/Bionic (Termux).
The Android Bionic libc does not provide shm_open and shm_unlink. This library provides a shim that emulates these calls by using regular files in the directory specified by the TMPDIR environment variable (defaulting to /data/data/com.termux/files/usr/tmp).
makeThis will produce libshmemu.a and libshmemu.so.
make install- Add
-I/path/to/libshmemuto your include flags. - Add
-L/path/to/libshmemu -lshmemuto your linker flags. - Include the header or use
-include shmemu.hin your compiler flags to avoid modifying source code.
INCS += -I./libshmemu
LIBS += -L./libshmemu -lshmemu
CPPFLAGS += -include shmemu.h