History log of /external/llvm/lib/Support/Unix/PathV2.inc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
31675153bd2d7617db8cb6aeb58054934c7b9f73 24-Aug-2012 Stephen Hines <srhines@google.com> Merge branch 'upstream' into merge_2

Conflicts:
lib/Target/ARM/ARMCodeEmitter.cpp

Change-Id: I6702d340c733e9721499b5d85b13b96ad9c14eb5
118f194966d20460c2b1653e06c601e4b66c9b3f 15-Aug-2012 Michael J. Spencer <bigcheesegs@gmail.com> Properly test the LLVM_USE_RVALUE_REFERENCES macro.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161978 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
1ebd25e438444ae80ec3d9504fe2173b8306501d 15-Aug-2012 Michael J. Spencer <bigcheesegs@gmail.com> [PathV2] Add mapped_file_region. Implementation for Windows and POSIX.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
c103ede50b9a365aff93878508dee6b0e6c1cb94 10-Aug-2012 Joerg Sonnenberger <joerg@bec.de> stdcxx's cstdio doesn't include stdio.h, but the code using PathV2.inc
includes both. Deal with feof and ferror potentially being macros.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161658 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
7744acd1ab73b3eec6f1449f47083abe3fb1b527 03-Aug-2012 Shih-wei Liao <sliao@google.com> Merge with LLVM upstream r160668 (Jul 24th 2012)

Conflicts:
include/llvm/Support/ELF.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Support/Memory.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp

Change-Id: Iddd658cf2eadc7165b2805b446d31af2c5c9917f
ca077ec5ea41f4537ae58e141781be622d09c786 20-Jun-2012 Nick Kledzik <kledzik@apple.com> Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs and add unit test. Unix is implemented. Windows side needs to be implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
1222c5c121e1284e37ae91b22a5b8bf6803b077f 02-Jun-2012 Benjamin Kramer <benny.kra@googlemail.com> Use access(2) instead of stat(2) to check if a file exists.

Apart from being slightly cheaper, this fixes a real bug that hits 32 bit
linux systems. When passing a file larger than 2G to be linked (which isn't
that uncommon with large projects such as WebKit), clang's driver checks
if the file exists but the file size doesn't fit in an off_t and stat(2)
fails with EOVERFLOW. Clang then says that the file doesn't exist instead
of passing it to the linker.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
61aef8bdf7a60bb1ab510fee0c5b2792468aadd3 11-May-2012 Eric Christopher <echristo@apple.com> Allow unique_file to take a mode for file permissions, but default
to user only read/write.

Part of rdar://11325849

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
463a719d36fe8909377e839706fb49ed9103eba2 05-May-2012 Daniel Dunbar <daniel@zuster.org> [Support] Fix up comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
92bb514612a7d66a0695b257a3d8f0b9cebcf9d7 05-May-2012 Daniel Dunbar <daniel@zuster.org> [Support] Rewrite sys::fs::unique_file to not be stupid with /dev/urandom.
- Just use sys::Process::GetRandomNumber instead of having two poor
implementations.
- This is ~70 times (!) faster on my OS X machine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
cf5a1461acaace0f3e7d11fbbcfbf635b8c8ea9d 24-Apr-2012 Shih-wei Liao <sliao@google.com> Merge with LLVM upstream r155090.

Conflicts:
lib/Support/Unix/PathV2.inc

Change-Id: I7b89833849f6cbcfa958a33a971d0f7754c9cb2c
9dc06bd431c826f068a5217718e2171303782f7a 23-Apr-2012 Sylvestre Ledru <sylvestre@debian.org> Conflict with st_dev/st_ino identifiers under Debian GNU/Hurd

The problem is that the struct file_status on UNIX systems has two
members called st_dev and st_ino; those are also members of the
struct stat, and they are reserved identifiers which can also be
provided as #define (and this is the case for st_dev on Hurd).
The solution (attached) is to rename them, for example adding a
"fs_" prefix (= file status) to them.

Patch by Pino Toscano




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
6fc30c26b7fa9e89c4e9ab99b7feab11389cc3f4 11-Apr-2012 Sylvestre Ledru <sylvestre@debian.org> Fix the build under Debian GNU/Hurd.
Thanks to Pino Toscano for the patch



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154500 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
c02a5c5e8d9c1fd2a20ad4aed40f328564e95b40 05-Mar-2012 Stephen Hines <srhines@google.com> Merge branch 'upstream' into merge-20120305

Conflicts:
lib/Support/Atomic.cpp

Change-Id: I563b3bc2a82942ccbae5bed42e53b9149a8bf3a0
58604cd944eec4a75046076cb53eb708aaf2ee09 09-Feb-2012 David Blaikie <dblaikie@gmail.com> Change default error_code ctor to a 'named ctor' so it's more self-documenting.

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)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
a1e6e241a813f81be2d2f36ab60c950ca297574b 16-Dec-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream r146714 (Dec 16th 2011)

Change-Id: Ied458adb08bf9a69250cbcee9b14b44d17e8701a
7ae606a2a891707ad2e184b0e3baac0dce1b6c0f 12-Dec-2011 Chad Rosier <mcrosier@apple.com> Revert r146363 to allow buildbots to make forward progress.

