Sign in Join
FPDoc Onlineexperiment

FpUmask function

In unit BaseUnix

Set file creation mask.

Declaration

pascal
function FpUmask(cmask: TMode): TMode

Description

fpUmask changes the file creation mask for the current user to cmask. The current mask is returned.

See also

Example: ex27

pascal
Program Example27;

{ Program to demonstrate the Umask function. }

Uses BaseUnix;

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.