I'm implementing a PerlIO::APR layer to transparently work with apr_file_t * from Perl. I must implement Perl_fileno() which returns a
file descriptor (int on unix or its alternatives) which can be then fed into fstat(2) on unix or the alt function on other platforms.


Currently APR doesn't expose filedesc struct member, I suppose mostly
due to the fact that not all supported platforms use the same form of
filedesc. I see that os2 and win are different from netware and unix.

Is it possible to expose something like apr_fileno which will return its appropriate filehandle/fd?

Thanks!
_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Reply via email to