diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-05-05 14:19:37 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-05-05 14:19:37 -0400 |
commit | 9293b765c4449c13fe355bcfcac1934fe3426847 (patch) | |
tree | 5f843587afc4c28bf3f1e9dd15ebf4f3e55c7217 /src/time/times.c | |
parent | 2c074b0d6cb2b28c5d1c0ccb2809965f4676efeb (diff) | |
download | musl-9293b765c4449c13fe355bcfcac1934fe3426847.tar.gz musl-9293b765c4449c13fe355bcfcac1934fe3426847.tar.bz2 musl-9293b765c4449c13fe355bcfcac1934fe3426847.tar.xz musl-9293b765c4449c13fe355bcfcac1934fe3426847.zip |
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.
Diffstat (limited to 'src/time/times.c')
-rw-r--r-- | src/time/times.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |