Copyright (c) 1989 The Regents of the University of California.
All rights reserved.
%sccs.include.redist.man%
@(#)getmntinfo.3 6.3 (Berkeley) 06/23/90
All rights reserved.
%sccs.include.redist.man%
@(#)getmntinfo.3 6.3 (Berkeley) 06/23/90
GETMNTINFO 3 ""
C 7 NAME
getmntinfo - get information about mounted file systems
SYNOPSIS
#include <sys/types.h> #include <sys/mount.h>int getmntinfo(mntbufp, flags) struct statfs **mntbufp; int flags
DESCRIPTION
Getmntinfo returns an array of
statfs structures describing each currently mounted file system (see
statfs (2)). DIAGNOSTICS
On successful completion,
getmntinfo returns a count of the number of elements in the array.
The pointer to the array is stored into
mntbufp . Otherwise, zero is returned and
mntbufp is unmodified.
Getmntinfo passes its flags parameter transparently to getfsstat (2).
BUGS
All information is contained in a static area,
so it must be copied if it is to be saved.
SEE ALSO
getfsstat(2), statfs(2), mount(2), mount(8)