Lines Matching full:terminator
12 #include "terminator.h"
62 const Descriptor *intVal, std::int64_t value, Terminator &terminator) { in CheckAndStoreIntToDescriptor() argument
64 StoreIntToDescriptor(intVal, value, terminator); in CheckAndStoreIntToDescriptor()
71 const Descriptor *cmdmsg, Terminator &terminator) { in TerminationCheck() argument
79 terminator.Crash("Command line execution is not supported, system " in TerminationCheck()
82 StoreIntToDescriptor(cmdstat, NO_SUPPORT_ERR, terminator); in TerminationCheck()
95 terminator.Crash("errno to char msg failed."); in TerminationCheck()
97 terminator, std::strlen(msg) + std::strlen(err_buffer) + 1))}; in TerminationCheck()
101 terminator.Crash(newMsg); in TerminationCheck()
103 StoreIntToDescriptor(cmdstat, EXECL_ERR, terminator); in TerminationCheck()
115 terminator.Crash( in TerminationCheck()
118 StoreIntToDescriptor(cmdstat, INVALID_CL_ERR, terminator); in TerminationCheck()
126 terminator.Crash("Command line execution failed with exit code: 1."); in TerminationCheck()
128 StoreIntToDescriptor(cmdstat, COMMAND_EXECUTION_ERR, terminator); in TerminationCheck()
134 terminator.Crash("Command cannot be executed with exit code: 126."); in TerminationCheck()
136 StoreIntToDescriptor(cmdstat, COMMAND_CANNOT_EXECUTE_ERR, terminator); in TerminationCheck()
142 terminator.Crash("Command not found with exit code: 127."); in TerminationCheck()
144 StoreIntToDescriptor(cmdstat, COMMAND_NOT_FOUND_ERR, terminator); in TerminationCheck()
151 terminator.Crash( in TerminationCheck()
154 StoreIntToDescriptor(cmdstat, INVALID_CL_ERR, terminator); in TerminationCheck()
163 terminator.Crash("Killed by signal: %d", WTERMSIG(status)); in TerminationCheck()
165 StoreIntToDescriptor(cmdstat, SIGNAL_ERR, terminator); in TerminationCheck()
174 terminator.Crash("Stopped by signal: %d", WSTOPSIG(status)); in TerminationCheck()
176 StoreIntToDescriptor(cmdstat, SIGNAL_ERR, terminator); in TerminationCheck()
187 Terminator terminator{sourceFile, line}; in RTNAME() local
189 command.OffsetElement(), command.ElementBytes(), terminator)}; in RTNAME()
192 RUNTIME_CHECK(terminator, IsValidIntDescriptor(exitstat)); in RTNAME()
196 RUNTIME_CHECK(terminator, IsValidIntDescriptor(cmdstat)); in RTNAME()
198 StoreIntToDescriptor(cmdstat, CMD_EXECUTED, terminator); in RTNAME()
202 RUNTIME_CHECK(terminator, IsValidCharDescriptor(cmdmsg)); in RTNAME()
209 TerminationCheck(status, cmdstat, cmdmsg, terminator)}; in RTNAME()
211 CheckAndStoreIntToDescriptor(exitstat, exitStatusVal, terminator); in RTNAME()
224 terminator, std::strlen(prefix) + std::strlen(newCmd) + 1))}; in RTNAME()
231 AllocateMemoryOrCrash(terminator, sizeNeeded * sizeof(wchar_t)))}; in RTNAME()
233 terminator.Crash("Char to wide char failed for newCmd"); in RTNAME()
244 terminator.Crash( in RTNAME()
247 StoreIntToDescriptor(cmdstat, ASYNC_NO_SUPPORT_ERR, terminator); in RTNAME()
256 terminator.Crash("Fork failed with pid: %d.", pid); in RTNAME()
258 StoreIntToDescriptor(cmdstat, FORK_ERR, terminator); in RTNAME()
265 terminator.Crash("setsid() failed with errno: %d, asynchronous " in RTNAME()
269 StoreIntToDescriptor(cmdstat, ASYNC_NO_SUPPORT_ERR, terminator); in RTNAME()
276 TerminationCheck(status, cmdstat, cmdmsg, terminator); in RTNAME()