From commits-return-20709-archive-asf-public=cust-asf.ponee.io@mesos.apache.org Thu Feb 22 00:21:11 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E548D18067E for ; Thu, 22 Feb 2018 00:21:10 +0100 (CET) Received: (qmail 61303 invoked by uid 500); 21 Feb 2018 23:21:10 -0000 Mailing-List: contact commits-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list commits@mesos.apache.org Received: (qmail 61288 invoked by uid 99); 21 Feb 2018 23:21:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2018 23:21:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8ADA6F1802; Wed, 21 Feb 2018 23:21:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: git-site-role@apache.org To: commits@mesos.apache.org Date: Wed, 21 Feb 2018 23:21:10 -0000 Message-Id: <18b84821b5f046369c047f65641c05dd@git.apache.org> In-Reply-To: <450adcf97542475198ec95345031a39b@git.apache.org> References: <450adcf97542475198ec95345031a39b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/6] mesos-site git commit: Updated the website built from mesos SHA: 9635d4a. http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53d49db7/content/api/latest/c++/windows_2fcntl_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/windows_2fcntl_8hpp_source.html b/content/api/latest/c++/windows_2fcntl_8hpp_source.html index d199048..c5df0f9 100644 --- a/content/api/latest/c++/windows_2fcntl_8hpp_source.html +++ b/content/api/latest/c++/windows_2fcntl_8hpp_source.html @@ -82,66 +82,63 @@
28 #define O_CREAT _O_CREAT
29 #define O_TRUNC _O_TRUNC
30 #define O_APPEND _O_APPEND
-
31 #define O_CLOEXEC _O_NOINHERIT
-
32 
-
33 namespace os {
-
34 
-
35 // NOTE: This is not supported on Windows.
-
36 inline Try<Nothing> cloexec(const WindowsFD& fd)
-
37 {
-
38  VLOG(2) << "`os::cloexec` has been called, but is a no-op on Windows";
+
31 // NOTE: Windows does not support the semantics of close-on-exec. Instead, by
+
32 // default we set all handles to be non-inheritable.
+
33 #define O_CLOEXEC 0
+
34 
+
35 namespace os {
+
36 
+
37 inline Try<Nothing> cloexec(const WindowsFD& fd)
+
38 {
39  return Nothing();
40 }
41 
42 
-
43 // NOTE: This is not supported on Windows.
- -
45 {
-
46  VLOG(2) << "`os::unsetCloexec` has been called, but is a no-op on Windows";
-
47  return Nothing();
-
48 }
-
49 
-
50 
-
51 inline Try<bool> isCloexec(const WindowsFD& fd)
-
52 {
-
53  VLOG(2) << "`os::isCloexec` has been called, but is a stub on Windows";
-
54  return true;
-
55 }
-
56 
-
57 
-
58 inline Try<Nothing> nonblock(const WindowsFD& fd)
-
59 {
-
60  switch (fd.type()) {
-
61  case WindowsFD::FD_CRT:
-
62  case WindowsFD::FD_HANDLE: {
-
63  /* Do nothing. */
-
64  break;
-
65  }
-
66  case WindowsFD::FD_SOCKET: {
-
67  const u_long non_block_mode = 1;
-
68  u_long mode = non_block_mode;
-
69 
-
70  int result = ioctlsocket(fd, FIONBIO, &mode);
-
71  if (result != NO_ERROR) {
-
72  return WindowsSocketError();
-
73  }
-
74  break;
-
75  }
-
76  }
-
77  return Nothing();
-
78 }
-
79 
-
80 
-
81 // NOTE: This is not supported on Windows.
-
82 inline Try<bool> isNonblock(const WindowsFD& fd)
-
83 {
-
84  VLOG(2) << "`os::isNonblock` has been called, but is a stub on Windows";
-
85  return true;
-
86 }
-
87 
-
88 } // namespace os {
-
89 
-
90 #endif // __STOUT_OS_WINDOWS_FCNTL_HPP__
+ +
44 {
+
45  return Nothing();
+
46 }
+
47 
+
48 
+
49 inline Try<bool> isCloexec(const WindowsFD& fd)
+
50 {
+
51  return true;
+
52 }
+
53 
+
54 
+
55 inline Try<Nothing> nonblock(const WindowsFD& fd)
+
56 {
+
57  switch (fd.type()) {
+
58  case WindowsFD::FD_CRT:
+
59  case WindowsFD::FD_HANDLE: {
+
60  /* Do nothing. */
+
61  break;
+
62  }
+
63  case WindowsFD::FD_SOCKET: {
+
64  const u_long non_block_mode = 1;
+
65  u_long mode = non_block_mode;
+
66 
+
67  int result = ::ioctlsocket(fd, FIONBIO, &mode);
+
68  if (result != NO_ERROR) {
+
69  return WindowsSocketError();
+
70  }
+
71  break;
+
72  }
+
73  }
+
74  return Nothing();
+
75 }
+
76 
+
77 
+
78 // NOTE: This is not supported on Windows.
+
79 inline Try<bool> isNonblock(const WindowsFD& fd)
+
80 {
+
81  VLOG(2) << "`os::isNonblock` has been called, but is a stub on Windows";
+
82  return true;
+
83 }
+
84 
+
85 } // namespace os {
+
86 
+
87 #endif // __STOUT_OS_WINDOWS_FCNTL_HPP__
Definition: fd.hpp:54
Definition: nothing.hpp:16
Definition: fd.hpp:53
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53d49db7/content/api/latest/c++/windows_2mktemp_8hpp_source.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/windows_2mktemp_8hpp_source.html b/content/api/latest/c++/windows_2mktemp_8hpp_source.html index 2633afa..1c5202b 100644 --- a/content/api/latest/c++/windows_2mktemp_8hpp_source.html +++ b/content/api/latest/c++/windows_2mktemp_8hpp_source.html @@ -147,7 +147,7 @@
bool isError() const
Definition: try.hpp:71
-
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:39
+
Try< int_fd > open(const std::string &path, int oflag, mode_t mode=0)
Definition: open.hpp:40
http://git-wip-us.apache.org/repos/asf/mesos-site/blob/53d49db7/content/api/latest/c++/windows_2shell_8hpp.html ---------------------------------------------------------------------- diff --git a/content/api/latest/c++/windows_2shell_8hpp.html b/content/api/latest/c++/windows_2shell_8hpp.html index 73f62cd..7560fab 100644 --- a/content/api/latest/c++/windows_2shell_8hpp.html +++ b/content/api/latest/c++/windows_2shell_8hpp.html @@ -59,19 +59,18 @@
#include <process.h>
#include <stdarg.h>
#include <algorithm>
+#include <array>
#include <map>
-#include <ostream>
#include <string>
-#include <tuple>
#include <vector>
#include <stout/error.hpp>
#include <stout/foreach.hpp>
#include <stout/option.hpp>
#include <stout/os.hpp>
-#include <stout/os/int_fd.hpp>
#include <stout/try.hpp>
-#include <stout/unimplemented.hpp>
#include <stout/windows.hpp>
+#include <stout/os/windows/fd.hpp>
+#include <stout/internal/windows/inherit.hpp>

Go to the source code of this file.

@@ -100,8 +99,8 @@ std::wstring > >  - - + +
 
std::wstring internal::windows::stringify_args (const std::vector< std::string > &argv)
 
Try< ProcessData > internal::windows::create_process (const std::string &command, const std::vector< std::string > &argv, const Option< std::map< std::string, std::string >> &environment, const bool create_suspended=false, const Option< std::tuple< int_fd, int_fd, int_fd >> pipes=None())
 
Try< ProcessData > internal::windows::create_process (const std::string &command, const std::vector< std::string > &argv, const Option< std::map< std::string, std::string >> &environment, const bool create_suspended=false, const Option< std::array< os::WindowsFD, 3 >> pipes=None())
 
template<typename... T>
Try< std::string > os::shell (const std::string &fmt, const T &...t)
 Runs a shell command with optional arguments. More...