summaryrefslogtreecommitdiff
path: root/file_io/os2/pipe.c
diff options
context:
space:
mode:
authordougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-08-02 05:26:45 +0000
committerdougm <dougm@13f79535-47bb-0310-9956-ffa450edef68>2000-08-02 05:26:45 +0000
commit8fcf6e0fadd7ec31d02e7249dc69922b24747c11 (patch)
tree4da0bfd73d36292921960aaabc877a57e680b8c4 /file_io/os2/pipe.c
parent5198c260c1982414023e984799ce1c3b04bb6b43 (diff)
downloadlibapr-8fcf6e0fadd7ec31d02e7249dc69922b24747c11.tar.gz
prefix libapr functions and types with apr_
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/pipe.c')
-rw-r--r--file_io/os2/pipe.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/file_io/os2/pipe.c b/file_io/os2/pipe.c
index 8c4482188..c3b01aa8e 100644
--- a/file_io/os2/pipe.c
+++ b/file_io/os2/pipe.c
@@ -60,7 +60,7 @@
#include <string.h>
#include <process.h>
-ap_status_t ap_create_pipe(ap_file_t **in, ap_file_t **out, ap_pool_t *cont)
+apr_status_t apr_create_pipe(apr_file_t **in, apr_file_t **out, apr_pool_t *cont)
{
ULONG filedes[2];
ULONG rc, action;
@@ -90,7 +90,7 @@ ap_status_t ap_create_pipe(ap_file_t **in, ap_file_t **out, ap_pool_t *cont)
return APR_OS2_STATUS(rc);
}
- (*in) = (ap_file_t *)ap_palloc(cont, sizeof(ap_file_t));
+ (*in) = (apr_file_t *)apr_palloc(cont, sizeof(apr_file_t));
rc = DosCreateEventSem(NULL, &(*in)->pipeSem, DC_SEM_SHARED, FALSE);
if (rc) {
@@ -114,31 +114,31 @@ ap_status_t ap_create_pipe(ap_file_t **in, ap_file_t **out, ap_pool_t *cont)
(*in)->cntxt = cont;
(*in)->filedes = filedes[0];
- (*in)->fname = ap_pstrdup(cont, pipename);
+ (*in)->fname = apr_pstrdup(cont, pipename);
(*in)->isopen = TRUE;
(*in)->buffered = FALSE;
(*in)->flags = 0;
(*in)->pipe = 1;
(*in)->timeout = -1;
- ap_register_cleanup(cont, *in, apr_file_cleanup, ap_null_cleanup);
+ apr_register_cleanup(cont, *in, apr_file_cleanup, apr_null_cleanup);
- (*out) = (ap_file_t *)ap_palloc(cont, sizeof(ap_file_t));
+ (*out) = (apr_file_t *)apr_palloc(cont, sizeof(apr_file_t));
(*out)->cntxt = cont;
(*out)->filedes = filedes[1];
- (*out)->fname = ap_pstrdup(cont, pipename);
+ (*out)->fname = apr_pstrdup(cont, pipename);
(*out)->isopen = TRUE;
(*out)->buffered = FALSE;
(*out)->flags = 0;
(*out)->pipe = 1;
(*out)->timeout = -1;
- ap_register_cleanup(cont, *out, apr_file_cleanup, ap_null_cleanup);
+ apr_register_cleanup(cont, *out, apr_file_cleanup, apr_null_cleanup);
return APR_SUCCESS;
}
-ap_status_t ap_create_namedpipe(const char *filename, ap_fileperms_t perm, ap_pool_t *cont)
+apr_status_t apr_create_namedpipe(const char *filename, apr_fileperms_t perm, apr_pool_t *cont)
{
/* Not yet implemented, interface not suitable */
return APR_ENOTIMPL;
@@ -146,7 +146,7 @@ ap_status_t ap_create_namedpipe(const char *filename, ap_fileperms_t perm, ap_po
-ap_status_t ap_set_pipe_timeout(ap_file_t *thepipe, ap_interval_time_t timeout)
+apr_status_t apr_set_pipe_timeout(apr_file_t *thepipe, apr_interval_time_t timeout)
{
if (thepipe->pipe == 1) {
thepipe->timeout = timeout;