Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: configuration.pike,v 1.378 2000/09/24 01:48:17 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.379 2000/09/25 06:29:43 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);
Roxen.git/server/base_server/configuration.pike:1554:    TRACE_LEAVE("");    TRACE_LEAVE("Stat ok.");    return s;    }    TRACE_LEAVE("");    }    }    TRACE_LEAVE("Returned 'no such file'.");   }    - class StringFile + class StringFile( string data, mixed|void _st )   { -  string data; +     int offset; -  mixed _st; +        string _sprintf()    {    return "StringFile("+strlen(data)+","+offset+")";    }       string read(int nbytes)    {    if(!nbytes)    {
Roxen.git/server/base_server/configuration.pike:1592:       void write(mixed ... args)    {    throw( ({ "File not open for write\n", backtrace() }) );    }       void seek(int to)    {    offset = to;    } -  -  void create(string d, mixed|void __st) -  { -  data = d; -  _st = __st; +    }    - } +     -  +    // this is not as trivial as it sounds. Consider gtext. :-)   public array open_file(string fname, string mode, RequestID id, void|int internal_get)   {    object oc = id->conf;    string oq = id->not_query;    function funp;    mapping|int(0..1) file;       id->not_query = fname;