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
