summaryrefslogtreecommitdiff
path: root/include/apr_portable.h
diff options
context:
space:
mode:
authorSander Striker <striker@apache.org>2003-10-26 23:22:16 +0000
committerSander Striker <striker@apache.org>2003-10-26 23:22:16 +0000
commit0e24022387552194678705e05e42182b9c9d7361 (patch)
tree92fc7435b29e4de6a075c30ebef6f61a17fad72a /include/apr_portable.h
parentdc636676c2d7268fe73112f501ccd2dacf81abdf (diff)
downloadapr-0e24022387552194678705e05e42182b9c9d7361.tar.gz
Forward port from APR_0_9_BRANCH:
Add apr_os_pipe_put_ex(), which allows the caller to tell APR to establish a cleanup on the pipe. Submitted by: Jeff Trawick, Brad Nicholes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64695 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_portable.h')
-rw-r--r--include/apr_portable.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/apr_portable.h b/include/apr_portable.h
index 3b7c9c718..ac124a98f 100644
--- a/include/apr_portable.h
+++ b/include/apr_portable.h
@@ -389,6 +389,21 @@ APR_DECLARE(apr_status_t) apr_os_pipe_put(apr_file_t **file,
apr_pool_t *cont);
/**
+ * convert the file from os specific type to apr type.
+ * @param file The apr file we are converting to.
+ * @param thefile The os specific pipe to convert
+ * @param register_cleanup A cleanup will be registered on the apr_file_t
+ * to issue apr_file_close().
+ * @param cont The pool to use if it is needed.
+ * @remark On Unix, it is only possible to put a file descriptor into
+ * an apr file type.
+ */
+APR_DECLARE(apr_status_t) apr_os_pipe_put_ex(apr_file_t **file,
+ apr_os_file_t *thefile,
+ int register_cleanup,
+ apr_pool_t *cont);
+
+/**
* convert the dir from os specific type to apr type.
* @param dir The apr dir we are converting to.
* @param thedir The os specific dir to convert