OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / release / man3 / statvfs.3
diff --git a/release/man3/statvfs.3 b/release/man3/statvfs.3
deleted file mode 100644 (file)
index c426f42..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-.\" Copyright (C) 2003 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
-.\"
-.\" The pathconf note is from Walter Harms
-.\" This is not a system call on Linux
-.\"
-.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
-.\"         all rights reserved.
-.\" Translated Tue Jun 29 23:36:41 JST 2004
-.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
-.\" Updated & Modified Sun Jan  9 22:50:29 JST 2005 by Yuichi SATO
-.\"
-.TH STATVFS 3 2013\-09\-26 Linux "Linux Programmer's Manual"
-.SH 名前
-statvfs, fstatvfs \- ファイルシステムの統計を取得する
-.SH 書式
-\fB#include <sys/statvfs.h>\fP
-.sp
-\fBint statvfs(const char *\fP\fIpath\fP\fB, struct statvfs *\fP\fIbuf\fP\fB);\fP
-.br
-\fBint fstatvfs(int \fP\fIfd\fP\fB, struct statvfs *\fP\fIbuf\fP\fB);\fP
-.SH 説明
-関数 \fBstatvfs\fP()  はマウントされたファイルシステムについての情報を返す。 \fIpath\fP
-はマウントされたファイルシステム中の任意のファイルのパス名である。 \fIbuf\fP は、だいたい以下のように定義されている \fIstatvfs\fP
-構造体へのポインターである:
-
-.in +4n
-.nf
-struct statvfs {
-    unsigned long  f_bsize;    /* ファイルシステムのブロックサイズ */
-    unsigned long  f_frsize;   /* フラグメントサイズ */
-    fsblkcnt_t     f_blocks;   /* ファイルシステムのサイズ (f_frsize 単位) */
-    fsblkcnt_t     f_bfree;    /* 解放されているブロック数 */
-    fsblkcnt_t     f_bafvail;   /* 非特権ユーザー用に解放されているブロック数 */
-    fsfilcnt_t     f_files;    /* inode 数 */
-    fsfilcnt_t     f_ffree;    /* 解放されている inode の数 */
-    fsfilcnt_t     f_favail;   /* 非特権ユーザー用に解放されている inode の数 */
-    unsigned long  f_fsid;     /* ファイルシステム ID */
-    unsigned long  f_flag;     /* マウントフラグ */
-    unsigned long  f_namemax;  /* ファイル名の長さの最大値 */
-};
-.fi
-.in
-
-ここで、型 \fIfsblkcnt_t\fP と \fIfsfilcnt_t\fP は \fI<sys/types.h>\fP で定義されている。
-かつて、これらは共に \fIunsigned long\fP であった。
-
-フィールド \fIf_flag\fP は (マウントフラグの) ビットマスクである (マウントフラグについては、 \fBmount\fP(8)  を参照すること)。
-POSIX で定義されているビットは以下の通り:
-.TP 
-\fBST_RDONLY\fP
-読み込み専用のファイルシステム。
-.TP 
-\fBST_NOSUID\fP
-\fBexec\fP(3)  に無視される set\-user\-id/set\-group\-ID ビット。
-.LP
-返された構造体の全てのメンバが全てのファイルシステムで 意味のある値であるか否かは、指定されていない。
-
-\fBfstatvfs\fP()  は、ディスクリプター \fIfd\fP で参照されるオープンされたファイルについて、同じ情報を返す。
-.SH 返り値
-成功した場合、0 が返される。 失敗した場合、 \-1 が返され、 \fIerrno\fP に適切な値がセットされる。
-.SH エラー
-.TP 
-\fBEACCES\fP
-(\fBstatvfs\fP()  の場合)  \fIpath\fP のディレクトリ部分に検索許可が与えられていない (\fBpath_resolution\fP(7)
-も参照すること)。
-.TP 
-\fBEBADF\fP
-(\fBfstatvfs\fP()  の場合)  \fIfd\fP が有効なオープンファイルディスクリプターではない。
-.TP 
-\fBEFAULT\fP
-\fIbuf\fP または \fIpath\fP が無効なアドレスを指している。
-.TP 
-\fBEINTR\fP
-この呼び出しがシグナルで中断された。
-.TP 
-\fBEIO\fP
-ファイルシステムからの読み込みの間に I/O エラーが発生した。
-.TP 
-\fBELOOP\fP
-(\fBstatvfs\fP()  の場合)  \fIpath\fP にシンボリックリンクが多すぎる。
-.TP 
-\fBENAMETOOLONG\fP
-(\fBstatvfs\fP()  の場合)  \fIpath\fP が長すぎる。
-.TP 
-\fBENOENT\fP
-(\fBstatvfs\fP()  の場合)  \fIpath\fP で参照されるファイルが存在しない。
-.TP 
-\fBENOMEM\fP
-十分なカーネルメモリーがない。
-.TP 
-\fBENOSYS\fP
-ファイルシステムがこの呼び出しをサポートしていない。
-.TP 
-\fBENOTDIR\fP
-(\fBstatvfs\fP()  の場合)  \fIpath\fP のディレクトリ部分がディレクトリでない。
-.TP 
-\fBEOVERFLOW\fP
-いくつかの値が大き過ぎて、返り値の構造体で表現できない。
-.SH 属性
-.SS "マルチスレッディング (pthreads(7) 参照)"
-関数 \fBstatvfs\fP() と \fBfstatvfs\fP()はスレッドセーフである。
-.SH 準拠
-POSIX.1\-2001.
-.SH 注意
-Linux カーネルには、このライブラリコールをサポートするために、 \fBstatfs\fP(2), \fBfstatfs\fP(2)  システムコールがある。
-
-現在の glibc の実装において、
-.sp
-.nf
-   pathconf(path, _PC_REC_XFER_ALIGN);
-   pathconf(path, _PC_ALLOC_SIZE_MIN);
-   pathconf(path, _PC_REC_MIN_XFER_SIZE);
-.fi
-.sp
-は、それぞれ \fIstatvfs(path,buf)\fP の返り値の \fIf_frsize\fP, \fIf_frsize\fP, \fIf_bsize\fP
-フィールドを使う。
-.SH 関連項目
-\fBstatfs\fP(2)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。