9578a3ecfc35a264ede1135033398e2a77a6cad6 |
|
08-May-2013 |
Peter Collingbourne <peter@pcc.me.uk> |
[nolibc] Change internal syscall API to remove reliance on libc's errno. This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_syscall_generic.inc
|