fdinfo.c

ds3.0/lib/cmds/admins/fdinfo.c · 393 B

From the archive ds3.0.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DAEMON;

int cmd(string arg){
    if(!archp(previous_object())) return 0;
    write(dump_file_descriptors());
    return 1;
}

string GetHelp(){
    return "Syntax: fdinfo\n\n"
        "Lists the status of the machines's file descriptors."
        "\nSee man: dump_file_descriptors"
        "\nSee also: netstat, mstatus, cache, callouts, dumpallobj, opcprof";
}

Site Stats

Snippets: 1791
Codebases: 571