Re: Difference Between CYGIPC And CYGServer
On Mar 9 16:41, neo napster wrote: > After goining through the code of shm.h and shm.c of Cygipc V1.09 that we are > using, > we have noticed that in function ShmCtl we have introduced logic to do the > following: > > 1. Detach all PIDs from the passed Shared Memory Id. > 2. Detach the PID of the process calling this function from >all the shared memories present in the system. > 3. Detach all dead PIDs from the passed Shared Memory Id, > if they are left unattached before dying. > 4. Detach all dead PIDs from all the Shared Memories persent in the system, > if they are left unattached before dying. > > If we use Cygserver, can we achive these without making chages to cygserver > code. > Can we know whether the above mentioned points are covered in Cygserver? Cygserver keeps track of the connected processes and performs a clean-up when the process terminates. 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/
Re: Difference Between CYGIPC And CYGServer
After goining through the code of shm.h and shm.c of Cygipc V1.09 that we are using, we have noticed that in function ShmCtl we have introduced logic to do the following: 1. Detach all PIDs from the passed Shared Memory Id. 2. Detach the PID of the process calling this function from all the shared memories present in the system. 3. Detach all dead PIDs from the passed Shared Memory Id, if they are left unattached before dying. 4. Detach all dead PIDs from all the Shared Memories persent in the system, if they are left unattached before dying. If we use Cygserver, can we achive these without making chages to cygserver code. Can we know whether the above mentioned points are covered in Cygserver? Thanks, Neo. ___ 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/
Re: Difference Between CYGIPC And CYGServer
On Mar 7 12:30, neo napster wrote: > All, > http://cygwin.com/acronyms/#TOFU > - Original Message > From: Corinna Vinschen <[EMAIL PROTECTED]> http://cygwin.com/acronyms/#PCYMTNQREAIYR 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/
Re: Difference Between CYGIPC And CYGServer
All, After goining through the code of shm.h and shm.c of Cygipc V1.09 that we are using, we have noticed that in function ShmCtl we have introduced logic to do the following: 1. Detach all PIDs from the passed Shared Memory Id. 2. Detach the PID of the process calling this function from all the shared memories present in the system. 3. Detach all dead PIDs from the passed Shared Memory Id, if they are left unattached before dying. 4. Detach all dead PIDs from all the Shared Memories persent in the system, if they are left unattached before dying. If we use Cygserver, can we achive these without making chages to cygserver code. We would rather be comfortable changing our application code. Can we achieve these by calling Shmdt function from our application? Thanks, Neo. - Original Message From: Corinna Vinschen <[EMAIL PROTECTED]> To: cygwin@cygwin.com Sent: Tuesday, 6 March, 2007 2:12:02 PM Subject: Re: Difference Between CYGIPC And CYGServer On Mar 6 10:46, neo napster wrote: > When compiling we are getting the following error: > > apitest.c:28:31: ipc.h: No such file or directory > apitest.c:29:31: shm.h: No such file or directory These files are under sys, so you have to include sys/ipc.h, sys/shm.h, etc., as required by SUSv3. 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/ ___ All New Yahoo! Mail Tired of unwanted email come-ons? Let our SpamGuard protect you. 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/
Re: Difference Between CYGIPC And CYGServer
On Mar 6 10:46, neo napster wrote: > When compiling we are getting the following error: > > apitest.c:28:31: ipc.h: No such file or directory > apitest.c:29:31: shm.h: No such file or directory These files are under sys, so you have to include sys/ipc.h, sys/shm.h, etc., as required by SUSv3. 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/
Re: Difference Between CYGIPC And CYGServer
When compiling we are getting the following error: apitest.c:28:31: ipc.h: No such file or directory apitest.c:29:31: shm.h: No such file or directory Since we were told not to include the Cygipc library when building the application, we have removed the cygipc library and sources from our work directory and Include path. As we have included the following header files and methods of Cygipc in our application we are getting errors when compiling. Header Files : ipc.h,sem.h,shm.h Calls : semctl, semget, semop shmtcl, shmget, shmat, shmdt msgctl, msgget, msgsnd, msgrcv Now that our intension is to use Cygserver, which are the corresponding header files and calls we need to include? I understand this is not going to be as simple as including the header files and building successfully. Thanks Neo. - Original Message From: Corinna Vinschen <[EMAIL PROTECTED]> To: cygwin cygwin Sent: Monday, 5 March, 2007 7:51:45 PM Subject: Re: Difference Between CYGIPC And CYGServer On Mar 5 19:32, neo napster wrote: > I have tried the suggested solution, but compilation failed as we have > included "compilation failed" is everything but detailed enough to help. > - Original Message > From: Charles Wilson <[EMAIL PROTECTED]> http://cygwin.com/acronyms/#PCYMTNQREAIYR 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/ ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. 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/
Re: Difference Between CYGIPC And CYGServer
On Mar 5 19:32, neo napster wrote: > I have tried the suggested solution, but compilation failed as we have > included "compilation failed" is everything but detailed enough to help. > - Original Message > From: Charles Wilson <[EMAIL PROTECTED]> http://cygwin.com/acronyms/#PCYMTNQREAIYR 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/
Re: Difference Between CYGIPC And CYGServer
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 <[EMAIL PROTECTED]> To: cygwin@cygwin.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/
RE: Difference Between CYGIPC And CYGServer
> From: Corinna Vinschen > Sent: Friday, March 02, 2007 2:01 PM > Subject: Re: Difference Between CYGIPC And CYGServer > > On Mar 2 12:54, Charles Wilson wrote: > > (In cygwin-1.7.0+, cygserver will also implement POSIX-compliant > > shared memory objects and message queues). > > Even better. POSIX shared memory objects and message queues > are both implemented using file backed sharead memory which > works without help of cygserver. > Swt. -- Gary R. Van Sickle -- 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/
Re: Difference Between CYGIPC And CYGServer
On Mar 2 12:54, Charles Wilson wrote: > (In cygwin-1.7.0+, cygserver will also implement > POSIX-compliant shared memory objects and message queues). Even better. POSIX shared memory objects and message queues are both implemented using file backed sharead memory which works without help of cygserver. 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/
Re: Difference Between CYGIPC And CYGServer
On Fri, 2 Mar 2007, Charles Wilson wrote: > 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. It seems that this information (verbatim) would be very useful in cygserver.README (or some other document in /usr/share/doc/cygserver). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- 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/
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/
Difference Between CYGIPC And CYGServer
Hi, 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. With Regards, Neo. ___ Inbox full of unwanted email? Get leading protection and 1GB storage with All 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/