| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
Add a Mutex class for thread synchronization in a platform-independent way.
The current implementation only supports pthreads. Win32 use of Critical
Sections will be added later. The design permits other threading models to
be used if (and only if) pthreads is not available.
llvm-svn: 22403
|
|
|
|
|
|
| |
2. Fix bug in eraseSuffix where it allows /path/.suffix to become /path/
llvm-svn: 22362
|
|
|
|
|
|
| |
exist but just return false instead.
llvm-svn: 22361
|
|
|
|
|
|
|
|
|
|
| |
1. Use isValid() to check validity of the resulting path name in the
eraseSuffix even though we can't think of a case where eraseSuffix could
possibly cause an invalid path name.
2. Rewrite isValid() to not use the deprecated realpath function any more.
It now just uses isascii to make sure all the characters are legit.
llvm-svn: 22359
|
|
|
|
| |
llvm-svn: 22357
|
|
|
|
| |
llvm-svn: 22355
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This chagne just renames some sys::Path methods to ensure they are not
misused. The Path documentation now divides methods into two dimensions:
Path/Disk and accessor/mutator. Path accessors and mutators only operate
on the Path object itself without making any disk accesses. Disk accessors
and mutators will also access or modify the file system. Because of the
potentially destructive nature of disk mutators, it was decided that all
such methods should end in the work "Disk" to ensure the user recognizes
that the change will occur on the file system. This patch makes that
change. The method name changes are:
makeReadable -> makeReadableOnDisk
makeWriteable -> makeWriteableOnDisk
makeExecutable -> makeExecutableOnDisk
setStatusInfo -> setStatusInfoOnDisk
createDirectory -> createDirectoryOnDisk
createFile -> createFileOnDisk
createTemporaryFile -> createTemporaryFileOnDisk
destroy -> eraseFromDisk
rename -> renamePathOnDisk
These changes pass the Linux Deja Gnu tests.
llvm-svn: 22354
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of the difference between file paths and directory paths. The Path
class now simply stores a path that can refer to either a file or a
directory. This required various changes in the implementation and interface
of the class with the corresponding impact to its users. Doxygen comments were
also updated to reflect these changes. Interface changes are:
appendDirectory -> appendComponent
appendFile -> appendComponent
elideDirectory -> eraseComponent
elideFile -> eraseComponent
elideSuffix -> eraseSuffix
renameFile -> rename
setDirectory -> set
setFile -> set
Changes pass Dejagnu and llvm-test/SingleSource tests.
llvm-svn: 22349
|
|
|
|
|
|
|
|
|
|
|
| |
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
llvm-svn: 22345
|
|
|
|
|
|
| |
configure seems to find it on Cygwin but linking against it fails.
llvm-svn: 22189
|
|
|
|
| |
llvm-svn: 22081
|
|
|
|
| |
llvm-svn: 21704
|
|
|
|
| |
llvm-svn: 21453
|
|
|
|
| |
llvm-svn: 21422
|
|
|
|
|
|
| |
methods that were recently added to the interface.
llvm-svn: 21401
|
|
|
|
|
|
|
|
| |
Standardize the error messages to be in "path: what failed: why" format.
Also attempt to use the correct errno to ThrowErrno in situations where
the errno value is erased by subsequent system calls.
llvm-svn: 21385
|
|
|
|
|
|
|
| |
Allow the ThrowErrno function to optionally accept an error number
parameter so that callers can specify the error number to be used.
llvm-svn: 21384
|
|
|
|
|
|
| |
result in returning executable files that won't be runnable.
llvm-svn: 21378
|
|
|
|
|
|
| |
Patch by Markus Oberhumer.
llvm-svn: 21377
|
|
|
|
|
|
| |
Thanks to Markus Oberhumer for the patch!
llvm-svn: 21370
|
|
|
|
| |
llvm-svn: 20397
|
|
|
|
| |
llvm-svn: 20184
|
|
|
|
|
|
| |
This causes garbage to be printed out after error messages.
llvm-svn: 20165
|
|
|
|
| |
llvm-svn: 19605
|
|
|
|
| |
llvm-svn: 19544
|
|
|
|
|
|
|
| |
gdb debugger doesn't get confused on which file it is reading (the one in
lib/System or the one in lib/System/{Win32,Unix})
llvm-svn: 19426
|
|
|
|
|
|
| |
on 64-bit Windows.
llvm-svn: 19393
|
|
|
|
|
|
| |
console or not.
llvm-svn: 19233
|
|
|
|
| |
llvm-svn: 19201
|
|
|
|
|
|
|
|
|
|
| |
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Account for variations in time.h and sys/time.h inclusion.
* Add macros for getting wait(2) exit status correctly (per autoconf sugg.)
* Implement ThrowErrno in terms of strerror_r, strerror or none based on
what is available on the platform.
llvm-svn: 19161
|
|
|
|
|
|
| |
* Remove redundant #includes that are now in Unix.h
llvm-svn: 19160
|
|
|
|
|
|
|
| |
* Move implementation of sys::PreventCoreFiles function to this file from
the now defunct SysConfig abstraction.
llvm-svn: 19159
|
|
|
|
|
|
|
| |
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Ensure variations in "dirent" structure are accounted for.
llvm-svn: 19158
|
|
|
|
|
|
|
| |
* Ensure #includes are wrapped with appropriate HAVE_ guards
* Consolidate implementation from operating system specific directory.
llvm-svn: 19157
|
|
|
|
|
|
| |
* Ensure #includes are wrapped with appropriate HAVE_ guards
llvm-svn: 19156
|
|
|
|
|
|
|
|
| |
SysConf abstraction was pointless because it had a single function in it that
pertained only to the current process. So merge it into the Process abstraction
and remove the files completely.
llvm-svn: 19149
|
|
|
|
|
|
|
|
| |
Merge implementations of isValid and GetTemporaryDirectory into this file. There
is not any point having the operating system specific files for such little
variation between the Unix family of systems.
llvm-svn: 19134
|
|
|
|
|
|
|
| |
is now implemented via ltdl.cpp which has its own way of dealing with
the different platforms.
llvm-svn: 19129
|
|
|
|
| |
llvm-svn: 19079
|
|
|
|
| |
llvm-svn: 19074
|
|
|
|
|
|
| |
the ru_maxrss field as an approximation.
llvm-svn: 19072
|
|
|
|
| |
llvm-svn: 19071
|
|
|
|
|
|
|
|
| |
* Implement GetMallocUsage to get usage of malloc heap
* Implement GetMemoryUsage to get total memory usage of process
* Implement GetTimeUsage to get elapsed/user/system time
llvm-svn: 19055
|
|
|
|
|
|
|
| |
* llvm/Config/alloca.h already #includes config.h
* Minor readability/stylistic changes
llvm-svn: 19048
|
|
|
|
| |
llvm-svn: 19046
|
|
|
|
| |
llvm-svn: 19045
|
|
|
|
|
|
|
| |
Move the functionality of RunProgramWithTimeout into the ExecuteAndWait
function: support a timeout and I/O redirects
llvm-svn: 19043
|
|
|
|
|
|
| |
Add a needed include.
llvm-svn: 19042
|
|
|
|
|
|
| |
const because they affect the file system, not the Path object.
llvm-svn: 18973
|
|
|
|
|
|
| |
because LLVM should be agnostic to the needs of specific front ends.
llvm-svn: 18968
|