ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/diridx.pl
(Generate patch)

Comparing Coro/myhttpd/diridx.pl (file contents):
Revision 1.9 by root, Sun Aug 26 14:55:46 2001 UTC vs.
Revision 1.10 by root, Tue Aug 28 02:30:48 2001 UTC

4 4
5my $ignore = qr/ ^(?:robots.txt$|\.) /x; 5my $ignore = qr/ ^(?:robots.txt$|\.) /x;
6 6
7our %diridx; 7our %diridx;
8 8
9if ($::DIRIDX) { 9if ($db_env) {
10 require GDBM_File; 10 tie %diridx, BerkeleyDB::Hash,
11 my $dbm = tie %diridx, GDBM_File, $::DIRIDX, 11 -Env => $db_env,
12 &GDBM_File::GDBM_WRCREAT, # | &GDBM_File::GDBM_FAST, 12 -Filename => "directory",
13 0600; 13 -Flags => DB_CREATE,
14 $dbm->setopt(&GDBM_File::GDBM_CACHESIZE, (pack "i", 1_000), length (pack "i", 1_000)); 14 or die "unable to create database index";
15} 15}
16 16
17sub conn::gen_statdata { 17sub conn::gen_statdata {
18 my $self = shift; 18 my $self = shift;
19 my $data; 19 my $data;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines