Home | History | Annotate | Download | only in stdlib
History log of /src/common/lib/libc/stdlib/_strtoul.h
RevisionDateAuthorComments
 1.11  06-Jul-2017  joerg branches: 1.11.6;
Fix ISO C compliance: strtol of "0xX" should give the largest valid
numeric prefix, which is 0.
 1.10  05-Nov-2016  riastradh branches: 1.10.6;
Set *endptr in all paths out of strtoul and family.

XXX pullup-6
XXX pullup-7
 1.9  13-Nov-2015  christos branches: 1.9.2;
comment out 0{b,B} handling.
 1.8  12-Nov-2015  christos Recognize 0[bB] as binary (base 2)
 1.7  17-May-2013  joerg branches: 1.7.6; 1.7.8; 1.7.10;
Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
 1.6  26-Apr-2013  joerg Restore standalone strtol/strtoul for citrus for now.
 1.5  16-Apr-2013  joerg Add strtol_l and friends. Switch _citrus_bcs_strtol to use plain
strtol_l unless in tools mode. Add note to retire the BCS code on the
next libc major bump.
 1.4  16-Apr-2013  joerg Do not use isalpha here, since we explicitly only support the Portable
Character Set as base and in theory a locale could define a ASCII
control character as letter, resulting in negations. Also avoid isdigit
here to give the compiler a better chance of deciding whether an
unsigned compare or a jump table is a better option, both are very
likely better choices than the memory indirection.
 1.3  22-Mar-2012  christos branches: 1.3.2;
bring the casts to the operands, not the operation results.
 1.2  09-Mar-2012  christos Casts and type changes to fix portability issues.
- int -> size_t
- adjust width of RHS of shift
- adjust widths of types
 1.1  20-Aug-2008  joerg branches: 1.1.2; 1.1.4; 1.1.22; 1.1.26; 1.1.30;
Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
version for signed and one version for unsigned data types.

Add a check for supported bases and set errno (userland) or panic
(kernel, libsa) otherwise.

Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore
versions as strong alias.

Obtained from DragonFly, based on the wide char version from Citrus.
Reviewed by christos@
 1.1.30.1  11-Jul-2017  snj Pull up following revision(s) (requested by riastradh in ticket #1421):
common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
 1.1.26.1  11-Jul-2017  snj Pull up following revision(s) (requested by riastradh in ticket #1421):
common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
 1.1.22.2  26-Aug-2017  snj Pull up following revision(s) (requested by joerg in ticket #1460):
common/lib/libc/stdlib/_strtol.h: 1.11 via patch
common/lib/libc/stdlib/_strtoul.h: 1.11 via patch
tests/lib/libc/stdlib/t_strtol.c: 1.6-1.7
Fix testing of returned entptr, and fix three affected tests.
From kamil@ via PR lib/49632
--
Fix ISO C compliance: strtol of "0xX" should give the largest valid
numeric prefix, which is 0.
 1.1.22.1  11-Jul-2017  snj Pull up following revision(s) (requested by riastradh in ticket #1421):
common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
 1.1.4.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.4.1  17-Apr-2012  yamt sync with head
 1.1.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.2.1  20-Aug-2008  wrstuden file _strtoul.h was added on branch wrstuden-revivesa on 2008-09-18 04:54:18 +0000
 1.3.2.1  23-Jun-2013  tls resync from head
 1.7.10.1  18-Jan-2017  skrll Sync with netbsd-5
 1.7.8.1  20-Dec-2016  snj Pull up following revision(s) (requested by riastradh in ticket #1310):
common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
 1.7.6.2  17-Nov-2017  snj Pull up following revision(s) (requested by joerg in ticket #1448):
common/lib/libc/stdlib/_strtol.h: revision 1.11
common/lib/libc/stdlib/_strtoul.h: revision 1.11
tests/lib/libc/stdlib/t_strtol.c: revision 1.7
Fix ISO C compliance: strtol of "0xX" should give the largest valid
numeric prefix, which is 0.
 1.7.6.1  18-Dec-2016  snj Pull up following revision(s) (requested by riastradh in ticket #1310):
common/lib/libc/stdlib/_strtoul.h: revision 1.10
Set *endptr in all paths out of strtoul and family.
XXX pullup-6
XXX pullup-7
 1.9.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.10.6.1  10-Jul-2017  martin Pull up following revision(s) (requested by joerg in ticket #112):
common/lib/libc/stdlib/_strtol.h: revision 1.11
common/lib/libc/stdlib/_strtoul.h: revision 1.11
tests/lib/libc/stdlib/t_strtol.c: revision 1.7
Fix ISO C compliance: strtol of "0xX" should give the largest valid
numeric prefix, which is 0.
 1.11.6.2  21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.11.6.1  21-Apr-2020  martin Sync with HEAD

RSS XML Feed