Implementation errors in strtol()
Andrey Chernov
ache at nagual.pp.ru
Thu Jan 20 15:54:46 PST 2005
On Fri, Jan 21, 2005 at 12:18:07AM +0100, Matthias Andree wrote:
> > This is just their intehtions explanation, not excuse. If several
> > standards are in contradiction, POSIX vote is final. It may surprise you,
> > but it covers and changes lots of cases comparing to minimalistic C
> > standard. Such additions/changes are specially marked with different color
> > (gray).
>
> I do not have a place of discovery handy, but wasn't POSIX explicitly
> deferring in to the C standard and giving it precedence for any
> conflicts between the C standard library and POSIX?
What really happens is more complex thing. POSIX tries to follow C
standard as close as possible. If POSIX makes an addition not mentioned in
the relatively minimalistic C or SUS standards (because such case even was
not considered there but vital enough to system level), this addition not
contradicts with C standard _directly_ i.e. not opposite it, but from now
two example cases handled equaly by minimalistic standards handled now
differently by POSIX due to additional (non-described previously)
treatement.
--
http://ache.pp.ru/
More information about the freebsd-current
mailing list