diff options
author | Lukasz Majewski <lukma@denx.de> | 2020-11-12 12:24:04 +0100 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-11-14 22:12:40 +0100 |
commit | 7ed2b6921feb51d3fecdd0b72e8ab7a7f37ba4ae (patch) | |
tree | 397047b7c0f29a7f2967606bd2a70dd70d199d76 /posix/wordexp-test.c | |
parent | eb60eda2b97ce19aba72e7f544e88e49899bc1fd (diff) | |
download | glibc-7ed2b6921feb51d3fecdd0b72e8ab7a7f37ba4ae.tar.gz glibc-7ed2b6921feb51d3fecdd0b72e8ab7a7f37ba4ae.tar.xz glibc-7ed2b6921feb51d3fecdd0b72e8ab7a7f37ba4ae.zip |
nanosleep: Pass NULL when rem == NULL on ports with __TIMESIZE != 64
On ports with __TIMESIZE != 64 the remaining time argument always receives pointer to struct __timespec64 instance. This is the different behavior when compared to 64 bit versions of clock_nanosleep and nanosleep functions, which receive NULL. To avoid any potential issues, we also pass NULL when *rem pointer is NULL. Reported-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'posix/wordexp-test.c')
0 files changed, 0 insertions, 0 deletions