summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Program.inc
Commit message (Collapse)AuthorAgeFilesLines
* Fix redirection of stderr in sys::Program::ExecuteAndWait. There was logicMatthijs Kooijman2008-06-121-4/+11
| | | | | | | | | | | | | 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
* Make I/O redirection handling in sys::Program a bit more consistent. NoMatthijs Kooijman2008-06-121-21/+13
| | | | | | | | | | | | | 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
* Unbreak build.Bill Wendling2008-05-291-3/+3
| | | | llvm-svn: 51709
* Remove more iostream header includes. Needed to implement a "FlushStream"Bill Wendling2008-05-291-3/+3
| | | | | | function to flush a specified std::ostream. llvm-svn: 51705
* Fix more -Wshorten-64-to-32 warnings.Evan Cheng2008-05-051-1/+1
| | | | llvm-svn: 50659
* Set error message.Devang Patel2008-02-041-2/+4
| | | | | | Patch by Shantonu Sen. llvm-svn: 46715
* Remove attribution from file headers, per discussion on llvmdev.Chris Lattner2007-12-291-2/+2
| | | | llvm-svn: 45418
* Remove spurious consts. This fixes warnings with compilers thatDan Gohman2007-09-141-2/+2
| | | | | | are strict about such things. llvm-svn: 41956
* Solaris 2.x does not have RLIMIT_RSS, check for this symbol (analog NetBSD ↵Gabor Greif2007-07-061-1/+1
| | | | | | below), should subsume Cygwin llvm-svn: 37939
* Fix LLVM build on NetBSD. Patch by Neil Booth.Devang Patel2007-06-041-0/+2
| | | | llvm-svn: 37410
* Cygwin doesn't have the RSS_LIMIT for get/setrlimit.Reid Spencer2007-04-231-0/+2
| | | | llvm-svn: 36361
* Add possibility to set memory limit for binaries run via libSystem. ThisAnton Korobeynikov2007-02-161-0/+30
| | | | | | is especially needed for bugpoint. This partly implements PR688 llvm-svn: 34349
* For PR797:Reid Spencer2006-08-221-8/+13
| | | | | | | Fix a bug in my last patch that botched file redirection by using explicit scoping of if statements. llvm-svn: 29815
* For PR797:Reid Spencer2006-08-211-23/+36
| | | | | | | Remove all exception code from Program.inc and implement its new interface with an ErrMsg string argument. llvm-svn: 29790
* For PR797:Reid Spencer2006-08-211-1/+1
| | | | | | | | 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
* Turn an if into an else if.Chris Lattner2006-07-121-2/+2
| | | | llvm-svn: 29129
* Don't pull in environ, not always safe. Global variables are bad anyway.Evan Cheng2006-06-091-8/+4
| | | | | | | Use execve when explicit environment variables ptr is available. Otherwise just use execv. llvm-svn: 28740
* For PR787:Reid Spencer2006-06-071-0/+8
| | | | | | | | | | | | 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
* For PR351:Reid Spencer2005-12-221-7/+12
| | | | | | | | * 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
* For PR495:Reid Spencer2005-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | 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
* For PR495:Reid Spencer2005-07-071-3/+3
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-051-1/+0
| | | | llvm-svn: 21704
* Add FIXME by Markus Oberhumer from bug 545: not checking for "." in $PATH mayMisha Brukman2005-04-201-0/+2
| | | | | | result in returning executable files that won't be runnable. llvm-svn: 21378
* Fix bugpointChris Lattner2005-01-161-2/+1
| | | | llvm-svn: 19605
* Rename Unix/*.cpp and Win32/*.cpp to have a *.inc suffix so that the sillyReid Spencer2005-01-091-0/+225
gdb debugger doesn't get confused on which file it is reading (the one in lib/System or the one in lib/System/{Win32,Unix}) llvm-svn: 19426
OpenPOWER on IntegriCloud