pike.git / lib / modules / NetUtils.pmod

version» Context lines:

pike.git/lib/modules/NetUtils.pmod:572:         enum System {    Linux, NT, Other, Unsupported   };      private System find_system() {   #if defined(__NT__)    return NT;   #else -  if( Process.popen("uname") == "Linux" || +  if( uname()->sysname == "Linux" ||    String.count(Process.popen(_ifconfig+" -s 2>/dev/null"),"\n") > 1 )    return Linux;    return _ifconfig ? Other : Unsupported;   #endif   }      private System system = find_system();         string ifconfig( string command )