The umask callable service changes the file mode creation mask of a process. The file mode creation mask is used by the security package to turn off permission bits in the mode parameter that is specified. Bit positions that are set in the file mode creation mask are cleared in the mode of the created file.
Operation | Environment |
---|---|
Authorization: | Supervisor or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1UMK): | 31-bit |
AMODE (BPX4UMK): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
|
AMODE 64 callers use BPX4UMK with the same parameters.
The name of a fullword that contains the file mode creation mask. This mask turns off permission bits in a file's mode. File_mode_creation_mask is mapped by the BPXYMODE macro (see BPXYMODE — Map the mode constants of the file services).
The name of a fullword in which the umask service returns the previous value of the file mode creation mask. This fullword has the same mapping as the File_mode_creation_mask parameter.
There are no restrictions on the use of the umask service.
For an example using this callable service, see BPX1UMK (umask) example.