comp.lang.ada
 help / color / mirror / Atom feed
From: laforge2001@gmail.com
Subject: pragma importing sem_init gives me a segmentation fault
Date: 24 Feb 2007 12:52:50 -0800
Date: 2007-02-24T12:52:50-08:00	[thread overview]
Message-ID: <1172350370.771564.253920@q2g2000cwa.googlegroups.com> (raw)

Hi,

I'm an ADA noob so please be gentle :) Anyways, I am trying to use
POSIX semaphores by pragma importing sem_init, sem_post, sem_wait,
etc. and it seems everytime I hit sem_init, the program seg faults.
Has anyone ever tried doing this before with any success ?

These semaphores are in shared memory and I believe I'm allocating the
same space in memory as a sem_t type. We are actually trying to
convert from an SGI platform to a Linux based platform, so all the
previous semaphore calls were SGI specific and we were looking to move
to POSIX based semaphores. Does anyone have any ideas how to go about
this ?

Thanks,
Eric




             reply	other threads:[~2007-02-24 20:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 20:52 laforge2001 [this message]
2007-02-25  0:01 ` pragma importing sem_init gives me a segmentation fault Jeffrey Creem
2007-02-28 19:54   ` laforge2001
2007-03-01  0:07     ` Jeffrey Creem
2007-02-25 15:32 ` Stephen Leake
2007-02-26  9:21   ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox