next up previous contents index
Next: Access Up: Functions and procedures Previous: Utime

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
Tue Mar 31 16:46:10 CEST 1998