Mail Archives: cygwin/2007/03/12/10:02:21
From my application : the calling semctl as follow:
method name()
{
int cntr=0
union semun semopts;
semopts.val=1
semctl ( *sid, cntr, SETVAL, semopts);
}
Am i calling the semctl in correct format? If so why am i getting the error?
If i look into sem.cc it is defined as follows:
semctl (int semid, int semnum, int cmd, ...)
With Regards,
Neo.
----- Original Message ----
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin cygwin <cygwin AT cygwin DOT com>
Sent: Monday, 12 March, 2007 6:16:01 PM
Subject: Re: Smctl Method Returns Failure.
On Mar 12 11:22, neo napster wrote:
> We are making calls to Cygserver methods from our applications, the below call we are doing:
>
> semctl (int semid, int semnum, int cmd).
>
> but the Cygserver is returning Failure from this method. When we kept debugs in Cygserver we got the following message:
>
> -1 [22] = semctl ()
>
> Can any one suggest on this..
Errno 22 = EINVAL.
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/
___________________________________________________________
New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
--
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/
- Raw text -