104 lines
3.4 KiB
Groff
104 lines
3.4 KiB
Groff
.\" Copyright (c) 1989, 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.
|
|
.\"
|
|
.\" @(#)getfh.2 8.1 (Berkeley) 6/9/93
|
|
.\" %FreeBSD: src/lib/libc/sys/getfh.2,v 1.15 2004/04/06 09:06:45 dfr Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd April 6, 2004
|
|
.Dt GETFH 2
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm getfh ,
|
|
.Nm lgetfh
|
|
.Nd ¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤òÆÀ¤ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In sys/param.h
|
|
.In sys/mount.h
|
|
.Ft int
|
|
.Fn getfh "const char *path" "fhandle_t *fhp"
|
|
.Ft int
|
|
.Fn lgetfh "const char *path" "fhandle_t *fhp"
|
|
.Sh ²òÀâ
|
|
.Fn getfh
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï»ØÄê¤Î¥Õ¥¡¥¤¥ë¤Þ¤¿¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤ò
|
|
.Fa fhp
|
|
¤¬»Ø¤¹¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Î³ÊǼÎΰè¤ËÊÖ¤·¤Þ¤¹¡£
|
|
.Fn lgetfh
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢»ØÄꤵ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤Ã¤¿¾ì¹ç¤ò½ü¤¤¤Æ
|
|
.Fn getfh
|
|
¤ÈƱÍͤǤ¹¡£
|
|
¤³¤Î¾ì¹ç¤Ë¤Ï
|
|
.Fn lgetfh
|
|
¤Ï¤½¤Î¥ê¥ó¥¯¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òÊÖ¤·¡¢°ìÊý
|
|
.Fn getfh
|
|
¤Ï¤½¤Î¥ê¥ó¥¯¤¬»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òÊÖ¤·¤Þ¤¹¡£
|
|
¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¸ÂÄꤵ¤ì¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Rv -std
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn getfh
|
|
¤ª¤è¤Ó
|
|
.Fn lgetfh
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï°Ê²¼¤Î 1 ¤Ä¤Ç¤â¿¿¤Î¾ì¹ç¡¢½èÍý¤Ë¼ºÇÔ¤·¤Þ¤¹:
|
|
.Bl -tag -width Er
|
|
.It Bq Er ENOTDIR
|
|
.Fa path
|
|
¤Î¹½À®Í×ÁÇÃæ¤Ë¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¤â¤Î¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENAMETOOLONG
|
|
.Fa path
|
|
¤Î¹½À®Í×ÁǤ¬ 255 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤ë¤«¡¢¤Þ¤¿¤Ï
|
|
.Fa path
|
|
¤¬ 1023 ʸ»ú¤ò±Û¤¨¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ENOENT
|
|
.Fa path
|
|
¤¬»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Þ¤»¤ó¡£
|
|
.It Bq Er EACCES
|
|
.Fa path
|
|
¤Ë¸¡º÷¤¬µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¥£¥ì¥¯¥È¥ê¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er ELOOP
|
|
.Fa path
|
|
¤òÊÑ´¹¤¹¤ë¤È¤¤Ë¸¡½Ð¤µ¤ì¤¿¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤Þ¤¹¡£
|
|
.It Bq Er EFAULT
|
|
.Fa fhp
|
|
°ú¿ô¤¬Ìµ¸ú¤Ê¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.It Bq Er EIO
|
|
¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÆÉ¤ß½ñ¤¤·¤Æ¤¤¤ë´Ö¤Ë
|
|
.Tn I/O
|
|
(Æþ½ÐÎÏ) ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡£
|
|
.El
|
|
.Sh Îò»Ë
|
|
.Fn getfh
|
|
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
|
|
.Bx 4.4
|
|
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|