- Apr 05, 2013
-
-
rdar://problem/13551789Douglas Gregor authored
If the directory that will contain the unique file doesn't exist when we tried to create the file, but another process creates it before we get a chance to try creating it, we would bail out rather than try to create the unique file. llvm-svn: 178908
-
- Mar 14, 2013
-
-
Michael J. Spencer authored
Clients of MemoryBuffer::getOpenFile expect it not to take ownership of the file descriptor passed in. So don't. llvm-svn: 176995
-
- Feb 28, 2013
-
-
Argyrios Kyrtzidis authored
[PathV2] In llvm::sys::fs::unique_file, make sure it doesn't fall into an infinite loop by constantly trying to create the parent path. This can happen if the path is a relative filename and the current directory was removed. Thanks to Daniel D. for the hint in fixing it. llvm-svn: 176226
-
- Jan 10, 2013
-
-
Douglas Gregor authored
failing to create the unique file because the path doesn't exist, don't fail if someone else manages to create the path before we do. llvm-svn: 172032
-
- Jan 01, 2013
-
-
Chandler Carruth authored
users over to the new one. No sense maintaining this "compatibility" layer it seems. llvm-svn: 171331
-
- Nov 30, 2012
-
-
Chandler Carruth authored
Rationale: 1) This was the name in the comment block. ;] 2) It matches Clang's __has_feature naming convention. 3) It matches other compiler-feature-test conventions. Sorry for the noise. =] I've also switch the comment block to use a \brief tag and not duplicate the name. llvm-svn: 168996
-
- Nov 15, 2012
-
-
Daniel Dunbar authored
- The code could infinite loop trying to create unique files, if the directory containing the unique file exists, but open() calls on non-existent files in the path return ENOENT. This is true on the /dev/fd filesystem, for example. - Will add a clang side test case for this. llvm-svn: 168081
-
- Aug 15, 2012
-
-
Michael J. Spencer authored
llvm-svn: 161978
-
Michael J. Spencer authored
llvm-svn: 161976
-
- Aug 10, 2012
-
-
Joerg Sonnenberger authored
includes both. Deal with feof and ferror potentially being macros. llvm-svn: 161658
-
- Jun 20, 2012
-
-
Nick Kledzik authored
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. llvm-svn: 158770
-
- Jun 02, 2012
-
-
Benjamin Kramer authored
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. llvm-svn: 157891
-
- May 11, 2012
-
-
Eric Christopher authored
to user only read/write. Part of rdar://11325849 llvm-svn: 156591
-
- May 05, 2012
-
-
Daniel Dunbar authored
llvm-svn: 156239
-
Daniel Dunbar authored
- Just use sys::Process::GetRandomNumber instead of having two poor implementations. - This is ~70 times (!) faster on my OS X machine. llvm-svn: 156238
-
- Apr 23, 2012
-
-
Sylvestre Ledru authored
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 llvm-svn: 155354
-
- Apr 11, 2012
-
-
Sylvestre Ledru authored
Thanks to Pino Toscano for the patch llvm-svn: 154500
-
- Feb 09, 2012
-
-
David Blaikie authored
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
-
- Dec 12, 2011
-
-
Chad Rosier authored
Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378
-
Michael J. Spencer authored
llvm-svn: 146364
-
Michael J. Spencer authored
llvm-svn: 146363
-
- Dec 08, 2011
-
-
Michael J. Spencer authored
directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
-
- Sep 14, 2011
-
-
Bill Wendling authored
Patch by Joakim Johansson! llvm-svn: 139743
-
- Jul 28, 2011
-
-
Argyrios Kyrtzidis authored
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
-
- Mar 24, 2011
-
-
Andrew Trick authored
llvm-svn: 128218
-
Michael J. Spencer authored
llvm-svn: 128199
-
- Feb 10, 2011
-
-
Douglas Gregor authored
I have another way to achieve the same goal. llvm-svn: 125239
-
Cameron Zwarich authored
llvm-svn: 125236
-
- Feb 09, 2011
-
-
Douglas Gregor authored
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
-
- Jan 16, 2011
-
-
Michael J. Spencer authored
llvm-svn: 123604
-
- Jan 15, 2011
-
-
Michael J. Spencer authored
llvm-svn: 123544
-
- Jan 05, 2011
-
-
Michael J. Spencer authored
llvm-svn: 122879
-
- Dec 07, 2010
-
-
Michael J. Spencer authored
via their return value instead of an out parameter. llvm-svn: 121149
-
Michael J. Spencer authored
namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109
-
Michael J. Spencer authored
that close or unlink set. llvm-svn: 121094
-
Michael J. Spencer authored
the standard macros instead of octal notation. llvm-svn: 121093
-
Michael J. Spencer authored
llvm-svn: 121092
-
Michael J. Spencer authored
llvm-svn: 121091
-
Michael J. Spencer authored
Unix bug spotted by Dan Gohman. llvm-svn: 121090
-
- Dec 04, 2010
-
-
Michael J. Spencer authored
llvm-svn: 120913
-