This section is based on catpages contributed by Mainichi Communications, Inc. Translated by: MYCOM team Converted by: Japanese Online Manual Project <man-jp@jp.FreeBSD.ORG> Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
136 lines
4.2 KiB
Groff
136 lines
4.2 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.
|
||
.\"
|
||
.\" @(#)getfsent.3 8.1 (Berkeley) 6/4/93
|
||
.\"
|
||
.Dd June 4, 1993
|
||
.Dt GETFSENT 3
|
||
.Os BSD 4
|
||
.Sh ̾¾Î
|
||
.Nm getfsent ,
|
||
.Nm getfsspec ,
|
||
.Nm getfsfile ,
|
||
.Nm setfsent ,
|
||
.Nm endfsent
|
||
.Nd ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àµ½Ò¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ
|
||
.Sh ½ñ¼°
|
||
.Fd #include <fstab.h>
|
||
.Ft struct fstab *
|
||
.Fn getfsent void
|
||
.Ft struct fstab *
|
||
.Fn getfsspec "const char *spec"
|
||
.Ft struct fstab *
|
||
.Fn getfsfile "const char *file"
|
||
.Ft int
|
||
.Fn setfsent void
|
||
.Ft void
|
||
.Fn endfsent void
|
||
.Sh ²òÀâ
|
||
.Fn getfsent ,
|
||
.Fn getfsspec ,
|
||
¤ª¤è¤Ó
|
||
.Fn getfsfile
|
||
´Ø¿ô¤Ï¤½¤ì¤¾¤ì¡¢¼¡¤Ë¼¨¤¹¹½Â¤ÂΤò»ý¤Ä¥ª¥Ö¥¸¥§¥¯¥È¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£
|
||
¹½Â¤ÂΤˤϡ¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àµ½Ò¥Õ¥¡¥¤¥ë
|
||
.Aq Pa fstab.h
|
||
¤Ë¤¢¤ë¹Ô¤ÎÆâÌõ¥Õ¥£¡¼¥ë¥É¤¬´Þ¤Þ¤ì¤Þ¤¹¡£
|
||
.Bd -literal -offset indent
|
||
struct fstab {
|
||
char *fs_spec; /* ¥Ö¥í¥Ã¥¯ÆÃ¼ì¥Ç¥Ð¥¤¥¹Ì¾ */
|
||
char *fs_file; /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ñ¥¹¥×¥ì¥Õ¥£¥Ã¥¯¥¹ */
|
||
char *fs_vfstype; /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¿¥¤¥×, ufs, nfs */
|
||
char *fs_mntops; /* ¥Þ¥¦¥ó¥È¥ª¥×¥·¥ç¥ó -o */
|
||
char *fs_type; /* fs_mntops ¤«¤é¤Î FSTAB_* */
|
||
int fs_freq; /* ¥À¥ó¥×ÉÑÅÙ, Ãë´Ö */
|
||
int fs_passno; /* ¥Ñ¥é¥ì¥ë fsck ¤Î¥Ð¥¹ÈÖ¹æ */
|
||
};
|
||
.Ed
|
||
.Pp
|
||
¤³¤ì¤é¤Î¥Õ¥£¡¼¥ë¥É¤Ï¤½¤ì¤¾¤ì¡¢
|
||
.Xr fstab 5
|
||
¤Ëµ½Ò¤µ¤ì¤¿°ÕÌ£¤ò»ý¤Á¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn setfsent
|
||
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¤Þ¤¹(Á°¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤¿¤Û¤«¤Î¥Õ¥¡¥¤¥ë¤Ï
|
||
¥¯¥í¡¼¥º¤µ¤ì¤Þ¤¹)¡£¤Þ¤¿¤Ï¡¢ÌÜŪ¤Î¥Õ¥¡¥¤¥ë¤¬¤¹¤Ç¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì
|
||
¹ç¤Ï¥ê¥ï¥¤¥ó¥É¤·¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn endfsent
|
||
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤·¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn getfsspec
|
||
¤ª¤è¤Ó
|
||
.Fn getfsfile
|
||
´Ø¿ô¤Ï¡¢ÌÜŪ¤Î¥Õ¥¡¥¤¥ë¤Ç(ɬÍפʤé¤Ð¤½¤ì¤ò¥ª¡¼¥×¥ó¤·¤Æ)¡¢Å¬¹ç¤¹¤ëÆÃ¼ì¥Õ¥¡
|
||
¥¤¥ë̾¤Þ¤¿¤Ï¥·¥¹¥Æ¥à¥Õ¥¡¥¤¥ë̾¤ò¸¡º÷¤·¤Þ¤¹¡£
|
||
.Pp
|
||
¥Ç¡¼¥¿¥Ù¡¼¥¹Á´ÂΤòÆÉ¤ß¹þ¤à¥×¥í¥°¥é¥à¤Î¾ì¹ç¡¢
|
||
.Fn getfsent
|
||
¤Ï¼¡¤Î¥¨¥ó¥È¥ê¤ò(ɬÍפʤé¤ÐÌÜŪ¤Î¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤·¤Æ)ÆÉ¤ß¹þ¤ß¤Þ¤¹¡£
|
||
.Pp
|
||
.Dv FSTAB_XX
|
||
¤ÈÅù²Á¤Î¥¿¥¤¥×¥Õ¥£¡¼¥ë¥É¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤Î¡¢¥¨¥ó¥È¥ê¤Ï¤¹¤Ù¤ÆÌµ»ë¤µ¤ì¤Þ¤¹¡£
|
||
.Sh Ìá¤êÃÍ
|
||
.Fn getfsent ,
|
||
.Fn getfsspec ,
|
||
¤ª¤è¤Ó
|
||
.Fn getfsfile
|
||
´Ø¿ô¤Ï¡¢
|
||
.Dv EOF
|
||
¤Þ¤¿¤Ï¥¨¥é¡¼¤Ç
|
||
.Dv NULL
|
||
¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Fn setfsent
|
||
´Ø¿ô¤Ï¼ºÇÔ¤·¤¿¾ì¹ç 0¤ò¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 1¤òÊÖ¤·¤Þ¤¹¡£
|
||
.Fn endfsent
|
||
´Ø¿ô¤ÎÌá¤êÃͤϤ¢¤ê¤Þ¤»¤ó¡£
|
||
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
||
.Bl -tag -width /etc/fstab -compact
|
||
.It Pa /etc/fstab
|
||
.El
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr fstab 5
|
||
.Sh Îò»Ë
|
||
.Fn getfsent
|
||
´Ø¿ô¤Ï
|
||
.Bx 4.0
|
||
¤ÇºÇ½é¤Ë¼è¤êÆþ¤ì¤é¤ì¤Þ¤·¤¿¡£
|
||
.Fn endfsent ,
|
||
.Fn getfsfile ,
|
||
.Fn getfsspec
|
||
¤ª¤è¤Ó
|
||
.Fn setfsent
|
||
´Ø¿ô¤Ï
|
||
.Bx 4.3
|
||
¤ÇºÇ½é¤ËÅо줷¤Þ¤·¤¿¡£
|
||
.Sh ¥Ð¥°
|
||
¤³¤ì¤é¤Î´Ø¿ô¤ÏÀÅŪ¥Ç¡¼¥¿µ²±°è¤ò»ÈÍѤ·¤Þ¤¹¡£¥Ç¡¼¥¿¤¬¸å¤ÇɬÍפˤʤë¾ì¹ç¤Ï¡¢
|
||
°Ê¸å¤Î¸Æ¤Ó½Ð¤·¤Ç¾å½ñ¤¤¹¤ëÁ°¤Ë¡¢¥³¥Ô¡¼¤·¤ÆÊݸ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|