summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
Commit message (Collapse)AuthorAgeFilesLines
* Fix bugpointChris Lattner2005-01-161-2/+1
| | | | llvm-svn: 19605
* Make asctime_r work for HP/UX.Reid Spencer2005-01-141-0/+4
| | | | llvm-svn: 19544
* Rename Unix/*.cpp and Win32/*.cpp to have a *.inc suffix so that the sillyReid Spencer2005-01-097-0/+0
| | | | | | | gdb debugger doesn't get confused on which file it is reading (the one in lib/System or the one in lib/System/{Win32,Unix}) llvm-svn: 19426
* Use size_t instead of long to represent memory usage. long is 32 bitsJeff Cohen2005-01-081-2/+2
| | | | | | on 64-bit Windows. llvm-svn: 19393
* Add functions for determining if the stdin/out/err is connected to aReid Spencer2005-01-011-0/+24
| | | | | | console or not. llvm-svn: 19233
* Fix a compilation error for the case where mallinfo() is not available.Reid Spencer2004-12-311-1/+1
| | | | llvm-svn: 19201
* For PR351:Reid Spencer2004-12-271-4/+58
| | | | | | | | | | * Ensure #includes are wrapped with appropriate HAVE_ guards * Account for variations in time.h and sys/time.h inclusion. * Add macros for getting wait(2) exit status correctly (per autoconf sugg.) * Implement ThrowErrno in terms of strerror_r, strerror or none based on what is available on the platform. llvm-svn: 19161
* For PR351:Reid Spencer2004-12-271-4/+0
| | | | | | * Remove redundant #includes that are now in Unix.h llvm-svn: 19160
* For PR351:Reid Spencer2004-12-271-0/+12
| | | | | | | * Move implementation of sys::PreventCoreFiles function to this file from the now defunct SysConfig abstraction. llvm-svn: 19159
* For PR351:Reid Spencer2004-12-271-1/+25
| | | | | | | * Ensure #includes are wrapped with appropriate HAVE_ guards * Ensure variations in "dirent" structure are accounted for. llvm-svn: 19158
* For PR351:Reid Spencer2004-12-271-0/+50
| | | | | | | * Ensure #includes are wrapped with appropriate HAVE_ guards * Consolidate implementation from operating system specific directory. llvm-svn: 19157
* For PR351:Reid Spencer2004-12-273-6/+20
| | | | | | * Ensure #includes are wrapped with appropriate HAVE_ guards llvm-svn: 19156
* For PR351:Reid Spencer2004-12-271-33/+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. llvm-svn: 19149
* For PR351:Reid Spencer2004-12-241-0/+89
| | | | | | | | Merge implementations of isValid and GetTemporaryDirectory into this file. There is not any point having the operating system specific files for such little variation between the Unix family of systems. llvm-svn: 19134
* Remove these files as they are not being included any more. DynamicLibraryReid Spencer2004-12-241-56/+0
| | | | | | | is now implemented via ltdl.cpp which has its own way of dealing with the different platforms. llvm-svn: 19129
* Put the CopyFile function explicitly in the sys namespace.Reid Spencer2004-12-211-1/+1
| | | | llvm-svn: 19079
* Implement GetTimeUsage correctly.Reid Spencer2004-12-201-4/+8
| | | | llvm-svn: 19074
* Provide a getrusage based implementation of GetTotalMemoryUsage and useReid Spencer2004-12-201-0/+4
| | | | | | the ru_maxrss field as an approximation. llvm-svn: 19072
* Consistently use the same #if style. Also, fix a bug testing for sbrk(3)Reid Spencer2004-12-201-4/+4
| | | | llvm-svn: 19071
* For PR351:Reid Spencer2004-12-201-6/+78
| | | | | | | | * Implement GetMallocUsage to get usage of malloc heap * Implement GetMemoryUsage to get total memory usage of process * Implement GetTimeUsage to get elapsed/user/system time llvm-svn: 19055
* * Use "" for LLVM include files, not <>Misha Brukman2004-12-201-5/+3
| | | | | | | * llvm/Config/alloca.h already #includes config.h * Minor readability/stylistic changes llvm-svn: 19048
* Use <> for system #include filesMisha Brukman2004-12-191-1/+1
| | | | llvm-svn: 19046
* Make references to 'struct sigaction' compile under Solaris.Brian Gaeke2004-12-191-0/+1
| | | | llvm-svn: 19045
* For PR351:Reid Spencer2004-12-191-22/+99
| | | | | | | Move the functionality of RunProgramWithTimeout into the ExecuteAndWait function: support a timeout and I/O redirects llvm-svn: 19043
* For PR351:Reid Spencer2004-12-191-0/+1
| | | | | | Add a needed include. llvm-svn: 19042
* Change the signatures of the destroyFile and destroyDirectory methods toReid Spencer2004-12-151-2/+2
| | | | | | const because they affect the file system, not the Path object. llvm-svn: 18973
* 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-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
OpenPOWER on IntegriCloud