home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
gnu
/
man
/
cat3
/
getmntinfo.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
GETMNTINFO(3) UNIX Programmer's Manual GETMNTINFO(3)
NNAAMMEE
ggeettmmnnttiinnffoo - get information about mounted file systems
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
##iinncclluuddee <<ssyyss//mmoouunntt..hh>>
_i_n_t
ggeettmmnnttiinnffoo(_i_n_t _m_n_t_b_u_f_p, _i_n_t _f_l_a_g_s)
DDEESSCCRRIIPPTTIIOONN
The ggeettmmnnttiinnffoo() function returns an array of statfs structures describ
ing each currently mounted file system (see statfs(2)).
The ggeettmmnnttiinnffoo() function passes its _f_l_a_g_s parameter transparently to
getfsstat(2).
RREETTUURRNN VVAALLUUEESS
On successful completion, ggeettmmnnttiinnffoo() returns a count of the number of
elements in the array. The pointer to the array is stored into _m_n_t_b_u_f_p.
If an error occurs, zero is returned and the external variable _e_r_r_n_o is
set to indicate the error. Although the pointer _m_n_t_b_u_f_p 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).
SSEEEE AALLSSOO
getfsstat(2), statfs(2), mount(2), mount(8)
HHIISSTTOORRYY
The ggeettmmnnttiinnffoo() function is currently under development.
BBUUGGSS
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(2)'d by the applica
tion.
BSD Experimental April 19, 1991 1