Manual Pages for UNIX Darwin command on man getmntinfo
MyWebUniversity

Manual Pages for UNIX Darwin command on man getmntinfo

GETMNTINFO(3) BSD Library Functions Manual GETMNTINFO(3)

NAME

ggeettmmnnttiinnffoo - get information about mounted file systems

LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

##iinncclluuddee <>

##iinncclluuddee <>

int ggeettmmnnttiinnffoo(struct statfs **mntbufp, int flags);

DESCRIPTION

The ggeettmmnnttiinnffoo() function returns an array of ssttaattffss() structures describing each currently mounted file system (see statfs(2)). The ggeettmmnnttiinnffoo() function passes its flags argument transparently to getfsstat(2).

RETURN VALUES

On successful completion, ggeettmmnnttiinnffoo() 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 ggeettmmnnttiinnffoo() will be lost. EERRRROORRSS The ggeettmmnnttiinnffoo() 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 ggeettmmnnttiinnffoo() function first appeared in 4.4BSD.

BUGS

The ggeettmmnnttiinnffoo() function writes the array of structures to an internal static object and returns a pointer to that object. Subsequent calls to ggeettmmnnttiinnffoo() will modify the same object.

The memory allocated by ggeettmmnnttiinnffoo() cannot be free(3)'d by the applica-

tion. BSD June 9, 1993 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™