aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
Commit message (Collapse)AuthorAgeFilesLines
* Consolidate the implementation of TimeValue::now() for Unix to use theReid Spencer2004-11-159-53/+32
| | | | | | | seemingly ubiquitous gettimeofday(3) call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17813 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement functionality suggested from code review: getStatusInfo shouldReid Spencer2004-11-142-2/+8
| | | | | | | returnn false if the file doesn't exist rather than throw ane exception. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17809 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure IdentifyFileType is in the sys namespace.Reid Spencer2004-11-141-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17806 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing include.Alkis Evlogimenos2004-11-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17799 91177308-0d34-0410-b5e6-96231b3b80d8
* Forget strerror_r, it causes problems. Fix later when threading mattersReid Spencer2004-11-141-5/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17783 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement the toString methodReid Spencer2004-11-142-0/+32
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17782 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for prototype changesReid Spencer2004-11-142-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17781 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement getDirectoryContents * Implement getStatusInfo * Implement ↵Reid Spencer2004-11-142-14/+162
| | | | | | setStatusInfo * Implement renameFile git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17780 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bugs in class invariantReid Spencer2004-11-142-0/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17779 91177308-0d34-0410-b5e6-96231b3b80d8
* Include the correct implementation fileReid Spencer2004-11-141-1/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17778 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't exceed 80 columns.Reid Spencer2004-11-141-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17777 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement IdentifyFileType functionReid Spencer2004-11-141-0/+27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17776 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix isBytecodeFile to correctly recognized compressed bytecode too.Reid Spencer2004-11-092-8/+14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17655 91177308-0d34-0410-b5e6-96231b3b80d8
* * Implement getStatusInfo for getting stat(2) like informationReid Spencer2004-11-092-10/+78
| | | | | | | | * 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
* Fix a typo: isvalid -> isValidReid Spencer2004-11-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17621 91177308-0d34-0410-b5e6-96231b3b80d8
* Consistently use llvm.cs.uiuc.edu instead of llvm.orgMisha Brukman2004-11-071-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17548 91177308-0d34-0410-b5e6-96231b3b80d8
* Stop propagating method names that violate the coding standardReid Spencer2004-11-0519-267/+267
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17498 91177308-0d34-0410-b5e6-96231b3b80d8
* Change Library Names Not To Conflict With Others When InstalledReid Spencer2004-10-273-3/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17286 91177308-0d34-0410-b5e6-96231b3b80d8
* Add EXTRA_DIST for additional files to be distributed.Reid Spencer2004-10-261-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17233 91177308-0d34-0410-b5e6-96231b3b80d8
* We won't use automakeReid Spencer2004-10-222-696/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17155 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some grammarMisha Brukman2004-10-191-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17141 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial automake generated Makefile templateReid Spencer2004-10-181-0/+674
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17136 91177308-0d34-0410-b5e6-96231b3b80d8
* AIX does not have mkdtemp() so emulate its behavior using mktemp() and mkdir()Misha Brukman2004-10-181-5/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17131 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow this file to compile on Darwin.Reid Spencer2004-10-141-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16971 91177308-0d34-0410-b5e6-96231b3b80d8
* Use __MINGW instead of __MING. Patch contributed by Henrik Bach.Reid Spencer2004-10-142-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16970 91177308-0d34-0410-b5e6-96231b3b80d8
* Get proper BSD #includes for MappedFile implementation.Reid Spencer2004-10-141-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16969 91177308-0d34-0410-b5e6-96231b3b80d8
* Implementation of MappedFile for Win32. Patch provided by Jeff Cohen.Reid Spencer2004-10-142-12/+202
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16968 91177308-0d34-0410-b5e6-96231b3b80d8
* Update to reflect changes in Makefile rules.Reid Spencer2004-10-131-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16950 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial version of automake Makefile.am file.Reid Spencer2004-10-101-0/+22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16885 91177308-0d34-0410-b5e6-96231b3b80d8
* Must include sys/stat.h before declaring a 'struct stat'Brian Gaeke2004-10-052-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16728 91177308-0d34-0410-b5e6-96231b3b80d8
* Adjust sys/stat.h inclusion so its only for SunOS.Reid Spencer2004-10-052-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16686 91177308-0d34-0410-b5e6-96231b3b80d8
* Added a couple of includes to get this to compile on Sparc.Tanya Lattner2004-10-053-2/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16685 91177308-0d34-0410-b5e6-96231b3b80d8
* Solaris doesn't have MAP_FILE.Chris Lattner2004-10-052-2/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16682 91177308-0d34-0410-b5e6-96231b3b80d8
* First version of the MappedFile abstraction for operating system idependentReid Spencer2004-10-0412-0/+506
| | | | | | | | | 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
* That should actually be __MING, not __MINGW.Misha Brukman2004-09-302-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16617 91177308-0d34-0410-b5e6-96231b3b80d8
* Check for __MINGW define instead of __MINGW_H, patch by Henrik Bach.Misha Brukman2004-09-302-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16615 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve validity checking of windows path names and fix file creationReid Spencer2004-09-292-62/+156
| | | | | | | | | problems. Patch contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16565 91177308-0d34-0410-b5e6-96231b3b80d8
* Use llvm::sys::Path to destroy the file.Reid Spencer2004-09-282-8/+10
| | | | | | | Patch contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16564 91177308-0d34-0410-b5e6-96231b3b80d8
* Win32 implementation of TimeValue::now().Reid Spencer2004-09-282-12/+24
| | | | | | | Patch contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16563 91177308-0d34-0410-b5e6-96231b3b80d8
* FreeBSD implementation of the TimeValue::now() method.Reid Spencer2004-09-281-2/+13
| | | | | | | Patch kindly contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16562 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated to reflect changes in the interface of TimeValue::now().Reid Spencer2004-09-252-8/+10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16515 91177308-0d34-0410-b5e6-96231b3b80d8
* Added stub implementations of TimeValue concept for remaining platforms.Reid Spencer2004-09-2510-0/+286
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16513 91177308-0d34-0410-b5e6-96231b3b80d8
* Wrap to 80 cols.Reid Spencer2004-09-251-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16512 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial implementation of the TimeValue abstraction.Reid Spencer2004-09-242-0/+90
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16511 91177308-0d34-0410-b5e6-96231b3b80d8
* Patch for MINGW. Patch provided by Henrik Bach.Reid Spencer2004-09-232-4/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16495 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor correction to Signals implementation.Reid Spencer2004-09-192-28/+48
| | | | | | | Patch submitted by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16401 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the /dev/zero device as the device on which the pages are mapped.Reid Spencer2004-09-181-1/+7
| | | | | | | Patch contributed by Henrik Bach. Thanks Henrik! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16397 91177308-0d34-0410-b5e6-96231b3b80d8
* Porting of Unix implementation to Win32.Reid Spencer2004-09-182-96/+380
| | | | | | | Patch contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16396 91177308-0d34-0410-b5e6-96231b3b80d8
* Get rid of file descriptor leak in create_file.Reid Spencer2004-09-182-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16395 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure critical sections are entered before trying to leave them.Reid Spencer2004-09-172-2/+24
| | | | | | | | | Add some additional commentary about the workings of this module. Patch contributed by Jeff Cohen. Thanks Jeff! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16383 91177308-0d34-0410-b5e6-96231b3b80d8