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 2013/06/07 19:05:12 UTC

[Bug 55077] New: httpd.h: allow use of strtoul(2)

https://issues.apache.org/bugzilla/show_bug.cgi?id=55077

            Bug ID: 55077
           Summary: httpd.h: allow use of strtoul(2)
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: arno@debian.org

Created attachment 30406
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30406&action=edit
Allow use of strtoul

On behalf of a user spotting this on Debian, I'm forwarding you bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711534. httpd.h defines in
httpd.h

/** strtoul does not exist on sunos4. */
#ifdef strtoul
#undef strtoul
#endif
#define strtoul strtoul_is_not_a_portable_function_use_strtol_instead


I'm sure that's true for sunos4, but I don't see any harm to let third parties
use strtoul if they wanted to. The statement is exaggerating as well.  strtoul
is defined in POSIX-2001, BSD's stdlib.h, and many more - with the exception of
sunos4 for sure, but that's obsolete for a decade at least.

That said, I have no strong opinion on it. Feel free to keep it, if you feel
like, but I doubt this outweighs breaking any semi-recent C standard.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55077] httpd.h: allow use of strtoul(2)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55077

--- Comment #1 from Stefan Fritsch <sf...@sfritsch.de> ---
trunk commit: r1491155
proposed for 2.4

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55077] httpd.h: allow use of strtoul(2)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55077

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Jeff Trawick <tr...@apache.org> ---
in 2.4.6 release (r1494121)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 55077] httpd.h: allow use of strtoul(2)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55077

Jeff Trawick <tr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org