home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / vmsnet / internal / 1446 < prev    next >
Encoding:
Internet Message Format  |  1992-10-14  |  1.5 KB

  1. Path: sparky!uunet!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32
  2. From: "GWDGV1::MOELLER" <moeller@gwdgv1.dnet.gwdg.de>
  3. Newsgroups: vmsnet.internals
  4. Subject: RE: Help! (sys$init_vol)
  5. Message-ID: <8611223@MVB.SAIC.COM>
  6. Date: Wed, 14 Oct 1992 10:38:33 +0100
  7. Organization: Macro32<==>Vmsnet.Internals Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 24
  10.  
  11. Ehud Gavron <GAVRON@IT.SUNQUEST.COM> writes:
  12. >        I'm trying to create a piece of code to initialize a disk or
  13. >        tape volume.  However, when I call sys$init_vol I get back
  14. >        ss$_badparam.  Can anyone either
  15. >                a. tell me what I'm doing wrong
  16. >                b. show me how to do it right?
  17. >[...]
  18. >      char *list_pointer;
  19. >[...]
  20. >     list_pointer = (char *)&initlist[0];
  21. >[...]
  22. >     i =sys$init_vol((char *)device_name,(char *)volume_label,&list_pointer);
  23.  
  24. Try to pass `initlist' by reference, i.e. drop `&' from the argument list.
  25.  
  26. BTW, in case you want to install this program with VOLPRO privilege,
  27. you may be in for a nasty surprise: SYS$INIT_VOL(), when applied to *tapes*,
  28. checks for PROCPRV and not for CURPRV (the code for disks is o.k.).
  29. I SPR'ed this last year for VMS 5.4-2. For a workaround, I'm now calling
  30. SYS$INIT_VOL() from EXEC mode with temporarily elevated PROCPRV ...
  31.  
  32. Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ...
  33. PSI%(0262)45050352008::MOELLER      Phone: +49 551 201516 | No claim intended!
  34. Internet: moeller@gwdgv1.dnet.gwdg.de   | This space intentionally left blank.
  35.