You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/06/22 00:09:08 UTC
DO NOT REPLY [Bug 39853] New: - apr_strtoi64 does not build on WinCE due to lack of errno.h
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
Summary: apr_strtoi64 does not build on WinCE due to lack of
errno.h
Product: APR
Version: HEAD
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: APR
AssignedTo: bugs@httpd.apache.org
ReportedBy: carnold@apache.org
The global variable errno, include file errno.h and the macros ERANGE and EINVAL
are not supported on Windows CE. APR has an preprocessor macro APR_HAVE_ERRNO_H
which signals that errno.h is not available, but the implementation of
apr_strtoi64 does not check that macro before attempting to set errno when range
or invalid conditions are detected.
The attached patch places the setting of errno into #if's and also #if's two
tests in test/teststr.c that expect range errors to be signaled through errno.
For background, compare the documentation of strtol in Win32 and WinCE and
notice the WinCE documentation drops any mention of errno.
Windows definition of strtol:
http://msdn2.microsoft.com/en-us/w4z2wdyc.aspx
Windows CE definition of strtol:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceappdev5/html/wce50lrfstrtolcmawcstol.asp
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39853] - apr_strtoi64 does not build on WinCE due to lack of errno.h
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
------- Additional Comments From jorton@redhat.com 2006-06-26 12:31 -------
If WinCE does not have an errno definition then apr_strtoi64() should not be
implemented at all because the API guarantee cannot be met.
The function declaration should be surrounded with #if <FOO> for some macro
which is only defined on non-WinCE.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39853] - apr_strtoi64 does not build on WinCE due to lack of errno.h
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
------- Additional Comments From carnold@apache.org 2006-06-21 22:10 -------
Created an attachment (id=18496)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18496&action=view)
Checks APR_HAS_ERRNO_H before accessing errno
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39853] - apr_strtoi64 does not build on WinCE due to lack of errno.h
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
wrowe@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bugs@httpd.apache.org |bugs@apr.apache.org
------- Additional Comments From wrowe@apache.org 2006-09-19 19:54 -------
Mass reassign the 44 open apr-bugs to apr bug list
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39853] - apr_strtoi64 does not build on WinCE due to lack of errno.h
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
carnold@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #18496|0 |1
is obsolete| |
------- Additional Comments From carnold@apache.org 2006-06-23 15:48 -------
Created an attachment (id=18521)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18521&action=view)
Better fix defining ERANGE and EINVAL in apr_private.h
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 39853] - apr_strtoi64 does not build on WinCE due to lack of errno.h
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39853>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39853
------- Additional Comments From carnold@apache.org 2006-06-24 00:14 -------
Created an attachment (id=18530)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=18530&action=view)
Corresponding patch for unit test in test/teststr.c
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org