You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2018/05/21 20:59:40 UTC
[1/3] mesos-site git commit: Updated the website built from mesos
SHA: aa83f81.
Repository: mesos-site
Updated Branches:
refs/heads/asf-site 3842635eb -> aa88b0052
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2fsync_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2fsync_8hpp_source.html b/content/api/latest/c++/windows_2fsync_8hpp_source.html
index 8ad59c0..350ec8e 100644
--- a/content/api/latest/c++/windows_2fsync_8hpp_source.html
+++ b/content/api/latest/c++/windows_2fsync_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="windows_2fsync_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/
/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cla
ss="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_FSYNC_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_FSYNC_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <io.h></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></
div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00026"><
/a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceos.html#a4e254eb66293c6c9446d6350567daabc"> 27</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#ad0ab4160dd8a8240d76eddca85f687a2">fsync</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (!::FlushFileBuffers(fd)) {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(</div><div class="line"><a name="l00031"></a><span class="l
ineno"> 31</span>  <span class="stringliteral">"os::fsync: Could not flush file buffers for given file descriptor"</span>);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#
endif // __STOUT_OS_WINDOWS_FSYNC_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2ftruncate_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2ftruncate_8hpp_source.html b/content/api/latest/c++/windows_2ftruncate_8hpp_source.html
index f50add4..5be87ec 100644
--- a/content/api/latest/c++/windows_2ftruncate_8hpp_source.html
+++ b/content/api/latest/c++/windows_2ftruncate_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="windows_2ftruncate_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="commen
t">//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div
class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_FTRUNCATE_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_FTRUNCATE_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line">
<a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceos.html#a2bb09919d0290d9c0123d842d65b15b5"> 25</a></span> <span c
lass="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#af41b169df092f5afbd41de13c450e959">ftruncate</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd, off_t length)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  FILE_END_OF_FILE_INFO info;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  info.EndOfFile.QuadPart = length;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (::SetFileInformationByHandle(</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  fd, FileEndOfFileInfo, &info, <span class="keyword">sizeof</span>(info)) == FALSE) {</div><div class="line"><a
name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span cl
ass="preprocessor">#endif // __STOUT_OS_WINDOWS_FTRUNCATE_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2ls_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2ls_8hpp_source.html b/content/api/latest/c++/windows_2ls_8hpp_source.html
index 22433ab..d912044 100644
--- a/content/api/latest/c++/windows_2ls_8hpp_source.html
+++ b/content/api/latest/c++/windows_2ls_8hpp_source.html
@@ -56,7 +56,7 @@
<div class="ttc" id="namespacepath_html"><div class="ttname"><a href="namespacepath.html">path</a></div><div class="ttdef"><b>Definition:</b> path.hpp:26</div></div>
<div class="ttc" id="classSharedHandle_html"><div class="ttname"><a href="classSharedHandle.html">SharedHandle</a></div><div class="ttdef"><b>Definition:</b> windows.hpp:72</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="longpath_8hpp_html"><div class="ttname"><a href="longpath_8hpp.html">longpath.hpp</a></div></div>
<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2lseek_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2lseek_8hpp_source.html b/content/api/latest/c++/windows_2lseek_8hpp_source.html
index e6f60d3..4578739 100644
--- a/content/api/latest/c++/windows_2lseek_8hpp_source.html
+++ b/content/api/latest/c++/windows_2lseek_8hpp_source.html
@@ -53,7 +53,7 @@
</div><!--header-->
<div class="contents">
<a href="windows_2lseek_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/
/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cla
ss="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_LSEEK_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_LSEEK_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></d
iv><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<off_t></a> <a class="code" href="namespaceos.html#a66e299de75c7ce5e68969ccb299fbaed">lseek</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, off_t offset, <span class=
"keywordtype">int</span> whence)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="comment">// NOTE: The values for `SEEK_SET`, `SEEK_CUR`, and `SEEK_END` are</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="comment">// 0, 1, 2, the same as `FILE_BEGIN`, `FILE_CURRENT`, and</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="comment">// `FILE_END`. Thus we don't need to map them, and they can be</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="comment">// casted to a `DWORD` safely.</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  LARGE_INTEGER offset_;</div><di
v class="line"><a name="l00032"></a><span class="lineno"> 32</span>  offset_.QuadPart = offset;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  LARGE_INTEGER new_offset;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// TODO(andschwa): This may need to be synchronized if users aren't</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="comment">// careful about sharing their file handles among threads.</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">const</span> BOOL result =</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  ::SetFilePointerEx(fd, offset_, &a
mp;new_offset, static_cast<DWORD>(whence));</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">if</span> (result == FALSE) {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>off_t<span class="keyword">></span>(new_offset.QuadPart);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> }</div><div class="line"><a name="l00047"></a
><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_LSEEK_HPP__</span></div><div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="namespaceos_html_a66e299de75c7ce5e68969ccb299fbaed"><div class="ttname"><a href="namespaceos.html#a66e299de75c7ce5e68969ccb299fbaed">os::lseek</a></div><div class="ttdeci">Try< off_t > lseek(int_fd fd, off_t offset, int whence)</div><div class="ttdef"><b>Definition:</b> lseek.hpp:25</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2mac_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2mac_8hpp_source.html b/content/api/latest/c++/windows_2mac_8hpp_source.html
index 7963e8e..9ca51a5 100644
--- a/content/api/latest/c++/windows_2mac_8hpp_source.html
+++ b/content/api/latest/c++/windows_2mac_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="windows_2mac_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//<
/span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class
="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_WINDOWS_MAC_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_WINDOWS_MAC_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <algorithm></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"
> 20</span> <span class="preprocessor">#include <<a class="code" href="none_8hpp.html">stout/none.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="result_8hpp.html">stout/result.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="stringify_8hpp.html">stout/stringify.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span> <span class="comment">// For `iphlpapi.h`.</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a
name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Network utilities.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespacenet.html">net</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// Returns the MAC address of a given link device. The link device is</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// specified using its name. Returns an error if the link device is not found.</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">inline</span> <a class="code" href="classResult.html">Result<MAC></a> <a class="code" href="namespacenet.html#aa0c3c89a627309104e37ffb51987daa1">mac
</a>(<span class="keyword">const</span> std::string& <a class="code" href="namespaceos_1_1Shell.html#acfe16ef2b1146ad49a8651c0a457ce46">name</a>)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  DWORD result;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  ULONG <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a> = 0;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// Indicates whether the link device is found or not.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div><div class="line"><a name="l00038"></a><span class="
lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// Make an initial call to GetAdaptersInfo to get structure size.</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> (GetAdaptersInfo(<span class="keyword">nullptr</span>, &size) != ERROR_BUFFER_OVERFLOW) {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(<span class="stringliteral">"Calling GetAdaptersInfo returned unexpected result"</span>);</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  std::vector<IP_ADAPTER_INF
O> adapterInfo(size / <span class="keyword">sizeof</span>(IP_ADAPTER_INFO));</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  result = GetAdaptersInfo(</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  static_cast<PIP_ADAPTER_INFO>(adapterInfo.data()),</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  &size);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (result != NO_ERROR) {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(result, <span class="stringliteral">"GetAdaptersInfo failed"</span>);</div><div class="line"><a name="l00051"></a><span class="line
no"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">foreach</span> (<span class="keyword">const</span> IP_ADAPTER_INFO& ip_adapter, adapterInfo) {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordflow">if</span> (!strcmp(ip_adapter.AdapterName, name.c_str())) {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  found = <span class="keyword">true</span>;</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (ip_adapter.AddressLength == 6) {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// NOTE: Althoug
h the `AddressLength` is 6, the size of the</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// `Address` byte buffer is usually larger than required, which</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// means we need to copy the bytes before the `MAC` constructor</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// will accept them.</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  uint8_t mac_buffer[6];</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="namespaceutils.html#ac8be4e5e1fedfabe178ca20b6a37349c">std::copy</a>(ip_adapter.Address, ip_adapter.Address + 6, mac_buffer);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> 
MAC <a class="code" href="namespacenet.html#aa0c3c89a627309104e37ffb51987daa1">mac</a>(mac_buffer);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">// Ignore if the address is 0 so that the results are</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// consistent across all platforms.</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (<a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(<a class="code" href="namespacenet.html#aa0c3c89a627309104e37ffb51987daa1">mac</a>) == <span class="stringliteral">"00:00:00:00:00:00"</span>) {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class=
"keywordflow">continue</span>;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  }</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> <a class="code" href="namespacenet.html#aa0c3c89a627309104e37ffb51987daa1">mac</a>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (!found) {</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <spa
n class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Cannot find the link device"</span>);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  }</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> } <span class="comment">// namespace net {</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="prepro
cessor">#endif // __STOUT_WINDOWS_MAC_HPP__</span></div><div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div class="ttname"><a href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:119</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2mkdir_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2mkdir_8hpp_source.html b/content/api/latest/c++/windows_2mkdir_8hpp_source.html
index d136e1a..1b113fd 100644
--- a/content/api/latest/c++/windows_2mkdir_8hpp_source.html
+++ b/content/api/latest/c++/windows_2mkdir_8hpp_source.html
@@ -57,7 +57,7 @@
<div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="exists_8hpp_html"><div class="ttname"><a href="exists_8hpp.html">exists.hpp</a></div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="namespacestrings_html_a3fbaeb4d589c49ac115fab3412073ca7"><div class="ttname"><a href="namespacestrings.html#a3fbaeb4d589c49ac115fab3412073ca7">strings::remove</a></div><div class="ttdeci">std::string remove(const std::string &from, const std::string &substring, Mode mode=ANY)</div><div class="ttdef"><b>Definition:</b> strings.hpp:40</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2mktemp_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2mktemp_8hpp_source.html b/content/api/latest/c++/windows_2mktemp_8hpp_source.html
index 7c9153d..2c73f1d 100644
--- a/content/api/latest/c++/windows_2mktemp_8hpp_source.html
+++ b/content/api/latest/c++/windows_2mktemp_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_a913abd73990a86de728ab7141b714b85"><div class="ttname"><a href="namespaceos.html#a913abd73990a86de728ab7141b714b85">os::mktemp</a></div><div class="ttdeci">Try< std::string > mktemp(const std::string &path=path::join(os::temp(),"XXXXXX"))</div><div class="ttdef"><b>Definition:</b> mktemp.hpp:36</div></div>
<div class="ttc" id="namespaceos_html_aaf5d5468adc1b85cf9bb7126e70807ca"><div class="ttname"><a href="namespaceos.html#aaf5d5468adc1b85cf9bb7126e70807ca">os::open</a></div><div class="ttdeci">Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)</div><div class="ttdef"><b>Definition:</b> open.hpp:35</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespacepath_html_aa86b16a2171cec90bb3337930513ef0f"><div class="ttname"><a href="namespacepath.html#aa86b16a2171cec90bb3337930513ef0f">path::join</a></div><div class="ttdeci">std::string join(const std::string &path1, const std::string &path2, const char _separator=os::PATH_SEPARATOR)</div><div class="ttdef"><b>Definition:</b> path.hpp:56</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2open_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2open_8hpp_source.html b/content/api/latest/c++/windows_2open_8hpp_source.html
index 97c680d..cd1a556 100644
--- a/content/api/latest/c++/windows_2open_8hpp_source.html
+++ b/content/api/latest/c++/windows_2open_8hpp_source.html
@@ -59,7 +59,7 @@
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="windows_2open_8hpp_html_a90f563755a3487471e47a64aa01daf2c"><div class="ttname"><a href="windows_2open_8hpp.html#a90f563755a3487471e47a64aa01daf2c">O_SYNC</a></div><div class="ttdeci">constexpr int O_SYNC</div><div class="ttdef"><b>Definition:</b> open.hpp:37</div></div>
<div class="ttc" id="namespaceos_html_aaf5d5468adc1b85cf9bb7126e70807ca"><div class="ttname"><a href="namespaceos.html#aaf5d5468adc1b85cf9bb7126e70807ca">os::open</a></div><div class="ttdeci">Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)</div><div class="ttdef"><b>Definition:</b> open.hpp:35</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="namespaceos_html_a426a9c189f65b7e3f63e16eb11ec73c3"><div class="ttname"><a href="namespaceos.html#a426a9c189f65b7e3f63e16eb11ec73c3">os::access</a></div><div class="ttdeci">Try< bool > access(const std::string &path, int how)</div><div class="ttdef"><b>Definition:</b> access.hpp:28</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2os_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2os_8hpp_source.html b/content/api/latest/c++/windows_2os_8hpp_source.html
index deebe15..bebe08e 100644
--- a/content/api/latest/c++/windows_2os_8hpp_source.html
+++ b/content/api/latest/c++/windows_2os_8hpp_source.html
@@ -71,7 +71,7 @@
<div class="ttc" id="namespaceos_html_aa98ca8ac255e2b9c689979a1b40084d3"><div class="ttname"><a href="namespaceos.html#aa98ca8ac255e2b9c689979a1b40084d3">os::processes</a></div><div class="ttdeci">Try< std::list< Process > > processes()</div><div class="ttdef"><b>Definition:</b> os.hpp:182</div></div>
<div class="ttc" id="namespaceos_html_accb0757a8d9eca48dd31c4c433d17cfd"><div class="ttname"><a href="namespaceos.html#accb0757a8d9eca48dd31c4c433d17cfd">os::mknod</a></div><div class="ttdeci">Try< Nothing > mknod(const std::string &path, mode_t mode, dev_t dev)</div><div class="ttdef"><b>Definition:</b> os.hpp:220</div></div>
<div class="ttc" id="namespaceproc_html_a34396c6140a28f583dc13fee3c3c35d4"><div class="ttname"><a href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">proc::status</a></div><div class="ttdeci">Result< ProcessStatus > status(pid_t pid)</div><div class="ttdef"><b>Definition:</b> proc.hpp:166</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_afa288d86b242c3005425a9c0f1682544"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#afa288d86b242c3005425a9c0f1682544">WNOHANG</a></div><div class="ttdeci">#define WNOHANG</div><div class="ttdef"><b>Definition:</b> windows.hpp:382</div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="classDuration_html_a05ddd6a9f21b82dba6313f81418f53d2"><div class="ttname"><a href="classDuration.html#a05ddd6a9f21b82dba6313f81418f53d2">Duration::ms</a></div><div class="ttdeci">double ms() const </div><div class="ttdef"><b>Definition:</b> duration.hpp:48</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2pipe_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2pipe_8hpp_source.html b/content/api/latest/c++/windows_2pipe_8hpp_source.html
index ce19690..093e89e 100644
--- a/content/api/latest/c++/windows_2pipe_8hpp_source.html
+++ b/content/api/latest/c++/windows_2pipe_8hpp_source.html
@@ -53,7 +53,7 @@
</div><!--header-->
<div class="contents">
<a href="windows_2pipe_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//
</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div clas
s="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_PIPE_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_PIPE_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <array></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div c
lass="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// Create pipes for interprocess communication. Since the pipes cannot</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// be used directly by Posix `read/write' functions they are wrapped</span></div><div class="l
ine"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// in file descriptors, a process-local concept.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::array<int_fd, 2></a>> <a class="code" href="namespaceos.html#aada7738a90123ea91fcd4b60693c2a51">pipe</a>()</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="comment">// Create inheritable pipe, as described in MSDN[1].</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">//</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa365782(v=vs.85).aspx</span><
/div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  SECURITY_ATTRIBUTES securityAttr;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  securityAttr.nLength = <span class="keyword">sizeof</span>(SECURITY_ATTRIBUTES);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  securityAttr.bInheritHandle = TRUE;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  securityAttr.lpSecurityDescriptor = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="namespacerouting_1_1queueing_1_1ingress.html#a934208b6017d0a9aed90b6594bb8292f">HANDLE</a> read_handle;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="namespacerouting_1_1queueing_1
_1ingress.html#a934208b6017d0a9aed90b6594bb8292f">HANDLE</a> write_handle;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">const</span> BOOL result =</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  ::CreatePipe(&read_handle, &write_handle, &securityAttr, 0);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">if</span> (result == FALSE) {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"
></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> std::array<int_fd, 2>{<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>(read_handle), <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>(write_handle)};</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_PIPE_HPP__</span></div><div class="ttc" id="classTry_html"><div class="tt
name"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespacerouting_1_1queueing_1_1ingress_html_a934208b6017d0a9aed90b6594bb8292f"><div class="ttname"><a href="namespacerouting_1_1queueing_1_1ingress.html#a934208b6017d0a9aed90b6594bb8292f">routing::queueing::ingress::HANDLE</a></div><div class="ttdeci">constexpr Handle HANDLE</div><div class="ttdef"><b>Definition:</b> ingress.hpp:37</div></div>
<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2realpath_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2realpath_8hpp_source.html b/content/api/latest/c++/windows_2realpath_8hpp_source.html
index 0094c71..d1786ce 100644
--- a/content/api/latest/c++/windows_2realpath_8hpp_source.html
+++ b/content/api/latest/c++/windows_2realpath_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="classSharedHandle_html_a800385e17e17cb826147968e748fd8fa"><div class="ttname"><a href="classSharedHandle.html#a800385e17e17cb826147968e748fd8fa">SharedHandle::get_handle</a></div><div class="ttdeci">HANDLE get_handle() const </div><div class="ttdef"><b>Definition:</b> windows.hpp:90</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_aa533c79d98af12b40b567a851e442373"><div class="ttname"><a href="namespaceos.html#aa533c79d98af12b40b567a851e442373">os::realpath</a></div><div class="ttdeci">Result< std::string > realpath(const std::string &path)</div><div class="ttdef"><b>Definition:</b> realpath.hpp:24</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2rename_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2rename_8hpp_source.html b/content/api/latest/c++/windows_2rename_8hpp_source.html
index daa9857..c7d8a57 100644
--- a/content/api/latest/c++/windows_2rename_8hpp_source.html
+++ b/content/api/latest/c++/windows_2rename_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="windows_2rename_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">
//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cl
ass="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_RENAME_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_RENAME_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></sp
an></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="longpath_8hpp.html">stout/internal/windows/longpath.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">n
amespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a4cdd0a41f89eeb7cc908f3dec0f7f15a">rename</a>(<span class="keyword">const</span> std::string& from, <span class="keyword">const</span> std::string& to)</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="comment">// Use `MoveFile` to perform the file move. The MSVCRT implementation of</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">// `::rename` fails if the `to` file already exists[1], while some UNIX</span></div><div cl
ass="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// implementations allow that[2].</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">//</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="comment">// Use `MOVEFILE_COPY_ALLOWED` to allow moving the file to another volume and</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="comment">// `MOVEFILE_REPLACE_EXISTING` to comply with the UNIX implementation and</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="comment">// replace an existing file[3].</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="comment">//</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="com
ment">// [1] https://msdn.microsoft.com/en-us/library/zw5t957f.aspx</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="comment">// [2] http://man7.org/linux/man-pages/man2/rename.2.html</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="comment">// [3] https://msdn.microsoft.com/en-us/library/windows/desktop/aa365240(v=vs.85).aspx</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">const</span> BOOL result = ::MoveFileExW(</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  ::<a class="code" href="namespaceinternal_1_1windows.html#abd7dbdbc8d95626d0c66455078380aa1">internal::windows::longpath</a>(from).data(),</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  ::<a class="code" href="namespaceinternal_1_1windows.html#abd7dbdbc8d95626d0c664550
78380aa1">internal::windows::longpath</a>(to).data(),</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">if</span> (!result) {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="stringliteral">"`os::rename` failed to move file '"</span> + from + <span class="stringliteral">"' to '"</span> + to + <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> 
}</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_RENAME_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2rm_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2rm_8hpp_source.html b/content/api/latest/c++/windows_2rm_8hpp_source.html
index 8fee556..5b1e00f 100644
--- a/content/api/latest/c++/windows_2rm_8hpp_source.html
+++ b/content/api/latest/c++/windows_2rm_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="namespaceos_html_ac1c8ce3595084d78291f98c2be9f62ba"><div class="ttname"><a href="namespaceos.html#ac1c8ce3595084d78291f98c2be9f62ba">os::rm</a></div><div class="ttdeci">Try< Nothing > rm(const std::string &path)</div><div class="ttdef"><b>Definition:</b> rm.hpp:26</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_ab2b826c68a25af9e9ef47c570c36e137"><div class="ttname"><a href="namespaceos.html#ab2b826c68a25af9e9ef47c570c36e137">os::sleep</a></div><div class="ttdeci">Try< Nothing > sleep(const Duration &duration)</div><div class="ttdef"><b>Definition:</b> os.hpp:234</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_ac9fbbbc8bb9b553f3ad1abac7c9a81c3"><div class="ttname"><a href="namespaceinternal_1_1windows.html#ac9fbbbc8bb9b553f3ad1abac7c9a81c3">internal::windows::wait_on_delete</a></div><div class="ttdeci">Try< Nothing > wait_on_delete(const std::string &path)</div><div class="ttdef"><b>Definition:</b> rm.hpp:38</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2rmdir_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2rmdir_8hpp_source.html b/content/api/latest/c++/windows_2rmdir_8hpp_source.html
index fd5169e..691f34d 100644
--- a/content/api/latest/c++/windows_2rmdir_8hpp_source.html
+++ b/content/api/latest/c++/windows_2rmdir_8hpp_source.html
@@ -63,7 +63,7 @@
<div class="ttc" id="classSharedHandle_html"><div class="ttname"><a href="classSharedHandle.html">SharedHandle</a></div><div class="ttdef"><b>Definition:</b> windows.hpp:72</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a0ba4d272b938da76e404648103077480"><div class="ttname"><a href="namespaceos_1_1stat.html#a0ba4d272b938da76e404648103077480">os::stat::islink</a></div><div class="ttdeci">bool islink(const std::string &path)</div><div class="ttdef"><b>Definition:</b> stat.hpp:78</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a305c82e6d53ccd82665b4b3648afcd1ca884cbffa48c7e5b804161fdc71389c7e"><div class="ttname"><a href="namespaceos_1_1stat.html#a305c82e6d53ccd82665b4b3648afcd1ca884cbffa48c7e5b804161fdc71389c7e">os::stat::FollowSymlink::DO_NOT_FOLLOW_SYMLINK</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2shell_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2shell_8hpp_source.html b/content/api/latest/c++/windows_2shell_8hpp_source.html
index 8a7f929..989166a 100644
--- a/content/api/latest/c++/windows_2shell_8hpp_source.html
+++ b/content/api/latest/c++/windows_2shell_8hpp_source.html
@@ -65,7 +65,7 @@
<div class="ttc" id="os_8hpp_html"><div class="ttname"><a href="os_8hpp.html">os.hpp</a></div></div>
<div class="ttc" id="namespaceos_html_aaf5d5468adc1b85cf9bb7126e70807ca"><div class="ttname"><a href="namespaceos.html#aaf5d5468adc1b85cf9bb7126e70807ca">os::open</a></div><div class="ttdeci">Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)</div><div class="ttdef"><b>Definition:</b> open.hpp:35</div></div>
<div class="ttc" id="namespaceproc_html_a34396c6140a28f583dc13fee3c3c35d4"><div class="ttname"><a href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">proc::status</a></div><div class="ttdeci">Result< ProcessStatus > status(pid_t pid)</div><div class="ttdef"><b>Definition:</b> proc.hpp:166</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="inherit_8hpp_html"><div class="ttname"><a href="inherit_8hpp.html">inherit.hpp</a></div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_a9dc48dc50b21cb8cee5237630460c4bd"><div class="ttname"><a href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">internal::windows::set_inherit</a></div><div class="ttdeci">Try< Nothing > set_inherit(const int_fd &fd, const bool inherit)</div><div class="ttdef"><b>Definition:</b> inherit.hpp:31</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2stat_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2stat_8hpp_source.html b/content/api/latest/c++/windows_2stat_8hpp_source.html
index 723a1fd..fe2499c 100644
--- a/content/api/latest/c++/windows_2stat_8hpp_source.html
+++ b/content/api/latest/c++/windows_2stat_8hpp_source.html
@@ -64,7 +64,7 @@
<div class="ttc" id="namespaceos_1_1stat_html_a305c82e6d53ccd82665b4b3648afcd1ca52881123108233bc671c71041ff852c5"><div class="ttname"><a href="namespaceos_1_1stat.html#a305c82e6d53ccd82665b4b3648afcd1ca52881123108233bc671c71041ff852c5">os::stat::FollowSymlink::FOLLOW_SYMLINK</a></div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_adb5b8a8afe285eb66a0a551f2382d113"><div class="ttname"><a href="namespaceinternal_1_1windows.html#adb5b8a8afe285eb66a0a551f2382d113">internal::windows::get_file_attributes</a></div><div class="ttdeci">Try< DWORD > get_file_attributes(const std::wstring &path)</div><div class="ttdef"><b>Definition:</b> attributes.hpp:27</div></div>
<div class="ttc" id="namespacefs_html_a68279f7514744bb2af74dfce8bb0bbc7"><div class="ttname"><a href="namespacefs.html#a68279f7514744bb2af74dfce8bb0bbc7">fs::symlink</a></div><div class="ttdeci">Try< Nothing > symlink(const std::string &original, const std::string &link)</div><div class="ttdef"><b>Definition:</b> fs.hpp:54</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a7305d671adaae193b8c158bf058180ee"><div class="ttname"><a href="namespaceos_1_1stat.html#a7305d671adaae193b8c158bf058180ee">os::stat::mtime</a></div><div class="ttdeci">Try< long > mtime(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:144</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_ac48383be68af20ef17fe5b87177636b8"><div class="ttname"><a href="namespaceos_1_1stat.html#ac48383be68af20ef17fe5b87177636b8">os::stat::inode</a></div><div class="ttdeci">Try< ino_t > inode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:200</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2su_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2su_8hpp_source.html b/content/api/latest/c++/windows_2su_8hpp_source.html
index d1545e9..39c1210 100644
--- a/content/api/latest/c++/windows_2su_8hpp_source.html
+++ b/content/api/latest/c++/windows_2su_8hpp_source.html
@@ -57,7 +57,7 @@
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_a698aa27e5ea6b1dc1c190b978c2f7960"><div class="ttname"><a href="namespaceos.html#a698aa27e5ea6b1dc1c190b978c2f7960">os::user</a></div><div class="ttdeci">Result< std::string > user(Option< uid_t > uid=None())</div><div class="ttdef"><b>Definition:</b> su.hpp:277</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/write_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/write_8hpp_source.html b/content/api/latest/c++/write_8hpp_source.html
index 82c4dc4..a073e3c 100644
--- a/content/api/latest/c++/write_8hpp_source.html
+++ b/content/api/latest/c++/write_8hpp_source.html
@@ -62,7 +62,7 @@
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_aead39710af2622ee9b0d412f62e90aa5"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aead39710af2622ee9b0d412f62e90aa5">S_IWUSR</a></div><div class="ttdeci">const mode_t S_IWUSR</div><div class="ttdef"><b>Definition:</b> windows.hpp:306</div></div>
<div class="ttc" id="namespaceos_html_aaf5d5468adc1b85cf9bb7126e70807ca"><div class="ttname"><a href="namespaceos.html#aaf5d5468adc1b85cf9bb7126e70807ca">os::open</a></div><div class="ttdeci">Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)</div><div class="ttdef"><b>Definition:</b> open.hpp:35</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:50</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a66cff14a0638cde9f422c7a4b0938e61"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a66cff14a0638cde9f422c7a4b0938e61">S_IRUSR</a></div><div class="ttdeci">const mode_t S_IRUSR</div><div class="ttdef"><b>Definition:</b> windows.hpp:305</div></div>
[3/3] mesos-site git commit: Updated the website built from mesos
SHA: aa83f81.
Posted by gi...@apache.org.
Updated the website built from mesos SHA: aa83f81.
Project: http://git-wip-us.apache.org/repos/asf/mesos-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos-site/commit/aa88b005
Tree: http://git-wip-us.apache.org/repos/asf/mesos-site/tree/aa88b005
Diff: http://git-wip-us.apache.org/repos/asf/mesos-site/diff/aa88b005
Branch: refs/heads/asf-site
Commit: aa88b0052cfe40ebdafc09543fcf2ee0bb8957bc
Parents: 3842635
Author: jenkins <bu...@apache.org>
Authored: Mon May 21 20:59:34 2018 +0000
Committer: jenkins <bu...@apache.org>
Committed: Mon May 21 20:59:34 2018 +0000
----------------------------------------------------------------------
...ternal_2windows_2attributes_8hpp_source.html | 2 +-
...t_2include_2stout_2os_2read_8hpp_source.html | 2 +-
...include_2stout_2windows_2fs_8hpp_source.html | 2 +-
...include_2stout_2windows_2ip_8hpp_source.html | 2 +-
...nclude_2stout_2windows_2net_8hpp_source.html | 2 +-
content/api/latest/c++/error_8hpp_source.html | 2 +-
content/api/latest/c++/inherit_8hpp_source.html | 2 +-
.../latest/c++/reparsepoint_8hpp_source.html | 2 +-
content/api/latest/c++/result_8hpp_source.html | 2 +-
...out_2os_2windows_2jobobject_8hpp_source.html | 2 +-
...2stout_2os_2windows_2socket_8hpp_source.html | 2 +-
.../c++/subprocess__windows_8hpp_source.html | 2 +-
content/api/latest/c++/symlink_8hpp_source.html | 2 +-
.../latest/c++/windows_2chdir_8hpp_source.html | 2 +-
.../latest/c++/windows_2close_8hpp_source.html | 4 +--
.../c++/windows_2copyfile_8hpp_source.html | 2 +-
.../latest/c++/windows_2dup_8hpp_source.html | 2 +-
.../windows_2dynamiclibrary_8hpp_source.html | 2 +-
content/api/latest/c++/windows_2error_8hpp.html | 3 +-
.../latest/c++/windows_2error_8hpp_source.html | 35 ++++++++++----------
.../latest/c++/windows_2fcntl_8hpp_source.html | 2 +-
.../latest/c++/windows_2fsync_8hpp_source.html | 2 +-
.../c++/windows_2ftruncate_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2ls_8hpp_source.html | 2 +-
.../latest/c++/windows_2lseek_8hpp_source.html | 2 +-
.../latest/c++/windows_2mac_8hpp_source.html | 2 +-
.../latest/c++/windows_2mkdir_8hpp_source.html | 2 +-
.../latest/c++/windows_2mktemp_8hpp_source.html | 2 +-
.../latest/c++/windows_2open_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2os_8hpp_source.html | 2 +-
.../latest/c++/windows_2pipe_8hpp_source.html | 2 +-
.../c++/windows_2realpath_8hpp_source.html | 2 +-
.../latest/c++/windows_2rename_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2rm_8hpp_source.html | 2 +-
.../latest/c++/windows_2rmdir_8hpp_source.html | 2 +-
.../latest/c++/windows_2shell_8hpp_source.html | 2 +-
.../latest/c++/windows_2stat_8hpp_source.html | 2 +-
.../api/latest/c++/windows_2su_8hpp_source.html | 2 +-
content/api/latest/c++/write_8hpp_source.html | 2 +-
39 files changed, 56 insertions(+), 58 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp_source.html
index fff039c..550b218 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp_source.html
@@ -55,7 +55,7 @@
<a href="3rdparty_2stout_2include_2stout_2internal_2windows_2attributes_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="l
ineno"> 6</span> <span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span
class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a
class="code" href="stringify_8hpp.html">stout/stringify.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceinternal.html"> 24</a></span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceintern
al_1_1windows.html"> 25</a></span> <span class="keyword">namespace </span>windows {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceinternal_1_1windows.html#adb5b8a8afe285eb66a0a551f2382d113"> 27</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<DWORD></a> <a class="code" href="namespaceinternal_1_1windows.html#adb5b8a8afe285eb66a0a551f2382d113">get_file_attributes</a>(<span class="keyword">const</span> std::wstring& <a class="code" href="namespacepath.html">path</a>) {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keyword">const</span> DWORD attributes = ::GetFileAttributesW(path.data());</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">if</span> (attributes == INVALID_FILE_ATTRI
BUTES) {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="stringliteral">"Failed to get attributes for file '"</span> + <a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(path) + <span class="stringliteral">"'"</span>);</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">return</span> attributes;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</s
pan> } <span class="comment">// namespace windows {</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> } <span class="comment">// namespace internal {</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#endif // __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__</span></div><div class="ttc" id="namespacepath_html"><div class="ttname"><a href="namespacepath.html">path</a></div><div class="ttdef"><b>Definition:</b> path.hpp:26</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_adb5b8a8afe285eb66a0a551f2382d113"><div class="ttname"><a href="namespaceinternal_1_1windows.html#adb5b8a8afe285eb66a0a551f2382d113">internal::windows::get_file_attributes</a></div><div class="ttdeci">Try< DWORD > get_file_attributes(const std::wstring &path)</div><div class="ttdef"><b>Definition:</b> attributes.hpp:27</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div>
<div class="ttc" id="namespaceinternal_html"><div class="ttname"><a href="namespaceinternal.html">internal</a></div><div class="ttdef"><b>Definition:</b> attributes.hpp:24</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2read_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2read_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2read_8hpp_source.html
index cf13841..4e43c0f 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2read_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2read_8hpp_source.html
@@ -57,7 +57,7 @@
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div class="ttname"><a href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:119</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:50</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="stout_2include_2stout_2os_2socket_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2os_2socket_8hpp.html">socket.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2fs_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2fs_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2fs_8hpp_source.html
index 327e7c5..6facd31 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2fs_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2fs_8hpp_source.html
@@ -60,7 +60,7 @@
<div class="ttc" id="namespaceos_html_aa533c79d98af12b40b567a851e442373"><div class="ttname"><a href="namespaceos.html#aa533c79d98af12b40b567a851e442373">os::realpath</a></div><div class="ttdeci">Result< std::string > realpath(const std::string &path)</div><div class="ttdef"><b>Definition:</b> realpath.hpp:24</div></div>
<div class="ttc" id="classResult_html_a521adf96f5c27d26d6b1d580aae8aaee"><div class="ttname"><a href="classResult.html#a521adf96f5c27d26d6b1d580aae8aaee">Result::error</a></div><div class="ttdeci">static Result< T > error(const std::string &message)</div><div class="ttdef"><b>Definition:</b> result.hpp:53</div></div>
<div class="ttc" id="namespacefs_html_a68279f7514744bb2af74dfce8bb0bbc7"><div class="ttname"><a href="namespacefs.html#a68279f7514744bb2af74dfce8bb0bbc7">fs::symlink</a></div><div class="ttdeci">Try< Nothing > symlink(const std::string &original, const std::string &link)</div><div class="ttdef"><b>Definition:</b> fs.hpp:54</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespacepath_html_aa86b16a2171cec90bb3337930513ef0f"><div class="ttname"><a href="namespacepath.html#aa86b16a2171cec90bb3337930513ef0f">path::join</a></div><div class="ttdeci">std::string join(const std::string &path1, const std::string &path2, const char _separator=os::PATH_SEPARATOR)</div><div class="ttdef"><b>Definition:</b> path.hpp:56</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="classResult_html"><div class="ttname"><a href="classResult.html">Result</a></div><div class="ttdef"><b>Definition:</b> check.hpp:30</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2ip_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2ip_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2ip_8hpp_source.html
index 8fc5430..8ce9a85 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2ip_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2ip_8hpp_source.html
@@ -57,7 +57,7 @@
<div class="ttc" id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div class="ttname"><a href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:119</div></div>
<div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="classnet_1_1IP_html_a29469a2770ed1c02f447470712158d0e"><div class="ttname"><a href="classnet_1_1IP.html#a29469a2770ed1c02f447470712158d0e">net::IP::parse</a></div><div class="ttdeci">static Try< IP > parse(const std::string &value, int family=AF_UNSPEC)</div><div class="ttdef"><b>Definition:</b> ip.hpp:417</div></div>
<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2net_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2net_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2net_8hpp_source.html
index 38df166..75c6273 100644
--- a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2net_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_2net_8hpp_source.html
@@ -60,7 +60,7 @@
<div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div>
<div class="ttc" id="classnet_1_1IP_html_a9b2b8da4b79c15e6632a9305a3d4c7cb"><div class="ttname"><a href="classnet_1_1IP.html#a9b2b8da4b79c15e6632a9305a3d4c7cb">net::IP::in</a></div><div class="ttdeci">Try< struct in_addr > in() const </div><div class="ttdef"><b>Definition:</b> ip.hpp:124</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespacenet_html_a9228d72b9850d1b39d54b5784068fa1f"><div class="ttname"><a href="namespacenet.html#a9228d72b9850d1b39d54b5784068fa1f">net::getHostname</a></div><div class="ttdeci">Try< std::string > getHostname(const IP &ip)</div><div class="ttdef"><b>Definition:</b> net.hpp:45</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_afd80ecbe3170ca4fc85b65cda8659f82"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#afd80ecbe3170ca4fc85b65cda8659f82">MAXHOSTNAMELEN</a></div><div class="ttdeci">#define MAXHOSTNAMELEN</div><div class="ttdef"><b>Definition:</b> windows.hpp:162</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/error_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/error_8hpp_source.html b/content/api/latest/c++/error_8hpp_source.html
index caec16f..1cf9772 100644
--- a/content/api/latest/c++/error_8hpp_source.html
+++ b/content/api/latest/c++/error_8hpp_source.html
@@ -52,7 +52,7 @@
<div class="title">error.hpp</div> </div>
</div><!--header-->
<div class="contents">
-<a href="error_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span><
/div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"
><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_ERROR_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_ERROR_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// NOTE: The order of these `#include`s is important. This file is structured</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// as a series of `#include`s for historical reasons. Before, `stout/error`</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// simply contained the definitions of `Error` and `ErrnoError`. The addition</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>
 <span class="comment">// of Windows required the addition of `WindowsError`. But, we try to avoid</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// `#ifdef`'ing code, opting instead to `#ifdef` `#include` statements. Hence,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// we simply move the `error.hpp` code to `errorbase.hpp` and include the</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// Windows error code below it.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="errorbase_8hpp.html">stout/errorbase.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span
> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="windows_2error_8hpp.html">stout/windows/error.hpp</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">using</span> <a class="code" href="classErrnoError.html">SocketError</a> =</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="classWindowsSocketError.html">WindowsSocketError</a>;</div><div class="line"><a n
ame="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="error_8hpp.html#a176f6fc34ea37d40201853a52a475762"> 33</a></span>  <a class="code" href="classErrnoError.html">ErrnoError</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif // __STOUT_ERROR_HPP__</span></div><div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:120</div></div>
+<a href="error_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span><
/div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"
><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_ERROR_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_ERROR_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// NOTE: The order of these `#include`s is important. This file is structured</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// as a series of `#include`s for historical reasons. Before, `stout/error`</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// simply contained the definitions of `Error` and `ErrnoError`. The addition</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>
 <span class="comment">// of Windows required the addition of `WindowsError`. But, we try to avoid</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// `#ifdef`'ing code, opting instead to `#ifdef` `#include` statements. Hence,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// we simply move the `error.hpp` code to `errorbase.hpp` and include the</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// Windows error code below it.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="errorbase_8hpp.html">stout/errorbase.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span
> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <<a class="code" href="windows_2error_8hpp.html">stout/windows/error.hpp</a>></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">using</span> <a class="code" href="classErrnoError.html">SocketError</a> =</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="classWindowsSocketError.html">WindowsSocketError</a>;</div><div class="line"><a n
ame="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="error_8hpp.html#a176f6fc34ea37d40201853a52a475762"> 33</a></span>  <a class="code" href="classErrnoError.html">ErrnoError</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif // __STOUT_ERROR_HPP__</span></div><div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:123</div></div>
<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:50</div></div>
<div class="ttc" id="errorbase_8hpp_html"><div class="ttname"><a href="errorbase_8hpp.html">errorbase.hpp</a></div></div>
<div class="ttc" id="windows_2error_8hpp_html"><div class="ttname"><a href="windows_2error_8hpp.html">error.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/inherit_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/inherit_8hpp_source.html b/content/api/latest/c++/inherit_8hpp_source.html
index d84af32..9402038 100644
--- a/content/api/latest/c++/inherit_8hpp_source.html
+++ b/content/api/latest/c++/inherit_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="inherit_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span
></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="lin
e"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a
name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span>windows {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a n
ame="l00026"></a><span class="lineno"> 26</span> <span class="comment">// This function enables or disables inheritance for a Windows file handle.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">//</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// NOTE: By default, handles on Windows are not inheritable, so this is</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// primarily used to enable inheritance when passing handles to child processes,</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// and subsequently disable inheritance.</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd"> 31</a></span> <span class="
keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">set_inherit</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd, <span class="keyword">const</span> <span class="keywordtype">bool</span> inherit)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> BOOL result = ::SetHandleInformation(</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  fd, HANDLE_FLAG_INHERIT, inherit ? HANDLE_FLAG_INHERIT : 0);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</spa
n> (result == FALSE) {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <span class="comment">// namespace windows {</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> } <span class="comment">// namespace in
ternal {</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#endif // __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_a9dc48dc50b21cb8cee5237630460c4bd"><div class="ttname"><a href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">internal::windows::set_inherit</a></div><div class="ttdeci">Try< Nothing > set_inherit(const int_fd &fd, const bool inherit)</div><div class="ttdef"><b>Definition:</b> inherit.hpp:31</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/reparsepoint_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/reparsepoint_8hpp_source.html b/content/api/latest/c++/reparsepoint_8hpp_source.html
index 691ef6a..3ad9b12 100644
--- a/content/api/latest/c++/reparsepoint_8hpp_source.html
+++ b/content/api/latest/c++/reparsepoint_8hpp_source.html
@@ -62,7 +62,7 @@
<div class="ttc" id="namespaceos_1_1stat_html_a305c82e6d53ccd82665b4b3648afcd1ca52881123108233bc671c71041ff852c5"><div class="ttname"><a href="namespaceos_1_1stat.html#a305c82e6d53ccd82665b4b3648afcd1ca52881123108233bc671c71041ff852c5">os::stat::FollowSymlink::FOLLOW_SYMLINK</a></div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_adb5b8a8afe285eb66a0a551f2382d113"><div class="ttname"><a href="namespaceinternal_1_1windows.html#adb5b8a8afe285eb66a0a551f2382d113">internal::windows::get_file_attributes</a></div><div class="ttdeci">Try< DWORD > get_file_attributes(const std::wstring &path)</div><div class="ttdef"><b>Definition:</b> attributes.hpp:27</div></div>
<div class="ttc" id="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER_html_af1060c96a499d7bed78bd8b3fd9d1c8c"><div class="ttname"><a href="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER.html#af1060c96a499d7bed78bd8b3fd9d1c8c">internal::windows::_REPARSE_DATA_BUFFER::Flags</a></div><div class="ttdeci">ULONG Flags</div><div class="ttdef"><b>Definition:</b> reparsepoint.hpp:83</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER_html_a12170e3a11f67ec2f060e93e40e6be2d"><div class="ttname"><a href="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER.html#a12170e3a11f67ec2f060e93e40e6be2d">internal::windows::_REPARSE_DATA_BUFFER::SubstituteNameLength</a></div><div class="ttdeci">USHORT SubstituteNameLength</div><div class="ttdef"><b>Definition:</b> reparsepoint.hpp:74</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER_html_a2e9448ef8100749cf1d4e2c6d1b01eff"><div class="ttname"><a href="structinternal_1_1windows_1_1__REPARSE__DATA__BUFFER.html#a2e9448ef8100749cf1d4e2c6d1b01eff">internal::windows::_REPARSE_DATA_BUFFER::PrintNameOffset</a></div><div class="ttdeci">USHORT PrintNameOffset</div><div class="ttdef"><b>Definition:</b> reparsepoint.hpp:77</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/result_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/result_8hpp_source.html b/content/api/latest/c++/result_8hpp_source.html
index 970adc7..de5e268 100644
--- a/content/api/latest/c++/result_8hpp_source.html
+++ b/content/api/latest/c++/result_8hpp_source.html
@@ -64,7 +64,7 @@
<div class="ttc" id="classResult_html_a457818fb4e681c1451de3b85caa23f1a"><div class="ttname"><a href="classResult.html#a457818fb4e681c1451de3b85caa23f1a">Result::Result</a></div><div class="ttdeci">Result(const U &u)</div><div class="ttdef"><b>Definition:</b> result.hpp:68</div></div>
<div class="ttc" id="classResult_html_a521adf96f5c27d26d6b1d580aae8aaee"><div class="ttname"><a href="classResult.html#a521adf96f5c27d26d6b1d580aae8aaee">Result::error</a></div><div class="ttdeci">static Result< T > error(const std::string &message)</div><div class="ttdef"><b>Definition:</b> result.hpp:53</div></div>
<div class="ttc" id="some_8hpp_html"><div class="ttname"><a href="some_8hpp.html">some.hpp</a></div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="classResult_html_a796771fd811f190b98476babe0fa460c"><div class="ttname"><a href="classResult.html#a796771fd811f190b98476babe0fa460c">Result::operator=</a></div><div class="ttdeci">Result< T > & operator=(const Result< T > &that)=default</div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> type_utils.hpp:510</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/stout_2include_2stout_2os_2windows_2jobobject_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/stout_2include_2stout_2os_2windows_2jobobject_8hpp_source.html b/content/api/latest/c++/stout_2include_2stout_2os_2windows_2jobobject_8hpp_source.html
index 507968b..4494ae9 100644
--- a/content/api/latest/c++/stout_2include_2stout_2os_2windows_2jobobject_8hpp_source.html
+++ b/content/api/latest/c++/stout_2include_2stout_2os_2windows_2jobobject_8hpp_source.html
@@ -59,7 +59,7 @@
<div class="ttc" id="classSharedHandle_html"><div class="ttname"><a href="classSharedHandle.html">SharedHandle</a></div><div class="ttdef"><b>Definition:</b> windows.hpp:72</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_aa98ca8ac255e2b9c689979a1b40084d3"><div class="ttname"><a href="namespaceos.html#aa98ca8ac255e2b9c689979a1b40084d3">os::processes</a></div><div class="ttdeci">Try< std::list< Process > > processes()</div><div class="ttdef"><b>Definition:</b> os.hpp:182</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="namespaceos_html_a4c477c8086d4b3004c170ee05e5be9bf"><div class="ttname"><a href="namespaceos.html#a4c477c8086d4b3004c170ee05e5be9bf">os::name_job</a></div><div class="ttdeci">Try< std::wstring > name_job(pid_t pid)</div><div class="ttdef"><b>Definition:</b> jobobject.hpp:39</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/stout_2include_2stout_2os_2windows_2socket_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/stout_2include_2stout_2os_2windows_2socket_8hpp_source.html b/content/api/latest/c++/stout_2include_2stout_2os_2windows_2socket_8hpp_source.html
index 183029f..b658e7b 100644
--- a/content/api/latest/c++/stout_2include_2stout_2os_2windows_2socket_8hpp_source.html
+++ b/content/api/latest/c++/stout_2include_2stout_2os_2windows_2socket_8hpp_source.html
@@ -56,7 +56,7 @@
<div class="ttc" id="namespacenet_html_a4cfca6331034dc0a6dc6077fc048843b"><div class="ttname"><a href="namespacenet.html#a4cfca6331034dc0a6dc6077fc048843b">net::socket</a></div><div class="ttdeci">Try< int_fd > socket(int family, int type, int protocol)</div><div class="ttdef"><b>Definition:</b> socket.hpp:34</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceprocess_1_1network_html_a1987d4376ac5e2f04ad72e6c84c7569c"><div class="ttname"><a href="namespaceprocess_1_1network.html#a1987d4376ac5e2f04ad72e6c84c7569c">process::network::address</a></div><div class="ttdeci">Try< Address > address(int_fd s)</div><div class="ttdoc">Returns the Address with the assigned ip and assigned port. </div><div class="ttdef"><b>Definition:</b> network.hpp:79</div></div>
-<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:120</div></div>
+<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:123</div></div>
<div class="ttc" id="namespacenet_html_a6d996e15b39630257af8d8a0379c7f7a"><div class="ttname"><a href="namespacenet.html#a6d996e15b39630257af8d8a0379c7f7a">net::is_inprogress_error</a></div><div class="ttdeci">bool is_inprogress_error(int error)</div><div class="ttdef"><b>Definition:</b> socket.hpp:71</div></div>
<div class="ttc" id="namespacenet_html_a5ba505f2b438dcc42c59c5ba5b94f38c"><div class="ttname"><a href="namespacenet.html#a5ba505f2b438dcc42c59c5ba5b94f38c">net::bind</a></div><div class="ttdeci">int bind(const int_fd &fd, const sockaddr *addr, socklen_t addrlen)</div><div class="ttdef"><b>Definition:</b> socket.hpp:143</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/subprocess__windows_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/subprocess__windows_8hpp_source.html b/content/api/latest/c++/subprocess__windows_8hpp_source.html
index 08f003f..6558508 100644
--- a/content/api/latest/c++/subprocess__windows_8hpp_source.html
+++ b/content/api/latest/c++/subprocess__windows_8hpp_source.html
@@ -59,7 +59,7 @@
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="subprocess_8hpp_html"><div class="ttname"><a href="subprocess_8hpp.html">subprocess.hpp</a></div></div>
<div class="ttc" id="os_8hpp_html"><div class="ttname"><a href="os_8hpp.html">os.hpp</a></div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2os_2environment_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2os_2environment_8hpp.html">environment.hpp</a></div></div>
<div class="ttc" id="structprocess_1_1Subprocess_1_1IO_1_1InputFileDescriptors_html_a0a3f315345ef7b7ee6f3f1d4d337854d"><div class="ttname"><a href="structprocess_1_1Subprocess_1_1IO_1_1InputFileDescriptors.html#a0a3f315345ef7b7ee6f3f1d4d337854d">process::Subprocess::IO::InputFileDescriptors::read</a></div><div class="ttdeci">int_fd read</div><div class="ttdef"><b>Definition:</b> subprocess.hpp:75</div></div>
<div class="ttc" id="structprocess_1_1Subprocess_1_1IO_1_1OutputFileDescriptors_html"><div class="ttname"><a href="structprocess_1_1Subprocess_1_1IO_1_1OutputFileDescriptors.html">process::Subprocess::IO::OutputFileDescriptors</a></div><div class="ttdoc">For output file descriptors a child writes to the write file descriptor and a parent may read from th...</div><div class="ttdef"><b>Definition:</b> subprocess.hpp:88</div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/symlink_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/symlink_8hpp_source.html b/content/api/latest/c++/symlink_8hpp_source.html
index 7d869ac..a3f1cd3 100644
--- a/content/api/latest/c++/symlink_8hpp_source.html
+++ b/content/api/latest/c++/symlink_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="classResult_html_a521adf96f5c27d26d6b1d580aae8aaee"><div class="ttname"><a href="classResult.html#a521adf96f5c27d26d6b1d580aae8aaee">Result::error</a></div><div class="ttdeci">static Result< T > error(const std::string &message)</div><div class="ttdef"><b>Definition:</b> result.hpp:53</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_a39ca8fa0643b489f6bef951bef207c92"><div class="ttname"><a href="namespaceinternal_1_1windows.html#a39ca8fa0643b489f6bef951bef207c92">internal::windows::query_symbolic_link_data</a></div><div class="ttdeci">Try< SymbolicLink > query_symbolic_link_data(const std::string &path)</div><div class="ttdef"><b>Definition:</b> symlink.hpp:79</div></div>
<div class="ttc" id="namespaceinternal_1_1windows_html_a9205fe9be7dc028375cd24338483152b"><div class="ttname"><a href="namespaceinternal_1_1windows.html#a9205fe9be7dc028375cd24338483152b">internal::windows::reparse_point_attribute_set</a></div><div class="ttdeci">Try< bool > reparse_point_attribute_set(const std::wstring &absolute_path)</div><div class="ttdef"><b>Definition:</b> reparsepoint.hpp:111</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2chdir_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2chdir_8hpp_source.html b/content/api/latest/c++/windows_2chdir_8hpp_source.html
index f54f125..9d70abc 100644
--- a/content/api/latest/c++/windows_2chdir_8hpp_source.html
+++ b/content/api/latest/c++/windows_2chdir_8hpp_source.html
@@ -54,7 +54,7 @@
<div class="contents">
<a href="windows_2chdir_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/
/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cla
ss="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_CHDIR_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_CHDIR_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span>
</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="longpath_8hpp.html">stout/internal/windows/longpath.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">name
space </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a11febfefa1908b3cb87b77da5c8482c5">chdir</a>(<span class="keyword">const</span> std::string& directory)</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  std::wstring <a class="code" href="namespaceinternal_1_1windows.html#abd7dbdbc8d95626d0c66455078380aa1">longpath</a> = <a class="code" href="namespaceinternal_1_1windows.html#abd7dbdbc8d95626d0c66455078380aa1">::internal::windows::longpath</a>(directory);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="k
eywordflow">if</span> (::SetCurrentDirectoryW(longpath.data()) == 0) {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#
160;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_CHDIR_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2close_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2close_8hpp_source.html b/content/api/latest/c++/windows_2close_8hpp_source.html
index 195124b..3bc1cb6 100644
--- a/content/api/latest/c++/windows_2close_8hpp_source.html
+++ b/content/api/latest/c++/windows_2close_8hpp_source.html
@@ -54,8 +54,8 @@
<div class="contents">
<a href="windows_2close_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/
/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cla
ss="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_CLOSE_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_CLOSE_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00
019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="stout_2include_2stout_2os_2windows_2socket_8hpp.html">stout/os/windows/socket.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" hre
f="namespaceos.html#a09f06ea5f19de2de4f4286938ae3bbd6"> 26</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a8df77ec6d6b8d32d9b287a41bc74cfdc">close</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">switch</span> (fd.type()) {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5ad09c4cb1265f1772bb757a7af277b49f">WindowsFD::Type::HANDLE</a>: {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow"
>if</span> (!fd.is_valid()) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">// NOTE: We return early here because</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// `CloseHandle(INVALID_HANDLE_VALUE)` will not return an error, but</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="comment">// instead (sometimes) triggers the invalid parameter handler, thus</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="comment">// throwing an exception. We'd rather return an error.</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>(ERROR_INVALID_HANDLE);</div><div class="line"><a name="l000
36"></a><span class="lineno"> 36</span>  }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (::CloseHandle(fd) == FALSE) {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div><div class="line"><a name="l00044"></a><span class
="lineno"> 44</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa">WindowsFD::Type::SOCKET</a>: {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="comment">// NOTE: Since closing an unconnected socket is not an error in POSIX,</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="comment">// we simply ignore it here.</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">if</span> (::<a class="code" href="namespacemesos_1_1internal_1_1local.html#a7d7b8de28b47a3753dcd4b094d5e6c6e">shutdown</a>(fd, SD_BOTH) == SOCKET_ERROR &&</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  WSAGetLastError() != WSAENOTCONN) {</div><div class="line"><a name="l000
49"></a><span class="lineno"> 49</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsSocketError.html">WindowsSocketError</a>(<span class="stringliteral">"Failed to shutdown a socket"</span>);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">if</span> (::closesocket(fd) == SOCKET_ERROR) {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsSocketError.html">WindowsSocketError</a>(<span class="stringliteral">"Failed to close a socket"</span>);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div><div class="line"><a name="l00055"><
/a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="unreachable_8hpp.html#a0bc63b24b654ca433be7b97a3edde132">UNREACHABLE</a>();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> } <span class="comment">// namespace os {</span></div><div class="line"><
a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_CLOSE_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:120</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:123</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="classos_1_1WindowsFD_html_ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa"><div class="ttname"><a href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa">os::WindowsFD::Type::SOCKET</a></div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2copyfile_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2copyfile_8hpp_source.html b/content/api/latest/c++/windows_2copyfile_8hpp_source.html
index 6c5f92c..aa8e58c 100644
--- a/content/api/latest/c++/windows_2copyfile_8hpp_source.html
+++ b/content/api/latest/c++/windows_2copyfile_8hpp_source.html
@@ -56,7 +56,7 @@
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="namespaceos_html_a707a0147851cfc89e4421a07dd5f17a3"><div class="ttname"><a href="namespaceos.html#a707a0147851cfc89e4421a07dd5f17a3">os::copyfile</a></div><div class="ttdeci">Try< Nothing > copyfile(const std::string &source, const std::string &destination)</div><div class="ttdef"><b>Definition:</b> copyfile.hpp:39</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
<div class="ttc" id="namespacepath_html_a09c4941618b3a4ea2dbfccf5fe9d3687"><div class="ttname"><a href="namespacepath.html#a09c4941618b3a4ea2dbfccf5fe9d3687">path::absolute</a></div><div class="ttdeci">bool absolute(const std::string &path)</div><div class="ttdoc">Returns whether the given path is an absolute path. </div><div class="ttdef"><b>Definition:</b> path.hpp:96</div></div>
[2/3] mesos-site git commit: Updated the website built from mesos
SHA: aa83f81.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2dup_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2dup_8hpp_source.html b/content/api/latest/c++/windows_2dup_8hpp_source.html
index 76c144c..8537c3b 100644
--- a/content/api/latest/c++/windows_2dup_8hpp_source.html
+++ b/content/api/latest/c++/windows_2dup_8hpp_source.html
@@ -53,7 +53,7 @@
</div><!--header-->
<div class="contents">
<a href="windows_2dup_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//<
/span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class
="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_DUP_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_DUP_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="unreachable_8hpp.html">stout/unreachable.hpp</a>></span></div><div class="line"><a name="l
00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span> <span class="comment">// For `WinSock2.h`.</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="namespaceos.html#ac6a52f61ab8f31856757007
b4be7f5e6"> 25</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<int_fd></a> <a class="code" href="namespaceos.html#a622be738276833e635a7db06cff31a35">dup</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">switch</span> (fd.type()) {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5ad09c4cb1265f1772bb757a7af277b49f">WindowsFD::Type::HANDLE</a>: {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="namespacerouting_1_1queueing_1_1ingress.html#a9342
08b6017d0a9aed90b6594bb8292f">HANDLE</a> duplicate = INVALID_HANDLE_VALUE;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">const</span> BOOL result = ::DuplicateHandle(</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  ::GetCurrentProcess(), <span class="comment">// Source process == current.</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  fd, <span class="comment">// Handle to duplicate.</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  ::GetCurrentProcess(), <span class="comment">// Target process == current.</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  &duplicate,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  0, <span class="comm
ent">// Ignored (DUPLICATE_SAME_ACCESS).</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  FALSE, <span class="comment">// Non-inheritable handle.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  DUPLICATE_SAME_ACCESS); <span class="comment">// Same access level as source.</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">if</span> (result == FALSE) {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>
0;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> duplicate;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa">WindowsFD::Type::SOCKET</a>: {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  WSAPROTOCOL_INFOW info;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">const</span> <span class="keywordtype">int</span> result =</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  ::WSADuplicateSocketW(fd, ::GetCurrentProcessId(), &info);</div><div class="line"><a name="l00049"></a><span class=
"lineno"> 49</span>  <span class="keywordflow">if</span> (result != 0) {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="error_8hpp.html#a176f6fc34ea37d40201853a52a475762">SocketError</a>();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  return ::WSASocketW(0, 0, 0, &info, 0, 0);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="unreachable
_8hpp.html#a0bc63b24b654ca433be7b97a3edde132">UNREACHABLE</a>();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_DUP_HPP__</span></div><div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="classos_1_1WindowsFD_html_ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa"><div class="ttname"><a href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa">os::WindowsFD::Type::SOCKET</a></div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2dynamiclibrary_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2dynamiclibrary_8hpp_source.html b/content/api/latest/c++/windows_2dynamiclibrary_8hpp_source.html
index 3f85984..8b8a460 100644
--- a/content/api/latest/c++/windows_2dynamiclibrary_8hpp_source.html
+++ b/content/api/latest/c++/windows_2dynamiclibrary_8hpp_source.html
@@ -58,7 +58,7 @@
<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< std::string ></a></div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="classDynamicLibrary_html_a0ab4cac9af777fb64c70863534f1c64a"><div class="ttname"><a href="classDynamicLibrary.html#a0ab4cac9af777fb64c70863534f1c64a">DynamicLibrary::loadSymbol</a></div><div class="ttdeci">Try< void * > loadSymbol(const std::string &name)</div><div class="ttdef"><b>Definition:</b> dynamiclibrary.hpp:81</div></div>
<div class="ttc" id="classOption_html_a4e3bf8416d95246f43c91f1b5c309323"><div class="ttname"><a href="classOption.html#a4e3bf8416d95246f43c91f1b5c309323">Option::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> option.hpp:115</div></div>
<div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2error_8hpp.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2error_8hpp.html b/content/api/latest/c++/windows_2error_8hpp.html
index 90b45a0..9922024 100644
--- a/content/api/latest/c++/windows_2error_8hpp.html
+++ b/content/api/latest/c++/windows_2error_8hpp.html
@@ -54,9 +54,8 @@
<div class="title">error.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
-<div class="textblock"><code>#include <<a class="el" href="error_8hpp_source.html">stout/error.hpp</a>></code><br />
+<div class="textblock"><code>#include <<a class="el" href="errorbase_8hpp_source.html">stout/errorbase.hpp</a>></code><br />
<code>#include <<a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp_source.html">stout/windows.hpp</a>></code><br />
-<code>#include <<a class="el" href="stringify_8hpp_source.html">stout/stringify.hpp</a>></code><br />
</div>
<p><a href="windows_2error_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2error_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2error_8hpp_source.html b/content/api/latest/c++/windows_2error_8hpp_source.html
index 645caea..665b7e2 100644
--- a/content/api/latest/c++/windows_2error_8hpp_source.html
+++ b/content/api/latest/c++/windows_2error_8hpp_source.html
@@ -52,27 +52,26 @@
<div class="title">error.hpp</div> </div>
</div><!--header-->
<div class="contents">
-<a href="windows_2error_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><s
pan class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// di
stributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __STOUT_WINDOWS_ERROR_HPP__</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define __STOUT_WINDOWS_ERROR_HPP__</span></div><div
class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="stringify_8hpp.html">stout/stringify.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// A useful type that can
be used to represent a Try that has failed. This is a</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// lot like `ErrnoError`, except instead of wrapping an error coming from the C</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// standard libraries, it wraps an error coming from the Windows APIs.</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html"> 28</a></span> <span class="keyword">class </span><a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a> : <span class="keyword">public</span> <a class="code" href="classError.html">Error</a></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">public</span>:</div><div class="line"><a
name="l00031"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d"> 31</a></span>  <span class="keyword">const</span> DWORD <a class="code" href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d">code</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0"> 34</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0">WindowsErrorBase</a>(DWORD _code)</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  : <a class="code" href="classError.html">Error</a>(get_last_error_as_string(_code)), code(_
code) {}</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8"> 37</a></span>  <a class="code" href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8">WindowsErrorBase</a>(DWORD _code, <span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  : <a class="code" href="classError.html">Error</a>(message + <span class="stringliteral">": "</span> + get_last_error_as_string(_code)), code(_code) {}</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">private</span>:</div><div class="line
"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">static</span> std::string get_last_error_as_string(DWORD errorCode)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// Default if no error.</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">if</span> (errorCode == 0) {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> std::string();</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  DWORD allocate_message_buffer =</div><div class="line"><a name="l00049
"></a><span class="lineno"> 49</span>  FORMAT_MESSAGE_ALLOCATE_BUFFER |</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  FORMAT_MESSAGE_FROM_SYSTEM |</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  FORMAT_MESSAGE_IGNORE_INSERTS;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  DWORD default_language = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// This following function `FormatMessage` is a lot like `strerror`, except</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// it pretty-prints errors from the Windows API ins
tead of from the C</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// standard library. Basically, the semantics are: we pass in `errorCode`,</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// and it allocates room for a pretty-printed error message at</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// `message_buffer`, and then dumps said pretty-printed error message at</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// that address, in our `default_language`.</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">//</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// The 5th actual parame
ter (namely `(LPWSTR)&message_buffer`), may look</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="comment">// strange to readers of this code. It is copied directly out of the</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// documentation[1], and is unfortunately required to get the</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// pretty-printed error message. The short story is:</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">//</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// * The flag `FORMAT_MESSAGE_ALLOCATE_BUFFER` tells `FormatMessage` to</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span cla
ss="comment">// point `message_buffer` (which is an `LPWSTR` a.k.a. `char*`) at a</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// string error message. But, `message_buffer` to point a `char*` at a</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// different place, `FormatMessage` would need the address</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">// `&message_buffer` so that it could change where it is pointing.</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// * So, to solve this problem, the API writers decided that when you</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">// pass that flag in, `FormatMessage` will
treat the 5th parameter not</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// as `LPWSTR` (which is what the type is in the function signagure),</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="comment">// but as `LPWSTR*` a.k.a. `char**`, which (assuming you've casted the</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">// parameter correctly) allows it to allocate the message on your</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// behalf, and change `message_buffer` to point at this new error</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">// string.</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</s
pan>  <span class="comment">// * This is why we need this strange cast that you see below.</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">//</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// Finally, and this is important: it is up to the user to free the memory</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="comment">// with `LocalFree`! The line below where we do this comes directly from</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">// the documentation as well.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">//</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">// [1] https://m
sdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">wchar_t</span> *message_buffer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">size_t</span> <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a> = ::FormatMessageW(</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  allocate_message_buffer,</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">nullptr</span>, <span class="comment">// Ignored.</span></div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  errorCode,</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  de
fault_language,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  (LPWSTR)&message_buffer, <span class="comment">// See comment above about quirky cast.</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  0, <span class="comment">// Ignored.</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">nullptr</span>); <span class="comment">// Ignored.</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  std::wstring <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>(message_buffer, size);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</s
pan>  <span class="comment">// Required per documentation above.</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  ::LocalFree(message_buffer);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> <a class="code" href="namespacens.html#a28116b46e6543597a11733424cd1aa20">stringify</a>(message);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> };</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classWindowsError.html"> 106</a></span> <span class="keywo
rd">class </span><a class="code" href="classWindowsError.html">WindowsError</a> : <span class="keyword">public</span> <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089"> 108</a></span>  <a class="code" href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089">WindowsError</a>() : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::GetLastError()) {}</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classWindowsError.html#a82b53dd919106021585a9151cd156604"> 110</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindow
sError.html#a82b53dd919106021585a9151cd156604">WindowsError</a>(DWORD _code) : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code) {}</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classWindowsError.html#a95807a4d4619cb117ead04f3303249d6"> 112</a></span>  <a class="code" href="classWindowsError.html#a95807a4d4619cb117ead04f3303249d6">WindowsError</a>(<span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::GetLastError(), message) {}</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"><a class="
line" href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095"> 115</a></span>  <a class="code" href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095">WindowsError</a>(DWORD _code, <span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code, message) {}</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> };</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html"> 120</a></span> <span class="keyword">class </span><a class="code" href="classWindowsSocketError.ht
ml">WindowsSocketError</a> : <span class="keyword">public</span> <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e"> 122</a></span>  <a class="code" href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e">WindowsSocketError</a>() : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::WSAGetLastError()) {}</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a4a81a41e85b87bb39141743f6a99b978"> 124</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindowsSocketError.html#a4a81a41
e85b87bb39141743f6a99b978">WindowsSocketError</a>(DWORD _code) : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code) {}</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95"> 126</a></span>  <a class="code" href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95">WindowsSocketError</a>(<span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::WSAGetLastError(), message) {}</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"><a
class="line" href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab"> 129</a></span>  <a class="code" href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab">WindowsSocketError</a>(DWORD _code, <span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code, message) {}</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> };</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="preprocessor">#endif // __STOUT_WINDOWS_ERROR_HPP__</span></div><div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>
Definition:</b> errorbase.hpp:36</div></div>
+<a href="windows_2error_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><s
pan class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// di
stributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __STOUT_WINDOWS_ERROR_HPP__</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#define __STOUT_WINDOWS_ERROR_HPP__</span></div><div
class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="errorbase_8hpp.html">stout/errorbase.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// A useful type that can be used to represent a Try that has failed. This is a</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// lot like `ErrnoError`, except instead of wrapping an error coming from the C</span></div><div class="line">
<a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">// standard libraries, it wraps an error coming from the Windows APIs.</span></div><div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html"> 26</a></span> <span class="keyword">class </span><a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a> : <span class="keyword">public</span> <a class="code" href="classError.html">Error</a></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d"> 29</a></span>  <span class="keyword">const</span> DWORD <a class="code" href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d">code
</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0"> 32</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0">WindowsErrorBase</a>(DWORD _code)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  : <a class="code" href="classError.html">Error</a>(get_last_error_as_string(_code)), code(_code) {}</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8"> 35</a></span>  <a class="c
ode" href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8">WindowsErrorBase</a>(DWORD _code, <span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  : <a class="code" href="classError.html">Error</a>(message + <span class="stringliteral">": "</span> + get_last_error_as_string(_code)), code(_code) {}</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">static</span> std::string get_last_error_as_string(<span class="keyword">const</span> DWORD error_code)</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {<
/div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="comment">// NOTE: While Windows does have a corresponding message string</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// for an error code of zero, we want the default construction to</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// have as low a cost as possible, so we short circuit here.</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">if</span> (error_code == 0) {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">return</span> std::string();</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> 
;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">const</span> DWORD <a class="code" href="namespaceflags.html">flags</a> = FORMAT_MESSAGE_ALLOCATE_BUFFER |</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  FORMAT_MESSAGE_FROM_SYSTEM |</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  FORMAT_MESSAGE_IGNORE_INSERTS;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keyword">const</span> DWORD default_language = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="comment">// This following function `FormatMess
age` is a lot like `strerror`, except</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// it pretty-prints errors from the Windows API instead of from the C</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// standard library. Basically, the semantics are: we pass in `error_code`,</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// and it allocates room for a pretty-printed error message at</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">// `message_buffer`, and then dumps said pretty-printed error message at</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// that address, in our `default_language`.</span></div><div class="line"><a name="l00060"></a><s
pan class="lineno"> 60</span>  <span class="comment">//</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// The parameter `reinterpret_cast<char*>(&message_buffer)` may</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// look strange to readers of this code. It is copied directly out</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="comment">// of the documentation[1], and is unfortunately required to get</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="comment">// the pretty-printed error message. The short story is:</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">//</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&
#160; <span class="comment">// * The flag `FORMAT_MESSAGE_ALLOCATE_BUFFER` tells `FormatMessage` to</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// point `message_buffer` (which is an `LPSTR` a.k.a. `char*`) at a</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// string error message. But, `message_buffer` to point a `char*` at a</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// different place, `FormatMessage` would need the address</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// `&message_buffer` so that it could change where it is pointing.</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">// * So, to solve this pr
oblem, the API writers decided that when you</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// pass that flag in, `FormatMessage` will treat the fifth parameter not</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">// as `LPSTR` (which is what the type is in the function signagure),</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="comment">// but as `LPSTR*` a.k.a. `char**`, which (assuming you've casted the</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="comment">// parameter correctly) allows it to allocate the message on your</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="comment">// behalf, and change `message_buffer` to point at this new error</spa
n></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// string.</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="comment">// * This is why we need this strange cast that you see below.</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">//</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">// Finally, and this is important: it is up to the user to free the memory</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// with `LocalFree`! The line below where we do this comes directly from</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="comment">// the documentation as well.</span></div><div class="line"><a name="l0008
3"></a><span class="lineno"> 83</span>  <span class="comment">//</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">char</span>* message_buffer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="comment">// NOTE: This explicitly uses the non-Unicode version of the API</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="comment">// so we can avoid needing Unicode conversion logic in the</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="comment">// `WindowsErrorBase` class.</span></div><div class="line"><a name
="l00089"></a><span class="lineno"> 89</span>  <span class="keywordtype">size_t</span> <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a> = ::FormatMessageA(</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  flags,</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">nullptr</span>, <span class="comment">// Ignored.</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  error_code,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  default_language,</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  reinterpret_cast<char*>(&message_buffer),</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  0, <span class="comment">// Ignored.</span></div><div class="line"><a name="l00
096"></a><span class="lineno"> 96</span>  <span class="keyword">nullptr</span>); <span class="comment">// Ignored.</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  std::string <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>(message_buffer, size);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// Required per documentation above.</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  ::LocalFree(message_buffer);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordflow">return</span> <a class
="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> };</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classWindowsError.html"> 108</a></span> <span class="keyword">class </span><a class="code" href="classWindowsError.html">WindowsError</a> : <span class="keyword">public</span> <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">public</span>:</div><div class="line"><a name="l
00111"></a><span class="lineno"><a class="line" href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089"> 111</a></span>  <a class="code" href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089">WindowsError</a>() : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::GetLastError()) {}</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classWindowsError.html#a82b53dd919106021585a9151cd156604"> 113</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindowsError.html#a82b53dd919106021585a9151cd156604">WindowsError</a>(DWORD _code) : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code) {}</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classWindowsE
rror.html#a95807a4d4619cb117ead04f3303249d6"> 115</a></span>  <a class="code" href="classWindowsError.html#a95807a4d4619cb117ead04f3303249d6">WindowsError</a>(<span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::GetLastError(), message) {}</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095"> 118</a></span>  <a class="code" href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095">WindowsError</a>(DWORD _code, <span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</d
iv><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code, message) {}</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> };</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html"> 123</a></span> <span class="keyword">class </span><a class="code" href="classWindowsSocketError.html">WindowsSocketError</a> : <span class="keyword">public</span> <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> {</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">public</span>:</di
v><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e"> 126</a></span>  <a class="code" href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e">WindowsSocketError</a>() : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::WSAGetLastError()) {}</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a4a81a41e85b87bb39141743f6a99b978"> 128</a></span>  <span class="keyword">explicit</span> <a class="code" href="classWindowsSocketError.html#a4a81a41e85b87bb39141743f6a99b978">WindowsSocketError</a>(DWORD _code) : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code) {}</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div><div class="line"><a name=
"l00130"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95"> 130</a></span>  <a class="code" href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95">WindowsSocketError</a>(<span class="keyword">const</span> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(::WSAGetLastError(), message) {}</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab"> 133</a></span>  <a class="code" href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab">WindowsSocketError</a>(DWORD _code, <span class="keyword">const</spa
n> std::string& <a class="code" href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">message</a>)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  : <a class="code" href="classWindowsErrorBase.html">WindowsErrorBase</a>(_code, message) {}</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> };</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> <span class="preprocessor">#endif // __STOUT_WINDOWS_ERROR_HPP__</span></div><div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:36</div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div class="ttname"><a href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:119</div></div>
-<div class="ttc" id="classWindowsErrorBase_html_a3d4eef2ab51ef4fc46bb2df7c5880fd8"><div class="ttname"><a href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8">WindowsErrorBase::WindowsErrorBase</a></div><div class="ttdeci">WindowsErrorBase(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:37</div></div>
-<div class="ttc" id="classWindowsError_html_ac5e8aefb564070d6bc43ec1b87272095"><div class="ttname"><a href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:115</div></div>
-<div class="ttc" id="classWindowsSocketError_html_a27bced956a7f2453b2f8deacf836478e"><div class="ttname"><a href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError()</div><div class="ttdef"><b>Definition:</b> error.hpp:122</div></div>
-<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:120</div></div>
-<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div>
+<div class="ttc" id="classWindowsErrorBase_html_a3d4eef2ab51ef4fc46bb2df7c5880fd8"><div class="ttname"><a href="classWindowsErrorBase.html#a3d4eef2ab51ef4fc46bb2df7c5880fd8">WindowsErrorBase::WindowsErrorBase</a></div><div class="ttdeci">WindowsErrorBase(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:35</div></div>
+<div class="ttc" id="classWindowsError_html_ac5e8aefb564070d6bc43ec1b87272095"><div class="ttname"><a href="classWindowsError.html#ac5e8aefb564070d6bc43ec1b87272095">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:118</div></div>
+<div class="ttc" id="classWindowsSocketError_html_a27bced956a7f2453b2f8deacf836478e"><div class="ttname"><a href="classWindowsSocketError.html#a27bced956a7f2453b2f8deacf836478e">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError()</div><div class="ttdef"><b>Definition:</b> error.hpp:126</div></div>
+<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:123</div></div>
+<div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div>
-<div class="ttc" id="classWindowsError_html_a82b53dd919106021585a9151cd156604"><div class="ttname"><a href="classWindowsError.html#a82b53dd919106021585a9151cd156604">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:110</div></div>
-<div class="ttc" id="classWindowsErrorBase_html_a0901c393db6d19b248f24faeb638275d"><div class="ttname"><a href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d">WindowsErrorBase::code</a></div><div class="ttdeci">const DWORD code</div><div class="ttdef"><b>Definition:</b> error.hpp:31</div></div>
-<div class="ttc" id="classWindowsSocketError_html_a4a81a41e85b87bb39141743f6a99b978"><div class="ttname"><a href="classWindowsSocketError.html#a4a81a41e85b87bb39141743f6a99b978">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:124</div></div>
-<div class="ttc" id="classWindowsSocketError_html_af866e904d4e353613312fc82b24ac5ab"><div class="ttname"><a href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:129</div></div>
-<div class="ttc" id="classWindowsErrorBase_html"><div class="ttname"><a href="classWindowsErrorBase.html">WindowsErrorBase</a></div><div class="ttdef"><b>Definition:</b> error.hpp:28</div></div>
-<div class="ttc" id="classWindowsSocketError_html_a5e33cba8ac4e338f4066e7bf7e808f95"><div class="ttname"><a href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:126</div></div>
-<div class="ttc" id="classWindowsError_html_a1d7a8ec4ccb9e8de1d1174aa39d1e089"><div class="ttname"><a href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError()</div><div class="ttdef"><b>Definition:</b> error.hpp:108</div></div>
+<div class="ttc" id="classWindowsError_html_a82b53dd919106021585a9151cd156604"><div class="ttname"><a href="classWindowsError.html#a82b53dd919106021585a9151cd156604">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:113</div></div>
+<div class="ttc" id="classWindowsErrorBase_html_a0901c393db6d19b248f24faeb638275d"><div class="ttname"><a href="classWindowsErrorBase.html#a0901c393db6d19b248f24faeb638275d">WindowsErrorBase::code</a></div><div class="ttdeci">const DWORD code</div><div class="ttdef"><b>Definition:</b> error.hpp:29</div></div>
+<div class="ttc" id="classWindowsSocketError_html_a4a81a41e85b87bb39141743f6a99b978"><div class="ttname"><a href="classWindowsSocketError.html#a4a81a41e85b87bb39141743f6a99b978">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:128</div></div>
+<div class="ttc" id="classWindowsSocketError_html_af866e904d4e353613312fc82b24ac5ab"><div class="ttname"><a href="classWindowsSocketError.html#af866e904d4e353613312fc82b24ac5ab">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(DWORD _code, const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:133</div></div>
+<div class="ttc" id="classWindowsErrorBase_html"><div class="ttname"><a href="classWindowsErrorBase.html">WindowsErrorBase</a></div><div class="ttdef"><b>Definition:</b> error.hpp:26</div></div>
+<div class="ttc" id="classWindowsSocketError_html_a5e33cba8ac4e338f4066e7bf7e808f95"><div class="ttname"><a href="classWindowsSocketError.html#a5e33cba8ac4e338f4066e7bf7e808f95">WindowsSocketError::WindowsSocketError</a></div><div class="ttdeci">WindowsSocketError(const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:130</div></div>
+<div class="ttc" id="classWindowsError_html_a1d7a8ec4ccb9e8de1d1174aa39d1e089"><div class="ttname"><a href="classWindowsError.html#a1d7a8ec4ccb9e8de1d1174aa39d1e089">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError()</div><div class="ttdef"><b>Definition:</b> error.hpp:111</div></div>
<div class="ttc" id="classError_html_a2d13609e80acd2a2a473a26f273b1c4f"><div class="ttname"><a href="classError.html#a2d13609e80acd2a2a473a26f273b1c4f">Error::message</a></div><div class="ttdeci">const std::string message</div><div class="ttdef"><b>Definition:</b> errorbase.hpp:46</div></div>
-<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div>
-<div class="ttc" id="classWindowsError_html_a95807a4d4619cb117ead04f3303249d6"><div class="ttname"><a href="classWindowsError.html#a95807a4d4619cb117ead04f3303249d6">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:112</div></div>
-<div class="ttc" id="classWindowsErrorBase_html_a73005906bfdea54ae771e9ee2b8b9bf0"><div class="ttname"><a href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0">WindowsErrorBase::WindowsErrorBase</a></div><div class="ttdeci">WindowsErrorBase(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:34</div></div>
-<div class="ttc" id="stringify_8hpp_html"><div class="ttname"><a href="stringify_8hpp.html">stringify.hpp</a></div></div>
-<div class="ttc" id="namespacens_html_a28116b46e6543597a11733424cd1aa20"><div class="ttname"><a href="namespacens.html#a28116b46e6543597a11733424cd1aa20">ns::stringify</a></div><div class="ttdeci">std::string stringify(int flags)</div></div>
+<div class="ttc" id="classWindowsError_html_a95807a4d4619cb117ead04f3303249d6"><div class="ttname"><a href="classWindowsError.html#a95807a4d4619cb117ead04f3303249d6">WindowsError::WindowsError</a></div><div class="ttdeci">WindowsError(const std::string &message)</div><div class="ttdef"><b>Definition:</b> error.hpp:115</div></div>
+<div class="ttc" id="classWindowsErrorBase_html_a73005906bfdea54ae771e9ee2b8b9bf0"><div class="ttname"><a href="classWindowsErrorBase.html#a73005906bfdea54ae771e9ee2b8b9bf0">WindowsErrorBase::WindowsErrorBase</a></div><div class="ttdeci">WindowsErrorBase(DWORD _code)</div><div class="ttdef"><b>Definition:</b> error.hpp:32</div></div>
+<div class="ttc" id="errorbase_8hpp_html"><div class="ttname"><a href="errorbase_8hpp.html">errorbase.hpp</a></div></div>
+<div class="ttc" id="namespaceflags_html"><div class="ttname"><a href="namespaceflags.html">flags</a></div><div class="ttdef"><b>Definition:</b> parse.hpp:33</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/aa88b005/content/api/latest/c++/windows_2fcntl_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/windows_2fcntl_8hpp_source.html b/content/api/latest/c++/windows_2fcntl_8hpp_source.html
index 1fdc198..f07c98d 100644
--- a/content/api/latest/c++/windows_2fcntl_8hpp_source.html
+++ b/content/api/latest/c++/windows_2fcntl_8hpp_source.html
@@ -55,7 +55,7 @@
<a href="windows_2fcntl_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">/
/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div cla
ss="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_WINDOWS_FCNTL_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_WINDOWS_FCNTL_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <glog/logging.h></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></s
pan></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="stout_2include_2stout_2os_2socket_8hpp.html">stout/os/socket.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {
</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceos.html#a5a4254462f48e5b268065b862c97bf93"> 27</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#a7d71bda07a41304403b0e13aa47f0764">cloexec</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </di
v><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="namespaceos.html#ab52c1113f821f06d7fa3ba3cdcfae813"> 33</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#aab17ac89b279bf4c1b5a0625db845f90">unsetCloexec</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> {</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </d
iv><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespaceos.html#a276116c3bc813df8e42b6104a65e9409"> 39</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<bool></a> <a class="code" href="namespaceos.html#a32281111157c19876d8dd6dac7cdbc13">isCloexec</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a nam
e="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="namespaceos.html#a107eb6b71dab10f65b6ebe5ee56516b8"> 45</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceos.html#adcd5b59146bb45a7ba431120a0d3b464">nonblock</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">switch</span> (fd.type()) {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5ad09c4cb1265f1772bb757a7af277b49f">Win
dowsFD::Type::HANDLE</a>: {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="comment">/* Do nothing. */</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">case</span> <a class="code" href="classos_1_1WindowsFD.html#ac0377db41e1c167339c97dbd69c79ae5a75fbea08c09e684e6b3f3961761354fa">WindowsFD::Type::SOCKET</a>: {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> u_long non_block_mode = 1;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  u_long <a class="code" href="namespaceos_1_1st
at.html#afc51654ad486693167c300612bf8ebfa">mode</a> = non_block_mode;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">int</span> result = ::ioctlsocket(fd, FIONBIO, &mode);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (result != NO_ERROR) {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsSocketError.html">WindowsSocketError</a>();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  }</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00
061"></a><span class="lineno"> 61</span>  }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="unreachable_8hpp.html#a0bc63b24b654ca433be7b97a3edde132">UNREACHABLE</a>();</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> }</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// NOTE: This is not supported on Windows.</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="namespaceos.html#a08ab99fba32c9cb61929be457a150fca"> 69</a></span> <span class="keyword
">inline</span> <a class="code" href="classTry.html">Try<bool></a> <a class="code" href="namespaceos.html#a238d27a90a749967761c1019d27b7e83">isNonblock</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd)</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  VLOG(2) << <span class="stringliteral">"`os::isNonblock` has been called, but is a stub on Windows"</span>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> 
;} <span class="comment">// namespace os {</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="preprocessor">#endif // __STOUT_OS_WINDOWS_FCNTL_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div>
<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
<div class="ttc" id="namespaceos_html_a238d27a90a749967761c1019d27b7e83"><div class="ttname"><a href="namespaceos.html#a238d27a90a749967761c1019d27b7e83">os::isNonblock</a></div><div class="ttdeci">Try< bool > isNonblock(int fd)</div><div class="ttdef"><b>Definition:</b> fcntl.hpp:87</div></div>
-<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:120</div></div>
+<div class="ttc" id="classWindowsSocketError_html"><div class="ttname"><a href="classWindowsSocketError.html">WindowsSocketError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:123</div></div>
<div class="ttc" id="namespaceos_html_a32281111157c19876d8dd6dac7cdbc13"><div class="ttname"><a href="namespaceos.html#a32281111157c19876d8dd6dac7cdbc13">os::isCloexec</a></div><div class="ttdeci">Try< bool > isCloexec(int fd)</div><div class="ttdef"><b>Definition:</b> fcntl.hpp:59</div></div>
<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div>
<div class="ttc" id="stout_2include_2stout_2os_2socket_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2os_2socket_8hpp.html">socket.hpp</a></div></div>