1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

tile: check error properly for vDSO calls

The tile vDSO vsyscalls were not properly setting the error value.
Conventionally, tile returns the same "non-negative success, negative
errno" value that x86 does (in r0), but it also returns "zero or positive
errno" in r1, which is what the regular syscall code checks.  This change
uses that convention for the vDSO calls as well.
This commit is contained in:
Chris Metcalf
2015-01-05 12:06:15 -05:00
parent 1dca195e1c
commit 7ea793f39c
4 changed files with 27 additions and 6 deletions

View File

@ -22,10 +22,18 @@
#ifdef SHARED
extern long int (*__vdso_gettimeofday) (struct timeval *, void *)
struct syscall_return_value
{
long int value;
long int error;
};
extern struct syscall_return_value (*__vdso_gettimeofday) (struct timeval *,
void *)
attribute_hidden;
extern long int (*__vdso_clock_gettime) (clockid_t, struct timespec *);
extern struct syscall_return_value (*__vdso_clock_gettime) (clockid_t,
struct timespec *);
#endif