[PATCH 2/3] Add stdin_init(), stdout_init() and stderr_init()
Sebastian Huber
sebastian.huber@embedded-brains.de
Mon Jun 26 06:24:00 GMT 2017
On 26/06/17 08:15, Sebastian Huber wrote:
> On 23/06/17 16:02, Corinna Vinschen wrote:
>
>>> +static void
>>> +stderr_init(FILE *ptr)
>>> +{
>>> + /* POSIX requires stderr to be opened for reading and writing, even
>>> + when the underlying fd 2 is write-only. */
>>> + std (ptr, __SRW | __SNBF, 2);
>>> +}
>>> . +
>> Perhaps these func should be inline?
>
> Ok, I change them to "static __inline void".
Or simply "static inline void"? Is it time to assume at least a C99
compiler for the Newlib sources?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Newlib
mailing list