Displaying 4 results from an estimated 4 matches for "makeerrmsg".
2009 Jul 17
1
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
...ute()) {
if (ErrMsg)
*ErrMsg = path.toString() + " is not executable";
- return;
+ return 0;
}
// Create a child process.
- int child = fork();
+ ProcessID child = fork();
switch (child) {
// An error occured: Return to the caller.
case -1:
MakeErrMsg(ErrMsg, "Couldn't fork");
- return;
+ return 0;
// Child process: Execute the program.
case 0: {
// Redirect file descriptors...
if (redirects) {
// Redirect stdin
- if (RedirectIO(redirects[0], 0, ErrMsg)) { return; }
+ if (R...
2009 Jul 17
0
[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
....toString() + " is not executable";
> - return;
> + return 0;
> }
>
> // Create a child process.
> - int child = fork();
> + ProcessID child = fork();
> switch (child) {
> // An error occured: Return to the caller.
> case -1:
> MakeErrMsg(ErrMsg, "Couldn't fork");
> - return;
> + return 0;
>
> // Child process: Execute the program.
> case 0: {
> // Redirect file descriptors...
> if (redirects) {
> // Redirect stdin
> - if (RedirectIO(redirects[0],...
2009 Jul 17
3
[LLVMdev] [PATCH 1/2] Trailing whitespace.
---
include/llvm/System/Program.h | 8 ++++----
lib/System/Unix/Program.inc | 30 +++++++++++++++---------------
2 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h
index 49de7cf..14f9e9e 100644
--- a/include/llvm/System/Program.h
+++ b/include/llvm/System/Program.h
@@ -97,12 +97,12 @@ namespace sys {
///
2009 Nov 25
0
[LLVMdev] [llvm-commits] [llvm] r89765 - in /llvm/trunk: include/llvm/System/Path.h lib/System/Unix/Path.inc lib/System/Win32/Path.inc
...>> bool
>>> +Path::isSpecialFile() const {
>>> + // Get the status so we can determine if its a file or directory
>>> + struct stat buf;
>>> + std::string *ErrStr;
>>> +
>>> + if (0 != stat(path.c_str(), &buf)) {
>>> + MakeErrMsg(ErrStr, path + ": can't get status of file");
>>> + return true;
>>> + }
>>> +
>>> + if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode)) {
>>> + return false;
>>> + }
>>> +
>>> + return true;
>>>...