~ubuntu-branches/ubuntu/intrepid/schroot/intrepid

« back to all changes in this revision

Viewing changes to doc/schroot/html/sbuild-session_8cc.html

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-07-08 18:33:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708183328-rlo4mpldmyoda55q
Tags: 0.99.2-2ubuntu1
* remerge ubuntu changes:
  + debian/control: libpam-dev (>> 0.79-3ubuntu6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
 
<title>schroot: schroot/sbuild-session.cc File Reference</title>
 
3
<title>schroot: sbuild/sbuild-session.cc File Reference</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.4.6 -->
 
7
<!-- Generated by Doxygen 1.4.7 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
12
    <li><a href="annotated.html"><span>Classes</span></a></li>
13
13
    <li id="current"><a href="files.html"><span>Files</span></a></li>
14
14
    <li><a href="dirs.html"><span>Directories</span></a></li>
15
 
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16
15
  </ul></div>
17
16
<div class="tabs">
18
17
  <ul>
20
19
    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21
20
  </ul></div>
22
21
<div class="nav">
23
 
<a class="el" href="dir_ef6f4477ef9596f6d29add6a4ae2d514.html">schroot</a></div>
 
22
<a class="el" href="dir_5769d7dd62c6719d79ec5ec7998dae58.html">sbuild</a></div>
24
23
<h1>sbuild-session.cc File Reference</h1><code>#include &lt;config.h&gt;</code><br>
25
 
<code>#include &quot;<a class="el" href="sbuild_8h-source.html">sbuild.h</a>&quot;</code><br>
 
24
<code>#include &quot;<a class="el" href="sbuild-chroot-plain_8h-source.html">sbuild-chroot-plain.h</a>&quot;</code><br>
 
25
<code>#include &quot;<a class="el" href="sbuild-chroot-lvm-snapshot_8h-source.html">sbuild-chroot-lvm-snapshot.h</a>&quot;</code><br>
 
26
<code>#include &quot;<a class="el" href="sbuild-run-parts_8h-source.html">sbuild-run-parts.h</a>&quot;</code><br>
 
27
<code>#include &quot;<a class="el" href="sbuild-session_8h-source.html">sbuild-session.h</a>&quot;</code><br>
 
28
<code>#include &quot;<a class="el" href="sbuild-util_8h-source.html">sbuild-util.h</a>&quot;</code><br>
26
29
<code>#include &lt;cassert&gt;</code><br>
27
30
<code>#include &lt;cerrno&gt;</code><br>
28
31
<code>#include &lt;cstdlib&gt;</code><br>
29
32
<code>#include &lt;cstring&gt;</code><br>
30
33
<code>#include &lt;iostream&gt;</code><br>
31
34
<code>#include &lt;memory&gt;</code><br>
 
35
<code>#include &lt;sys/types.h&gt;</code><br>
 
36
<code>#include &lt;sys/stat.h&gt;</code><br>
32
37
<code>#include &lt;unistd.h&gt;</code><br>
33
38
<code>#include &lt;syslog.h&gt;</code><br>
34
39
<code>#include &lt;boost/format.hpp&gt;</code><br>
35
40
<code>#include &lt;uuid/uuid.h&gt;</code><br>
36
41
 
37
42
<p>
38
 
Include dependency graph for sbuild-session.cc:<p><center><img src="sbuild-session_8cc__incl.png" border="0" usemap="#schroot/sbuild-session.cc_map" alt=""></center>
39
 
<map name="schroot/sbuild-session.cc_map">
40
 
<area href="sbuild_8h.html" shape="rect" coords="252,56,319,83" alt="">
 
43
Include dependency graph for sbuild-session.cc:<p><center><img src="sbuild-session_8cc__incl.png" border="0" usemap="#sbuild/sbuild-session.cc_map" alt=""></center>
 
44
<map name="sbuild/sbuild-session.cc_map">
 
45
<area href="sbuild-chroot-plain_8h.html" shape="rect" coords="265,56,425,83" alt="">
 
46
<area href="sbuild-chroot-lvm-snapshot_8h.html" shape="rect" coords="236,107,455,134" alt="">
 
47
<area href="sbuild-run-parts_8h.html" shape="rect" coords="275,259,416,286" alt="">
 
48
<area href="sbuild-session_8h.html" shape="rect" coords="280,208,411,235" alt="">
 
49
<area href="sbuild-util_8h.html" shape="rect" coords="272,360,419,387" alt="">
41
50
</map>
42
51
<table border="0" cellpadding="0" cellspacing="0">
43
52
<tr><td></td></tr>
 
53
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
 
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::pair&lt; <a class="el" href="classsbuild_1_1session.html#557d9570f7b58c5466cc4ee22d882178">sbuild::session::error_code</a>,<br>
 
55
 const char * &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a></td></tr>
 
56
 
44
57
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
45
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#28f6fe156a65bd52a3e3cd11243669a4">is_group_member</a> (std::string const &amp;group)</td></tr>
46
 
 
47
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check group membership.  <a href="#28f6fe156a65bd52a3e3cd11243669a4"></a><br></td></tr>
48
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#695952b248baee0234d010e917c22cbc">sighup_handler</a> (int ignore)</td></tr>
49
 
 
50
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handle the SIGALRM signal.  <a href="#695952b248baee0234d010e917c22cbc"></a><br></td></tr>
 
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#cc5f1ffcdc306ac563a41175e9c25d2d">getcwd</a> ()</td></tr>
 
59
 
 
60
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the current working directory.  <a href="#cc5f1ffcdc306ac563a41175e9c25d2d"></a><br></td></tr>
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#e26b58f7c34fa3c51932a8948cf2ca64">is_group_member</a> (std::string const &amp;group)</td></tr>
 
62
 
 
63
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Check group membership.  <a href="#e26b58f7c34fa3c51932a8948cf2ca64"></a><br></td></tr>
 
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#671e64de88e9cc4005206a4935367723">sighup_handler</a> (int ignore)</td></tr>
 
65
 
 
66
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handle the SIGALRM signal.  <a href="#671e64de88e9cc4005206a4935367723"></a><br></td></tr>
51
67
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
 
68
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#f57f373df7f7c9fb0efae6da23690016">init_errors</a> []</td></tr>
 
69
 
 
70
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is a list of the supported error codes.  <a href="#f57f373df7f7c9fb0efae6da23690016"></a><br></td></tr>
52
71
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-session_8cc.html#b29cf48c00265146735e4f39e1b8be61">sighup_called</a> = false</td></tr>
53
72
 
54
73
</table>
 
74
<hr><h2>Typedef Documentation</h2>
 
75
<a class="anchor" name="8ab287187e8007da898821371ef9bd79"></a><!-- doxytag: member="sbuild-session.cc::emap" ref="8ab287187e8007da898821371ef9bd79" args="" -->
 
76
<div class="memitem">
 
77
<div class="memproto">
 
78
      <table class="memname">
 
79
        <tr>
 
80
          <td class="memname">typedef std::pair&lt;<a class="el" href="classsbuild_1_1session.html#557d9570f7b58c5466cc4ee22d882178">sbuild::session::error_code</a>,const char *&gt; <a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a><code> [static]</code>          </td>
 
81
        </tr>
 
82
      </table>
 
83
</div>
 
84
<div class="memdoc">
 
85
 
 
86
<p>
 
87
 
 
88
</div>
 
89
</div><p>
55
90
<hr><h2>Function Documentation</h2>
56
 
<a class="anchor" name="28f6fe156a65bd52a3e3cd11243669a4"></a><!-- doxytag: member="sbuild-session.cc::is_group_member" ref="28f6fe156a65bd52a3e3cd11243669a4" args="(std::string const &amp;group)" --><p>
57
 
<table class="mdTable" cellpadding="2" cellspacing="0">
58
 
  <tr>
59
 
    <td class="mdRow">
60
 
      <table cellpadding="0" cellspacing="0" border="0">
61
 
        <tr>
62
 
          <td class="md" nowrap valign="top">bool @0::is_group_member           </td>
63
 
          <td class="md" valign="top">(&nbsp;</td>
64
 
          <td class="md" nowrap valign="top">std::string const &amp;&nbsp;</td>
65
 
          <td class="mdname1" valign="top" nowrap> <em>group</em>          </td>
66
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
67
 
          <td class="md" nowrap><code> [static]</code></td>
68
 
        </tr>
69
 
      </table>
70
 
    </td>
71
 
  </tr>
72
 
</table>
73
 
<table cellspacing="5" cellpadding="0" border="0">
74
 
  <tr>
75
 
    <td>
76
 
      &nbsp;
77
 
    </td>
78
 
    <td>
 
91
<a class="anchor" name="cc5f1ffcdc306ac563a41175e9c25d2d"></a><!-- doxytag: member="sbuild-session.cc::getcwd" ref="cc5f1ffcdc306ac563a41175e9c25d2d" args="()" -->
 
92
<div class="memitem">
 
93
<div class="memproto">
 
94
      <table class="memname">
 
95
        <tr>
 
96
          <td class="memname">std::string @11::getcwd           </td>
 
97
          <td>(</td>
 
98
          <td class="paramname">          </td>
 
99
          <td>&nbsp;)&nbsp;</td>
 
100
          <td width="100%"><code> [static]</code></td>
 
101
        </tr>
 
102
      </table>
 
103
</div>
 
104
<div class="memdoc">
 
105
 
 
106
<p>
 
107
Get the current working directory. 
 
108
<p>
 
109
If it can't be found, fall back to root.<p>
 
110
<dl compact><dt><b>Returns:</b></dt><dd>the current working directory. </dd></dl>
 
111
 
 
112
</div>
 
113
</div><p>
 
114
<a class="anchor" name="e26b58f7c34fa3c51932a8948cf2ca64"></a><!-- doxytag: member="sbuild-session.cc::is_group_member" ref="e26b58f7c34fa3c51932a8948cf2ca64" args="(std::string const &amp;group)" -->
 
115
<div class="memitem">
 
116
<div class="memproto">
 
117
      <table class="memname">
 
118
        <tr>
 
119
          <td class="memname">bool @11::is_group_member           </td>
 
120
          <td>(</td>
 
121
          <td class="paramtype">std::string const &amp;&nbsp;</td>
 
122
          <td class="paramname"> <em>group</em>          </td>
 
123
          <td>&nbsp;)&nbsp;</td>
 
124
          <td width="100%"><code> [static]</code></td>
 
125
        </tr>
 
126
      </table>
 
127
</div>
 
128
<div class="memdoc">
79
129
 
80
130
<p>
81
131
Check group membership. 
86
136
  </table>
87
137
</dl>
88
138
<dl compact><dt><b>Returns:</b></dt><dd>true if the user is a member of group, otherwise false. </dd></dl>
89
 
    </td>
90
 
  </tr>
91
 
</table>
92
 
<a class="anchor" name="695952b248baee0234d010e917c22cbc"></a><!-- doxytag: member="sbuild-session.cc::sighup_handler" ref="695952b248baee0234d010e917c22cbc" args="(int ignore)" --><p>
93
 
<table class="mdTable" cellpadding="2" cellspacing="0">
94
 
  <tr>
95
 
    <td class="mdRow">
96
 
      <table cellpadding="0" cellspacing="0" border="0">
 
139
 
 
140
</div>
 
141
</div><p>
 
142
<a class="anchor" name="671e64de88e9cc4005206a4935367723"></a><!-- doxytag: member="sbuild-session.cc::sighup_handler" ref="671e64de88e9cc4005206a4935367723" args="(int ignore)" -->
 
143
<div class="memitem">
 
144
<div class="memproto">
 
145
      <table class="memname">
97
146
        <tr>
98
 
          <td class="md" nowrap valign="top">void @0::sighup_handler           </td>
99
 
          <td class="md" valign="top">(&nbsp;</td>
100
 
          <td class="md" nowrap valign="top">int&nbsp;</td>
101
 
          <td class="mdname1" valign="top" nowrap> <em>ignore</em>          </td>
102
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
103
 
          <td class="md" nowrap><code> [static]</code></td>
 
147
          <td class="memname">void @11::sighup_handler           </td>
 
148
          <td>(</td>
 
149
          <td class="paramtype">int&nbsp;</td>
 
150
          <td class="paramname"> <em>ignore</em>          </td>
 
151
          <td>&nbsp;)&nbsp;</td>
 
152
          <td width="100%"><code> [static]</code></td>
104
153
        </tr>
105
154
      </table>
106
 
    </td>
107
 
  </tr>
108
 
</table>
109
 
<table cellspacing="5" cellpadding="0" border="0">
110
 
  <tr>
111
 
    <td>
112
 
      &nbsp;
113
 
    </td>
114
 
    <td>
 
155
</div>
 
156
<div class="memdoc">
115
157
 
116
158
<p>
117
159
Handle the SIGALRM signal. 
121
163
    <tr><td valign="top"></td><td valign="top"><em>ignore</em>&nbsp;</td><td>the signal number. </td></tr>
122
164
  </table>
123
165
</dl>
124
 
    </td>
125
 
  </tr>
126
 
</table>
 
166
 
 
167
</div>
 
168
</div><p>
127
169
<hr><h2>Variable Documentation</h2>
128
 
<a class="anchor" name="b29cf48c00265146735e4f39e1b8be61"></a><!-- doxytag: member="sbuild-session.cc::sighup_called" ref="b29cf48c00265146735e4f39e1b8be61" args="" --><p>
129
 
<table class="mdTable" cellpadding="2" cellspacing="0">
130
 
  <tr>
131
 
    <td class="mdRow">
132
 
      <table cellpadding="0" cellspacing="0" border="0">
133
 
        <tr>
134
 
          <td class="md" nowrap valign="top">volatile bool <a class="el" href="sbuild-session_8cc.html#b29cf48c00265146735e4f39e1b8be61">sighup_called</a> = false<code> [static]</code>          </td>
135
 
        </tr>
136
 
      </table>
137
 
    </td>
138
 
  </tr>
139
 
</table>
140
 
<table cellspacing="5" cellpadding="0" border="0">
141
 
  <tr>
142
 
    <td>
143
 
      &nbsp;
144
 
    </td>
145
 
    <td>
146
 
 
147
 
<p>
148
 
    </td>
149
 
  </tr>
150
 
</table>
151
 
<hr size="1"><address style="align: right;"><small>Generated on Sat Jun 17 14:43:36 2006 for schroot by&nbsp;
 
170
<a class="anchor" name="f57f373df7f7c9fb0efae6da23690016"></a><!-- doxytag: member="sbuild-session.cc::init_errors" ref="f57f373df7f7c9fb0efae6da23690016" args="[]" -->
 
171
<div class="memitem">
 
172
<div class="memproto">
 
173
      <table class="memname">
 
174
        <tr>
 
175
          <td class="memname"><a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a> <a class="el" href="sbuild-session_8cc.html#f57f373df7f7c9fb0efae6da23690016">init_errors</a>[]<code> [static]</code>          </td>
 
176
        </tr>
 
177
      </table>
 
178
</div>
 
179
<div class="memdoc">
 
180
 
 
181
<p>
 
182
This is a list of the supported error codes. 
 
183
<p>
 
184
It's used to construct the real error codes map. 
 
185
</div>
 
186
</div><p>
 
187
<a class="anchor" name="b29cf48c00265146735e4f39e1b8be61"></a><!-- doxytag: member="sbuild-session.cc::sighup_called" ref="b29cf48c00265146735e4f39e1b8be61" args="" -->
 
188
<div class="memitem">
 
189
<div class="memproto">
 
190
      <table class="memname">
 
191
        <tr>
 
192
          <td class="memname">volatile bool <a class="el" href="sbuild-session_8cc.html#b29cf48c00265146735e4f39e1b8be61">sighup_called</a> = false<code> [static]</code>          </td>
 
193
        </tr>
 
194
      </table>
 
195
</div>
 
196
<div class="memdoc">
 
197
 
 
198
<p>
 
199
 
 
200
</div>
 
201
</div><p>
 
202
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 6 19:24:45 2006 for schroot by&nbsp;
152
203
<a href="http://www.doxygen.org/index.html">
153
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
204
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
154
205
</body>
155
206
</html>