Changeset c094542 in rtems


Ignore:
Timestamp:
11/16/99 16:07:17 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f6d0821
Parents:
f4b76ab5
Message:

Only check for System V IPC if multiprocessing is enabled. The unix
port only uses System V IPC for shared memory and semaphores to
communicate between nodes in a multiprocessor configuration. If you
disable multiprocessing, then this code should be unused. Thus systems
like Cygwin which are POSIX but do not support System V IPC should
not work.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/configure.in

    rf4b76ab5 rc094542  
    3939RTEMS_CHECK_ITRON_API(RTEMS_BSP)
    4040
    41 RTEMS_CHECK_SYSV_UNIX
     41# The only use of System V IPC is the UNIX port when multiprocessing.
     42if test "$HAS_MP" = "yes"; then
     43  RTEMS_CHECK_SYSV_UNIX
     44fi
    4245
    4346# find all the Executive Makefiles
  • c/src/exec/score/cpu/unix/cpu.c

    rf4b76ab5 rc094542  
    3030#include <errno.h>
    3131#include <unistd.h>
     32#if defined(RTEMS_MULTIPROCESSING)
    3233#include <sys/ipc.h>
    3334#include <sys/shm.h>
    3435#include <sys/sem.h>
     36#endif
    3537#include <string.h>   /* memset */
    3638
     
    923925}
    924926
     927extern void fix_syscall_errno( void );
     928
     929#if defined(RTEMS_MULTIPROCESSING)
    925930int  _CPU_SHM_Semid;
    926 extern       void fix_syscall_errno( void );
    927931
    928932void _CPU_SHM_Init(
     
    10161020
    10171021}
     1022#endif
    10181023
    10191024int _CPU_Get_pid( void )
     
    10221027}
    10231028
     1029#if defined(RTEMS_MULTIPROCESSING)
    10241030/*
    10251031 * Define this to use signals for MPCI shared memory driver.
     
    11091115
    11101116}
     1117#endif
  • c/src/exec/score/cpu/unix/rtems/score/cpu.h

    rf4b76ab5 rc094542  
    10621062void _CPU_Stop_clock( void );
    10631063
     1064#if defined(RTEMS_MULTIPROCESSING)
     1065
    10641066void _CPU_SHM_Init(
    10651067  unsigned32   maximum_nodes,
     
    10851087  int semaphore
    10861088);
     1089#endif
    10871090
    10881091#ifdef __cplusplus
  • cpukit/score/cpu/unix/cpu.c

    rf4b76ab5 rc094542  
    3030#include <errno.h>
    3131#include <unistd.h>
     32#if defined(RTEMS_MULTIPROCESSING)
    3233#include <sys/ipc.h>
    3334#include <sys/shm.h>
    3435#include <sys/sem.h>
     36#endif
    3537#include <string.h>   /* memset */
    3638
     
    923925}
    924926
     927extern void fix_syscall_errno( void );
     928
     929#if defined(RTEMS_MULTIPROCESSING)
    925930int  _CPU_SHM_Semid;
    926 extern       void fix_syscall_errno( void );
    927931
    928932void _CPU_SHM_Init(
     
    10161020
    10171021}
     1022#endif
    10181023
    10191024int _CPU_Get_pid( void )
     
    10221027}
    10231028
     1029#if defined(RTEMS_MULTIPROCESSING)
    10241030/*
    10251031 * Define this to use signals for MPCI shared memory driver.
     
    11091115
    11101116}
     1117#endif
  • cpukit/score/cpu/unix/rtems/score/cpu.h

    rf4b76ab5 rc094542  
    10621062void _CPU_Stop_clock( void );
    10631063
     1064#if defined(RTEMS_MULTIPROCESSING)
     1065
    10641066void _CPU_SHM_Init(
    10651067  unsigned32   maximum_nodes,
     
    10851087  int semaphore
    10861088);
     1089#endif
    10871090
    10881091#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.