create_pipe.hpp
Go to the documentation of this file.
1// Copyright (c) 2006, 2007 Julio M. Merino Vidal
2// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
3// Copyright (c) 2009 Boris Schaeling
4// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
5// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
6//
7// Distributed under the Boost Software License, Version 1.0. (See accompanying
8// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
10/**
11 * \file boost/process/create_pipe.hpp
12 *
13 * Defines a function to create a pipe.
14 */
15
16#pragma once
17
19
20#include BOOST_PROCESS_PLATFORM_PROMOTE_PATH(create_pipe)
21BOOST_PROCESS_PLATFORM_PROMOTE_NAMESPACE(create_pipe)
22
23#if defined(BOOST_PROCESS_DOXYGEN)
24namespace boost
25{
26 namespace process
27 {
28
29 /**
30 * Creates an anonymous pipe.
31 *
32 * \note On Windows anonymous pipes don't support
33 * asynchronous I/O.
34 *
35 * \throws boost::system::system_error in case of an error
36 */
37 pipe create_pipe();
38
39 /**
40 * Creates an anonymous pipe.
41 *
42 * \note On Windows anonymous pipes don't support
43 * asynchronous I/O.
44 */
45 pipe create_pipe(boost::system::error_code& ec);
46
47 } // namespace process
48} // namespace boost
49#endif
Defines various macros.