delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
To: | cygwin AT cygwin DOT com |
From: | "Alex Vinokur" <alexvn AT connect DOT to> |
Subject: | Re: shmget : Function not implemented |
Date: | Sun, 4 Jan 2004 16:09:17 +0200 |
Lines: | 87 |
Message-ID: | <bt96qf$19o$1@sea.gmane.org> |
References: | <bt8unn$k9e$1 AT sea DOT gmane DOT org> <1047464079 DOT 20040104132921 AT familiehaase DOT de> |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1106 |
"Gerrit P. Haase" <gp AT familiehaase DOT de> wrote in message news:1047464079 DOT 20040104132921 AT familiehaase DOT de... > Hallo Alex, > > Am Sonntag, 4. Januar 2004 um 12:51 schriebst du: > > > Hi, > > > I have got a problem with shmget. > > > Something wrong? > > > =========================================== > > Windows 2000 Professional > > CYGWIN_NT-5.0 1.5.5(0.94/3/2) > > gcc version 3.3.1 (cygming special) > > =========================================== > > > ====== C code : File foo.c : BEGIN ====== > > #include <stdio.h> > > #include <stdlib.h> > > #include <errno.h> > > #include <sys/shm.h> > > > int main() > > { > > const int id = shmget(IPC_PRIVATE, 2*sizeof(int), 0660); > > > if (id == -1) printf ("ERROR : %d - %s\n", errno, strerror(errno)); > > > return 0; > > } > > > ====== C code : File foo.c : END ======== > > > > ====== Compilation & Run : BEGIN ====== > > > $ gcc foo.c -lcygipc > > > $ a > > > ERROR : 88 - Function not implemented > > > ====== Compilation & Run : END ======== > > The example works for me(tm). > > Guesses: > 1. The ipc-daemon2 needs to run. How can one know that? > 2. Wrong headers (cygipc-2.x not installed)? $ cygcheck -c | grep ipc // Nothing $ cygcheck -s | grep ipc 28k 2003/08/11 C:\cygwin\bin\cygcygipc-2.dll > > $ ls -l /usr/include/sys/shm.h > -rwxrwxrwx 1 #gerrit Benutzer 3330 Oct 17 07:25 /usr/include/sys/shm.h > $ ls -l /usr/include/sys/shm.h -rw-r--r-- 1 Administ None 3330 Aug 11 04:54 /usr/include/sys/shm.h $ cygcheck a.exe Found: .\a.exe a.exe C:\cygwin\bin\cygcygipc-2.dll C:\cygwin\bin\cygwin1.dll C:\WINNT\System32\KERNEL32.dll C:\WINNT\System32\NTDLL.DLL [snip] -- Alex Vinokur mailto:alexvn AT connect DOT to http://mathforum.org/library/view/10978.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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |