Roxen.git/
server/
base_server/
roxen.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-07-27
1999-07-27 04:02:10 by Per Hedbor <ph@opera.com>
b50362a0d965592c86870f906f80abb8963f8c58 (
13
lines) (+
7
/-
6
)
[
Show
|
Annotate
]
Branch:
5.2
Now with error checking ยค#%#%%# Stdio.File
Rev: server/base_server/roxen.pike:1.309
1:
/*
-
* $Id: roxen.pike,v 1.
308
1999/07/
20
20
:
42
:
55
grubba
Exp $
+
* $Id: roxen.pike,v 1.
309
1999/07/
27
04
:
02
:
10
per
Exp $
* * The Roxen Challenger main program. *
7:
*/ // ABS and suicide systems contributed freely by Francesco Chemolli
-
constant cvs_version="$Id: roxen.pike,v 1.
308
1999/07/
20
20
:
42
:
55
grubba
Exp $";
+
constant cvs_version="$Id: roxen.pike,v 1.
309
1999/07/
27
04
:
02
:
10
per
Exp $";
object backend_thread; object argcache;
1989:
meta_cache_insert( id, meta ); string data = encode_value( meta );
-
Stdio.File f = Stdio.File( dir+id+".i", "wct" )
;
-
if(!f
)
+
Stdio.File f = Stdio.File(
);
+
if(!f->open(
dir+id+".i", "wct" ))
{ report_error( "Failed to open image cache persistant cache file "+ dir+id+".i: "+strerror( errno() )+ "\n" );
2001:
static void store_data( string id, string data ) {
-
Stdio.File f = Stdio.File( dir+id+".d", "wct" )
;
-
if(!f
)
+
Stdio.File f = Stdio.File(
);
+
if(!f->open(
dir+id+".d", "wct" ))
{ data_cache_insert( id, data ); report_error( "Failed to open image cache persistant cache file "+