ffs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 ffssttaattffss (_f_i_l_e_d_e_s, _b_u_f_f_e_r, _l_e_n_g_t_h, _f_s_t_y_p_e)
iinntt _f_i_l_e_d_e_s;
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 ffs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 ffssttaattffss() can write its output.
Always set this to ssiizzeeooff(ssttrruucctt ssttaattffss).

_f_i_l_e_d_e_s  and  _f_s_t_y_p_e identify  the  file  system.  If  the  file system  is
unmounted, then  _f_i_l_e_d_e_s should give the file descriptor  for the device by
which the file system is accessed, as returned by a call to ccrreeaatt(), dduupp(),
ooppeenn(), or   ppiippee(); and _f_s_t_y_p_e contains  the type of the  file system.  If
the file system is mounted, then _f_i_l_e_d_e_s should give the file descriptor of
a file on the file system in question, and _f_s_t_y_p_e must be set to zero.

ffs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
lliibbcc, mmkkffss, ssttaattffss(), ssttaattffss.hh ttyyppeess.hh, uussttaatt()
