20
19
<li><a href="globals.html"><span>File Members</span></a></li>
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-chroot.cc File Reference</h1><code>#include <config.h></code><br>
25
<code>#include "<a class="el" href="sbuild_8h-source.html">sbuild.h</a>"</code><br>
24
<code>#include "<a class="el" href="sbuild-chroot_8h-source.html">sbuild-chroot.h</a>"</code><br>
25
<code>#include "<a class="el" href="sbuild-chroot-plain_8h-source.html">sbuild-chroot-plain.h</a>"</code><br>
26
<code>#include "<a class="el" href="sbuild-chroot-file_8h-source.html">sbuild-chroot-file.h</a>"</code><br>
27
<code>#include "<a class="el" href="sbuild-chroot-block-device_8h-source.html">sbuild-chroot-block-device.h</a>"</code><br>
28
<code>#include "<a class="el" href="sbuild-chroot-lvm-snapshot_8h-source.html">sbuild-chroot-lvm-snapshot.h</a>"</code><br>
29
<code>#include "<a class="el" href="sbuild-lock_8h-source.html">sbuild-lock.h</a>"</code><br>
26
30
<code>#include <algorithm></code><br>
27
31
<code>#include <cerrno></code><br>
28
32
<code>#include <map></code><br>
29
33
<code>#include <set></code><br>
30
34
<code>#include <utility></code><br>
31
35
<code>#include <ext/stdio_filebuf.h></code><br>
36
<code>#include <sys/types.h></code><br>
37
<code>#include <sys/stat.h></code><br>
38
<code>#include <fcntl.h></code><br>
32
39
<code>#include <boost/format.hpp></code><br>
35
Include dependency graph for sbuild-chroot.cc:<p><center><img src="sbuild-chroot_8cc__incl.png" border="0" usemap="#schroot/sbuild-chroot.cc_map" alt=""></center>
36
<map name="schroot/sbuild-chroot.cc_map">
37
<area href="sbuild_8h.html" shape="rect" coords="247,56,313,83" alt="">
42
Include dependency graph for sbuild-chroot.cc:<p><center><img src="sbuild-chroot_8cc__incl.png" border="0" usemap="#sbuild/sbuild-chroot.cc_map" alt=""></center>
43
<map name="sbuild/sbuild-chroot.cc_map">
44
<area href="sbuild-chroot_8h.html" shape="rect" coords="760,132,883,159" alt="">
45
<area href="sbuild-chroot-plain_8h.html" shape="rect" coords="525,107,685,133" alt="">
46
<area href="sbuild-chroot-file_8h.html" shape="rect" coords="531,157,680,184" alt="">
47
<area href="sbuild-chroot-block-device_8h.html" shape="rect" coords="499,208,712,235" alt="">
48
<area href="sbuild-chroot-lvm-snapshot_8h.html" shape="rect" coords="231,259,449,285" alt="">
49
<area href="sbuild-lock_8h.html" shape="rect" coords="287,309,393,336" alt="">
39
51
<table border="0" cellpadding="0" cellspacing="0">
53
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::pair< <a class="el" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2">sbuild::chroot::error_code</a>,<br>
55
const char * > </td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-chroot_8cc.html#785430d995dce8211cf0543f3f32d2e4">emap</a></td></tr>
57
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="sbuild-chroot_8cc.html#f57f373df7f7c9fb0efae6da23690016">init_errors</a> []</td></tr>
60
<tr><td class="mdescLeft"> </td><td class="mdescRight">This is a list of the supported error codes. <a href="#f57f373df7f7c9fb0efae6da23690016"></a><br></td></tr>
42
<hr size="1"><address style="align: right;"><small>Generated on Sat Jun 17 14:42:36 2006 for schroot by
62
<hr><h2>Typedef Documentation</h2>
63
<a class="anchor" name="785430d995dce8211cf0543f3f32d2e4"></a><!-- doxytag: member="sbuild-chroot.cc::emap" ref="785430d995dce8211cf0543f3f32d2e4" args="" -->
65
<div class="memproto">
66
<table class="memname">
68
<td class="memname">typedef std::pair<<a class="el" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2">sbuild::chroot::error_code</a>,const char *> <a class="el" href="sbuild-session_8cc.html#8ab287187e8007da898821371ef9bd79">emap</a><code> [static]</code> </td>
78
<hr><h2>Variable Documentation</h2>
79
<a class="anchor" name="f57f373df7f7c9fb0efae6da23690016"></a><!-- doxytag: member="sbuild-chroot.cc::init_errors" ref="f57f373df7f7c9fb0efae6da23690016" args="[]" -->
81
<div class="memproto">
82
<table class="memname">
84
<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>
91
<b>Initial value:</b><div class="fragment"><pre class="fragment">
93
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a298afad92293b4f9671212a9873e29ebe">sbuild::chroot::CHROOT_CREATE</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Chroot creation failed"</span>)),
94
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d398598552a2139342669cbc8b4858">sbuild::chroot::CHROOT_DEVICE</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Device name not set"</span>)),
95
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a29e80175cae1edbf5d00b8dcc5b51a362">sbuild::chroot::CHROOT_TYPE</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Unknown chroot type"</span>)),
96
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a21ff84fb5efdb50c8f7311592d1f41e68">sbuild::chroot::DEVICE_ABS</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Device must have an absolute path"</span>)),
97
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2fefdcf6e9c7aea30e198b16f7e8b5e88">sbuild::chroot::DEVICE_LOCK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to lock device"</span>)),
98
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2ac1bc689a5c1903b2002093c54d02085">sbuild::chroot::DEVICE_NOTBLOCK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"File is not a block device"</span>)),
99
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2f958b78b257b92cd04081f1fa13cb231">sbuild::chroot::DEVICE_STAT</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to stat device"</span>)),
100
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2420beff38038cedd959b7ca68dc02c6f">sbuild::chroot::DEVICE_UNLOCK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to unlock device"</span>)),
101
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a228c93038ba7fd9117102d2745b43bffa">sbuild::chroot::FILE_ABS</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"File must have an absolute path"</span>)),
102
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2b067e837085ed606bcba9caaf4ed6fa4">sbuild::chroot::FILE_LOCK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to acquire file lock"</span>)),
103
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2bcbebd3d4420f6596b92d22607072c4c">sbuild::chroot::FILE_NOTREG</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"File is not a regular file"</span>)),
104
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a215d452353496bf0f809d1e86c6b60e78">sbuild::chroot::FILE_OWNER</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"File is not owned by user root"</span>)),
105
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a22e995ffbb7fac164b3eae6eda9bed7f7">sbuild::chroot::FILE_PERMS</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"File has write permissions for others"</span>)),
106
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2471379fe5f006cc89892535598db7fb7">sbuild::chroot::FILE_STAT</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to stat file"</span>)),
107
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2e8ca82f42e3b793af5d5cec0d87042c4">sbuild::chroot::FILE_UNLOCK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to discard file lock"</span>)),
108
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a26c6d75c925b290e3eb88e571980a0911">sbuild::chroot::LOCATION_ABS</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Location must have an absolute path"</span>)),
109
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2a5496dfa2f3aefef74d3851b91742aea">sbuild::chroot::SESSION_UNLINK</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to unlink session file"</span>)),
110
<a class="code" href="sbuild-auth-conv-tty_8cc.html#9a3145af4184baebb22d7e1061da7f6e">emap</a>(<a class="code" href="classsbuild_1_1chroot.html#21d72c946296bb1c4b0db8377062c8a2992524cda72f9710e82bed287b6a98ce">sbuild::chroot::SESSION_WRITE</a>, <a class="code" href="sbuild-i18n_8h.html#75278405e7f034d2b1af80bfd94675fe">N_</a>(<span class="stringliteral">"Failed to write session file"</span>))
112
</pre></div>This is a list of the supported error codes.
114
It's used to construct the real error codes map.
117
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 6 19:23:32 2006 for schroot by
43
118
<a href="http://www.doxygen.org/index.html">
44
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
119
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>