OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / release / man3 / getfsent.3
diff --git a/release/man3/getfsent.3 b/release/man3/getfsent.3
deleted file mode 100644 (file)
index 9d63ec9..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-.\" Copyright (C) 2002 Andries Brouwer (aeb@cwi.nl)
-.\"
-.\" %%%LICENSE_START(VERBATIM)
-.\" Permission is granted to make and distribute verbatim copies of this
-.\" manual provided the copyright notice and this permission notice are
-.\" preserved on all copies.
-.\"
-.\" Permission is granted to copy and distribute modified versions of this
-.\" manual under the conditions for verbatim copying, provided that the
-.\" entire resulting derived work is distributed under the terms of a
-.\" permission notice identical to this one.
-.\"
-.\" Since the Linux kernel and libraries are constantly changing, this
-.\" manual page may be incorrect or out-of-date.  The author(s) assume no
-.\" responsibility for errors or omissions, or for damages resulting from
-.\" the use of the information contained herein.  The author(s) may not
-.\" have taken the same level of care in the production of this manual,
-.\" which is licensed free of charge, as they might when working
-.\" professionally.
-.\"
-.\" Formatted or processed versions of this manual, if unaccompanied by
-.\" the source, must acknowledge the copyright and authors of this work.
-.\" %%%LICENSE_END
-.\"
-.\" Inspired by a page written by Walter Harms.
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" 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"
-.SH 名前
-getfsent, getfsspec, getfsfile, setfsent, endfsent \- fstab エントリーの処理
-.SH 書式
-\fB#include <fstab.h>\fP
-.sp
-\fBvoid endfsent(void);\fP
-.sp
-\fBstruct fstab *getfsent(void);\fP
-.sp
-\fBstruct fstab *getfsfile(const char *\fP\fImount_point\fP\fB);\fP
-.sp
-\fBstruct fstab *getfsspec(const char *\fP\fIspecial_file\fP\fB);\fP
-.sp
-\fBint setfsent(void);\fP
-.SH 説明
-これらの関数は \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_mntops;     /* mount options */
-    const char *fs_type;       /* rw/rq/ro/sw/xx option */
-    int         fs_freq;       /* dump frequency, in days */
-    int         fs_passno;     /* pass number on parallel dump */
-};
-.fi
-.in
-.PP
-*BSD システムの場合、 \fIfs_type\fP フィールドには、5 つの文字列 "rw", "rq", "ro", "sw", "xx"
-のいずれかが入る (それぞれ read\-write, quota 付き read\-write, read\-only, swap, ignore)。
-
-関数 \fBsetfsent\fP()  は呼び出されると fstab ファイルをオープンし、 最初の行に移動する。
-.LP
-関数 \fBgetfsent\fP()  は fstab ファイルから次の行をパースする (必要な場合はファイルをオープンする)。
-.LP
-関数 \fBendfsent\fP()  は呼び出されると fstab ファイルをクローズする。
-.LP
-関数 \fBgetfsspec\fP()  は fstab ファイルを先頭から検索し、 \fIfs_spec\fP フィールドが \fIspecial_file\fP
-引数にマッチするエントリーが見つかったら、その最初のものを返す。
-.LP
-関数 \fBgetfsfile\fP()  は fstab ファイルを先頭から検索し、 \fIfs_file\fP フィールドが \fImount_point\fP
-引数にマッチするエントリーが見つかったら、その最初のものを返す。
-.SH 返り値
-.\" .SH HISTORY
-.\" The
-.\" .BR getfsent ()
-.\" 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 準拠
-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 注意
-これらの関数はスレッドセーフではない。
-.LP
-Linux ではブロックスペシャルデバイスを複数の場所にマウントでき、 また複数のデバイスが同じマウントポイントを共有できる
-(この場合はそのマウントポイントに最後にマウントされたデバイスが意味を持つ)  が、 \fBgetfsfile\fP()  と \fBgetfsspec\fP()
-はマッチした最初のエントリーしか返さないので、 これらの 2 つの関数は Linux での利用には適していない。
-.SH 関連項目
-\fBgetmntent\fP(3), \fBfstab\fP(5)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。