summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
...
* Add checks for __OpenBSD__.Jeff Cohen2006-04-171-1/+1
| | | | llvm-svn: 27761
* Add the README files to the distribution.Reid Spencer2006-04-131-1/+1
| | | | llvm-svn: 27651
* Convert llvm.cs.uiuc.edu -> llvm.orgReid Spencer2006-03-141-1/+1
| | | | llvm-svn: 26748
* Add AddSymbol() method to DynamicLibrary to work around Windows limitationJeff Cohen2006-01-302-0/+21
| | | | | | | of being unable to search for symbols in an EXE. It will also allow other existing hacks to be improved. llvm-svn: 25805
* Fix indentation.Jeff Cohen2006-01-291-4/+4
| | | | llvm-svn: 25795
* 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
* Implement a generic polled Alarm function. This merely removes the systemReid Spencer2005-12-223-0/+138
| | | | | | | dependent portion of the lib/Support/SlowOperationTimer code into the lib/System implementation where it can be ported to different platforms. llvm-svn: 24937
* instead of using mstats, use malloc_zone_statistics which returns numbersChris Lattner2005-11-141-4/+8
| | | | | | that actually make sense. llvm-svn: 24352
* Teach -track-memory to work on darwin. Looking at sbrk doesn't work becauseChris Lattner2005-11-141-10/+12
| | | | | | the default allocator uses mmap. llvm-svn: 24349
* DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE nowChris Lattner2005-10-241-1/+1
| | | | llvm-svn: 23940
* Only build .a file versions of these libraries, instead of .a and .o versions.Chris Lattner2005-10-241-0/+1
| | | | | | This should speed up build times. llvm-svn: 23937
* For PR616:Reid Spencer2005-08-241-3/+17
| | | | | | | | | | These patches make threading optional in LLVM. The configuration scripts are now modified to accept a --disable-threads switch. If this is used, the Mutex class will be implemented with all functions as no-op. Furthermore, linking against libpthread will not be done. Finally, the ParallelJIT example needs libpthread so its makefile was changed to always add -lpthread to the link line. llvm-svn: 23003
* Fix grammar: it's == "it is".Misha Brukman2005-08-021-1/+1
| | | | llvm-svn: 22587
* It's dangerous coding on Mondays.Jeff Cohen2005-08-021-8/+5
| | | | llvm-svn: 22585
* Implement SetInterruptFunction for Windows.Jeff Cohen2005-08-021-1/+25
| | | | llvm-svn: 22582
* Implement sys::SetInterruptFunction on Unix, stub it on win32 so that theChris Lattner2005-08-022-2/+22
| | | | | | build will not fail llvm-svn: 22578
* support near allocations for the JITAndrew Lenharth2005-07-292-4/+12
| | | | llvm-svn: 22554
* Fix a problem in getDirectoryContents where sub-directory names wereReid Spencer2005-07-281-6/+14
| | | | | | | | | appended to a path string that didn't end in a slash, yielding invalid path names. Path contribute by Nicholas Riley. llvm-svn: 22539
* Eliminate all remaining tabs and trailing spaces.Jeff Cohen2005-07-271-7/+7
| | | | llvm-svn: 22523
* Eliminate tabs and trailing spaces.Jeff Cohen2005-07-271-132/+132
| | | | llvm-svn: 22520
* Don't call pthread_mutexattr_setpshared on FreeBSD because its implementationReid Spencer2005-07-131-0/+2
| | | | | | of pthreads is missing that call (despite it violating the spec). llvm-svn: 22423
* Note to self: don't introduce memory leaks.Jeff Cohen2005-07-131-0/+1
| | | | llvm-svn: 22422
* Win32 support for Mutex class.Jeff Cohen2005-07-133-12/+28
| | | | llvm-svn: 22420
* For PR540:Reid Spencer2005-07-123-0/+233
| | | | | | | | | Add a Mutex class for thread synchronization in a platform-independent way. The current implementation only supports pthreads. Win32 use of Critical Sections will be added later. The design permits other threading models to be used if (and only if) pthreads is not available. llvm-svn: 22403
* Fix bugs also fixed in Unix version, plus other general cleanup.Jeff Cohen2005-07-091-17/+61
| | | | llvm-svn: 22363
* 1. Fix bug in getBaseName where it mishandles suffixesJeff Cohen2005-07-091-2/+6
| | | | | | 2. Fix bug in eraseSuffix where it allows /path/.suffix to become /path/ llvm-svn: 22362
* Ensure that functions like isDirectory don't fail if the file doesn'tReid Spencer2005-07-082-1/+19
| | | | | | exist but just return false instead. llvm-svn: 22361
* Two changes:Reid Spencer2005-07-081-7/+11
| | | | | | | | | | 1. Use isValid() to check validity of the resulting path name in the eraseSuffix even though we can't think of a case where eraseSuffix could possibly cause an invalid path name. 2. Rewrite isValid() to not use the deprecated realpath function any more. It now just uses isascii to make sure all the characters are legit. llvm-svn: 22359
* Stamp out tabsJeff Cohen2005-07-082-20/+19
| | | | llvm-svn: 22357
* Make Win32 implementation conform to new paradigmJeff Cohen2005-07-082-50/+61
| | | | llvm-svn: 22356
* Fix eraseSuffix()Jeff Cohen2005-07-081-10/+6
| | | | llvm-svn: 22355
* Final Changes For PR495:Reid Spencer2005-07-083-22/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* Fix VC++ breakageJeff Cohen2005-07-083-13/+10
| | | | llvm-svn: 22353
* Changes to mimic those in Unix/Path.inc in support of PR495. This hasn'tReid Spencer2005-07-071-155/+94
| | | | | | been compiled or tested. llvm-svn: 22350
* For PR495:Reid Spencer2005-07-075-139/+94
| | | | | | | | | | | | | | | | | | | | | 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-074-17/+17
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* Put in a hack for Cygwin that prevents mkdtemp from being used sinceReid Spencer2005-06-021-0/+5
| | | | | | configure seems to find it on Cygwin but linking against it fails. llvm-svn: 22189
* comment the hpux bitDuraid Madina2005-05-161-0/+1
| | | | llvm-svn: 22081
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-0523-23/+0
| | | | llvm-svn: 21704
* Silence gcc-4.0.0 warnings.Alkis Evlogimenos2005-04-221-4/+4
| | | | llvm-svn: 21453
* Remove trailing whitespaceMisha Brukman2005-04-2111-45/+45
| | | | llvm-svn: 21422
* Provide an implementation of the GetCurrentUserId and GetCurrentGroupIdReid Spencer2005-04-212-0/+20
| | | | | | methods that were recently added to the interface. llvm-svn: 21401
* For Bug 543:Reid Spencer2005-04-211-24/+24
| | | | | | | | Standardize the error messages to be in "path: what failed: why" format. Also attempt to use the correct errno to ThrowErrno in situations where the errno value is erased by subsequent system calls. llvm-svn: 21385
* For Bug 543:Reid Spencer2005-04-211-6/+8
| | | | | | | Allow the ThrowErrno function to optionally accept an error number parameter so that callers can specify the error number to be used. llvm-svn: 21384
* 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
* Do not mark directories as `executable', we only want program filesMisha Brukman2005-04-201-0/+4
| | | | | | Patch by Markus Oberhumer. llvm-svn: 21377
* Ignore dangling symlinks in getDirectoryContents()Misha Brukman2005-04-201-3/+8
| | | | | | Thanks to Markus Oberhumer for the patch! llvm-svn: 21370
* Eliminate tabsJeff Cohen2005-04-112-5/+5
| | | | llvm-svn: 21216
* Be slightly more accurate in an error message.Reid Spencer2005-03-021-1/+1
| | | | llvm-svn: 20397
* Fix silly mistake.Jeff Cohen2005-02-201-1/+1
| | | | llvm-svn: 20256
OpenPOWER on IntegriCloud