Chris Breemer ([log in to unmask]) wrote:
: I have been looking for a way to release a file from within a C program.
: The only way I could do it is by saying system("RELEASE FILE") but this
: is silly and performance-eating. I have been scanning the intrinsics manual
: for a programmatic way to do it, but did not find any.
If you have the Architected Interfaces for the operating system,
(AIF:OS), the AIFFILEGPUT intrinsic allows you to modify the
RELEASE/SECURE flag (Item 5014). This is probably the highest
performance way to do this, and the most supported; although
there may be others.
I'll leave it to Stan to tell you how it can be done with a
call to Debug. :)
--
-----------------------------------------------------------------
Mike Yawn email [log in to unmask]
Hewlett-Packard HPDesk Mike YAWN/HP6650/21
Commercial Systems Division Voice (408) 447-4367
19447 Pruneridge Ave M/S 44UP Fax (408) 447-0312
Cupertino, CA 95014
-----------------------------------------------------------------