def _syscmd_uname(option,default=''):
    if sys.platform in ('dos','win32','win16','os2'):
        # XXX Others too ?
        return default
    try:
        f = os.popen('uname %s 2> /dev/null' % option)
    except (AttributeError,os.error):
        return default
    output = string.strip(f.read())
    rc = f.close()
    if not output or rc:
        return default
    else:
        return output
Interface to the system's uname command.
dataset/ETHPy150Open babble/babble/include/jython/Lib/platform.py/_syscmd_uname