GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FILESYS::STATVFS (3)

.ds Aq ’

NAME

Filesys::Statvfs - Perl extension for statvfs() and fstatvfs()

CONTENTS

SYNOPSIS



  use Filesys::Statvfs;

        my($bsize, $frsize, $blocks, $bfree, $bavail,
        $files, $ffree, $favail, $flag, $namemax) = statvfs("/tmp");

        #### Pass an open filehandle. Verify that fileno() returns a defined
        #### value. If you pass undef to fstatvfs you will get unexpected results
        my $fd = fileno(FILE_HANDLE);
        if(defined($fd)) {
                ($bsize, $frsize, $blocks, $bfree, $bavail,
                $files, $ffree, $favail, $flag, $namemax) = fstatvfs($fd);
        }



DESCRIPTION

Interface for statvfs() and fstatvfs()

Unless you need access to the bsize, flag, and namemax values, you should probably look at using Filesys::DfPortable or Filesys::Df instead. They will generally provide you with more functionality and portability.

The module should work with all flavors of Unix that implement the statvfs() and fstatvfs() calls. This would include Linux, *BSD, HP-UX, AIX, Solaris, Mac OS X, Irix, Cygwin, etc ...

The statvfs() and fstatvfs() functions will return a list of values, or will return undef and set $! if there was an error.

The values returned are described in the statvfs/fstatvfs header or the statvfs()/fstatvfs() man page.

The module assumes that if you have statvfs(), fstatvfs() will also be available.

AUTHOR

Ian Guthrie IGuthrie@aol.com

Copyright (c) 2006 Ian Guthrie. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

SEE ALSO

statvfs(2), fstatvfs(2), Filesys::DfPortable, Filesys::Df
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 STATVFS (3) 2006-06-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.