# New Ticket Created by  Azry 
# Please include the string:  [perl #127725]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=127725 >


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

Reply via email to