Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / amd64 / html / python / lib / node370.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="prev" href="node369.html" />
13<link rel="parent" href="module-platform.html" />
14<link rel="next" href="someos.html" />
15<meta name='aesop' content='information' />
16<title>6.30.5 Unix Platforms</title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="6.30.4 Mac OS Platform"
24 href="node369.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="6.30 platform "
27 href="module-platform.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="7. Optional Operating System"
30 href="someos.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Python Library Reference</td>
33<td class='online-navigation'><a rel="contents" title="Table of Contents"
34 href="contents.html"><img src='../icons/contents.png'
35 border='0' height='32' alt='Contents' width='32' /></A></td>
36<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
37 border='0' height='32' alt='Module Index' width='32' /></a></td>
38<td class='online-navigation'><a rel="index" title="Index"
39 href="genindex.html"><img src='../icons/index.png'
40 border='0' height='32' alt='Index' width='32' /></A></td>
41</tr></table>
42<div class='online-navigation'>
43<b class="navlabel">Previous:</b>
44<a class="sectref" rel="prev" href="node369.html">6.30.4 Mac OS Platform</A>
45<b class="navlabel">Up:</b>
46<a class="sectref" rel="parent" href="module-platform.html">6.30 platform </A>
47<b class="navlabel">Next:</b>
48<a class="sectref" rel="next" href="someos.html">7. Optional Operating System</A>
49</div>
50<hr /></div>
51</DIV>
52<!--End of Navigation Panel-->
53
54<H2><A NAME="SECTION0083050000000000000000">
556.30.5 <span class="Unix">Unix</span> Platforms</A>
56</H2>
57
58<P>
59<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
60 <td><nobr><b><tt id='l2h-2585' xml:id='l2h-2585' class="function">dist</tt></b>(</nobr></td>
61 <td><var>distname='', version='', id='',
62 supported_dists=('SuSE','debian','redhat','mandrake')</var>)</td></tr></table></dt>
63<dd>
64 Tries to determine the name of the OS distribution name
65 Returns a tuple <code>(<var>distname</var>, <var>version</var>, <var>id</var>)</code>
66 which defaults to the args given as parameters.
67</dl>
68
69<P>
70<dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
71 <td><nobr><b><tt id='l2h-2586' xml:id='l2h-2586' class="function">libc_ver</tt></b>(</nobr></td>
72 <td><var>executable=sys.executable, lib='',
73 version='', chunksize=2048</var>)</td></tr></table></dt>
74<dd>
75 Tries to determine the libc version against which the file
76 executable (defaults to the Python interpreter) is linked. Returns
77 a tuple of strings <code>(<var>lib</var>, <var>version</var>)</code> which default
78 to the given parameters in case the lookup fails.
79
80<P>
81Note that this function has intimate knowledge of how different
82 libc versions add symbols to the executable is probably only
83 useable for executables compiled using <b class="program">gcc</b>.
84
85<P>
86The file is read and scanned in chunks of <var>chunksize</var> bytes.
87</dl>
88
89<P>
90
91<DIV CLASS="navigation">
92<div class='online-navigation'>
93<p></p><hr />
94<table align="center" width="100%" cellpadding="0" cellspacing="2">
95<tr>
96<td class='online-navigation'><a rel="prev" title="6.30.4 Mac OS Platform"
97 href="node369.html"><img src='../icons/previous.png'
98 border='0' height='32' alt='Previous Page' width='32' /></A></td>
99<td class='online-navigation'><a rel="parent" title="6.30 platform "
100 href="module-platform.html"><img src='../icons/up.png'
101 border='0' height='32' alt='Up One Level' width='32' /></A></td>
102<td class='online-navigation'><a rel="next" title="7. Optional Operating System"
103 href="someos.html"><img src='../icons/next.png'
104 border='0' height='32' alt='Next Page' width='32' /></A></td>
105<td align="center" width="100%">Python Library Reference</td>
106<td class='online-navigation'><a rel="contents" title="Table of Contents"
107 href="contents.html"><img src='../icons/contents.png'
108 border='0' height='32' alt='Contents' width='32' /></A></td>
109<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
110 border='0' height='32' alt='Module Index' width='32' /></a></td>
111<td class='online-navigation'><a rel="index" title="Index"
112 href="genindex.html"><img src='../icons/index.png'
113 border='0' height='32' alt='Index' width='32' /></A></td>
114</tr></table>
115<div class='online-navigation'>
116<b class="navlabel">Previous:</b>
117<a class="sectref" rel="prev" href="node369.html">6.30.4 Mac OS Platform</A>
118<b class="navlabel">Up:</b>
119<a class="sectref" rel="parent" href="module-platform.html">6.30 platform </A>
120<b class="navlabel">Next:</b>
121<a class="sectref" rel="next" href="someos.html">7. Optional Operating System</A>
122</div>
123</div>
124<hr />
125<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
126</DIV>
127<!--End of Navigation Panel-->
128<ADDRESS>
129See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
130</ADDRESS>
131</BODY>
132</HTML>