[PATCH 16/34] Linux: Move aio_suspend, aio_suspend64, __aio_suspend_time64 to libc
Florian Weimer
fweimer@redhat.com
Wed Jun 23 19:59:28 GMT 2021
* Adhemerval Zanella:
>> - pthread_cleanup_push (cleanup, &clparam);
>> +#if PTHREAD_IN_LIBC
>> + __libc_cleanup_region_start (1, cleanup, &clparam);
>> +#else
>> + __pthread_cleanup_push (cleanup, &clparam);
>> +#endif
>>
>> #ifdef DONT_NEED_AIO_MISC_COND
>> result = do_aio_misc_wait (&cntr, timeout == NULL ? NULL : &ts);
>> @@ -194,7 +200,11 @@ __aio_suspend_time64 (const struct aiocb *const list[], int nent,
>> timeout == NULL ? NULL : &ts32);
>> #endif
>>
>> +#if PTHREAD_IN_LIBC
>> + __libc_cleanup_region_end (0);
>> +#else
>> pthread_cleanup_pop (0);
>> +#endif
>> }
>>
>
> Ok. What prevents to use __libc_cleanup_region_start on Hurd as well here?
I assumed that it would be available only within libc.
I have no way to test this on Hurd, which is why I wanted to keep the
original code.
Thanks,
Florian
More information about the Libc-alpha
mailing list