Skip Menu |
Report information
Id: 127725
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: daryl [at]

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: [Feature request] Method to convert a file descriptor to a filehandle
Download (untitled) / with headers
text/plain 592b
Hi! I would appreciate if an IO::Handle class could be created from a file descriptor. From what i saw, the "native-descriptor" method from IO::Handle can do the reverse operation. This last method is handled by nqp, which in turn gets it from moarvm (it is call "fileno_fh" in moar). Most of the work would probably be done in moarvm. This kind of work would help design proper IO::Handles -inherited classes when one only gets a file descriptor as an input. Exemple : IO::Pty would be constructed via the posix_openpt method. This method only returns a file descriptor. Thank you! Azry

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at