MirOS Manual: statvfs(2)

STATVFS(2)                 BSD Programmer's Manual                  STATVFS(2)

NAME

     statvfs, fstatvfs, - get file system statistics

LIBRARY

     libc

SYNOPSIS

     #include <sys/statvfs.h>

     int
     statvfs(const char *path, struct statvfs *buf);

     int
     fstatvfs(int fd, struct statvfs *buf);

DESCRIPTION

     statvfs() return information about a mounted file system. path is the
     path name of any file within the mounted file system. buf is a pointer to
     a statvfs structure.

     fstatvfs() return the same information about an open file referenced by
     descriptor fd.

RETURN VALUES

     Upon successful completion, a value of 0 is returned. Otherwise, -1 is
     returned and the global variable errno is set to indicate the error.

ERRORS

     statvfs() and fstatvfs() fail for the same reasons statfs() and statvfs()
     can fail.

SEE ALSO

     fstatfs(3), statfs(3)

HISTORY

     The statvfs(), and fstatvfs() functions first appeared in MirOS #10 as a
     pure user-space implementation.

AUTHORS

     The actual implementation of the user-space functions was taken from
     NetBSD libnbcompat.

MirOS BSD #10-current            May 19, 2007                                1

Generated on 2014-07-04 21:17:45 by $MirOS: src/scripts/roff2htm,v 1.79 2014/02/10 00:36:11 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2014 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.