home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13173 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.1 KB

  1. 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
  2. From: scotth@gdfwc3 (Scott Howell)
  3. Newsgroups: comp.unix.questions
  4. Subject: System V msgrcv and msgsnd help requested.
  5. Message-ID: <SCOTTH.92Nov9150314@kuwait.gdfwc3>
  6. Date: 9 Nov 92 21:03:14 GMT
  7. Sender: usenet@yorktown.UUCP
  8. Reply-To: gdfwc3!kuwait!scotth@uunet.uu.net
  9. Distribution: comp.unix.questions
  10. Organization: General Dynamics, Fort Worth Division
  11. Lines: 17
  12.  
  13.  
  14. If any one has an example of a program that uses system V message queue
  15. access routines (particularly msgrcv and msgsnd) could you please send
  16. it my way.  
  17.  
  18. We are having problems in particular with the msgbuf structure found in 
  19. msg.h.  This structure looks like:
  20.  
  21.   struct msgbuf {
  22.      long mtype;
  23.      char mtext[1];
  24.   };
  25.  
  26. The problems seems to stem from the fact that mtext is a 1 char array, but
  27. it can contain from 1 - 8k bytes.  Any example code or ideas would be
  28. appreciated.  We are running on a Data General Aviion Workstation and a Harris
  29. Nighthawk computer (V6.1).
  30.