---
name: "dpns_umask"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/dpns_umask"
---

# dpns\_umask(3)

set and get DPNS file creation mask used by the name server

## NAME

dpns\_umask - set and get DPNS file creation mask used by the name server

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "dpns\_api.h"**

**mode\_t dpns\_umask (mode\_t** *cmask***)**

## DESCRIPTION

**dpns\_umask** sets the DPNS file creation mask used by the name server to *cmask* and returns the previous value of the mask. The current mask is stored in a thread-safe variable in the client. Only the access permission bits of *cmask* are used.

## SEE ALSO

**[dpns\_chmod(3)](/dpns_chmod/3.md)**, **[dpns\_creat(3)](/dpns_creat/3.md)**, **[dpns\_mkdir(3)](/dpns_mkdir/3.md)**, **[dpns\_stat(3)](/dpns_stat/3.md), [dpns\_statg(3)](/dpns_statg/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
