Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: "David J. Fiddes" <D.J@fiddes.surfaid.org>
To: "Cygwin" <cygwin@sourceware.cygnus.com>
Subject: Sys V IPC and Cygwin
Date: Sat, 13 Nov 1999 16:58:56 -0000
Message-ID: <000101bf2df8$5f79a450$2a84c389@fiddesenterprises.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211

Hi,

I'm trying to get the "unix" simulator for RTEMS (a Real Time OS) running
under Cygwin. The unix simulator allows the user to run RTEMS programs as
normal unix tasks. Unfortunately, to achieve this it uses Sys V semaphores,
shared memory and messages to simulate hardware interrupts and the like...
The configure for RTEMS chokes when looking for the header files...

I don't really know very much about Sys V IPC. Is it possible to make this
work under Cygwin and at what level (e.g. cygwin1.dll or a library or ???)?

The type of program that configure is trying to build looks like:

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#if !HAS_UNION_SEMUN
  union semun {
    int val;
    struct semid_ds *buf;
    ushort *array;
  } ;
#endif
int main () {
  union semun arg ;

  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
  if (id == -1)
    exit(1);
  arg.val = 0; /* avoid implicit type cast to union */
  if (semctl(id, 0, IPC_RMID, arg) == -1)
    exit(1);
  exit(0);
}

many thanks,
Dave


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

