forked from Imagelibrary/rtems
Solaris port updates from Chris Johns
This commit is contained in:
@@ -18,6 +18,8 @@ manext = 1
|
||||
mandir = @mandir@/man$(manext)
|
||||
program_prefix = @program_prefix@
|
||||
|
||||
export bindir
|
||||
|
||||
RTEMS_ROOT = @RTEMS_ROOT@
|
||||
PROJECT_ROOT = @PROJECT_ROOT@
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ process(char *arg)
|
||||
if ( buffer[ length ] != '\n' )
|
||||
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
|
||||
|
||||
while ( isspace( buffer[ length ] ) )
|
||||
while ( isspace( (int) buffer[ length ] ) )
|
||||
buffer[ length-- ] = '\0';
|
||||
|
||||
if ( test_only ) {
|
||||
|
||||
@@ -478,7 +478,7 @@ int main(
|
||||
} while ( gets( inbuff ) != NULL );
|
||||
|
||||
|
||||
exit( EXIT_SUCCESS );
|
||||
return ( EXIT_SUCCESS );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ process(char *arg)
|
||||
if ( buffer[ length ] != '\n' )
|
||||
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
|
||||
|
||||
while ( isspace( buffer[ length ] ) )
|
||||
while ( isspace( (int) buffer[ length ] ) )
|
||||
buffer[ length-- ] = '\0';
|
||||
|
||||
if ( test_only ) {
|
||||
|
||||
@@ -478,7 +478,7 @@ int main(
|
||||
} while ( gets( inbuff ) != NULL );
|
||||
|
||||
|
||||
exit( EXIT_SUCCESS );
|
||||
return ( EXIT_SUCCESS );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -142,10 +142,12 @@ 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);
|
||||
}
|
||||
|
||||
chars_written += fprintf(stderr, "\n");
|
||||
|
||||
|
||||
@@ -14,16 +14,6 @@
|
||||
#include <rtems/score/isr.h>
|
||||
#include <rtems/score/interr.h>
|
||||
|
||||
#if defined(solaris2)
|
||||
/*
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 3
|
||||
#undef __STRICT_ANSI__
|
||||
#define __STRICT_ANSI__
|
||||
*/
|
||||
#define __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#define MALLOC_0_RETURNS_NULL
|
||||
#endif
|
||||
|
||||
@@ -45,7 +45,7 @@ CLOBBER_ADDITIONS +=
|
||||
|
||||
$(LIB): ${OBJS}
|
||||
$(make-library)
|
||||
cd $(PROJECT_ROOT) ; \
|
||||
-cd $(PROJECT_ROOT) ; \
|
||||
$(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) \
|
||||
>$(PROJECT_RELEASE)/lib/sizeinfo.txt
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ protected:
|
||||
|
||||
private:
|
||||
const rtemsInterrupt& operator=(const rtemsInterrupt& );
|
||||
Interrupt(const rtemsInterrupt& );
|
||||
rtemsInterrupt(const rtemsInterrupt& );
|
||||
|
||||
// the vector caught
|
||||
rtems_vector_number vector;
|
||||
|
||||
@@ -16,9 +16,6 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/* For solaris 2.4 */
|
||||
#define __EXTENSIONS__
|
||||
|
||||
#include <bsp.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -142,10 +142,12 @@ 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);
|
||||
}
|
||||
|
||||
chars_written += fprintf(stderr, "\n");
|
||||
|
||||
|
||||
@@ -142,10 +142,12 @@ 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);
|
||||
}
|
||||
|
||||
chars_written += fprintf(stderr, "\n");
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsMessageQueue.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsSemaphore.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsTask.h>
|
||||
// include to allow it to be compiled
|
||||
#include <rtems++/rtemsTaskMode.h>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsTimer.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -142,10 +142,12 @@ 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);
|
||||
}
|
||||
|
||||
chars_written += fprintf(stderr, "\n");
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ protected:
|
||||
|
||||
private:
|
||||
const rtemsInterrupt& operator=(const rtemsInterrupt& );
|
||||
Interrupt(const rtemsInterrupt& );
|
||||
rtemsInterrupt(const rtemsInterrupt& );
|
||||
|
||||
// the vector caught
|
||||
rtems_vector_number vector;
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsMessageQueue.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsSemaphore.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsTask.h>
|
||||
// include to allow it to be compiled
|
||||
#include <rtems++/rtemsTaskMode.h>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <rtems++/rtemsTimer.h>
|
||||
|
||||
/* ----
|
||||
|
||||
@@ -38,6 +38,15 @@ $(RECURSE_TARGETS):
|
||||
else
|
||||
ifdef RECURSE_TARGETS
|
||||
$(RECURSE_TARGETS):
|
||||
set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
|
||||
@$(ECHO) ; set -e ; \
|
||||
if [ "$(SUB_DIRS)" != "" ] ; then \
|
||||
sdirs="$(SUB_DIRS)" ; \
|
||||
else \
|
||||
sdirs="xxx" ; \
|
||||
fi ; \
|
||||
if [ "$$sdirs" != "xxx" ] ; then \
|
||||
for subd in $$sdirs; do $(MAKE) -w -C $$subd $@; done ;\
|
||||
fi
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef RTEMS_TEST_IO_STREAM
|
||||
#include <iostream.h>
|
||||
#endif
|
||||
|
||||
@@ -154,6 +154,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(solaris2)
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* To compile this on host using only libm from newlib (and using host libc)
|
||||
* do:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -142,10 +142,12 @@ 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);
|
||||
}
|
||||
|
||||
chars_written += fprintf(stderr, "\n");
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -14,16 +14,6 @@
|
||||
#include <rtems/score/isr.h>
|
||||
#include <rtems/score/interr.h>
|
||||
|
||||
#if defined(solaris2)
|
||||
/*
|
||||
#undef _POSIX_C_SOURCE
|
||||
#define _POSIX_C_SOURCE 3
|
||||
#undef __STRICT_ANSI__
|
||||
#define __STRICT_ANSI__
|
||||
*/
|
||||
#define __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#define MALLOC_0_RETURNS_NULL
|
||||
#endif
|
||||
|
||||
@@ -41,11 +41,21 @@ CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-solaris2.cfg
|
||||
|
||||
# Use the LIBC support for CYGNUS newlib
|
||||
# RTEMS_LIBC_DIR must already be set (by module file)
|
||||
RTEMS_USE_NEWLIB=yes
|
||||
RTEMS_USE_NEWLIB=no
|
||||
|
||||
LIBC_LIBM=-lm
|
||||
|
||||
# Define this to yes if C++ is included in the development environment
|
||||
# This requires that at least the GNU C++ compiler and libg++ be installed.
|
||||
ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
|
||||
HAS_CPLUSPLUS=yes
|
||||
# no standard C++ libs provided by default
|
||||
LIBCC_INCLUDE=$(GNUTOOLS)/include/g++
|
||||
CPLUS_LD_LIBS=-lstdc++
|
||||
CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
|
||||
else
|
||||
HAS_CPLUSPLUS=no
|
||||
endif
|
||||
|
||||
# Define this to yes if this target supports multiprocessor environments.
|
||||
HAS_MP=yes
|
||||
|
||||
@@ -38,6 +38,15 @@ $(RECURSE_TARGETS):
|
||||
else
|
||||
ifdef RECURSE_TARGETS
|
||||
$(RECURSE_TARGETS):
|
||||
set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
|
||||
@$(ECHO) ; set -e ; \
|
||||
if [ "$(SUB_DIRS)" != "" ] ; then \
|
||||
sdirs="$(SUB_DIRS)" ; \
|
||||
else \
|
||||
sdirs="xxx" ; \
|
||||
fi ; \
|
||||
if [ "$$sdirs" != "xxx" ] ; then \
|
||||
for subd in $$sdirs; do $(MAKE) -w -C $$subd $@; done ;\
|
||||
fi
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <rtems.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef RTEMS_TEST_IO_STREAM
|
||||
#include <iostream.h>
|
||||
#endif
|
||||
|
||||
@@ -154,6 +154,10 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(solaris2)
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* To compile this on host using only libm from newlib (and using host libc)
|
||||
* do:
|
||||
|
||||
@@ -197,7 +197,7 @@ process(char *arg)
|
||||
if ( buffer[ length ] != '\n' )
|
||||
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
|
||||
|
||||
while ( isspace( buffer[ length ] ) )
|
||||
while ( isspace( (int) buffer[ length ] ) )
|
||||
buffer[ length-- ] = '\0';
|
||||
|
||||
if ( test_only ) {
|
||||
|
||||
@@ -478,7 +478,7 @@ int main(
|
||||
} while ( gets( inbuff ) != NULL );
|
||||
|
||||
|
||||
exit( EXIT_SUCCESS );
|
||||
return ( EXIT_SUCCESS );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ process(char *arg)
|
||||
if ( buffer[ length ] != '\n' )
|
||||
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
|
||||
|
||||
while ( isspace( buffer[ length ] ) )
|
||||
while ( isspace( (int) buffer[ length ] ) )
|
||||
buffer[ length-- ] = '\0';
|
||||
|
||||
if ( test_only ) {
|
||||
|
||||
@@ -478,7 +478,7 @@ int main(
|
||||
} while ( gets( inbuff ) != NULL );
|
||||
|
||||
|
||||
exit( EXIT_SUCCESS );
|
||||
return ( EXIT_SUCCESS );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user