Wrong documentation for open()

Schwarz, Konrad konrad.schwarz@siemens.com
Fri Apr 17 15:22:00 GMT 2015

> -----Original Message-----
> From: Richard Earnshaw [mailto:Richard.Earnshaw@foss.arm.com]
> Sent: Donnerstag, 16. April 2015 17:19
> To: Schwarz, Konrad; newlib@sourceware.org
> Subject: Re: Wrong documentation for open()

> > For the ABIs (and K&R C) on which Unix ran at that time, this did not
> > make a difference in practice; code could and still can use the two
> argument version.
> >
> > With ANSI C, it was possible to
> > specify this interface in terms of variable argument lists.
> >
> However, changing this in newlib now would be an ABI change on some
> platforms, since the presence of a variadic function marker may change
> the argument passing rules.  I'm pretty sure that for some platforms
> that newlib supports this could be a blocker (though I can't off-hand
> say which).

The original poster noticed this bug on the MSP430.

More information about the Newlib mailing list