Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Sun, 4 Jan 2004 13:29:21 +0100 From: "Gerrit P. Haase" Reply-To: "Gerrit @ cygwin" Organization: Esse keine toten Tiere Message-ID: <1047464079.20040104132921@familiehaase.de> To: "Alex Vinokur" CC: cygwin AT cygwin DOT com Subject: Re: shmget : Function not implemented In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 > #include > #include > #include > 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. 2. Wrong headers (cygipc-2.x not installed)? $ ls -l /usr/include/sys/shm.h -rwxrwxrwx 1 #gerrit Benutzer 3330 Oct 17 07:25 /usr/include/sys/shm.h Gerrit -- =^..^= -- 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/