next up previous contents index
Next: Uname Up: Functions and procedures Previous: TellDir

Umask

   

Declaration:

Function Umask (Mask : Integer) : Integer;

Description:

Change the file creation mask for the current user to Mask. The current mask is returned.

Errors:

None

See also:

Chmod, Umask (2)

Example
Program Example27;

{ Program to demonstrate the Umask function. }

Uses linux;

begin
  Writeln ('Old Umask was : ',Umask(Octal(111)));
  WRiteln ('New Umask is  : ',Octal(111));
end.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998