News for hackers. Stuff that matters.
Re:How to Use the Foreign Function API in Java 22 to Call C ... by rwmj on Thursday May 09, 2024 @07:45AM (#40307193)
Technically 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

There are no comments on this comment yet.