diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-10-19 21:25:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-10-19 21:25:23 -0400 |
commit | 7e8171143124f7f510db555dc6f6327a965a3e84 (patch) | |
tree | a3237123e0131a232e7e1fd595e2b652b817557b /src/linux/utimes.c | |
parent | c2518a8efb6507f1b41c3b12e03b06f8f2317a1f (diff) | |
download | musl-7e8171143124f7f510db555dc6f6327a965a3e84.tar.gz |
internally, define time64 rusage syscalls on x32 as the existing ones
this is analogous to commit 40aa18d55ab763e69ad16d0cf1cebea708ffde47.
so far, there are not any actual time64 versions of the rusage
syscalls (getrusage and wait4) and might never be. however, the
existing x32 ones behave the way time64 versions would if they
existed: using 64-bit slots in place of all longs.
presently, wait4 and getrusage are broken on x32, storing the timevals
correctly but messing up everything else due to the long/kernel-long
mismatch. this would be a huge buffer overflow if not for the 16
reserved slots we left long ago, which suffice to prevent 14
double-sized longs from overflowing into unrelated memory. this commit
will make it possible to fix them.
Diffstat (limited to 'src/linux/utimes.c')
0 files changed, 0 insertions, 0 deletions