.\" Copyright (c) 1989, 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. .\" .\" @(#) chflags. 2 8.3 (Berkeley) 5/2/95 .\" %FreeBSD: src/lib/libc/sys/chflags. 2, v 1.11. 2.7 2001/12/14 18:34:00 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man2/chflags. 2, v 1.7 2001/12/23 00:03:41 horikawa Exp $ .Dd May 2, 1995 .Dt CHFLAGS 2 .Os .Sh ¸íĪ .Nm chflags , .Nm fchflags .Nd ÆÄÀÏ Ç÷¡±×¸¦ ¼³Á¤ÇÑ´Ù .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc .Sh ¼­½Ä .In sys/stat.h .In unistd.h .Ft int .Fn chflags "const char *path" "u_long flags" .Ft int .Fn fchflags "int fd" "u_long flags" .Sh ÇØ¼³ À̸§ÀÌ .Fa path ¿¡ ÀÇÇØ ÁöÁ¤µÇ´Â ÆÄÀÏ, ¶Ç´Â ±â¼úÀÚ .Fa fd ¿¡ ÀÇÇØ ÂüÁ¶µÇ´Â ÆÄÀÏÀÇ Ç÷¡±×°¡ .Fa flags (À¸)·Î º¯°æµË´Ï´Ù. .Pp ÁöÁ¤µÈ Ç÷¡±×´Â ´ÙÀ½ÀÇ °ªÀÇ ³í¸®ÇÕ (or)À» ÃëÇÏ´Â °ÍÀ¸·Î ÀÛ¼ºµË´Ï´Ù. .Pp .Bl -tag -width "SF_IMMUTABLE" -compact -offset indent .It UF_NODUMP ±× ÆÄÀÏÀ» dump ÀÇ ´ë»ó¿Ü·Î ÇÕ´Ï´Ù. .It UF_IMMUTABLE ±× ÆÄÀÏÀº º¯°æ ±ÝÁöÀÔ´Ï´Ù. .It UF_APPEND ±× ÆÄÀÏÀº ¸»¹Ì¿¡ÀÇ Ãß°¡¸¸ÀÌ °¡´ÉÇÕ´Ï´Ù. .It UF_NOUNLINK ±× ÆÄÀÏÀº À̸§À» º¯°æÇϰųª »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. .It UF_OPAQUE À¯´Ï¿Â ÆÄÀÏ ½Ã½ºÅÛÀÇ ½ºÅÃÀ» ÅëÇØ¼­ º¼ ¶§, ÀÌ µð·ºÅ丮´Â ºÒÅõ¸íÇÕ´Ï´Ù. .It SF_ARCHIVED ±× ÆÄÀÏÀº ¾ÆÄ«À̺ê(archive) °¡´ÉÇÕ´Ï´Ù. .It SF_IMMUTABLE ±× ÆÄÀÏÀº º¯°æ ±ÝÁöÀÔ´Ï´Ù. .It SF_APPEND ±× ÆÄÀÏÀº ¸»¹Ì¿¡ÀÇ Ãß°¡¸¸ÀÌ °¡´ÉÇÕ´Ï´Ù. .It SF_NOUNLINK ±× ÆÄÀÏÀº À̸§À» º¯°æÇϰųª »èÁ¦ÇÒ ¼ö ¾ø½À´Ï´Ù. .El .Pp .Dq UF_IMMUTABLE , .Dq UF_APPEND , .Dq UF_NOUNLINK , .Dq UF_NODUMP , .Dq UF_OPAQUE Ç÷¡±×´Â, ÆÄÀÏÀÇ ¼ÒÀ¯ÀÚ ¶Ç´Â ½´ÆÛ À¯ÀúÀÇ ¾îµò°¡¿¡ µû¶ó ¼³Á¤ ¶Ç´Â ¼³Á¤ ÇØÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù. .Dq SF_IMMUTABLE , .Dq SF_APPEND , .Dq SF_NOUNLINK , .Dq SF_ARCHIVED Ç÷¡±×´Â, ½´ÆÛ À¯Àú¸¸ÀÌ ¼³Á¤ ¶Ç´Â ¼³Á¤ ÇØÁ¦ÇÒ ¼ö ÀÖ½À´Ï´Ù. ½´ÆÛ À¯Àú¸¸À» ¼³Á¤ÇÒ ¼ö ÀÖ´Â Ç÷¡±×¸¦ ½´ÆÛ À¯Àú°¡ ¾Æ´Ñ °ÍÀÌ ¼³Á¤ÇÏ·Á°í ÇØµµ °æ°í¾øÀÌ ¹«½ÃµË´Ï´Ù. ÀÌ·¯ÇÑ Ç÷¡±×´Â ¾ðÁ¦¶óµµ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù¸¸, Åë»óÀº, ½Ã½ºÅÛÀÌ ½Ì±Û À¯Àú ¸ðµå¿¡ ÀÖÀ» ¶§ ¸¸ ¼³Á¤ ÇØÁ¦ÇÏ´Â °ÍÀÌ º¸ÅëÀÔ´Ï´Ù (»ó¼¼ÇÑ °Í¿¡ ´ëÇÏ¿©´Â .Xr init 8 (À»)¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä). .Sh ¹Ýȯ°ª .Rv -std .Sh ¿¡·¯ .Fn chflags ÀÇ Ã³¸®´Â ÀÌÇÏÀÇ °æ¿ì¿¡ ½ÇÆÐÇÕ´Ï´Ù. .Bl -tag -width Er .It Bq Er ENOTDIR ÆÐ½ºÀÇ ¿ø°¡¿ä¼ÒÁß¿¡ µð·ºÅ丮 ÀÌ¿ÜÀÇ °ÍÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. .It Bq Er ENAMETOOLONG ÆÐ½º¸íÀÇ ¿ø°¡¿ä¼Ò°¡ 255 ij¸¯Å͸¦ ³Ñ°í ÀÖ´ÂÁö, ¶Ç´Â ÆÐ½º¸í Àüü°¡ 1023 ij¸¯Å͸¦ ³Ñ°í ÀÖ½À´Ï´Ù. .It Bq Er ENOENT ÁöÁ¤µÈ ÆÄÀÏÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. .It Bq Er EACCES ÁöÁ¤µÈ ÆÐ½º¿¡´Â, °Ë»öÀÌ Çã°¡µÇ¾î ÀÖÁö ¾ÊÀº µð·ºÅ丮°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù. .It Bq Er ELOOP ÆÐ½º¸íÀ» º¯È¯ÇÒ °æ¿ì¿¡ °ËÃâµÈ ±âÈ£ ¿¬°áÀÌ ³Ê¹« ¸¹½À´Ï´Ù. .It Bq Er EPERM ½ÇÈ¿ À¯Àú ID °¡ ÆÄÀÏÀÇ ¼ÒÀ¯ÀÚ¿Í ÀÏÄ¡ÇÏÁö ¾Ê°í, ÇÑÆí, ½ÇÈ¿ À¯Àú ID °¡ ½´ÆÛ À¯ÀúÀÌÁö ¾Ê½À´Ï´Ù. .It Bq Er EROFS ÁöÁ¤µÈ ÆÄÀÏÀº Àбâ Àü¿ë ÆÄÀÏ ½Ã½ºÅÛ»ó¿¡ ÀÖ½À´Ï´Ù. .It Bq Er EFAULT .Fa path (Àº)´Â, ÇÁ·Î¼¼½º¿¡ ÇÒ´çÇÒ ¼ö ÀÖ¾ú´ø address °ø°£ÀÇ ¹üÀ§¿Ü¸¦ °¡¸®Å°°í ÀÖ½À´Ï´Ù. .It Bq Er EIO ÆÄÀÏ ½Ã½ºÅÛ¿¡ ÀÐ°í ¾²±âÇϰí ÀÖ´Â µ¿¾È¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇß½À´Ï´Ù. .It Bq Er EOPNOTSUPP ÆÄÀÏ ½Ã½ºÅÛÀÌ ÆÄÀÏ Ç÷¡±×¸¦ ¼­Æ÷Æ®ÇÏÁö ¾Ê½À´Ï´Ù. .El .Pp .Fn fchflags ÀÇ Ã³¸®´Â ÀÌÇÏÀÇ °æ¿ì¿¡ ½ÇÆÐÇÕ´Ï´Ù. .Bl -tag -width Er .It Bq Er EBADF ±â¼úÀÚ°¡ À¯È¿ÇÏÁö´Â ¾Ê½À´Ï´Ù. .Pp .It Bq Er EINVAL .Fa fd ÇÏÁö¸¸ ÆÄÀÏÀº ¾Æ´Ï°í ¼ÒÄÏÀ» ÂüÁ¶Çϰí ÀÖ½À´Ï´Ù. .It Bq Er EPERM ½ÇÈ¿ À¯Àú ID °¡ ÆÄÀÏÀÇ ¼ÒÀ¯ÀÚ¿Í ÀÏÄ¡ÇÏÁö ¾Ê°í, ½ÇÈ¿ À¯Àú ID °¡ ½´ÆÛ À¯Àú°¡ ¾Æ´Õ´Ï´Ù. .It Bq Er EROFS ÆÄÀÏÀÌ Àо Àü¿ë ½Ã½ºÅÛ»ó¿¡ Á¸ÀçÇϰí ÀÖ½À´Ï´Ù. .It Bq Er EIO ÆÄÀÏ ½Ã½ºÅÛ¿¡ ÀÐ°í ¾²±âÇϰí ÀÖ´Â µ¿¾È¿¡ ÀÔÃâ·Â ¿¡·¯°¡ ¹ß»ýÇß½À´Ï´Ù. .It Bq Er EOPNOTSUPP ÆÄÀÏ ½Ã½ºÅÛÀÌ ÆÄÀÏ Ç÷¡±×¸¦ ¼­Æ÷Æ®ÇÏÁö ¾Ê½À´Ï´Ù. .El .Sh °ü·Ã Ç׸ñ .Xr chflags 1 , .Xr fflagstostr 3 , .Xr strtofflags 3 , .Xr init 8 , .Xr mount_union 8 .Sh ¿ª»ç .Nm chflags ÇÔ¼ö¿Í .Nm fchflags ÇÔ¼ö´Â .Bx 4.4 ±×¸®°í óÀ½ µîÀåÇß½À´Ï´Ù. .\" Amended by N.Kumagai, 2000-3-18