You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Colm MacCarthaigh <co...@stdlib.net> on 2005/09/06 17:42:06 UTC
[PATCH] Buffered std(in|out|err)
APR doesn't seem to currently offer a buffered stdin/stdout/stderr. (Or
am I missing something?)
Unfortunately the lack of a buffered stdin is killing an application I'm
porting to APR (httpd's support/logresolve.c).
The attached patch implements some;
apr_file_open_buffered_std(in|out|err)
functions.
--
Colm MacCárthaigh Public Key: colm+pgp@stdlib.net
Re: [PATCH] Buffered std(in|out|err)
Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Tue, Sep 06, 2005 at 04:42:06PM +0100, Colm MacCarthaigh wrote:
> The attached patch implements some;
>
> apr_file_open_buffered_std(in|out|err)
I'm also working on making buffer sizes configurable at run-time, which
will also solve this problem. Back soon ;)
--
Colm MacCárthaigh Public Key: colm+pgp@stdlib.net
Re: [PATCH] Buffered std(in|out|err)
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Sep 06, 2005 at 04:42:06PM +0100, Colm MacCarthaigh wrote:
>
> APR doesn't seem to currently offer a buffered stdin/stdout/stderr. (Or
> am I missing something?)
>
> Unfortunately the lack of a buffered stdin is killing an application I'm
> porting to APR (httpd's support/logresolve.c).
>
> The attached patch implements some;
>
> apr_file_open_buffered_std(in|out|err)
This is limited in that it allows setting APR_BUFFERED but not
APR_BUFFERED|APR_XTHREAD (which is the combination which would really
match stdio behaviour); perhaps it would make sense to just have a
variant which takes a flags parameter instead?
Regards,
joe