summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-05-31 00:11:12 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-05-31 00:11:12 +0000
commit7af6dec54f6c0f2ad7bbecdacb2a746ae34a38be (patch)
tree7951f2a0dfc1d85a45329b5de55f1af424cd05dd /include
parenta8b48bf7d86077fdfa14188a599e2aee71743206 (diff)
downloadlibapr-7af6dec54f6c0f2ad7bbecdacb2a746ae34a38be.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: http://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.h9
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.