Roxen.git/
server/
base_server/
configuration.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-13
2000-09-13 14:16:01 by Per Hedbor <ph@opera.com>
e875dcd06dc4946ac406aa2c11da50a5d9b1166f (
13
lines) (+
11
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Support stat() in StringFile
Rev: server/base_server/configuration.pike:1.370
1:
// A vitual server's main configuration // Copyright © 1996 - 2000, Roxen IS.
-
constant cvs_version = "$Id: configuration.pike,v 1.
369
2000/09/13 14:
09
:
35
jonasw
Exp $";
+
constant cvs_version = "$Id: configuration.pike,v 1.
370
2000/09/13 14:
16
:
01
per
Exp $";
constant is_configuration = 1; #include <module.h> #include <module_constants.h>
1550:
{ string data; int offset;
+
mixed _st;
string _sprintf() {
1568:
return d; }
+
array|mixed stat()
+
{
+
if( _st ) return _st;
+
return ({ 0, strlen(data), time(), time(), time(), 0, 0, 0 });
+
}
+
void write(mixed ... args) { throw( ({ "File not open for write\n", backtrace() }) );
1578:
offset = to; }
-
void create(string d)
+
void create(string d
, mixed|void __st
)
{ data = d;
-
+
_st = __st;
} }