doc/documentation/manual-pages/ja/man2/fhopen.2
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

143 lines
3.8 KiB
Groff

.\" %NetBSD: fhopen.2,v 1.1 1999/06/30 01:32:15 wrstuden Exp %
.\"
.\" Copyright (c) 1999 National Aeronautics & Space Administration
.\" All rights reserved.
.\"
.\" This software was written by William Studenmund of the
.\" Numerical Aerospace Simulation Facility, NASA Ames Research Center.
.\"
.\" 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. Neither the name of the National Aeronautics & Space Administration
.\" 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 NATIONAL AERONAUTICS & SPACE ADMINISTRATION
.\" ``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 ADMINISTRATION OR CONTRIB-
.\" UTORS 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.
.\"
.\" %FreeBSD: src/lib/libc/sys/fhopen.2,v 1.15 2002/12/27 12:15:29 schweikh Exp %
.\" $FreeBSD$
.\"
.Dd June 29, 1999
.Dt FHOPEN 2
.Os
.Sh ̾¾Î
.Nm fhopen ,
.Nm fhstat ,
.Nm fhstatfs
.Nd ¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë¤Ë¤è¤ë¥Õ¥¡¥¤¥ë¥¢¥¯¥»¥¹
.Sh ¥é¥¤¥Ö¥é¥ê
.Lb libc
.Sh ½ñ¼°
.In sys/param.h
.In sys/mount.h
.In sys/stat.h
.Ft int
.Fn fhopen "const fhandle_t *fhp" "int flags"
.Ft int
.Fn fhstat "const fhandle_t *fhp" "struct stat *sb"
.Ft int
.Fn fhstatfs "const fhandle_t *fhp" "struct statfs *buf"
.Sh ²òÀâ
¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë
.Fa fhp
¤ÇÅϤµ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë¥¢¥¯¥»¥¹¤¹¤ë¼êÃʤòÄ󶡤·¤Þ¤¹¡£
¤³¤ÎÊýË¡¤Ï¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¢¥¯¥»¥¹À©¸Â¤ò¥Ð¥¤¥Ñ¥¹¤¹¤ë¤Î¤Ç¡¢
¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î»ÈÍѤϥ¹¡¼¥Ñ¥æ¡¼¥¶¤Ë¸ÂÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£
.Pp
.Fn fhopen
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
.Fa fhp
¤¬»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¤ò
.Fa flags
¤Ç»ØÄê¤Ë¤·¤¿¤¬¤Ã¤ÆÆÉ¼è¤ê/½ñ¹þ¤ß/ÆÉ¤ß½ñ¤­ÍѤ˥ª¡¼¥×¥ó¤·¡¢
¸Æ¤Ó½Ð¤·¤¿¥×¥í¥»¥¹¤Ë¥Õ¥¡¥¤¥ëµ­½Ò»Ò¤òÊÖ¤·¤Þ¤¹¡£
.Fa flags
°ú¿ô¤Ï¡¢
.Xr open 2
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ç»È¤ï¤ì¤ë³Æ¼ï¥Õ¥é¥°¤Î
.Em or
¤ò¤È¤Ã¤Æ»ØÄꤷ¤Þ¤¹¡£
¤¿¤À¤·¡¢¥Õ¥é¥°¤Î¤¦¤Á
.Dv O_CREAT
¤Ï»È¤¨¤Þ¤»¤ó¡£
.Pp
.Fn fhstat
¤È
.Fn fhstatfs
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ç¤Ï¤Ê¤¯¡¢
.Fa fhp
¤Ë¤è¤Ã¤Æ»Ø¤·¼¨¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Î¾ðÊó¤òÊÖ¤¹¤³¤È¤ò½ü¤¤¤Æ
.Xr fstat 2
¤È
.Xr fstatfs 2
¸Æ¤Ó½Ð¤·¤ÈƱÅù¤Îµ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£
.Sh Ìá¤êÃÍ
½èÍý¤¬Àµ¾ï¤Ë´°Î»¤¹¤ë¤È¡¢
.Fn fhopen
¤Ï¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Îµ­½Ò»Ò¤òÊÖ¤·¤Þ¤¹¡£
¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ï -1 ¤¬ÊÖ¤µ¤ì¡¢¥¨¥é¡¼¤ò¼¨¤¹¤¿¤á¤Ë
.Va errno
¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
.Pp
.Rv -std fhstat fhstatfs
.Sh ¥¨¥é¡¼
.Xr open 2 ,
.Xr fstat 2 ,
.Xr fstatfs 2
¤Î¤½¤ì¤¾¤ì¤ÎÊÖ¤¹¥¨¥é¡¼¤Ë²Ã¤¨¤Æ
.Fn fhopen ,
.Fn fhstat ,
.Fn fhstatfs
¤Ï¼¡¤Î¥¨¥é¡¼¤òÊÖ¤·¤Þ¤¹:
.Bl -tag -width Er
.It Bq Er EINVAL
.Fn fhopen
¤¬
.Dv O_CREAT
¤ò¥»¥Ã¥È¤µ¤ì¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤·¤¿¡£
.It Bq Er ESTALE
¥Õ¥¡¥¤¥ë¥Ï¥ó¥É¥ë
.Fa fhp
¤Ï¤â¤¦Í­¸ú¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
.El
.Sh ´ØÏ¢¹àÌÜ
.Xr fstat 2 ,
.Xr fstatfs 2 ,
.Xr getfh 2 ,
.Xr open 2
.Sh Îò»Ë
´Ø¿ô
.Fn fhopen ,
.Fn fhstat ,
¤ª¤è¤Ó
.Fn fhstatfs
¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï
.Nx 1.5
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
.An Alfred Perlstein
¤¬
.Fx 4.0
¤Ë°Ü¿¢¤·¤Þ¤·¤¿¡£
.Sh ºî¼Ô
¤³¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ï
.An William Studenmund
¤Ë¤è¤Ã¤Æ
.Nx
ÍѤ˽ñ¤«¤ì¤Þ¤·¤¿¡£