OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / getfsent.3
index 04718c4..efe0021 100644 (file)
 .\"
 .\" Inspired by a page written by Walter Harms.
 .\"
-.\" Japanese Version Copyright (c) 2002 NAKANO Takeo all rights reserved.
-.\" Translated Wed 7 Aug 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
+.\"*******************************************************************
 .\"
-.TH GETFSENT 3 2002-02-28 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.\"O getfsent, getfsspec, getfsfile, setfsent, endfsent \- handle fstab entries
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETFSENT 3 2002\-02\-28 Linux "Linux Programmer's Manual"
 .SH 名前
 getfsent, getfsspec, getfsfile, setfsent, endfsent \- fstab エントリの処理
-.\"O .SH SYNOPSIS
 .SH 書式
-.B #include <fstab.h>
+\fB#include <fstab.h>\fP
 .sp
-.B "void endfsent(void);"
+\fBvoid endfsent(void);\fP
 .sp
-.B "struct fstab *getfsent(void);"
+\fBstruct fstab *getfsent(void);\fP
 .sp
-.BI "struct fstab *getfsfile(const char *" mount_point );
+\fBstruct fstab *getfsfile(const char *\fP\fImount_point\fP\fB);\fP
 .sp
-.BI "struct fstab *getfsspec(const char *" special_file );
+\fBstruct fstab *getfsspec(const char *\fP\fIspecial_file\fP\fB);\fP
 .sp
-.B "int setfsent(void);"
-.\"O .SH DESCRIPTION
+\fBint setfsent(void);\fP
 .SH 説明
