Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
Networks, protocols, Interprocess, Remote, Client Server, ...
Hard World Timing, Calendar and Clock, Audio, Video, Printer, Controls...
File System
Management, Filtering, File & Directory access, Viewers, ...
|
|
|
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
Others
GETMNTINFO(3) OpenBSD Programmer's Manual GETMNTINFO(3)
NAME
getmntinfo - get information about mounted file systems
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
int
getmntinfo(struct statfs **mntbufp, int flags);
DESCRIPTION
The getmntinfo() function returns an array of statfs structures describ-
ing each currently mounted file system (see statfs(2)).
The getmntinfo() function passes its flags parameter transparently to
getfsstat(2).
RETURN VALUES
On successful completion, getmntinfo() returns a count of the number of
elements in the array. The pointer to the array is stored into mntbufp.
If an error occurs, zero is returned and the external variable errno is
set to indicate the error. Although the pointer mntbufp will be unmodi-
fied, any information previously returned by getmntinfo() will be lost.
ERRORS
The getmntinfo() function may fail and set errno for any of the errors
specified for the library routines getfsstat(2) or malloc(3).
SEE ALSO
getfsstat(2), mount(2), statfs(2), mount(8)
HISTORY
The getmntinfo() function first appeared in 4.4BSD.
BUGS
The getmntinfo() function writes the array of structures to an internal
static object and returns a pointer to that object. Subsequent calls to
getmntinfo() will modify the same object.
The memory allocated by getmntinfo() cannot be free(3)'d by the applica-
tion.
OpenBSD 2.6 June 9, 1993 1
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts Institute of Technology, Free Software Foundation, FreeBSD Inc., and others. |
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for getmntinfo(3) functions OpenBSD sources for getmntinfo(3)
Up to: File System Information - Obtaining information of the filesystem as a whole. Status of disk subsystems, capacity, etc.
RocketLink!--> Man page versions:
OpenBSD
FreeBSD
Others
Rapid-Links:
Search | About | Comments | Submit Path: RocketAware > man pages >
getmntinfo.3/
RocketAware.com is a service of Mib Software Copyright 1999, Forrest J. Cavalier III. All Rights Reserved. We welcome submissions and comments
|