This file is indexed.

/usr/share/doc/libwreport-doc/apidocs/classwreport_1_1sys_1_1File.html is in libwreport-doc 3.6-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>libwreport: wreport::sys::File Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libwreport
   &#160;<span id="projectnumber">3.6</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacewreport.html">wreport</a></li><li class="navelem"><b>sys</b></li><li class="navelem"><a class="el" href="classwreport_1_1sys_1_1File.html">File</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">wreport::sys::File Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>open(2) file descriptors  
 <a href="classwreport_1_1sys_1_1File.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="sys_8h_source.html">sys.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for wreport::sys::File:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classwreport_1_1sys_1_1File.png" usemap="#wreport::sys::File_map" alt=""/>
  <map id="wreport::sys::File_map" name="wreport::sys::File_map">
<area href="classwreport_1_1sys_1_1NamedFileDescriptor.html" title="File descriptor with a name. " alt="wreport::sys::NamedFileDescriptor" shape="rect" coords="0,56,205,80"/>
<area href="classwreport_1_1sys_1_1FileDescriptor.html" title="Common operations on file descriptors. " alt="wreport::sys::FileDescriptor" shape="rect" coords="0,0,205,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a90d04917cb8b8f8d60a6e2b2001bb253"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90d04917cb8b8f8d60a6e2b2001bb253"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>File</b> (<a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;&amp;)=default</td></tr>
<tr class="separator:a90d04917cb8b8f8d60a6e2b2001bb253"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b9966cf231b3c7363f3163611f7df2d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b9966cf231b3c7363f3163611f7df2d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>File</b> (const <a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;)=delete</td></tr>
<tr class="separator:a6b9966cf231b3c7363f3163611f7df2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e0ba4e69138663f76de276f81e2be4a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e0ba4e69138663f76de276f81e2be4a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1File.html#a8e0ba4e69138663f76de276f81e2be4a">File</a> (const std::string &amp;pathname)</td></tr>
<tr class="memdesc:a8e0ba4e69138663f76de276f81e2be4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an unopened <a class="el" href="classwreport_1_1sys_1_1File.html" title="open(2) file descriptors ">File</a> object for the given pathname. <br /></td></tr>
<tr class="separator:a8e0ba4e69138663f76de276f81e2be4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f08e7763161406755d1827cb8fcaa4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50f08e7763161406755d1827cb8fcaa4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1File.html#a50f08e7763161406755d1827cb8fcaa4">File</a> (const std::string &amp;pathname, int flags, mode_t mode=0777)</td></tr>
<tr class="memdesc:a50f08e7763161406755d1827cb8fcaa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper around open(2) <br /></td></tr>
<tr class="separator:a50f08e7763161406755d1827cb8fcaa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c9692459cae9d7ea6c4bb8abe236a8e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1File.html#a1c9692459cae9d7ea6c4bb8abe236a8e">~File</a> ()</td></tr>
<tr class="memdesc:a1c9692459cae9d7ea6c4bb8abe236a8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The destructor closes the file descriptor, but does not check errors on ::close().  <a href="#a1c9692459cae9d7ea6c4bb8abe236a8e">More...</a><br /></td></tr>
<tr class="separator:a1c9692459cae9d7ea6c4bb8abe236a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a035e86f3644f8408dd0dbb1c84fb39ac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a035e86f3644f8408dd0dbb1c84fb39ac"></a>
<a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;)=delete</td></tr>
<tr class="separator:a035e86f3644f8408dd0dbb1c84fb39ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a566042aa19dd189dcd44719f24e01f99"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a566042aa19dd189dcd44719f24e01f99"></a>
<a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="classwreport_1_1sys_1_1File.html">File</a> &amp;&amp;)=default</td></tr>
<tr class="separator:a566042aa19dd189dcd44719f24e01f99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bb76c95444057e355f5b51bc2593d97"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0bb76c95444057e355f5b51bc2593d97"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1File.html#a0bb76c95444057e355f5b51bc2593d97">open</a> (int flags, mode_t mode=0777)</td></tr>
<tr class="memdesc:a0bb76c95444057e355f5b51bc2593d97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper around open(2) <br /></td></tr>
<tr class="separator:a0bb76c95444057e355f5b51bc2593d97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfe5ad9d1e9fe4491c743dcfa13937a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adfe5ad9d1e9fe4491c743dcfa13937a0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1File.html#adfe5ad9d1e9fe4491c743dcfa13937a0">open_ifexists</a> (int flags, mode_t mode=0777)</td></tr>
<tr class="memdesc:adfe5ad9d1e9fe4491c743dcfa13937a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrap open(2) and return false instead of throwing an exception if open fails with ENOENT. <br /></td></tr>
<tr class="separator:adfe5ad9d1e9fe4491c743dcfa13937a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">wreport::sys::NamedFileDescriptor</a></td></tr>
<tr class="memitem:a580d36d0817a1fe55c554927ff34fb5a inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a580d36d0817a1fe55c554927ff34fb5a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NamedFileDescriptor</b> (int fd, const std::string &amp;pathname)</td></tr>
<tr class="separator:a580d36d0817a1fe55c554927ff34fb5a inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa08ee633e54364744d828e2810edd83b inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa08ee633e54364744d828e2810edd83b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NamedFileDescriptor</b> (<a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;&amp;)</td></tr>
<tr class="separator:aa08ee633e54364744d828e2810edd83b inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd9a18950b181ac8d6e36224fb9a84b6 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd9a18950b181ac8d6e36224fb9a84b6"></a>
<a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;&amp;)</td></tr>
<tr class="separator:abd9a18950b181ac8d6e36224fb9a84b6 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2edc2e9776c3c9165005066887aa15b4 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2edc2e9776c3c9165005066887aa15b4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>NamedFileDescriptor</b> (const <a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;o)=default</td></tr>
<tr class="separator:a2edc2e9776c3c9165005066887aa15b4 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeaafb4f2d4b72ba6a6712b67b0b71317 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeaafb4f2d4b72ba6a6712b67b0b71317"></a>
<a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">NamedFileDescriptor</a> &amp;o)=default</td></tr>
<tr class="separator:aeaafb4f2d4b72ba6a6712b67b0b71317 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af48d4a2762cc96028790d49ec1942f84 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html#af48d4a2762cc96028790d49ec1942f84">throw_error</a> (const char *desc)</td></tr>
<tr class="memdesc:af48d4a2762cc96028790d49ec1942f84 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Throw an exception based on errno and the given message.  <a href="#af48d4a2762cc96028790d49ec1942f84">More...</a><br /></td></tr>
<tr class="separator:af48d4a2762cc96028790d49ec1942f84 inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a997b6bb787ece80d723752fbf7adfc9e inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html#a997b6bb787ece80d723752fbf7adfc9e">throw_runtime_error</a> (const char *desc)</td></tr>
<tr class="memdesc:a997b6bb787ece80d723752fbf7adfc9e inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Throw a runtime_error unrelated from errno.  <a href="#a997b6bb787ece80d723752fbf7adfc9e">More...</a><br /></td></tr>
<tr class="separator:a997b6bb787ece80d723752fbf7adfc9e inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c500df0d35303469947540e877d54af inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1c500df0d35303469947540e877d54af"></a>
const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html#a1c500df0d35303469947540e877d54af">name</a> () const </td></tr>
<tr class="memdesc:a1c500df0d35303469947540e877d54af inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the file pathname. <br /></td></tr>
<tr class="separator:a1c500df0d35303469947540e877d54af inherit pub_methods_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classwreport_1_1sys_1_1FileDescriptor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">wreport::sys::FileDescriptor</a></td></tr>
<tr class="memitem:a790dd94a76ef01897ef6d948fb43f69a inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a790dd94a76ef01897ef6d948fb43f69a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>FileDescriptor</b> (<a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">FileDescriptor</a> &amp;&amp;o)</td></tr>
<tr class="separator:a790dd94a76ef01897ef6d948fb43f69a inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97a2b51f58ae485afed1c7b3a8d510a2 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97a2b51f58ae485afed1c7b3a8d510a2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>FileDescriptor</b> (int fd)</td></tr>
<tr class="separator:a97a2b51f58ae485afed1c7b3a8d510a2 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab627a1d50f1d421ff381d3b19a20f5ce inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab627a1d50f1d421ff381d3b19a20f5ce"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>FileDescriptor</b> (const <a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">FileDescriptor</a> &amp;o)=default</td></tr>
<tr class="separator:ab627a1d50f1d421ff381d3b19a20f5ce inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f063c3bb85834c0f8961ccd3605b449 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f063c3bb85834c0f8961ccd3605b449"></a>
<a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">FileDescriptor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">FileDescriptor</a> &amp;o)=default</td></tr>
<tr class="separator:a1f063c3bb85834c0f8961ccd3605b449 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac96bc5781c73b971cf64b875bce5d31b inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac96bc5781c73b971cf64b875bce5d31b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>close</b> ()</td></tr>
<tr class="separator:ac96bc5781c73b971cf64b875bce5d31b inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4d102c993e7f98bd1585e5e14cd4221 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab4d102c993e7f98bd1585e5e14cd4221"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fstat</b> (struct stat &amp;st)</td></tr>
<tr class="separator:ab4d102c993e7f98bd1585e5e14cd4221 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54e55cd9fa325852ffdbf0006ae6d044 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54e55cd9fa325852ffdbf0006ae6d044"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fchmod</b> (mode_t mode)</td></tr>
<tr class="separator:a54e55cd9fa325852ffdbf0006ae6d044 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a24568bc84cc4fd3b06080152fdcaf8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a24568bc84cc4fd3b06080152fdcaf8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>dup</b> ()</td></tr>
<tr class="separator:a7a24568bc84cc4fd3b06080152fdcaf8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c526f893fae5481189a87ca1817032a inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c526f893fae5481189a87ca1817032a"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>read</b> (void *buf, size_t count)</td></tr>
<tr class="separator:a8c526f893fae5481189a87ca1817032a inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad25f1cf7b87dd32ad861109c2eb6af0b inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad25f1cf7b87dd32ad861109c2eb6af0b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html#ad25f1cf7b87dd32ad861109c2eb6af0b">read_all_or_throw</a> (void *buf, size_t count)</td></tr>
<tr class="memdesc:ad25f1cf7b87dd32ad861109c2eb6af0b inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read all the data into buf, throwing runtime_error in case of a partial read. <br /></td></tr>
<tr class="separator:ad25f1cf7b87dd32ad861109c2eb6af0b inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28d025abf1fd5fa532b418dca5fb0675 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28d025abf1fd5fa532b418dca5fb0675"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>write</b> (const void *buf, size_t count)</td></tr>
<tr class="separator:a28d025abf1fd5fa532b418dca5fb0675 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7301fc74adf7bf403555d5dc092333d8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplParams" colspan="2"><a class="anchor" id="a7301fc74adf7bf403555d5dc092333d8"></a>
template&lt;typename Container &gt; </td></tr>
<tr class="memitem:a7301fc74adf7bf403555d5dc092333d8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><b>write</b> (const Container &amp;c)</td></tr>
<tr class="separator:a7301fc74adf7bf403555d5dc092333d8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a353886ff759002fc73a807a61e550b1c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a353886ff759002fc73a807a61e550b1c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html#a353886ff759002fc73a807a61e550b1c">write_all_or_retry</a> (const void *buf, size_t count)</td></tr>
<tr class="memdesc:a353886ff759002fc73a807a61e550b1c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write all the data in buf, retrying partial writes. <br /></td></tr>
<tr class="separator:a353886ff759002fc73a807a61e550b1c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b8bbe01bd31cb68d9153ece0ce5866d inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplParams" colspan="2"><a class="anchor" id="a9b8bbe01bd31cb68d9153ece0ce5866d"></a>
template&lt;typename Container &gt; </td></tr>
<tr class="memitem:a9b8bbe01bd31cb68d9153ece0ce5866d inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>write_all_or_retry</b> (const Container &amp;c)</td></tr>
<tr class="separator:a9b8bbe01bd31cb68d9153ece0ce5866d inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab794bc5fc0cd05ba9f98f408841b337c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab794bc5fc0cd05ba9f98f408841b337c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html#ab794bc5fc0cd05ba9f98f408841b337c">write_all_or_throw</a> (const void *buf, size_t count)</td></tr>
<tr class="memdesc:ab794bc5fc0cd05ba9f98f408841b337c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write all the data in buf, throwing runtime_error in case of a partial write. <br /></td></tr>
<tr class="separator:ab794bc5fc0cd05ba9f98f408841b337c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ef85c018873737c818c7c0456ec3ac3 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplParams" colspan="2"><a class="anchor" id="a6ef85c018873737c818c7c0456ec3ac3"></a>
template&lt;typename Container &gt; </td></tr>
<tr class="memitem:a6ef85c018873737c818c7c0456ec3ac3 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>write_all_or_throw</b> (const Container &amp;c)</td></tr>
<tr class="separator:a6ef85c018873737c818c7c0456ec3ac3 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1efd7e213916bf429b3b9afd9b6a5500 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1efd7e213916bf429b3b9afd9b6a5500"></a>
off_t&#160;</td><td class="memItemRight" valign="bottom"><b>lseek</b> (off_t offset, int whence=SEEK_SET)</td></tr>
<tr class="separator:a1efd7e213916bf429b3b9afd9b6a5500 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cc168cb94994fb6c209040c1bcf3afb inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cc168cb94994fb6c209040c1bcf3afb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>pread</b> (void *buf, size_t count, off_t offset)</td></tr>
<tr class="separator:a8cc168cb94994fb6c209040c1bcf3afb inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0af4dc7566ff7911303b4f83c9c61bb8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0af4dc7566ff7911303b4f83c9c61bb8"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>pwrite</b> (const void *buf, size_t count, off_t offset)</td></tr>
<tr class="separator:a0af4dc7566ff7911303b4f83c9c61bb8 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7995b586f3842c7a366f56ffcd4a725f inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplParams" colspan="2"><a class="anchor" id="a7995b586f3842c7a366f56ffcd4a725f"></a>
template&lt;typename Container &gt; </td></tr>
<tr class="memitem:a7995b586f3842c7a366f56ffcd4a725f inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><b>pwrite</b> (const Container &amp;c, off_t offset)</td></tr>
<tr class="separator:a7995b586f3842c7a366f56ffcd4a725f inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9181e0f6db1aac86e7686bfb3f46e4bf inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9181e0f6db1aac86e7686bfb3f46e4bf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>ftruncate</b> (off_t length)</td></tr>
<tr class="separator:a9181e0f6db1aac86e7686bfb3f46e4bf inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a053fee1d0648ca2fde64bd15e2dd36f6 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a053fee1d0648ca2fde64bd15e2dd36f6"></a>
<a class="el" href="classwreport_1_1sys_1_1MMap.html">MMap</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mmap</b> (size_t length, int prot, int flags, off_t offset=0)</td></tr>
<tr class="separator:a053fee1d0648ca2fde64bd15e2dd36f6 inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa22ab0ebe5109be93f8e8c720e1c581c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa22ab0ebe5109be93f8e8c720e1c581c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>operator int</b> () const </td></tr>
<tr class="separator:aa22ab0ebe5109be93f8e8c720e1c581c inherit pub_methods_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a3bdb3f2a5748cb865e74cdbaa93f4c50"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3bdb3f2a5748cb865e74cdbaa93f4c50"></a>
static <a class="el" href="classwreport_1_1sys_1_1File.html">File</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mkstemp</b> (const std::string &amp;prefix)</td></tr>
<tr class="separator:a3bdb3f2a5748cb865e74cdbaa93f4c50"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classwreport_1_1sys_1_1NamedFileDescriptor"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classwreport_1_1sys_1_1NamedFileDescriptor')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classwreport_1_1sys_1_1NamedFileDescriptor.html">wreport::sys::NamedFileDescriptor</a></td></tr>
<tr class="memitem:ae66517b3289dac35edf94f05baff1325 inherit pro_attribs_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae66517b3289dac35edf94f05baff1325"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>pathname</b></td></tr>
<tr class="separator:ae66517b3289dac35edf94f05baff1325 inherit pro_attribs_classwreport_1_1sys_1_1NamedFileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classwreport_1_1sys_1_1FileDescriptor"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classwreport_1_1sys_1_1FileDescriptor')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classwreport_1_1sys_1_1FileDescriptor.html">wreport::sys::FileDescriptor</a></td></tr>
<tr class="memitem:adbdd8b349209226f76655137329474f1 inherit pro_attribs_classwreport_1_1sys_1_1FileDescriptor"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbdd8b349209226f76655137329474f1"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>fd</b> = -1</td></tr>
<tr class="separator:adbdd8b349209226f76655137329474f1 inherit pro_attribs_classwreport_1_1sys_1_1FileDescriptor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>open(2) file descriptors </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1c9692459cae9d7ea6c4bb8abe236a8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wreport::sys::File::~File </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The destructor closes the file descriptor, but does not check errors on ::close(). </p>
<p>In normal program flow, it is a good idea to explicitly call File::close() in places where it can throw safely. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="sys_8h_source.html">sys.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Aug 18 2016 13:32:18 for libwreport by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>