🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #31515

SLRN & VMS (Alphas, CAPTIVE, V6.2-1H3 - no spawn)

#31515
From: Andrew Brennan
Date: Thu, 20 Feb 1997 00:00
58 lines
3449 bytes
   Is anyone using SLRN on an OpenVMS AXP system with V6.2+ and a
   CAPTIVE user population??  I'd love to hear from you before I find
   myself listening to the voices & cleaning my gun collection[0].

   Ok ... I think I've tried everything I can now.  I have access to 
   three OpenVMS Alphas (V6.1, V6.2 and V6.2-1H3) and have tried the
   same code on all three with various results.

   SLRN uses system() to start the editor for posting, mailing - what
   have you.  This is fine for most cases, but CAPTIVE VMS users on a
   >5.5-2 (??) system need a TRUSTED flag passed to LIB$SPAWN to make
   this work.  Otherwise, you get a query asking you if you want to 
   post -- an empty message[1].

   The use of the TRUSTED flag allows code to continue working in the
   pre-V6.0 (or whenever CAPTIVE & LIB$SPAWN changed) style, but was
   not available for Alpha hardware (reserved for future expansion) 
   before V6.2 (although HELP on a V6.2-1H3 box still has the note of
   it being reserved on OpenVMS AXP systems). 

   Now ... I've tried LIB$SPAWN using ANU-NEWS and Lynx code as the
   examples/templates.  The TRUSTED flag doesn't seem to work on the
   V6.2-1H3 system.  I'll be trying a change in the SECURITY_POLICY
   parameter to see if that makes the difference, but that won't be
   until tomorrow morning.  LIB$SPAWN seems ideal - it allows me to 
   replace the system() call - making it more useful than TPU$EDIT in
   this situation (an approach posted a week or so ago).  LIB$SPAWN
   and no TRUSTED bit works for non-CAPTIVEs, but LIB$SPAWN with the
   TRUSTED bit (CAPTIVE or no) does not[2].

   I *have* tried TPU$EDIT, though.  A simple program that calls the
   routine (5 lines or so) compiles, links and runs on all systems I
   described.  The V6.2 system has the SECURITY_POLICY=71 parameter
   and it appears to work w/o any problem.  Unfortunately, the image
   (FTP'd over or compiled again from scratch) doesn't work on the
   V6.2-1H3 system.  I get ACCESS VIOLATIONs and the program dies.

   It's possible that the SECURITY_POLICY change will fix everything
   and I'll cancel this post if it's the case ... but I'm not being
   particularly optimistic at this time.  Anyone have a tip??

   [0] Sorry, I don't collect firearms.  Sounded good, no?  :^)

   [1] It's not really empty.  The file is empty with the .signature
       appended, so I've informed our users that it's *possible* to 
       post by editting their .sigs ... post an empty message and the
       "content" is appended with the signature.  I'd rather they use
       PINE until this is fixed, though.

   [2] static $DESCRIPTOR (command,"edit");
       int stat, ret;
       unsigned long sflag;
       sflag = 0x40;
       ret = lib$spawn( &command,NL,NL,&sflag,NL,NL,&stat,NL,NL,0,NL,NL);


Technical Details
Message-ID: <slrn5gnbf1.eq2.brennan@crashprone.allegheny.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn5gnbf1.eq2.brennan@crashprone.allegheny.edu>
Subject: SLRN & VMS (Alphas, CAPTIVE, V6.2-1H3 - no spawn)
Date: Thu, 20 Feb 1997 00:00:00 +0000
From: brennan@crashprone.allegheny.edu (Andrew Brennan)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 220067085
Organization: Allegheny University
Newsgroups: comp.os.vms,news.software.readers