UMASK — Set the file creation mask#

UMASK(MASK)#

Sets the file creation mask to MASK. If called as a function, it returns the old value. If called as a subroutine and argument OLD if it is supplied, it is set to the old value. See umask(2).

Parameters:
  • MASK – Shall be a scalar of type INTEGER.

  • OLD – (Optional) Shall be a scalar of type INTEGER.

Standard:

GNU extension

Class:

Subroutine, function

Syntax:
CALL UMASK(MASK [, OLD])
OLD = UMASK(MASK)