[UP]


Manual Reference Pages  - system_getumask (3)

NAME

system_getumask(3f) - [M_system:QUERY_FILE] get current umask (LICENSE:PD)

CONTENTS

Synopsis
Description
Example

SYNOPSIS

integer function system_getumask() result (umask_value)

DESCRIPTION

The return value from getumask(3f) is the value of the file creation mask, obtained by using umask(3c).

EXAMPLE

Sample program

   program demo_getumask
   use M_system, only : system_getumask, system_setumask
   integer :: i
   write(*,101)(system_getumask(),i=1,4)
   101 format(1x,i0,1x,"O’",o4.4,"’",1x,’Z"’,z0,"’",1x,"B’",b12.12,"’")
   end program demo_getumask

Expected output

    18 O’022’ Z"12’ B’000010010"


system_getumask (3) March 11, 2021
Generated by manServer 1.08 from b7437281-a4c9-4765-9253-3aa58ff07724 using man macros.