home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!uwm.edu!caen!sdd.hp.com!decwrl!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!yorktown!scotth
- From: scotth@gdfwc3 (Scott Howell)
- Newsgroups: comp.unix.questions
- Subject: System V msgrcv and msgsnd help requested.
- Message-ID: <SCOTTH.92Nov9150314@kuwait.gdfwc3>
- Date: 9 Nov 92 21:03:14 GMT
- Sender: usenet@yorktown.UUCP
- Reply-To: gdfwc3!kuwait!scotth@uunet.uu.net
- Distribution: comp.unix.questions
- Organization: General Dynamics, Fort Worth Division
- Lines: 17
-
-
- If any one has an example of a program that uses system V message queue
- access routines (particularly msgrcv and msgsnd) could you please send
- it my way.
-
- We are having problems in particular with the msgbuf structure found in
- msg.h. This structure looks like:
-
- struct msgbuf {
- long mtype;
- char mtext[1];
- };
-
- The problems seems to stem from the fact that mtext is a 1 char array, but
- it can contain from 1 - 8k bytes. Any example code or ideas would be
- appreciated. We are running on a Data General Aviion Workstation and a Harris
- Nighthawk computer (V6.1).
-