128 lines
4.4 KiB
Groff
128 lines
4.4 KiB
Groff
.\" Copyright (c) 1983, 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.
|
|
.\"
|
|
.\" @(#)symlink.2 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/sys/symlink.2,v 1.13 2001/10/01 16:09:03 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd June 4, 1993
|
|
.Dt SYMLINK 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm symlink
|
|
.Nd ¥Õ¥¡¥¤¥ë¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ÎºîÀ®
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In unistd.h
|
|
.Ft int
|
|
.Fn symlink "const char *name1" "const char *name2"
|
|
.Sh ²òÀâ
|
|
.Fa name1
|
|
¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯
|
|
.Fa name2
|
|
¤¬ºîÀ®¤µ¤ì¤Þ¤¹
|
|
.Pf ( Fa name2
|
|
¤ÏºîÀ®¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ç¡¢
|
|
.Fa name1
|
|
¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ÎºîÀ®¤Ë»ÈÍѤµ¤ì¤ëʸ»úÎó¤Ç¤¹)¡£
|
|
¤É¤Á¤é¤Î̾Á°¤âǤ°Õ¤Î¥Ñ¥¹Ì¾¤Ç¤¹¡£
|
|
¥Õ¥¡¥¤¥ë¤¬Æ±¤¸¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¸ºß¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std symlink
|
|
.Sh ¥¨¥é¡¼
|
|
°Ê²¼¤Î¤è¤¦¤Ê¾ì¹ç¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ï¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er ENOTDIR
|
|
.Fa name2
|
|
¥Ñ¥¹¤Î¹½À®Í×ÁÇÃæ¤Ë¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¤â¤Î¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENAMETOOLONG
|
|
¥Ñ¥¹Ì¾¤Î¹½À®Í×ÁǤ¬ 255 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤ë¤«¡¢
|
|
¤Þ¤¿¤Ï¥Ñ¥¹Ì¾Á´ÂΤ¬ 1023 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENOENT
|
|
»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EACCES
|
|
.Fa name2
|
|
»ØÄꤵ¤ì¤¿¥Ñ¥¹¤Ë¤Ï¡¢¸¡º÷¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¥£¥ì¥¯¥È¥ê¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ELOOP
|
|
¥Ñ¥¹Ì¾¤òÊÑ´¹¤¹¤ë¤È¤¤Ë¸¡½Ð¤µ¤ì¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤Þ¤¹¡£
|
|
.It Bq Er EEXIST
|
|
.Fa name2
|
|
¤¬¤¹¤Ç¤Ë¸ºß¤·¤Þ¤¹¡£
|
|
.It Bq Er EIO
|
|
.Fa name2
|
|
¤Î¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤ÎºîÀ®Ãæ¡¢¤Þ¤¿¤Ï
|
|
.Fa name2
|
|
¤Î inode ¤Î³ä¤êÅö¤ÆÃæ¡¢¤¢¤ë¤¤¤Ï
|
|
.Fa name2
|
|
¤Î¥ê¥ó¥¯¥³¥ó¥Æ¥ó¥Ä¤Î½ñ¤½Ð¤·Ãæ¤ËÆþ½ÐÎÏ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EROFS
|
|
¥Õ¥¡¥¤¥ë
|
|
.Fa name2
|
|
¤ÏÆÉ¼è¤êÀìÍÑ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¤¢¤ê¤Þ¤¹¡£
|
|
.It Bq Er ENOSPC
|
|
¿·¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò´Þ¤à¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë
|
|
¶õ´Ö¤¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¤¿¤á¡¢¿·¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤Ç¤¤Þ¤»¤ó¡£
|
|
.It Bq Er ENOSPC
|
|
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò´Þ¤à¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò
|
|
ºî¤ë¶õ´Ö¤¬»Ä¤Ã¤Æ¤¤¤Ê¤¤¤¿¤á¡¢¿·¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤Ç¤¤Þ¤»¤ó¡£
|
|
.It Bq Er ENOSPC
|
|
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î inode ¤¬¸Ï³é¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EDQUOT
|
|
¿·¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¥¨¥ó¥È¥ê¤òÇÛÃÖ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ò´Þ¤à
|
|
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥æ¡¼¥¶¤Î¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤¬¸Ï³é¤·¤¿¤¿¤á¡¢ºîÀ®¤Ç¤¤Þ¤»¤ó¡£
|
|
.It Bq Er EDQUOT
|
|
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºî¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥æ¡¼¥¶¤Î¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤Î
|
|
¥¯¥©¡¼¥¿¤¬¸Ï³é¤·¤¿¤¿¤á¡¢¿·¤·¤¤¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤Ç¤¤Þ¤»¤ó¡£
|
|
.It Bq Er EDQUOT
|
|
¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Î¥æ¡¼¥¶¤Î inode ¤Î
|
|
¥¯¥©¡¼¥¿¤¬¸Ï³é¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EIO
|
|
¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤ÎºîÀ®Ãæ¡¢¤Þ¤¿¤Ï inode ¤Î³ä¤êÅö¤ÆÃæ¤Ë
|
|
Æþ½ÐÎÏ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.It Bq Er EFAULT
|
|
.Fa name1
|
|
¤«
|
|
.Fa name2
|
|
¤¬¡¢¥×¥í¥»¥¹¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö¤ÎÈϰϳ°¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr ln 1 ,
|
|
.Xr link 2 ,
|
|
.Xr lstat 2 ,
|
|
.Xr readlink 2 ,
|
|
.Xr unlink 2 ,
|
|
.Xr symlink 7
|
|
.Sh Îò»Ë
|
|
.Fn symlink
|
|
´Ø¿ô¸Æ¤Ó½Ð¤·¤Ï¡¢
|
|
.Bx 4.2
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|