| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 49496
|
| |
|
|
| |
llvm-svn: 49354
|
| |
|
|
| |
llvm-svn: 49352
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This method allows one to create a directory, and optionally create all parent
directories that do not exist.
The original implementation would require that *all* directories along a path
are writable by the user, including directories that already exist. For example,
suppose we wanted to create the directory "/tmp/foo/bar", and the directory
"/tmp" already exists, but not "/tmp/foo". Since "/tmp" is writable by all
users, the original implementation would work, and create "/tmp/foo", followed
by "/tmp/bar".
A problem occurred, however if one wanted to created the directory
"/Users/myuser/bar" (or equivalently "/home/myuser/bar"), and "/Users/myuser"
already existed and is writable by the current user. The directory
"/User/myuser" is writable by the user, but "/User" is not. The original
implementation of createDirectoryOnDisk would return with failure since "/User"
is not writable, even though "/User/mysuser" is writable.
The new implementation works by recursively creating parents as needed, and thus
doesn't need to check the permissions on every directory in a path.
llvm-svn: 49162
|
| |
|
|
| |
llvm-svn: 49036
|
| |
|
|
| |
llvm-svn: 49035
|
| |
|
|
|
|
| |
provides fast MappedFile::getFile for large files.
llvm-svn: 49034
|
| |
|
|
| |
llvm-svn: 49030
|
| |
|
|
|
|
| |
space on Unix platforms.
llvm-svn: 49026
|
| |
|
|
|
|
|
| |
and shared. This complicates the design, is not used, and probably
doesn't even work.
llvm-svn: 49022
|
| |
|
|
|
|
|
|
| |
tons of out of date comments (really nothing throws here!) and fixes
some other fairly glaring issues: "size" used to return the size of
the file *and* change it, depending on how you called it.
llvm-svn: 49009
|
| |
|
|
|
|
| |
crash miscompilations.
llvm-svn: 49000
|
| |
|
|
| |
llvm-svn: 48743
|
| |
|
|
|
|
| |
instead of itself.
llvm-svn: 48677
|
| |
|
|
| |
llvm-svn: 48676
|
| |
|
|
|
|
| |
dynamic initialization.
llvm-svn: 48666
|
| |
|
|
| |
llvm-svn: 48328
|
| |
|
|
|
|
| |
main executable of a program. This needs to be implemented on windows.
llvm-svn: 47835
|
| |
|
|
| |
llvm-svn: 47662
|
| |
|
|
|
|
| |
program.
llvm-svn: 47161
|
| |
|
|
|
|
| |
Patch by Shantonu Sen.
llvm-svn: 46715
|
| |
|
|
| |
llvm-svn: 45418
|
| |
|
|
| |
llvm-svn: 45182
|
| |
|
|
| |
llvm-svn: 45168
|
| |
|
|
| |
llvm-svn: 44720
|
| |
|
|
|
|
| |
are strict about such things.
llvm-svn: 41956
|
| |
|
|
|
|
| |
Patch by Sterling Stein!
llvm-svn: 41758
|
| |
|
|
|
|
| |
below), should subsume Cygwin
llvm-svn: 37939
|
| |
|
|
|
|
| |
Almost all occurrences of "bytecode" in the sources have been eliminated.
llvm-svn: 37913
|
| |
|
|
| |
llvm-svn: 37410
|
| |
|
|
|
|
| |
multiple of the page size, due to a bug in MappedFile
llvm-svn: 36980
|
| |
|
|
| |
llvm-svn: 36846
|
| |
|
|
| |
llvm-svn: 36361
|
| |
|
|
|
|
| |
Implement the PathWithStatus class and its use throughout lib/System.
llvm-svn: 35742
|
| |
|
|
|
|
|
| |
avoids a call to ::fstat by MappedFile when the file size information was
already obtained by the Path object.
llvm-svn: 35477
|
| |
|
|
|
|
|
|
| |
Make the sys::Path::getFileStatus function more efficient by having it
return a pointer to the FileStatus structure rather than copy it. Adjust
uses of the function accordingly. Also, fix some memory issues in sys::Path.
llvm-svn: 35476
|
| |
|
|
|
|
|
| |
to the inode number on Unix and something far less unique on Windows. The
windows case needs to be improved.
llvm-svn: 35461
|
| |
|
|
|
|
|
|
|
| |
* Add a method: bool isAbsolute() const, which determines if the path name
is absolute or not.
* Implement caching of file status information in the Path object. Allow it
to be updated forcefully or lazily re-fetched from the cached value.
llvm-svn: 35456
|
| |
|
|
|
|
| |
is especially needed for bugpoint. This partly implements PR688
llvm-svn: 34349
|
| |
|
|
| |
llvm-svn: 32225
|
| |
|
|
| |
llvm-svn: 30321
|
| |
|
|
|
|
|
| |
the process in addition to disabling core file emission. This speeds up
bugpoint on default-configured macs by several orders of magnitude.
llvm-svn: 30317
|
| |
|
|
|
|
|
| |
Make the Win32 code exception free (untested/uncompiled) which forced some
interface changes which had ripple effect. This should be the last of 797.
llvm-svn: 29884
|
| |
|
|
|
|
|
| |
Final removal of exceptions from lib/System and adjustment of users to
accommodate.
llvm-svn: 29846
|
| |
|
|
|
|
|
| |
Eliminate exception throwing from Path::renamePathOnDisk and adjust its
users correspondingly.
llvm-svn: 29843
|
| |
|
|
|
|
| |
Remove exception throwing from Path::getDirectoryContents and its users.
llvm-svn: 29841
|
| |
|
|
|
|
|
| |
Remove exceptions from the Path::create*OnDisk methods. Update their users
to handle error messages via arguments and result codes.
llvm-svn: 29840
|
| |
|
|
|
|
| |
Change the Path::make*OnDisk methods exception free and adjust their usage.
llvm-svn: 29836
|
| |
|
|
|
|
| |
adjust users of it to compensate.
llvm-svn: 29831
|
| |
|
|
|
|
| |
just return MinTime if that should ever happen.
llvm-svn: 29826
|