summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32
Commit message (Collapse)AuthorAgeFilesLines
...
* Make Win32 implementation conform to new paradigmJeff Cohen2005-07-082-50/+61
| | | | llvm-svn: 22356
* Final Changes For PR495:Reid Spencer2005-07-081-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | This chagne just renames some sys::Path methods to ensure they are not misused. The Path documentation now divides methods into two dimensions: Path/Disk and accessor/mutator. Path accessors and mutators only operate on the Path object itself without making any disk accesses. Disk accessors and mutators will also access or modify the file system. Because of the potentially destructive nature of disk mutators, it was decided that all such methods should end in the work "Disk" to ensure the user recognizes that the change will occur on the file system. This patch makes that change. The method name changes are: makeReadable -> makeReadableOnDisk makeWriteable -> makeWriteableOnDisk makeExecutable -> makeExecutableOnDisk setStatusInfo -> setStatusInfoOnDisk createDirectory -> createDirectoryOnDisk createFile -> createFileOnDisk createTemporaryFile -> createTemporaryFileOnDisk destroy -> eraseFromDisk rename -> renamePathOnDisk These changes pass the Linux Deja Gnu tests. llvm-svn: 22354
* Fix VC++ breakageJeff Cohen2005-07-083-13/+10
| | | | llvm-svn: 22353
* Changes to mimic those in Unix/Path.inc in support of PR495. This hasn'tReid Spencer2005-07-071-155/+94
| | | | | | been compiled or tested. llvm-svn: 22350
* For PR495:Reid Spencer2005-07-071-2/+8
| | | | | | | | | | | | | | | | | | | | | Get rid of the difference between file paths and directory paths. The Path class now simply stores a path that can refer to either a file or a directory. This required various changes in the implementation and interface of the class with the corresponding impact to its users. Doxygen comments were also updated to reflect these changes. Interface changes are: appendDirectory -> appendComponent appendFile -> appendComponent elideDirectory -> eraseComponent elideFile -> eraseComponent elideSuffix -> eraseSuffix renameFile -> rename setDirectory -> set setFile -> set Changes pass Dejagnu and llvm-test/SingleSource tests. llvm-svn: 22349
* For PR495:Reid Spencer2005-07-071-6/+6
| | | | | | | | | | | Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345
* Remove vim settings from source code; people should use llvm/utils/vim/vimrcMisha Brukman2005-05-058-8/+0
| | | | llvm-svn: 21704
* Remove trailing whitespaceMisha Brukman2005-04-211-3/+3
| | | | llvm-svn: 21422
* Provide an implementation of the GetCurrentUserId and GetCurrentGroupIdReid Spencer2005-04-211-0/+10
| | | | | | methods that were recently added to the interface. llvm-svn: 21401
* Eliminate tabsJeff Cohen2005-04-112-5/+5
| | | | llvm-svn: 21216
* Fix silly mistake.Jeff Cohen2005-02-201-1/+1
| | | | llvm-svn: 20256
* Implement standard I/O redirection in ExecuteAndWait().Jeff Cohen2005-02-201-7/+73
| | | | llvm-svn: 20255
* Change __MINGW to __MINGW32__. Patch submitted by Henrik Bach.Jeff Cohen2005-02-194-4/+4
| | | | llvm-svn: 20243
* Make PreventCoreFiles() do the right thing on Windows.Jeff Cohen2005-02-181-3/+6
| | | | llvm-svn: 20237
* Arg list already has program name in it.Jeff Cohen2005-02-161-15/+2
| | | | llvm-svn: 20208
* Fix some Path bugsJeff Cohen2005-01-271-11/+24
| | | | llvm-svn: 19852
* Fix destroyDirectory bugJeff Cohen2005-01-221-5/+8
| | | | llvm-svn: 19746
* Fix and improve win32 path validation.Jeff Cohen2005-01-141-10/+22
| | | | llvm-svn: 19545
* Rename Unix/*.cpp and Win32/*.cpp to have a *.inc suffix so that the sillyReid Spencer2005-01-098-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 aJeff Cohen2005-01-011-0/+13
| | | | | | console or not. llvm-svn: 19236
* Where do these tabs keep coming from???Jeff Cohen2004-12-311-1/+1
| | | | llvm-svn: 19203
* Mostly cleanup, but also some bug fixes, for win32/Path.cppJeff Cohen2004-12-311-38/+81
| | | | llvm-svn: 19202
* Get rid of those nasty tabs...Jeff Cohen2004-12-311-18/+18
| | | | llvm-svn: 19199
* Bring win32/Path.cpp up to date with respect to Unix/Path.cppJeff Cohen2004-12-311-9/+104
| | | | llvm-svn: 19198
* Fix MINGW compilation errorsJeff Cohen2004-12-301-2/+2
| | | | llvm-svn: 19190
* For PR351:Reid Spencer2004-12-271-0/+9
| | | | | | | * Move implementation of sys::PreventCoreFiles function to this file from the now defunct SysConfig abstraction. llvm-svn: 19159
* For PR351:Reid Spencer2004-12-271-27/+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
* mingw doesn't support the official debug API.Jeff Cohen2004-12-251-9/+28
| | | | | | | Old versions of the C runtime somehow get loaded into the process. Make sure they aren't searched for symbols. llvm-svn: 19141
* Eliminate use of ltdl.c when doing a VC++ build. Because libtool isn't used,Jeff Cohen2004-12-241-17/+72
| | | | | | ltdl's LGPL license would infect all of LLVM. llvm-svn: 19137
* Resurrect this file.Reid Spencer2004-12-241-0/+53
| | | | llvm-svn: 19130
* Remove these files as they are not being included any more. DynamicLibraryReid Spencer2004-12-241-53/+0
| | | | | | | is now implemented via ltdl.cpp which has its own way of dealing with the different platforms. llvm-svn: 19129
* Fix VC++ compilation errorJeff Cohen2004-12-241-2/+7
| | | | llvm-svn: 19124
* Put CopyFile in the sys namespace.Reid Spencer2004-12-231-1/+1
| | | | llvm-svn: 19122
* Patch to fix mingw compilation problem contributed by Henrik.Jeff Cohen2004-12-231-0/+5
| | | | llvm-svn: 19112
* Keep up with lib/System changesJeff Cohen2004-12-202-31/+47
| | | | llvm-svn: 19057
* For PR351:Reid Spencer2004-12-201-0/+43
| | | | | | | | * 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
* Fix win32 breakageJeff Cohen2004-12-181-0/+1
| | | | llvm-svn: 19028
* Expository comment submitted by Henrik BachJeff Cohen2004-12-161-0/+3
| | | | llvm-svn: 18976
* 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 the CFE's lib directory from the bytecode path because LLVM shouldReid Spencer2004-12-151-7/+0
| | | | | | be agnostic to the needs of any specific FE. llvm-svn: 18969
* Fix a file overwrite bug in llvm-ar introduced by changes toReid Spencer2004-12-151-2/+12
| | | | | | | | | | 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-151-6/+1
| | | | llvm-svn: 18953
* For PR351:Reid Spencer2004-12-151-1/+24
| | | | | | | | | * 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-141-2/+4
| | | | | | Implement the new environment pointer for ExecuteAndWait llvm-svn: 18928
* For PR351:Reid Spencer2004-12-131-0/+9
| | | | | | | | | | 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-131-5/+0
| | | | | | available. llvm-svn: 18904
OpenPOWER on IntegriCloud