| www.delorie.com/archives/browse.cgi | search |
| 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 <cygwin AT realmofthesh DOT com> |
| 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 |
| 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 |
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 <sys/msg.h>
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |