ASF Bugzilla – Attachment 18522 Details for
Bug 39886
apr_{name}_inherit_[un]set calls unsupp'd SetHandleInfo on WinCE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
WinCE definitions of macros use Win9x comp implementation
apr-bug-39886.patch (text/plain), 2.57 KB, created by
Curt Arnold
on 2006-06-23 16:09:56 UTC
(
hide
)
Description:
WinCE definitions of macros use Win9x comp implementation
Filename:
MIME Type:
Creator:
Curt Arnold
Created:
2006-06-23 16:09:56 UTC
Size:
2.57 KB
patch
obsolete
>Index: include/arch/win32/apr_arch_inherit.h >=================================================================== >--- include/arch/win32/apr_arch_inherit.h (revision 408977) >+++ include/arch/win32/apr_arch_inherit.h (working copy) >@@ -21,9 +21,36 @@ > > #define APR_INHERIT (1 << 24) /* Must not conflict with other bits */ > >+#if defined(_WIN32_WCE) > #define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup) \ > APR_DECLARE(apr_status_t) apr_##name##_inherit_set(apr_##name##_t *the##name) \ > { \ >+ HANDLE temp, hproc = GetCurrentProcess(); \ >+ if (!DuplicateHandle(hproc, the##name->filehand, \ >+ hproc, &temp, 0, TRUE, \ >+ DUPLICATE_SAME_ACCESS)) \ >+ return apr_get_os_error(); \ >+ CloseHandle(the##name->filehand); \ >+ the##name->filehand = temp; \ >+ return APR_SUCCESS; \ >+} >+ >+#define APR_IMPLEMENT_INHERIT_UNSET(name, flag, pool, cleanup) \ >+APR_DECLARE(apr_status_t) apr_##name##_inherit_unset(apr_##name##_t *the##name)\ >+{ \ >+ HANDLE temp, hproc = GetCurrentProcess(); \ >+ if (!DuplicateHandle(hproc, the##name->filehand, \ >+ hproc, &temp, 0, FALSE, \ >+ DUPLICATE_SAME_ACCESS)) \ >+ return apr_get_os_error(); \ >+ CloseHandle(the##name->filehand); \ >+ the##name->filehand = temp; \ >+ return APR_SUCCESS; \ >+} >+#else >+#define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup) \ >+APR_DECLARE(apr_status_t) apr_##name##_inherit_set(apr_##name##_t *the##name) \ >+{ \ > IF_WIN_OS_IS_UNICODE \ > { \ > if (!SetHandleInformation(the##name->filehand, \ >@@ -65,5 +92,6 @@ > } \ > return APR_SUCCESS; \ > } >+#endif > > #endif /* ! INHERIT_H */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39886
: 18522