History log of /freebsd-head/lib/libc/stdlib/strtoul.c
Revision Date Author Comments
872b698bd4a1bfc0bf008c09228e6fd238809c75 20-Nov-2017 pfg <pfg@FreeBSD.org> General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
00d578928eca75be320b36d37543a7e2a4f9fbdb 27-May-2016 grehan <grehan@FreeBSD.org> Create branch for bhyve graphics import.
eb1a5f8de9f7ea602c373a710f531abbf81141c4 21-Feb-2014 gjb <gjb@FreeBSD.org> Move ^/user/gjb/hacking/release-embedded up one directory, and remove
^/user/gjb/hacking since this is likely to be merged to head/ soon.

Sponsored by: The FreeBSD Foundation
6b01bbf146ab195243a8e7d43bb11f8835c76af8 27-Dec-2013 gjb <gjb@FreeBSD.org> Copy head@r259933 -> user/gjb/hacking/release-embedded for initial
inclusion of (at least) arm builds with the release.

Sponsored by: The FreeBSD Foundation
a027d64fa7a265609b9a03f0d63c3cc12d266f35 13-Jun-2013 emaste <emaste@FreeBSD.org> Renumber clauses to reduce diffs to other versions

NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3,
so follow suit to make comparison easier.
0f6ef690b3118882121ed67561c7ce2660cfebe1 20-Nov-2011 theraven <theraven@FreeBSD.org> Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a
load of _l suffixed versions of various standard library functions that use
the global locale, making them take an explicit locale parameter. Also
adds support for per-thread locales. This work was funded by the FreeBSD
Foundation.

Please test any code you have that uses the C standard locale functions!

Reviewed by: das (gdtoa changes)
Approved by: dim (mentor)
09f9c897d33c41618ada06fbbcf1a9b3812dee53 19-Oct-2010 jamie <jamie@FreeBSD.org> A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.
f1216d1f0ade038907195fc114b7e630623b402c 19-Mar-2010 delphij <delphij@FreeBSD.org> Create a custom branch where I will be able to do the merge.
19b6af98ec71398e77874582eb84ec5310c7156f 22-Nov-2008 dfr <dfr@FreeBSD.org> Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
performance in Xen's HVM mode.
cf5320822f93810742e3d4a1ac8202db8482e633 19-Oct-2008 lulf <lulf@FreeBSD.org> - Import the HEAD csup code which is the basis for the cvsmode work.
cd1f140ae4a14278c07e6788221df20328a3fe56 09-Jan-2007 imp <imp@FreeBSD.org> Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.
5c490b063a95e43c88f035f4c0c4cc083dca396c 21-Jan-2005 ache <ache@FreeBSD.org> Whitespace/style tweaking of prev. commit.

Noted by: bde
b05ac67f5e11d06fc6eefd65556f036998a0a0bb 21-Jan-2005 ache <ache@FreeBSD.org> POSIX says that 0[xX] prefix is _optional_ even in base 16 case, make it
really so.

"If the value of base is 16, the characters 0x or 0X may optionally
precede the sequence of letters and digits, following the sign if
present."

Found by: joerg
cd5ca96599d24e7c9375719e86b16b5d3165e931 06-Sep-2002 tjr <tjr@FreeBSD.org> Style: One space between "restrict" qualifier and "*".
043ed1f5818681c934c1f781e5c12082c79b771c 15-Aug-2002 robert <robert@FreeBSD.org> - Add the 'restrict' qualifier to the function prototypes and
definitions of the functions that convert strings to numbers
and are defined by IEEE Std 1003-1.2001.
- Use ANSI-C function definitions for all of the functions
mentioned above plus strtouq and strtoq.
- Update the prototypes in the manual pages.
d90536e35b89461c5dbefaae4921fd815b80aaf5 22-Mar-2002 obrien <obrien@FreeBSD.org> Fix the style of the SCM ID's.
I believe have made all of libc .c's as consistent as possible.
153ef07a498264ae6f297fd05b89e8111937ec2c 07-Dec-2001 ache <ache@FreeBSD.org> Return 'c' back to signed due to potential comparison problems
Use simpler test for valid ranges

