This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bad system call when calling msgsnd


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]