3 ms·
> extracting it to a tmp file i wonder if there's a way to do this entirely in memory? Because some deployment scenarios might not have disk space at all.
by chii 3y ago
> extracting it to a tmp file
i wonder if there's a way to do this entirely in memory? Because some deployment scenarios might not have disk space at all.
- MobiusHorizons 3y ago/tmp is often a RAM disk in such cases
- xxs 3y agonot with java - it needs a path. Of course if you have a ram disk (e.g. /tmp) it'd do the job.
- rwmj 3y agoTechnically memfd_create will let you create a file descriptor backed by a memory region. However in Linux I don't believe there's a way to dlopen that. (Maybe dlopen /dev/fd/... might work?) In FreeBSD there's a fdlopen library function. Edit: glibc proposal which was never accepted: https://sourceware.org/bugzilla/show_bug.cgi?id=11767 https://sourceware.org/bugzilla/show_bug.cgi?id=11767