.\" Copyright (c) 1989, 1991 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)getmntinfo.3 6.6 (Berkeley) %G%
.Nd get information about mounted file systems
.Fd #include <sys/param.h>
.Fd #include <sys/ucred.h>
.Fd #include <sys/mount.h>
.Fn getmntinfo "int mntbufp" "int flags"
structures describing each currently mounted file system (see
parameter transparently to
On successful completion,
returns a count of the number of elements in the array.
The pointer to the array is stored into
If an error occurs, zero is returned and the external variable
is set to indicate the error.
will be unmodified, any information previously returned by
may fail and set errno for any of the errors specified for the library
function writes the array of structures to an internal static object
a pointer to that object. Subsequent calls to
will modify the same object.