Submitted by: bde
0d916b164851ca6a8393c4d1b379883bafaf854f 02-Dec-2001 ache <ache@FreeBSD.org> Make it works for non ASCII compatible encodings too.
The only assumption left is that 'A'..'Z' 'a'..'z' both are contiguous
0c2addad83d4e772edd16bb6aaea7b585bca9506 29-Nov-2001 ache <ache@FreeBSD.org> Back out national digits support, POSIX explicetely disallows it:

The definition of character class digit requires that only ten characters
-the ones defining digits- can be specified; alternate digits (for
example, Hindi or Kanji) cannot be specified here. However, the encoding
may vary if an implementation supports more than one encoding.

The definition of character class xdigit requires that the characters
included in character class digit are included here also and allows for
different symbols for the hexadecimal digits 10 through 15.
3a5ef923430736453c2e3800277c2558c14e0f25 28-Nov-2001 ache <ache@FreeBSD.org> Don't ever assume that isdigit() is always subset of isxdigit()
b43213c53369955060bcc603a54c0ba11964f27a 28-Nov-2001 fenner <fenner@FreeBSD.org> Base 36 is allowed.
e27de1447ab399e87a8b7045a1b99bc9052326fd 28-Nov-2001 ache <ache@FreeBSD.org> Put back base > 35 check. If someone dislike it, plese discuss it with
standards group first.
950bfdf509d69b5c71a77c19ecb6ea5be2336016 28-Nov-2001 ache <ache@FreeBSD.org> Understand national (non-ASCII) digits now
Allow bases >=36 again
Misc cleanup
a9d341bd9b6bc4808344603ff25f61bb0ae0cab5 04-Sep-2001 ache <ache@FreeBSD.org> Remove rcsids and unneded include
48c9c31dbbf62ba7576da3b6db23db97fa9c1f2b 04-Sep-2001 ache <ache@FreeBSD.org> 'acc' is not initialized in one hypotetical case, fix it
cd61d5ab4817c934f249aeb6e7b6ccf8ee382706 04-Sep-2001 ache <ache@FreeBSD.org> Locale *is* used in strto*l*(), at least for isspace(), so remove
'locale not used' statement from comments and BUGS section of manpage.

strtol(): fix non-portable 'cutoff' calculation using the same method as
in strtoll().

Cleanup 'cutoff' calculation, remove unneded casts. Misc. cleanup to
make all functions looks the same.

Implement EINVAL reaction per POSIX, document it in manpage, corresponding
POSIX example quotes here:

------------------------------------------------
If the subject sequence is empty or does not have the expected form, no
conversion is performed; the value of str is stored in the object pointed
to by endptr, provided that endptr is not a null pointer.

If no conversion could be performed, 0 shall be returned and errno may be
set to [EINVAL].

[EINVAL] The value of base is not supported.

Since 0, {LONG_MIN} or {LLONG_MIN}, and {LONG_MAX} or {LLONG_MAX} are
returned on error and are also valid returns on success, an application
wishing to check for error situations should set errno to 0, then call
strtol( ) or strtoll ( ), then check errno.
-----------------------------------------------------
b42951578188c5aab5c9f8cbcde4a743f8092cdc 02-Apr-2000 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'ALSA'.
0506343883d62f6649f7bbaf1a436133cef6261d 11-Jan-1998 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'jb'.
7c6e96080c4fb49bf912942804477d202a53396c 10-Jan-1998 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'JB'.
c4d4a99d31762beef936f34571330923e9300da9 12-Jul-1996 jkh <jkh@FreeBSD.org> General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
86f1bc4514fdcfd255f37f3218fe234bdc3664fc 05-Nov-1995 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'LINUX'.
0548e292bd978f210f0f235daf02b3ab3d37c85c 01-Aug-1995 ache <ache@FreeBSD.org> Similar changes like in strtol, all this family is VERY broken
in 8bit environment (isalpha at the end of digits)
2e14d9ebc3d3592c67bdf625af9ebe0dfc386653 14-Mar-1995 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'MATT_THOMAS'.
34cd81d75f398ee455e61969b118639dacbfd7a6 23-Sep-1994 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'MACKERRAS'.
e16baf7a5fe7ac1453381d0017ed1dcdeefbc995 07-Aug-1994 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'SUNRPC'.
be22b15ae2ff8d7fe06b6e14fddf0c5b444a95da 27-May-1994 rgrimes <rgrimes@FreeBSD.org> BSD 4.4 Lite Lib Sources