small patch for unistd.h

Joel Sherrill joel.sherrill@oarcorp.com
Mon Oct 6 13:58:00 GMT 2008


Hi,

RTEMS no longer needs a special case for sync.

2008-10-02  Joel Sherrill <joel.sherrill@oarcorp.com>

    * libc/include/sys/unistd.h: RTEMS now has standard
    sync() prototype.

Thanks.

Index: include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.66
diff -u -r1.66 unistd.h
--- include/sys/unistd.h    23 Apr 2008 11:13:24 -0000    1.66
+++ include/sys/unistd.h    2 Oct 2008 20:02:01 -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