Changeset 2936b425 in rtems


Ignore:
Timestamp:
Jan 23, 1998, 5:45:05 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2ece4496
Parents:
48971e5e
Message:

Solaris port updates from Chris Johns

Files:
41 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r48971e5e r2936b425  
    1818mandir = @mandir@/man$(manext)
    1919program_prefix = @program_prefix@
     20
     21export bindir
    2022
    2123RTEMS_ROOT = @RTEMS_ROOT@
  • c/build-tools/eolstrip.c

    r48971e5e r2936b425  
    198198      error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
    199199
    200     while ( isspace( buffer[ length ] ) )
     200    while ( isspace( (int) buffer[ length ] ) )
    201201      buffer[ length-- ] = '\0';
    202202
  • c/build-tools/packhex.c

    r48971e5e r2936b425  
    479479
    480480
    481     exit( EXIT_SUCCESS );
     481    return ( EXIT_SUCCESS );
    482482
    483483}
  • c/build-tools/src/eolstrip.c

    r48971e5e r2936b425  
    198198      error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
    199199
    200     while ( isspace( buffer[ length ] ) )
     200    while ( isspace( (int) buffer[ length ] ) )
    201201      buffer[ length-- ] = '\0';
    202202
  • c/build-tools/src/packhex.c

    r48971e5e r2936b425  
    479479
    480480
    481     exit( EXIT_SUCCESS );
     481    return ( EXIT_SUCCESS );
    482482
    483483}
  • c/src/exec/libcsupport/src/__gettod.c

    r48971e5e r2936b425  
    2121#endif
    2222
     23#include <sys/time.h>
    2324#include <time.h>
    24 #include <sys/time.h>
    2525
    2626#include <errno.h>
  • c/src/exec/libcsupport/src/error.c

    r48971e5e r2936b425  
    143143
    144144    if (local_errno)
    145         if ((local_errno > 0) && *strerror(local_errno))
    146             chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    147         else
    148             chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    149 
     145    {
     146      if ((local_errno > 0) && *strerror(local_errno))
     147        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
     148      else
     149        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
     150    }
     151   
    150152    chars_written += fprintf(stderr, "\n");
    151153
  • c/src/exec/score/cpu/unix/cpu.c

    r48971e5e r2936b425  
    1414#include <rtems/score/isr.h>
    1515#include <rtems/score/interr.h>
    16 
    17 #if defined(solaris2)
    18 /*
    19 #undef  _POSIX_C_SOURCE
    20 #define _POSIX_C_SOURCE 3
    21 #undef  __STRICT_ANSI__
    22 #define __STRICT_ANSI__
    23 */
    24 #define __EXTENSIONS__
    25 #endif
    2616
    2717#if defined(__linux__)
  • c/src/exec/wrapup/rtems/Makefile.in

    r48971e5e r2936b425  
    4646$(LIB): ${OBJS}
    4747        $(make-library)
    48         cd $(PROJECT_ROOT) ; \
     48        -cd $(PROJECT_ROOT) ; \
    4949            $(PROJECT_RELEASE)/bin/size_rtems $(RTEMS_BSP) \
    5050                >$(PROJECT_RELEASE)/lib/sizeinfo.txt
  • c/src/lib/include/rtems++/rtemsInterrupt.h

    r48971e5e r2936b425  
    7272private:   
    7373  const rtemsInterrupt& operator=(const rtemsInterrupt& );
    74   Interrupt(const rtemsInterrupt& );
     74  rtemsInterrupt(const rtemsInterrupt& );
    7575 
    7676  // the vector caught
  • c/src/lib/libbsp/unix/posix/timer/timer.c

    r48971e5e r2936b425  
    1616 *  $Id$
    1717 */
    18 
    19 /* For solaris 2.4 */
    20 #define __EXTENSIONS__
    2118
    2219#include <bsp.h>
  • c/src/lib/libc/__gettod.c

    r48971e5e r2936b425  
    2121#endif
    2222
     23#include <sys/time.h>
    2324#include <time.h>
    24 #include <sys/time.h>
    2525
    2626#include <errno.h>
  • c/src/lib/libc/error.c

    r48971e5e r2936b425  
    143143
    144144    if (local_errno)
    145         if ((local_errno > 0) && *strerror(local_errno))
    146             chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    147         else
    148             chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    149 
     145    {
     146      if ((local_errno > 0) && *strerror(local_errno))
     147        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
     148      else
     149        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
     150    }
     151   
    150152    chars_written += fprintf(stderr, "\n");
    151153
  • c/src/lib/libmisc/error/error.c

    r48971e5e r2936b425  
    143143
    144144    if (local_errno)
    145         if ((local_errno > 0) && *strerror(local_errno))
    146             chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    147         else
    148             chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    149 
     145    {
     146      if ((local_errno > 0) && *strerror(local_errno))
     147        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
     148      else
     149        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
     150    }
     151   
    150152    chars_written += fprintf(stderr, "\n");
    151153
  • c/src/lib/libmisc/monitor/mon-symbols.c

    r48971e5e r2936b425  
    1212 */
    1313
     14/* for strcasecmp in linux and solaris */
     15#if defined(linux)
     16#define __USE_BSD
     17#endif
     18#include <string.h>
     19
    1420#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1521#include <rtems.h>
    1622#include <stdio.h>
    1723#include <stdlib.h>
    18 
    19 /* for strcasecmp in linux */
    20 #if defined(linux)
    21 #define __USE_BSD
    22 #endif
    23 #include <string.h>
    2424
    2525#include <rtems/monitor.h>
  • c/src/lib/librtems++/rtemsMessageQueue.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsMessageQueue.h>
    2223
  • c/src/lib/librtems++/rtemsSemaphore.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsSemaphore.h>
    2223
  • c/src/lib/librtems++/rtemsTask.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsTask.h>
    2223// include to allow it to be compiled
  • c/src/lib/librtems++/rtemsTimer.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsTimer.h>
    2223
  • c/src/libmisc/error/error.c

    r48971e5e r2936b425  
    143143
    144144    if (local_errno)
    145         if ((local_errno > 0) && *strerror(local_errno))
    146             chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    147         else
    148             chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    149 
     145    {
     146      if ((local_errno > 0) && *strerror(local_errno))
     147        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
     148      else
     149        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
     150    }
     151   
    150152    chars_written += fprintf(stderr, "\n");
    151153
  • c/src/libmisc/monitor/mon-symbols.c

    r48971e5e r2936b425  
    1212 */
    1313
     14/* for strcasecmp in linux and solaris */
     15#if defined(linux)
     16#define __USE_BSD
     17#endif
     18#include <string.h>
     19
    1420#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1521#include <rtems.h>
    1622#include <stdio.h>
    1723#include <stdlib.h>
    18 
    19 /* for strcasecmp in linux */
    20 #if defined(linux)
    21 #define __USE_BSD
    22 #endif
    23 #include <string.h>
    2424
    2525#include <rtems/monitor.h>
  • c/src/librtems++/include/rtems++/rtemsInterrupt.h

    r48971e5e r2936b425  
    7272private:   
    7373  const rtemsInterrupt& operator=(const rtemsInterrupt& );
    74   Interrupt(const rtemsInterrupt& );
     74  rtemsInterrupt(const rtemsInterrupt& );
    7575 
    7676  // the vector caught
  • c/src/librtems++/src/rtemsMessageQueue.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsMessageQueue.h>
    2223
  • c/src/librtems++/src/rtemsSemaphore.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsSemaphore.h>
    2223
  • c/src/librtems++/src/rtemsTask.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsTask.h>
    2223// include to allow it to be compiled
  • c/src/librtems++/src/rtemsTimer.cc

    r48971e5e r2936b425  
    1919*/
    2020
     21#include <string.h>
    2122#include <rtems++/rtemsTimer.h>
    2223
  • c/src/make/directory.cfg

    r48971e5e r2936b425  
    3939ifdef RECURSE_TARGETS
    4040$(RECURSE_TARGETS):
    41         set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
     41        @$(ECHO) ; set -e ; \
     42        if [ "$(SUB_DIRS)" != "" ] ; then \
     43          sdirs="$(SUB_DIRS)" ; \
     44        else \
     45          sdirs="xxx" ; \
     46        fi ; \
     47        if [ "$$sdirs" != "xxx" ] ; then \
     48          for subd in $$sdirs; do $(MAKE) -w -C $$subd $@; done ;\
     49        fi
    4250endif
    4351endif
     52
  • c/src/tests/samples/cdtest/main.cc

    r48971e5e r2936b425  
    2222#include <rtems.h>
    2323#include <stdio.h>
     24#include <stdlib.h>
    2425#ifdef RTEMS_TEST_IO_STREAM
    2526#include <iostream.h>
  • c/src/tests/samples/paranoia/paranoia.c

    r48971e5e r2936b425  
    154154#include <stdio.h>
    155155#include <string.h>
     156
     157#if defined(solaris2)
     158#include <math.h>
     159#endif
    156160
    157161/*
  • cpukit/libcsupport/src/__gettod.c

    r48971e5e r2936b425  
    2121#endif
    2222
     23#include <sys/time.h>
    2324#include <time.h>
    24 #include <sys/time.h>
    2525
    2626#include <errno.h>
  • cpukit/libcsupport/src/error.c

    r48971e5e r2936b425  
    143143
    144144    if (local_errno)
    145         if ((local_errno > 0) && *strerror(local_errno))
    146             chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    147         else
    148             chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
    149 
     145    {
     146      if ((local_errno > 0) && *strerror(local_errno))
     147        chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
     148      else
     149        chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
     150    }
     151   
    150152    chars_written += fprintf(stderr, "\n");
    151153
  • cpukit/libmisc/monitor/mon-symbols.c

    r48971e5e r2936b425  
    1212 */
    1313
     14/* for strcasecmp in linux and solaris */
     15#if defined(linux)
     16#define __USE_BSD
     17#endif
     18#include <string.h>
     19
    1420#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1521#include <rtems.h>
    1622#include <stdio.h>
    1723#include <stdlib.h>
    18 
    19 /* for strcasecmp in linux */
    20 #if defined(linux)
    21 #define __USE_BSD
    22 #endif
    23 #include <string.h>
    2424
    2525#include <rtems/monitor.h>
  • cpukit/score/cpu/unix/cpu.c

    r48971e5e r2936b425  
    1414#include <rtems/score/isr.h>
    1515#include <rtems/score/interr.h>
    16 
    17 #if defined(solaris2)
    18 /*
    19 #undef  _POSIX_C_SOURCE
    20 #define _POSIX_C_SOURCE 3
    21 #undef  __STRICT_ANSI__
    22 #define __STRICT_ANSI__
    23 */
    24 #define __EXTENSIONS__
    25 #endif
    2616
    2717#if defined(__linux__)
  • make/custom/Solaris-posix.cfg

    r48971e5e r2936b425  
    4242# Use the LIBC support for CYGNUS newlib
    4343# RTEMS_LIBC_DIR must already be set (by module file)
    44 RTEMS_USE_NEWLIB=yes
     44RTEMS_USE_NEWLIB=no
     45
     46LIBC_LIBM=-lm
    4547
    4648# Define this to yes if C++ is included in the development environment
    4749# This requires that at least the GNU C++ compiler and libg++ be installed.
     50ifeq ($(RTEMS_HAS_CPLUSPLUS),yes)
     51HAS_CPLUSPLUS=yes
     52# no standard C++ libs provided by default
     53LIBCC_INCLUDE=$(GNUTOOLS)/include/g++
     54CPLUS_LD_LIBS=-lstdc++
     55CPLUS_LD_LIBS=$(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
     56else
    4857HAS_CPLUSPLUS=no
     58endif
    4959
    5060# Define this to yes if this target supports multiprocessor environments.
  • make/directory.cfg

    r48971e5e r2936b425  
    3939ifdef RECURSE_TARGETS
    4040$(RECURSE_TARGETS):
    41         set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
     41        @$(ECHO) ; set -e ; \
     42        if [ "$(SUB_DIRS)" != "" ] ; then \
     43          sdirs="$(SUB_DIRS)" ; \
     44        else \
     45          sdirs="xxx" ; \
     46        fi ; \
     47        if [ "$$sdirs" != "xxx" ] ; then \
     48          for subd in $$sdirs; do $(MAKE) -w -C $$subd $@; done ;\
     49        fi
    4250endif
    4351endif
     52
  • testsuites/samples/cdtest/main.cc

    r48971e5e r2936b425  
    2222#include <rtems.h>
    2323#include <stdio.h>
     24#include <stdlib.h>
    2425#ifdef RTEMS_TEST_IO_STREAM
    2526#include <iostream.h>
  • testsuites/samples/paranoia/paranoia.c

    r48971e5e r2936b425  
    154154#include <stdio.h>
    155155#include <string.h>
     156
     157#if defined(solaris2)
     158#include <math.h>
     159#endif
    156160
    157161/*
  • tools/build/eolstrip.c

    r48971e5e r2936b425  
    198198      error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
    199199
    200     while ( isspace( buffer[ length ] ) )
     200    while ( isspace( (int) buffer[ length ] ) )
    201201      buffer[ length-- ] = '\0';
    202202
  • tools/build/packhex.c

    r48971e5e r2936b425  
    479479
    480480
    481     exit( EXIT_SUCCESS );
     481    return ( EXIT_SUCCESS );
    482482
    483483}
  • tools/build/src/eolstrip.c

    r48971e5e r2936b425  
    198198      error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
    199199
    200     while ( isspace( buffer[ length ] ) )
     200    while ( isspace( (int) buffer[ length ] ) )
    201201      buffer[ length-- ] = '\0';
    202202
  • tools/build/src/packhex.c

    r48971e5e r2936b425  
    479479
    480480
    481     exit( EXIT_SUCCESS );
     481    return ( EXIT_SUCCESS );
    482482
    483483}
Note: See TracChangeset for help on using the changeset viewer.