#
1.11 |
|
06-Jul-2017 |
joerg |
Fix ISO C compliance: strtol of "0xX" should give the largest valid numeric prefix, which is 0.
|
Revision tags: netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.10 |
|
13-Nov-2015 |
christos |
comment out 0{b,B} handling.
|
#
1.9 |
|
12-Nov-2015 |
christos |
Fix capitalization
|
#
1.8 |
|
12-Nov-2015 |
christos |
Recognize 0[bB] as binary (base 2)
|
Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 rmind-smpnet-nbase riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base tls-maxphys-base
|
#
1.7 |
|
17-May-2013 |
joerg |
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.
|
Revision tags: agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
|
#
1.3 |
|
09-Mar-2012 |
christos |
branches: 1.3.2; Casts and type changes to fix portability issues. - int -> size_t - adjust width of RHS of shift - adjust widths of types
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 yamt-nfs-mp-base11 yamt-nfs-mp-base10 rmind-uvmplock-base yamt-nfs-mp-base9 matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 jym-xensuspend-nbase
|
#
1.2 |
|
20-May-2009 |
christos |
branches: 1.2.6; Set endptr if the base is not supported. The opengroup spec does not special case this condition. Note: glibc has the same problem.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE yamt-nfs-mp-base4 yamt-nfs-mp-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
|
#
1.1 |
|
20-Aug-2008 |
joerg |
branches: 1.1.2; 1.1.8; 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@
|
Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.10 |
|
13-Nov-2015 |
christos |
comment out 0{b,B} handling.
|
#
1.9 |
|
12-Nov-2015 |
christos |
Fix capitalization
|
#
1.8 |
|
12-Nov-2015 |
christos |
Recognize 0[bB] as binary (base 2)
|
Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 rmind-smpnet-nbase riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base rmind-smpnet-base tls-maxphys-base
|
#
1.7 |
|
16-May-2013 |
joerg |
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.
|
Revision tags: agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 yamt-pagecache-base5 yamt-pagecache-base4
|
#
1.3 |
|
09-Mar-2012 |
christos |
branches: 1.3.2; Casts and type changes to fix portability issues. - int -> size_t - adjust width of RHS of shift - adjust widths of types
|
Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 yamt-nfs-mp-base11 yamt-nfs-mp-base10 rmind-uvmplock-base yamt-nfs-mp-base9 matt-premerge-20091211 yamt-nfs-mp-base8 yamt-nfs-mp-base7 jymxensuspend-base yamt-nfs-mp-base6 yamt-nfs-mp-base5 jym-xensuspend-nbase
|
#
1.2 |
|
20-May-2009 |
christos |
branches: 1.2.6; Set endptr if the base is not supported. The opengroup spec does not special case this condition. Note: glibc has the same problem.
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE yamt-nfs-mp-base4 yamt-nfs-mp-base3 netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
|
#
1.1 |
|
19-Aug-2008 |
joerg |
branches: 1.1.2; 1.1.8; 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.7 |
|
17-May-2013 |
joerg |
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 |
|
09-Mar-2012 |
christos |
branches: 1.3.2; Casts and type changes to fix portability issues. - int -> size_t - adjust width of RHS of shift - adjust widths of types
|
#
1.2 |
|
20-May-2009 |
christos |
branches: 1.2.6; Set endptr if the base is not supported. The opengroup spec does not special case this condition. Note: glibc has the same problem.
|
#
1.1 |
|
20-Aug-2008 |
joerg |
branches: 1.1.2; 1.1.8; 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.8.1 |
|
23-Jul-2009 |
jym |
Sync with HEAD.
|
#
1.1.2.2 |
|
17-Sep-2008 |
wrstuden |
Sync with wrstuden-revivesa-base-2.
|
#
1.1.2.1 |
|
20-Aug-2008 |
wrstuden |
file _strtol.h was added on branch wrstuden-revivesa on 2008-09-18 04:54:18 +0000
|
#
1.2.6.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.2.6.1 |
|
16-Apr-2012 |
yamt |
sync with head
|
#
1.3.2.1 |
|
23-Jun-2013 |
tls |
resync from head
|