OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / statvfs.2
1 .\" Copyright (C) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" The pathconf note is from Walter Harms
24 .\" This is not a system call on Linux
25 .\"
26 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
27 .\"
28 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
29 .\"         all rights reserved.
30 .\" Translated Tue Jun 29 23:36:41 JST 2004
31 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
32 .\" Updated & Modified Sun Jan  9 22:50:29 JST 2005 by Yuichi SATO
33 .\"
34 .TH STATVFS 2 2003-08-22 "Linux" "Linux Programmer's Manual"
35 .SH Ì¾Á°
36 statvfs, fstatvfs \- ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÅý·×¤ò¼èÆÀ¤¹¤ë
37 .SH ½ñ¼°
38 .B #include <sys/statvfs.h>
39 .sp
40 .BI "int statvfs(const char *" path ", struct statvfs *" buf );
41 .br
42 .BI "int fstatvfs(int " fd ", struct statvfs *" buf );
43 .SH ÀâÌÀ
44 ´Ø¿ô
45 .BR statvfs ()
46 ¤Ï¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òÊÖ¤¹¡£
47 .I path
48 ¤Ï¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÃæ¤ÎǤ°Õ¤Î¥Õ¥¡¥¤¥ë¤Î¥Ñ¥¹Ì¾¤Ç¤¢¤ë¡£
49 .I buf
50 ¤Ï¡¢¤À¤¤¤¿¤¤°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë
51 .I statvfs
52 ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤Ç¤¢¤ë:
53
54 .in +4n
55 .nf
56 struct statvfs {
57     unsigned long  f_bsize;    /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º */
58     unsigned long  f_frsize;   /* ¥Õ¥é¥°¥á¥ó¥È¥µ¥¤¥º */
59     fsblkcnt_t     f_blocks;   /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º (f_frsize Ã±°Ì) */
60     fsblkcnt_t     f_bfree;    /* ²òÊü¤µ¤ì¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¿ô */
61     fsblkcnt_t     f_bafvail;   /* ÈóÆø¢¥æ¡¼¥¶ÍѤ˲òÊü¤µ¤ì¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¿ô */
62     fsfilcnt_t     f_files;    /* inode ¿ô */
63     fsfilcnt_t     f_ffree;    /* ²òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô */
64     fsfilcnt_t     f_favail;   /* ÈóÆø¢¥æ¡¼¥¶ÍѤ˲òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô */
65     unsigned long  f_fsid;     /* ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à ID */
66     unsigned long  f_flag;     /* ¥Þ¥¦¥ó¥È¥Õ¥é¥° */
67     unsigned long  f_namemax;  /* ¥Õ¥¡¥¤¥ë̾¤ÎŤµ¤ÎºÇÂçÃÍ */
68 };
69 .fi
70 .in
71
72 ¤³¤³¤Ç¡¢·¿
73 .I fsblkcnt_t
74 ¤È
75 .I fsfilcnt_t
76 ¤Ï
77 .I <sys/types.h>
78 ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
79 ¤«¤Ä¤Æ¡¢¤³¤ì¤é¤Ï¶¦¤Ë
80 .I "unsigned long"
81 ¤Ç¤¢¤Ã¤¿¡£
82
83 ¥Õ¥£¡¼¥ë¥É
84 .I f_flag
85 ¤Ï (¥Þ¥¦¥ó¥È¥Õ¥é¥°¤Î) ¥Ó¥Ã¥È¥Þ¥¹¥¯¤Ç¤¢¤ë
86 (¥Þ¥¦¥ó¥È¥Õ¥é¥°¤Ë¤Ä¤¤¤Æ¤Ï¡¢
87 .BR mount (8)
88 ¤ò»²¾È¤¹¤ë¤³¤È)¡£
89 POSIX ¤ÇÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥Ó¥Ã¥È¤Ï°Ê²¼¤ÎÄ̤ê:
90 .TP
91 .B ST_RDONLY
92 Æɤ߹þ¤ßÀìÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à¡£
93 .TP
94 .B ST_NOSUID
95 .BR exec (3)
96 ¤Ë̵»ë¤µ¤ì¤ë set-user-id/set-group-ID ¥Ó¥Ã¥È¡£
97 .LP
98 ÊÖ¤µ¤ì¤¿¹½Â¤ÂΤÎÁ´¤Æ¤Î¥á¥ó¥Ð¤¬Á´¤Æ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç
99 °ÕÌ£¤Î¤¢¤ëÃͤǤ¢¤ë¤«Èݤ«¤Ï¡¢»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
100
101 .BR fstatvfs ()
102 ¤Ï¡¢¥Ç¥£¥¹¥¯¥ê¥×¥¿
103 .I fd
104 ¤Ç»²¾È¤µ¤ì¤ë¥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¡¢Æ±¤¸¾ðÊó¤òÊÖ¤¹¡£
105 .SH ÊÖ¤êÃÍ
106 À®¸ù¤·¤¿¾ì¹ç¡¢0 ¤¬ÊÖ¤µ¤ì¤ë¡£
107 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
108 .I errno
109 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
110 .SH ¥¨¥é¡¼
111 .TP
112 .B EACCES
113 .RB ( statvfs ()
114 ¤Î¾ì¹ç)
115 .I path
116 ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤Ë¸¡º÷µö²Ä¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤Ê¤¤
117 .RB ( path_resolution (7)
118 ¤â»²¾È¤¹¤ë¤³¤È)¡£
119 .TP
120 .B EBADF
121 .RB ( fstatvfs ()
122 ¤Î¾ì¹ç)
123 .I fd
124 ¤¬Í­¸ú¤Ê¥ª¡¼¥×¥ó¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ï¤Ê¤¤¡£
125 .TP
126 .B EFAULT
127 .I buf
128 ¤Þ¤¿¤Ï
129 .I path
130 ¤¬Ìµ¸ú¤Ê¥¢¥É¥ì¥¹¤ò»Ø¤·¤Æ¤¤¤ë¡£
131 .TP
132 .B EINTR
133 ¤³¤Î¸Æ¤Ó½Ð¤·¤¬¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤ÆÃæÃǤµ¤ì¤¿¡£
134 .TP
135 .B EIO
136 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤«¤éÆɤ߽Ф·¤Æ¤¤¤ë´Ö¤Ë I/O ¥¨¥é¡¼¤¬È¯À¸¤·¤¿¡£
137 .TP
138 .B ELOOP
139 .RB ( statvfs ()
140 ¤Î¾ì¹ç)
141 .I path
142 ¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤¬Â¿¤¹¤®¤ë¡£
143 .TP
144 .B ENAMETOOLONG
145 .RB ( statvfs ()
146 ¤Î¾ì¹ç)
147 .I path
148 ¤¬Ä¹¤¹¤®¤ë¡£
149 .TP
150 .B ENOENT
151 .RB ( statvfs ()
152 ¤Î¾ì¹ç)
153 .I path
154 ¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¡£
155 .TP
156 .B ENOMEM
157 ½½Ê¬¤Ê¥«¡¼¥Í¥ë¥á¥â¥ê¤¬»ÈÍѤǤ­¤Ê¤¤¡£
158 .TP
159 .B ENOSYS
160 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¤³¤Î¸Æ¤Ó½Ð¤·¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¡£
161 .TP
162 .B ENOTDIR
163 .RB ( statvfs ()
164 ¤Î¾ì¹ç)
165 .I path
166 ¤Î¥Ç¥£¥ì¥¯¥È¥êÉôʬ¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤¤¡£
167 .TP
168 .B EOVERFLOW
169 ¤¤¤¯¤Ä¤«¤ÎÃͤϡ¢ÊÖ¤µ¤ì¤ë¹½Â¤ÂΤÇɽ¸½¤¹¤ë¤Ë¤ÏÂ礭¤¹¤®¤ë¡£
170 .SH ½àµò
171 POSIX.1-2001.
172 .SH Ãí°Õ
173 Linux ¥«¡¼¥Í¥ë¤Ë¤Ï¡¢¤³¤Î¥é¥¤¥Ö¥é¥ê¥³¡¼¥ë¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤¿¤á¤Ë¡¢
174 .BR statfs (2),
175 .BR fstatfs (2)
176 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬¤¢¤ë¡£
177
178 ¸½ºß¤Î glibc ¤Î¼ÂÁõ¤Ë¤ª¤¤¤Æ¡¢
179 .sp
180 .nf
181    pathconf(path, _PC_REC_XFER_ALIGN);
182    pathconf(path, _PC_ALLOC_SIZE_MIN);
183    pathconf(path, _PC_REC_MIN_XFER_SIZE);
184 .fi
185 .sp
186 ¤Ï¡¢¤½¤ì¤¾¤ì
187 .I "statvfs(path,buf)"
188 ¤ÎÊÖ¤êÃͤÎ
189 .IR f_frsize ,
190 .IR f_frsize ,
191 .I f_bsize
192 ¥Õ¥£¡¼¥ë¥É¤ò»È¤¦¡£
193 .SH ´ØÏ¢¹àÌÜ
194 .BR statfs (2)