parameters: ()
return_statement: return sPlatform
docstring: Gets the host OS name (short).
  
      See the KBUILD_OSES variable in kBuild/header.kmk for possible return values.
docstring_summary: Gets the host OS name (short).
docstring_tokens: Gets the host OS name ( short ) .
function: def getHostOs():
      """
      Gets the host OS name (short).
  
      See the KBUILD_OSES variable in kBuild/header.kmk for possible return values.
      """
      sPlatform = platform.system();
      if sPlatform in ('Linux', 'Darwin', 'Solaris', 'FreeBSD', 'NetBSD', 'OpenBSD'):
          sPlatform = sPlatform.lower();
      elif sPlatform == 'Windows':
          sPlatform = 'win';
      elif sPlatform == 'SunOS':
          sPlatform = 'solaris';
      else:
          raise Exception('Unsupported platform "%s"' % (sPlatform,));
      return sPlatform;
function_tokens: def getHostOs ( ) : sPlatform = platform . system ( ) if sPlatform in ( 'Linux' , 'Darwin' , 'Solaris' , 'FreeBSD' , 'NetBSD' , 'OpenBSD' ) : sPlatform = sPlatform . lower ( ) elif sPlatform == 'Windows' : sPlatform = 'win' elif sPlatform == 'SunOS' : sPlatform = 'solaris' else : raise Exception ( 'Unsupported platform "%s"' % ( sPlatform , ) ) return sPlatform