[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [resend] APR question (using stdin/stdout)

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-08-09 14:42:56 CEST

On Tue, Aug 08, 2000 at 09:50:33PM -0500, Karl Fogel wrote:
> [resend]
>
> Greg, I've got a stupid question for you:
>
> How do I get an (apr_file_t *) that reads from stdin? And one writing
> to stdout?

Check out apr_put_os_file() in apr_portable.h

> Or am I in a state of sin if I want to do that?

Yes, but you can be redeemed with three hours for Barney videos for penance.

:-)

The theory behind apr_portable.h is that programs that use APR may need to
communicate with third party libraries or OS facilities (not covered by
APR). Those functions provide the internals necessary to get some of the key
items out of APR structures. Definitely to be used with care, and to be
considered a "lifeline" when other possibilites can't be used.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:06 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.