[PATCH v2 3/3] y2038: Convert thrd_sleep to support 64 bit time
Andreas Schwab
schwab@suse.de
Thu Nov 12 10:26:30 GMT 2020
On Nov 12 2020, Lukasz Majewski wrote:
> +int
> +__thrd_sleep (const struct timespec* time_point, struct timespec* remaining)
> +{
> + const struct __timespec64 treq64 = valid_timespec_to_timespec64 (*time_point);
> + struct __timespec64 trem64;
> +
> + int ret = __thrd_sleep64 (&treq64, &trem64);
> + if (ret == -1 && remaining != NULL)
> + *remaining = valid_timespec64_to_timespec (trem64);
If remaining is NULL then __thrd_sleep64 should probably be called with
NULL.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list