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.
This commit is contained in:
Rich Felker 2013-05-05 14:19:37 -04:00
parent 2c074b0d6c
commit 9293b765c4
1 changed files with 1 additions and 1 deletions

View File

@ -3,5 +3,5 @@
clock_t times(struct tms *tms)
{
return syscall(SYS_times, tms);
return __syscall(SYS_times, tms);
}