This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 1/6] nptl: Add clockid parameter to futex timed wait calls
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Thu, 6 Jun 2019 09:06:13 -0300
- Subject: Re: [PATCH v3 1/6] nptl: Add clockid parameter to futex timed wait calls
- References: <cover.206947992e95511c1c56165c9aa98ae1a2296b75.1558987219.git-series.mac@mcrowe.com> <95894abea465528f7bd5f8c0971c80f0ccdd73f7.1558987219.git-series.mac@mcrowe.com> <1e09d801-ad10-2d2b-a2f2-53315478b001@linaro.org>
>> diff --git a/sysdeps/unix/sysv/linux/futex-internal.h b/sysdeps/unix/sysv/linux/futex-internal.h
>> index 501f993..03312d6 100644
>> --- a/sysdeps/unix/sysv/linux/futex-internal.h
>> +++ b/sysdeps/unix/sysv/linux/futex-internal.h
>> @@ -162,15 +162,24 @@ futex_reltimed_wait_cancelable (unsigned int *futex_word,
>>
>> /* See sysdeps/nptl/futex-internal.h for details. */
>> static __always_inline int
>> +futex_abstimed_supported_clockid (clockid_t clockid)
>> +{
>> + return lll_futex_supported_clockid (clockid);
>> +}
An addendum is to change it to return bool instead of int, since you using
with contraction checks on all patchset.