summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Path.inc
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-896/+0
| | | | llvm-svn: 120298
* Add method for checking if a path is a symbolic link.Rafael Espindola2010-11-071-0/+9
| | | | llvm-svn: 118367
* Delete unused variables.Dan Gohman2010-11-031-3/+0
| | | | llvm-svn: 118128
* Remove several unhelpful checks for isValid from sys::Path.Dan Gohman2010-11-031-26/+4
| | | | llvm-svn: 118127
* Don't try to enforce MAXPATHLEN in sys::Path for Unix. OS's can checkDan Gohman2010-11-021-4/+6
| | | | | | limits on their own. llvm-svn: 118113
* Simplify.Dan Gohman2010-11-021-2/+1
| | | | llvm-svn: 118110
* Fix a copy+pasto.Dan Gohman2010-11-021-1/+2
| | | | llvm-svn: 118106
* Avoid manipulating paths in fixed-sized arrays.Dan Gohman2010-11-021-10/+6
| | | | llvm-svn: 118105
* Simplify this code.Dan Gohman2010-11-021-6/+3
| | | | llvm-svn: 118102
* Use '\0' instead of 0 for nul character constants.Dan Gohman2010-11-021-3/+3
| | | | llvm-svn: 118096
* appendSuffix: don't append a dot when the suffix is empty.Mikhail Glushenkov2010-11-021-12/+0
| | | | | | | Additionally, move the implementation of appendSuffix to Path.cpp: it is platform-independent. llvm-svn: 118089
* Eliminate some temporary std::strings.Dan Gohman2010-11-021-4/+4
| | | | llvm-svn: 118086
* Micro-optimize.Dan Gohman2010-11-021-1/+1
| | | | llvm-svn: 118058
* Path: Add GetEXESuffix() to complement GetDLLSuffix().Mikhail Glushenkov2010-11-021-0/+4
| | | | llvm-svn: 118042
* Correctly check if a path is a directory. Fix by Brian Korver.Evan Cheng2010-10-071-1/+1
| | | | llvm-svn: 115991
* Issue a #error if the host doesn't have an implementation forDan Gohman2010-09-071-0/+2
| | | | | | GetMainExecutable yet. llvm-svn: 113240
* Apply a patch from Kees van Reeuwijk to add support for Minix.Dan Gohman2010-09-021-3/+3
| | | | | | | Minix apparently doesn't like double-slash separators, and there's no apparent need for them here. llvm-svn: 112844
* Some fixes for NetBSDAnton Korobeynikov2010-08-311-3/+3
| | | | llvm-svn: 112662
* Eliminate unnecessary empty string literals.Dan Gohman2010-08-041-2/+2
| | | | llvm-svn: 110183
* improve Path::makeUnique when mkstemp/mktemp are not availableChris Lattner2010-07-121-7/+12
| | | | | | patch by Lasse Kärkkäinen in PR7404. llvm-svn: 108110
* Don't bother clearing the Magic string when the magic numberDan Gohman2010-05-271-3/+1
| | | | | | can't be read, since it isn't cleared on other error paths. llvm-svn: 104852
* This doesn't need SmallVector.h anymore.Dan Gohman2010-04-191-1/+0
| | | | llvm-svn: 101790
* Fix this for std::vectors which don't have .data().Dan Gohman2010-04-191-1/+1
| | | | llvm-svn: 101785
* Revert 91528 and use a std::vector instead, fixing an abuse of std::string.Dan Gohman2010-04-191-10/+16
| | | | llvm-svn: 101781
* Fix a grammaro.Dan Gohman2010-03-301-2/+2
| | | | llvm-svn: 99917
* Make Path use StringRef instead of std::string where possible.Jeffrey Yasskin2009-12-171-18/+18
| | | | llvm-svn: 91620
* remove use of SmallVector from Path::makeUnique. Path::makeUniqueChris Lattner2009-12-161-14/+10
| | | | | | is not used by anything performance sensitive, so just use std::string. llvm-svn: 91528
* eliminate an extraneous use of SmallVector in a case whereChris Lattner2009-12-161-6/+4
| | | | | | a fixed size buffer is perfectly fine. llvm-svn: 91527
* Remove spurious extern.Daniel Dunbar2009-12-091-1/+1
| | | | llvm-svn: 90937
* Remove dead returns.Benjamin Kramer2009-11-291-2/+0
| | | | llvm-svn: 90083
* This patch ensures that Path::GetMainExecutable is able to handle theKovarththanan Rajaratnam2009-11-291-2/+6
| | | | | | | | | case where realpath() fails. When this occurs we segfault trying to create a std::string from a NULL pointer. Fixes PR5635. llvm-svn: 90082
* API change Path::isSpecialFile to Path::isRegularFile, improve semantics in ↵Edward O'Callaghan2009-11-251-5/+5
| | | | | | regards to comments from 89765 post review. llvm-svn: 89848
* Remove bogus error handling code.Daniel Dunbar2009-11-241-6/+2
| | | | llvm-svn: 89786
* Provide Path::isSpecialFile interface for PR5568.Edward O'Callaghan2009-11-241-2/+20
| | | | llvm-svn: 89765
* Add a shortcut for OS X to Path::GetMainExecutable. This gives a nice speedup onBenjamin Kramer2009-09-091-1/+15
| | | | | | clang's testsuite. llvm-svn: 81333
* remove the last uses of Config/alloca.hChris Lattner2009-08-231-3/+7
| | | | llvm-svn: 79873
* Prune #includes from llvm/Linker.h and llvm/System/Path.h,Chris Lattner2009-08-231-7/+7
| | | | | | | | | | | | | | | | | | 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
* Minor code simplification.Dan Gohman2009-08-051-4/+2
| | | | llvm-svn: 78239
* Remove another F_OK.Dan Gohman2009-07-291-1/+1
| | | | llvm-svn: 77405
* It isn't necessary to use F_OK when using R_OK or similar.Dan Gohman2009-07-281-2/+2
| | | | llvm-svn: 77392
* Improve sys::Path::makeAbsolute on Win32.Daniel Dunbar2009-07-121-0/+13
| | | | | | | | - Patch by Viktor Kutuzov! - Minor tweak by me to add llvm_unreachable calls on FIXMEd error paths. llvm-svn: 75424
* "UNIX paths can contain non-ASCII characters, so Path::isValid() should not ↵Chris Lattner2009-07-121-9/+1
| | | | | | | | reject paths with such characters in them. The attached patch removes the check from Path::isValid()." patch by Benjamin Kramer! llvm-svn: 75421
* add a new static method to portably determine whether a patch isChris Lattner2009-06-151-0/+8
| | | | | | absolute or not, based on a patch by Gregory Curfman! llvm-svn: 73368
* Untabification.Bill Wendling2009-05-301-42/+41
| | | | llvm-svn: 72604
* Make Unix.h:MakeErrMsg separate the prefix and errno string, so we get:Daniel Dunbar2009-04-201-3/+3
| | | | | | | | | | | | | | | | | 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
* Fix main executable path name resolution on FreeBSD, patch by Chris Lattner2009-03-021-1/+60
| | | | | | Ed Schouten! llvm-svn: 65882
* If an executable is run through a symlink, dladdr will return theChris Lattner2009-02-191-3/+8
| | | | | | | | symlink. We really want the ultimate executable being run, not the symlink. This lets clang find its headers when invoked through a symlink. rdar://6602012 llvm-svn: 65017
* Fix warning on gcc 4.3.Mikhail Glushenkov2009-02-151-1/+4
| | | | | | "system() declared with attribute warn_unused_result." llvm-svn: 64574
* Whitespace fixes.Mikhail Glushenkov2009-02-151-58/+58
| | | | llvm-svn: 64573
* add a helper method to sys::Path for clang, patch byChris Lattner2008-08-111-0/+6
| | | | | | Kovarththanan Rajaratnam! llvm-svn: 54655
OpenPOWER on IntegriCloud