ssttaattffss() -- System Call (libc)

Get information about a file system
#iinncclluuddee <ssyyss/ttyyppeess.hh>
#iinncclluuddee <ssyyss/ssttaattffss.hh>
iinntt ssttaattffss (_p_a_t_h, _b_u_f_f_e_r, _l_e_n_g_t_h, _f_s_t_y_p_e)
cchhaarr *_p_a_t_h;
ssttrruucctt ssttaattffss *_b_u_f_f_e_r;
iinntt _l_e_n_g_t_h, _f_s_t_y_p_e;

The COHERENT system call  ssttaattffss() returns information about a file system,
either mounted or unmounted.

_b_u_f_f_e_r points  to a structure of type ssttaattffss,  which contains the following
members:

     short     f_fstyp;       /* type of the file system */
     short     f_bsize;       /* block size */
     short     f_frsize;      /* fragment size */
     long      f_blocks;      /* number of blocks in the file system */
     long      f_bfree;       /* number of free blocks */
     long      f_files;       /* number of file nodes */
     long      f_ffree;       /* number of free file nodes */
     char      f_fname[6];    /* name of the volume */
     char      f_fpack[6];    /* name of the pack */

_l_e_n_g_t_h is the length of the  area into which ssttaattffss() can write its output.
This should always be set to ssiizzeeooff(ssttrruucctt ssttaattffss).

_p_a_t_h and _f_s_t_y_p_e identify the file system.  If the file system is unmounted,
then _p_a_t_h should name the device  by which the file system is accessed, and
_f_s_t_y_p_e should contain  the type of the file system.   If the file system is
mounted, then  _p_a_t_h should give  the full path  name of a file  on the file
system in question, and _f_s_t_y_p_e must be set to zero.

ssttaattffss()  returns zero  if  all went  well.   If something  went wrong,  it
returns -1 and sets eerrrrnnoo to an appropriate value.

_S_e_e _A_l_s_o
ffssttaattffss(), lliibbcc, mmkkffss, ssttaattffss.hh, uussttaatt()
