Yet Another Robot Platform
Run.cpp File Reference
+ Include dependency graph for Run.cpp:

Go to the source code of this file.


#define C_MAXARGS   128
#define READ_FROM_PIPE   0
#define WRITE_TO_PIPE   1
#define REDIRECT_TO(from, to)   yarp::run::impl::dup2(to, from)


void sigstdio_handler (int sig)
static yarp::os::Bottle parsePaths (const std::string &txt)
static bool fileExists (const char *fname)
void sigint_handler (int sig)
static void sigchld_handler (int sig)
void splitLine (char *pLine, char **pArgs)
 Split a line into separate words. More...
void parseArguments (char *io_pLine, int *o_pArgc, char **o_pArgv)
 Breaks up a line into multiple arguments. More...


static RunTerminatorpTerminator = nullptr
constexpr fs::value_type slash = fs::preferred_separator
constexpr fs::value_type sep = fs::path_separator

Macro Definition Documentation


#define C_MAXARGS   128

Definition at line 47 of file Run.cpp.


#define READ_FROM_PIPE   0

Definition at line 63 of file Run.cpp.


#define REDIRECT_TO (   from,
)    yarp::run::impl::dup2(to, from)

Definition at line 65 of file Run.cpp.


#define WRITE_TO_PIPE   1

Definition at line 64 of file Run.cpp.

Function Documentation

◆ fileExists()

static bool fileExists ( const char *  fname)

Definition at line 126 of file Run.cpp.

◆ parseArguments()

void parseArguments ( char *  io_pLine,
int *  o_pArgc,
char **  o_pArgv 

Breaks up a line into multiple arguments.

Definition at line 2364 of file Run.cpp.

◆ parsePaths()

static yarp::os::Bottle parsePaths ( const std::string &  txt)

Definition at line 103 of file Run.cpp.

◆ sigchld_handler()

static void sigchld_handler ( int  sig)

Definition at line 822 of file Run.cpp.

◆ sigint_handler()

void sigint_handler ( int  sig)

Definition at line 463 of file Run.cpp.

◆ sigstdio_handler()

void sigstdio_handler ( int  sig)

Definition at line 88 of file Run.cpp.

◆ splitLine()

void splitLine ( char *  pLine,
char **  pArgs 

Split a line into separate words.

Definition at line 2344 of file Run.cpp.

Variable Documentation

◆ pTerminator

RunTerminator* pTerminator = nullptr

Definition at line 86 of file Run.cpp.

◆ sep

constexpr fs::value_type sep = fs::path_separator

Definition at line 101 of file Run.cpp.

◆ slash

constexpr fs::value_type slash = fs::preferred_separator

Definition at line 100 of file Run.cpp.