You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2018/06/28 18:45:41 UTC
[48/50] mesos-site git commit: Updated the website built from mesos
SHA: 7c9c72d.
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/09fd0301/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp.html
index 3b57e0d..d7f7c34 100644
--- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp.html
+++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp.html
@@ -72,6 +72,12 @@ 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:a9db94d84fb44b21fb669ade7c6a82114"><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="namespaceprocess_1_1io.html#a9db94d84fb44b21fb669ade7c6a82114">process::io::prepare_async</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd)</td></tr>
+<tr class="memdesc:a9db94d84fb44b21fb669ade7c6a82114"><td class="mdescLeft"> </td><td class="mdescRight">Prepares a file descriptor to be ready for asynchronous IO. <a href="namespaceprocess_1_1io.html#a9db94d84fb44b21fb669ade7c6a82114">More...</a><br /></td></tr>
+<tr class="separator:a9db94d84fb44b21fb669ade7c6a82114"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:ada6541d78cad2ecc225be8a26662c748"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1io.html#ada6541d78cad2ecc225be8a26662c748">process::io::is_async</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd)</td></tr>
+<tr class="memdesc:ada6541d78cad2ecc225be8a26662c748"><td class="mdescLeft"> </td><td class="mdescRight">Checks if <code><a class="el" href="namespaceprocess_1_1io.html#a9db94d84fb44b21fb669ade7c6a82114" title="Prepares a file descriptor to be ready for asynchronous IO. ">io::prepare_async</a></code> has been called on the file descriptor. <a href="namespaceprocess_1_1io.html#ada6541d78cad2ecc225be8a26662c748">More...</a><br /></td></tr>
+<tr class="separator:ada6541d78cad2ecc225be8a26662c748"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af71c45e0a85e21f6b39060f4e716cebf"><td class="memItemLeft" align="right" valign="top">Future< short > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">process::io::poll</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, short events)</td></tr>
<tr class="memdesc:af71c45e0a85e21f6b39060f4e716cebf"><td class="mdescLeft"> </td><td class="mdescRight">Returns the events (a subset of the events specified) that can be performed on the specified file descriptor without blocking. <a href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">More...</a><br /></td></tr>
<tr class="separator:af71c45e0a85e21f6b39060f4e716cebf"><td class="memSeparator" colspan="2"> </td></tr>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/09fd0301/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html
----------------------------------------------------------------------
diff --git a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html
index ce0ffd0..bd33e14 100644
--- a/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html
+++ b/content/api/latest/c++/3rdparty_2libprocess_2include_2process_2io_8hpp_source.html
@@ -52,18 +52,21 @@
<div class="title">io.hpp</div> </div>
</div><!--header-->
<div class="contents">
-<a href="3rdparty_2libprocess_2include_2process_2io_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</spa
n> <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 __PROCESS_IO_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __PROCESS_IO_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 <cstring></span> <span class="comment">// For size_t.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.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="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a cl
ass="code" href="namespaceprocess.html">process</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html"> 27</a></span> <span class="keyword">namespace </span>io {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879"> 34</a></span> <span class="keyword">const</span> <span class="keywordtype">short</span> <a class="code" href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879">READ</a> = 0x01;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc"> 39</a></span> <span class="keyword">const</span> <span class="keywordtype">short</span>
<a class="code" href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc">WRITE</a> = 0x02;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c"> 46</a></span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c">BUFFERED_READ_SIZE</a> = 16*4096;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// TODO(benh): Add a version which takes multiple file descriptors.</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <a class="code" href="classprocess_1_1Future.html">Future<short></a> <a class="code" href=
"namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">poll</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keywordtype">short</span> events);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">read</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keywordtype">void</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="l00070"></a><span class="lineno"> 70</span> </div><div cla
ss="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <a class="code" href="classprocess_1_1Future.html">Future<std::string></a> <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">read</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="namespaceprocess_1_1io.html#a49105dc036ad04225c92bd673da5ce39">write</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keyword">const</span> <span class="keywordtype">void
</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="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="namespaceprocess_1_1io.html#a49105dc036ad04225c92bd673da5ce39">write</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keyword">const</span> std::string& data);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="namespacepr
ocess_1_1io.html#ab9c4a52a88fcc9983438e391643424ca">redirect</a>(</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> from,</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="classOption.html">Option<int_fd></a> to,</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordtype">size_t</span> chunk = 4096,</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">const</span> std::vector<lambda::function<<span class="keywordtype">void</span>(<span class="keyword">const</span> std::string&)>>& hooks = {});</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> } <span class=
"comment">// namespace io {</span></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> } <span class="comment">// namespace process {</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="preprocessor">#endif // __PROCESS_IO_HPP__</span></div><div class="ttc" id="namespaceprocess_1_1io_html_aca1f059ca9f0d7360631c621debeb879"><div class="ttname"><a href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879">process::io::READ</a></div><div class="ttdeci">const short READ</div><div class="ttdoc">A possible event while polling. </div><div class="ttdef"><b>Definition:</b> io.hpp:34</div></div>
+<a href="3rdparty_2libprocess_2include_2process_2io_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</spa
n> <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 __PROCESS_IO_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __PROCESS_IO_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 <cstring></span> <span class="comment">// For size_t.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <<a class="code" href="future_8hpp.html">process/future.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="nothing_8hpp.html">stout/nothing.hpp</a>></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html">stout/windows.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">namespace </span><a cl
ass="code" href="namespaceprocess.html">process</a> {</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html"> 27</a></span> <span class="keyword">namespace </span>io {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef ENABLE_LIBWINIO</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879"> 35</a></span> <span class="keyword">const</span> <span class="keywordtype">short</span> <a class="code" href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879">READ</a> = 0x01;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="lin
e"><a name="l00040"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc"> 40</a></span> <span class="keyword">const</span> <span class="keywordtype">short</span> <a class="code" href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc">WRITE</a> = 0x02;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#endif // ENABLE_LIBWINIO</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c"> 48</a></span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c">BUFFERED_READ_SIZE</a> = 16*4096;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</spa
n> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="namespaceprocess_1_1io.html#a9db94d84fb44b21fb669ade7c6a82114">prepare_async</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <a class="code" href="classTry.html">Try<bool></a> <a class="code" href="namespaceprocess_1_1io.html#ada6541d78cad2ecc225be8a26662c748">is_async</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd);</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">#ifndef ENABLE_LIBWINIO</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">// TODO(benh): Add a version which takes multiple file descriptors.</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <a class="code" href="classprocess_1_1Future.html">Future<short></a> <a class="code" href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">poll</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keywordtype">short</span> events);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="preprocessor">#endif // ENABLE_LIBWINIO</span></div><div class="line"><a name="l00086"></a><
span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">read</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keywordtype">void</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="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <a class="code" href="classprocess_1_1Future.html">Future<std::string></a> <a class="code" href=
"namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">read</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <a class="code" href="classprocess_1_1Future.html">Future<size_t></a> <a class="code" href="namespaceprocess_1_1io.html#a49105dc036ad04225c92bd673da5ce39">write</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keyword">const</span> <span class="keywordtype">void</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="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><
a name="l00131"></a><span class="lineno"> 131</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="namespaceprocess_1_1io.html#a49105dc036ad04225c92bd673da5ce39">write</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, <span class="keyword">const</span> std::string& data);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <a class="code" href="classprocess_1_1Future.html">Future<Nothing></a> <a class="code" href="namespaceprocess_1_1io.html#ab9c4a52a88fcc9983438e391643424ca">redirect</a>(</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> from,</div><div c
lass="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="classOption.html">Option<int_fd></a> to,</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">size_t</span> chunk = 4096,</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keyword">const</span> std::vector<lambda::function<<span class="keywordtype">void</span>(<span class="keyword">const</span> std::string&)>>& hooks = {});</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> } <span class="comment">// namespace io {</span></div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> } <span class="comment">// namespace process {</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <
/div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor">#endif // __PROCESS_IO_HPP__</span></div><div class="ttc" id="namespaceprocess_1_1io_html_aca1f059ca9f0d7360631c621debeb879"><div class="ttname"><a href="namespaceprocess_1_1io.html#aca1f059ca9f0d7360631c621debeb879">process::io::READ</a></div><div class="ttdeci">const short READ</div><div class="ttdoc">A possible event while polling. </div><div class="ttdef"><b>Definition:</b> io.hpp:35</div></div>
<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< int_fd ></a></div></div>
<div class="ttc" id="namespaceos_1_1stat_html_a7a116891923bc8b5d8c50f78da8657be"><div class="ttname"><a href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">os::stat::size</a></div><div class="ttdeci">Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)</div><div class="ttdef"><b>Definition:</b> stat.hpp:121</div></div>
-<div class="ttc" id="namespaceprocess_1_1io_html_a34d62916736c1dfebd1585cf51f19d0c"><div class="ttname"><a href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c">process::io::BUFFERED_READ_SIZE</a></div><div class="ttdeci">const size_t BUFFERED_READ_SIZE</div><div class="ttdoc">Buffered read chunk size. </div><div class="ttdef"><b>Definition:</b> io.hpp:46</div></div>
+<div class="ttc" id="namespaceprocess_1_1io_html_a34d62916736c1dfebd1585cf51f19d0c"><div class="ttname"><a href="namespaceprocess_1_1io.html#a34d62916736c1dfebd1585cf51f19d0c">process::io::BUFFERED_READ_SIZE</a></div><div class="ttdeci">const size_t BUFFERED_READ_SIZE</div><div class="ttdoc">Buffered read chunk size. </div><div class="ttdef"><b>Definition:</b> io.hpp:48</div></div>
+<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> check.hpp:33</div></div>
+<div class="ttc" id="namespaceprocess_1_1io_html_a9db94d84fb44b21fb669ade7c6a82114"><div class="ttname"><a href="namespaceprocess_1_1io.html#a9db94d84fb44b21fb669ade7c6a82114">process::io::prepare_async</a></div><div class="ttdeci">Try< Nothing > prepare_async(int_fd fd)</div><div class="ttdoc">Prepares a file descriptor to be ready for asynchronous IO. </div></div>
<div class="ttc" id="namespaceprocess_1_1io_html_af71c45e0a85e21f6b39060f4e716cebf"><div class="ttname"><a href="namespaceprocess_1_1io.html#af71c45e0a85e21f6b39060f4e716cebf">process::io::poll</a></div><div class="ttdeci">Future< short > poll(int_fd fd, short events)</div><div class="ttdoc">Returns the events (a subset of the events specified) that can be performed on the specified file des...</div></div>
<div class="ttc" id="namespaceprocess_1_1io_html_ab9c4a52a88fcc9983438e391643424ca"><div class="ttname"><a href="namespaceprocess_1_1io.html#ab9c4a52a88fcc9983438e391643424ca">process::io::redirect</a></div><div class="ttdeci">Future< Nothing > redirect(int_fd from, Option< int_fd > to, size_t chunk=4096, const std::vector< lambda::function< void(const std::string &)>> &hooks={})</div><div class="ttdoc">Redirect output from the &#39;from&#39; file descriptor to the &#39;to&#39; file descriptor (or /dev/null if &#39;to&#39; is ...</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="namespaceprocess_1_1io_html_a49105dc036ad04225c92bd673da5ce39"><div class="ttname"><a href="namespaceprocess_1_1io.html#a49105dc036ad04225c92bd673da5ce39">process::io::write</a></div><div class="ttdeci">Future< size_t > write(int_fd fd, const void *data, size_t size)</div><div class="ttdoc">Performs a single non-blocking write by polling on the specified file descriptor until data can be be...</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="namespaceprocess_1_1io_html_ab005316d71b45c5b05de0a6234c6f8fc"><div class="ttname"><a href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc">process::io::WRITE</a></div><div class="ttdeci">const short WRITE</div><div class="ttdoc">A possible event while polling. </div><div class="ttdef"><b>Definition:</b> io.hpp:39</div></div>
+<div class="ttc" id="namespaceprocess_1_1io_html_ab005316d71b45c5b05de0a6234c6f8fc"><div class="ttname"><a href="namespaceprocess_1_1io.html#ab005316d71b45c5b05de0a6234c6f8fc">process::io::WRITE</a></div><div class="ttdeci">const short WRITE</div><div class="ttdoc">A possible event while polling. </div><div class="ttdef"><b>Definition:</b> io.hpp:40</div></div>
<div class="ttc" id="future_8hpp_html"><div class="ttname"><a href="future_8hpp.html">future.hpp</a></div></div>
<div class="ttc" id="namespaceprocess_html"><div class="ttname"><a href="namespaceprocess.html">process</a></div><div class="ttdef"><b>Definition:</b> executor.hpp:48</div></div>
+<div class="ttc" id="namespaceprocess_1_1io_html_ada6541d78cad2ecc225be8a26662c748"><div class="ttname"><a href="namespaceprocess_1_1io.html#ada6541d78cad2ecc225be8a26662c748">process::io::is_async</a></div><div class="ttdeci">Try< bool > is_async(int_fd fd)</div><div class="ttdoc">Checks if io::prepare_async has been called on the file descriptor. </div></div>
<div class="ttc" id="namespaceprocess_1_1io_html_a4c34d22e475e29f12ac739921dcc580f"><div class="ttname"><a href="namespaceprocess_1_1io.html#a4c34d22e475e29f12ac739921dcc580f">process::io::read</a></div><div class="ttdeci">Future< size_t > read(int_fd fd, void *data, size_t size)</div><div class="ttdoc">Performs a single non-blocking read by polling on the specified file descriptor until any data can be...</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 class="ttc" id="classprocess_1_1Future_html"><div class="ttname"><a href="classprocess_1_1Future.html">process::Future</a></div><div class="ttdef"><b>Definition:</b> future.hpp:58</div></div>