summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Path.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For PR351:Reid Spencer2004-12-151-21/+99
| | | | | | | | | * Fix implementation and documentation about LLVMGCCDIR/bytecode-libs * Add the makeUnique method, replacement for getUniqueFilename in Support. * Add the sys::CopyFile function, replacement for CopyFile in Support. * Move GetLLVMConfigDir() into generic code area since its generic. llvm-svn: 18947
* For PR351:Reid Spencer2004-12-131-0/+36
| | | | | | | | | | Implement three new functions to allow setting access/permission bits on the file referenced by a path. The makeReadable and makeExecutable methods replace the FileUtilities MakeFileReadable and MakeFileExecutable functions. The makeWritable function is new and provided for consistency since Path has a writable() method. llvm-svn: 18907
* Remove an always false clause from an if statement.Reid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18885
* Fix a bug where directory names of length one or less where not setAlkis Evlogimenos2004-12-131-1/+1
| | | | | | properly (examples: "", ".", "a"). llvm-svn: 18883
* * Add a std::ostream inserter for sys::PathReid Spencer2004-12-131-1/+1
| | | | | | * Correct the std::string constructor to take a const reference. llvm-svn: 18877
* For PR351: \Reid Spencer2004-12-131-67/+54
| | | | | | | | * Remove IsLibrary and GetLibraryPath, replaced by FindLibrary in ../Path.cpp \ * Implement GetSystemLibraryPaths and GetBytecodeLibraryPaths, instead of the \ GetSystemLibraryPath1 and GetSystemLibraryPath2 methods llvm-svn: 18862
* Path::get -> Path::toStringReid Spencer2004-12-111-6/+9
| | | | llvm-svn: 18785
* Fix seriously broken implementation of GetMagicNumber.Reid Spencer2004-12-021-4/+6
| | | | llvm-svn: 18422
* * Use low-level unix I/O interface since we're on Unix.Reid Spencer2004-11-161-7/+17
| | | | | | * Don't use variable length arrays (replaced with alloca) llvm-svn: 17901
* Per code review:Reid Spencer2004-11-161-7/+4
| | | | | | | | | | | * Clean up the StatusInfo constructor to construct all members and give them reasonable values. * Get rid of the Vector typedef and make the interface to getDirectoryContent use a std::set instead of a std::vector so the dir content is sorted. * Make the getStatusInfo method const and not return a useless boolean. llvm-svn: 17872
* Implement functionality suggested from code review: getStatusInfo shouldReid Spencer2004-11-141-1/+4
| | | | | | returnn false if the file doesn't exist rather than throw ane exception. llvm-svn: 17809
* * Implement getDirectoryContents * Implement getStatusInfo * Implement ↵Reid Spencer2004-11-141-7/+81
| | | | | | setStatusInfo * Implement renameFile llvm-svn: 17780
* * Implement getStatusInfo for getting stat(2) like informationReid Spencer2004-11-091-5/+39
| | | | | | | * Implement createTemporaryFile for mkstemp(3) functionality * Fix isBytecodeFile to accept llvc magic # (compressed) as bytecode. llvm-svn: 17654
* Stop propagating method names that violate the coding standardReid Spencer2004-11-051-55/+55
| | | | llvm-svn: 17498
* Get rid of file descriptor leak in create_file.Reid Spencer2004-09-181-1/+3
| | | | llvm-svn: 16395
* Allow "bc" as suffix for bytecode files.Reid Spencer2004-09-161-0/+8
| | | | llvm-svn: 16381
* Implement the GetLibraryPath function.Reid Spencer2004-09-141-0/+45
| | | | llvm-svn: 16323
* Implemented support for detecting file types by magic number, strippingReid Spencer2004-09-111-0/+48
| | | | | | path and suffix to leave basename, and getting the DLL suffix. llvm-svn: 16289
* Changes For Bug 352Reid Spencer2004-09-011-1/+1
| | | | | | | | Move include/Config and include/Support into include/llvm/Config, include/llvm/ADT and include/llvm/Support. From here on out, all LLVM public header files must be under include/llvm/. llvm-svn: 16137
* Move the GetTemporaryDirectory function from "generic Unix" to platformReid Spencer2004-08-301-12/+0
| | | | | | specific. llvm-svn: 16119
* Revise the design of the Path concept per peer review. Too many changes toReid Spencer2004-08-291-86/+281
| | | | | | | | note individually but these essence of it is to not derive from std::string, clarify the interface, and provide better documentation. There is now also (untested) implementations for AIX, Darwin, and SunOS. llvm-svn: 16078
* Initial implementation of the Path operating system concept.Reid Spencer2004-08-251-0/+138
llvm-svn: 16048
OpenPOWER on IntegriCloud