getfsstat.2 (108028) | getfsstat.2 (108087) |
---|---|
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 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/getfsstat.2 108087 2002-12-19 09:40:28Z 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 --- 4 unchanged lines hidden (view full) --- 46.In sys/mount.h 47.Ft int 48.Fn getfsstat "struct statfs *buf" "long bufsize" "int flags" 49.Sh DESCRIPTION 50The 51.Fn getfsstat 52system call 53returns information about all mounted file systems. | 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 --- 4 unchanged lines hidden (view full) --- 46.In sys/mount.h 47.Ft int 48.Fn getfsstat "struct statfs *buf" "long bufsize" "int flags" 49.Sh DESCRIPTION 50The 51.Fn getfsstat 52system call 53returns information about all mounted file systems. |
54.Fa Buf | 54The 55.Fa buf 56argument |
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 61/* 62 * file system statistics --- 92 unchanged lines hidden (view full) --- 155is set to indicate the error. 156.Sh ERRORS 157The 158.Fn getfsstat 159system call 160fails if one or more of the following are true: 161.Bl -tag -width Er 162.It Bq Er EFAULT | 57is a pointer to 58.Xr statfs 59structures defined as follows: 60.Bd -literal 61typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ 62 63/* 64 * file system statistics --- 92 unchanged lines hidden (view full) --- 157is set to indicate the error. 158.Sh ERRORS 159The 160.Fn getfsstat 161system call 162fails if one or more of the following are true: 163.Bl -tag -width Er 164.It Bq Er EFAULT |
163.Fa Buf | 165The 166.Fa buf 167argument |
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 177system call first appeared in 178.Bx 4.4 . | 168points to an invalid address. 169.It Bq Er EIO 170An 171.Tn I/O 172error occurred while reading from or writing to the file system. 173.El 174.Sh SEE ALSO 175.Xr statfs 2 , 176.Xr fstab 5 , 177.Xr mount 8 178.Sh HISTORY 179The 180.Fn getfsstat 181system call first appeared in 182.Bx 4.4 . |