http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/permissions_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/permissions_8hpp_source.html b/content/api/latest/c++/permissions_8hpp_source.html index d56d675..be60a9d 100644 --- a/content/api/latest/c++/permissions_8hpp_source.html +++ b/content/api/latest/c++/permissions_8hpp_source.html @@ -52,44 +52,44 @@ <div class="title">permissions.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="permissions_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_PERMISSIONS_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_PERMISSIONS_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 <sys/stat.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 <string></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="try_8hpp.html">stout/try.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"> 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" href="structos_1_1Permissions.html"> 26</a></span> <span class="keyword">struct </span><a class="code" href="structos_1_1Permissions.html">Permissions</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"><a class="line" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0"> 28</a></span>  <span class="keyword">explicit</span> <a class="code" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">Permissions</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a8a35dd1207a16dfa8b1d4163176d828c">mode_t</a> <a class="code" href="namespaceos_1_1stat.html#afc51654ad486693167c300612bf8ebfa">mode</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>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a66cff14a0638cde9f422c7a4b0938e61">S_IRUSR</a>) != 0;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aead39710af2622ee9b0d412f62e90aa5">S_IWUSR</a>) != 0;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a4b9804a141ece40bfe29a8230f755de3">S_IXUSR</a>) != 0;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a7263fafb4db5d82a74d63e6f2f82c119">S_IRWXU</a>) != 0;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" hre f="structgroup.html">group</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a55fad1c3746e1b8a6a00c10998e91d91">S_IRGRP</a>) != 0;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="structgroup.html">group</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a104b6f6389e148475ffedf6ff89bb4b4">S_IWGRP</a>) != 0;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="structgroup.html">group</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a5550c0f23427e2286bdf67311f245c1a">S_IXGRP</a>) != 0;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="structgroup.html">group</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae82daeec3d114157ac3099de74c0c12c"> S_IRWXG</a>) != 0;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a90d7514882640a8cd7b8da14138103b7">S_IROTH</a>) != 0;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aa80ed5bd3460d4c6351b8f4f1fc7e113">S_IWOTH</a>) != 0;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad8f972ab510ada61a27150aae9066e87">S_IXOTH</a>) != 0;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad458428f53a34e96c15508642515a22c">S_IRWXO</a>) != 0;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c">setuid</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad5e72f5d6976766f19df07de0fe396af">S_ISUID</a>) != 0;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7610">setgid</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a37128804bcbf50f3b90aa953a9838e69">S_ISGID</a>) != 0;</div><div class ="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d">sticky</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a72447377d3eed3788e1b39679b310cf3">S_ISVTX</a>) != 0;</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> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">struct</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a77e48139d66d9f07a12a36b107c2716e"> 49</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a77e48139d66d9f07a12a36b107c2716e">r</a>;< /div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#abcf553652c084fb850c56ac425497b09"> 50</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#abcf553652c084fb850c56ac425497b09">w</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#afe509a1398f95df7d2bda5fbfaa91a44"> 51</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#afe509a1398f95df7d2bda5fbfaa91a44">x</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a9c1d8046a31c4b107f4548483dfa9c32"> 52</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a9c1d8046a31c4b107f4548483dfa9c32">rwx</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53< /span>  } <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>, <a class="code" href="structos_1_1Permissions.html#aff088e7e48d02dea27b19d0983d49b69">group</a>, <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c"> 55</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c">setuid</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7610"> 56</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7 610">setgid</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d"> 57</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d">sticky</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> </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="namespaceos.html#a3fc3402e6d83c2e2f1dc680d77489a29"> 61</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Permissions></a> <a class="code" href="namespaceos.html#a3fc3402e6d83c2e2f1dc680d77489a29">permissions</a>(<span class="keyword">const</span> std::string& <a class="co de" href="namespacepath.html">path</a>)</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="keyword">struct </span><a class="code" href="namespacecgroups.html#a78e3c7ca2e422779908eec45f859d757">stat</a> status;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">if</span> (::<a class="code" href="namespacecgroups.html#a78e3c7ca2e422779908eec45f859d757">stat</a>(path.c_str(), &<a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>) < 0) {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</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="keywordflow">return</span> <a class="code" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">Permissions</a>(status.st_mode);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</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="comment">// namespace os {</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="preprocessor">#endif // __STOUT_OS_PERMISSIONS_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="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad8f972ab510ada61a27150aae9066e87"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad8f972ab510ada61a27150aae9066e87">S_IXOTH</a></div><div class="ttdeci">const mode_t S_IXOTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:329</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a55fad1c3746e1b8a6a00c10998e91d91"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a55fad1c3746e1b8a6a00c10998e91d91">S_IRGRP</a></div><div class="ttdeci">const mode_t S_IRGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:319</div></div> +<a href="permissions_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_PERMISSIONS_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_PERMISSIONS_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 <sys/stat.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 <string></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="try_8hpp.html">stout/try.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"> 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" href="structos_1_1Permissions.html"> 26</a></span> <span class="keyword">struct </span><a class="code" href="structos_1_1Permissions.html">Permissions</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"><a class="line" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0"> 28</a></span>  <span class="keyword">explicit</span> <a class="code" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">Permissions</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a8a35dd1207a16dfa8b1d4163176d828c">mode_t</a> <a class="code" href="namespaceos_1_1stat.html#afc51654ad486693167c300612bf8ebfa">mode</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>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a66cff14a0638cde9f422c7a4b0938e61">S_IRUSR</a>) != 0;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aead39710af2622ee9b0d412f62e90aa5">S_IWUSR</a>) != 0;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a4b9804a141ece40bfe29a8230f755de3">S_IXUSR</a>) != 0;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a7263fafb4db5d82a74d63e6f2f82c119">S_IRWXU</a>) != 0;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" hre f="structgroup.html">group</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a55fad1c3746e1b8a6a00c10998e91d91">S_IRGRP</a>) != 0;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="structgroup.html">group</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a104b6f6389e148475ffedf6ff89bb4b4">S_IWGRP</a>) != 0;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="structgroup.html">group</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a5550c0f23427e2286bdf67311f245c1a">S_IXGRP</a>) != 0;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="structgroup.html">group</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae82daeec3d114157ac3099de74c0c12c"> S_IRWXG</a>) != 0;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.r = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a90d7514882640a8cd7b8da14138103b7">S_IROTH</a>) != 0;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.w = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aa80ed5bd3460d4c6351b8f4f1fc7e113">S_IWOTH</a>) != 0;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.x = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad8f972ab510ada61a27150aae9066e87">S_IXOTH</a>) != 0;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>.rwx = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad458428f53a34e96c15508642515a22c">S_IRWXO</a>) != 0;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c">setuid</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad5e72f5d6976766f19df07de0fe396af">S_ISUID</a>) != 0;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7610">setgid</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a37128804bcbf50f3b90aa953a9838e69">S_ISGID</a>) != 0;</div><div class ="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d">sticky</a> = (mode & <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a72447377d3eed3788e1b39679b310cf3">S_ISVTX</a>) != 0;</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> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">struct</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a77e48139d66d9f07a12a36b107c2716e"> 49</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a77e48139d66d9f07a12a36b107c2716e">r</a>;< /div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#abcf553652c084fb850c56ac425497b09"> 50</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#abcf553652c084fb850c56ac425497b09">w</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#afe509a1398f95df7d2bda5fbfaa91a44"> 51</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#afe509a1398f95df7d2bda5fbfaa91a44">x</a>;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a9c1d8046a31c4b107f4548483dfa9c32"> 52</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a9c1d8046a31c4b107f4548483dfa9c32">rwx</a>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53< /span>  } <a class="code" href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">owner</a>, <a class="code" href="structos_1_1Permissions.html#aff088e7e48d02dea27b19d0983d49b69">group</a>, <a class="code" href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">others</a>;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c"> 55</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c">setuid</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7610"> 56</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7 610">setgid</a>;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d"> 57</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d">sticky</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> </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="namespaceos.html#a3fc3402e6d83c2e2f1dc680d77489a29"> 61</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Permissions></a> <a class="code" href="namespaceos.html#a3fc3402e6d83c2e2f1dc680d77489a29">permissions</a>(<span class="keyword">const</span> std::string& <a class="co de" href="namespacepath.html">path</a>)</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="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  VLOG(2) << <span class="stringliteral">"`os::permissions` has been called, but is a stub on Windows"</span>;</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> <a class="code" href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">Permissions</a>(0);</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">struct </span><a class="code" href="namespacecgroups.html#a78e3c7 ca2e422779908eec45f859d757">stat</a> status;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (::<a class="code" href="namespacecgroups.html#a78e3c7ca2e422779908eec45f859d757">stat</a>(path.c_str(), &<a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a>) < 0) {</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</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="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">Permissions</a>(status.st_mode);</div><div class="li ne"><a name="l00073"></a><span class="lineno"> 73</span> <span class="preprocessor">#endif // __WINDOWS__</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="comment">// namespace os {</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</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> <span class="preprocessor">#endif // __STOUT_OS_PERMISSIONS_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></di v> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad8f972ab510ada61a27150aae9066e87"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad8f972ab510ada61a27150aae9066e87">S_IXOTH</a></div><div class="ttdeci">const mode_t S_IXOTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:323</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a55fad1c3746e1b8a6a00c10998e91d91"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a55fad1c3746e1b8a6a00c10998e91d91">S_IRGRP</a></div><div class="ttdeci">const mode_t S_IRGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:313</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="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:312</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="structos_1_1Permissions_html_aff088e7e48d02dea27b19d0983d49b69"><div class="ttname"><a href="structos_1_1Permissions.html#aff088e7e48d02dea27b19d0983d49b69">os::Permissions::group</a></div><div class="ttdeci">struct os::Permissions::@21 group</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="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:49</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:311</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> <div class="ttc" id="namespaceos_html_a3fc3402e6d83c2e2f1dc680d77489a29"><div class="ttname"><a href="namespaceos.html#a3fc3402e6d83c2e2f1dc680d77489a29">os::permissions</a></div><div class="ttdeci">Try< Permissions > permissions(const std::string &path)</div><div class="ttdef"><b>Definition:</b> permissions.hpp:61</div></div> <div class="ttc" id="structos_1_1Permissions_html_a0e41940296888431a9deffbdddca7610"><div class="ttname"><a href="structos_1_1Permissions.html#a0e41940296888431a9deffbdddca7610">os::Permissions::setgid</a></div><div class="ttdeci">bool setgid</div><div class="ttdef"><b>Definition:</b> permissions.hpp:56</div></div> <div class="ttc" id="structos_1_1Permissions_html_a9c1d8046a31c4b107f4548483dfa9c32"><div class="ttname"><a href="structos_1_1Permissions.html#a9c1d8046a31c4b107f4548483dfa9c32">os::Permissions::rwx</a></div><div class="ttdeci">bool rwx</div><div class="ttdef"><b>Definition:</b> permissions.hpp:52</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad458428f53a34e96c15508642515a22c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad458428f53a34e96c15508642515a22c">S_IRWXO</a></div><div class="ttdeci">const mode_t S_IRWXO</div><div class="ttdef"><b>Definition:</b> windows.hpp:330</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a72447377d3eed3788e1b39679b310cf3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a72447377d3eed3788e1b39679b310cf3">S_ISVTX</a></div><div class="ttdeci">const mode_t S_ISVTX</div><div class="ttdef"><b>Definition:</b> windows.hpp:336</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a8a35dd1207a16dfa8b1d4163176d828c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a8a35dd1207a16dfa8b1d4163176d828c">mode_t</a></div><div class="ttdeci">int mode_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:183</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a5550c0f23427e2286bdf67311f245c1a"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a5550c0f23427e2286bdf67311f245c1a">S_IXGRP</a></div><div class="ttdeci">const mode_t S_IXGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:321</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad458428f53a34e96c15508642515a22c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad458428f53a34e96c15508642515a22c">S_IRWXO</a></div><div class="ttdeci">const mode_t S_IRWXO</div><div class="ttdef"><b>Definition:</b> windows.hpp:324</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a72447377d3eed3788e1b39679b310cf3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a72447377d3eed3788e1b39679b310cf3">S_ISVTX</a></div><div class="ttdeci">const mode_t S_ISVTX</div><div class="ttdef"><b>Definition:</b> windows.hpp:330</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a8a35dd1207a16dfa8b1d4163176d828c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a8a35dd1207a16dfa8b1d4163176d828c">mode_t</a></div><div class="ttdeci">int mode_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:177</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a5550c0f23427e2286bdf67311f245c1a"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a5550c0f23427e2286bdf67311f245c1a">S_IXGRP</a></div><div class="ttdeci">const mode_t S_IXGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:315</div></div> <div class="ttc" id="structos_1_1Permissions_html_a77e48139d66d9f07a12a36b107c2716e"><div class="ttname"><a href="structos_1_1Permissions.html#a77e48139d66d9f07a12a36b107c2716e">os::Permissions::r</a></div><div class="ttdeci">bool r</div><div class="ttdef"><b>Definition:</b> permissions.hpp:49</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a4b9804a141ece40bfe29a8230f755de3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a4b9804a141ece40bfe29a8230f755de3">S_IXUSR</a></div><div class="ttdeci">const mode_t S_IXUSR</div><div class="ttdef"><b>Definition:</b> windows.hpp:313</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a4b9804a141ece40bfe29a8230f755de3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a4b9804a141ece40bfe29a8230f755de3">S_IXUSR</a></div><div class="ttdeci">const mode_t S_IXUSR</div><div class="ttdef"><b>Definition:</b> windows.hpp:307</div></div> <div class="ttc" id="structos_1_1Permissions_html_ae14ff3a707c064967e132d47a5a116ff"><div class="ttname"><a href="structos_1_1Permissions.html#ae14ff3a707c064967e132d47a5a116ff">os::Permissions::others</a></div><div class="ttdeci">struct os::Permissions::@21 others</div></div> <div class="ttc" id="namespacecgroups_html_a78e3c7ca2e422779908eec45f859d757"><div class="ttname"><a href="namespacecgroups.html#a78e3c7ca2e422779908eec45f859d757">cgroups::stat</a></div><div class="ttdeci">Try< hashmap< std::string, uint64_t > > stat(const std::string &hierarchy, const std::string &cgroup, const std::string &file)</div></div> <div class="ttc" id="structos_1_1Permissions_html"><div class="ttname"><a href="structos_1_1Permissions.html">os::Permissions</a></div><div class="ttdef"><b>Definition:</b> permissions.hpp:26</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a7263fafb4db5d82a74d63e6f2f82c119"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a7263fafb4db5d82a74d63e6f2f82c119">S_IRWXU</a></div><div class="ttdeci">const mode_t S_IRWXU</div><div class="ttdef"><b>Definition:</b> windows.hpp:314</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a104b6f6389e148475ffedf6ff89bb4b4"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a104b6f6389e148475ffedf6ff89bb4b4">S_IWGRP</a></div><div class="ttdeci">const mode_t S_IWGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:320</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad5e72f5d6976766f19df07de0fe396af"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad5e72f5d6976766f19df07de0fe396af">S_ISUID</a></div><div class="ttdeci">const mode_t S_ISUID</div><div class="ttdef"><b>Definition:</b> windows.hpp:334</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a7263fafb4db5d82a74d63e6f2f82c119"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a7263fafb4db5d82a74d63e6f2f82c119">S_IRWXU</a></div><div class="ttdeci">const mode_t S_IRWXU</div><div class="ttdef"><b>Definition:</b> windows.hpp:308</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a104b6f6389e148475ffedf6ff89bb4b4"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a104b6f6389e148475ffedf6ff89bb4b4">S_IWGRP</a></div><div class="ttdeci">const mode_t S_IWGRP</div><div class="ttdef"><b>Definition:</b> windows.hpp:314</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ad5e72f5d6976766f19df07de0fe396af"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ad5e72f5d6976766f19df07de0fe396af">S_ISUID</a></div><div class="ttdeci">const mode_t S_ISUID</div><div class="ttdef"><b>Definition:</b> windows.hpp:328</div></div> <div class="ttc" id="structgroup_html"><div class="ttname"><a href="structgroup.html">group</a></div><div class="ttdef"><b>Definition:</b> grp.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="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae82daeec3d114157ac3099de74c0c12c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae82daeec3d114157ac3099de74c0c12c">S_IRWXG</a></div><div class="ttdeci">const mode_t S_IRWXG</div><div class="ttdef"><b>Definition:</b> windows.hpp:322</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae82daeec3d114157ac3099de74c0c12c"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae82daeec3d114157ac3099de74c0c12c">S_IRWXG</a></div><div class="ttdeci">const mode_t S_IRWXG</div><div class="ttdef"><b>Definition:</b> windows.hpp:316</div></div> <div class="ttc" id="structos_1_1Permissions_html_a8d51e62d281d015ba6a4ee38c0dceb9a"><div class="ttname"><a href="structos_1_1Permissions.html#a8d51e62d281d015ba6a4ee38c0dceb9a">os::Permissions::owner</a></div><div class="ttdeci">struct os::Permissions::@21 owner</div></div> <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> <div class="ttc" id="structos_1_1Permissions_html_abcf553652c084fb850c56ac425497b09"><div class="ttname"><a href="structos_1_1Permissions.html#abcf553652c084fb850c56ac425497b09">os::Permissions::w</a></div><div class="ttdeci">bool w</div><div class="ttdef"><b>Definition:</b> permissions.hpp:50</div></div> <div class="ttc" id="structos_1_1Permissions_html_acf6338216d11de2434e9ee33ed30780d"><div class="ttname"><a href="structos_1_1Permissions.html#acf6338216d11de2434e9ee33ed30780d">os::Permissions::sticky</a></div><div class="ttdeci">bool sticky</div><div class="ttdef"><b>Definition:</b> permissions.hpp:57</div></div> <div class="ttc" id="structos_1_1Permissions_html_a80b9ed73e44e24207cbb11867363471c"><div class="ttname"><a href="structos_1_1Permissions.html#a80b9ed73e44e24207cbb11867363471c">os::Permissions::setuid</a></div><div class="ttdeci">bool setuid</div><div class="ttdef"><b>Definition:</b> permissions.hpp:55</div></div> -<div class="ttc" id="namespaceos_1_1stat_html_afc51654ad486693167c300612bf8ebfa"><div class="ttname"><a href="namespaceos_1_1stat.html#afc51654ad486693167c300612bf8ebfa">os::stat::mode</a></div><div class="ttdeci">Try< mode_t > mode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:126</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_aa80ed5bd3460d4c6351b8f4f1fc7e113"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aa80ed5bd3460d4c6351b8f4f1fc7e113">S_IWOTH</a></div><div class="ttdeci">const mode_t S_IWOTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:328</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a37128804bcbf50f3b90aa953a9838e69"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a37128804bcbf50f3b90aa953a9838e69">S_ISGID</a></div><div class="ttdeci">const mode_t S_ISGID</div><div class="ttdef"><b>Definition:</b> windows.hpp:335</div></div> +<div class="ttc" id="namespaceos_1_1stat_html_afc51654ad486693167c300612bf8ebfa"><div class="ttname"><a href="namespaceos_1_1stat.html#afc51654ad486693167c300612bf8ebfa">os::stat::mode</a></div><div class="ttdeci">Try< mode_t > mode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:157</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_aa80ed5bd3460d4c6351b8f4f1fc7e113"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#aa80ed5bd3460d4c6351b8f4f1fc7e113">S_IWOTH</a></div><div class="ttdeci">const mode_t S_IWOTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:322</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a37128804bcbf50f3b90aa953a9838e69"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a37128804bcbf50f3b90aa953a9838e69">S_ISGID</a></div><div class="ttdeci">const mode_t S_ISGID</div><div class="ttdef"><b>Definition:</b> windows.hpp:329</div></div> <div class="ttc" id="structos_1_1Permissions_html_afe509a1398f95df7d2bda5fbfaa91a44"><div class="ttname"><a href="structos_1_1Permissions.html#afe509a1398f95df7d2bda5fbfaa91a44">os::Permissions::x</a></div><div class="ttdeci">bool x</div><div class="ttdef"><b>Definition:</b> permissions.hpp:51</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a90d7514882640a8cd7b8da14138103b7"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a90d7514882640a8cd7b8da14138103b7">S_IROTH</a></div><div class="ttdeci">const mode_t S_IROTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:327</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a90d7514882640a8cd7b8da14138103b7"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a90d7514882640a8cd7b8da14138103b7">S_IROTH</a></div><div class="ttdeci">const mode_t S_IROTH</div><div class="ttdef"><b>Definition:</b> windows.hpp:321</div></div> <div class="ttc" id="structos_1_1Permissions_html_a7565a4cfec9845ea0b0436560298caf0"><div class="ttname"><a href="structos_1_1Permissions.html#a7565a4cfec9845ea0b0436560298caf0">os::Permissions::Permissions</a></div><div class="ttdeci">Permissions(mode_t mode)</div><div class="ttdef"><b>Definition:</b> permissions.hpp:28</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part -->
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/poll__socket_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/poll__socket_8hpp_source.html b/content/api/latest/c++/poll__socket_8hpp_source.html index 5474212..eff514d 100644 --- a/content/api/latest/c++/poll__socket_8hpp_source.html +++ b/content/api/latest/c++/poll__socket_8hpp_source.html @@ -52,7 +52,7 @@ <div class="title">poll_socket.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="poll__socket_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">#include <memory></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2socket_8hpp.html">process/socket.hpp</a>></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">#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> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespaceprocess.html">process</a> {</div><div class="lin e"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span>network {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html"> 23</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html">PollSocketImpl</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html">SocketImpl</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="k eyword">public</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keyword">static</span> <a class="code" href="classTry.html">Try<std::shared_ptr<SocketImpl></a>> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#af893115c4d9b82346bbf2a204de9c516">create</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a303670cfc45c0e1a564fec0532320804">s</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"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a7dc8a9fdc548910d842505702e84585d"> 28</a></span>  <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a7dc8a9fdc548910d842505702e84585d">PollSocketImpl</a>(<a class=" code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s) : <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html">SocketImpl</a>(s) {}</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a183161b9ce84fc906788531adb39b1f1"> 30</a></span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a183161b9ce84fc906788531adb39b1f1">~PollSocketImpl</a>() {}</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// Implementation of the SocketImpl interface.</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword ">virtual</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ae17fa1d49cfda7a19b5bf8eb3f4a0ebc">listen</a>(<span class="keywordtype">int</span> backlog);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<std::shared_ptr<SocketImpl></a>> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a26188c98728621ed4bdabc7087c46064">accept</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a217849468a99bd63d10a8f8acfb2e496">connect</a>(<span class="keyword">const</span> <a class="code" href="classpr ocess_1_1network_1_1Address.html">Address</a>& <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a2289c8b4a10fae48e88518019c900c5a">address</a>);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a25882be4a54fbd7040e8a2ea707d5a33">recv</a>(<span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a809de92dbb8bc53a253542af04afad7d">send< /a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#abe4968408350df83e9ad194bc1dcce1b">sendfile</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, off_t offset, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ad2a592d7183b723c98ace8391f321632"> 39</a></span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#ab1b898c86d5d9d449a65381c2b1d74f5">Kind</a> <a class="code" href="cla ssprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ad2a592d7183b723c98ace8391f321632">kind</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#ab1b898c86d5d9d449a65381c2b1d74f5a48798d6fe72649c6d013e60081c38d9a">SocketImpl::Kind::POLL</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="comment">// namespace internal {</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <span class="comment">// namespace network {</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> } <span class="comment">// namespace process {</span></div><div class="ttc" id="namespaceos_1_1stat_html_a7a1168919 23bc8b5d8c50f78da8657be"><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:100</div></div> +<a href="poll__socket_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">#include <memory></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="libprocess_2include_2process_2socket_8hpp.html">process/socket.hpp</a>></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">#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> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">namespace </span><a class="code" href="namespaceprocess.html">process</a> {</div><div class="lin e"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span>network {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html"> 23</a></span> <span class="keyword">class </span><a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html">PollSocketImpl</a> : <span class="keyword">public</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html">SocketImpl</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="k eyword">public</span>:</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keyword">static</span> <a class="code" href="classTry.html">Try<std::shared_ptr<SocketImpl></a>> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#af893115c4d9b82346bbf2a204de9c516">create</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a303670cfc45c0e1a564fec0532320804">s</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"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a7dc8a9fdc548910d842505702e84585d"> 28</a></span>  <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a7dc8a9fdc548910d842505702e84585d">PollSocketImpl</a>(<a class=" code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> s) : <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html">SocketImpl</a>(s) {}</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a183161b9ce84fc906788531adb39b1f1"> 30</a></span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a183161b9ce84fc906788531adb39b1f1">~PollSocketImpl</a>() {}</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="comment">// Implementation of the SocketImpl interface.</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword ">virtual</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ae17fa1d49cfda7a19b5bf8eb3f4a0ebc">listen</a>(<span class="keywordtype">int</span> backlog);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<std::shared_ptr<SocketImpl></a>> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a26188c98728621ed4bdabc7087c46064">accept</a>();</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a217849468a99bd63d10a8f8acfb2e496">connect</a>(<span class="keyword">const</span> <a class="code" href="classpr ocess_1_1network_1_1Address.html">Address</a>& <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a2289c8b4a10fae48e88518019c900c5a">address</a>);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a25882be4a54fbd7040e8a2ea707d5a33">recv</a>(<span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>);</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a809de92dbb8bc53a253542af04afad7d">send< /a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#abe4968408350df83e9ad194bc1dcce1b">sendfile</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, off_t offset, <span class="keywordtype">size_t</span> size);</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ad2a592d7183b723c98ace8391f321632"> 39</a></span>  <span class="keyword">virtual</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#ab1b898c86d5d9d449a65381c2b1d74f5">Kind</a> <a class="code" href="cla ssprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ad2a592d7183b723c98ace8391f321632">kind</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#ab1b898c86d5d9d449a65381c2b1d74f5a48798d6fe72649c6d013e60081c38d9a">SocketImpl::Kind::POLL</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="comment">// namespace internal {</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <span class="comment">// namespace network {</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> } <span class="comment">// namespace process {</span></div><div class="ttc" id="namespaceos_1_1stat_html_a7a1168919 23bc8b5d8c50f78da8657be"><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="classprocess_1_1network_1_1internal_1_1PollSocketImpl_html_ad2a592d7183b723c98ace8391f321632"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#ad2a592d7183b723c98ace8391f321632">process::network::internal::PollSocketImpl::kind</a></div><div class="ttdeci">virtual Kind kind() const </div><div class="ttdef"><b>Definition:</b> poll_socket.hpp:39</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1PollSocketImpl_html_a7dc8a9fdc548910d842505702e84585d"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1PollSocketImpl.html#a7dc8a9fdc548910d842505702e84585d">process::network::internal::PollSocketImpl::PollSocketImpl</a></div><div class="ttdeci">PollSocketImpl(int_fd s)</div><div class="ttdef"><b>Definition:</b> poll_socket.hpp:28</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/port__mapping_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/port__mapping_8hpp_source.html b/content/api/latest/c++/port__mapping_8hpp_source.html index 6c2dfe0..04d42ee 100644 --- a/content/api/latest/c++/port__mapping_8hpp_source.html +++ b/content/api/latest/c++/port__mapping_8hpp_source.html @@ -91,7 +91,7 @@ <div class="ttc" id="classnet_1_1IP_html"><div class="ttname"><a href="classnet_1_1IP.html">net::IP</a></div><div class="ttdef"><b>Definition:</b> ip.hpp:73</div></div> <div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap< std::string, std::string ></a></div></div> <div class="ttc" id="classprocess_1_1Subprocess_html"><div class="ttname"><a href="classprocess_1_1Subprocess.html">process::Subprocess</a></div><div class="ttdoc">Represents a fork() exec()ed subprocess. </div><div class="ttdef"><b>Definition:</b> subprocess.hpp:43</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="namespacemesos_1_1internal_html_a91a5bc5e418e8712bb512721b5abc46d"><div class="ttname"><a href="namespacemesos_1_1internal.html#a91a5bc5e418e8712bb512721b5abc46d">mesos::internal::usage</a></div><div class="ttdeci">Try< ResourceStatistics > usage(pid_t pid, bool mem=true, bool cpus=true)</div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1PortMappingUpdate_html_a8bb4e71fe9df32e2638e81ef7f8bc5f4"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1PortMappingUpdate.html#a8bb4e71fe9df32e2638e81ef7f8bc5f4">mesos::internal::slave::PortMappingUpdate::getFlags</a></div><div class="ttdeci">virtual flags::FlagsBase * getFlags()</div><div class="ttdef"><b>Definition:</b> port_mapping.hpp:372</div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1EphemeralPortsAllocator_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1EphemeralPortsAllocator.html">mesos::internal::slave::EphemeralPortsAllocator</a></div><div class="ttdef"><b>Definition:</b> port_mapping.hpp:84</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/ports_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/ports_8hpp_source.html b/content/api/latest/c++/ports_8hpp_source.html index 2033817..49aa4f2 100644 --- a/content/api/latest/c++/ports_8hpp_source.html +++ b/content/api/latest/c++/ports_8hpp_source.html @@ -66,7 +66,7 @@ <div class="ttc" id="src_2slave_2containerizer_2mesos_2isolator_8hpp_html"><div class="ttname"><a href="src_2slave_2containerizer_2mesos_2isolator_8hpp.html">isolator.hpp</a></div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess_html_a51ab2b5a72800662b601ac52c750fe06"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess.html#a51ab2b5a72800662b601ac52c750fe06">mesos::internal::slave::NetworkPortsIsolatorProcess::initialize</a></div><div class="ttdeci">virtual void initialize()</div><div class="ttdoc">Invoked when a process gets spawned. </div></div> <div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap</a></div><div class="ttdef"><b>Definition:</b> hashmap.hpp:38</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess_html_af8e380602c2e98f10ea35379f1f5e0be"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess.html#af8e380602c2e98f10ea35379f1f5e0be">mesos::internal::slave::NetworkPortsIsolatorProcess::check</a></div><div class="ttdeci">process::Future< Nothing > check(const hashmap< ContainerID, IntervalSet< uint16_t >> &listeners)</div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1NetworkPortsIsolatorProcess.html">mesos::internal::slave::NetworkPortsIsolatorProcess</a></div><div class="ttdef"><b>Definition:</b> ports.hpp:45</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/posix_2bootid_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/posix_2bootid_8hpp_source.html b/content/api/latest/c++/posix_2bootid_8hpp_source.html index 9626c91..cbc166d 100644 --- a/content/api/latest/c++/posix_2bootid_8hpp_source.html +++ b/content/api/latest/c++/posix_2bootid_8hpp_source.html @@ -59,7 +59,7 @@ <div class="ttc" id="3rdparty_2stout_2include_2stout_2os_2read_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2os_2read_8hpp.html">read.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="sysctl_8hpp_html"><div class="ttname"><a href="sysctl_8hpp.html">sysctl.hpp</a></div></div> -<div class="ttc" id="namespaceos_html_aa1d97ff0a93229e1fe6b33e3e2d567f7"><div class="ttname"><a href="namespaceos.html#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a></div><div class="ttdeci">Result< std::string > read(int_fd fd, size_t size)</div><div class="ttdef"><b>Definition:</b> read.hpp:50</div></div> +<div class="ttc" id="namespaceos_html_aa1d97ff0a93229e1fe6b33e3e2d567f7"><div class="ttname"><a href="namespaceos.html#aa1d97ff0a93229e1fe6b33e3e2d567f7">os::read</a></div><div class="ttdeci">Result< std::string > read(int_fd fd, size_t size)</div><div class="ttdef"><b>Definition:</b> read.hpp:55</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="classTry_html_a0b98f95163b8a38daafd1651b043a276"><div class="ttname"><a href="classTry.html#a0b98f95163b8a38daafd1651b043a276">Try::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> try.hpp:71</div></div> <div class="ttc" id="stringify_8hpp_html"><div class="ttname"><a href="stringify_8hpp.html">stringify.hpp</a></div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/posix_2copyfile_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/posix_2copyfile_8hpp_source.html b/content/api/latest/c++/posix_2copyfile_8hpp_source.html index 3f3f8db..0ee3525 100644 --- a/content/api/latest/c++/posix_2copyfile_8hpp_source.html +++ b/content/api/latest/c++/posix_2copyfile_8hpp_source.html @@ -66,13 +66,13 @@ <div class="ttc" id="path_8hpp_html"><div class="ttname"><a href="path_8hpp.html">path.hpp</a></div></div> <div class="ttc" id="classOption_html_a21358442c0fac1cc978a67a9a9089a79"><div class="ttname"><a href="classOption.html#a21358442c0fac1cc978a67a9a9089a79">Option::get</a></div><div class="ttdeci">const T & get() const &</div><div class="ttdef"><b>Definition:</b> option.hpp:118</div></div> <div class="ttc" id="option_8hpp_html"><div class="ttname"><a href="option_8hpp.html">option.hpp</a></div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae0c8840076dd63d5e2367fff4f7f46f3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae0c8840076dd63d5e2367fff4f7f46f3">WEXITSTATUS</a></div><div class="ttdeci">#define WEXITSTATUS(x)</div><div class="ttdef"><b>Definition:</b> windows.hpp:379</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_af9a4ddf9eee6c4a3bc9be070d59b7ccf"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#af9a4ddf9eee6c4a3bc9be070d59b7ccf">WIFEXITED</a></div><div class="ttdeci">#define WIFEXITED(x)</div><div class="ttdef"><b>Definition:</b> windows.hpp:373</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae0c8840076dd63d5e2367fff4f7f46f3"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae0c8840076dd63d5e2367fff4f7f46f3">WEXITSTATUS</a></div><div class="ttdeci">#define WEXITSTATUS(x)</div><div class="ttdef"><b>Definition:</b> windows.hpp:368</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_af9a4ddf9eee6c4a3bc9be070d59b7ccf"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#af9a4ddf9eee6c4a3bc9be070d59b7ccf">WIFEXITED</a></div><div class="ttdeci">#define WIFEXITED(x)</div><div class="ttdef"><b>Definition:</b> windows.hpp:362</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="stringify_8hpp_html"><div class="ttname"><a href="stringify_8hpp.html">stringify.hpp</a></div></div> <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></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="namespaceos_1_1stat_html_aa86aaa21fefc0e9cab89050b60aeca40"><div class="ttname"><a href="namespaceos_1_1stat.html#aa86aaa21fefc0e9cab89050b60aeca40">os::stat::isdir</a></div><div class="ttdeci">bool isdir(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:78</div></div> +<div class="ttc" id="namespaceos_1_1stat_html_aa86aaa21fefc0e9cab89050b60aeca40"><div class="ttname"><a href="namespaceos_1_1stat.html#aa86aaa21fefc0e9cab89050b60aeca40">os::stat::isdir</a></div><div class="ttdeci">bool isdir(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:89</div></div> <div class="ttc" id="classOption_html_a06eab791122ebc1f8af4ad310e5e7d7e"><div class="ttname"><a href="classOption.html#a06eab791122ebc1f8af4ad310e5e7d7e">Option::isNone</a></div><div class="ttdeci">bool isNone() const </div><div class="ttdef"><b>Definition:</b> option.hpp:116</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><!-- fragment --></div><!-- contents --> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/posix_2disk_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/posix_2disk_8hpp_source.html b/content/api/latest/c++/posix_2disk_8hpp_source.html index b265307..2781f15 100644 --- a/content/api/latest/c++/posix_2disk_8hpp_source.html +++ b/content/api/latest/c++/posix_2disk_8hpp_source.html @@ -68,7 +68,7 @@ <div class="ttc" id="src_2slave_2containerizer_2mesos_2isolator_8hpp_html"><div class="ttname"><a href="src_2slave_2containerizer_2mesos_2isolator_8hpp.html">isolator.hpp</a></div></div> <div class="ttc" id="structmesos_1_1internal_1_1slave_1_1PosixDiskIsolatorProcess_1_1Info_1_1PathInfo_html_aadcca1381da7c5b1bab82d47844d6dd5"><div class="ttname"><a href="structmesos_1_1internal_1_1slave_1_1PosixDiskIsolatorProcess_1_1Info_1_1PathInfo.html#aadcca1381da7c5b1bab82d47844d6dd5">mesos::internal::slave::PosixDiskIsolatorProcess::Info::PathInfo::usage</a></div><div class="ttdeci">process::Future< Bytes > usage</div><div class="ttdef"><b>Definition:</b> disk.hpp:141</div></div> <div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap</a></div><div class="ttdef"><b>Definition:</b> hashmap.hpp:38</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1PosixDiskIsolatorProcess_html"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1PosixDiskIsolatorProcess.html">mesos::internal::slave::PosixDiskIsolatorProcess</a></div><div class="ttdef"><b>Definition:</b> disk.hpp:73</div></div> <div class="ttc" id="bytes_8hpp_html"><div class="ttname"><a href="bytes_8hpp.html">bytes.hpp</a></div></div>
