aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
Commit message (Collapse)AuthorAgeFilesLines
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-056-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21704 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove trailing whitespaceMisha Brukman2005-04-218-160/+160
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21411 91177308-0d34-0410-b5e6-96231b3b80d8
* Add two new methods for getting the User Id and Group Id values for theReid Spencer2005-04-211-0/+10
| | | | | | | current process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21400 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not clean up if the MappedFile was never used or if the client alreadyChris Lattner2005-01-281-1/+1
| | | | | | | closed the file. This unbreaks the build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19871 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the documentation for executeAndWait so the argument comments areReid Spencer2005-01-111-19/+16
| | | | | | | actually attributed to the arguments by doxygen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19473 91177308-0d34-0410-b5e6-96231b3b80d8
* Use size_t instead of long to represent memory usage. long is 32 bitsJeff Cohen2005-01-081-2/+2
| | | | | | | on 64-bit Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19393 91177308-0d34-0410-b5e6-96231b3b80d8
* Add functions for determining if the stdin/out/err is connected to aReid Spencer2005-01-011-0/+15
| | | | | | | console or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19233 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bountiful sources of VC++ 'possible loss of data' warningsJeff Cohen2005-01-011-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19224 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-271-0/+6
| | | | | | | | * Move implementation of sys::PreventCoreFiles function to this file from the now defunct SysConfig abstraction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19159 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-271-30/+0
| | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19149 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-201-0/+31
| | | | | | | | | * Add GetMallocUsage as a wrapper around mallinfo() * Add GetTotalMemoryUsage to get approximate RSS size * Add GetTimeUsage to get elapsed/system/user time git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19051 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap long linesReid Spencer2004-12-201-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19050 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-191-4/+15
| | | | | | | | | Incorporate the abilities of RunPRogramWithTimeout into sys::Program::ExecuteAndWait so that redirection and a timeout are optionally supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19039 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct the name of the method. CopyFiles -> CopyFile.Reid Spencer2004-12-181-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19025 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust documentation of GetBytecodeLibraryPaths after removing LLVMGCCDIRReid Spencer2004-12-151-24/+25
| | | | | | | support from it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18972 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-151-2/+2
| | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18961 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-151-1/+16
| | | | | | | | | | * 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18947 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Win32 Path::getStatusInfo(), TimeValue::toString()Jeff Cohen2004-12-141-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18930 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-141-10/+15
| | | | | | | | * Fix commentary, wrap lines, etc. * Add an environment pointer to the ExecuteAndWait function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18926 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:Reid Spencer2004-12-131-0/+16
| | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18907 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351: \Reid Spencer2004-12-131-0/+15
| | | | | | | | | The getFileTimestamp and getFileSize functions have been removed from \ FileUtilities.{h,cpp}. They are replaced by Path::getTimestamp and \ Path::getSize,respectively. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18892 91177308-0d34-0410-b5e6-96231b3b80d8
* * Add a std::ostream inserter for sys::PathReid Spencer2004-12-131-1/+7
| | | | | | | * Correct the std::string constructor to take a const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18877 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the size() method constReid Spencer2004-12-131-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18852 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR351:\Reid Spencer2004-12-131-25/+29
| | | | | | | | | | * Consolidate path retrieval into just two methods. \ * Add FindLibrary as a convenience function. \ * Add isDynamicLibrary for testing for dynamic libs. \ * Make toString constant and reference clean. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18847 91177308-0d34-0410-b5e6-96231b3b80d8
* Path::get -> Path::toStringReid Spencer2004-12-111-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
* Add in some methods for use by the JIT. LoadLibraryPermanently brings theReid Spencer2004-11-291-0/+25
| | | | | | | | | library into the address space permanently. SearchForAddressOfSymbol looks in all previously permanently loaded libraries and any currently open libraries for a symbol, instead of just one library like GetAddressOfSymbol git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18354 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the default constructor cause the program's symbols to be loaded asReid Spencer2004-11-291-2/+10
| | | | | | | if it was a dynamic library. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18340 91177308-0d34-0410-b5e6-96231b3b80d8
* Dynamic Library abstraction. This makes the abstraction of a single dynamicReid Spencer2004-11-181-0/+80
| | | | | | | | library (shared library/shared object) whose symbols can be looked up dynamically. Used for plug-ins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17940 91177308-0d34-0410-b5e6-96231b3b80d8
* Per code review:Reid Spencer2004-11-161-11/+11
| | | | | | | | | * get rid of (void) construct in function declarations * make toString a const member * add a default implementation of toString for Win32 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17873 91177308-0d34-0410-b5e6-96231b3b80d8
* Per code review:Reid Spencer2004-11-161-9/+7
| | | | | | | | | | | | * 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17872 91177308-0d34-0410-b5e6-96231b3b80d8
* Changes per code review:Reid Spencer2004-11-141-14/+21
| | | | | | | | | | * Document StatusInfo fields better * No lines > 80 cols * Have getStatusInfo return bool if file doesn't exist * Don't document in detail how temporary file name should be created. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17808 91177308-0d34-0410-b5e6-96231b3b80d8
* *Make naming convention consistent.*Add convertion to/from Unix Epoch ↵Reid Spencer2004-11-141-4/+16
| | | | | | time.*Add ability to convert to readable string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17762 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the remove*OnSignal functions deal with Paths not stringsReid Spencer2004-11-141-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17761 91177308-0d34-0410-b5e6-96231b3b80d8
* *Put the StatusInfo type in the right section. *Provide the ability to ↵Reid Spencer2004-11-141-19/+72
| | | | | | rename a file.*Provide the ability to get/set stat(2) information.*Provide the ability to identify LLVM file types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17760 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow explicit closing of the MappedFile, before destructionReid Spencer2004-11-141-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17759 91177308-0d34-0410-b5e6-96231b3b80d8
* Provide conversion from posix time.Reid Spencer2004-11-091-0/+9
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17656 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement getStatusInfo for getting stat(2) like informationReid Spencer2004-11-091-0/+30
| | | | | | | | * Implement createTemporaryFile for mkstemp(3) functionality * Fix isBytecodeFile to accept llvc magic # (compressed) as bytecode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17654 91177308-0d34-0410-b5e6-96231b3b80d8
* Stop propagating method names that violate the coding standardReid Spencer2004-11-051-37/+37
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17498 91177308-0d34-0410-b5e6-96231b3b80d8
* Convert 'struct' to 'class' in various places to adhere to the coding standardsChris Lattner2004-10-271-1/+1
| | | | | | | and work better with VC++. Patch contributed by Morten Ofstad! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17281 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap comments at 80 colsMisha Brukman2004-10-261-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17261 91177308-0d34-0410-b5e6-96231b3b80d8
* * Fit constructor initializer on a single lineMisha Brukman2004-10-191-3/+2
| | | | | | | * Delete blank chars at end of line to fit into 80 cols git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17137 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix file comment headerMisha Brukman2004-10-121-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16942 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix #include flavorChris Lattner2004-10-041-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16658 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor corrections suggested by Chris' ever-watchful eye.Reid Spencer2004-10-041-9/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16651 91177308-0d34-0410-b5e6-96231b3b80d8
* First version of the MappedFile abstraction for operating system idependentReid Spencer2004-10-041-0/+160
| | | | | | | | | mapping of files. This first version uses mmap where its available. The class needs to implement an alternate mechanism based on malloc'd memory and file reading/writing for platforms without virtual memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16649 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up the interface of TimeValue:Reid Spencer2004-09-251-207/+171
| | | | | | | | | | | | - get rid of unneeded constructors - get rid of duplicate methods/constructors/operators - normalize to LLVM coding standards - wrap to 80 columns. Many thanks to Alkis Evlogimenos for his suggestions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16514 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial implementation of the TimeValue abstraction.Reid Spencer2004-09-241-0/+391
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16511 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the GetLibraryPath method.Reid Spencer2004-09-131-0/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16322 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify the sys::Memory interface per Chris' request.Reid Spencer2004-09-131-23/+33
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16318 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up the interface and implementation of sys::Program so that it isReid Spencer2004-09-131-22/+14
| | | | | | | cleanly dissociated from the sys::Path class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16315 91177308-0d34-0410-b5e6-96231b3b80d8