1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +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

@ -19,9 +19,11 @@
#include <dl-vdso.h>
#include <bits/libc-vdso.h>
long int (*__vdso_gettimeofday) (struct timeval *, void *) attribute_hidden;
struct syscall_return_value (*__vdso_gettimeofday) (struct timeval *, void *)
attribute_hidden;
long int (*__vdso_clock_gettime) (clockid_t, struct timespec *)
struct syscall_return_value (*__vdso_clock_gettime) (clockid_t,
struct timespec *)
__attribute__ ((nocommon));
strong_alias (__vdso_clock_gettime, __GI___vdso_clock_gettime attribute_hidden)