From: Rich Felker Date: Sun, 5 May 2013 18:19:37 +0000 (-0400) Subject: do not interpret errors in return value of times() syscall X-Git-Tag: v0.9.11~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9293b765c4449c13fe355bcfcac1934fe3426847;p=oweals%2Fmusl.git do not interpret errors in return value of times() syscall all return values are valid, and on 32-bit systems, values that look like errors can and will occur. since the only actual error this function could return is EFAULT, and it is only returnable when the application has invoked undefined behavior, simply ignore the possibility that the return value is actually an error code. --- diff --git a/src/time/times.c b/src/time/times.c index 9c50144f..c4a100f7 100644 --- a/src/time/times.c +++ b/src/time/times.c @@ -3,5 +3,5 @@ clock_t times(struct tms *tms) { - return syscall(SYS_times, tms); + return __syscall(SYS_times, tms); }