Debian Codegraph @

README

raw
1 INSTALL
2 TO INSTALL RUN:
3
4 perl Makefile.PL
5 make
6 make test
7 make install
8
9
10 During the 'make test', test.pl will try to test with '/' and then
11 open test.pl in the current directory and use that for the filehandle
12 test.
13
14 Once installed, run 'perldoc Filesys::Statvfs' for more information.
15
16 If you have any problems or questions please email me at [email protected]
17 with "Filesys::Statvfs" in the subject line. If you run into a build problem,
18 please include the output of the install commands, the version of Perl
19 you are using (perl -v), and what operating system you are using.
20
21
22 Module Documentation:
23 Filesys::Statvfs - Perl extension for statvfs() and fstatvfs()
24
25 SYNOPSIS
26
27 use Filesys::Statvfs;
28
29 my($bsize, $frsize, $blocks, $bfree, $bavail,
30 $files, $ffree, $favail, $flag, $namemax) = statvfs("/tmp");
31
32 #### Pass an open filehandle. Verify that fileno() returns a defined
33 #### value. If you pass undef to fstatvfs you will get unexpected results
34 my $fd = fileno(FILE_HANDLE);
35 if(defined($fd)) {
36 ($bsize, $frsize, $blocks, $bfree, $bavail,
37 $files, $ffree, $favail, $flag, $namemax) = fstatvfs($fd);
38 }
39
40
41 DESCRIPTION
42
43 Interface for statvfs() and fstatvfs()
44
45 Unless you need access to the bsize, flag, and namemax values,
46 you should probably look at using Filesys::DfPortable or
47 Filesys::Df instead. They will generally provide you with more
48 functionality and portability.
49
50 The module should work with all flavors of Unix that implement the
51 statvfs() and fstatvfs() calls. This would include Linux, *BSD,
52 HP-UX, AIX, Solaris, Mac OS X, Irix, Cygwin, etc ...
53
54 The statvfs() and fstatvfs() functions will return a list of
55 values, or will return undef and set $! if there was an error.
56
57 The values returned are described in the statvfs/fstatvfs header or
58 the statvfs()/fstatvfs() man page.
59
60 The module assumes that if you have statvfs(), fstatvfs() will
61 also be available.
62
63 Copyright (c) 2006 Ian Guthrie. All rights reserved.
64 This program is free software; you can redistribute it and/or
65 modify it under the same terms as Perl itself.
66