Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. Copyright © 1996 - 2004, Roxen IS.      // This is a virtual "file-system".   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.      inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.149 2005/08/25 14:00:51 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.150 2005/09/02 11:14:23 mast Exp $";   constant thread_safe=1;      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>         //<locale-token project="mod_filesystem">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_filesystem",X,Y)
Roxen.git/server/modules/filesystems/filesystem.pike:744:    TRACE_LEAVE(sprintf("%s: Success", id->method));    return Roxen.http_status(201, "Created");    }       TRACE_LEAVE(sprintf("%s: Failed", id->method));    return errno_to_status (err_code, 1, id);   }      class CacheCallback(string f, int orig_size)   { -  int(0..1) `()(RequestId id, mixed key) +  int(0..1) `()(RequestID id, mixed key)    {    return _file_size(f, id) == orig_size;    }   }      mixed find_file( string f, RequestID id )   {    TRACE_ENTER("find_file(\""+f+"\")", 0);    object o;    int size;