public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Sys V IPC and Cygwin
@ 1999-11-14  9:49 David J. Fiddes
  1999-11-14 13:26 ` Doug Wyatt
  1999-11-30 23:39 ` David J. Fiddes
  0 siblings, 2 replies; 4+ messages in thread
From: David J. Fiddes @ 1999-11-14  9:49 UTC (permalink / raw)
  To: Cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sys V IPC and Cygwin
  1999-11-14  9:49 Sys V IPC and Cygwin David J. Fiddes
@ 1999-11-14 13:26 ` Doug Wyatt
  1999-11-30 23:39   ` Doug Wyatt
  1999-11-30 23:39 ` David J. Fiddes
  1 sibling, 1 reply; 4+ messages in thread
From: Doug Wyatt @ 1999-11-14 13:26 UTC (permalink / raw)
  To: David J. Fiddes, Cygwin

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@sourceware.cygnus.com
> 



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Sys V IPC and Cygwin
  1999-11-14 13:26 ` Doug Wyatt
@ 1999-11-30 23:39   ` Doug Wyatt
  0 siblings, 0 replies; 4+ messages in thread
From: Doug Wyatt @ 1999-11-30 23:39 UTC (permalink / raw)
  To: David J. Fiddes, Cygwin

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@sourceware.cygnus.com
> 



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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Sys V IPC and Cygwin
  1999-11-14  9:49 Sys V IPC and Cygwin David J. Fiddes
  1999-11-14 13:26 ` Doug Wyatt
@ 1999-11-30 23:39 ` David J. Fiddes
  1 sibling, 0 replies; 4+ messages in thread
From: David J. Fiddes @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-30 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-14  9:49 Sys V IPC and Cygwin David J. Fiddes
1999-11-14 13:26 ` Doug Wyatt
1999-11-30 23:39   ` Doug Wyatt
1999-11-30 23:39 ` David J. Fiddes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).