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