summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
Commit message (Collapse)AuthorAgeFilesLines
...
* add some #includes.Chris Lattner2008-04-011-2/+8
| | | | llvm-svn: 49036
* MappedFile is dead, remove it.Chris Lattner2008-04-011-97/+0
| | | | llvm-svn: 49035
* Implement Path::MapInFilePages/UnMapFilePages on unix, which Chris Lattner2008-04-012-7/+11
| | | | | | provides fast MappedFile::getFile for large files. llvm-svn: 49034
* Stub out some sys::Path::MapInFilePages/UnMapFilePages methods.Chris Lattner2008-04-011-0/+10
| | | | llvm-svn: 49030
* Make MappedFile::map return a const correct pointer, don't leak address ↵Chris Lattner2008-04-011-1/+2
| | | | | | space on Unix platforms. llvm-svn: 49026
* Remove MappedFile support for mapping files for write and execChris Lattner2008-04-011-64/+6
| | | | | | | and shared. This complicates the design, is not used, and probably doesn't even work. llvm-svn: 49022
* cleanup the MappedFile API and comments. This removes and updatesChris Lattner2008-04-011-66/+67
| | | | | | | | tons of out of date comments (really nothing throws here!) and fixes some other fairly glaring issues: "size" used to return the size of the file *and* change it, depending on how you called it. llvm-svn: 49009
* Actually disable crash reporting on Mac OS X, returning bugpoint to speedyNate Begeman2008-03-311-23/+6
| | | | | | crash miscompilations. llvm-svn: 49000
* Revert r48676. I had plans for using it, but now it's just dead code.Owen Anderson2008-03-241-47/+0
| | | | llvm-svn: 48743
* Add a comment, and fix a bug where AllocateRW recurred to AllocateRWX ↵Owen Anderson2008-03-221-1/+1
| | | | | | instead of itself. llvm-svn: 48677
* Add an AllocateRW to match AllocateRWX.Owen Anderson2008-03-221-0/+47
| | | | llvm-svn: 48676
* Avoid calling array_endof in a static initializer, as it incursDan Gohman2008-03-211-2/+2
| | | | | | dynamic initialization. llvm-svn: 48666
* Fix Path::GetMainExecutable on cygwin, patch by Sam Bishop.Chris Lattner2008-03-131-1/+10
| | | | llvm-svn: 48328
* Stub out a Path::GetMainExecutable call to find the path to theChris Lattner2008-03-031-0/+18
| | | | | | main executable of a program. This needs to be implemented on windows. llvm-svn: 47835
* Add path separator support, patch by Sam Bishop. Chris Lattner2008-02-271-19/+2
| | | | llvm-svn: 47662
* It is not safe to call fork in PrintStackTrace. Sometimes it freezes the ↵Lauro Ramos Venancio2008-02-151-44/+2
| | | | | | program. llvm-svn: 47161
* 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-2910-20/+20
| | | | llvm-svn: 45418
* Added "GetCurrentDirectory()" to sys::Path.Ted Kremenek2007-12-181-0/+10
| | | | llvm-svn: 45182
* Added "isDirectory" method to llvm::sys::Path.Ted Kremenek2007-12-181-0/+8
| | | | llvm-svn: 45168
* Remove dead file and directory.Chris Lattner2007-12-081-30/+0
| | | | llvm-svn: 44720
* Remove spurious consts. This fixes warnings with compilers thatDan Gohman2007-09-141-2/+2
| | | | | | are strict about such things. llvm-svn: 41956
* Add lengthof and endof templates that hide a lot of sizeof computations.Owen Anderson2007-09-071-3/+4
| | | | | | Patch by Sterling Stein! llvm-svn: 41758
* 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
* Here is the bulk of the sanitizing.Gabor Greif2007-07-051-1/+1
| | | | | | Almost all occurrences of "bytecode" in the sources have been eliminated. llvm-svn: 37913
* Fix LLVM build on NetBSD. Patch by Neil Booth.Devang Patel2007-06-041-0/+2
| | | | llvm-svn: 37410
* Fix a bug where the bcreader could crash on .bc files that were an exactChris Lattner2007-05-111-0/+1
| | | | | | multiple of the page size, due to a bug in MappedFile llvm-svn: 36980
* pull some win32 code into common code, add bitcode identification support.Chris Lattner2007-05-061-31/+0
| | | | llvm-svn: 36846
* Cygwin doesn't have the RSS_LIMIT for get/setrlimit.Reid Spencer2007-04-231-0/+2
| | | | llvm-svn: 36361
* For PR1291:Reid Spencer2007-04-072-47/+54
| | | | | | Implement the PathWithStatus class and its use throughout lib/System. llvm-svn: 35742
* Use the stat information in the Path object, if it is already obtained. ThisReid Spencer2007-03-291-4/+3
| | | | | | | avoids a call to ::fstat by MappedFile when the file size information was already obtained by the Path object. llvm-svn: 35477
* For PR789:Reid Spencer2007-03-292-34/+39
| | | | | | | | Make the sys::Path::getFileStatus function more efficient by having it return a pointer to the FileStatus structure rather than copy it. Adjust uses of the function accordingly. Also, fix some memory issues in sys::Path. llvm-svn: 35476
* Add a uniqueID field to the FileStatus structure for Paths. This will mapReid Spencer2007-03-291-0/+1
| | | | | | | to the inode number on Unix and something far less unique on Windows. The windows case needs to be improved. llvm-svn: 35461
* For PR789:Reid Spencer2007-03-291-12/+22
| | | | | | | | | * Add a method: bool isAbsolute() const, which determines if the path name is absolute or not. * Implement caching of file status information in the Path object. Allow it to be updated forcefully or lazily re-fetched from the cached value. llvm-svn: 35456
* 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
* Eliminate "control reaches end of non-void function" warnings.Reid Spencer2006-12-051-0/+3
| | | | llvm-svn: 32225
* Use new config.h macroChris Lattner2006-09-141-2/+2
| | | | llvm-svn: 30321
* On Mac OS/X, make Process::PreventCoreFiles disable crash reporter forChris Lattner2006-09-141-7/+29
| | | | | | | the process in addition to disabling core file emission. This speeds up bugpoint on default-configured macs by several orders of magnitude. llvm-svn: 30317
* For PR797:Reid Spencer2006-08-253-9/+16
| | | | | | | Make the Win32 code exception free (untested/uncompiled) which forced some interface changes which had ripple effect. This should be the last of 797. llvm-svn: 29884
* For PR797:Reid Spencer2006-08-233-109/+63
| | | | | | | Final removal of exceptions from lib/System and adjustment of users to accommodate. llvm-svn: 29846
* For PR797:Reid Spencer2006-08-232-36/+24
| | | | | | | Eliminate exception throwing from Path::renamePathOnDisk and adjust its users correspondingly. llvm-svn: 29843
* For PR797:Reid Spencer2006-08-231-5/+8
| | | | | | Remove exception throwing from Path::getDirectoryContents and its users. llvm-svn: 29841
* For PR797:Reid Spencer2006-08-231-15/+22
| | | | | | | Remove exceptions from the Path::create*OnDisk methods. Update their users to handle error messages via arguments and result codes. llvm-svn: 29840
* For PR797:Reid Spencer2006-08-221-9/+18
| | | | | | Change the Path::make*OnDisk methods exception free and adjust their usage. llvm-svn: 29836
* Make the sys::Path::GetTemporaryDirectory method not throw exceptions andReid Spencer2006-08-221-23/+30
| | | | | | adjust users of it to compensate. llvm-svn: 29831
* Don't throw needlessly. Failure of gettimeofday is *very* unlinkely soReid Spencer2006-08-221-2/+7
| | | | | | just return MinTime if that should ever happen. llvm-svn: 29826
* For PR797:Reid Spencer2006-08-221-10/+15
| | | | | | Make MappedFile not throw any exceptions. llvm-svn: 29816
* 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
* Make an error message a little more intelligible.Reid Spencer2006-08-221-1/+1
| | | | llvm-svn: 29808
* For PR797:Reid Spencer2006-08-212-23/+67
| | | | | | | Remove all exception code from Program.inc and implement its new interface with an ErrMsg string argument. llvm-svn: 29790
OpenPOWER on IntegriCloud