X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 17 Sep 2007 16:23:41 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [ipc] semtimedop undeclared
Message-ID: <20070917142341.GD22259@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <bb663b520708280627s4d203b33ue468d7a6df159c1f@mail.gmail.com> <001901c7e979$f381e780$2e08a8c0@CAM.ARTIMI.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <001901c7e979$f381e780$2e08a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug 28 14:47, Dave Korn wrote:
> On 28 August 2007 14:28, Mehdi Rabah wrote:
> 
> > Hi,
> > 
> > I'm trying to compile a linux project with cygwin. There is a file
> > which use IPC and include all the necessary files
> > 
> > #include <sys/types.h>
> > #include <sys/ipc.h>
> > #include <sys/shm.h>
> > #include <sys/sem.h>
> > #include <sys/time.h>
> > 
> > 
> > but still, I have this error at compile time:
> > 
> > error: `semtimedop' undeclared (first use this function)
> > 
> > what can I do about this ?
> 
>   Cygwin doesn't currently implement semtimedop, so your choices are 1) patch the
> cygwin source and implement it in the dll 2) change your linux project to not use
> it 3) implement it in your linux project as a wrapper around semop, possibly
> using a SIGALARM or other timer to trigger the timeout...

I'd opt for solution 2.  semtimedop is a Linux-only function.  It's not
in the POSIX standard, nor will it become part of the next upcoming POSIX
standard.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

