summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-151-4/+4
| | | | | | | | | | 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
* 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-141-3/+8
| | | | | | Implement the new environment pointer for ExecuteAndWait llvm-svn: 18928
* 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
* Make the size() method constReid Spencer2004-12-131-1/+1
| | | | llvm-svn: 18852
* Path::get -> Path::toStringReid Spencer2004-12-114-15/+21
| | | | llvm-svn: 18785
* Make this work with the ICC compiler, contributed by Bjørn WennbergChris Lattner2004-12-081-0/+1
| | | | llvm-svn: 18626
* Fix seriously broken implementation of GetMagicNumber.Reid Spencer2004-12-021-4/+6
| | | | llvm-svn: 18422
* Implement the default constructor which causes the current program to beReid Spencer2004-11-291-1/+9
| | | | | | opened as if it was a dynamic library so its symbols can be searched too. llvm-svn: 18341
* Dynamic Library abstraction. This makes the abstraction of a single dynamicReid Spencer2004-11-181-0/+47
| | | | | | | 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
* Per code review:Reid Spencer2004-11-161-1/+1
| | | | | | | | * 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
* Make it actually compile on Solaris.Reid Spencer2004-11-151-1/+1
| | | | llvm-svn: 17815
* Consolidate the implementation of TimeValue::now() for Unix to use theReid Spencer2004-11-151-0/+13
| | | | | | 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
* 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
* Update for prototype changesReid Spencer2004-11-141-2/+2
| | | | llvm-svn: 17781
* * Implement getDirectoryContents * Implement getStatusInfo * Implement ↵Reid Spencer2004-11-141-7/+81
| | | | | | setStatusInfo * Implement renameFile llvm-svn: 17780
* Fix bugs in class invariantReid Spencer2004-11-141-0/+3
| | | | llvm-svn: 17779
* * 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-053-60/+60
| | | | llvm-svn: 17498
* Change Library Names Not To Conflict With Others When InstalledReid Spencer2004-10-271-1/+0
| | | | llvm-svn: 17286
* Must include sys/stat.h before declaring a 'struct stat'Brian Gaeke2004-10-051-0/+1
| | | | llvm-svn: 16728
* Adjust sys/stat.h inclusion so its only for SunOS.Reid Spencer2004-10-051-1/+0
| | | | llvm-svn: 16686
* Added a couple of includes to get this to compile on Sparc.Tanya Lattner2004-10-052-1/+2
| | | | llvm-svn: 16685
* Solaris doesn't have MAP_FILE.Chris Lattner2004-10-051-1/+4
| | | | llvm-svn: 16682
* First version of the MappedFile abstraction for operating system idependentReid Spencer2004-10-041-0/+138
| | | | | | | | 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. llvm-svn: 16649
* Added stub implementations of TimeValue concept for remaining platforms.Reid Spencer2004-09-251-0/+22
| | | | llvm-svn: 16513
* 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
* Clean up the interface and implementation of sys::Program so that it isReid Spencer2004-09-131-15/+16
| | | | | | cleanly dissociated from the sys::Path class. llvm-svn: 16315
* Provide a generic Unix implementation of the Memory concept.Reid Spencer2004-09-111-0/+20
| | | | llvm-svn: 16291
* Provide a generic unix implementation of the Process abstraction.Reid Spencer2004-09-111-0/+34
| | | | llvm-svn: 16290
* 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
* Implementation of Process concept for SUSv2 platforms.Reid Spencer2004-09-111-0/+31
| | | | llvm-svn: 16288
* Changes For Bug 352Reid Spencer2004-09-013-3/+3
| | | | | | | | 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
* Actually define PreventCoreFiles in the sys namespace.Reid Spencer2004-08-311-3/+1
| | | | llvm-svn: 16125
* Add a new abstraction, SysConfig for platform independent systemReid Spencer2004-08-312-0/+36
| | | | | | | configuration calls. Right now this just contains PreventCoreFiles so that bugpoint can by platform independent. llvm-svn: 16124
* Move the GetTemporaryDirectory function from "generic Unix" to platformReid Spencer2004-08-301-12/+0
| | | | | | specific. llvm-svn: 16119
* Add inclusion of assert.hReid Spencer2004-08-301-0/+1
| | | | llvm-svn: 16118
* Add a declaration of environ global for DarwinReid Spencer2004-08-291-0/+2
| | | | llvm-svn: 16100
* Include some additional header files.Reid Spencer2004-08-291-4/+6
| | | | | | Fix the banner length. llvm-svn: 16086
* Initial platform independent implementation of operating system conceptReid Spencer2004-08-291-0/+169
| | | | | | of "Signals" (cleanup after fatal errors). llvm-svn: 16085
OpenPOWER on IntegriCloud