]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
1 | --- getmntinfo.3.orig 2010-06-17 09:25:28.000000000 -0700 |
2 | +++ getmntinfo.3 2010-06-17 09:26:43.000000000 -0700 | |
3 | @@ -28,28 +28,37 @@ | |
34e8f829 | 4 | .\" @(#)getmntinfo.3 8.1 (Berkeley) 6/9/93 |
1f2f436a | 5 | .\" $FreeBSD: src/lib/libc/gen/getmntinfo.3,v 1.13 2007/01/09 00:27:54 imp Exp $ |
34e8f829 A |
6 | .\" |
7 | -.Dd June 9, 1993 | |
1f2f436a | 8 | +.Dd May 4, 2010 |
34e8f829 A |
9 | .Dt GETMNTINFO 3 |
10 | .Os | |
11 | .Sh NAME | |
12 | .Nm getmntinfo | |
1f2f436a | 13 | +.Nm getmntinfo64 |
34e8f829 A |
14 | .Nd get information about mounted file systems |
15 | -.Sh LIBRARY | |
16 | -.Lb libc | |
17 | .Sh SYNOPSIS | |
18 | .In sys/param.h | |
19 | .In sys/ucred.h | |
224c7076 A |
20 | .In sys/mount.h |
21 | .Ft int | |
22 | .Fn getmntinfo "struct statfs **mntbufp" "int flags" | |
34e8f829 | 23 | +.Sh TRANSITIIONAL SYNOPSIS (NOW DEPRECATED) |
224c7076 | 24 | +.Ft int |
34e8f829 A |
25 | +.br |
26 | +.Fn getmntinfo64 "struct statfs64 **mntbufp" "int flags" ; | |
224c7076 A |
27 | .Sh DESCRIPTION |
28 | The | |
29 | .Fn getmntinfo | |
30 | function | |
31 | returns an array of | |
32 | -.Fn statfs | |
33 | +.Ft statfs | |
34 | structures describing each currently mounted file system (see | |
35 | .Xr statfs 2 ) . | |
1f2f436a A |
36 | +As |
37 | +.Xr statfs 2 | |
38 | +indicates, the structure is defined differently depending on | |
39 | +whether the macro _DARWIN_FEATURE_64_BIT_INODE is defined (see | |
40 | +.Xr stat 2 | |
41 | +for more information on this macro). | |
224c7076 | 42 | .Pp |
1f2f436a | 43 | The |
224c7076 | 44 | .Fn getmntinfo |
1f2f436a | 45 | @@ -82,9 +91,26 @@ routines |
34e8f829 A |
46 | .Xr getfsstat 2 |
47 | or | |
48 | .Xr malloc 3 . | |
34e8f829 A |
49 | +.Sh TRANSITIONAL DESCRIPTION (NOW DEPRECATED) |
50 | +The | |
224c7076 | 51 | +.Fn getmntinfo64 |
34e8f829 A |
52 | +routine is equivalent to its corresponding non-64-suffixed routine, |
53 | +when 64-bit inodes are in effect. | |
54 | +It was added before there was support for the symbol variants, and so is | |
55 | +now deprecated. | |
56 | +Instead of using it, set the | |
57 | +.Dv _DARWIN_USE_64_BIT_INODE | |
58 | +macro before including header files to force 64-bit inode support. | |
59 | +.Pp | |
60 | +The | |
61 | +.Ft statfs64 | |
62 | +structure used by this deprecated routine is the same as the | |
63 | +.Ft statfs | |
64 | +structure when 64-bit inodes are in effect. | |
34e8f829 A |
65 | .Sh SEE ALSO |
66 | .Xr getfsstat 2 , | |
67 | .Xr mount 2 , | |
1f2f436a A |
68 | +.Xr stat 2 , |
69 | .Xr statfs 2 , | |
70 | .Xr mount 8 | |
71 | .Sh HISTORY |