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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user