Revision control

Copy as Markdown

Other Tools

//! Umask support.
#[cfg(feature = "fs")]
use crate::backend;
#[cfg(feature = "fs")]
use crate::fs::Mode;
/// `umask(mask)`—Set the process file creation mask.
///
/// # References
/// - [POSIX]
/// - [Linux]
///
#[cfg(feature = "fs")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "fs")))]
#[inline]
pub fn umask(mask: Mode) -> Mode {
backend::process::syscalls::umask(mask)
}