Branch: Tag:

1998-02-10

1998-02-10 18:36:21 by Per Hedbor <ph@opera.com>

Fixes...

Rev: server/base_server/cache.pike:1.19
Rev: server/base_server/color.pike:1.13
Rev: server/base_server/configuration.pike:1.94
Rev: server/base_server/disk_cache.pike:1.34
Rev: server/base_server/dummy_hosts.pike:1.5
Rev: server/base_server/html.pike:1.4
Rev: server/base_server/language.pike:1.12
Rev: server/base_server/lock.pike:1.3(DEAD)
Rev: server/base_server/mainconfig.pike:1.94
Rev: server/base_server/module_support.pike:1.15
Rev: server/base_server/newdecode.pike:1.7
Rev: server/base_server/privs.pike:1.33
Rev: server/base_server/read_config.pike:1.20
Rev: server/base_server/roxen.pike:1.166
Rev: server/base_server/roxenlib.pike:1.47
Rev: server/base_server/roxenloader.pike:1.58
Rev: server/base_server/smartpipe.pike:1.1
Rev: server/base_server/socket.pike:1.11
Rev: server/modules/filesystems/filesystem.pike:1.27
Rev: server/modules/filesystems/restrictedfs.pike:1.8
Rev: server/modules/filesystems/userfs.pike:1.18
Rev: server/modules/filters/htaccess.pike:1.29
Rev: server/modules/filters/redirect.pike:1.12
Rev: server/modules/graphics/graphic_text.pike:1.101
Rev: server/modules/misc/contenttypes.pike:1.11
Rev: server/modules/misc/demo.pike:1.2
Rev: server/modules/misc/ismap.pike:1.11
Rev: server/modules/misc/userdb.pike:1.24
Rev: server/modules/misc/ypuserdb.pike:1.7
Rev: server/protocols/http.pike:1.54

1: - string cvs_version = "$Id: configuration.pike,v 1.93 1998/02/05 00:59:14 js Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.94 1998/02/10 18:36:02 per Exp $";   #include <module.h>   #include <roxen.h>   
12:      inherit "roxenlib";    - import Array; +     -  +    function store = roxen->store;   function retrieve = roxen->retrieve;   function remove = roxen->remove;
609:      public void log(mapping file, object request_id)   { + // _debug(2);    string a;    string form;    function f;
657:    request_id->remoteaddr, log_function);    else    log_function(form); + // _debug(0);   }      // These are here for statistics and debug reasons only.
900:   public mapping|int get_file(object id, int|void no_magic);      #ifdef THREADS - import Thread; + // import Thread;      mapping locked = ([]), thread_safe = ([]);   
932: Inside #if defined(THREADS)
   if (!locks[f])    {    // Needed to avoid race-condition. -  l = Mutex()->lock; +  l = Thread.Mutex()->lock;    if (!locks[f]) {    locks[f]=l;    }
1381:    dir = d | dir;    }    } else if(d = c->find_dir(f, id)) { -  dir = mkmapping(d, map(d, lambda(string f, string base, +  dir = mkmapping(d, Array.map(d, lambda(string f, string base,    object c, object id) {    return(c->stat_file(base + f, id));    }, f, c, id)) | dir;
1603:    "Tried:\n"    "Port Protocol IP-Number \n"    "---------------------------\n" -  + map(query("Ports"), lambda(array p) { +  + Array.map(query("Ports"), lambda(array p) {    return sprintf("%5d %-10s %-20s\n", @p);    })*"");    }
1913:    {    parse_module = me;    if (_toparse_modules) { -  map(_toparse_modules, lambda(object o, object me, mapping module) { +  Array.map(_toparse_modules, lambda(object o, object me, mapping module) +  {    array err;    if (err = catch{me->add_parse_module(o);}) {    report_error("Error while initiating module copy of " +