.\" Copyright (c) 1989 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)getmntinfo.3 6.4 (Berkeley) %G%
getmntinfo - get information about mounted file systems
int getmntinfo(mntbufp, 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
All information is contained in a static area,
so it must be copied if it is to be saved.
may fail and set errno for any of the errors specified for the library
getfsstat(2), statfs(2), mount(2), mount(8)