MCPcopy Create free account
hub / github.com/boostorg/build / exec_check

Function exec_check

v2/engine/execunix.c:99–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 */
98
99int exec_check
100(
101 string const * command,
102 LIST * * pShell,
103 int * error_length,
104 int * error_max_length
105)
106{
107 int const is_raw_cmd = is_raw_command_request( *pShell );
108
109 /* We allow empty commands for non-default shells since we do not really
110 * know what they are going to do with such commands.
111 */
112 if ( !command->size && ( is_raw_cmd || list_empty( *pShell ) ) )
113 return EXEC_CHECK_NOOP;
114
115 return is_raw_cmd
116 ? EXEC_CHECK_OK
117 : check_cmd_for_too_long_lines( command->value, MAXLINE, error_length,
118 error_max_length );
119}
120
121
122/*

Callers

nothing calls this directly

Calls 2

is_raw_command_requestFunction · 0.85

Tested by

no test coverage detected