wrowe 02/02/11 17:28:17
Modified: file_io/win32 filedup.c
Log:
WinCE doesn't have the concept of 'duplicating' file handles - it lacks
stdfoo handles entirely. From Mladen Turk <[EMAIL PROTECTED]>
Revision Changes Path
1.42 +8 -0 apr/file_io/win32/filedup.c
Index: filedup.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/filedup.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- filedup.c 12 Feb 2002 00:09:10 -0000 1.41
+++ filedup.c 12 Feb 2002 01:28:17 -0000 1.42
@@ -62,6 +62,9 @@
APR_DECLARE(apr_status_t) apr_file_dup(apr_file_t **new_file,
apr_file_t *old_file, apr_pool_t *p)
{
+#ifdef _WIN32_WCE
+ return APR_ENOTIMPL;
+#else
HANDLE hproc = GetCurrentProcess();
HANDLE newhand = NULL;
@@ -83,12 +86,16 @@
apr_pool_cleanup_null);
return APR_SUCCESS;
+#endif /* !defined(_WIN32_WCE) */
}
APR_DECLARE(apr_status_t) apr_file_dup2(apr_file_t *new_file,
apr_file_t *old_file, apr_pool_t *p)
{
+#ifdef _WIN32_WCE
+ return APR_ENOTIMPL;
+#else
DWORD stdhandle = -1;
HANDLE hproc = GetCurrentProcess();
HANDLE newhand = NULL;
@@ -139,5 +146,6 @@
new_file->buffered = FALSE;
return APR_SUCCESS;
+#endif /* !defined(_WIN32_WCE) */
}