mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [38/51] [partial] mesos-site git commit: Updated the website built from mesos SHA: 8e2d6d2.
Date Wed, 02 May 2018 03:21:53 GMT
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/abort_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/abort_8hpp_source.html b/content/api/latest/c++/abort_8hpp_source.html
index 433ee8b..99ce9d0 100644
--- a/content/api/latest/c++/abort_8hpp_source.html
+++ b/content/api/latest/c++/abort_8hpp_source.html
@@ -52,9 +52,10 @@
 <div class="title">abort.hpp</div>  </div>
 </div><!--header-->
 <div class="contents">
-<a href="abort_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>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<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>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<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>&#160;<span class="comment">//</span><
 /div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<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>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<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>&#160;<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>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"
 ><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifndef __STOUT_ABORT_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define __STOUT_ABORT_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;errno.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</spa
 n>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;string&gt;
 </span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html">stout/attributes.hpp</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">// NOTE: These macros are already defined in Visual Studio (Windows) headers.</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="abort_8hpp.html#ab0b32631490688278c58f78c27d553cf">   33</a></span>&#160;<span class="preprocessor">#define __STRINGIZE(x) #x</span></div><div class="line"><a name="l00034
 "></a><span class="lineno"><a class="line" href="abort_8hpp.html#ac3389a8a48dd2f121758d265c2809cdb">   34</a></span>&#160;<span class="preprocessor">#define _STRINGIZE(x) __STRINGIZE(x)</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Signal safe abort which prints a message.</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="abort_8hpp.html#a1a9c2ee866f7641b42ba2a985e5a3707">   38</a></span>&#160;<span class="preprocessor">#define _ABORT_PREFIX &quot;ABORT: (&quot; __FILE__ &quot;:&quot; _STRINGIZE(__LINE__) &quot;): &quot;</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"><a class="line" href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">   40</a></span>&#160;<span class="preprocessor">#define ABORT(...) _Abort(_ABORT_PREFIX, __VA_ARGS__)</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">   43</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a> <span class="keywordtype">void</span> <a class="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespaceos_1_1libraries_1_1Library.html#ab0e1a0e311049b6d685de1068e8f4690">prefix</a>
 , <span class="keyword">const</span> <span class="keywordtype">char</span>* message)</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  <span class="comment">// NOTE: On Windows, `_write` takes an `unsigned int`, not `size_t`. We</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="comment">// preform an explicit type conversion here to silence the warning. `strlen`</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="comment">// always returns a positive result, which means it is safe to cast it to an</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="comment">// unsigned value.</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#ifndef __WINDOW
 S__</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> prefix_len = strlen(prefix);</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> message_len = strlen(message);</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> prefix_len = <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(strlen(prefix));</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="
 keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> message_len = <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(strlen(message));</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif // !__WINDOWS__</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="comment">// Write the failure message in an async-signal safe manner,</span></div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="comment">// assuming strlen is async-signal safe or optimized out.</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <span class="comment">// In fact, it is highly unlik
 ely that strlen would be</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <span class="comment">// implemented in an unsafe manner:</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;  <span class="comment">// http://austingroupbugs.net/view.php?id=692</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="comment">// NOTE: we can&#39;t use `signal_safe::write`, because it&#39;s defined in the header</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="comment">// which can&#39;t be included due to circular dependency of headers.</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keywordflow">while</span> (::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rd
 party_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, prefix, prefix_len) == -1 &amp;&amp;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="keywordflow">while</span> (message != <span class="keyword">nullptr</span> &amp;&amp;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;         ::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, message, message_len) == -1 &amp;&amp;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&
 #160;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="comment">// NOTE: Since `1` can be interpreted as either an `unsigned int` or a</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">// `size_t`, removing the `static_cast` here makes this call ambiguous</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="comment">// between the `write` in windows.hpp and the (deprecated) `write` in the</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="comment">// Windows CRT headers.</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="keywordflow">while</span> (::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rdparty_2stout_2include_2st
 out_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, <span class="stringliteral">&quot;\n&quot;</span>, static_cast&lt;size_t&gt;(1)) == -1 &amp;&amp;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  abort();</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="abort_8hpp.html#a457890827a8d73811ef519dcc2e4bfa3">   80</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a> <span class="keywordtype">void</span> <a class
 ="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespaceos_1_1libraries_1_1Library.html#ab0e1a0e311049b6d685de1068e8f4690">prefix</a>, <span class="keyword">const</span> std::string&amp; message)</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  <a class="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(prefix, message.c_str());</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;}</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">#endif // __STOUT_ABORT_HPP__</sp
 an></div><div class="ttc" id="namespaceos_1_1libraries_1_1Library_html_ab0e1a0e311049b6d685de1068e8f4690"><div class="ttname"><a href="namespaceos_1_1libraries_1_1Library.html#ab0e1a0e311049b6d685de1068e8f4690">os::libraries::Library::prefix</a></div><div class="ttdeci">constexpr const char * prefix</div><div class="ttdef"><b>Definition:</b> os.hpp:94</div></div>
