Home | History | Annotate | Download | only in python2.7

Lines Matching defs:uname

52 #    0.6.1 - added code to prevent 'uname -p' on platforms which are
62 # 0.5.2 - fixed uname() to return '' instead of 'unknown' in all
63 # return values (the system uname command tends to return
71 # API (was system_ver() in previous versions) -- use uname()
789 machine = os.uname()[4]
1002 """ Interface to the system's uname command.
1008 f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
1162 ### Portable uname() interface
1166 def uname():
1168 """ Fairly portable uname interface. Returns a tuple
1172 Note that unlike the os.uname function this also returns
1186 # Get some infos from the builtin os.uname API...
1188 system,node,release,version,machine = os.uname()
1193 # Hmm, no there is either no uname or uname has returned
1276 # Get processor information from the uname system command
1301 ### Direct interfaces to some of the uname() return values
1310 return uname()[0]
1320 return uname()[1]
1329 return uname()[2]
1338 return uname()[3]
1347 return uname()[4]
1359 return uname()[5]
1578 # Get uname information and then apply platform specific cosmetics
1580 system,node,release,version,machine,processor = uname()