Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 4166 invoked by uid 500); 30 Nov 2001 11:32:49 -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 4155 invoked from network); 30 Nov 2001 11:32:49 -0000 X-Authentication-Warning: rdu163-40-092.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu163-40-092.nc.rr.com To: Stas Bekman Cc: dev@apr.apache.org Subject: Re: missing a method to access file descriptor References: <3C074D93.4020606@stason.org> From: Jeff Trawick Date: 30 Nov 2001 06:32:15 -0500 In-Reply-To: <3C074D93.4020606@stason.org> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stas Bekman writes: > Is it possible to expose something like apr_fileno which will return > its appropriate filehandle/fd? Isn't this what you need? (from apr_portable.h) /** * convert the file from apr type to os specific type. * @param thefile The os specific file we are converting to * @param file The apr file to convert. * @remark On Unix, it is only possible to get a file descriptor from * an apr file type. */ APR_DECLARE(apr_status_t) apr_os_file_get(apr_os_file_t *thefile, apr_file_t *file); -- Jeff Trawick | trawick@attglobal.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...