/*
* socketpair() is used in libnio/libnet to create "marker FDs", which are
* only used as destination FD in dup2(). So it is safe to just reserve
* those descriptors here.
*/
sv[0] = Libc::file_descriptor_allocator()->alloc(nullptr, nullptr)->libc_fd;
sv[1] = Libc::file_descriptor_allocator()->alloc(nullptr, nullptr)->libc_fd;
As the removal of the interface will break the build, can this problem be solved in another way? Maybe opening a pseudo file like /dev/null could do the trick?
The code at https://github.com/genodelabs/genode-world/blob/master/src/app/jdk/lib/jvm/dummies.cpp#L102 calls an obsoleted libc-internal interface:
As the removal of the interface will break the build, can this problem be solved in another way? Maybe opening a pseudo file like /dev/null could do the trick?