title: “file::umask” version: “1.0.0” date: “2023-12-14” author: “laplante@plcb.ca” section: “1g”
file::umask — Get or set the file creation mask (umask).
file::umask or umask([integer, error: variable])
This function returns the current umask.
If an integer parameter is provided, it sets the umask and returns the old value.
The umask will automatically be reset to its old value at the end of the current block.
res={{
printf("umask=%!o(MISSING)\n", umask());
}}.
Return
res=umask=22.
laplante@plcb.ca