OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / ustat.2
1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
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 .\" Created  1995-08-09 Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
25 .\" Modified 2001-03-22 by aeb
26 .\" Modified 2003-08-04 by aeb
27 .\"
28 .\" Japanese Version Copyright (c) 1996 HANATAKA Shinya
29 .\"         all rights reserved.
30 .\" Translated Wed Dec  4 23:12:06 JST 1996
31 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\" Updated & Modified Sat May 22 19:00:40 JST 2004
33 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\"
35 .\"WORD:        file system             ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à
36 .\"WORD:        mount                   ¥Þ¥¦¥ó¥È
37 .\"WORD:        device                  ¥Ç¥Ð¥¤¥¹
38 .\"WORD:        member                  ¥á¥ó¥Ð¡¼
39 .\"WORD:        NUL character           ¥Ì¥ëʸ»ú
40 .\"WORD:        implement               ¼ÂÁõ
41 .\"WORD:        pointer                 ¥Ý¥¤¥ó¥¿¡¼
42 .\"
43 .TH USTAT 2 2003-08-04 "Linux" "Linux Programmer's Manual"
44 .SH Ì¾Á°
45 ustat \- ¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à (file system) ¤ÎÅý·×¤òÆÀ¤ë
46 .SH ½ñ¼°
47 .nf
48 .B #include <sys/types.h>
49 .br
50 .BR "#include <unistd.h>" "    /* libc[45] */"
51 .br
52 .BR "#include <ustat.h>" "     /* glibc2 */"
53 .sp
54 .BI "int ustat(dev_t " dev ", struct ustat *" ubuf );
55 .fi
56 .SH ÀâÌÀ
57 .BR ustat ()
58 ¤Ï¥Þ¥¦¥ó¥È (mount) ¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤Î¾ðÊó¤òÊÖ¤¹¡£
59 .I dev
60 ¤ÏÄ´¤Ù¤ë¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤ò´Þ¤ó¤Ç¤¤¤ë¥Ç¥Ð¥¤¥¹ (device) ¤Î
61 ¥Ç¥Ð¥¤¥¹Èֹ档
62 .I ubuf
63 ¤Ï°Ê²¼¤Î¥á¥ó¥Ð¡¼¤ò´Þ¤à ustat ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¡¼:
64 .in +4n
65 .nf
66
67 daddr_t f_tfree;      /* Total free blocks */
68 ino_t   f_tinode;     /* Number of free inodes */
69 char    f_fname[6];   /* Filsys name */
70 char    f_fpack[6];   /* Filsys pack name */
71 .fi
72 .in
73 .PP
74 ¸å¤ÎÆó¤Ä¤Î¥Õ¥£¡¼¥ë¥É
75 .I f_fname
76 ¤È
77 .I f_fpack
78 ¤Ï¼ÂÁõ¤µ¤ì¤Æ¤ª¤é¤º¡¢¾ï¤Ë NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤ÇËä¤á¤é¤ì¤ë¡£
79 .SH ÊÖ¤êÃÍ
80 À®¸ù¤·¤¿¾ì¹ç¤Ë¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¡¢
81 .I ubuf
82 ¤¬»Ø¤¹
83 .I ustat
84 ¹½Â¤ÂΤ¬Ëä¤á¤é¤ì¤ë¡£
85 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
86 .I errno
87 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
88 .SH ¥¨¥é¡¼
89 .TP
90 .B EFAULT
91 .I ubuf
92 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¶õ´Ö¤Î³°Â¦¤ò»Ø¤·¤Æ¤¤¤ë¡£
93 .TP
94 .B EINVAL
95 .I dev
96 ¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤ò´Þ¤à¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤Ê¤¤¡£
97 .TP
98 .B ENOSYS
99 .I dev
100 ¤Ç»²¾È¤µ¤ì¤ë¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥·¥¹¥Æ¥à¤¬¤³¤ÎÁàºî (operation) ¤ò
101 ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¤«¡¢Linux ¤Î¥Ð¡¼¥¸¥ç¥ó¤¬ 1.3.16 °ÊÁ°¤Ç¤¢¤ë¡£
102 .SH ½àµò
103 SVr4.
104 .\" SVr4 ¤Ë¤Ï¾¤Ë ENOLINK, ECOMM, EINTR ¤Ë¤Ä¤¤¤Æ¤Îµ­½Ò¤¬¤¢¤ë¤¬¡¢
105 .\" ENOSYS ¥¨¥é¡¼¤Ë¤Ä¤¤¤Æ¤Îµ­½Ò¤Ï¤Ê¤¤¡£
106 .SH Ãí°Õ
107 .BR ustat ()
108 ¤Ï¿ä¾©¤µ¤ì¤º¡¢¸ß´¹À­¤Î¤¿¤á¤À¤±¤ËÄ󶡤µ¤ì¤ë¡£
109 ¿·¤·¤¤¥×¥í¥°¥é¥à¤ÏÁ´¤Æ¤³¤ì¤ÎÂå¤ê¤Ë
110 .BR statfs (2)
111 ¤ò»ÈÍѤ¹¤ë¤Ù¤­¤Ç¤¢¤ë¡£
112 .SS "HP-UX ¤Ë¤ª¤±¤ëÃí°Õ"
113 HP-UX ÈǤι½Â¤ÂÎ
114 .I ustat
115 ¤Ë¤Ï¡¢¤½¤Î¾¤Ë¥Õ¥£¡¼¥ë¥É
116 .I f_blksize
117 ¤¬Â¸ºß¤¹¤ë¤¬¡¢Â¾¤Ç¤Ï¸«¤«¤±¤Ê¤¤¡£
118 HP-UX ¤Ï¼¡¤Î¤è¤¦¤Ë·Ù¹ð¤·¤Æ¤¤¤ë:
119 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÃæ¤Ë¤Ï¡¢²òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô¤òÊѹ¹¤·¤Ê¤¤¤â¤Î¤â¤¢¤ë¡£
120 ¤³¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢¥Õ¥£¡¼¥ë¥É
121 .I f_tinode
122 ¤Ë \-1 ¤òÊÖ¤¹¡£
123 .\" ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ NFS ¤Ç¤¢¤ë¤«Èݤ«¤ò¥Æ¥¹¥È¤¹¤ë¤¿¤á¤Ë
124 .\" ¤³¤ì¤ò»ÈÍѤ¹¤ë¥½¥Õ¥È¥¦¥§¥¢¤â¤¢¤ë¡£
125 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÃæ¤Ë¤Ï¡¢inode ¤òưŪ¤Ë³ÎÊݤ¹¤ë¤â¤Î¤â¤¢¤ë¡£
126 ¤³¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï¡¢¸½ºß²òÊü¤µ¤ì¤Æ¤¤¤ë inode ¤Î¿ô¤òÊÖ¤¹¡£
127 .SH ´ØÏ¢¹àÌÜ
128 .BR stat (2),
129 .BR statfs (2)