⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 umask.2

📁 操作系统设计与实现源码
💻 2
字号:


UMASK(2)                  Minix Programmer's Manual                   UMASK(2)


NAME
     umask - set file creation mode mask

SYNOPSIS
     #include <sys/types.h>
     #include <sys/stat.h>

     mode_t umask(mode_t mask)

DESCRIPTION
     Umask sets the process's file mode creation mask to mask and returns  the
     previous  value  of  the  mask.   The  low-order  9 bits of mask are used
     whenever a file is created, clearing corresponding bits in the file  mode
     (see  chmod(2)).   This clearing allows each user to restrict the default
     access to his files.

     The value is initially 022 (write access for owner only).   The  mask  is
     inherited by child processes.

RETURN VALUE
     The previous value of the file mode mask is returned by the call.

SEE ALSO
     chmod(2), mknod(2), open(2).




























4BSD                               May 9, 1985                               1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -