[rtems commit] Avoid Newlib-specific _EXFUN()

Sebastian Huber sebh at rtems.org
Mon Jan 29 12:54:12 UTC 2018


Module:    rtems
Branch:    master
Commit:    865b30279a5658837dc1c5ad9680bcf51d9cc9dc
Changeset: http://git.rtems.org/rtems/commit/?id=865b30279a5658837dc1c5ad9680bcf51d9cc9dc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan 29 13:53:13 2018 +0100

Avoid Newlib-specific _EXFUN()

---

 c/src/lib/libbsp/arm/gdbarmsim/startup/syscalls.c | 2 +-
 testsuites/psxtests/psxhdrs/unistd/ualarm.c       | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/arm/gdbarmsim/startup/syscalls.c b/c/src/lib/libbsp/arm/gdbarmsim/startup/syscalls.c
index a787bac..2e761dd 100644
--- a/c/src/lib/libbsp/arm/gdbarmsim/startup/syscalls.c
+++ b/c/src/lib/libbsp/arm/gdbarmsim/startup/syscalls.c
@@ -69,7 +69,7 @@ register char * stack_ptr __asm__ ("sp");
 
 
 /* following is copied from libc/stdio/local.h to check std streams */
-extern void   _EXFUN(__sinit,(struct _reent *));
+extern void __sinit(struct _reent *);
 #define CHECK_INIT(ptr) \
   do						\
     {						\
diff --git a/testsuites/psxtests/psxhdrs/unistd/ualarm.c b/testsuites/psxtests/psxhdrs/unistd/ualarm.c
index bec71d0..a489671 100644
--- a/testsuites/psxtests/psxhdrs/unistd/ualarm.c
+++ b/testsuites/psxtests/psxhdrs/unistd/ualarm.c
@@ -14,12 +14,8 @@
 #include "config.h"
 #endif
 
-#include <signal.h>
+#include <unistd.h>
 
-/* FIXME: POSIX.1-2001 marks ualarm() as obsolete.
- * POSIX.1-2008 removes the specification of ualarm(). */
-
-useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
 int test( void );
 
 int test( void )



More information about the vc mailing list