YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PlatformUnistd.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_RUN_IMPL_PLATFORMUNISTD_H
7#define YARP_RUN_IMPL_PLATFORMUNISTD_H
8
10
11namespace yarp::run::impl {
12
13#if defined(YARP_HAS_ACE)
14 using ACE_OS::fork;
15 using ACE_OS::pipe;
16 using ACE_OS::dup;
17 using ACE_OS::dup2;
18 using ACE_OS::execvp;
19
20 // ACE version of execl/execlp/execle are just fake implementation, see
21 // https://github.com/DOCGroup/ACE_TAO/issues/409
22 // https://github.com/DOCGroup/ACE_TAO/blob/ACE%2BTAO-6_4_3/ACE/ace/OS_NS_unistd.cpp#L227
23 // (last ACE version tested: 6.4.3).
24 // This is not a big issue since (at the moment) it is used only in
25 // #if !defined(_WIN32) branches, but we might need to fix this at some
26 // point.
27 using ::execlp;
28#else
29 using ::fork;
30 using ::pipe;
31 using ::dup;
32 using ::dup2;
33 using ::execlp;
34 using ::execvp;
35#endif
36
37} // namespace yarp::run::impl
38
39
40#endif // YARP_RUN_IMPL_PLATFORMUNISTD_H