summaryrefslogtreecommitdiff
path: root/file_io/os2/pipe.c
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-19 15:24:20 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>1999-10-19 15:24:20 +0000
commita4d5d470cea0abb408ad882772cf19bef5440f37 (patch)
tree03301c7354b3f5788c9c770bc56da817749d2c9b /file_io/os2/pipe.c
parentc2541825563ef05ebb53b6d46ec72542ef6b6c1a (diff)
downloadlibapr-a4d5d470cea0abb408ad882772cf19bef5440f37.tar.gz
OS/2: First take at adding buffered file I/O support. Only reads tested so far.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/pipe.c')
-rw-r--r--file_io/os2/pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file_io/os2/pipe.c b/file_io/os2/pipe.c
index f534076e0..2168cd169 100644
--- a/file_io/os2/pipe.c
+++ b/file_io/os2/pipe.c
@@ -75,6 +75,7 @@ ap_status_t ap_create_pipe(struct file_t **in, struct file_t **out, ap_context_t
(*in)->filedes = filedes[0];
(*in)->fname = ap_pstrdup(cont, "PIPE");
(*in)->isopen = TRUE;
+ (*in)->buffered = FALSE;
ap_register_cleanup(cont, *in, file_cleanup, ap_null_cleanup);
(*out) = (struct file_t *)ap_palloc(cont, sizeof(struct file_t));
@@ -82,6 +83,7 @@ ap_status_t ap_create_pipe(struct file_t **in, struct file_t **out, ap_context_t
(*out)->filedes = filedes[1];
(*out)->fname = ap_pstrdup(cont, "PIPE");
(*out)->isopen = TRUE;
+ (*out)->buffered = FALSE;
ap_register_cleanup(cont, *out, file_cleanup, ap_null_cleanup);
return APR_SUCCESS;