Annotated edit history of
ustat(2) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
USTAT |
|
|
2 |
!!!USTAT |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
NOTES |
|
|
9 |
CONFORMING TO |
|
|
10 |
SEE ALSO |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
ustat - get file system statistics |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__#include |
|
|
20 |
__ /* libc[[45] */ |
|
|
21 |
__#include __ /* glibc2 */ |
|
|
22 |
__int ustat(dev_t__ ''dev''__, struct ustat *__ ''ubuf''__); |
|
|
23 |
__ |
|
|
24 |
!!DESCRIPTION |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
__ustat__ returns information about a mounted file |
|
|
28 |
system. ''dev'' is a device number identifying a device |
|
|
29 |
containing a mounted file system. ''ubuf'' is a pointer |
|
|
30 |
to a ustat structure that contains the following |
|
|
31 |
members: |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
daddr_t f_tfree; /* Total free blocks */ |
|
|
35 |
ino_t f_tinode; /* Number of free inodes */ |
|
|
36 |
char f_fname[[6]; /* Filsys name */ |
|
|
37 |
char f_fpack[[6]; /* Filsys pack name */ |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
The last two fields, f_fname and f_fpack, are not |
|
|
41 |
implemented and will always be filled with null |
|
|
42 |
characters. |
|
|
43 |
!!RETURN VALUE |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
On success, zero is returned and the ustat structure pointed |
|
|
47 |
to by ''ubuf'' will be filled in. On error, -1 is |
|
|
48 |
returned, and ''errno'' is set |
|
|
49 |
appropriately. |
|
|
50 |
!!ERRORS |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__EINVAL__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
''dev'' does not refer to a device containing a mounted |
|
|
57 |
file system. |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
__EFAULT__ |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
''ubuf'' points outside of your accessible address |
|
|
64 |
space. |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
__ENOSYS__ |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
The mounted file system referenced by ''dev'' does not |
|
|
71 |
support this operation, or any version of Linux before |
|
|
72 |
1.3.16. |
|
|
73 |
!!NOTES |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
__ustat__ has only been provided for compatibility. All |
|
|
77 |
new programs should use statfs(2) |
|
|
78 |
instead. |
|
|
79 |
!!CONFORMING TO |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
SVr4. SVr4 documents additional error conditions ENOLINK, |
|
|
83 |
ECOMM, and EINTR but has no ENOSYS condition. |
|
|
84 |
!!SEE ALSO |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
statfs(2), stat(2) |
|
|
88 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.