X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,J_CHICKENPOX_55,J_CHICKENPOX_65 X-Spam-Check-By: sourceware.org Message-ID: <4A7FC6C1.2070005@realmofthesh.com> Date: Mon, 10 Aug 2009 00:05:37 -0700 From: Scott User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Bad system call when calling msgsnd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 When I compile and run the following example code within cygwin (gcc msgsnd.c -o msgsnd), I get an error "Bad system call" This seems to be a bug; it runs fine under linux. #include int main() { int msqid = 0; int rc; size_t msgsz; struct { long int mtype; char mtext[256]; } mymsg; msgsz = 256; mymsg.mtype = 1; rc = msgsnd(msqid, &mymsg, msgsz, IPC_NOWAIT); return 0; } -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple