uussttaatt() -- System Call (libc)

Get statistics on 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 <uussttaatt.hh>
iinntt uussttaatt (_d_e_v_i_c_e, _b_u_f_f_e_r)
ddeevv_tt _d_e_v_i_c_e;
ssttrruucctt uussttaatt *_b_u_f_f_e_r;

The COHERENT  system call uussttaatt() returns information  about a mounted file
system.  _d_e_v_i_c_e  names the  device upon which  the file system  is mounted.
_b_u_f_f_e_r points  to a structure  of type uussttaatt, which  contains the following
fields:

     daddr_t   f_tfree;       /* number of free blocks */
     ino_t     f_tinode;      /* number of free i-nodes */
     char      f_fname[6];    /* name of the file system */
     char      f_fpack[6];    /* pack name of the file system */

Useful information may not be  available for fields ff_ffnnaammee and ff_ffppaacckk; in
that case, they are initialized to nuls.

uussttaatt() returns  zero if all goes  well; otherwise, it returns  -1 and sets
eerrrrnnoo to an  appropriate value.  uussttaatt() can fail for  any of the following
reasons:

-> _d_e_v_i_c_e does not contain a mounted file system.

-> _b_u_f_f_e_r points to an illegal address.

-> The kernel caught a signal while it was executing the call.

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

_N_o_t_e
uussttaatt() is largely superceded by ssttaattffss().
