Roxen.git / server / config_interface / actions / openfiles.pike

version» Context lines:

Roxen.git/server/config_interface/actions/openfiles.pike:1:   /* -  * $Id: openfiles.pike,v 1.15 2011/01/24 17:16:56 mast Exp $ +  * $Id$    */   inherit "wizard";      // This file uses stuff from spider...   import spider;      #include <stat.h>   #include <roxen.h>   //<locale-token project="admin_tasks">LOCALE</locale-token>   #define LOCALE(X,Y) _STR_LOCALE("admin_tasks",X,Y)
Roxen.git/server/config_interface/actions/openfiles.pike:35:    return a * ":";   }      string parse( RequestID id )   {    return    ("<font size='+1'><b>" +LOCALE(23, "Active filedescriptors")+ "</b></font>\n"+    sprintf("<pre><b>%-5s %-9s %-10s %-10s</b>\n\n",    "fd", "type", "mode", "details")+    -  (Array.map(get_all_active_fd(), +  (Array.map(Stdio.get_all_active_fd(),    lambda(int fd)    {    object f = Stdio.File(fd);    object stat = f->stat();    if (!stat)    return sprintf("%-5s %-9s %-10s %-12s",    (string) fd, "Unknown", "?", "(error " + f->errno() + ")");       string type = ([    "reg":"File",