[PATCH] Use __snprintf when available

Steve Ellcey sje@cup.hp.com
Wed Mar 20 12:28:00 GMT 2002


> >> 2- Autoconf issues, which seem to me really of two different kinds:
> >> 
> >>     * Are there any actual systems which make available a C99-conforming
> >>     snprintf but which do not pass the tests for _GLIBCPP_USE_C99 enabled?
> >>     I think Loren in principle is interested in supporting them.
> >
> >I think HP-UX 11.0 (IA64 and PA) fits this situation.
> 
> Hummm. Honestly I disagree.

OK, HP-UX snprintf is not C99 conforming so it does not fit this
catagory, I see that now.  It looks like the patch does the right thing
for HP-UX (using sprintf instead of snprintf) and gets rid of the
annoying strtoll/strtoull calls that started this whole mess so I think
that it is fine for me the way it is and will fix HP-UX.

Once it is checked in I'll submit a patch to get rid of the HP-UX
definitions of strtoll/strtoull in config/os/hpux/bits/os_defines.h
which should no longer be needed.

Steve Ellcey
sje@cup.hp.com



More information about the Libstdc++ mailing list