Don't know about XS, but in Perl,
open(my $fh, '<&=', $fd) or die($!);
In reply to Re: How to convert a file descriptor plus access mode bits into a perl filehandle?
by ikegami
in thread How to convert a file descriptor plus access mode bits into a perl filehandle?
by tfoertsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |