Branch: Tag:

2000-08-28

2000-08-28 05:31:56 by Per Hedbor <ph@opera.com>

Fixed all stat_file with friends to use the new Stat type for Pike 7.1 compatibility

Rev: server/base_server/configuration.pike:1.351
Rev: server/base_server/disk_cache.pike:1.54
Rev: server/base_server/fonts.pike:1.56
Rev: server/base_server/http.pike:1.47
Rev: server/base_server/module_support.pike:1.76
Rev: server/base_server/read_config.pike:1.48
Rev: server/base_server/roxen.pike:1.536
Rev: server/base_server/roxenlib.pike:1.196
Rev: server/base_server/roxenloader.pike:1.193
Rev: server/bin/fixquota.pike:1.2
Rev: server/bin/garbagecollector.pike:1.19
Rev: server/config_interface/standard/inheritinfo.pike:1.13
Rev: server/etc/env.d/java.pike:1.4
Rev: server/etc/modules/Variable.pmod/module.pmod:1.8
Rev: server/etc/roxen_master.pike:1.97
Rev: server/modules/configuration/config_filesystem.pike:1.49
Rev: server/modules/configuration/update.pike:1.17
Rev: server/modules/examples/location.pike:1.2
Rev: server/modules/filesystems/filesystem.pike:1.87
Rev: server/modules/filters/htaccess.pike:1.64
Rev: server/modules/graphics/cimg.pike:1.26
Rev: server/modules/logging/home_logger.pike:1.29
Rev: server/modules/misc/userdb.pike:1.48
Rev: server/modules/scripting/cgi.pike:2.44
Rev: server/modules/scripting/oldcgi.pike:2.6
Rev: server/modules/scripting/servlet.pike:2.12
Rev: server/modules/tags/rxmltags.pike:1.163
Rev: server/more_modules/cvsfs.pike:1.23

1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.350 2000/08/24 19:54:17 lange Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.351 2000/08/28 05:31:49 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>
580:      public string last_modified_by(Stdio.File file, RequestID id)   { -  array(int) s; +  Stat s;    int uid;    array u;   
915:    res += sprintf("%d bytes ", strlen(m->data));    else if (objectp(m->file))    if (catch { -  array a=m->file->stat(); +  Stat a=m->file->stat();    res += sprintf("%d bytes ", a[1]-m->file->tell());    })    res += "? bytes ";
1453:      // Stat a virtual file.    - public array(int) stat_file(string file, RequestID id) + public array(int)|Stat stat_file(string file, RequestID id)   {    string loc; -  array s, tmp; +  mixed s, tmp;   #ifdef THREADS    object key;   #endif