Dr Andrew Scott G7VAV

My photo
 
April 2024
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12


GETUMASK

Section: Linux Programmer's Manual (3)
Updated: 2010-09-10
Index Return to Main Contents
 

NAME

getumask - get file creation mask  

SYNOPSIS

#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <sys/types.h>
#include <sys/stat.h>

mode_t getumask(void);  

DESCRIPTION

This function returns the current file creation mask. It is equivalent to

mode_t getumask(void)
{
    mode_t mask = umask( 0 );
    umask(mask);
    return mask;
}

except that it is documented to be thread-safe (that is, shares a lock with the umask(2) library call).  

CONFORMING TO

This is a vaporware GNU extension.  

NOTES

This function is documented but not implemented yet in glibc, as at version 2.9.  

SEE ALSO

umask(2)  

COLOPHON

This page is part of release 3.35 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://man7.org/linux/man-pages/.


 

Index

NAME
SYNOPSIS
DESCRIPTION
CONFORMING TO
NOTES
SEE ALSO
COLOPHON


for client 52.14.253.170
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/