From 1f7cb907d7c9688704b82c7a2ade4d94d43fe220 Mon Sep 17 00:00:00 2001 From: rbb Date: Sat, 27 Jan 2001 17:57:03 +0000 Subject: Add apr_open_stdout. This mirrors apr_open_stderr, except it works on stdout. Submitted by: cmpilato@collab.net git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61134 13f79535-47bb-0310-9956-ffa450edef68 --- file_io/unix/open.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'file_io/unix') diff --git a/file_io/unix/open.c b/file_io/unix/open.c index f766b9b97..99de8a372 100644 --- a/file_io/unix/open.c +++ b/file_io/unix/open.c @@ -254,4 +254,11 @@ apr_status_t apr_open_stderr(apr_file_t **thefile, apr_pool_t *cont) return apr_put_os_file(thefile, &fd, cont); } +apr_status_t apr_open_stdout(apr_file_t **thefile, apr_pool_t *cont) +{ + int fd = STDOUT_FILENO; + + return apr_put_os_file(thefile, &fd, cont); +} + APR_POOL_IMPLEMENT_ACCESSOR_X(file, cntxt); -- cgit v1.2.1