Original commit message:
Support/FileSystem: Implement canonicalize.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
d45fbe62270eaf826419b93f1da66f1850f37faf 12-Dec-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Implement bool equivalent(file_status A, file_status B);

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
c3b00e80400d27d5d6152374d87c0ad5866c780c 12-Dec-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Implement canonicalize.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
a81ac8f2b5d4f61f7bc353f95cc1d0a05266f51c 08-Dec-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Implement recursive_directory_iterator and make
directory_iterator preserve InputIterator semantics on copy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
0ebc07a576037e4e36f68bf5cece32740ca120c0 19-Oct-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream 2011/10/20 (r142530)

Conflicts:
lib/Support/Unix/Host.inc

Change-Id: Idc00db3b63912dca6348bddd9f8a1af2a8d5d147
544e4124fe18804b8adcbb90993bbfa76a090763 14-Sep-2011 Bill Wendling <isanbard@gmail.com> Include limits.h to make sure PATH_MAX is known on Solaris 10.
Patch by Joakim Johansson!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139743 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
814450a429325339f5445f231c24ced1bf329422 28-Jul-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function.

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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136310 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
0a828fd7effe06a483c002a50228623552612a11 24-Mar-2011 Andrew Trick <atrick@apple.com> revert r128199 until it can be made to work with Frontend/dependency-gen.c.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
e1db1b8d4ee9c7584a2c1b3c79b0c01e468398dc 24-Mar-2011 Michael J. Spencer <bigcheesegs@gmail.com> Remove all uses of PATH_MAX and MAXPATHLEN from PathV2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128199 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
064185f43c8a2315d5d185b41c4cb9f447f8a89c 09-Mar-2011 Jush Lu <jush.msn@gmail.com> Add function prototype for truncate (which is missing from Bionic)
/external/llvm/lib/Support/Unix/PathV2.inc
f3e3f21db19512067ee9f6b7b99eae16d907bed2 10-Feb-2011 Douglas Gregor <dgregor@apple.com> Rip out realpath() support. It's expensive, and often a bad idea, and
I have another way to achieve the same goal.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
0bef1f3d1b64d40f21451ab56cdafe1fa794730d 10-Feb-2011 Cameron Zwarich <zwarich@apple.com> Attempt to fix the build after r125228.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125236 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
025feadb973272d5c5097bb72cb2f6fef44474d3 09-Feb-2011 Douglas Gregor <dgregor@apple.com> Add llvm::sys::path::canonical(), which provides the canonicalized
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?


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125228 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
283d49c7663dd1c2a73dbb18d6094d91f9555c72 16-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Fix rename.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
d6cdf1d3cb0263c413684aa20cb8aa91f9e128de 15-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Implement get_magic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123544 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
da7c1cab8c083e3370cc94a23bc396cd75b7f2a7 05-Jan-2011 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Implement directory iteration on POSIX.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
5029159fbe7c267c9322fc6c38064e9ab2ce91bc 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Change most functions in the path namespace to return their work
via their return value instead of an out parameter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
936671b2eaa0a6b27903f8d85a8f4b28fcf8ee84 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Remove the error_code return type from all functions in the path
namespace. None of them return anything except for success anyway. These will be
converted to returning their result soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121109 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
69cbbbf005e75547de5cf0620278a954b2e65add 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/Unix/PathV2: Return the real error from realpath instead of any error
that close or unlink set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121094 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
79c3c3a1dece6408e45933ba575e05ceb6208235 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/Unix/PathV2: Use 0770 instead of 0700 when creating a directory. Also use
the standard macros instead of octal notation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
fbd1bbd7fa0ca592d09edea557806da05084a432 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Use SmallVector::clear instead of set_size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121092 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
ad8a14f24eb3daee61c8076ff6e5a8135f4dd124 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Clarify and correct documentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121091 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
1522fce477f3b6b1b5812aa561ad2ff3f51eb968 07-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Move current_path from path to fs and fix the Unix implementation.

Unix bug spotted by Dan Gohman.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121090 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
9d425e7687c1701702a2874e09034ff1e573a769 04-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/PathV2: Remove redundant calls to make_error_code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
470ae13be812132097cf4c17a189c47def5c19a1 04-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add status implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
01a87c413d9fcf03e717c4ebde8554e986f6f7cb 04-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add file_size implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120867 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
b531f45a9dca5a2b8cc25d98f2fa9f0ab5955820 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add equivalent implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
3920d3b4f4310c1132d81b8d7c74c95111378680 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add resize_file implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
a50b98c517cc90e6c8929b721049c9a589682e6d 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add rename implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
106aa731bf86c632a6362497742c6df7bce61a07 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add remove implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120817 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
9b391c513e0051289c7013dd9917eb6176724920 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add create_symlink implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
d7b305f13ec1f53224c7eb8f4d3696eee5d10c40 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add create_hard_link implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120792 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
b83769f36afe5221ca6aa7741561801836a179cb 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add create_director{y,ies} implementations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120790 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
3cb84ef65dd417bc152fdaa173127966ca949318 03-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add unique_file and exists implementations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
871498e2cede09420fe70fb8aea99725a8422e94 01-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Fix copy_file implementation to use toNullTerminatedStringRef
instead of toStringRef. The file system APIs need c strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
bee0c38f595f52d424161dc1db9c0bfe61421957 01-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/FileSystem: Add copy_file implementation. Not tests yet because the
file creation APIs aren't implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc
dffde9964480f946d4308ce936b667b6c37b1059 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support: Add PathV2 implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/PathV2.inc