http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/libprocess_2include_2process_2socket_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/libprocess_2include_2process_2socket_8hpp_source.html b/content/api/latest/c++/libprocess_2include_2process_2socket_8hpp_source.html index 65325c6..5477ba5 100644 --- a/content/api/latest/c++/libprocess_2include_2process_2socket_8hpp_source.html +++ b/content/api/latest/c++/libprocess_2include_2process_2socket_8hpp_source.html @@ -61,7 +61,7 @@ <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a736f79aaed2572670aab9eda08cc4efa"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a736f79aaed2572670aab9eda08cc4efa">process::network::internal::SocketImpl::accept</a></div><div class="ttdeci">virtual Future< std::shared_ptr< SocketImpl > > accept()=0</div><div class="ttdoc">Returns an implementation corresponding to the next pending connection for the listening socket...</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:28</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:100</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:119</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a963ee1a4b21acf7f423b86fd06cdf09a"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a963ee1a4b21acf7f423b86fd06cdf09a">process::network::internal::SocketImpl::release</a></div><div class="ttdeci">int_fd release()</div><div class="ttdoc">Releases ownership of the file descriptor. </div><div class="ttdef"><b>Definition:</b> socket.hpp:211</div></div> <div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a15c48459535a0a99a2a70ff1fcbb7d59"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a15c48459535a0a99a2a70ff1fcbb7d59">process::network::internal::SocketImpl::sendfile</a></div><div class="ttdeci">virtual Future< size_t > sendfile(int_fd fd, off_t offset, size_t size)=0</div></div> @@ -77,7 +77,7 @@ <div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition:</b> type_utils.hpp:510</div></div> <div class="ttc" id="classprocess_1_1network_1_1Address_html"><div class="ttname"><a href="classprocess_1_1network_1_1Address.html">process::network::Address</a></div><div class="ttdef"><b>Definition:</b> address.hpp:276</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a6ef4668e83adac7bb0ff2b54e1a30ecc"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a6ef4668e83adac7bb0ff2b54e1a30ecc">process::network::internal::SocketImpl::DEFAULT_KIND</a></div><div class="ttdeci">static Kind DEFAULT_KIND()</div><div class="ttdoc">Returns the default Kind of implementation. </div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_abc5dbd13b73a0a66d7fa25364a3f7d77"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#abc5dbd13b73a0a66d7fa25364a3f7d77">SHUT_RDWR</a></div><div class="ttdeci">constexpr int SHUT_RDWR</div><div class="ttdef"><b>Definition:</b> windows.hpp:199</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_abc5dbd13b73a0a66d7fa25364a3f7d77"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#abc5dbd13b73a0a66d7fa25364a3f7d77">SHUT_RDWR</a></div><div class="ttdeci">constexpr int SHUT_RDWR</div><div class="ttdef"><b>Definition:</b> windows.hpp:193</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a04930363612888ceb04d517061a43f3e"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a04930363612888ceb04d517061a43f3e">process::network::internal::SocketImpl::shutdown</a></div><div class="ttdeci">virtual Try< Nothing, SocketError > shutdown(int how)</div><div class="ttdoc">Shuts down the socket. </div><div class="ttdef"><b>Definition:</b> socket.hpp:191</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html_a47004344dd24c96f445f86fd5bd11b2c"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html#a47004344dd24c96f445f86fd5bd11b2c">process::network::internal::Socket::listen</a></div><div class="ttdeci">Try< Nothing > listen(int backlog)</div><div class="ttdef"><b>Definition:</b> socket.hpp:342</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> @@ -112,7 +112,7 @@ <div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> <div class="ttc" id="int__fd_8hpp_html"><div class="ttname"><a href="int__fd_8hpp.html">int_fd.hpp</a></div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html_a85a9dda04473d40c874189b62efd19bd"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html#a85a9dda04473d40c874189b62efd19bd">process::network::internal::Socket::send</a></div><div class="ttdeci">Future< Nothing > send(const std::string &data)</div><div class="ttdef"><b>Definition:</b> socket.hpp:386</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a337bdc938215c39cd21ddd11106189c6"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a337bdc938215c39cd21ddd11106189c6">SHUT_RD</a></div><div class="ttdeci">constexpr int SHUT_RD</div><div class="ttdef"><b>Definition:</b> windows.hpp:197</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_a337bdc938215c39cd21ddd11106189c6"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#a337bdc938215c39cd21ddd11106189c6">SHUT_RD</a></div><div class="ttdeci">constexpr int SHUT_RD</div><div class="ttdef"><b>Definition:</b> windows.hpp:191</div></div> <div class="ttc" id="classprocess_1_1network_1_1Address_html_a0c9fa166dbf9c863a6ef68aa8343e3fca026226c3cf0400ffbf1ef901c0709aea"><div class="ttname"><a href="classprocess_1_1network_1_1Address.html#a0c9fa166dbf9c863a6ef68aa8343e3fca026226c3cf0400ffbf1ef901c0709aea">process::network::Address::Family::INET4</a></div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html_a710758874ebc05acdc9bee369254aa13"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html#a710758874ebc05acdc9bee369254aa13">process::network::internal::Socket::accept</a></div><div class="ttdeci">Future< Socket > accept()</div><div class="ttdef"><b>Definition:</b> socket.hpp:347</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> @@ -120,7 +120,7 @@ <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html">process::network::internal::Socket</a></div><div class="ttdoc">An abstraction around a socket (file descriptor). </div><div class="ttdef"><b>Definition:</b> socket.hpp:242</div></div> <div class="ttc" id="classprocess_1_1network_1_1Address_html_a0c9fa166dbf9c863a6ef68aa8343e3fc"><div class="ttname"><a href="classprocess_1_1network_1_1Address.html#a0c9fa166dbf9c863a6ef68aa8343e3fc">process::network::Address::Family</a></div><div class="ttdeci">Family</div><div class="ttdef"><b>Definition:</b> address.hpp:285</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html_ae0a90b8a9cbc66e8042905a34652f2db"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html#ae0a90b8a9cbc66e8042905a34652f2db">process::network::internal::Socket::address</a></div><div class="ttdeci">Try< AddressType > address() const </div><div class="ttdef"><b>Definition:</b> socket.hpp:322</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ac3d4e32482af3ec2158643d9996d78da"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ac3d4e32482af3ec2158643d9996d78da">SHUT_WR</a></div><div class="ttdeci">constexpr int SHUT_WR</div><div class="ttdef"><b>Definition:</b> windows.hpp:198</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ac3d4e32482af3ec2158643d9996d78da"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ac3d4e32482af3ec2158643d9996d78da">SHUT_WR</a></div><div class="ttdeci">constexpr int SHUT_WR</div><div class="ttdef"><b>Definition:</b> windows.hpp:192</div></div> <div class="ttc" id="unreachable_8hpp_html"><div class="ttname"><a href="unreachable_8hpp.html">unreachable.hpp</a></div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1Socket_html_a78158efb4187b3d5adac7e8b902378c4"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1Socket.html#a78158efb4187b3d5adac7e8b902378c4">process::network::internal::Socket::peer</a></div><div class="ttdeci">Try< AddressType > peer() const </div><div class="ttdef"><b>Definition:</b> socket.hpp:327</div></div> <div class="ttc" id="classprocess_1_1network_1_1internal_1_1SocketImpl_html_a5a00f792b5055241fea9f1fc81b2c4c6"><div class="ttname"><a href="classprocess_1_1network_1_1internal_1_1SocketImpl.html#a5a00f792b5055241fea9f1fc81b2c4c6">process::network::internal::SocketImpl::create</a></div><div class="ttdeci">static Try< std::shared_ptr< SocketImpl > > create(int_fd s, Kind kind=DEFAULT_KIND())</div><div class="ttdoc">Returns an instance of a SocketImpl using the specified kind of implementation. </div></div>
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/libprocess_2include_2process_2ssl_2gtest_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/libprocess_2include_2process_2ssl_2gtest_8hpp_source.html b/content/api/latest/c++/libprocess_2include_2process_2ssl_2gtest_8hpp_source.html index 23bd845..93ed007 100644 --- a/content/api/latest/c++/libprocess_2include_2process_2ssl_2gtest_8hpp_source.html +++ b/content/api/latest/c++/libprocess_2include_2process_2ssl_2gtest_8hpp_source.html @@ -72,7 +72,7 @@ <div class="ttc" id="result_8hpp_html"><div class="ttname"><a href="result_8hpp.html">result.hpp</a></div></div> <div class="ttc" id="namespacepath_html_aa86b16a2171cec90bb3337930513ef0f"><div class="ttname"><a href="namespacepath.html#aa86b16a2171cec90bb3337930513ef0f">path::join</a></div><div class="ttdeci">std::string join(const std::string &path1, const std::string &path2, const char _separator=os::PATH_SEPARATOR)</div><div class="ttdef"><b>Definition:</b> path.hpp:56</div></div> <div class="ttc" id="namespaceos_html_ac0f608e2a32764327e38c53d0d51527d"><div class="ttname"><a href="namespaceos.html#ac0f608e2a32764327e38c53d0d51527d">os::setenv</a></div><div class="ttdeci">void setenv(const std::string &key, const std::string &value, bool overwrite=true)</div><div class="ttdef"><b>Definition:</b> os.hpp:157</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae2fe1725bb5e9823d089c46b9ed5266e"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a></div><div class="ttdeci">#define STDERR_FILENO</div><div class="ttdef"><b>Definition:</b> windows.hpp:161</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ae2fe1725bb5e9823d089c46b9ed5266e"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ae2fe1725bb5e9823d089c46b9ed5266e">STDERR_FILENO</a></div><div class="ttdeci">#define STDERR_FILENO</div><div class="ttdef"><b>Definition:</b> windows.hpp:155</div></div> <div class="ttc" id="namespaceos_html_a7471e14f4cbd7e23b5daa21e556f4eb5"><div class="ttname"><a href="namespaceos.html#a7471e14f4cbd7e23b5daa21e556f4eb5">os::unsetenv</a></div><div class="ttdeci">void unsetenv(const std::string &key)</div><div class="ttdef"><b>Definition:</b> os.hpp:167</div></div> <div class="ttc" id="classResult_html"><div class="ttname"><a href="classResult.html">Result</a></div><div class="ttdef"><b>Definition:</b> check.hpp:30</div></div> <div class="ttc" id="namespacerouting_1_1queueing_1_1statistics_html_afe8c444f1d99c4ed31c37e7dee3fecfa"><div class="ttname"><a href="namespacerouting_1_1queueing_1_1statistics.html#afe8c444f1d99c4ed31c37e7dee3fecfa">routing::queueing::statistics::BACKLOG</a></div><div class="ttdeci">constexpr char BACKLOG[]</div><div class="ttdef"><b>Definition:</b> statistics.hpp:29</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/libprocess_2include_2process_2windows_2jobobject_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/libprocess_2include_2process_2windows_2jobobject_8hpp_source.html b/content/api/latest/c++/libprocess_2include_2process_2windows_2jobobject_8hpp_source.html index 7e27d56..4286c4f 100644 --- a/content/api/latest/c++/libprocess_2include_2process_2windows_2jobobject_8hpp_source.html +++ b/content/api/latest/c++/libprocess_2include_2process_2windows_2jobobject_8hpp_source.html @@ -56,7 +56,7 @@ <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< int ></a></div></div> <div class="ttc" id="classTry_html_a8bc7f43e75a47111ea18e9c83b007be5"><div class="ttname"><a href="classTry.html#a8bc7f43e75a47111ea18e9c83b007be5">Try::get</a></div><div class="ttdeci">T & get()&</div><div class="ttdef"><b>Definition:</b> try.hpp:73</div></div> -<div class="ttc" id="classSharedHandle_html"><div class="ttname"><a href="classSharedHandle.html">SharedHandle</a></div><div class="ttdef"><b>Definition:</b> windows.hpp:78</div></div> +<div class="ttc" id="classSharedHandle_html"><div class="ttname"><a href="classSharedHandle.html">SharedHandle</a></div><div class="ttdef"><b>Definition:</b> windows.hpp:72</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="subprocess_8hpp_html"><div class="ttname"><a href="subprocess_8hpp.html">subprocess.hpp</a></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> @@ -68,7 +68,7 @@ <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="lambda_8hpp_html"><div class="ttname"><a href="lambda_8hpp.html">lambda.hpp</a></div></div> <div class="ttc" id="namespaceos_html_a706dc9d1287978f358a9a23b77037fb0"><div class="ttname"><a href="namespaceos.html#a706dc9d1287978f358a9a23b77037fb0">os::assign_job</a></div><div class="ttdeci">Try< Nothing > assign_job(SharedHandle job_handle, pid_t pid)</div><div class="ttdef"><b>Definition:</b> jobobject.hpp:351</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="classprocess_1_1internal_1_1JobObjectManager_html_a1d7ed88d58a332060514091e8a7385d3"><div class="ttname"><a href="classprocess_1_1internal_1_1JobObjectManager.html#a1d7ed88d58a332060514091e8a7385d3">process::internal::JobObjectManager::~JobObjectManager</a></div><div class="ttdeci">virtual ~JobObjectManager()</div><div class="ttdef"><b>Definition:</b> jobobject.hpp:41</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="namespaceos_html_a88a1637a0168d78faad2ac5b82e5cc4d"><div class="ttname"><a href="namespaceos.html#a88a1637a0168d78faad2ac5b82e5cc4d">os::create_job</a></div><div class="ttdeci">Try< SharedHandle > create_job(const std::wstring &name)</div><div class="ttdef"><b>Definition:</b> jobobject.hpp:85</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/linux_2cgroups_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/linux_2cgroups_8hpp_source.html b/content/api/latest/c++/linux_2cgroups_8hpp_source.html index 989ff17..caf3f03 100644 --- a/content/api/latest/c++/linux_2cgroups_8hpp_source.html +++ b/content/api/latest/c++/linux_2cgroups_8hpp_source.html @@ -97,7 +97,7 @@ <div class="ttc" id="structcgroups_1_1devices_1_1Entry_1_1Access_html"><div class="ttname"><a href="structcgroups_1_1devices_1_1Entry_1_1Access.html">cgroups::devices::Entry::Access</a></div><div class="ttdef"><b>Definition:</b> cgroups.hpp:898</div></div> <div class="ttc" id="namespacecgroups_1_1blkio_1_1cfq_html_a93d74b08c57a574b030b284a69665b09"><div class="ttname"><a href="namespacecgroups_1_1blkio_1_1cfq.html#a93d74b08c57a574b030b284a69665b09">cgroups::blkio::cfq::sectors_recursive</a></div><div class="ttdeci">Try< std::vector< Value > > sectors_recursive(const std::string &hierarchy, const std::string &cgroup)</div></div> <div class="ttc" id="namespacecgroups_1_1blkio_1_1throttle_html_a3b600e20f0fcfbc89dfb9e30b2000d88"><div class="ttname"><a href="namespacecgroups_1_1blkio_1_1throttle.html#a3b600e20f0fcfbc89dfb9e30b2000d88">cgroups::blkio::throttle::io_service_bytes</a></div><div class="ttdeci">Try< std::vector< Value > > io_service_bytes(const std::string &hierarchy, const std::string &cgroup)</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="duration_8hpp_html"><div class="ttname"><a href="duration_8hpp.html">duration.hpp</a></div></div> <div class="ttc" id="namespacecgroups_1_1memory_1_1pressure_html_ad8d4aa5c0e09cc87fef44d6713f7b61fab0b8865245ba2ef579a93fd37a0447c1"><div class="ttname"><a href="namespacecgroups_1_1memory_1_1pressure.html#ad8d4aa5c0e09cc87fef44d6713f7b61fab0b8865245ba2ef579a93fd37a0447c1">cgroups::memory::pressure::LOW</a></div><div class="ttdef"><b>Definition:</b> cgroups.hpp:828</div></div> <div class="ttc" id="namespacecgroups_1_1memory_1_1pressure_html_ad8d4aa5c0e09cc87fef44d6713f7b61fa1ebe98a0194fb5f47db36364abe6b20b"><div class="ttname"><a href="namespacecgroups_1_1memory_1_1pressure.html#ad8d4aa5c0e09cc87fef44d6713f7b61fa1ebe98a0194fb5f47db36364abe6b20b">cgroups::memory::pressure::MEDIUM</a></div><div class="ttdef"><b>Definition:</b> cgroups.hpp:829</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/lseek_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/lseek_8hpp.html b/content/api/latest/c++/lseek_8hpp.html index 474d6d5..fbbec47 100644 --- a/content/api/latest/c++/lseek_8hpp.html +++ b/content/api/latest/c++/lseek_8hpp.html @@ -48,30 +48,13 @@ </div> </div><!-- top --> <div class="header"> - <div class="summary"> -<a href="#namespaces">Namespaces</a> | -<a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">lseek.hpp File Reference</div> </div> </div><!--header--> <div class="contents"> -<div class="textblock"><code>#include <unistd.h></code><br /> -<code>#include <<a class="el" href="error_8hpp_source.html">stout/error.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="int__fd_8hpp_source.html">stout/os/int_fd.hpp</a>></code><br /> +<div class="textblock"><code>#include <<a class="el" href="posix_2lseek_8hpp_source.html">stout/os/posix/lseek.hpp</a>></code><br /> </div> <p><a href="lseek_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="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:ae933a0291b9f1195709f10b568daccac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classTry.html">Try</a>< off_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceos.html#ae933a0291b9f1195709f10b568daccac">os::lseek</a> (<a class="el" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, off_t offset, int whence)</td></tr> -<tr class="separator:ae933a0291b9f1195709f10b568daccac"><td class="memSeparator" colspan="2"> </td></tr> -</table> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/lseek_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/lseek_8hpp_source.html b/content/api/latest/c++/lseek_8hpp_source.html index 9e86359..f1b8c9b 100644 --- a/content/api/latest/c++/lseek_8hpp_source.html +++ b/content/api/latest/c++/lseek_8hpp_source.html @@ -52,14 +52,8 @@ <div class="title">lseek.hpp</div> </div> </div><!--header--> <div class="contents"> -<a href="lseek_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_LSEEK_HPP__</span></div><div >class="line"><a name="l00014"></a><span class="lineno"> >14</span> <span class="preprocessor">#define >__STOUT_OS_LSEEK_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">#ifdef __WINDOWS__</span></div><div >class="line"><a name="l00017"></a><span class="lineno"> >17</span> <span class="preprocessor">#include ><io.h></span></div><div class="line"><a name="l00018"></a><span >class="lineno"> 18</span> <span >class="preprocessor">#else</span></div><div class="line"><a >name="l00019"></a><span class="lineno"> 19</span> <span >class="preprocessor">#include <unistd.h></span></div><div >class="line"><a name="l00020"></a><span class="lineno"> >20</span> <span class="pr eprocessor">#endif</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="error_8hpp.html">stout/error.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="int__fd_8hpp.html">stout/os/int_fd.hpp</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespaceos.html">os</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="namespaceos.html#ae933a0291b9f1195709f10b568daccac"> 29</a></span> <span class="keyword">inline</span> <a class="code" href="classTry.html">Try<off_t></a> <a class="code" href="namespaceos.html#ae933a0291b9f1195709f10b568daccac">lseek</a>(<a class="code" href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a> fd, off_t offset, <span class="keywordtype">int</span> whence)</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  off_t result = ::_lseek(fd.crt(), offset, whence);</div><div class="line"><a name="l00 033"></a><span class="lineno"> 33</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  off_t result = <a class="code" href="namespaceos.html#ae933a0291b9f1195709f10b568daccac">::lseek</a>(fd, offset, whence);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">if</span> (result < 0) {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordflow">return</span> <a class="code" href="classErrnoError.html">ErrnoError</a>();</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name ="l00040"></a><span class="lineno"> 40</span> }</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> } <span class="comment">// namespace os {</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#endif // __STOUT_OS_LSEEK_HPP__</span></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="namespaceos_html_ae933a0291b9f1195709f10b568daccac"><div class="ttname"><a href="namespaceos.html#ae933a0291b9f1195709f10b568daccac">os::lseek</a></div><div class="ttdeci">Try< off_t > lseek(int_fd fd, off_t offset, int whence)</div><div class="ttdef"><b>Definition:</b> lseek.hpp:29</div></div> -<div class="ttc" id="classErrnoError_html"><div class="ttname"><a href="classErrnoError.html">ErrnoError</a></div><div class="ttdef"><b>Definition:</b> errorbase.hpp:49</div></div> -<div class="ttc" id="namespaceos_html"><div class="ttname"><a href="namespaceos.html">os</a></div><div class="ttdef"><b>Definition:</b> posix_signalhandler.hpp:23</div></div> -<div class="ttc" id="error_8hpp_html"><div class="ttname"><a href="error_8hpp.html">error.hpp</a></div></div> -<div class="ttc" id="try_8hpp_html"><div class="ttname"><a href="try_8hpp.html">try.hpp</a></div></div> -<div class="ttc" id="int__fd_8hpp_html"><div class="ttname"><a href="int__fd_8hpp.html">int_fd.hpp</a></div></div> -<div class="ttc" id="int__fd_8hpp_html_aea4dbda01c90455f158ffa9b924c2f07"><div class="ttname"><a href="int__fd_8hpp.html#aea4dbda01c90455f158ffa9b924c2f07">int_fd</a></div><div class="ttdeci">int int_fd</div><div class="ttdef"><b>Definition:</b> int_fd.hpp:35</div></div> +<a href="lseek_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_LSEEK_HPP__</span></div><div >class="line"><a name="l00014"></a><span class="lineno"> >14</span> <span class="preprocessor">#define >__STOUT_OS_LSEEK_HPP__</span></div><div class="line"><a >name="l00015"></a><span class="lineno"> 15</span> </div><div >class="line"><a name="l00016"></a><span class="lineno"> >16</span> </div><div class="line"><a name="l00017"></a><span >class="lineno"> 17</span> <span class="comment">// For readability, we >minimize the number of #ifdef blocks in the code by</span></div><div >class="line"><a name="l00018"></a><span class="lineno"> >18</span> <span class="comment">// splitting platform 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">#include <<a class="code" href="windows_2lseek_8hpp.html">stout/os/windows/lseek.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">#include <<a class="code" href="posix_2lseek_8hpp.html">stout/os/posix/lseek.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> </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_LSEEK_HPP__</span></div><div class="ttc" id="posix_2lseek_8hpp_ html"><div class="ttname"><a href="posix_2lseek_8hpp.html">lseek.hpp</a></div></div> +<div class="ttc" id="windows_2lseek_8hpp_html"><div class="ttname"><a href="windows_2lseek_8hpp.html">lseek.hpp</a></div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/mac_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/mac_8hpp_source.html b/content/api/latest/c++/mac_8hpp_source.html index 6373abd..76f75d8 100644 --- a/content/api/latest/c++/mac_8hpp_source.html +++ b/content/api/latest/c++/mac_8hpp_source.html @@ -55,7 +55,7 @@ <a href="mac_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></d iv><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_MAC_HPP__</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#define __STOUT_MAC_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 <stdint.h></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <stdio.h></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <string.h></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#ifndef __WINDOWS__</span></d iv><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include <arpa/inet.h></span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#ifdef __linux__</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <linux/if.h></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <linux/if_packet.h></span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</spa n> </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"> 30</span> <span class="preprocessor">#include <net/ethernet.h></span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#ifdef __APPLE__</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <net/if.h></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include <net/if_dl.h></span></div><div class="line"><a name="l00036"></a><span class= "lineno"> 36</span> <span class="preprocessor">#include <net/if_types.h></span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif</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="preprocessor">#ifndef __WINDOWS__</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include <sys/socket.h></span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include <sys/types.h></span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a ><span class="lineno"> 44</span> <span class="preprocessor">#include ><iostream></span></div><div class="line"><a name="l00045"></a><span >class="lineno"> 45</span> <span class="preprocessor">#include ><string></span></div><div class="line"><a name="l00046"></a><span >class="lineno"> 46</span> </div><div class="line"><a >name="l00047"></a><span class="lineno"> 47</span> <span >class="preprocessor">#include <<a class="code" >href="abort_8hpp.html">stout/abort.hpp</a>></span></div><div >class="line"><a name="l00048"></a><span class="lineno"> >48</span> <span class="preprocessor">#include <<a class="code" >href="error_8hpp.html">stout/error.hpp</a>></span></div><div >class="line"><a name="l00049"></a><span class="lineno"> >49</span> <span class="preprocessor">#include <<a class="code" >href="none_8hpp.html">stout/none.hpp</a>></span></div><div class="line"><a >name="l00050"></a><span class="lineno"> 50</span> <span class= "preprocessor">#include <<a class="code" href="result_8hpp.html">stout/result.hpp</a>></span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include <<a class="code" href="stringify_8hpp.html">stout/stringify.hpp</a>></span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor">#include <<a class="code" href="strings_8hpp.html">stout/strings.hpp</a>></span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </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="comment">// Network utilities.</span></div><di v class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">namespace </span><a class="code" href="namespacenet.html">net</a> {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment">// Represents a MAC address. A MAC address is a 48-bit unique</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// identifier assigned to a network interface for communications on</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment">// the physical network segment. We use a byte array (in transmission</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// order) to represent a MAC address. For example, for a MAC address</span></div><div class="line"><a name= "l00063"></a><span class="lineno"> 63</span> <span class="comment">// 01:23:34:67:89:ab, the format is shown as follows:</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment">//</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment">// MSB LSB</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment">// | |</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment">// v v</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// +--------+--------+--------+--------+--------+--------+</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="comment">// |bytes[0]|bytes[1]|bytes[2]|bytes[3]|bytes[4]|bytes[5]|</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment">// +--------+--------+--------+--------+--------+--------+</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">//</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment">// 01 : 23 : 45 : 67 : 89 : ab</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment">// NOLINT(readability/ending_punctuation)</span></div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classnet_1_1MAC.html"> 74</a></span> <span class="keyword">class </span><a class="code" href="classnet_1_1MAC.html">MAC</a></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>& #160;{</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="comment">// Parse a MAC address (e.g., 01:23:34:67:89:ab).</span></div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classnet_1_1MAC.html#a0dfd0ca6e46f22afa5ac8331b0f5988a"> 78</a></span>  <span class="keyword">static</span> <a class="code" href="classTry.html">Try<MAC></a> <a class="code" href="classnet_1_1MAC.html#a0dfd0ca6e46f22afa5ac8331b0f5988a">parse</a>(<span class="keyword">const</span> std::string& s)</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>  std::vector<std::string> tokens = <a class="code" href="namespacestrings.html#a1f86a4a73f20056475dc065ec984eb7a">strings::sp lit</a>(s, <span class="stringliteral">":"</span>);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">if</span> (tokens.size() != 6) {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Invalid format. Expecting xx:xx:xx:xx:xx:xx"</span>);</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> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">auto</span> isValidHexDigit = [](<span class="keywordtype">char</span> c) {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">return</span> (c >= <span class="charliter al">'0'</span> && c <= <span class="charliteral">'9'</span>) ||</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  (c >= <span class="charliteral">'a'</span> && c <= <span class="charliteral">'f'</span>) ||</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  (c >= <span class="charliteral">'A'</span> && c <= <span class="charliteral">'F'</span>);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  };</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  uint8_t bytes[6];</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 6; i++) {</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (tokens[i].<a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>() != 2) {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Not a two digit hex number"</span>);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordflow">if</span> (!isValidHexDigit(tokens[i][0]) ||</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  !isValidHexDigit(tokens[i][1])) {</div><div class="line"><a name="l00099"></a><span cl ass="lineno"> 99</span>  <span class="keywordflow">return</span> <a class="code" href="classError.html">Error</a>(<span class="stringliteral">"Not a valid hex number"</span>);</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>  <span class="keyword">const</span> <span class="keywordtype">char</span>* str = tokens[i].c_str();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">char</span> *endptr = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> value = strtoul(str, &endptr, 16);</div><div class="line"><a name="l00105"></a><span c lass="lineno"> 105</span> </div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  assert(endptr == str + 2);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  assert(value < 256);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  bytes[i] = <span class="keyword">static_cast<</span>uint8_t<span class="keyword">></span>(value);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> <a class="code" href="classnet_1_1MAC.html#aaec2bf803b833a5ca27faf1873826d49">MAC</a>(bytes);</div><div class="line"><a name="l00113"></a><span class="lineno" > 113</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="comment">// Constructs a MAC address from a byte > array.</span></div><div class="line"><a name="l00116"></a><span > class="lineno"><a class="line" > href="classnet_1_1MAC.html#aaec2bf803b833a5ca27faf1873826d49"> > 116</a></span>  <span class="keyword">explicit</span> <a class="code" > href="classnet_1_1MAC.html#aaec2bf803b833a5ca27faf1873826d49">MAC</a>(<span > class="keyword">const</span> uint8_t (&_bytes)[6])</div><div > class="line"><a name="l00117"></a><span class="lineno"> 117</span>  > {</div><div class="line"><a name="l00118"></a><span class="lineno"> > 118</span>  <span class="keywordflow">for</span> (<span > class="keywordtype">size_t</span> i = 0; i < 6; i++) {</div><div > class="line"><a name="l00119"></a><span class="lineno"> 119</span>  > bytes[i] = _ bytes[i];</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>  }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// Returns the byte at the given index. For example, for a MAC</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">// address 01:23:45:67:89:ab, mac[0] = 01, mac[1] = 23 and etc.</span></div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classnet_1_1MAC.html#af925648a11ff2d5ab14cf4e608e2048d"> 125</a></span>  uint8_t <a class="code" href="classnet_1_1MAC.html#af925648a11ff2d5ab14cf4e608e2048d">operator[]</a>(<span class="keywordtype">size_t</span> <a class="code" href="namespacerouting_1_1link.html#a26486cdba01 ef1c80706b1e07e8a6d3f">index</a>)<span class="keyword"> const</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> (index >= 6) {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">ABORT</a>(<span class="stringliteral">"Invalid index specified in MAC::operator[]\n"</span>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</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="keywordflow">return</span> bytes[<a class="code" href="namespacerouting_1_1link.html#a26486cdba01ef1c80706b1e07e8a6d3f">index</a>];< /div><div class="line"><a name="l00132"></a><span class="lineno"> 132</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"><a class="line" href="classnet_1_1MAC.html#a0a1331d9bec0070e02eadbed544e50a0"> 134</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classnet_1_1MAC.html#a0a1331d9bec0070e02eadbed544e50a0">operator==</a>(<span class="keyword">const</span> <a class="code" href="classnet_1_1MAC.html">MAC</a>& that)<span class="keyword"> const</span></div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < 6; i++) {</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  < span class="keywordflow">if</span> (bytes[i] != that.bytes[i]) {</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  }</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>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  }</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classnet_1_1MAC.html#aef1d6979a1b533061eb9f6640a729363"> 144</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classnet_1_1MAC.html#aef1 d6979a1b533061eb9f6640a729363">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classnet_1_1MAC.html">MAC</a>& that)<span class="keyword"> const</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == that);</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> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">// Byte array of this MAC address (in transmission order).</span></div><div class="line"><a name="l00151"></a><span class="lineno "> 151</span>  uint8_t bytes[6];</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> };</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="comment">// Returns the standard string format (IEEE 802) of the given MAC</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment">// address, which contains six groups of two hexadecimal digits,</span></div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">// separated by colons, in transmission order (e.g.,</span></div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment">// 01:23:45:67:89:ab).</span></div><div class="line"><a name="l00159"></a><spa n class="lineno"><a class="line" href="namespacenet.html#a801fe1714d4b21629f8cda290c39baf6"> 159</a></span> <span class="keyword">inline</span> std::ostream& <a class="code" href="namespacenet.html#ab2ed5173deb8f3daf281f9828613956d">operator<<</a>(std::ostream& stream, <span class="keyword">const</span> <a class="code" href="classnet_1_1MAC.html">MAC</a>& <a class="code" href="namespacenet.html#aa0c3c89a627309104e37ffb51987daa1">mac</a>)</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> {</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">char</span> buffer[18];</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>  sprintf(</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  buffer,</div><div class="line"><a name="l001 65"></a><span class="lineno"> 165</span>  <span class="stringliteral">"%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"</span>,</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  mac[0],</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  mac[1],</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  mac[2],</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  mac[3],</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  mac[4],</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  mac[5]);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="keywordflow">return</span> stream << buffer;</div><div class="line"><a name="l00174 "></a><span class="lineno"> 174</span> }</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> } <span class="comment">// namespace net {</span></div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </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">// NOTE: These headers are placed here because the platform specific code</span></div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment">// requires classes defined in this file.</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="preprocessor">#ifdef __WINDOWS__</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="preprocessor">#include <<a class="code" href="windows_2mac_8hpp.html">stout/windows/mac.hpp</a>></span></div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor">#include <<a class="code" href="posix_2mac_8hpp.html">stout/posix/mac.hpp</a>></span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="preprocessor">#endif // __WINDOWS__</span></div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> </div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="preprocessor">#endif // __STOUT_MAC_HPP__</span></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="posix_2mac_8hpp_html"><div class="ttname"><a href="posix_2mac_8hpp.html">mac.hpp</a></div></div> <div class="ttc" id="abort_8hpp_html_a4d84a74fe6e4f84bc3d2f901b9e89f93"><div class="ttname"><a href="abort_8hpp.html#a4d84a74fe6e4f84bc3d2f901b9e89f93">ABORT</a></div><div class="ttdeci">#define ABORT(...)</div><div class="ttdef"><b>Definition:</b> abort.hpp:40</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:100</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:119</div></div> <div class="ttc" id="namespacenet_html_ab2ed5173deb8f3daf281f9828613956d"><div class="ttname"><a href="namespacenet.html#ab2ed5173deb8f3daf281f9828613956d">net::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &stream, const IP &ip)</div><div class="ttdef"><b>Definition:</b> ip.hpp:503</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="none_8hpp_html"><div class="ttname"><a href="none_8hpp.html">none.hpp</a></div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/mem_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/mem_8hpp_source.html b/content/api/latest/c++/mem_8hpp_source.html index caf8b66..d02c45a 100644 --- a/content/api/latest/c++/mem_8hpp_source.html +++ b/content/api/latest/c++/mem_8hpp_source.html @@ -69,7 +69,7 @@ <div class="ttc" id="src_2slave_2containerizer_2mesos_2isolator_8hpp_html"><div class="ttname"><a href="src_2slave_2containerizer_2mesos_2isolator_8hpp.html">isolator.hpp</a></div></div> <div class="ttc" id="classhashmap_html"><div class="ttname"><a href="classhashmap.html">hashmap< ContainerID, Info ></a></div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1WindowsMemIsolatorProcess_html_a3c461451fae95525f7adeaa4bfbd173d"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1WindowsMemIsolatorProcess.html#a3c461451fae95525f7adeaa4bfbd173d">mesos::internal::slave::WindowsMemIsolatorProcess::supportsNesting</a></div><div class="ttdeci">bool supportsNesting() override</div></div> -<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:187</div></div> +<div class="ttc" id="3rdparty_2stout_2include_2stout_2windows_8hpp_html_ab03ced250ed239bc3b50b669493997f9"><div class="ttname"><a href="3rdparty_2stout_2include_2stout_2windows_8hpp.html#ab03ced250ed239bc3b50b669493997f9">pid_t</a></div><div class="ttdeci">DWORD pid_t</div><div class="ttdef"><b>Definition:</b> windows.hpp:181</div></div> <div class="ttc" id="nothing_8hpp_html"><div class="ttname"><a href="nothing_8hpp.html">nothing.hpp</a></div></div> <div class="ttc" id="bytes_8hpp_html"><div class="ttname"><a href="bytes_8hpp.html">bytes.hpp</a></div></div> <div class="ttc" id="classmesos_1_1internal_1_1slave_1_1WindowsMemIsolatorProcess_html_acb70379485a6be8c6e58c337ca3dc1f7"><div class="ttname"><a href="classmesos_1_1internal_1_1slave_1_1WindowsMemIsolatorProcess.html#acb70379485a6be8c6e58c337ca3dc1f7">mesos::internal::slave::WindowsMemIsolatorProcess::supportsStandalone</a></div><div class="ttdeci">bool supportsStandalone() override</div></div> http://git-wip-us.apache.org/repos/asf/mesos-site/blob/e6085b1f/content/api/latest/c++/memory__test__helper_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/memory__test__helper_8hpp_source.html b/content/api/latest/c++/memory__test__helper_8hpp_source.html index c297b45..3ab62a7 100644 --- a/content/api/latest/c++/memory__test__helper_8hpp_source.html +++ b/content/api/latest/c++/memory__test__helper_8hpp_source.html @@ -53,7 +53,7 @@ </div><!--header--> <div class="contents"> <a href="memory__test__helper_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 to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"> </a><span class="lineno"> 6</span> <span class="comment">// "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment" >// distributed under the License is distributed on an "AS IS" >BASIS,</span></div><div class="line"><a name="l00013"></a><span >class="lineno"> 13</span> <span class="comment">// WITHOUT WARRANTIES >OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div >class="line"><a name="l00014"></a><span class="lineno"> >14</span> <span class="comment">// See the License for the specific >language governing permissions and</span></div><div class="line"><a >name="l00015"></a><span class="lineno"> 15</span> <span >class="comment">// limitations under the License.</span></div><div >class="line"><a name="l00016"></a><span class="lineno"> >16</span> </div><div class="line"><a name="l00017"></a><span >class="lineno"> 17</span> <span class="preprocessor">#ifndef >__MEMORY_TEST_HELPER_HPP__</span></div><div class="line"><a >name="l00018"></a><span class="lineno"> 18</span> <span >class="preprocessor">#define __MEMORY_TEST_HELPER_HPP__</span></div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include <<a class="code" href="subprocess_8hpp.html">process/subprocess.hpp</a>></span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include <<a class="code" href="bytes_8hpp.html">stout/bytes.hpp</a>></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include <<a class="code" href="option_8hpp.html">stout/option.hpp</a>></span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include <<a class="code" href="subcommand_8hpp.html">stout/subcommand.hpp</a>></span></div><div class="line"><a name="l00025 "></a><span class="lineno"> 25</span> <span class="preprocessor">#include <<a class="code" href="try_8hpp.html">stout/try.hpp</a>></span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespacemesos.html">mesos</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keyword">namespace </span><a class="code" href="namespaceinternal.html">internal</a> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span>tests {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment">// The abstraction for controlling the memory usage of a subprocess.</span></div><d iv class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment">// TODO(chzhcn): Currently, this helper is only supposed to be used by</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment">// one thread. Consider making it thread safe.</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html"> 34</a></span> <span class="keyword">class </span><a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html">MemoryTestHelper</a> : <span class="keyword">public</span> <a class="code" href="classSubcommand.html">Subcommand</a></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="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class=" lineno"><a class="line" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#aa5dad9a209f238aa7d65dde34d8e5c2d"> 37</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#aa5dad9a209f238aa7d65dde34d8e5c2d">NAME</a>[];</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#ae280d4f92d5a8e97a79adaed2a7abcf0"> 39</a></span>  <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#ae280d4f92d5a8e97a79adaed2a7abcf0">MemoryTestHelper</a>() : <a class="code" href="classSubcommand.html">Subcommand</a>(NAME) {}</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">virtual</span> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#a32c6b1ef064ede21de324efdd47dc921">~MemoryTestHelper</a>();</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="comment">// Spawns a subprocess.</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="comment">// TODO(chzhcn): Consider returning a future instead of blocking.</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#a845ef8e61ce21226e4717685d7f95463">spawn</a>();</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="co mment">// Kill and reap the subprocess if exists.</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="comment">// TODO(chzhcn): Consider returning a future instead of blocking.</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#adc29f6b3d28eb25bbf433fe6eeea4b43">cleanup</a>();</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>  <span class="comment">// Returns the pid of the subprocess.</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <a class="code" href="classTry.html">Try<pid_t></a> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#a503b2ac86325c300400661654abf064c">pid</a>();</div ><div class="line"><a name="l00052"></a><span class="lineno"> >52</span> </div><div class="line"><a name="l00053"></a><span >class="lineno"> 53</span>  <span class="comment">// Allocate and lock >specified page-aligned anonymous memory (RSS)</span></div><div >class="line"><a name="l00054"></a><span class="lineno"> 54</span>  ><span class="comment">// in the subprocess. It uses mlock and memset to make >sure</span></div><div class="line"><a name="l00055"></a><span class="lineno"> > 55</span>  <span class="comment">// allocated memory is >mapped.</span></div><div class="line"><a name="l00056"></a><span >class="lineno"> 56</span>  <span class="comment">// TODO(chzhcn): >Consider returning a future instead of blocking.</span></div><div >class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a >class="code" href="classTry.html">Try<Nothing></a> <a class="code" >href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#ab33a4ec1bdc1 97fca39d2a8285e868f2">increaseRSS</a>(<span class="keyword">const</span> <a class="code" href="classBytes.html">Bytes</a>& <a class="code" href="namespaceos_1_1stat.html#a7a116891923bc8b5d8c50f78da8657be">size</a>);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// This function attempts to generate requested size of page cache</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="comment">// in the subprocess by using a small buffer and writing it to disk</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="comment">// multiple times.</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="comment">// TODO(chzhcn): Consider returning a future instead of blocking.</span></div><div class=" line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="classTry.html">Try<Nothing></a> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#a49cb28aaf92bfdcfe17320735214451b">increasePageCache</a>(<span class="keyword">const</span> <a class="code" href="classBytes.html">Bytes</a>& size = <a class="code" href="bytes_8hpp.html#a5d8fe3ccbf9cafff06846c05b3ca864b">Megabytes</a>(1));</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="keyword">protected</span>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="comment">// The main function of the subprocess. It runs in a loop and</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// executes commands passed from stdin.</span></div><di v class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#ade2cd702f1351d1de330086ae8639a70">execute</a>();</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="classTry.html">Try<Nothing></a> requestAndWait(<span class="keyword">const</span> std::string& <a class="code" href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">request</a>);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classOpt ion.html">Option<process::Subprocess></a> s;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> };</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> } <span class="comment">// namespace tests {</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> } <span class="comment">// namespace internal {</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> } <span class="comment">// namespace mesos {</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#endif // __MEMORY_TEST_HELPER_HPP__</span></div><div class="ttc" id="classOption_html"><div class="ttname"><a href="classOption.html">Option< process::Subprocess ></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:100</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:119</div></div> <div class="ttc" id="namespaceprocess_1_1http_html_ad8f400b5e54038df7e5662ec35da05fa"><div class="ttname"><a href="namespaceprocess_1_1http.html#ad8f400b5e54038df7e5662ec35da05fa">process::http::request</a></div><div class="ttdeci">Future< Response > request(const Request &request, bool streamedResponse=false)</div><div class="ttdoc">Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...</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="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper_html_ade2cd702f1351d1de330086ae8639a70"><div class="ttname"><a href="classmesos_1_1internal_1_1tests_1_1MemoryTestHelper.html#ade2cd702f1351d1de330086ae8639a70">mesos::internal::tests::MemoryTestHelper::execute</a></div><div class="ttdeci">virtual int execute()</div></div>
