delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/11/14/16:26:43

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199911142024.PAA20253@dagda.sunflower.com>
From: "Doug Wyatt" <dwyatt AT sunflower DOT com>
To: "David J. Fiddes" <D DOT J AT fiddes DOT surfaid DOT org>,
"Cygwin" <cygwin AT sourceware DOT cygnus DOT com>
Date: Sun, 14 Nov 1999 15:25:57 -0600
MIME-Version: 1.0
Subject: Re: Sys V IPC and Cygwin
Reply-to: dwyatt AT sunflower DOT com
In-reply-to: <000101bf2df8$5f79a450$2a84c389@fiddesenterprises.com>
X-mailer: Pegasus Mail for Win32 (v3.12a)

Hi,

You can get an IPC package for Cygwin at:

http://www.multione.capgemini.fr/tools/pack_ipc/

The file is: cygwin32_ipc-1.03.tar.gz

FOR the LIST - does anyone know where one might get code for
ftok() ?  It's not in the package.

Regards,
Doug Wyatt

> 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 AT sourceware DOT cygnus DOT com
> 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019