-.\"O These functions read from the file
-.\"O .IR /etc/fstab .
-.\"O The \fIstruct fstab\fP is defined by:
-これらの関数は
-.I /etc/fstab
-ファイルから情報を読み込む。\fIfstab\fP 構造体は次のように定義されている。
+これらの関数は \fI/etc/fstab\fP ファイルから情報を読み込む。\fIfstab\fP 構造体は次のように定義されている。
 .LP
 .in +4n
 .nf
 struct fstab {
     char       *fs_spec;       /* block device name */
     char       *fs_file;       /* mount point */
-    char       *fs_vfstype;    /* file-system type */
+    char       *fs_vfstype;    /* file\-system type */
     char       *fs_mntops;     /* mount options */
     const char *fs_type;       /* rw/rq/ro/sw/xx option */
     int         fs_freq;       /* dump frequency, in days */
@@ -66,147 +59,38 @@ struct fstab {
 .fi
 .in
 .PP
-.\"O Here the field
-.\"O .I fs_type
-.\"O contains (on a *BSD system)
-.\"O one of the five strings "rw", "rq", "ro", "sw", "xx"
-.\"O (read-write, read-write with quota, read-only, swap, ignore).
-*BSD システムの場合、
-.I fs_type
-フィールドには、5 つの文字列
-"rw", "rq", "ro", "sw", "xx"
-のいずれかが入る
-(それぞれ read-write, quota 付き read-write, read-only, swap, ignore)。
+*BSD システムの場合、 \fIfs_type\fP フィールドには、5 つの文字列 "rw", "rq", "ro", "sw", "xx"
+のいずれかが入る (それぞれ read\-write, quota 付き read\-write, read\-only, swap, ignore)。
 
-.\"O The function
-.\"O .BR setfsent ()
-.\"O opens the file when required and positions it at the first line.
-関数
-.BR setfsent ()
-は呼び出されると fstab ファイルをオープンし、
-最初の行に移動する。
+関数 \fBsetfsent\fP()  は呼び出されると fstab ファイルをオープンし、 最初の行に移動する。
 .LP
-.\"O The function
-.\"O .BR getfsent ()
-.\"O parses the next line from the file.
-.\"O (After opening it when required.)
-関数
-.BR getfsent ()
-は fstab ファイルから次の行をパースする
-(必要な場合はファイルをオープンする)。
+関数 \fBgetfsent\fP()  は fstab ファイルから次の行をパースする (必要な場合はファイルをオープンする)。
 .LP
-.\"O The function
-.\"O .BR endfsent ()
-.\"O closes the file when required.
-関数
-.BR endfsent ()
-は呼び出されると fstab ファイルをクローズする。
+関数 \fBendfsent\fP()  は呼び出されると fstab ファイルをクローズする。
 .LP
-.\"O The function
-.\"O .BR getfsspec ()
-.\"O searches the file from the start and returns the first entry found
-.\"O for which the
-.\"O .I fs_spec
-.\"O field matches the
-.\"O .I special_file
-.\"O argument.
-関数
-.BR getfsspec ()
-は fstab ファイルを先頭から検索し、
-.I fs_spec
-フィールドが
-.I special_file
+関数 \fBgetfsspec\fP()  は fstab ファイルを先頭から検索し、 \fIfs_spec\fP フィールドが \fIspecial_file\fP
 引数にマッチするエントリが見つかったら、その最初のものを返す。
 .LP
-.\"O The function
-.\"O .BR getfsfile ()
-.\"O searches the file from the start and returns the first entry found
-.\"O for which the
-.\"O .I fs_file
-.\"O field matches the
-.\"O .I mount_point
-.\"O argument.
-関数
-.BR getfsfile ()
-は fstab ファイルを先頭から検索し、
-.I fs_file
-フィールドが
-.I mount_point
+関数 \fBgetfsfile\fP()  は fstab ファイルを先頭から検索し、 \fIfs_file\fP フィールドが \fImount_point\fP
 引数にマッチするエントリが見つかったら、その最初のものを返す。
-.\"O .SH "RETURN VALUE"
 .SH 返り値
-.\"O Upon success, the functions
-.\"O .BR getfsent (),
-.\"O .BR getfsfile (),
-.\"O and
-.\"O .BR getfsspec ()
-.\"O return a pointer to a \fIstruct fstab\fP, while
-.\"O .BR setfsent ()
-.\"O returns 1.
-.\"O Upon failure or end-of-file, these functions return NULL and 0, respectively.
-成功すると、
-.BR getfsent (),
-.BR getfsfile (),
-.BR getfsspec ()
-の各関数は \fIfstab\fP 構造体へのポインタを返し、
-.BR setfsent ()
-関数は 1 を返す。
-失敗するとこれらの関数は NULL を返し、
-end-of-file になったら 0 を返す。
-.\"O .\" .SH HISTORY
-.\" .SH 履歴
-.\"O .\" The
-.\"O .\" .BR getfsent ()
-.\"O .\" function appeared in 4.0BSD; the other four functions appeared in 4.3BSD.
+.\" .SH HISTORY
+.\" The
 .\" .BR getfsent ()
-.\" 関数は 4.0BSD で登場した。
-.\" 他の 4 つの関数は 4.3BSD で登場した。
-.\"O .SH "CONFORMING TO"
+.\" function appeared in 4.0BSD; the other four functions appeared in 4.3BSD.
+成功すると、 \fBgetfsent\fP(), \fBgetfsfile\fP(), \fBgetfsspec\fP()  の各関数は \fIfstab\fP
+構造体へのポインタを返し、 \fBsetfsent\fP()  関数は 1 を返す。 失敗するとこれらの関数は NULL を返し、 end\-of\-file
+になったら 0 を返す。
 .SH 準拠
-.\"O These functions are not in POSIX.1-2001.
-.\"O Several operating systems have them,
-.\"O e.g., *BSD, SunOS, Digital UNIX, AIX (which also has a
-.\"O .BR getfstype ()).
-.\"O HP-UX has functions of the same names,
-.\"O that however use a \fIstruct checklist\fP
-.\"O instead of a \fIstruct fstab\fP,
-.\"O and calls these functions obsolete, superseded by
-.\"O .BR getmntent (3).
-POSIX.1-2001 にはこれらの関数は存在しない。
-これらの関数をもつ OS はいくつかあり、
-*BSD, SunOS, Digital UNIX, AIX 等である
-(AIX には
-.BR getfstype ()
-もある)。
-HP-UX にも同名の関数群があるが、
-HP-UX のものは \fIfstab\fP 構造体ではなく \fIchecklist\fP 構造体を用いる。
-またこれらの関数の呼び出しは obsolete で、
-.BR getmntent (3)
-に取って代わられている。
-.\"O .SH NOTES
+POSIX.1\-2001 にはこれらの関数は存在しない。 これらの関数をもつ OS はいくつかあり、 *BSD, SunOS, Digital
+UNIX, AIX 等である (AIX には \fBgetfstype\fP()  もある)。 HP\-UX にも同名の関数群があるが、 HP\-UX のものは
+\fIfstab\fP 構造体ではなく \fIchecklist\fP 構造体を用いる。 またこれらの関数の呼び出しは obsolete で、
+\fBgetmntent\fP(3)  に取って代わられている。
 .SH 注意
-.\"O These functions are not thread-safe.
 これらの関数はスレッドセーフではない。
 .LP
-.\"O Since Linux allows mounting a block special device in several places,
-.\"O and since several devices can have the same mount point, where the
-.\"O last device with a given mount point is the interesting one,
-.\"O while
-.\"O .BR getfsfile ()
-.\"O and
-.\"O .BR getfsspec ()
-.\"O only return the first occurrence, these two functions are not suitable
-.\"O for use under Linux.
-Linux ではブロックスペシャルデバイスを複数の場所にマウントでき、
-また複数のデバイスが同じマウントポイントを共有できる
-(この場合はそのマウントポイントに最後にマウントされたデバイスが意味を持つ)
-が、
-.BR getfsfile ()
-と
-.BR getfsspec ()
-はマッチした最初のエントリしか返さないので、
-これらの 2 つの関数は Linux での利用には適していない。
-.\"O .SH "SEE ALSO"
+Linux ではブロックスペシャルデバイスを複数の場所にマウントでき、 また複数のデバイスが同じマウントポイントを共有できる
+(この場合はそのマウントポイントに最後にマウントされたデバイスが意味を持つ)  が、 \fBgetfsfile\fP()  と \fBgetfsspec\fP()
+はマッチした最初のエントリしか返さないので、 これらの 2 つの関数は Linux での利用には適していない。
 .SH 関連項目
-.BR getmntent (3),
-.BR fstab (5)
+\fBgetmntent\fP(3), \fBfstab\fP(5)