GETPROT()

From Recital Documentation Wiki
Revision as of 15:31, 27 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

Function to return current file-protection mask


Syntax

GETPROT()


See Also

CREATE, GETGID(), GETUID(), MODIFY STRUCTURE, SETPROT()


Description

Used to manipulate file protection masks, the GETPROT() function returns the current file protection mask which will be used when creating any new files. If the protection mask has not been changed with the SETPROT()function, the default protection mask is returned. The string returned by GETPROT() is known as the file protection mask. It is the same on all operating systems, however on non-OpenVMS platforms the 'System' mask and the 'Delete' mask are ignored. The GETPROT() function always returns a character string in upper case.


Example

old_mask = getprot()
setprot("S:RWED,O:RWED,G:RW,W:RW")
pack
setprot(old_mask)


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer