This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/5611: (Unsigned) long long I/O unsupported on FreeBSD 3.4
- From: Nathan Myers <ncm-nospam at cantrip dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 6 Feb 2002 23:01:29 +0000
- Subject: Re: libstdc++/5611: (Unsigned) long long I/O unsupported on FreeBSD 3.4
- References: <20020206142959.16112.qmail@sources.redhat.com> <200202061630.g16GUX319571@latour.rsch.comm.mot.com>
On Wed, Feb 06, 2002 at 10:30:33AM -0600, Loren James Rittle wrote:
> >> Synopsis: (Unsigned) long long I/O unsupported on FreeBSD 3.4
>
> > _GLIBCPP_USE_LONG_LONG is left undefined because the system C library
> > does not support strtoll and strtoull, and therefore I/O for (unsigned)
> > long long values is unsupported by libstdc++.
>
> > Port the string->integer conversion routines from glibc to be used when
> > the C library does not support strtoll/strtoull.
> > I'd be willing to help if this is deemed the right way to go.
Yes, eliminating the dependency on strtoll, strtoull, strtol and strtoul
would be great. They have been, collectively, a fertile source of bugs.
(Unfortunately we can't avoid strtod and strtold, in general.)
Nathan Myers
ncm at cantrip dot org