Deleted Added
full compact
getfsstat.2 (107788) getfsstat.2 (108028)
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getfsstat.2 8.3 (Berkeley) 5/25/95
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getfsstat.2 8.3 (Berkeley) 5/25/95
33.\" $FreeBSD: head/lib/libc/sys/getfsstat.2 107788 2002-12-12 17:26:04Z ru $
33.\" $FreeBSD: head/lib/libc/sys/getfsstat.2 108028 2002-12-18 09:22:32Z ru $
34.\"
35.Dd May 25, 1995
36.Dt GETFSSTAT 2
37.Os
38.Sh NAME
39.Nm getfsstat
40.Nd get list of all mounted file systems
41.Sh LIBRARY
42.Lb libc
43.Sh SYNOPSIS
44.In sys/param.h
45.In sys/ucred.h
46.In sys/mount.h
47.Ft int
48.Fn getfsstat "struct statfs *buf" "long bufsize" "int flags"
49.Sh DESCRIPTION
34.\"
35.Dd May 25, 1995
36.Dt GETFSSTAT 2
37.Os
38.Sh NAME
39.Nm getfsstat
40.Nd get list of all mounted file systems
41.Sh LIBRARY
42.Lb libc
43.Sh SYNOPSIS
44.In sys/param.h
45.In sys/ucred.h
46.In sys/mount.h
47.Ft int
48.Fn getfsstat "struct statfs *buf" "long bufsize" "int flags"
49.Sh DESCRIPTION
50.Fn Getfsstat
50The
51.Fn getfsstat
52system call
51returns information about all mounted file systems.
52.Fa Buf
53is a pointer to
54.Xr statfs
55structures defined as follows:
56.Bd -literal
57typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
58

--- 88 unchanged lines hidden (view full) ---

147.Sh RETURN VALUES
148Upon successful completion, the number of
149.Fa fsstat
150structures is returned.
151Otherwise, -1 is returned and the global variable
152.Va errno
153is set to indicate the error.
154.Sh ERRORS
53returns information about all mounted file systems.
54.Fa Buf
55is a pointer to
56.Xr statfs
57structures defined as follows:
58.Bd -literal
59typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
60

--- 88 unchanged lines hidden (view full) ---

149.Sh RETURN VALUES
150Upon successful completion, the number of
151.Fa fsstat
152structures is returned.
153Otherwise, -1 is returned and the global variable
154.Va errno
155is set to indicate the error.
156.Sh ERRORS
155.Fn Getfsstat
157The
158.Fn getfsstat
159system call
156fails if one or more of the following are true:
157.Bl -tag -width Er
158.It Bq Er EFAULT
159.Fa Buf
160points to an invalid address.
161.It Bq Er EIO
162An
163.Tn I/O
164error occurred while reading from or writing to the file system.
165.El
166.Sh SEE ALSO
167.Xr statfs 2 ,
168.Xr fstab 5 ,
169.Xr mount 8
170.Sh HISTORY
171The
172.Fn getfsstat
160fails if one or more of the following are true:
161.Bl -tag -width Er
162.It Bq Er EFAULT
163.Fa Buf
164points to an invalid address.
165.It Bq Er EIO
166An
167.Tn I/O
168error occurred while reading from or writing to the file system.
169.El
170.Sh SEE ALSO
171.Xr statfs 2 ,
172.Xr fstab 5 ,
173.Xr mount 8
174.Sh HISTORY
175The
176.Fn getfsstat
173function first appeared in
177system call first appeared in
174.Bx 4.4 .
178.Bx 4.4 .