Branch: Tag:

2013-11-06

2013-11-06 16:34:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

NetUtils: Use uname().

There's no need to run an external uname binary to determine
the operating system.

579: Inside #if defined(__NT__)
  #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;