Annotation of cci/usr/src/man/man2/ustat.2i, revision 1.1.1.1

1.1       root        1: .TH USTAT 2
                      2: .SH NAME
                      3: ustat \- get file system statistics
                      4: .SH SYNOPSIS
                      5: .B #include <sys/types.h>
                      6: .br
                      7: .B #include <ustat.h>
                      8: .sp
                      9: .B int ustat (dev, buf)
                     10: .br
                     11: .B int dev;
                     12: .br
                     13: .B struct ustat \(**buf;
                     14: .SH DESCRIPTION
                     15: .I Ustat\^
                     16: returns information about a mounted file system.
                     17: .I Dev\^
                     18: is a device number identifying a device containing
                     19: a mounted file system.
                     20: .I Buf\^
                     21: is a pointer to a
                     22: .I ustat\^
                     23: structure that includes to following elements:
                     24: .PP
                     25: .RS
                     26: .nf
                     27: .ta 8n 25n 30n
                     28: daddr_t        f_tfree;        /\(** Total free blocks \(**/
                     29: ino_t  f_tinode;       /\(** Number of free inodes \(**/
                     30: char   f_fname[6];     /\(** Filsys name \(**/
                     31: char   f_fpack[6];     /\(** Filsys pack name \(**/
                     32: .fi
                     33: .RE
                     34: .PP
                     35: .I Ustat\^
                     36: will fail if one or more of the following are true:
                     37: .TP 15
                     38: .TP
                     39: .SM
                     40: \%[EINVAL]
                     41: .I Dev\^
                     42: is not the device number of a device containing a mounted file system.
                     43: .TP
                     44: .SM
                     45: \%[EFAULT]
                     46: .I Buf\^
                     47: points outside the process's allocated address space.
                     48: .SH "RETURN VALUE"
                     49: Upon successful completion, a value of 0 is returned.
                     50: Otherwise, a value of \-1 is returned and
                     51: .I errno\^
                     52: is set to indicate the error.
                     53: .SH "SEE ALSO"
                     54: stat(2), fs(4).
                     55: .\"    @(#)ustat.2     6.2 of 9/6/83

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.