Submitted by: Akira Ikeuchi <a_ikeuchi@mic.mitsumi.co.jp> Reviewed by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
86 lines
3 KiB
Groff
86 lines
3 KiB
Groff
.\" Copyright (c) 1980, 1991, 1993
|
||
.\" The Regents of the University of California. All rights reserved.
|
||
.\"
|
||
.\" Redistribution and use in source and binary forms, with or without
|
||
.\" modification, are permitted provided that the following conditions
|
||
.\" are met:
|
||
.\" 1. Redistributions of source code must retain the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer.
|
||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||
.\" notice, this list of conditions and the following disclaimer in the
|
||
.\" documentation and/or other materials provided with the distribution.
|
||
.\" 3. All advertising materials mentioning features or use of this software
|
||
.\" must display the following acknowledgement:
|
||
.\" This product includes software developed by the University of
|
||
.\" California, Berkeley and its contributors.
|
||
.\" 4. Neither the name of the University nor the names of its contributors
|
||
.\" may be used to endorse or promote products derived from this software
|
||
.\" without specific prior written permission.
|
||
.\"
|
||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||
.\" SUCH DAMAGE.
|
||
.\"
|
||
.\" @(#)umask.2 8.1 (Berkeley) 6/4/93
|
||
.\" %FreeBSD: src/lib/libc/sys/umask.2,v 1.12 2004/07/02 23:52:13 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd June 4, 1993
|
||
.Dt UMASK 2
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm umask
|
||
.Nd ¥Õ¥¡¥¤¥ë¥â¡¼¥ÉÀ¸À®¥Þ¥¹¥¯¤ÎÀßÄê
|
||
.Sh ¥é¥¤¥Ö¥é¥ê
|
||
.Lb libc
|
||
.Sh ½ñ¼°
|
||
.In sys/stat.h
|
||
.Ft mode_t
|
||
.Fn umask "mode_t numask"
|
||
.Sh ²òÀâ
|
||
.Fn umask
|
||
¥ë¡¼¥Á¥ó¤Ï¡¢¥×¥í¥»¥¹¤Î¥Õ¥¡¥¤¥ë¥â¡¼¥ÉÀ¸À®¥Þ¥¹¥¯¤ò
|
||
.Fa numask
|
||
¤ËÀßÄꤷ¡¢ÀßÄêÁ°¤Î¥Þ¥¹¥¯ÃͤòÊÖ¤·¤Þ¤¹¡£
|
||
.Fa numask
|
||
¤Î¥¢¥¯¥»¥¹¸¢¤Î²¼°Ì 9 ¥Ó¥Ã¥È¤Ï¡¢
|
||
.Xr open 2 ,
|
||
.Xr mkdir 2 ,
|
||
.Xr mkfifo 2
|
||
¤Ê¤É¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬»ÈÍѤ·¡¢¥Õ¥¡¥¤¥ë¥â¡¼¥É¤ÇÍ׵ᤵ¤ì¤ë
|
||
Âбþ¤¹¤ë¥Ó¥Ã¥È¤ò¥ª¥Õ¤Ë¤·¤Þ¤¹ (
|
||
.Xr chmod 2
|
||
¤ò»²¾È)¡£
|
||
¥Ó¥Ã¥È¤ò¥¯¥ê¥¢¤Ë¤¹¤ë¤³¤È¤Ç¡¢³Æ¥æ¡¼¥¶¤Ï¤½¤Î¥Õ¥¡¥¤¥ë¤Ø¤Î
|
||
¥Ç¥Õ¥©¥ë¥È¥¢¥¯¥»¥¹¤òÀ©¸Â¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
|
||
.Pp
|
||
¥Ç¥Õ¥©¥ë¥È¤Î¥Þ¥¹¥¯Ãͤϡ¢S_IWGRP | S_IWOTH
|
||
(022¡¢½êͼԤΤߤνñ¹þ¤ß¥¢¥¯¥»¥¹) ¤Ç¤¹¡£
|
||
»Ò¥×¥í¥»¥¹¤Ï¡¢¸Æ¤Ó½Ð¤·¥×¥í¥»¥¹¤Î¥Þ¥¹¥¯¤ò·Ñ¾µ¤·¤Þ¤¹¡£
|
||
.Sh Ìá¤êÃÍ
|
||
¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ¡¢°ÊÁ°¤Î¥Õ¥¡¥¤¥ë¥â¡¼¥É¥Þ¥¹¥¯¤ÎÃͤ¬ÊÖ¤µ¤ì¤Þ¤¹¡£
|
||
.Sh ¥¨¥é¡¼
|
||
.Fn umask
|
||
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¾ï¤ËÀ®¸ù¤·¤Þ¤¹¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr chmod 2 ,
|
||
.Xr mknod 2 ,
|
||
.Xr open 2
|
||
.Sh µ¬³Ê
|
||
.Fn umask
|
||
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢
|
||
.St -p1003.1-90
|
||
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
||
.Sh Îò»Ë
|
||
.Fn umask
|
||
´Ø¿ô¤Ï¡¢
|
||
.At v7
|
||
¤ÇÅо줷¤Þ¤·¤¿¡£
|