Difference between revisions of "GETPROT()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Function to return current file-protection mask
 
Function to return current file-protection mask
Line 27: Line 25:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 16:19, 2 December 2009

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 Server, Recital