rtems sync() now follows OpenGroup

Joel Sherrill joel.sherrill@oarcorp.com
Thu Oct 16 20:21:00 GMT 2008


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

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985




More information about the Newlib mailing list