3 ms·
You can easily can sbrk (or mmap) from C directly.
by hossbeast 8y ago
You can easily can sbrk (or mmap) from C directly.
- neokantian 8y agoYes, exactly. You can even do that from any arbitrary scripting engine that supports executing arbitrary C functions. For example, here, complete access to the linux/bsd/osx system call interface, including sbrk, from lua: https://github.com/justincormack/ljsyscall https://github.com/justincormack/ljsyscall Just load libffi (https://sourceware.org/libffi https://sourceware.org/libffi) or a similar module in any arbitrary language, and off you go!