delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/05/09:03:27

X-Spam-Check-By: sourceware.org
X-YMail-OSG: _wJ.qS8VM1kAOWZKIf9.SC1X5lr1eaPej5KYWWfel0O06zoI4.y376N.dzIojqaVLVC5j28M5atkF7FMVW1yjM_6RwhXAjVHAIghHlpjqaAVcPVN8aQ7LO4yW0usPHyUYLnQ0DdmE1Z5CCwqEDv_PKoNbw--
X-Mailer: YahooMailRC/468 YahooMailWebService/0.6.132.8
Date: Mon, 5 Mar 2007 19:32:54 +0530 (IST)
From: neo napster <neo_realnapster AT yahoo DOT co DOT in>
Subject: Re: Difference Between CYGIPC And CYGServer
To: cygwin cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0
Message-ID: <137488.61471.qm@web7601.mail.in.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l25E3GEo006351

I have tried the suggested solution, but compilation failed as we have included  
the following calls to Cygipc:
semctl, semget, semop
shmtcl, shmget, shmat, shmdt
msgctl, msgget, msgsnd, msgrcv
and also included header files like ipc.h,sem.h,shm.h in our application

If i have to sucessfully compile and run our application, what are the corresponding calls 
and header files that i have to include in our application to run with Cygserver.

Please suggest.

----- Original Message ----
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
To: cygwin AT cygwin DOT com
Sent: Friday, 2 March, 2007 11:24:39 PM
Subject: Re: Difference Between CYGIPC And CYGServer


neo napster wrote:
> I have a few queries regarding cygserver and cygipc. 
> what will be the impact to move from cygipc to cygserver? 
> I have some systems programs which make calls to the CYGIPC, 
> since these programs are coded long back.
> 
> Can you please give us an idea of the things that need to be done 
> to move from cygipc to cygserver. Our programs are coded in C.

Both provide (some) of the standard IPC calls.  Both cygipc and 
cygserver implement the BSD interfaces for shared memory, semaphores, 
and message queues. (In cygwin-1.7.0+, cygserver will also implement 
POSIX-compliant shared memory objects and message queues).

cygipc is practically unmaintained -- and the code quality is, er, less 
than ideal.  cygserver is actively maintained and coded to a much higher 
standard.

Since both, today, implement the same BSD-derived interface[see (4), 
below], to move from one to the other, you should simply

(1) stop using -I/usr/include/cygipc in your build
(1) stop using -lcygipc2 in your build
(3) don't run ipc-daemon2.exe; instead, run /usr/bin/cygserver-config 
and follow the instructions.
(4) remove calls to
       cygipc_set_err_handler
       cygipc_get_err_handler
       cygipc_set_debug
       cygipc_get_debug
       cygipc_tracing_enabled
    cygserver uses Win32 event logging for error and debug handling, so
    these hacks provided by cygipc are unnecessary.

--
Chuck

--
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/


		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019