diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/include/rtems++/rtemsInterrupt.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/unix/posix/timer/timer.c | 3 | ||||
-rw-r--r-- | c/src/lib/libc/__gettod.c | 2 | ||||
-rw-r--r-- | c/src/lib/libc/error.c | 12 | ||||
-rw-r--r-- | c/src/lib/libmisc/error/error.c | 12 | ||||
-rw-r--r-- | c/src/lib/libmisc/monitor/mon-symbols.c | 12 | ||||
-rw-r--r-- | c/src/lib/librtems++/rtemsMessageQueue.cc | 1 | ||||
-rw-r--r-- | c/src/lib/librtems++/rtemsSemaphore.cc | 1 | ||||
-rw-r--r-- | c/src/lib/librtems++/rtemsTask.cc | 1 | ||||
-rw-r--r-- | c/src/lib/librtems++/rtemsTimer.cc | 1 | ||||
-rw-r--r-- | c/src/libmisc/error/error.c | 12 | ||||
-rw-r--r-- | c/src/libmisc/monitor/mon-symbols.c | 12 | ||||
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsInterrupt.h | 2 | ||||
-rw-r--r-- | c/src/librtems++/src/rtemsMessageQueue.cc | 1 | ||||
-rw-r--r-- | c/src/librtems++/src/rtemsSemaphore.cc | 1 | ||||
-rw-r--r-- | c/src/librtems++/src/rtemsTask.cc | 1 | ||||
-rw-r--r-- | c/src/librtems++/src/rtemsTimer.cc | 1 |
17 files changed, 44 insertions, 33 deletions
diff --git a/c/src/lib/include/rtems++/rtemsInterrupt.h b/c/src/lib/include/rtems++/rtemsInterrupt.h index 0dc6a20d5e..f722eb7683 100644 --- a/c/src/lib/include/rtems++/rtemsInterrupt.h +++ b/c/src/lib/include/rtems++/rtemsInterrupt.h @@ -71,7 +71,7 @@ protected: private: const rtemsInterrupt& operator=(const rtemsInterrupt& ); - Interrupt(const rtemsInterrupt& ); + rtemsInterrupt(const rtemsInterrupt& ); // the vector caught rtems_vector_number vector; diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c index 6056ddaef8..dca88174b0 100644 --- a/c/src/lib/libbsp/unix/posix/timer/timer.c +++ b/c/src/lib/libbsp/unix/posix/timer/timer.c @@ -16,9 +16,6 @@ * $Id$ */ -/* For solaris 2.4 */ -#define __EXTENSIONS__ - #include <bsp.h> #include <time.h> #include <sys/time.h> diff --git a/c/src/lib/libc/__gettod.c b/c/src/lib/libc/__gettod.c index b3f091a1b3..cbec1455be 100644 --- a/c/src/lib/libc/__gettod.c +++ b/c/src/lib/libc/__gettod.c @@ -20,8 +20,8 @@ #include <sys/reent.h> #endif -#include <time.h> #include <sys/time.h> +#include <time.h> #include <errno.h> #include <assert.h> diff --git a/c/src/lib/libc/error.c b/c/src/lib/libc/error.c index 5bd481c3e6..ab4693609e 100644 --- a/c/src/lib/libc/error.c +++ b/c/src/lib/libc/error.c @@ -142,11 +142,13 @@ static int rtems_verror( chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) - if ((local_errno > 0) && *strerror(local_errno)) - chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); - else - chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); - + { + if ((local_errno > 0) && *strerror(local_errno)) + chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); + else + chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); + } + chars_written += fprintf(stderr, "\n"); (void) fflush(stderr); diff --git a/c/src/lib/libmisc/error/error.c b/c/src/lib/libmisc/error/error.c index 5bd481c3e6..ab4693609e 100644 --- a/c/src/lib/libmisc/error/error.c +++ b/c/src/lib/libmisc/error/error.c @@ -142,11 +142,13 @@ static int rtems_verror( chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) - if ((local_errno > 0) && *strerror(local_errno)) - chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); - else - chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); - + { + if ((local_errno > 0) && *strerror(local_errno)) + chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); + else + chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); + } + chars_written += fprintf(stderr, "\n"); (void) fflush(stderr); diff --git a/c/src/lib/libmisc/monitor/mon-symbols.c b/c/src/lib/libmisc/monitor/mon-symbols.c index 64a05dee9b..1fed3c47f7 100644 --- a/c/src/lib/libmisc/monitor/mon-symbols.c +++ b/c/src/lib/libmisc/monitor/mon-symbols.c @@ -11,17 +11,17 @@ * $Id$ */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ -#include <rtems.h> -#include <stdio.h> -#include <stdlib.h> - -/* for strcasecmp in linux */ +/* for strcasecmp in linux and solaris */ #if defined(linux) #define __USE_BSD #endif #include <string.h> +#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +#include <rtems.h> +#include <stdio.h> +#include <stdlib.h> + #include <rtems/monitor.h> #include <rtems/symbols.h> diff --git a/c/src/lib/librtems++/rtemsMessageQueue.cc b/c/src/lib/librtems++/rtemsMessageQueue.cc index 1978e1c6ec..c3183dc2b0 100644 --- a/c/src/lib/librtems++/rtemsMessageQueue.cc +++ b/c/src/lib/librtems++/rtemsMessageQueue.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsMessageQueue.h> /* ---- diff --git a/c/src/lib/librtems++/rtemsSemaphore.cc b/c/src/lib/librtems++/rtemsSemaphore.cc index 1e0d3de472..5821612618 100644 --- a/c/src/lib/librtems++/rtemsSemaphore.cc +++ b/c/src/lib/librtems++/rtemsSemaphore.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsSemaphore.h> /* ---- diff --git a/c/src/lib/librtems++/rtemsTask.cc b/c/src/lib/librtems++/rtemsTask.cc index d90c8f669f..619f7d4071 100644 --- a/c/src/lib/librtems++/rtemsTask.cc +++ b/c/src/lib/librtems++/rtemsTask.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsTask.h> // include to allow it to be compiled #include <rtems++/rtemsTaskMode.h> diff --git a/c/src/lib/librtems++/rtemsTimer.cc b/c/src/lib/librtems++/rtemsTimer.cc index b87ffd5e80..835bfd74ce 100644 --- a/c/src/lib/librtems++/rtemsTimer.cc +++ b/c/src/lib/librtems++/rtemsTimer.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsTimer.h> /* ---- diff --git a/c/src/libmisc/error/error.c b/c/src/libmisc/error/error.c index 5bd481c3e6..ab4693609e 100644 --- a/c/src/libmisc/error/error.c +++ b/c/src/libmisc/error/error.c @@ -142,11 +142,13 @@ static int rtems_verror( chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) - if ((local_errno > 0) && *strerror(local_errno)) - chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); - else - chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); - + { + if ((local_errno > 0) && *strerror(local_errno)) + chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); + else + chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); + } + chars_written += fprintf(stderr, "\n"); (void) fflush(stderr); diff --git a/c/src/libmisc/monitor/mon-symbols.c b/c/src/libmisc/monitor/mon-symbols.c index 64a05dee9b..1fed3c47f7 100644 --- a/c/src/libmisc/monitor/mon-symbols.c +++ b/c/src/libmisc/monitor/mon-symbols.c @@ -11,17 +11,17 @@ * $Id$ */ -#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ -#include <rtems.h> -#include <stdio.h> -#include <stdlib.h> - -/* for strcasecmp in linux */ +/* for strcasecmp in linux and solaris */ #if defined(linux) #define __USE_BSD #endif #include <string.h> +#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ +#include <rtems.h> +#include <stdio.h> +#include <stdlib.h> + #include <rtems/monitor.h> #include <rtems/symbols.h> diff --git a/c/src/librtems++/include/rtems++/rtemsInterrupt.h b/c/src/librtems++/include/rtems++/rtemsInterrupt.h index 0dc6a20d5e..f722eb7683 100644 --- a/c/src/librtems++/include/rtems++/rtemsInterrupt.h +++ b/c/src/librtems++/include/rtems++/rtemsInterrupt.h @@ -71,7 +71,7 @@ protected: private: const rtemsInterrupt& operator=(const rtemsInterrupt& ); - Interrupt(const rtemsInterrupt& ); + rtemsInterrupt(const rtemsInterrupt& ); // the vector caught rtems_vector_number vector; diff --git a/c/src/librtems++/src/rtemsMessageQueue.cc b/c/src/librtems++/src/rtemsMessageQueue.cc index 1978e1c6ec..c3183dc2b0 100644 --- a/c/src/librtems++/src/rtemsMessageQueue.cc +++ b/c/src/librtems++/src/rtemsMessageQueue.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsMessageQueue.h> /* ---- diff --git a/c/src/librtems++/src/rtemsSemaphore.cc b/c/src/librtems++/src/rtemsSemaphore.cc index 1e0d3de472..5821612618 100644 --- a/c/src/librtems++/src/rtemsSemaphore.cc +++ b/c/src/librtems++/src/rtemsSemaphore.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsSemaphore.h> /* ---- diff --git a/c/src/librtems++/src/rtemsTask.cc b/c/src/librtems++/src/rtemsTask.cc index d90c8f669f..619f7d4071 100644 --- a/c/src/librtems++/src/rtemsTask.cc +++ b/c/src/librtems++/src/rtemsTask.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsTask.h> // include to allow it to be compiled #include <rtems++/rtemsTaskMode.h> diff --git a/c/src/librtems++/src/rtemsTimer.cc b/c/src/librtems++/src/rtemsTimer.cc index b87ffd5e80..835bfd74ce 100644 --- a/c/src/librtems++/src/rtemsTimer.cc +++ b/c/src/librtems++/src/rtemsTimer.cc @@ -18,6 +18,7 @@ ------------------------------------------------------------------------ */ +#include <string.h> #include <rtems++/rtemsTimer.h> /* ---- |