diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-12 01:37:47 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-02-12 01:37:47 +0000 |
commit | 1ac8836b8cfb183a660dd10d65126fd6e2b873e5 (patch) | |
tree | b92755e205ee62ee36c4d2c46993eb5dcd897e76 /file_io/win32 | |
parent | 24c81ee6f8ab88b79f8e53dd50706633862e299e (diff) | |
download | libapr-1ac8836b8cfb183a660dd10d65126fd6e2b873e5.tar.gz |
Another unfortunate shortcoming of WinCE - no pipe support yet.
Submitted by Mladen Turk <mturk@mappingsoft.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32')
-rw-r--r-- | file_io/win32/pipe.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/file_io/win32/pipe.c b/file_io/win32/pipe.c index 6fbbfa7e0..89cf9e579 100644 --- a/file_io/win32/pipe.c +++ b/file_io/win32/pipe.c @@ -56,11 +56,17 @@ #include "apr_file_io.h" #include "apr_general.h" #include "apr_strings.h" +#if APR_HAVE_ERRNO_H #include <errno.h> +#endif #include <string.h> #include <stdio.h> +#if APR_HAVE_SYS_TYPES_H #include <sys/types.h> +#endif +#if APR_HAVE_SYS_STAT_H #include <sys/stat.h> +#endif #include "misc.h" APR_DECLARE(apr_status_t) apr_file_pipe_timeout_set(apr_file_t *thepipe, apr_interval_time_t timeout) @@ -83,6 +89,9 @@ APR_DECLARE(apr_status_t) apr_file_pipe_timeout_get(apr_file_t *thepipe, apr_int APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out, apr_pool_t *p) { +#ifdef _WIN32_WCE + return APR_ENOTIMPL; +#else SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(sa); @@ -122,6 +131,7 @@ APR_DECLARE(apr_status_t) apr_file_pipe_create(apr_file_t **in, apr_file_t **out apr_pool_cleanup_register((*out)->cntxt, (void *)(*out), file_cleanup, apr_pool_cleanup_null); return APR_SUCCESS; +#endif } /* apr_create_nt_pipe() @@ -148,6 +158,9 @@ apr_status_t apr_create_nt_pipe(apr_file_t **in, apr_file_t **out, BOOLEAN bAsyncRead, BOOLEAN bAsyncWrite, apr_pool_t *p) { +#ifdef _WIN32_WCE + return APR_ENOTIMPL; +#else SECURITY_ATTRIBUTES sa; static unsigned long id = 0; DWORD dwPipeMode; @@ -234,4 +247,5 @@ apr_status_t apr_create_nt_pipe(apr_file_t **in, apr_file_t **out, apr_pool_cleanup_register((*out)->cntxt, (void *)(*out), file_cleanup, apr_pool_cleanup_null); return APR_SUCCESS; +#endif /* _WIN32_WCE */ } |