109 lines
3.9 KiB
Groff
109 lines
3.9 KiB
Groff
.\" Copyright (c) 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" This code is derived from software contributed to Berkeley by
|
|
.\" Berkeley Software Design, Inc.
|
|
.\"
|
|
.\" 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.
|
|
.\"
|
|
.\" @(#)revoke.2 8.1 (Berkeley) 6/4/93
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt REVOKE 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm revoke
|
|
.Nd ¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹¤ò̵¸ú¤Ë¤¹¤ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.Fd #include <unistd.h>
|
|
.Ft int
|
|
.Fn revoke "const char *path"
|
|
.Sh ²òÀâ
|
|
.Fn revoke
|
|
´Ø¿ô¤Ï¡¢
|
|
.Fa path
|
|
¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¡¢¥·¥¹¥Æ¥àÆâ¤Î¸½ºß¤Î³«¤¤¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î
|
|
¥Õ¥¡¥¤¥ëµ½Ò»Ò¤ò̵¸ú¤Ë¤·¤Þ¤¹¡£
|
|
¤½¤Î¤è¤¦¤Êµ½Ò»Ò¤Ë¤Ä¤¤¤Æ¤Î¸å³¤ÎÁàºî¤Ï¡¢
|
|
²ò½ü¤µ¤ì¤¿¥¥ã¥é¥¯¥¿·¿¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¤«¤é¤Î
|
|
.Fn read
|
|
¤¬¥«¥¦¥ó¥È 0 (¥Õ¥¡¥¤¥ë¤Î½ªÎ») ¤òÊÖ¤·¤Æ¡¢¸å³¤¹¤ë
|
|
.Fn close
|
|
¸Æ¤Ó½Ð¤·¤¬À®¸ù¤¹¤ë¾ì¹ç¤òÎã³°¤È¤·¤Æ¡¢
|
|
½èÍý¤ò¼ºÇÔ¤·¤Þ¤¹¡£
|
|
¤¿¤À¤·¡¢¥Õ¥¡¥¤¥ë¤¬³«¤«¤ì¤¿¥Ç¥Ð¥¤¥¹¤Ë¤Ä¤¤¤Æ¤ÎÆÃ¼ì¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¾ì¹ç¡¢
|
|
¥Ç¥Ð¥¤¥¹¤òÊĤ¸¤ë´Ø¿ô¤Ï¡¢¥Õ¥¡¥¤¥ë¤Ø¤Î¤¹¤Ù¤Æ¤Î³«¤«¤ì¤Æ¤¤¤¿»²¾È¤¬
|
|
ÊĤ¸¤é¤ì¤¿¤â¤Î¤Ç¤¢¤Ã¤¿¤«¤Î¤è¤¦¤Ë¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
¥Õ¥¡¥¤¥ë¤Ø¤Î¥¢¥¯¥»¥¹¤Ï¤½¤Î½êͼԤޤ¿¤Ï
|
|
¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¤è¤Ã¤Æ¤À¤±Ìµ¸ú¤Ë¤µ¤ì¤Þ¤¹¡£
|
|
.Fn revoke
|
|
´Ø¿ô¤Ï¸½»þÅÀ¤Ç¤Ï¥Ö¥í¥Ã¥¯·¿¤ª¤è¤Ó¥¥ã¥é¥¯¥¿·¿ÆÃ¼ì¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¤À¤±
|
|
¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
¤³¤ì¤ÏÄ̾üËö¤ÎÁ°¤Î»ÈÍѼԤˤè¤ë¥¢¥¯¥»¥¹¤òËɻߤ·¡¢
|
|
¿·¤·¤¤¥í¥°¥¤¥ó¥»¥Ã¥·¥ç¥óÍѤËüËö¥Ç¥Ð¥¤¥¹¤ò½àÈ÷
|
|
¤¹¤ë¤Î¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
ÃÍ 0 ¤Ï¸Æ¤Ó½Ð¤·¤¬Àµ¾ï¤Ë´°Î»¤·¤¿¤³¤È¤ò¼¨¤·¤Þ¤¹¡£
|
|
Ìá¤êÃÍ -1 ¤Ï¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¤³¤È¤ò¼¨¤·¡¢Íýͳ¤ò¼¨¤¹¤¿¤á¤Ë
|
|
.Va errno
|
|
¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
|
|
.Sh ¥¨¥é¡¼
|
|
¼¡¤Î¾ì¹ç¤ò½ü¤¤¤Æ¡¢»ØÄê¥Õ¥¡¥¤¥ë¤Ø¤Î¥¢¥¯¥»¥¹¤Ï̵¸ú¤Ë¤µ¤ì¤Þ¤¹¡£
|
|
.Bl -tag -width Er
|
|
.It Bq Er ENOTDIR
|
|
¥Ñ¥¹¤Î¹½À®Í×ÁÇÃæ¤Ë¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¤â¤Î¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENAMETOOLONG
|
|
¥Ñ¥¹Ì¾¤Î¹½À®Í×ÁǤ¬ 255 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤ë¤«¡¢
|
|
¤Þ¤¿¤Ï¥Ñ¥¹Ì¾Á´ÂΤ¬ 1024 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENOENT
|
|
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï¥Ñ¥¹Ì¾¤Î¹½À®Í×ÁǤ¬Â¸ºß¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EACCES
|
|
Á°Ã֥ѥ¹Ì¾¤Î¹½À®Í×ÁǤˤĤ¤¤Æ¸¡º÷µö²Ä¤¬µñÈݤµ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ELOOP
|
|
¥Ñ¥¹Ì¾¤òÊÑ´¹¤¹¤ë¤È¤¤Ë¸¡½Ð¤µ¤ì¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤Þ¤¹¡£
|
|
.It Bq Er EFAULT
|
|
.Fa path
|
|
¤Ï¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö¤ÎÈϰϳ°¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er EINVAL
|
|
¥·¥¹¥Æ¥à¤Ï¡¢»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ
|
|
.Fn revoke
|
|
Áàºî¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EPERM
|
|
¸Æ¤Ó½Ð¤·Â¦¤¬¥Õ¥¡¥¤¥ë¤Î½êͼԤǤ⥹¡¼¥Ñ¥æ¡¼¥¶¤Ç¤â¤¢¤ê¤Þ¤»¤ó¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr close 2
|
|
.Sh Îò»Ë
|
|
.Fn revoke
|
|
´Ø¿ô¤Ï
|
|
.Bx 4.3 Reno
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|