This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use __snprintf when available


> >> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]