home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22257 < prev    next >
Encoding:
Internet Message Format  |  1993-01-29  |  1.8 KB

  1. Path: sparky!uunet!seismo!darwin.sura.net!gatech!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!vitro.com!v7.vitro.com!vaxs09
  2. From: vaxs09@v7.vitro.com
  3. Newsgroups: comp.os.vms
  4. Subject: $PURGE system service (was Re: LIB$SPAWN and privileges...)
  5. Message-ID: <1993Jan26.162120.1@v7.vitro.com>
  6. Date: 26 Jan 93 21:21:19 GMT
  7. References: <01GTXJV9AHTU000EP7@SCI.WFEB.EDU>
  8. Sender: news@vitro.com (USENET News System)
  9. Organization: Vitro Corporation
  10. Lines: 29
  11.  
  12. In article <01GTXJV9AHTU000EP7@SCI.WFEB.EDU>, MACRIDES@SCI.WFEB.EDU (Foteos Macrides) writes:
  13. > In article <01GTXHT0P1IC00007S@SCI.WFEB.EDU>, Stephen Tihor <tihor@ACF3.NYU.EDU> writes:
  14. >> FYI there are things called user written system services which are
  15. >> a fair approximation to installed privileged sharable images.   They requires
  16. >> special caution in writing whihc is probably why Carl did not include them.
  17. >     Has anybody written a SYS$PURGE and/or SYS$RENAME system service?  I
  18. > want to do some file cleanup operations from a CtrlY-trapping AST, and can't
  19. > use LIB$SPAWN or system() cuz the child process can't bring the parent back
  20. > out of hibernation.
  21.  
  22. It would be silly for someone to put a PURGE or RENAME operation in a system
  23. service.  You don't need elevated privilege (yes, I know it's really
  24. access to inner processor modes) to do those operations.  System managers
  25. especially don't WANT you to have elevated privilege or access to inner
  26. processor modes when you may be trying to delete SYSUAF.DAT.
  27.  
  28. To answer the question you should have asked:
  29.  
  30. Yes, Digital has written library routines that meet both needs.
  31.  
  32. Check out LIB$RENAME_FILE and LIB$DELETE_FILE.  For LIB$DELETE_FILE you'll
  33. want to mess with the USER-CONFIRM-PROCEDURE to prevent deletion of the
  34. first n versions of each file.
  35.  
  36. $ HELP RTL LIB$ LIB$RENAME_FILE
  37. $ HELP RTL LIB$ LIB$DELETE_FILE
  38.  
  39.     John Briggs            vaxs09@v7.vitro.com
  40.