commit | 21972b61ec0572395c5684eebc6cc7b3a4c9e3be | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Jul 28 12:24:22 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Jul 28 12:33:07 2014 -0700 |
tree | d785a99a7302ac6453011a26b395bc8ea5b1b337 | |
parent | 8c66fd798ed5b7cefe1568d9a000d01b69d29dd9 [diff] [blame] |
syscall(3)'s return type should be long. This doesn't require us to change any of the syscall implementations because (a) the LP32 ones have sizeof(int) == sizeof(long) anyway, which is how we never noticed this bug before and (b) the LP64 ones all use a 64-bit register for the result (and for the syscall number too). Bug: https://code.google.com/p/android/issues/detail?id=73952 Change-Id: I9866c3579a7a94de27bfbe80ad7a822c3183c7fb
diff --git a/libc/include/sys/syscall.h b/libc/include/sys/syscall.h index a44b2e5..34a29df 100644 --- a/libc/include/sys/syscall.h +++ b/libc/include/sys/syscall.h
@@ -37,7 +37,7 @@ __BEGIN_DECLS -int syscall(int number, ...); +long syscall(long number, ...); __END_DECLS