diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2001-05-31 00:11:12 +0000 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2001-05-31 00:11:12 +0000 |
commit | f99b5e4e4e2a88d049b31eae7fc8f52bfa1e8733 (patch) | |
tree | 7951f2a0dfc1d85a45329b5de55f1af424cd05dd /include | |
parent | 7bde13763285da45dd928e4560c622d45896e411 (diff) | |
download | apr-f99b5e4e4e2a88d049b31eae7fc8f52bfa1e8733.tar.gz |
Add apr_file_open_stdin - which allows the stdin file handle to be
obtained by an APR-based program in a portable fashion. This completes
the stdin/stdout/stderr calls.
This is similar to the apr_file_open_std{out,err} calls.
The Win32 and OS/2 folks will have to verify that I got their respective
implementations right. I don't have access to their compilers to ensure
that it is correct. I blindly coded these up based on the
apr_file_open_std{out,err} implementations.
Submitted by: Aaron Bannert <abannert@ebuilt.com>
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/apr_file_io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/apr_file_io.h b/include/apr_file_io.h index f1646bfcd..bb785b474 100644 --- a/include/apr_file_io.h +++ b/include/apr_file_io.h @@ -204,6 +204,15 @@ APR_DECLARE(apr_status_t) apr_file_open_stdout(apr_file_t **thefile, apr_pool_t *cont); /** + * open standard input as an apr file pointer. + * @param thefile The apr file to use as stdin. + * @param cont The pool to allocate the file out of. + * @deffunc apr_status_t apr_file_open_stdin(apr_file_t **thefile, apr_pool_t *cont) + */ +APR_DECLARE(apr_status_t) apr_file_open_stdin(apr_file_t **thefile, + apr_pool_t *cont); + +/** * Read data from the specified file. * @param thefile The file descriptor to read from. * @param buf The buffer to store the data to. |