hanchenye-llvm-project/llvm/lib/System/Win32
Michael J. Spencer 5ed2428b3c This is the first step in adding sane error handling support to LLVMSystem.
The system API's will be shifted over to returning an error_code, and returning
other return values as out parameters to the function.

Code that needs to check error conditions will use the errc enum values which
are the same as the posix_errno defines (EBADF, E2BIG, etc...), and are
compatable with the error codes in WinError.h due to some magic in system_error.

An example would be:

if (error_code ec = KillEvil("Java")) { // error_code can be converted to bool.
  handle_error(ec);
}

llvm-svn: 119360
2010-11-16 18:31:52 +00:00
..
Alarm.inc
DynamicLibrary.inc Remove spurious semicolon. 2010-01-14 20:19:51 +00:00
Host.inc
Memory.inc Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
Mutex.inc
Path.inc Fix Whitespace. 2010-11-10 15:06:00 +00:00
Process.inc Win32/Process.inc: [PR8527] Process::FileDescriptorIsDisplayed(fd) should not check by FILE_TYPE_CHAR. It must be better to check it with Console API. 2010-11-10 08:37:47 +00:00
Program.inc Make FindProgramByName return paths with slashes unmodified on Windows. 2010-11-02 20:32:39 +00:00
RWMutex.inc Give RWMutex the SmartRWMutex treatment too. 2009-06-18 18:26:15 +00:00
Signals.inc Reindent. 2010-10-28 08:25:44 +00:00
ThreadLocal.inc ATTRIBUTE_UNUSED has been renamed to LLVM_ATTRIBUTE_UNUSED. 2010-10-25 13:10:03 +00:00
TimeValue.inc Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
Win32.h System/Path/Windows: Make GetSystemLibraryPaths more generic. 2010-11-09 15:11:19 +00:00
system_error.inc This is the first step in adding sane error handling support to LLVMSystem. 2010-11-16 18:31:52 +00:00