Home | History | Annotate | Download | only in Lib

Lines Matching defs:uname

54 #    0.6.1 - added code to prevent 'uname -p' on platforms which are
64 # 0.5.2 - fixed uname() to return '' instead of 'unknown' in all
65 # return values (the system uname command tends to return
73 # API (was system_ver() in previous versions) -- use uname()
744 machine = os.uname()[4]
957 """ Interface to the system's uname command.
963 f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
1117 ### Portable uname() interface
1121 def uname():
1123 """ Fairly portable uname interface. Returns a tuple
1127 Note that unlike the os.uname function this also returns
1141 # Get some infos from the builtin os.uname API...
1143 system,node,release,version,machine = os.uname()
1148 # Hmm, no there is either no uname or uname has returned
1231 # Get processor information from the uname system command
1256 ### Direct interfaces to some of the uname() return values
1265 return uname()[0]
1275 return uname()[1]
1284 return uname()[2]
1293 return uname()[3]
1302 return uname()[4]
1314 return uname()[5]
1553 # Get uname information and then apply platform specific cosmetics
1555 system,node,release,version,machine,processor = uname()