*BSD News Article 43659


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!cks.ssd.k12.wa.us!netnews1.nwnet.net!alfa02.medio.net!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!bridge.bloomington.in.us!pi
From: pi@bridge.bloomington.in.us (Raymond L. Gilbert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help with using IPC message queues and shared memory sys calls
Date: 3 May 1995 02:42:45 GMT
Organization: A FreeBSD Enthusiast
Lines: 19
Message-ID: <3o6qj5$37o@usenet.ucs.indiana.edu>
References: <3o6ghn$13v@spock.dis.cccd.edu>
NNTP-Posting-Host: xyplex3-5-2.ucs.indiana.edu

Thus it was recorded by the prophets, CPrince@cccd.edu said:
>I am trying to compile and use a program using IPC message 
>queues.
>
>My program has a statement like:
>rc = msgget( IPC_PRIVATE, IPC_CREAT );
>it compiles and links OK, but when I execute it I get Bad system
>call, and core dump.

Someone please correct me if I'm wrong (I'm still using 1.1.5.1), but
I think if you want to get SYSV IPC message queue emulation, you need
to recompile your kernel with the "SYSVMSG" option.  You can grep LINT
for SYSV to see what other SYSV IPC emulation there is.
-- 
/----------------------------------------------------------------------------\
| Raymond L. Gilbert       | "...the present rule in computing the circle's  |
| pi@indiana.edu           |  area is entirely wrong..."                     |
| IUB Dept. of Physics     |  - Bill No. 246, Indiana State Legislature, 1897|
\----------------------------------------------------------------------------/