| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 100933
|
|
|
|
|
|
| |
cppcheck, PR6617. Patch by Ettl Martin!
llvm-svn: 98525
|
|
|
|
|
|
| |
Kees van Reeuwijk!
llvm-svn: 95946
|
|
|
|
| |
llvm-svn: 94743
|
|
|
|
|
|
| |
not to work any more on linux.
llvm-svn: 86481
|
|
|
|
|
|
|
|
|
|
|
| |
prevents it being correct within a multithreaded context.
This address: PR 5277 (Program::Wait is unsafe to call from multiple threads).
Note: If waitpid() turns out to be non-portable, we can add more autoconf magic, or look into
another solution.
llvm-svn: 84903
|
|
|
|
|
|
| |
ExecuteAndWait.
llvm-svn: 82522
|
|
|
|
|
|
|
| |
GetProcessId was introduced only in XP. As a bonus, this change makes Program
objects copyable, since Program is now basically a PID.
llvm-svn: 81826
|
|
|
|
|
|
| |
Thanks to Duncan Sands for spotting this.
llvm-svn: 81328
|
|
|
|
| |
llvm-svn: 81252
|
|
|
|
| |
llvm-svn: 81249
|
|
|
|
| |
llvm-svn: 81247
|
|
|
|
| |
llvm-svn: 81246
|
|
|
|
|
|
| |
equivalent to SIG_IGN.
llvm-svn: 81144
|
|
|
|
|
|
| |
about by icc (#593, partial). Patch by Erick Tryzelaar.
llvm-svn: 81115
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
forcing them down into various .cpp files.
This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
instead.
4. Weans llvm-db off <iostream>
sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.
llvm-svn: 79869
|
|
|
|
| |
llvm-svn: 78215
|
|
|
|
|
|
|
| |
fork call. This eliminates a need for <iostream>. Also remove
needless fsync calls.
llvm-svn: 78131
|
|
|
|
|
|
| |
Add a comment explaining why.
llvm-svn: 78128
|
|
|
|
|
|
| |
and 126 if it is not executable.
llvm-svn: 78120
|
|
|
|
|
|
|
| |
distinguish that the result is errno, so it can't use it to provide more
information about the error (it also exposes the numeric value of errno).
llvm-svn: 78098
|
|
|
|
| |
llvm-svn: 77953
|
|
|
|
|
|
|
| |
slashes, just go with it, regardless of whether it looks like it will
be executable. This follows the behavior of sh(1) more closely.
llvm-svn: 77396
|
|
|
|
|
|
|
| |
This fixes clang on non-darwin platforms if a file called 'ld' or 'as'
is in the working directory. Based on patch by Pawel Worach!
llvm-svn: 77379
|
|
|
|
|
|
|
| |
Implemented by moving the code out of static functions into methods of Program
class.
llvm-svn: 76340
|
|
|
|
| |
llvm-svn: 76229
|
|
|
|
| |
llvm-svn: 75055
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang: error: unable to make temporary file: /etc/cc: can't make
unique filename: Permission denied
instead of
clang: error: unable to make temporary file: /etc/cc: can't make
unique filenamePermission denied
for example.
Also, audited the uses of MakeErrMsg to make the prefix strings
consistent (not end with newline/punctuation/space/": ").
llvm-svn: 69626
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
error that caused it to redirect stderr to stdout too often.
This fix is applied identically to the win32 code as well, but that is
untested.
--Thi line, and those below, will be ignored--
M System/Unix/Program.inc
M System/Win32/Program.inc
llvm-svn: 52233
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
functional changes. Win32 code is untested, but should work fine.
In the unix variant, rename RedirectFD to RedirectIO and let that function
handle empty and null paths instead of doing that in the caller 3 times. This
is the same as win32 already does it.
In the win32 variant, use Path::isEmpty() instead of checking the resulting
c_str() manually. This is the same as unix already does it.
llvm-svn: 52230
|
|
|
|
| |
llvm-svn: 51709
|
|
|
|
|
|
| |
function to flush a specified std::ostream.
llvm-svn: 51705
|
|
|
|
| |
llvm-svn: 50659
|
|
|
|
|
|
| |
Patch by Shantonu Sen.
llvm-svn: 46715
|
|
|
|
| |
llvm-svn: 45418
|
|
|
|
|
|
| |
are strict about such things.
llvm-svn: 41956
|
|
|
|
|
|
| |
below), should subsume Cygwin
llvm-svn: 37939
|
|
|
|
| |
llvm-svn: 37410
|
|
|
|
| |
llvm-svn: 36361
|
|
|
|
|
|
| |
is especially needed for bugpoint. This partly implements PR688
llvm-svn: 34349
|
|
|
|
|
|
|
| |
Fix a bug in my last patch that botched file redirection by using explicit
scoping of if statements.
llvm-svn: 29815
|
|
|
|
|
|
|
| |
Remove all exception code from Program.inc and implement its new interface
with an ErrMsg string argument.
llvm-svn: 29790
|
|
|
|
|
|
|
|
| |
Make sys::Program::ExecuteAndWait not throw exceptions and update any
affected code. It now return -9999 to signal that the program couldn't be
executed. Only one case (in bugpoint) actually examines the result code.
llvm-svn: 29785
|
|
|
|
| |
llvm-svn: 29129
|
|
|
|
|
|
|
| |
Use execve when explicit environment variables ptr is available. Otherwise
just use execv.
llvm-svn: 28740
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide new llvm::sys::Program facilities for converting the stdout and
stdin to binary mode. There is no standard way to do this and the available
mechanisms are platform specific. Adjust the bytecode reader and writer to
use these methods when their input is stdin or output is stdout. THis avoids
the problem with \n writing CRLF to a bytecode file on windows.
Patch Contributed by Michael Smith.
llvm-svn: 28722
|
|
|
|
|
|
|
|
| |
* Allow the ExecuteAndWait to return negative values if a signal is
detected as the reason for the child termination. This is needed to
support bugpoint detecting bad things in its child processes.
llvm-svn: 24960
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:
appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set
Changes pass Dejagnu and llvm-test/SingleSource tests.
llvm-svn: 22349
|
|
|
|
|
|
|
|
|
|
|
| |
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
llvm-svn: 22345
|
|
|
|
| |
llvm-svn: 21704
|