home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / dec / 6053 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.4 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!drycas.club.cc.cmu.edu!pitt.edu!jgh1
  2. From: jgh1+@pitt.edu (John G Hardie)
  3. Newsgroups: comp.sys.dec
  4. Subject: global sections in C?
  5. Message-ID: <9872@blue.cis.pitt.edu.UUCP>
  6. Date: 18 Nov 92 23:20:53 GMT
  7. Sender: news+@pitt.edu
  8. Organization: University of Pittsburgh
  9. Lines: 32
  10. Originator: jgh1@unixd2.cis.pitt.edu
  11.  
  12.  
  13. Hi.
  14.  
  15.  
  16.  
  17. Would some kind soul take pity on me and please (PLEASE?!) tell
  18. me exactly how to create and map global sections from a C program
  19. under VMS?
  20.  
  21. I've got an example in FORTRAN, but it makes use of some hidden
  22. file manipulation stuff by using 
  23.     OPEN(...,USEROPEN=MYOPEN...)
  24. which sets up the FAB, RAB and whatever else.  There does not seem
  25. to be an equivalent mechanism in C so I have to do the initialization
  26. myself.  There are a million fields/flags/whatevers to set in this
  27. structure and I can't seem to make it work.
  28.  
  29. I've tried translating both the fortran version and the MACRO
  30. fragments from the SYSTEM SERVICES manual into C, then tweaking, but
  31. so far it doesn't work.  I've looked through the C Manual, and the C
  32. RTL manual, both of which are silent on the issue.  I am at a loss -
  33. I've searched the orange wall until I'm blue in the face but I remain
  34. clueless.
  35.  
  36. Please help a poor soul in distress...
  37.  
  38. Regards,
  39. John
  40. -- 
  41. jgh1@vm1.cis.pitt.edu
  42.  
  43.     Give me chastity and continency, but do not give them yet.
  44.