_fdinfo.c

nightmare3_fluffos_v2/lib/cmds/adm/_fdinfo.c · 376 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <std.h>

inherit DAEMON;

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

int help()
{
  write( @EndText
Syntax: fdinfo
Effect: Lists the status of the machines's file descriptors
See man: dump_file_descriptors
See also: netstat, mstatus, cache, callouts, dumpallobj, opcprof
EndText
  );
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571