http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/index.hhp ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/index.hhp b/content/api/latest/c++/index.hhp index d382205..44880da 100644 --- a/content/api/latest/c++/index.hhp +++ b/content/api/latest/c++/index.hhp @@ -189,6 +189,8 @@ ls_8hpp_source.html posix_2ls_8hpp_source.html windows_2ls_8hpp_source.html lseek_8hpp_source.html +posix_2lseek_8hpp_source.html +windows_2lseek_8hpp_source.html mkdir_8hpp_source.html posix_2mkdir_8hpp_source.html windows_2mkdir_8hpp_source.html @@ -199,6 +201,8 @@ mktemp_8hpp_source.html posix_2mktemp_8hpp_source.html windows_2mktemp_8hpp_source.html open_8hpp_source.html +posix_2open_8hpp_source.html +windows_2open_8hpp_source.html os_2os_8hpp_source.html os_8hpp_source.html posix_2os_8hpp_source.html @@ -232,7 +236,6 @@ shell_8hpp_source.html windows_2shell_8hpp_source.html posix_2signals_8hpp_source.html signals_8hpp_source.html -windows_2signals_8hpp_source.html posix_2stat_8hpp_source.html stat_8hpp_source.html windows_2stat_8hpp_source.html @@ -899,6 +902,8 @@ ls_8hpp.html posix_2ls_8hpp.html windows_2ls_8hpp.html lseek_8hpp.html +posix_2lseek_8hpp.html +windows_2lseek_8hpp.html mkdir_8hpp.html posix_2mkdir_8hpp.html windows_2mkdir_8hpp.html @@ -909,6 +914,8 @@ mktemp_8hpp.html posix_2mktemp_8hpp.html windows_2mktemp_8hpp.html open_8hpp.html +posix_2open_8hpp.html +windows_2open_8hpp.html os_2os_8hpp.html os_8hpp.html posix_2os_8hpp.html @@ -942,7 +949,6 @@ shell_8hpp.html windows_2shell_8hpp.html posix_2signals_8hpp.html signals_8hpp.html -windows_2signals_8hpp.html posix_2stat_8hpp.html stat_8hpp.html windows_2stat_8hpp.html @@ -2650,8 +2656,8 @@ classmesos_1_1python_1_1ProxyScheduler-members.html namespacemesos_1_1resource__provider.html classmesos_1_1resource__provider_1_1AdmitResourceProvider.html classmesos_1_1resource__provider_1_1AdmitResourceProvider-members.html -classmesos_1_1resource__provider_1_1AgentRegistrar.html -classmesos_1_1resource__provider_1_1AgentRegistrar-members.html +classmesos_1_1resource__provider_1_1GenericRegistrar.html +classmesos_1_1resource__provider_1_1GenericRegistrar-members.html classmesos_1_1resource__provider_1_1MasterRegistrar.html classmesos_1_1resource__provider_1_1MasterRegistrar-members.html classmesos_1_1resource__provider_1_1Registrar.html @@ -3742,7 +3748,6 @@ globals_defs_i.html globals_defs_l.html globals_defs_m.html globals_defs_n.html -globals_defs_o.html globals_defs_p.html globals_defs_r.html globals_defs_s.html @@ -4058,7 +4063,7 @@ structmesos_1_1modules_1_1ModuleBase.png classmesos_1_1python_1_1ProxyExecutor.png classmesos_1_1python_1_1ProxyScheduler.png classmesos_1_1resource__provider_1_1AdmitResourceProvider.png -classmesos_1_1resource__provider_1_1AgentRegistrar.png +classmesos_1_1resource__provider_1_1GenericRegistrar.png classmesos_1_1resource__provider_1_1MasterRegistrar.png classmesos_1_1resource__provider_1_1Registrar.png classmesos_1_1resource__provider_1_1Registrar_1_1Operation.png
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/inherit_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/inherit_8hpp.html b/content/api/latest/c++/inherit_8hpp.html index d697c3c..93b48e2 100644 --- a/content/api/latest/c++/inherit_8hpp.html +++ b/content/api/latest/c++/inherit_8hpp.html @@ -58,8 +58,8 @@ <div class="textblock"><code>#include <<a class="el" href="error_8hpp_source.html">stout/error.hpp</a>></code><br /> <code>#include <<a class="el" href="nothing_8hpp_source.html">stout/nothing.hpp</a>></code><br /> <code>#include <<a class="el" href="try_8hpp_source.html">stout/try.hpp</a>></code><br /> -<code>#include <<a class="el" href="fd_8hpp_source.html">stout/os/windows/fd.hpp</a>></code><br /> <code>#include <<a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp_source.html">stout/windows.hpp</a>></code><br /> +<code>#include <<a class="el" href="int__fd_8hpp_source.html">stout/os/int_fd.hpp</a>></code><br /> </div> <p><a href="inherit_8hpp_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> @@ -72,8 +72,8 @@ Namespaces</h2></td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> -<tr class="memitem:adbed599fc9e09827cad4a1aac63133bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< <a class="el" href="structNothing.html">Nothing</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceinternal_1_1windows.html#adbed599fc9e09827cad4a1aac63133bb">internal::windows::set_inherit</a> (const <a class="el" href="classos_1_1WindowsFD.html">os::WindowsFD</a> &fd, const bool inherit)</td></tr> -<tr class="separator:adbed599fc9e09827cad4a1aac63133bb"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a9dc48dc50b21cb8cee5237630460c4bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< <a class="el" href="structNothing.html">Nothing</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">internal::windows::set_inherit</a> (const <a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> &fd, const bool inherit)</td></tr> +<tr class="separator:a9dc48dc50b21cb8cee5237630460c4bd"><td class="memSeparator" colspan="2"> </td></tr> </table> </div><!-- contents --> <!-- start footer part --> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/inherit_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/inherit_8hpp_source.html b/content/api/latest/c++/inherit_8hpp_source.html index d6f9878..d84af32 100644 --- a/content/api/latest/c++/inherit_8hpp_source.html +++ b/content/api/latest/c++/inherit_8hpp_source.html @@ -52,17 +52,17 @@ <div class="title">inherit.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="inherit_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span ></div><div class="line"><a name="l00007"></a><span class="lineno"> >7</span> <span class="comment">// Unless required by applicable law or >agreed to in writing, software</span></div><div class="line"><a >name="l00008"></a><span class="lineno"> 8</span> <span >class="comment">// distributed under the License is distributed on an >"AS IS" BASIS,</span></div><div class="line"><a >name="l00009"></a><span class="lineno"> 9</span> <span >class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either >express or implied.</span></div><div class="line"><a name="l00010"></a><span >class="lineno"> 10</span> <span class="comment">// See the License for >the specific language governing permissions and</span></div><div >class="line"><a name="l00011"></a><span class="lineno"> >11</span> <span class="comment">// limitations under the >License.</span></div><div class="line"><a name="l00012"></a><span >class="lineno"> 12</span> </div><div class="lin e"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="fd_8hpp.html">stout/os/windows/fd.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span>windows {</div><div class="line"><a na me="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// This function enables or disables inheritance for a Windows file handle.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// NOTE: By default, handles on Windows are not inheritable, so this is</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// primarily used to enable inheritance when passing handles to child processes,</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// and subsequently disable inheritance.</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespaceinternal_1_1 windows.html#adbed599fc9e09827cad4a1aac63133bb"> 32</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceinternal_1_1windows.html#adbed599fc9e09827cad4a1aac63133bb">set_inherit</a>(<span class="keyword">const</span> <a class="code" href="classos_1_1WindowsFD.html">os::WindowsFD</a>& fd, <span class="keyword">const</span> <span class="keywordtype">bool</span> inherit)</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">const</span> BOOL result = ::SetHandleInformation(</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  fd, HANDLE_FLAG_INHERIT, inherit ? HANDLE_FLAG_INHERIT : 0);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span clas s="lineno"> 37</span>  <span class="keywordflow">if</span> (result == FALSE) {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> } <span class="comment">// namespace windows {</span></div><div class="line"><a name="l00045"></a><span class="l ineno"> 45</span> } <span class="comment">// namespace internal {</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="preprocessor">#endif // __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div> -<div class="ttc" id="fd_8hpp_html"><div class="ttname"><a href="fd_8hpp.html">fd.hpp</a></div></div> -<div class="ttc" id="classos_1_1WindowsFD_html"><div class="ttname"><a href="classos_1_1WindowsFD.html">os::WindowsFD</a></div><div class="ttdef"><b>Definition:</b> fd.hpp:47</div></div> +<a href="inherit_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span ></div><div class="line"><a name="l00007"></a><span class="lineno"> >7</span> <span class="comment">// Unless required by applicable law or >agreed to in writing, software</span></div><div class="line"><a >name="l00008"></a><span class="lineno"> 8</span> <span >class="comment">// distributed under the License is distributed on an >"AS IS" BASIS,</span></div><div class="line"><a >name="l00009"></a><span class="lineno"> 9</span> <span >class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either >express or implied.</span></div><div class="line"><a name="l00010"></a><span >class="lineno"> 10</span> <span class="comment">// See the License for >the specific language governing permissions and</span></div><div >class="line"><a name="l00011"></a><span class="lineno"> >11</span> <span class="comment">// limitations under the >License.</span></div><div class="line"><a name="l00012"></a><span >class="lineno"> 12</span> </div><div class="lin e"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">namespace </span>windows {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a n ame="l00026"></a><span class="lineno"> 26</span> <span class="comment">// This function enables or disables inheritance for a Windows file handle.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">//</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// NOTE: By default, handles on Windows are not inheritable, so this is</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// primarily used to enable inheritance when passing handles to child processes,</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// and subsequently disable inheritance.</span></div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd"> 31</a></span> <span class=" keyword">inline</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">set_inherit</a>(<span class="keyword">const</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a>& fd, <span class="keyword">const</span> <span class="keywordtype">bool</span> inherit)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> BOOL result = ::SetHandleInformation(</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  fd, HANDLE_FLAG_INHERIT, inherit ? HANDLE_FLAG_INHERIT : 0);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</spa n> (result == FALSE) {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <a class="code" href="classWindowsError.html">WindowsError</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">return</span> <a class="code" href="structNothing.html">Nothing</a>();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> }</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> } <span class="comment">// namespace windows {</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> } <span class="comment">// namespace in ternal {</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#endif // __STOUT_INTERNAL_WINDOWS_INHERIT_HPP__</span></div><div class="ttc" id="structNothing_html"><div class="ttname"><a href="structNothing.html">Nothing</a></div><div class="ttdef"><b>Definition:</b> nothing.hpp:16</div></div> <div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div> <div class="ttc" id="classWindowsError_html"><div class="ttname"><a href="classWindowsError.html">WindowsError</a></div><div class="ttdef"><b>Definition:</b> error.hpp:106</div></div> +<div class="ttc" id="namespaceinternal_1_1windows_html_a9dc48dc50b21cb8cee5237630460c4bd"><div class="ttname"><a href="namespaceinternal_1_1windows.html#a9dc48dc50b21cb8cee5237630460c4bd">internal::windows::set_inherit</a></div><div class="ttdeci">Try< Nothing > set_inherit(const int_fd &fd, const bool inherit)</div><div class="ttdef"><b>Definition:</b> inherit.hpp:31</div></div> <div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">windows.hpp</a></div></div> <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> <div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div> <div class="ttc" id="namespaceinternal_html"><div class="ttname"><a href="namespaceinternal.html">internal</a></div><div class="ttdef"><b>Definition:</b> attributes.hpp:24</div></div> <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> -<div class="ttc" id="namespaceinternal_1_1windows_html_adbed599fc9e09827cad4a1aac63133bb"><div class="ttname"><a href="namespaceinternal_1_1windows.html#adbed599fc9e09827cad4a1aac63133bb">internal::windows::set_inherit</a></div><div class="ttdeci">Try< Nothing > set_inherit(const os::WindowsFD &fd, const bool inherit)</div><div class="ttdef"><b>Definition:</b> inherit.hpp:32</div></div> +<div class="ttc" id="int__fd_8hpp_html"><div class="ttname"><a href="int__fd_8hpp.html">int_fd.hpp</a></div></div> +<div class="ttc" id="int__fd_8hpp_html_aea4dbda01c90455f158ffa9b924c2f07"><div class="ttname"><a href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a></div><div class="ttdeci">int int_fd</div><div class="ttdef"><b>Definition:</b> int_fd.hpp:35</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/int__fd_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/int__fd_8hpp_source.html b/content/api/latest/c++/int__fd_8hpp_source.html index ec5d2d0..c363d38 100644 --- a/content/api/latest/c++/int__fd_8hpp_source.html +++ b/content/api/latest/c++/int__fd_8hpp_source.html @@ -53,7 +53,7 @@ </div><!--header--> <div class="contents"> <a href="int__fd_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// You may obtain a copy of the License at</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span ></div><div class="line"><a name="l00007"></a><span class="lineno"> >7</span> <span class="comment">// Unless required by applicable law or >agreed to in writing, software</span></div><div class="line"><a >name="l00008"></a><span class="lineno"> 8</span> <span >class="comment">// distributed under the License is distributed on an >"AS IS" BASIS,</span></div><div class="line"><a >name="l00009"></a><span class="lineno"> 9</span> <span >class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either >express or implied.</span></div><div class="line"><a name="l00010"></a><span >class="lineno"> 10</span> <span class="comment">// See the License for >the specific language governing permissions and</span></div><div >class="line"><a name="l00011"></a><span class="lineno"> >11</span> <span class="comment">// limitations under the >License.</span></div><div class="line"><a name="l00012"></a><span >class="lineno"> 12</span> </div><div class="lin e"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#ifndef __STOUT_OS_INT_FD_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_OS_INT_FD_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> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// For readability, we minimize the number of #ifdef blocks in the code by</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// splitting platform specifc system calls into separate directories.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00020"></a><s pan class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="fd_8hpp.html">stout/os/windows/fd.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// The `int_fd` type is designed to be able to keep / continue to write the</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// existing POSIX file descriptor pattern in a portable manner with Windows.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// IMPORTANT: Use the `in t_fd` in platform-agnostic code paths, and use `int`</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// or `os::WindowsFD` directly in platform-specific code paths.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">//</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// NOTE: The `int_` prefix is meant to indicate that on POSIX, `int_fd` will</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment">// behave exactly as-is.</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">using</span> <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> =</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preproc essor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classos_1_1WindowsFD.html">os::WindowsFD</a>;</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07"> 35</a></span>  int;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#endif // __STOUT_OS_INT_FD_HPP__</span></div><div class="ttc" id="fd_8hpp_html"><div class="ttname"><a href="fd_8hpp.html">fd.hpp</a></div></div> -<div class="ttc" id="classos_1_1WindowsFD_html"><div class="ttname"><a href="classos_1_1WindowsFD.html">os::WindowsFD</a></div><div class="ttdef"><b>Definition:</b> fd.hpp:47</div></div> +<div class="ttc" id="classos_1_1WindowsFD_html"><div class="ttname"><a href="classos_1_1WindowsFD.html">os::WindowsFD</a></div><div class="ttdef"><b>Definition:</b> fd.hpp:50</div></div> <div class="ttc" id="int__fd_8hpp_html_aea4dbda01c90455f158ffa9b924c2f07"><div class="ttname"><a href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a></div><div class="ttdeci">int int_fd</div><div class="ttdef"><b>Definition:</b> int_fd.hpp:35</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part -->
