NAME
getumask —
get file creation mode mask
SYNOPSIS
#include
<sys/stat.h>
mode_t
getumask(void);
DESCRIPTION
The
getumask()
routine returns the process's file mode creation mask.
Configuration of the file creation mode mask is
achieved through the
umask()
system call.
The default mask value is S_IWGRP | S_IWOTH (022, write access for the owner only). Child processes inherit the mask of the calling process.
RETURN VALUES
The value of the file mode mask is returned by the call.
ERRORS
The getumask() function is always
successful.
LEGACY SYNOPSIS
#include
<sys/types.h> #include
<sys/stat.h>
The include file
<sys/types.h> is
necessary.
SEE ALSO
HISTORY
The getumask() system call appeared in OS
X 27.0.