summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/PathV2.inc
Commit message (Collapse)AuthorAgeFilesLines
* Change default error_code ctor to a 'named ctor' so it's more self-documenting.David Blaikie2012-02-091-17/+17
| | | | | | | | | | | Unify default construction of error_code uses on this idiom so that users don't feel compelled to make static globals for naming convenience. (unfortunately I couldn't make the original ctor private as some APIs don't return their result, instead using an out parameter (that makes sense to default construct) - which is a bit of a pity. I did, however, find/fix some cases of unnecessary default construction of error_code before I hit the unfixable cases) llvm-svn: 150197
* Revert r146363 to allow buildbots to make forward progress.Chad Rosier2011-12-121-7/+0
| | | | | | | Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378
* Support/FileSystem: Implement bool equivalent(file_status A, file_status B);Michael J. Spencer2011-12-121-21/+13
| | | | llvm-svn: 146364
* Support/FileSystem: Implement canonicalize.Michael J. Spencer2011-12-121-0/+7
| | | | llvm-svn: 146363
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-081-3/+4
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* Include limits.h to make sure PATH_MAX is known on Solaris 10.Bill Wendling2011-09-141-0/+3
| | | | | | Patch by Joakim Johansson! llvm-svn: 139743
* Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function.Argyrios Kyrtzidis2011-07-281-8/+11
| | | | | | | If true and 'model' parameter is not an absolute path, a temp directory will be prepended. Make it true by default to match current behaviour. llvm-svn: 136310
* revert r128199 until it can be made to work with Frontend/dependency-gen.c.Andrew Trick2011-03-241-5/+9
| | | | llvm-svn: 128218
* Remove all uses of PATH_MAX and MAXPATHLEN from PathV2.Michael J. Spencer2011-03-241-9/+5
| | | | llvm-svn: 128199
* Rip out realpath() support. It's expensive, and often a bad idea, andDouglas Gregor2011-02-091-30/+0
| | | | | | I have another way to achieve the same goal. llvm-svn: 125239
* Attempt to fix the build after r125228.Cameron Zwarich2011-02-091-2/+2
| | | | llvm-svn: 125236
* Add llvm::sys::path::canonical(), which provides the canonicalizedDouglas Gregor2011-02-091-0/+30
| | | | | | | | | | name of a path, after resolving symbolic links and eliminating excess path elements such as "foo/../" and "./". This routine still needs a Windows implementation, but I don't have a Windows machine available. Help? Please? llvm-svn: 125228
* Fix rename.Michael J. Spencer2011-01-161-2/+11
| | | | llvm-svn: 123604
* Support/PathV2: Implement get_magic.Michael J. Spencer2011-01-151-0/+31
| | | | llvm-svn: 123544
* Support/PathV2: Implement directory iteration on POSIX.Michael J. Spencer2011-01-051-0/+54
| | | | llvm-svn: 122879
* Support/PathV2: Change most functions in the path namespace to return their workMichael J. Spencer2010-12-071-2/+1
| | | | | | via their return value instead of an out parameter. llvm-svn: 121149
* Support/PathV2: Remove the error_code return type from all functions in the pathMichael J. Spencer2010-12-071-3/+3
| | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109
* Support/Unix/PathV2: Return the real error from realpath instead of any errorMichael J. Spencer2010-12-071-1/+2
| | | | | | that close or unlink set. llvm-svn: 121094
* Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. ↵Michael J. Spencer2010-12-071-1/+1
| | | | | | | | Also use the standard macros instead of octal notation. llvm-svn: 121093
* Support/PathV2: Use SmallVector::clear instead of set_size.Michael J. Spencer2010-12-071-2/+2
| | | | llvm-svn: 121092
* Support/PathV2: Clarify and correct documentation.Michael J. Spencer2010-12-071-0/+5
| | | | llvm-svn: 121091
* Support/PathV2: Move current_path from path to fs and fix the Unix ↵Michael J. Spencer2010-12-071-11/+13
| | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090
* Support/PathV2: Remove redundant calls to make_error_code.Michael J. Spencer2010-12-041-21/+21
| | | | llvm-svn: 120913
* Support/FileSystem: Add status implementation.Michael J. Spencer2010-12-041-0/+32
| | | | llvm-svn: 120870
* Support/FileSystem: Add file_size implementation.Michael J. Spencer2010-12-041-0/+14
| | | | llvm-svn: 120867
* Support/FileSystem: Add equivalent implementation.Michael J. Spencer2010-12-031-0/+25
| | | | llvm-svn: 120827
* Support/FileSystem: Add resize_file implementation.Michael J. Spencer2010-12-031-0/+10
| | | | llvm-svn: 120819
* Support/FileSystem: Add rename implementation.Michael J. Spencer2010-12-031-0/+13
| | | | llvm-svn: 120818
* Support/FileSystem: Add remove implementation.Michael J. Spencer2010-12-031-0/+14
| | | | llvm-svn: 120817
* Support/FileSystem: Add create_symlink implementation.Michael J. Spencer2010-12-031-0/+13
| | | | llvm-svn: 120800
* Support/FileSystem: Add create_hard_link implementation.Michael J. Spencer2010-12-031-0/+13
| | | | llvm-svn: 120792
* Support/FileSystem: Add create_director{y,ies} implementations.Michael J. Spencer2010-12-031-0/+14
| | | | llvm-svn: 120790
* Support/FileSystem: Add unique_file and exists implementations.Michael J. Spencer2010-12-031-2/+129
| | | | llvm-svn: 120776
* Support/FileSystem: Fix copy_file implementation to use ↵Michael J. Spencer2010-12-011-2/+2
| | | | | | | | toNullTerminatedStringRef instead of toStringRef. The file system APIs need c strings. llvm-svn: 120601
* Support/FileSystem: Add copy_file implementation. Not tests yet because theMichael J. Spencer2010-12-011-0/+92
| | | | | | file creation APIs aren't implemented. llvm-svn: 120593
* Support: Add PathV2 implementation.Michael J. Spencer2010-11-291-0/+39
llvm-svn: 120329
OpenPOWER on IntegriCloud