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 - 1998, Idonex AB.      // 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 "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.56 1999/07/15 16:59:28 neotron Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.57 1999/10/04 15:11:55 per Exp $";   constant thread_safe=1;         #include <module.h>   #include <roxen.h>   #include <stat.h> -  + #include <request_trace.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG   # endif   #endif    - // import Array; + constant module_type = MODULE_LOCATION; + constant module_name = "Filesystem"; + constant module_doc = + ("This is a virtual filesystem, use it to make files available to "+ +  "the users of your WWW-server. If you want to serve any 'normal' " +  "files from your server, you will have to have atleast one filesystem.") ; + constant module_unique = 0;    - #define TRACE_ENTER(A,B) do{if(id->misc->trace_enter)id->misc->trace_enter((A),(B));}while(0) - #define TRACE_LEAVE(A) do{if(id->misc->trace_leave)id->misc->trace_leave((A));}while(0) +          int redirects, accesses, errors, dirlists;   int puts, deletes, mkdirs, moves, chmods;      static mapping http_low_answer(int errno, string data, string|void desc)   {    mapping res = ::http_low_answer(errno, data);       if (desc) {
Roxen.git/server/modules/filesystems/filesystem.pike:115:    "This is useful for eg named-ftp.");       defvar("no_symlinks", 0, "Forbid access to symlinks", TYPE_FLAG|VAR_MORE,    "EXPERIMENTAL.\n"    "Forbid access to paths containing symbolic links.<br>\n"    "NOTE: This can cause *alot* of lstat system-calls to be performed "    "and can make the server much slower.");   }       - mixed *register_module() - { -  return ({ -  MODULE_LOCATION, -  "Filesystem", -  ("This is a virtual filesystem, use it to make files available to "+ -  "the users of your WWW-server. If you want to serve any 'normal' " -  "files from your server, you will have to have atleast one filesystem.") -  }); - } -  +    string path;   int stat_cache;      void start()   {   #ifdef THREADS    if(QUERY(access_as_user))    report_warning("It is not possible to use 'Access as user' when "    "running with threads. Remove -DENABLE_THREADS from "    "the start script if you really need this function\n");