http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2constants_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2constants_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2constants_8hpp_source.html new file mode 100644 index 0000000..5f9873b --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2constants_8hpp_source.html @@ -0,0 +1,104 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/os/constants.hpp Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_27832e6c74c2ee170d1dd05a196f816c.html">os</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">constants.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2stout_2include_2stout_2os_2constants_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_CONSTANTS_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __STOUT_OS_CONSTANTS_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="keyword">namespace </span>os {</div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> +<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="namespaceos.html#ae86289c0463a69de1a4aa97ba9203e57"> 20</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#ae86289c0463a69de1a4aa97ba9203e57">WINDOWS_PATH_SEPARATOR</a> = <span class="charliteral">'\\'</span>;</div> +<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="namespaceos.html#a647be66325aca2685aa58780bbdb8e9a"> 21</a></span> constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#a647be66325aca2685aa58780bbdb8e9a">POSIX_PATH_SEPARATOR</a> = <span class="charliteral">'/'</span>;</div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceos.html#a493d7d8775f0ed778ad3b52ec19bbaab"> 24</a></span> <span class="preprocessor"></span>constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#a493d7d8775f0ed778ad3b52ec19bbaab">PATH_SEPARATOR</a> = <a class="code" href="namespaceos.html#a647be66325aca2685aa58780bbdb8e9a">POSIX_PATH_SEPARATOR</a>;</div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor"></span>constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#a493d7d8775f0ed778ad3b52ec19bbaab">PATH_SEPARATOR</a> = <a class="code" href="namespaceos.html#ae86289c0463a69de1a4aa97ba9203e57">WINDOWS_PATH_SEPARATOR</a>;</div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef __WINDOWS__</span></div> +<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="namespaceos.html#a8d90278daa51c4fe9fcb9e54757187b5"> 30</a></span> <span class="preprocessor"></span>constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#a8d90278daa51c4fe9fcb9e54757187b5">DEV_NULL</a>[] = <span class="stringliteral">"/dev/null"</span>;</div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor"></span>constexpr <span class="keywordtype">char</span> <a class="code" href="namespaceos.html#a8d90278daa51c4fe9fcb9e54757187b5">DEV_NULL</a>[] = <span class="stringliteral">"NUL"</span>;</div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> } <span class="comment">// namespace os {</span></div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif // __STOUT_OS_CONSTANTS_HPP__</span></div> +<div class="ttc" id="namespaceos_html_ae86289c0463a69de1a4aa97ba9203e57"><div class="ttname"><a href="namespaceos.html#ae86289c0463a69de1a4aa97ba9203e57">os::WINDOWS_PATH_SEPARATOR</a></div><div class="ttdeci">constexpr char WINDOWS_PATH_SEPARATOR</div><div class="ttdef"><b>Definition:</b> constants.hpp:20</div></div> +<div class="ttc" id="namespaceos_html_a647be66325aca2685aa58780bbdb8e9a"><div class="ttname"><a href="namespaceos.html#a647be66325aca2685aa58780bbdb8e9a">os::POSIX_PATH_SEPARATOR</a></div><div class="ttdeci">constexpr char POSIX_PATH_SEPARATOR</div><div class="ttdef"><b>Definition:</b> constants.hpp:21</div></div> +<div class="ttc" id="namespaceos_html_a8d90278daa51c4fe9fcb9e54757187b5"><div class="ttname"><a href="namespaceos.html#a8d90278daa51c4fe9fcb9e54757187b5">os::DEV_NULL</a></div><div class="ttdeci">constexpr char DEV_NULL[]</div><div class="ttdef"><b>Definition:</b> constants.hpp:30</div></div> +<div class="ttc" id="namespaceos_html_a493d7d8775f0ed778ad3b52ec19bbaab"><div class="ttname"><a href="namespaceos.html#a493d7d8775f0ed778ad3b52ec19bbaab">os::PATH_SEPARATOR</a></div><div class="ttdeci">constexpr char PATH_SEPARATOR</div><div class="ttdef"><b>Definition:</b> constants.hpp:24</div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp.html new file mode 100644 index 0000000..a97adc0 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp.html @@ -0,0 +1,66 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/os/environment.hpp File Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_27832e6c74c2ee170d1dd05a196f816c.html">os</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">environment.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <<a class="el" href="3rdparty_2stout_2include_2stout_2os_2posix_2environment_8hpp_source.html">stout/os/posix/environment.hpp</a>></code><br/> +</div> +<p><a href="3rdparty_2stout_2include_2stout_2os_2environment_8hpp_source.html">Go to the source code of this file.</a></p> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp_source.html new file mode 100644 index 0000000..042c5b0 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2environment_8hpp_source.html @@ -0,0 +1,91 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/os/environment.hpp Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_27832e6c74c2ee170d1dd05a196f816c.html">os</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">environment.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2stout_2include_2stout_2os_2environment_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_ENVIRONMENT_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __STOUT_OS_ENVIRONMENT_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></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 specific 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><span class="lineno"> 20</span> <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2os_2windows_2environment_8hpp.html">stout/os/windows/environment.hpp</a>></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#else</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="3rdparty_2stout_2include_2stout_2os_2posix_2environment_8hpp.html">stout/os/posix/environment.hpp</a>></span></div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#endif // __WINDOWS__</span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor"></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="preprocessor">#endif // __STOUT_OS_ENVIRONMENT_HPP__</span></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2os_2windows_2environment_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2os_2windows_2environment_8hpp.html">environment.hpp</a></div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2os_2posix_2environment_8hpp_html"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2os_2posix_2environment_8hpp.html">environment.hpp</a></div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html new file mode 100644 index 0000000..2ae4598 --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp.html @@ -0,0 +1,105 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/os/linux.hpp File Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_27832e6c74c2ee170d1dd05a196f816c.html">os</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Classes</a> | +<a href="#namespaces">Namespaces</a> | +<a href="#func-members">Functions</a> </div> + <div class="headertitle"> +<div class="title">linux.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <sys/types.h></code><br/> +<code>#include <list></code><br/> +<code>#include <queue></code><br/> +<code>#include <set></code><br/> +<code>#include <string></code><br/> +<code>#include <<a class="el" href="error_8hpp_source.html">stout/error.hpp</a>></code><br/> +<code>#include <<a class="el" href="foreach_8hpp_source.html">stout/foreach.hpp</a>></code><br/> +<code>#include <<a class="el" href="lambda_8hpp_source.html">stout/lambda.hpp</a>></code><br/> +<code>#include <<a class="el" href="option_8hpp_source.html">stout/option.hpp</a>></code><br/> +<code>#include <<a class="el" href="proc_8hpp_source.html">stout/proc.hpp</a>></code><br/> +<code>#include <<a class="el" href="result_8hpp_source.html">stout/result.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="pagesize_8hpp_source.html">stout/os/pagesize.hpp</a>></code><br/> +<code>#include <<a class="el" href="stout_2include_2stout_2os_2process_8hpp_source.html">stout/os/process.hpp</a>></code><br/> +</div> +<p><a href="3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> +Classes</h2></td></tr> +<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classos_1_1Stack.html">os::Stack</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> +Namespaces</h2></td></tr> +<tr class="memitem:namespaceos"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html">os</a></td></tr> +<tr class="separator:"><td class="memSeparator" colspan="2"> </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:a06b5d831710f3993abe32fbb3ff69f12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">os::clone</a> (const lambda::function< int()> &func, int flags, <a class="el" href="classOption.html">Option</a>< Stack > stack=<a class="el" href="structNone.html">None</a>())</td></tr> +<tr class="separator:a06b5d831710f3993abe32fbb3ff69f12"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ae19e4161a51b86a1f330f3bf1dc75389"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classResult.html">Result</a>< Process > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a> (<a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid)</td></tr> +<tr class="separator:ae19e4161a51b86a1f330f3bf1dc75389"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a42af1cab63434cedf2b698cd6f49f073"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< std::set< <a class="el" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#a42af1cab63434cedf2b698cd6f49f073">os::pids</a> ()</td></tr> +<tr class="separator:a42af1cab63434cedf2b698cd6f49f073"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a23a7b8f4b4c145ad212381e89d4b6dc4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< Memory > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a> ()</td></tr> +<tr class="separator:a23a7b8f4b4c145ad212381e89d4b6dc4"><td class="memSeparator" colspan="2"> </td></tr> +</table> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/a3206036/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html new file mode 100644 index 0000000..4502c8a --- /dev/null +++ b/content/api/latest/c++/3rdparty_2stout_2include_2stout_2os_2linux_8hpp_source.html @@ -0,0 +1,345 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.5"/> +<title>Apache Mesos: 3rdparty/stout/include/stout/os/linux.hpp Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">Apache Mesos + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.5 --> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + <li><a href="examples.html"><span>Examples</span></a></li> + </ul> + </div> + <div id="navrow2" class="tabs2"> + <ul class="tablist"> + <li><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_aa547de1d719d14adccfca1dfb1735b3.html">stout</a></li><li class="navelem"><a class="el" href="dir_1a1b923d951dd999d43396870333fc33.html">include</a></li><li class="navelem"><a class="el" href="dir_dbd52553d038069c1ed93e3477ea333d.html">stout</a></li><li class="navelem"><a class="el" href="dir_27832e6c74c2ee170d1dd05a196f816c.html">os</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="headertitle"> +<div class="title">linux.hpp</div> </div> +</div><!--header--> +<div class="contents"> +<a href="3rdparty_2stout_2include_2stout_2os_2linux_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_LINUX_HPP__</span></div> +<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor"></span><span class="preprocessor">#define __STOUT_OS_LINUX_HPP__</span></div> +<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// This file contains Linux-only OS utilities.</span></div> +<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#ifndef __linux__</span></div> +<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span><span class="preprocessor">#error "stout/os/linux.hpp is only available on Linux systems."</span></div> +<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"></span><span class="preprocessor">#endif // __linux__</span></div> +<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <sys/types.h></span> <span class="comment">// For pid_t.</span></div> +<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> +<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <list></span></div> +<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <queue></span></div> +<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <set></span></div> +<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <string></span></div> +<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> +<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div> +<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <<a class="code" href="foreach_8hpp.html">stout/foreach.hpp</a>></span></div> +<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="code" href="lambda_8hpp.html">stout/lambda.hpp</a>></span></div> +<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="option_8hpp.html">stout/option.hpp</a>></span></div> +<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="proc_8hpp.html">stout/proc.hpp</a>></span></div> +<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <<a class="code" href="result_8hpp.html">stout/result.hpp</a>></span></div> +<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div> +<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> +<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include <<a class="code" href="pagesize_8hpp.html">stout/os/pagesize.hpp</a>></span></div> +<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include <<a class="code" href="stout_2include_2stout_2os_2process_8hpp.html">stout/os/process.hpp</a>></span></div> +<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> +<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">namespace </span>os {</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">// Helper for clone() which expects an int(void*).</span></div> +<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="namespaceprocess_1_1internal.html#a902e2646d88c41ce674a3009cafe0aad">childMain</a>(<span class="keywordtype">void</span>* _func)</div> +<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div> +<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> lambda::function<int()>* func =</div> +<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">static_cast<</span><span class="keyword">const </span>lambda::function<int()>*<span class="keyword">></span> (_func);</div> +<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> (*func)();</div> +<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div> +<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div> +<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div> +<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="comment">// Helper that captures information about a stack to be used when</span></div> +<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="comment">// invoking clone.</span></div> +<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classos_1_1Stack.html"> 54</a></span> <span class="keyword">class </span><a class="code" href="classos_1_1Stack.html">Stack</a></div> +<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> {</div> +<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">public</span>:</div> +<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// 8 MiB is the default for "ulimit -s" on OSX and Linux.</span></div> +<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classos_1_1Stack.html#af5c1f11af9592d666dd1705d5393d4d0"> 58</a></span>  <span class="keyword">static</span> constexpr <span class="keywordtype">size_t</span> <a class="code" href="classos_1_1Stack.html#af5c1f11af9592d666dd1705d5393d4d0">DEFAULT_SIZE</a> = 8 * 1024 * 1024;</div> +<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div> +<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// Allocate a stack.</span></div> +<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classos_1_1Stack.html#a248fb0d3d52e903c887890d0155f70b7"> 61</a></span>  <span class="keyword">static</span> <a class="code" href="classTry.html">Try<Stack></a> <a class="code" href="classos_1_1Stack.html#a248fb0d3d52e903c887890d0155f70b7">create</a>(<span class="keywordtype">size_t</span> size)</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>  <a class="code" href="classos_1_1Stack.html">Stack</a> stack(size);</div> +<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> +<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="comment">// Allocate and align the memory to 16 bytes.</span></div> +<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">// x86, x64, and AArch64/ARM64 all expect a 16 byte aligned stack.</span></div> +<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// ARM64/aarch64 enforces the alignment where x86/x64 does not.</span></div> +<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// Without this alignment Mesos will crash with a SIGBUS on ARM64/aarch64.</span></div> +<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">int</span> err = ::posix_memalign(</div> +<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  reinterpret_cast<void**>(&stack.address),</div> +<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a>(),</div> +<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  stack.size);</div> +<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">if</span> (err) {</div> +<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>(<span class="stringliteral">"Failed to allocate and align stack"</span>);</div> +<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div> +<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div> +<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> stack;</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="comment">// Explicitly free the stack.</span></div> +<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// The destructor won't free the allocated stack.</span></div> +<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="classos_1_1Stack.html#aa5b0858e49e36141b299ef45e6d1b265"> 82</a></span>  <span class="keywordtype">void</span> <a class="code" href="classos_1_1Stack.html#aa5b0858e49e36141b299ef45e6d1b265">deallocate</a>()</div> +<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  {</div> +<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  ::free(address);</div> +<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  address = <span class="keyword">nullptr</span>;</div> +<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  size = 0;</div> +<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  }</div> +<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div> +<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="comment">// Stack grows down, return the first usable address.</span></div> +<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classos_1_1Stack.html#ab75d73670daab10124d04b9e8e4e72b0"> 90</a></span>  <span class="keywordtype">char</span>* <a class="code" href="classos_1_1Stack.html#ab75d73670daab10124d04b9e8e4e72b0">start</a>()</div> +<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div> +<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> address + size;</div> +<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div> +<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">private</span>:</div> +<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">explicit</span> <a class="code" href="classos_1_1Stack.html">Stack</a>(<span class="keywordtype">size_t</span> size_) : size(size_) {}</div> +<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">size_t</span> size;</div> +<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">char</span>* address;</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="l00102"></a><span class="lineno"> 102</span> </div> +<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12"> 103</a></span> <span class="keyword">inline</span> <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> <a class="code" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">clone</a>(</div> +<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">const</span> lambda::function<<span class="keywordtype">int</span>()>& func,</div> +<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">int</span> <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">flags</a>,</div> +<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classOption.html">Option<Stack></a> stack = <a class="code" href="structNone.html">None</a>())</div> +<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> {</div> +<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="comment">// Stack for the child.</span></div> +<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">//</span></div> +<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="comment">// NOTE: We need to allocate the stack dynamically. This is because</span></div> +<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="comment">// glibc's 'clone' will modify the stack passed to it, therefore the</span></div> +<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// stack must NOT be shared as multiple 'clone's can be invoked</span></div> +<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">// simultaneously.</span></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>  <span class="keywordtype">bool</span> <a class="code" href="namespacecgroups.html#a12d210f286e5fcf7993c0c90b9459606">cleanup</a> = <span class="keyword">false</span>;</div> +<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (stack.isNone()) {</div> +<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classTry.html">Try<Stack></a> _stack = <a class="code" href="classos_1_1Stack.html#a248fb0d3d52e903c887890d0155f70b7">Stack::create</a>(<a class="code" href="classos_1_1Stack.html#af5c1f11af9592d666dd1705d5393d4d0">Stack::DEFAULT_SIZE</a>);</div> +<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span> (_stack.<a class="code" href="classTry.html#a0b98f95163b8a38daafd1651b043a276">isError</a>()) {</div> +<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> -1;</div> +<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div> +<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  stack = _stack.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>();</div> +<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  cleanup = <span class="keyword">true</span>;</div> +<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div> +<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div> +<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid = <a class="code" href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">::clone</a>(childMain, stack->start(), <a class="code" href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">flags</a>, (<span class="keywordtype">void</span>*) &func);</div> +<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div> +<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// Given we allocated the stack ourselves, there are two</span></div> +<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="comment">// circumstances where we need to delete the allocated stack to</span></div> +<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="comment">// avoid a memory leak:</span></div> +<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="comment">//</span></div> +<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="comment">// (1) Failed to clone.</span></div> +<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="comment">//</span></div> +<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="comment">// (2) CLONE_VM is not set implying ::clone will create a process</span></div> +<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="comment">// which runs in its own copy of the memory space of the</span></div> +<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="comment">// calling process. If CLONE_VM is set ::clone will create a</span></div> +<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// thread which runs in the same memory space with the calling</span></div> +<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="comment">// process, in which case we don't want to call delete!</span></div> +<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (cleanup && (pid < 0 || !(flags & CLONE_VM))) {</div> +<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  stack->deallocate();</div> +<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  }</div> +<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div> +<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">return</span> pid;</div> +<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> }</div> +<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div> +<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div> +<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">inline</span> <a class="code" href="classResult.html">Result<Process></a> <a class="code" href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">process</a>(<a class="code" href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a> pid)</div> +<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> {</div> +<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">// Page size, used for memory accounting.</span></div> +<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">size_t</span> pageSize = <a class="code" href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a>();</div> +<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div> +<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="comment">// Number of clock ticks per second, used for cpu accounting.</span></div> +<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">long</span> ticks = sysconf(_SC_CLK_TCK);</div> +<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordflow">if</span> (ticks <= 0) {</div> +<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Failed to get sysconf(_SC_CLK_TCK)"</span>);</div> +<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  }</div> +<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div> +<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">const</span> <a class="code" href="classResult.html">Result<proc::ProcessStatus></a> <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">status</a> = <a class="code" href="namespaceproc.html#a34396c6140a28f583dc13fee3c3c35d4">proc::status</a>(pid);</div> +<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div> +<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordflow">if</span> (status.<a class="code" href="classResult.html#aeca16ad17d299ad885c9b46c83b12a3d">isError</a>()) {</div> +<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(status.<a class="code" href="classResult.html#a521adf96f5c27d26d6b1d580aae8aaee">error</a>());</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> </div> +<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordflow">if</span> (status.<a class="code" href="classResult.html#ac2cdc0db9f9d29a5bb2f1cf19c29da49">isNone</a>()) {</div> +<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> <a class="code" href="structNone.html">None</a>();</div> +<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  }</div> +<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div> +<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// There are known bugs with invalid utime / stime values coming</span></div> +<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// from /proc/<pid>/stat on some Linux systems.</span></div> +<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="comment">// See the following thread for details:</span></div> +<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// http://mail-archives.apache.org/mod_mbox/incubator-mesos-dev/</span></div> +<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">// 201307.mbox/%3CCA+2n2er-Nemh0CsKLbHRkaHd=YCrNt17NLUPM2=TtEfsKOw4</span></div> +<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// r...@mail.gmail.com%3E</span></div> +<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="comment">// These are similar reports:</span></div> +<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="comment">// http://lkml.indiana.edu/hypermail/linux/kernel/1207.1/01388.html</span></div> +<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="comment">// https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1023214</span></div> +<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="classTry.html">Try<Duration></a> <a class="code" href="namespaceos.html#a818327458964860a86fc8964e4795b4d">utime</a> = <a class="code" href="classDuration.html#a70f3ccdaba8dd6d0a1c2eddde1d1327a">Duration::create</a>(status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#a9095310f297abb51a4391a9f7c5f1b2d">utime</a> / (double) ticks);</div> +<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="classTry.html">Try<Duration></a> stime = <a class="code" href="classDuration.html#a70f3ccdaba8dd6d0a1c2eddde1d1327a">Duration::create</a>(status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#ab4802140d5c18cebaf83e738b5e8507d">stime</a> / (double) ticks);</div> +<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div> +<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="comment">// The command line from 'status.get().comm' is only "arg0" from</span></div> +<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// "argv" (i.e., the canonical executable name). To get the entire</span></div> +<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// command line we grab '/proc/[pid]/cmdline'.</span></div> +<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="classResult.html">Result<std::string></a> <a class="code" href="namespaceproc.html#a4ba22836c31ab565d5670129aac0a34d">cmdline</a> = <a class="code" href="namespaceproc.html#a4ba22836c31ab565d5670129aac0a34d">proc::cmdline</a>(pid);</div> +<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div> +<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keywordflow">return</span> Process(status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#afd1efc7ade695e958b4f523cb4c65bbd">pid</a>,</div> +<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#ad0a83e9d469cab01eb3ceb70ab7f108d">ppid</a>,</div> +<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#a3ae685cf9da43d9751f12dbbd7384c18">pgrp</a>,</div> +<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#a236d914363d3ca4e748a6d539dcf28d5">session</a>,</div> +<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="classBytes.html">Bytes</a>(status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#a42c4886162f88b8efd2422df00083955">rss</a> * pageSize),</div> +<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  utime.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>() ? utime.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>() : <a class="code" href="classOption.html#aca73609603df4687dba70c2a5df47ef8">Option<Duration>::none</a>(),</div> +<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  stime.<a class="code" href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">isSome</a>() ? stime.<a class="code" href="classTry.html#a7be0768038e0628632492edf6cc1515a">get</a>() : <a class="code" href="classOption.html#aca73609603df4687dba70c2a5df47ef8">Option<Duration>::none</a>(),</div> +<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  cmdline.<a class="code" href="classResult.html#a85eaa52037223d71092e65701c166562">isSome</a>() ? cmdline.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>() : status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#aa33c57506955b0c77587a6152840fb3a">comm</a>,</div> +<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  status.<a class="code" href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">get</a>().<a class="code" href="structproc_1_1ProcessStatus.html#ac8b4bc0e80bf560b45e2bba608b9a764">state</a> == <span class="charliteral">'Z'</span>);</div> +<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> }</div> +<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> +<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div> +<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<std::set<pid_t></a>> <a class="code" href="namespaceos.html#a42af1cab63434cedf2b698cd6f49f073">pids</a>()</div> +<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> {</div> +<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceproc.html#a810141e1502dd8b9a7a410da6caf7ed7">proc::pids</a>();</div> +<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> }</div> +<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div> +<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div> +<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment">// Returns the total size of main and free memory.</span></div> +<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<Memory></a> <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">memory</a>()</div> +<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> {</div> +<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  Memory <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">memory</a>;</div> +<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div> +<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <span class="keyword">struct </span>sysinfo info;</div> +<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  <span class="keywordflow">if</span> (sysinfo(&info) != 0) {</div> +<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div> +<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  }</div> +<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div> +<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="preprocessor"># if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 23)</span></div> +<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor"></span> memory.total = <a class="code" href="classBytes.html">Bytes</a>(info.totalram * info.mem_unit);</div> +<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  memory.free = <a class="code" href="classBytes.html">Bytes</a>(info.freeram * info.mem_unit);</div> +<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  memory.totalSwap = <a class="code" href="classBytes.html">Bytes</a>(info.totalswap * info.mem_unit);</div> +<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  memory.freeSwap = <a class="code" href="classBytes.html">Bytes</a>(info.freeswap * info.mem_unit);</div> +<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor"># else</span></div> +<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="preprocessor"></span> memory.total = <a class="code" href="classBytes.html">Bytes</a>(info.totalram);</div> +<div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  memory.free = <a class="code" href="classBytes.html">Bytes</a>(info.freeram);</div> +<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  memory.totalSwap = <a class="code" href="classBytes.html">Bytes</a>(info.totalswap);</div> +<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  memory.freeSwap = <a class="code" href="classBytes.html">Bytes</a>(info.freeswap);</div> +<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor"># endif</span></div> +<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="preprocessor"></span></div> +<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">return</span> <a class="code" href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">memory</a>;</div> +<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> }</div> +<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div> +<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> } <span class="comment">// namespace os {</span></div> +<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div> +<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="preprocessor">#endif // __STOUT_OS_LINUX_HPP__</span></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_a3ae685cf9da43d9751f12dbbd7384c18"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#a3ae685cf9da43d9751f12dbbd7384c18">proc::ProcessStatus::pgrp</a></div><div class="ttdeci">const pid_t pgrp</div><div class="ttdef"><b>Definition:</b> proc.hpp:130</div></div> +<div class="ttc" id="classResult_html_ac2cdc0db9f9d29a5bb2f1cf19c29da49"><div class="ttname"><a href="classResult.html#ac2cdc0db9f9d29a5bb2f1cf19c29da49">Result::isNone</a></div><div class="ttdeci">bool isNone() const </div><div class="ttdef"><b>Definition:</b> result.hpp:109</div></div> +<div class="ttc" id="classError_html"><div class="ttname"><a href="classError.html">Error</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:35</div></div> +<div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option</a></div><div class="ttdef"><b>Definition:</b> option.hpp:24</div></div> +<div class="ttc" id="classos_1_1Stack_html_aa5b0858e49e36141b299ef45e6d1b265"><div class="ttname"><a href="classos_1_1Stack.html#aa5b0858e49e36141b299ef45e6d1b265">os::Stack::deallocate</a></div><div class="ttdeci">void deallocate()</div><div class="ttdef"><b>Definition:</b> linux.hpp:82</div></div> +<div class="ttc" id="classTry_html"><div class="ttname"><a href="classTry.html">Try</a></div><div class="ttdef"><b>Definition:</b> try.hpp:34</div></div> +<div class="ttc" id="classResult_html_a521adf96f5c27d26d6b1d580aae8aaee"><div class="ttname"><a href="classResult.html#a521adf96f5c27d26d6b1d580aae8aaee">Result::error</a></div><div class="ttdeci">static Result< T > error(const std::string &message)</div><div class="ttdef"><b>Definition:</b> result.hpp:53</div></div> +<div class="ttc" id="namespaceos_html_af0898f40a19c3804347e30b9efa0984a"><div class="ttname"><a href="namespaceos.html#af0898f40a19c3804347e30b9efa0984a">os::pagesize</a></div><div class="ttdeci">size_t pagesize()</div><div class="ttdef"><b>Definition:</b> pagesize.hpp:24</div></div> +<div class="ttc" id="namespacecgroups_html_a12d210f286e5fcf7993c0c90b9459606"><div class="ttname"><a href="namespacecgroups.html#a12d210f286e5fcf7993c0c90b9459606">cgroups::cleanup</a></div><div class="ttdeci">process::Future< bool > cleanup(const std::string &hierarchy)</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="structproc_1_1ProcessStatus_html_ad0a83e9d469cab01eb3ceb70ab7f108d"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#ad0a83e9d469cab01eb3ceb70ab7f108d">proc::ProcessStatus::ppid</a></div><div class="ttdeci">const pid_t ppid</div><div class="ttdef"><b>Definition:</b> proc.hpp:129</div></div> +<div class="ttc" id="classDuration_html_a70f3ccdaba8dd6d0a1c2eddde1d1327a"><div class="ttname"><a href="classDuration.html#a70f3ccdaba8dd6d0a1c2eddde1d1327a">Duration::create</a></div><div class="ttdeci">static Try< Duration > create(double seconds)</div><div class="ttdef"><b>Definition:</b> duration.hpp:399</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:44</div></div> +<div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div> +<div class="ttc" id="classResult_html"><div class="ttname"><a href="classResult.html">Result</a></div><div class="ttdef"><b>Definition:</b> result.hpp:40</div></div> +<div class="ttc" id="lambda_8hpp_html"><div class="ttname"><a href="lambda_8hpp.html">lambda.hpp</a></div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_a42c4886162f88b8efd2422df00083955"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#a42c4886162f88b8efd2422df00083955">proc::ProcessStatus::rss</a></div><div class="ttdeci">const long rss</div><div class="ttdef"><b>Definition:</b> proc.hpp:149</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:171</div></div> +<div class="ttc" id="namespaceos_html_a06b5d831710f3993abe32fbb3ff69f12"><div class="ttname"><a href="namespaceos.html#a06b5d831710f3993abe32fbb3ff69f12">os::clone</a></div><div class="ttdeci">pid_t clone(const lambda::function< int()> &func, int flags, Option< Stack > stack=None())</div><div class="ttdef"><b>Definition:</b> linux.hpp:103</div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_a9095310f297abb51a4391a9f7c5f1b2d"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#a9095310f297abb51a4391a9f7c5f1b2d">proc::ProcessStatus::utime</a></div><div class="ttdeci">const unsigned long utime</div><div class="ttdef"><b>Definition:</b> proc.hpp:139</div></div> +<div class="ttc" id="proc_8hpp_html"><div class="ttname"><a href="proc_8hpp.html">proc.hpp</a></div></div> +<div class="ttc" id="namespaceos_html_a818327458964860a86fc8964e4795b4d"><div class="ttname"><a href="namespaceos.html#a818327458964860a86fc8964e4795b4d">os::utime</a></div><div class="ttdeci">Try< Nothing > utime(const std::string &path)</div><div class="ttdef"><b>Definition:</b> utime.hpp:32</div></div> +<div class="ttc" id="namespaceproc_html_a810141e1502dd8b9a7a410da6caf7ed7"><div class="ttname"><a href="namespaceproc.html#a810141e1502dd8b9a7a410da6caf7ed7">proc::pids</a></div><div class="ttdeci">Try< std::set< pid_t > > pids()</div><div class="ttdef"><b>Definition:</b> proc.hpp:294</div></div> +<div class="ttc" id="classOption_html_aca73609603df4687dba70c2a5df47ef8"><div class="ttname"><a href="classOption.html#aca73609603df4687dba70c2a5df47ef8">Option::none</a></div><div class="ttdeci">static Option< T > none()</div><div class="ttdef"><b>Definition:</b> option.hpp:27</div></div> +<div class="ttc" id="classTry_html_a6543d7d5db4f298bcd673bf3cd509acc"><div class="ttname"><a href="classTry.html#a6543d7d5db4f298bcd673bf3cd509acc">Try::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> try.hpp:70</div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_a236d914363d3ca4e748a6d539dcf28d5"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#a236d914363d3ca4e748a6d539dcf28d5">proc::ProcessStatus::session</a></div><div class="ttdeci">const pid_t session</div><div class="ttdef"><b>Definition:</b> proc.hpp:131</div></div> +<div class="ttc" id="classResult_html_aedf79f3b14dcda5791b84a64ada4d412"><div class="ttname"><a href="classResult.html#aedf79f3b14dcda5791b84a64ada4d412">Result::get</a></div><div class="ttdeci">const T & get() const </div><div class="ttdef"><b>Definition:</b> result.hpp:112</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="stout_2include_2stout_2os_2process_8hpp_html"><div class="ttname"><a href="stout_2include_2stout_2os_2process_8hpp.html">process.hpp</a></div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_ac8b4bc0e80bf560b45e2bba608b9a764"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#ac8b4bc0e80bf560b45e2bba608b9a764">proc::ProcessStatus::state</a></div><div class="ttdeci">const char state</div><div class="ttdef"><b>Definition:</b> proc.hpp:128</div></div> +<div class="ttc" id="pagesize_8hpp_html"><div class="ttname"><a href="pagesize_8hpp.html">pagesize.hpp</a></div></div> +<div class="ttc" id="classos_1_1Stack_html_af5c1f11af9592d666dd1705d5393d4d0"><div class="ttname"><a href="classos_1_1Stack.html#af5c1f11af9592d666dd1705d5393d4d0">os::Stack::DEFAULT_SIZE</a></div><div class="ttdeci">static constexpr size_t DEFAULT_SIZE</div><div class="ttdef"><b>Definition:</b> linux.hpp:58</div></div> +<div class="ttc" id="foreach_8hpp_html"><div class="ttname"><a href="foreach_8hpp.html">foreach.hpp</a></div></div> +<div class="ttc" id="namespaceproc_html_a4ba22836c31ab565d5670129aac0a34d"><div class="ttname"><a href="namespaceproc.html#a4ba22836c31ab565d5670129aac0a34d">proc::cmdline</a></div><div class="ttdeci">Result< std::string > cmdline(const Option< pid_t > &pid=None())</div><div class="ttdef"><b>Definition:</b> proc.hpp:256</div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_afd1efc7ade695e958b4f523cb4c65bbd"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#afd1efc7ade695e958b4f523cb4c65bbd">proc::ProcessStatus::pid</a></div><div class="ttdeci">const pid_t pid</div><div class="ttdef"><b>Definition:</b> proc.hpp:126</div></div> +<div class="ttc" id="namespaceos_html_ae19e4161a51b86a1f330f3bf1dc75389"><div class="ttname"><a href="namespaceos.html#ae19e4161a51b86a1f330f3bf1dc75389">os::process</a></div><div class="ttdeci">Result< Process > process(pid_t pid)</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:30</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="structNone_html"><div class="ttname"><a href="structNone.html">None</a></div><div class="ttdef"><b>Definition:</b> none.hpp:27</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="structproc_1_1ProcessStatus_html_aa33c57506955b0c77587a6152840fb3a"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#aa33c57506955b0c77587a6152840fb3a">proc::ProcessStatus::comm</a></div><div class="ttdeci">const std::string comm</div><div class="ttdef"><b>Definition:</b> proc.hpp:127</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="classos_1_1Stack_html_a248fb0d3d52e903c887890d0155f70b7"><div class="ttname"><a href="classos_1_1Stack.html#a248fb0d3d52e903c887890d0155f70b7">os::Stack::create</a></div><div class="ttdeci">static Try< Stack > create(size_t size)</div><div class="ttdef"><b>Definition:</b> linux.hpp:61</div></div> +<div class="ttc" id="structproc_1_1ProcessStatus_html_ab4802140d5c18cebaf83e738b5e8507d"><div class="ttname"><a href="structproc_1_1ProcessStatus.html#ab4802140d5c18cebaf83e738b5e8507d">proc::ProcessStatus::stime</a></div><div class="ttdeci">const unsigned long stime</div><div class="ttdef"><b>Definition:</b> proc.hpp:140</div></div> +<div class="ttc" id="classResult_html_a85eaa52037223d71092e65701c166562"><div class="ttname"><a href="classResult.html#a85eaa52037223d71092e65701c166562">Result::isSome</a></div><div class="ttdeci">bool isSome() const </div><div class="ttdef"><b>Definition:</b> result.hpp:108</div></div> +<div class="ttc" id="classResult_html_aeca16ad17d299ad885c9b46c83b12a3d"><div class="ttname"><a href="classResult.html#aeca16ad17d299ad885c9b46c83b12a3d">Result::isError</a></div><div class="ttdeci">bool isError() const </div><div class="ttdef"><b>Definition:</b> result.hpp:110</div></div> +<div class="ttc" id="classos_1_1Stack_html_ab75d73670daab10124d04b9e8e4e72b0"><div class="ttname"><a href="classos_1_1Stack.html#ab75d73670daab10124d04b9e8e4e72b0">os::Stack::start</a></div><div class="ttdeci">char * start()</div><div class="ttdef"><b>Definition:</b> linux.hpp:90</div></div> +<div class="ttc" id="classBytes_html"><div class="ttname"><a href="classBytes.html">Bytes</a></div><div class="ttdef"><b>Definition:</b> bytes.hpp:30</div></div> +<div class="ttc" id="namespaceos_html_a23a7b8f4b4c145ad212381e89d4b6dc4"><div class="ttname"><a href="namespaceos.html#a23a7b8f4b4c145ad212381e89d4b6dc4">os::memory</a></div><div class="ttdeci">Try< Memory > memory()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:77</div></div> +<div class="ttc" id="namespaceos_html_a42af1cab63434cedf2b698cd6f49f073"><div class="ttname"><a href="namespaceos.html#a42af1cab63434cedf2b698cd6f49f073">os::pids</a></div><div class="ttdeci">Try< std::set< pid_t > > pids()</div><div class="ttdef"><b>Definition:</b> freebsd.hpp:61</div></div> +<div class="ttc" id="classTry_html_a7be0768038e0628632492edf6cc1515a"><div class="ttname"><a href="classTry.html#a7be0768038e0628632492edf6cc1515a">Try::get</a></div><div class="ttdeci">const T & get() const </div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> +<div class="ttc" id="namespaceprocess_1_1internal_html_a902e2646d88c41ce674a3009cafe0aad"><div class="ttname"><a href="namespaceprocess_1_1internal.html#a902e2646d88c41ce674a3009cafe0aad">process::internal::childMain</a></div><div class="ttdeci">int childMain(const std::string &path, char **argv, char **envp, const InputFileDescriptors &stdinfds, const OutputFileDescriptors &stdoutfds, const OutputFileDescriptors &stderrfds, bool blocking, int pipes[2], const std::vector< Subprocess::ChildHook > &child_hooks)</div><div class="ttdef"><b>Definition:</b> subprocess.hpp:106</div></div> +<div class="ttc" id="namespacemesos_1_1internal_1_1tests_html_af8289f648a916c3f66923867452c7b1b"><div class="ttname"><a href="namespacemesos_1_1internal_1_1tests.html#af8289f648a916c3f66923867452c7b1b">mesos::internal::tests::flags</a></div><div class="ttdeci">Flags flags</div></div> +<div class="ttc" id="classos_1_1Stack_html"><div class="ttname"><a href="classos_1_1Stack.html">os::Stack</a></div><div class="ttdef"><b>Definition:</b> linux.hpp:54</div></div> +</div><!-- fragment --></div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by  <a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/> +</a> 1.8.5 +</small></address> +</body> +</html>