From: Florian Weimer <fweimer@redhat.com>
To: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>,
linux-man <linux-man@vger.kernel.org>,
libc-alpha@sourceware.org
Subject: Re: pthread_cleanup_push_defer_np.3: missing functions in glibc
Date: Mon, 08 Mar 2021 12:27:17 +0100 [thread overview]
Message-ID: <87im61ga22.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <1eecbbec-06ac-d94a-c0b2-52a8012d7280@gmail.com> (Alejandro Colomar's message of "Mon, 8 Mar 2021 11:54:51 +0100")
* Alejandro Colomar:
> Hi Florian,
>
> On 3/8/21 11:39 AM, Florian Weimer wrote:
>> * Alejandro Colomar:
>>
>>> While adding 'restrict' to the prototypes, I found that the functions
>>> defined in this page don't exist on glibc (or I couldn't find them).
>>> I tried removing _np, and still no luck, and 'git log --grep' didn't
>>> help either. Where these functions removed at some point?
>> Yes, they are part of the legacy cancellation implementation that
>> predates DWARF unwinding.
>
> Thanks for the info. I guess we should add that to the manual
> page. I've tried checking out some quite old versions of glibc and
> still didn't find the functions. If you know more details about when
> they were removed, please tell me and I'll update it.
LinuxThreads had this:
/* Install a cleanup handler as pthread_cleanup_push does, but also
saves the current cancellation type and set it to deferred cancellation. */
#define pthread_cleanup_push_defer_np(routine,arg) \
{ struct _pthread_cleanup_buffer _buffer; \
_pthread_cleanup_push_defer (&_buffer, (routine), (arg));
extern void _pthread_cleanup_push_defer __P ((struct _pthread_cleanup_buffer *__buffer,
void (*__routine) (void *),
void *__arg));
This is from sysdeps/pthread/pthread.h in
glibc-linuxthreads-2.0.1.tar.gz. It was part of an add-on, not glibc
proper. This may make it a bit difficult to identify the release where
it was definitely removed.
Thanks,
Florian
next prev parent reply other threads:[~2021-03-08 11:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 10:35 pthread_cleanup_push_defer_np.3: missing functions in glibc Alejandro Colomar (man-pages)
2021-03-08 10:39 ` Florian Weimer
2021-03-08 10:54 ` Alejandro Colomar (man-pages)
2021-03-08 11:27 ` Florian Weimer [this message]
2021-03-08 11:05 ` Andreas Schwab
2021-03-08 13:12 ` Alejandro Colomar (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im61ga22.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=alx.manpages@gmail.com \
--cc=libc-alpha@sourceware.org \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.