1Statvfs(3)            User Contributed Perl Documentation           Statvfs(3)
2
3
4

NAME

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

SYNOPSIS

9         use Filesys::Statvfs;
10
11               my($bsize, $frsize, $blocks, $bfree, $bavail,
12               $files, $ffree, $favail, $flag, $namemax) = statvfs("/tmp");
13
14               #### Pass an open filehandle. Verify that fileno() returns a defined
15               #### value. If you pass undef to fstatvfs you will get unexpected results
16               my $fd = fileno(FILE_HANDLE);
17               if(defined($fd)) {
18                       ($bsize, $frsize, $blocks, $bfree, $bavail,
19                       $files, $ffree, $favail, $flag, $namemax) = fstatvfs($fd);
20               }
21

DESCRIPTION

23       Interface for statvfs() and fstatvfs()
24
25       Unless you need access to the bsize, flag, and namemax values, you
26       should probably look at using Filesys::DfPortable or Filesys::Df
27       instead. They will generally provide you with more functionality and
28       portability.
29
30       The module should work with all flavors of Unix that implement the
31       "statvfs()" and "fstatvfs()" calls. This would include Linux, *BSD, HP-
32       UX, AIX, Solaris, Mac OS X, Irix, Cygwin, etc ...
33
34       The "statvfs()" and "fstatvfs()" functions will return a list of
35       values, or will return "undef" and set $! if there was an error.
36
37       The values returned are described in the statvfs/fstatvfs header or the
38       "statvfs()/fstatvfs()" man page.
39
40       The module assumes that if you have "statvfs()", "fstatvfs()" will also
41       be available.
42

AUTHOR

44       Ian Guthrie IGuthrie@aol.com
45
46       Copyright (c) 2006 Ian Guthrie. All rights reserved.
47                      This program is free software; you can redistribute it
48       and/or
49                      modify it under the same terms as Perl itself.
50

SEE ALSO

52       statvfs(2), fstatvfs(2), Filesys::DfPortable, Filesys::Df
53
54
55
56perl v5.30.1                      2020-01-30                        Statvfs(3)
Impressum