Home | History | Annotate | Download | only in Unix

Lines Matching full:errmsg

96 static bool RedirectIO(const StringRef *Path, int FD, std::string* ErrMsg) {
109 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for "
116 MakeErrMsg(ErrMsg, "Cannot dup2");
125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
139 return MakeErrMsg(ErrMsg, "Cannot dup2", Err);
180 unsigned memoryLimit, std::string *ErrMsg) {
206 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
207 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
212 if (RedirectIO_PS(RedirectsStr[2], 2, ErrMsg, FileActions))
218 return !MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout", Err);
240 return !MakeErrMsg(ErrMsg, "posix_spawn failed", Err);
253 MakeErrMsg(ErrMsg, "Couldn't fork");
261 if (RedirectIO(redirects[0], 0, ErrMsg)) { return false; }
263 if (RedirectIO(redirects[1], 1, ErrMsg)) { return false; }
269 MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout");
274 if (RedirectIO(redirects[2], 2, ErrMsg)) { return false; }
313 std::string *ErrMsg) {
344 MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
346 MakeErrMsg(ErrMsg, "Child timed out", 0);
350 MakeErrMsg(ErrMsg, "Error waiting for child process");
361 // so we can return -1 for them and set ErrMsg informatively.
375 if (ErrMsg)
376 *ErrMsg = llvm::sys::StrError(ENOENT);
380 if (ErrMsg)
381 *ErrMsg = "Program could not be executed";
385 if (ErrMsg) {
386 *ErrMsg = strsignal(WTERMSIG(status));
389 *ErrMsg += " (core dumped)";
398 if (ErrMsg)
399 *ErrMsg = "Program::Wait is not implemented on this platform yet!";