+<a href="abort_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>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<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>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<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>&#160;<span class="comment">//</span><
 /div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<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>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<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>&#160;<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>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"
 ><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifndef __STOUT_ABORT_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define __STOUT_ABORT_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;errno.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</spa
 n>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>&gt;</span> <span class="comment">// For `windows.h`.</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;unistd.h&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<
 span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html">stout/attributes.hpp</a>&gt;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">// NOTE: These macros are already defined in Visual Studio (Windows) headers.</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="abort_8hpp.html#ab0b32631490688278c58f78c27d553cf">   33</a></span>&#160;<span class="preprocessor">#define __STRINGIZE(x)
  #x</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="abort_8hpp.html#ac3389a8a48dd2f121758d265c2809cdb">   34</a></span>&#160;<span class="preprocessor">#define _STRINGIZE(x) __STRINGIZE(x)</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment">// Signal safe abort which prints a message.</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="abort_8hpp.html#a1a9c2ee866f7641b42ba2a985e5a3707">   38</a></span>&#160;<span class="preprocessor">#define _ABORT_PREFIX &quot;ABORT: (&quot; __FILE__ &quot;:&quot; _STRINGIZE(__LINE__) &quot;): &quot;</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"><a class="line" href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">   40</a></span>&#160;<span class="preprocessor">#define ABORT(...) _Abort(_ABORT_PREFIX, __VA_ARGS__)</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">   43</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a> <span class="keywordtype">void</span> <a class="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespaceos_1_1libraries_1_1Library.h
 tml#ab0e1a0e311049b6d685de1068e8f4690">prefix</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* message)</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> prefix_len = strlen(prefix);</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">size_t</span> message_len = strlen(message);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  <span class="comment">// Write the failure message in an async-signal safe manner,</span></d
 iv><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="comment">// assuming strlen is async-signal safe or optimized out.</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="comment">// In fact, it is highly unlikely that strlen would be</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <span class="comment">// implemented in an unsafe manner:</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;  <span class="comment">// http://austingroupbugs.net/view.php?id=692</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="comment">// NOTE: we can&#39;t use `signal_safe::write`, because it&#39;s defined in the header</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  <span class="comment">// which can&#39;t be included due to ci
 rcular dependency of headers.</span></div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  <span class="keywordflow">while</span> (::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, prefix, prefix_len) == -1 &amp;&amp;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  <span class="keywordflow">while</span> (message != <span class="keyword">nullptr</span> &amp;&amp;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;         ::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rdparty_2stout_2include
 _2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, message, message_len) == -1 &amp;&amp;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;  <span class="comment">// NOTE: Since `1` can be interpreted as either an `unsigned int` or a</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <span class="comment">// `size_t`, removing the `static_cast` here makes this call ambiguous</span></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="comment">// between the `write` in windows.hpp and the (deprecated) `write` in the</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;  <span class="comment">// Windows CRT head
 ers.</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <span class="keywordflow">while</span> (::<a class="code" href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">write</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a>, <span class="stringliteral">&quot;\n&quot;</span>, static_cast&lt;size_t&gt;(1)) == -1 &amp;&amp;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;         errno == EINTR);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="comment">// NOTE: On Windows, `WriteFile` takes an `DWORD`, not `size_t`. We</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="com
 ment">// perform an explicit type conversion here to silence the warning.</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;  <span class="comment">// `strlen` always returns a positive result, which means it is safe</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;  <span class="comment">// to cast it to an unsigned value.</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;  <span class="keyword">const</span> DWORD prefix_len = <span class="keyword">static_cast&lt;</span>DWORD<span class="keyword">&gt;</span>(strlen(prefix));</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;  <span class="keyword">const</span> DWORD message_len = <span class="keyword">static_cast&lt;</span>DWORD<span class="keyword">&gt;</span>(strlen(message));</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="li
 ne"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <span class="keyword">const</span> <a class="code" href="namespacerouting_1_1queueing_1_1ingress.html#a934208b6017d0a9aed90b6594bb8292f">HANDLE</a> fd = ::GetStdHandle(STD_ERROR_HANDLE);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  <span class="comment">// NOTE: There is really nothing to do if these fail during an</span></div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  <span class="comment">// abort, so we don&#39;t check for errors, or care about `bytes`.</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  DWORD bytes;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  ::WriteFile(fd, prefix, prefix_len, &amp;bytes, <span class="keyword">nullptr</span>);</div><div class="line"><a name="
 l00082"></a><span class="lineno">   82</span>&#160;  ::WriteFile(fd, message, message_len, &amp;bytes, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  ::WriteFile(fd, <span class="stringliteral">&quot;\n&quot;</span>, 1, &amp;bytes, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;  abort();</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;}</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line
 " href="abort_8hpp.html#a457890827a8d73811ef519dcc2e4bfa3">   90</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a> <span class="keywordtype">void</span> <a class="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespaceos_1_1libraries_1_1Library.html#ab0e1a0e311049b6d685de1068e8f4690">prefix</a>, <span class="keyword">const</span> std::string&amp; message)</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;  <a class="code" href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a>(prefix, message.c_str());</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div><div class="line"><
 a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">#endif // __STOUT_ABORT_HPP__</span></div><div class="ttc" id="namespaceos_1_1libraries_1_1Library_html_ab0e1a0e311049b6d685de1068e8f4690"><div class="ttname"><a href="namespaceos_1_1libraries_1_1Library.html#ab0e1a0e311049b6d685de1068e8f4690">os::libraries::Library::prefix</a></div><div class="ttdeci">constexpr const char * prefix</div><div class="ttdef"><b>Definition:</b> os.hpp:94</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_ae2fe1725bb5e9823d089c46b9ed5266e"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a></div><div class="ttdeci">#define STDERR_FILENO</div><div class="ttdef"><b>Definition:</b> windows.hpp:161</div></div>
+<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae2fe1725bb5e9823d089c46b9ed5266e"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a></div><div class="ttdeci">#define STDERR_FILENO</div><div class="ttdef"><b>Definition:</b> windows.hpp:155</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="3rdparty_2stout_2include_2stout_2attributes_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2attributes_8hpp.html">attributes.hpp</a></div></div>
 <div class="ttc" id="namespacemesos_1_1internal_1_1log_1_1protocol_html_a66ff2d5af4db53227f787281c0765d8d"><div class="ttname"><a href="namespacemesos_1_1internal_1_1log_1_1protocol.html#a66ff2d5af4db53227f787281c0765d8d">mesos::internal::log::protocol::write</a></div><div class="ttdeci">Protocol&lt; WriteRequest, WriteResponse &gt; write</div></div>
 <div class="ttc" id="abort_8hpp_html_a68192f16dd111e07a5033be6ba5c6f94"><div class="ttname"><a href="abort_8hpp.html#a68192f16dd111e07a5033be6ba5c6f94">_Abort</a></div><div class="ttdeci">NORETURN void _Abort(const char *prefix, const char *message)</div><div class="ttdef"><b>Definition:</b> abort.hpp:43</div></div>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/annotated.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/annotated.html b/content/api/latest/c++/annotated.html
index ec015a4..c174db5 100644
--- a/content/api/latest/c++/annotated.html
+++ b/content/api/latest/c++/annotated.html
@@ -572,7 +572,7 @@
 <tr id="row_17_8_4_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1python_1_1ProxyScheduler.html" target="_self">ProxyScheduler</a></td><td class="desc">Proxy <a class="el" href="classmesos_1_1Scheduler.html">Scheduler</a> implementation that will call into Python </td></tr>
 <tr id="row_17_9_" class="even" style="display:none;"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_17_9_" class="arrow" onclick="toggleFolder('17_9_')">&#9658;</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespacemesos_1_1resource__provider.html" target="_self">resource_provider</a></td><td class="desc"></td></tr>
 <tr id="row_17_9_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1AdmitResourceProvider.html" target="_self">AdmitResourceProvider</a></td><td class="desc"></td></tr>
-<tr id="row_17_9_1_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1AgentRegistrar.html" target="_self">AgentRegistrar</a></td><td class="desc"></td></tr>
+<tr id="row_17_9_1_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1GenericRegistrar.html" target="_self">GenericRegistrar</a></td><td class="desc"></td></tr>
 <tr id="row_17_9_2_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1MasterRegistrar.html" target="_self">MasterRegistrar</a></td><td class="desc"></td></tr>
 <tr id="row_17_9_3_" class="even" style="display:none;"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span id="arr_17_9_3_" class="arrow" onclick="toggleFolder('17_9_3_')">&#9658;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1Registrar.html" target="_self">Registrar</a></td><td class="desc"></td></tr>
 <tr id="row_17_9_3_0_" class="even" style="display:none;"><td class="entry"><span style="width:64px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="classmesos_1_1resource__provider_1_1Registrar_1_1Operation.html" target="_self">Operation</a></td><td class="desc"></td></tr>

http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/chown_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/chown_8hpp_source.html b/content/api/latest/c++/chown_8hpp_source.html
index 5d12dd5..16caf55 100644
--- a/content/api/latest/c++/chown_8hpp_source.html
+++ b/content/api/latest/c++/chown_8hpp_source.html
@@ -53,7 +53,7 @@
 </div><!--header-->
 <div class="contents">
 <a href="chown_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>&#160;<span class="comment">// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<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>&#160;<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>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<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>&#160;<span class="comment">//</span><
 /div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<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>&#160;<span class="comment">// distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<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>&#160;<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>&#160;<span class="comment">// limitations under the License.</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"
 ><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifndef __STOUT_OS_POSIX_CHOWN_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#define __STOUT_OS_POSIX_CHOWN_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;fts.h&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &lt;sys/types.h&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &lt;pwd.h&gt;</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#includ
 e &lt;<a class="code" href="error_8hpp.html">stout/error.hpp</a>&gt;</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="try_8hpp.html">stout/try.hpp</a>&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="shell_8hpp.html">stout/os/shell.hpp</a>&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stat_8hpp.html">stout/os/stat.hpp</a>&gt;</span></div><div class="line"><a name="l00026"></a><span class="line
 no">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">// Set the ownership for a path. This function never follows any symlinks.</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespaceos.html#a9ea4b5bd8ccef02c74ceb9b4a497baab">   30</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classTry.html">Try&lt;Nothing&gt;</a> <a class="code" href="namespaceos.html#a9ea4b5bd8ccef02c74ceb9b4a497baab">chown</a>(</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#afc544433253791fc5f87b8203c9b6
 e63">uid_t</a> <a class="code" href="namespaceos_1_1stat.html#a96066cfc01f1f62fc25b56f6915800eb">uid</a>,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a78ecefd3a9f3f0c110b9f6f038b690eb">gid_t</a> gid,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="namespacepath.html">path</a>,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keywordtype">bool</span> recursive)</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <span class="keywordtype">char</span>* path_[] = {<span class="keyword">const_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span>(path.c_str()), <spa
 n class="keyword">nullptr</span>};</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  FTS* tree = ::fts_open(</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      path_, FTS_NOCHDIR | FTS_PHYSICAL, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;  <span class="keywordflow">if</span> (tree == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span
 >&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;  FTSENT *node;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <span class="keywordflow">while</span> ((node = ::fts_read(tree)) != <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">switch</span> (node-&gt;fts_info) {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;      <span class="comment">// Preorder directory.</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      <span class="keywordflow">case</span> FTS_D:</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      <span class="comment">// Regular file.</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;      <span class="keywordflow">case</span> FTS_F:</di
 v><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;      <span class="comment">// Symbolic link.</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;      <span class="keywordflow">case</span> FTS_SL:</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      <span class="comment">// Symbolic link without target.</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;      <span class="keywordflow">case</span> FTS_SLNONE: {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">if</span> (::lchown(node-&gt;fts_path, uid, gid) &lt; 0) {</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;          <a class="code" href="classError.html">Error</a> <a class="code" href="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec.html#ae58e703656ab4a1bd5d9870441236727">error<
 /a> = <a class="code" href="classErrnoError.html">ErrnoError</a>();</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;          ::fts_close(tree);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;          <span class="keywordflow">return</span> <a class="code" href="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec.html#ae58e703656ab4a1bd5d9870441236727">error</a>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        }</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      }</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>
 &#160;      <span class="comment">// Unreadable directory.</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;      <span class="keywordflow">case</span> FTS_DNR:</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;      <span class="comment">// Error; errno is set.</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;      <span class="keywordflow">case</span> FTS_ERR:</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;      <span class="comment">// Directory that causes cycles.</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      <span class="keywordflow">case</span> FTS_DC:</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;      <span class="comment">// `stat(2)` failed.</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;      <sp
 an class="keywordflow">case</span> FTS_NS: {</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <a class="code" href="classError.html">Error</a> <a class="code" href="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec.html#ae58e703656ab4a1bd5d9870441236727">error</a> = <a class="code" href="classErrnoError.html">ErrnoError</a>();</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        ::fts_close(tree);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec.html#ae58e703656ab4a1bd5d9870441236727">error</a>;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  
     <span class="keywordflow">default</span>:</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    }</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordflow">if</span> (node-&gt;fts_level == FTS_ROOTLEVEL &amp;&amp; !recursive) {</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;      <span class="keywordflow">break</span>;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno">   87</s
 pan>&#160;  ::fts_close(tree);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment">// Changes the specified path&#39;s user and group ownership to that of</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment">// the specified user.</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="namespaceos.html#a6170f18a0d87c3875d6f410b38919223">   94</a></span>&#160;<span class="keyword">inline</span> <a class="code"
  href="classTry.html">Try&lt;Nothing&gt;</a> <a class="code" href="namespaceos.html#a9ea4b5bd8ccef02c74ceb9b4a497baab">chown</a>(</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="namespaceos.html#a698aa27e5ea6b1dc1c190b978c2f7960">user</a>,</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="namespacepath.html">path</a>,</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">bool</span> recursive = <span class="keyword">true</span>)</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;{</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <a class="code" href="structpasswd.html">passwd</a>* <a class="code" href="structpasswd.html">passwd</a>;</div>
 <div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  errno = 0;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordflow">if</span> ((passwd = ::getpwnam(user.c_str())) == <span class="keyword">nullptr</span>) {</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">return</span> errno</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;      ? <a class="code" href="classErrnoError.html">ErrnoError</a>(<span class="stringliteral">&quot;Failed to get user information for &#39;&quot;</span> + user + <span class="stringliteral">&quot;&#39;&quot;</span>)</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;      : <a class="co
 de" href="classError.html">Error</a>(<span class="stringliteral">&quot;No such user &#39;&quot;</span> + user + <span class="stringliteral">&quot;&#39;&quot;</span>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;  <span class="keywordflow">return</span> <a class="code" href="namespaceos.html#a9ea4b5bd8ccef02c74ceb9b4a497baab">chown</a>(passwd-&gt;<a class="code" href="structpasswd.html#aa6e0e62ee3cf5152f2697a0104f627c1">pw_uid</a>, passwd-&gt;<a class="code" href="structpasswd.html#aefbacfb7dc7f7f47313d08707253e4c6">pw_gid</a>, path, recursive);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  
 112</span>&#160;} <span class="comment">// namespace os {</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif // __STOUT_OS_POSIX_CHOWN_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="namespaceos_1_1stat_html_a96066cfc01f1f62fc25b56f6915800eb"><div class="ttname"><a href="namespaceos_1_1stat.html#a96066cfc01f1f62fc25b56f6915800eb">os::stat::uid</a></div><div class="ttdeci">Try&lt; uid_t &gt; uid(const std::string &amp;path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:182</div></div>
+<div class="ttc" id="namespaceos_1_1stat_html_a96066cfc01f1f62fc25b56f6915800eb"><div class="ttname"><a href="namespaceos_1_1stat.html#a96066cfc01f1f62fc25b56f6915800eb">os::stat::uid</a></div><div class="ttdeci">Try&lt; uid_t &gt; uid(const std::string &amp;path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:213</div></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="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</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>
@@ -63,7 +63,7 @@
 <div class="ttc" id="structpasswd_html_aefbacfb7dc7f7f47313d08707253e4c6"><div class="ttname"><a href="structpasswd.html#aefbacfb7dc7f7f47313d08707253e4c6">passwd::pw_gid</a></div><div class="ttdeci">gid_t pw_gid</div><div class="ttdef"><b>Definition:</b> pwd.hpp:30</div></div>
 <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div>
 <div class="ttc" id="structpasswd_html_aa6e0e62ee3cf5152f2697a0104f627c1"><div class="ttname"><a href="structpasswd.html#aa6e0e62ee3cf5152f2697a0104f627c1">passwd::pw_uid</a></div><div class="ttdeci">uid_t pw_uid</div><div class="ttdef"><b>Definition:</b> pwd.hpp:29</div></div>
-<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_afc544433253791fc5f87b8203c9b6e63"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#afc544433253791fc5f87b8203c9b6e63">uid_t</a></div><div class="ttdeci">int uid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:189</div></div>
+<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_afc544433253791fc5f87b8203c9b6e63"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#afc544433253791fc5f87b8203c9b6e63">uid_t</a></div><div class="ttdeci">int uid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:183</div></div>
 <div class="ttc" id="structpasswd_html"><div class="ttname"><a href="structpasswd.html">passwd</a></div><div class="ttdef"><b>Definition:</b> pwd.hpp:26</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="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec_html_ae58e703656ab4a1bd5d9870441236727"><div class="ttname"><a href="namespacemesos_1_1internal_1_1slave_1_1cni_1_1spec.html#ae58e703656ab4a1bd5d9870441236727">mesos::internal::slave::cni::spec::error</a></div><div class="ttdeci">std::string error(const std::string &amp;msg, uint32_t code)</div></div>
@@ -71,7 +71,7 @@
 <div class="ttc" id="namespaceos_html_a9ea4b5bd8ccef02c74ceb9b4a497baab"><div class="ttname"><a href="namespaceos.html#a9ea4b5bd8ccef02c74ceb9b4a497baab">os::chown</a></div><div class="ttdeci">Try&lt; Nothing &gt; chown(uid_t uid, gid_t gid, const std::string &amp;path, bool recursive)</div><div class="ttdef"><b>Definition:</b> chown.hpp:30</div></div>
 <div class="ttc" id="stat_8hpp_html"><div class="ttname"><a href="stat_8hpp.html">stat.hpp</a></div></div>
 <div class="ttc" id="shell_8hpp_html"><div class="ttname"><a href="shell_8hpp.html">shell.hpp</a></div></div>
-<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a78ecefd3a9f3f0c110b9f6f038b690eb"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a78ecefd3a9f3f0c110b9f6f038b690eb">gid_t</a></div><div class="ttdeci">int gid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:190</div></div>
+<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a78ecefd3a9f3f0c110b9f6f038b690eb"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a78ecefd3a9f3f0c110b9f6f038b690eb">gid_t</a></div><div class="ttdeci">int gid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:184</div></div>
 </div><!-- fragment --></div><!-- contents -->
 <!-- start footer part -->
 <hr class="footer"/><address class="footer"><small>


Mime
View raw message