Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 50799 invoked by uid 500); 30 Nov 2001 09:12:43 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 50788 invoked from network); 30 Nov 2001 09:12:42 -0000 Message-ID: <3C074D93.4020606@stason.org> Date: Fri, 30 Nov 2001 17:12:51 +0800 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: dev@apr.apache.org Subject: missing a method to access file descriptor Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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:stas@stason.org http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/