rtems sync() now follows OpenGroup

Jeff Johnston jjohnstn@redhat.com
Mon Nov 3 13:22:00 GMT 2008


Joel Sherrill wrote:
> Hi,
>
> Another small patch.  RTEMS sync() now follows Open
> Group.  If you spot other cases where RTEMS has a
> special path in an include to be non-standard,
> please point it out.  We will correct it.
>
> 2008-10-15  Joel Sherrill <joel.sherrill@oarcorp.com>
>
>    * libc/include/sys/unistd.h: RTEMS follows standard for sync().
>
>
> Index: libc/include/sys/unistd.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
> retrieving revision 1.67
> diff -u -r1.67 unistd.h
> --- libc/include/sys/unistd.h    15 Oct 2008 21:37:54 -0000    1.67
> +++ libc/include/sys/unistd.h    15 Oct 2008 22:33:33 -0000
> @@ -229,10 +229,8 @@
> char *    _EXFUN(mktemp, (char *));
> #endif
>
> -#if defined(__CYGWIN__) || defined(__SPU__)
> +#if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
> void    _EXFUN(sync, (void));
> -#elif defined(__rtems__)
> -int     _EXFUN(sync, (void));
> #endif
>
> ssize_t _EXFUN(readlink, (const char *__path, char *__buf, size_t 
> __buflen));
>
Patch checked in.

-- Jeff J.



More information about the Newlib mailing list