Subject: | map_descriptor() func |
Date: | Wed, 31 Mar 2010 10:34:22 +1100 |
To: | bug-File-Map [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
As an idea for a feature, you could make a map_descriptor() available to
operate directly on a fileno. It'd be good for inter-operation with
POSIX::open() etc and is of course the underlying syscall (even on
ms-dos?).
I think fcntl(F_GETFL) can fetch the O_RDONLY etc modes to establish a
default $mode. Or alternately start with the mode parameter mandatory
for map_descriptor() and see about a default later.