summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Remove automatic insertion of CFE's lib directory into the bytecode pathReid Spencer2004-12-151-7/+0
| | | | | | because LLVM should be agnostic to the needs of specific front ends. llvm-svn: 18968
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-152-6/+16
| | | | | | | | | | createTemporaryFile semantics where it doesn't create a fully unique name if the basename doesn't exist. This functionality is now optionally provided by the boolean reuse_current parameter to createTemporaryFile and makeUnique. The default values differ because of the way these functions are used in LLVM. llvm-svn: 18961
* Make Win32 TimeValue::toString() re-entrant and work with mingwJeff Cohen2004-12-151-5/+9
| | | | llvm-svn: 18954
* Fix VC++ compilation errorsJeff Cohen2004-12-152-6/+3
| | | | llvm-svn: 18953
* For PR351:Reid Spencer2004-12-153-22/+131
| | | | | | | | | * 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
* Add the getMagicNumber method.Reid Spencer2004-12-141-0/+19
| | | | | | Patch contributed by Henrik Bach. Thanks Henrik! llvm-svn: 18933
* Implement Win32 Path::getStatusInfo(), TimeValue::toString()Jeff Cohen2004-12-143-9/+50
| | | | llvm-svn: 18930
* For PR351:Reid Spencer2004-12-142-5/+12
| | | | | | Implement the new environment pointer for ExecuteAndWait llvm-svn: 18928
* For PR351:Reid Spencer2004-12-132-0/+45
| | | | | | | | | | 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
* Genericize implementation of GetDLLSuffix now that we have LTDL_SHLIB_EXTReid Spencer2004-12-139-40/+6
| | | | | | available. llvm-svn: 18904
* Fix a bug where "." or any single character file name doesn't get theReid Spencer2004-12-131-1/+1
| | | | | | terminating / when setDirectory is called. llvm-svn: 18886
* 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-132-2/+2
| | | | | | * Correct the std::string constructor to take a const reference. llvm-svn: 18877
* Fix recent breakage of win32 buildJeff Cohen2004-12-132-9/+1
| | | | llvm-svn: 18876
* Implement new functions per new interfaceReid Spencer2004-12-131-55/+48
| | | | llvm-svn: 18866
* 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
* For PR351: \Reid Spencer2004-12-131-0/+31
| | | | | | | | * Move generic isArchive method here from Unix/Path.cpp \ * Implement isDynamicLibrary \ * Implement FindLibrary for Linker llvm-svn: 18861
* Make the size() method constReid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18852
* Rename Path::get -> Path::toStringReid Spencer2004-12-114-12/+14
| | | | llvm-svn: 18802
* Path::get -> Path::toStringReid Spencer2004-12-114-15/+21
| | | | llvm-svn: 18785
* Fix residual Visual Studio build problemsJeff Cohen2004-12-091-11/+7
| | | | llvm-svn: 18688
* Make this work with the ICC compiler, contributed by Bjørn WennbergChris Lattner2004-12-081-0/+1
| | | | llvm-svn: 18626
* Fix compilation error on Darwin.Chris Lattner2004-12-041-15/+18
| | | | llvm-svn: 18485
* Move darwin-specific majik here.Chris Lattner2004-12-031-5/+27
| | | | llvm-svn: 18466
* Fix seriously broken implementation of GetMagicNumber.Reid Spencer2004-12-021-4/+6
| | | | llvm-svn: 18422
* Implement two new functions: LoadLibraryPermanently andReid Spencer2004-11-291-28/+62
| | | | | | SearchForAddressOfSymbol. llvm-svn: 18355
* We just use ltdl's implementation for this abstraction now. Its portable toReid Spencer2004-11-291-13/+3
| | | | | | more platforms than LLVM supports. llvm-svn: 18352
* Mods for compilation with llvm.Reid Spencer2004-11-291-7/+10
| | | | llvm-svn: 18346
* Original version of ltdl.h from libtool 1.5.10Reid Spencer2004-11-291-0/+366
| | | | llvm-svn: 18345
* Original version of ltdl.c from libtool 1.5.10Reid Spencer2004-11-291-0/+4495
| | | | llvm-svn: 18344
* Implement the default constructor which causes the current program to beReid Spencer2004-11-293-5/+29
| | | | | | opened as if it was a dynamic library so its symbols can be searched too. llvm-svn: 18341
* Cast the void* handle data member to HMODULE* to keep the VC++ compilerReid Spencer2004-11-201-5/+9
| | | | | | happy. Thanks to Henrik Bach for pointing this out. llvm-svn: 18056
* Dynamic Library abstraction. This makes the abstraction of a single dynamicReid Spencer2004-11-1810-0/+361
| | | | | | | library (shared library/shared object) whose symbols can be looked up dynamically. Used for plug-ins. llvm-svn: 17940
* * 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
* Erase non-applicable Unix comment, this is Win32Misha Brukman2004-11-161-1/+0
| | | | llvm-svn: 17896
* Remove useless #include.Reid Spencer2004-11-166-7/+0
| | | | | | Patch contributed by Jeff Cohen. llvm-svn: 17891
* Simplify code.Reid Spencer2004-11-161-2/+1
| | | | | | Patch contributed by Jeff Cohen. llvm-svn: 17890
* Per code review:Reid Spencer2004-11-162-1/+5
| | | | | | | | * get rid of (void) construct in function declarations * make toString a const member * add a default implementation of toString for Win32 llvm-svn: 17873
* 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
* Provide the ThrowErrno utility.Reid Spencer2004-11-151-0/+3
| | | | | | Patch contributed by Morten Ofstad llvm-svn: 17827
* Adjust implementation to match new interface.Reid Spencer2004-11-151-2/+2
| | | | | | Patch provided by Morten Ofstad llvm-svn: 17826
* Actually get the #include correct so it compiles .. duh.Reid Spencer2004-11-158-9/+9
| | | | llvm-svn: 17817
* Make it actually compile on Solaris.Reid Spencer2004-11-152-2/+2
| | | | llvm-svn: 17815
* Consolidate the implementation of TimeValue::now() for Unix to use theReid Spencer2004-11-158-53/+19
| | | | | | seemingly ubiquitous gettimeofday(3) call. llvm-svn: 17813
* 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
* Make sure IdentifyFileType is in the sys namespace.Reid Spencer2004-11-141-1/+1
| | | | llvm-svn: 17806
* Add missing include.Alkis Evlogimenos2004-11-141-0/+1
| | | | llvm-svn: 17799
* Forget strerror_r, it causes problems. Fix later when threading mattersReid Spencer2004-11-141-5/+0
| | | | llvm-svn: 17783
* Implement the toString methodReid Spencer2004-11-141-0/+16
| | | | llvm-svn: 17782
OpenPOWER on IntegriCloud