X-Spam-Check-By: sourceware.org X-YMail-OSG: OZOXDbkVM1lpZCw4_biaO2ftS2R9BY0se45rVhMcbDtAt26hkACgey2U38ZeWmvEHCgOQh.0AzAU7zCsV1otRL6f1JR_UGJU7AU8IBbYC19ifoXEjyNF9aGdChTEbmqQ1rt3rN.OT0FQ2mN6ueDqI5kjJQ-- X-Mailer: YahooMailRC/471 YahooMailWebService/0.6.132.8 Date: Mon, 12 Mar 2007 20:31:42 +0530 (IST) From: neo napster Subject: Re: Smctl Method Returns Failure. To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <620098.3588.qm@web7608.mail.in.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l2CF29Im010671 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 To: cygwin cygwin 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/