Navigation

Operators and Keywords

Function List:

C++ API

: umask (mask)

Set the permission mask for file creation.

The parameter mask is an integer, interpreted as an octal number.

If successful, returns the previous value of the mask (as an integer to be interpreted as an octal number); otherwise an error message is printed.

The permission mask is a UNIX concept used when creating new objects on a file system such as files, directories, or named FIFOs. The object to be created has base permissions in an octal number mode which are modified according to the octal value of mask. The final permissions for the new object are mode - mask.

See also: fopen, mkdir, mkfifo.

Package: octave